:root{
  --bg:#050711;
  --bg2:#070a14;
  --card:#0f1624cc;
  --line:rgba(255,255,255,.08);
  --text:#e7ecf6;
  --muted:#aab5cc;
  --gold1:#b7c6ff;
  --gold2:#6c86ff;
  --shadow: 0 16px 50px rgba(0,0,0,.55);
  --radius: 18px;
  --max: 1120px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:"Noto Sans KR", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color:var(--text);
  background:
  linear-gradient(180deg, #070914 0%, #050711 100%),
  radial-gradient(1400px 900px at 20% 10%, rgba(98,54,176,.22) 0%, transparent 60%),
  radial-gradient(1200px 800px at 80% 20%, rgba(46,72,180,.20) 0%, transparent 60%),
  radial-gradient(1600px 1200px at 50% 90%, rgba(24,40,110,.18) 0%, transparent 65%);
  overflow-x:hidden;
}
a{color:inherit;text-decoration:none}
.container{max-width:var(--max); margin:0 auto; padding:0 20px}

.topbar{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(7,10,16,.55);
  border-bottom:1px solid var(--line);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  height:68px;
}
.brand{display:flex; gap:12px; align-items:center}
.brand img{height:32px; width:auto}
.brand .title{font-weight:900; letter-spacing:.6px}
.navlinks{display:flex; gap:18px; align-items:center; font-weight:600; color:var(--muted)}
.navlinks a{padding:10px 10px; border-radius:12px}
.navlinks a.active, .navlinks a:hover{color:var(--text); background: rgba(255,255,255,.06)}
.cta{
  display:inline-flex; align-items:center; gap:10px;
  padding:10px 14px; border-radius:14px;
  background: linear-gradient(135deg, rgba(247,210,106,.18), rgba(184,137,42,.08));
  border:1px solid rgba(247,210,106,.35);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.cta .dot{width:8px;height:8px;border-radius:50%;background:var(--gold1);box-shadow:0 0 14px rgba(247,210,106,.7)}

.hero{
  padding:72px 0 36px;
  position:relative;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap:26px;
  align-items:stretch;
}
@media (max-width: 900px){
  .hero-grid{grid-template-columns:1fr}
  .navlinks{display:none}
}
.panel{
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border:1px solid var(--line);
  box-shadow: var(--shadow);
}
.hero-card{padding:28px 26px}
.kicker{
  display:inline-flex; gap:10px; align-items:center;
  font-size:13px; color:var(--muted);
  letter-spacing:.6px; text-transform:uppercase;
}
.kicker .bar{
  width:28px; height:1px; background: linear-gradient(90deg, var(--gold1), transparent);
}
.h1{
  margin:14px 0 10px;
  font-size:46px;
  line-height:1.06;
  letter-spacing:-.6px;
  font-weight:900;
}
.grad{
  background: linear-gradient(135deg, var(--gold1), var(--gold2));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.sub{
  margin:0;
  color:var(--muted);
  font-size:16px;
  line-height:1.7;
}
.hero-actions{display:flex; gap:12px; margin-top:18px; flex-wrap:wrap}
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:12px 14px; border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color:var(--text);
  font-weight:700;
}
.btn:hover{transform: translateY(-1px); background: rgba(255,255,255,.06)}
.btn.primary{
  border-color: rgba(247,210,106,.35);
  background: linear-gradient(135deg, rgba(247,210,106,.22), rgba(184,137,42,.10));
}
.hero-side{padding:22px}
.stat{
  padding:18px 18px;
  border-bottom:1px solid var(--line);
}
.stat:last-child{border-bottom:none}
.stat .label{color:var(--muted); font-size:12px}
.stat .value{font-weight:900; font-size:18px; margin-top:6px}
.tags{display:flex; flex-wrap:wrap; gap:10px; margin-top:12px}
.tag{
  font-size:12px; color:#d8dfef;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(15,22,36,.55);
  padding:7px 10px;
  border-radius:999px;
}

.section{padding:30px 0}
.h2{
  margin:0 0 14px;
  font-size:22px;
  font-weight:900;
  letter-spacing:-.2px;
}
.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
@media (max-width: 900px){ .grid{grid-template-columns:1fr} }
.card{
  padding:16px;
  border-radius: var(--radius);
  border:1px solid var(--line);
  background: rgba(15,22,36,.55);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  position:relative;
  overflow:hidden;
}
.card:hover{transform: translateY(-2px); border-color: rgba(247,210,106,.28)}
.card .thumb{
  width:100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(800px 240px at 30% 20%, rgba(247,210,106,.20), transparent 60%),
    linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
}
.card .meta{margin-top:12px}
.card .title{font-weight:900; margin:0 0 6px}
.card .desc{margin:0; color:var(--muted); font-size:13px; line-height:1.5}

.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
}
@media (max-width: 900px){ .split{grid-template-columns:1fr} }

.footer{
  margin-top:44px;
  padding:26px 0 44px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:13px;
}
.footer .row{display:flex; justify-content:space-between; gap:14px; flex-wrap:wrap}
.small{font-size:12px; color:var(--muted)}
.hr{height:1px; background:var(--line); margin:16px 0}

.reveal{opacity:0; transform: translateY(16px); transition: opacity .8s ease, transform .8s ease; will-change: opacity, transform}
.reveal.is-visible{opacity:1; transform: translateY(0)}
@media (prefers-reduced-motion: reduce){
  .reveal{opacity:1; transform:none; transition:none}
}

.pagehead{
  padding:38px 0 10px;
}
.breadcrumb{color:var(--muted); font-size:12px}
/* --- Work cards (YouTube) --- */
.workcard{
  display:block;
  padding:16px;
  border-radius: var(--radius);
  border:1px solid var(--line);
  background: rgba(15,22,36,.55);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  position:relative;
  overflow:hidden;
}
.workcard:hover{
  transform: translateY(-2px);
  border-color: rgba(247,210,106,.28);
}
.workcard .thumbwrap{
  position:relative;
  width:100%;
  aspect-ratio:16/9;
  border-radius:14px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.08);
  background: radial-gradient(800px 240px at 30% 20%, rgba(247,210,106,.20), transparent 60%),
              linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
}
.workcard img.thumbimg{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  filter: saturate(0.95) contrast(1.05);
  transform: scale(1.01);
  transition: transform .35s ease, filter .35s ease, opacity .35s ease;
  opacity:.92;
}
.workcard:hover img.thumbimg{
  transform: scale(1.035);
  filter: saturate(1.05) contrast(1.08);
  opacity:1;
}
.playbadge{
  position:absolute;
  left:12px; top:12px;
  display:inline-flex; align-items:center; gap:8px;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(8px);
  font-size:12px;
  color: #dfe6f7;
}
.playbadge .tri{
  width:0;height:0;
  border-left:9px solid rgba(247,210,106,.95);
  border-top:6px solid transparent;
  border-bottom:6px solid transparent;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,.5));
}
.chips{
  position:absolute;
  right:12px; top:12px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
  max-width: 70%;
}
.chip{
  font-size:11px;
  padding:6px 9px;
  border-radius:999px;
  border:1px solid rgba(247,210,106,.20);
  background: linear-gradient(135deg, rgba(247,210,106,.14), rgba(184,137,42,.06));
  color:#f1f5ff;
}
.workmeta{margin-top:12px}
.worktitle{
  margin:0 0 6px;
  font-weight:900;
  letter-spacing:-.2px;
  line-height:1.25;
  display:-webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow:hidden;
}
.workdesc{
  margin:0;
  color:var(--muted);
  font-size:13px;
  line-height:1.5;
}

/* --- SANE branding tweaks --- */
.brand img{height:28px; width:auto}
.brand .title{display:none}
.nav{height:64px}
.navlinks{gap:10px}
.cta{display:none}

/* banners */
.banner{
  width:100%;
  border-radius: var(--radius);
  border:1px solid var(--line);
  box-shadow: var(--shadow);
  overflow:hidden;
  background: rgba(255,255,255,.04);
}
.banner img{width:100%; height:auto; display:block}


/* v4: ensure sections have transparent background */
.section{background:transparent}

/* v4: Tag visibility improvement */
.chips{right:10px; top:10px}
.chip{
  background: rgba(8,10,18,.65);
  color:#ffffff;
  border:1px solid rgba(255,255,255,.25);
  box-shadow: 0 6px 18px rgba(0,0,0,.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-weight:700;
}

/* v4: Reduce banner sizes */
.banner img{max-height:260px; object-fit:cover}
@media (max-width: 900px){
  .banner img{max-height:200px}
}
