:root{
  --bg:#070707;
  --surface:#0f0f10;
  --line:rgba(255,255,255,.09);
  --ink:#f4f4f2;
  --dim:#9a9a9a;
  --accent:#ff9864;
  --display:'Montserrat', system-ui, sans-serif;
  --body:'Inter', system-ui, sans-serif;
}
*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  background:var(--bg); color:var(--ink);
  font-family:var(--body); line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
::selection{ background:var(--accent); color:#0a0a0a; }
a{ color:inherit; }
img{ max-width:100%; display:block; }
section{ scroll-margin-top:0; }
a:focus-visible, button:focus-visible{ outline:2px solid var(--accent); outline-offset:3px; }
.wrap{ max-width:1120px; margin:0 auto; padding:0 24px; }

/* progress line */
#progress{
  position:fixed; top:0; left:0; height:2px; width:0;
  background:var(--accent); z-index:200;
}

/* nav */
.nav{
  position:fixed; top:0; left:0; right:0; z-index:100;
  background:rgba(7,7,7,.72); backdrop-filter:blur(12px);
  border-bottom:1px solid var(--line);
}
.nav-inner{
  max-width:1120px; margin:0 auto; padding:0 24px; height:64px;
  display:flex; align-items:center; justify-content:space-between;
}
.logo{ font-family:var(--display); font-weight:700; font-size:1.05rem; text-decoration:none; letter-spacing:-.01em; }
.logo span{ color:var(--accent); }
.menu{ display:flex; align-items:center; gap:28px; }
.menu a{ text-decoration:none; font-size:.92rem; color:var(--dim); transition:color .2s; }
.menu a:hover, .menu a.active{ color:var(--ink); }
.menu a.pill{
  color:#0a0a0a; background:var(--accent); border:1px solid var(--accent); border-radius:100px;
  padding:8px 18px; font-weight:600; transition:transform .2s;
}
.menu a.pill:hover{ transform:translateY(-1px); color:#0a0a0a; }
.burger{
  display:none; background:none; border:0; color:var(--ink);
  width:40px; height:40px; cursor:pointer;
}
.burger span{ display:block; width:20px; height:2px; background:currentColor; margin:5px auto; transition:transform .25s, opacity .25s; }
.nav.open .burger span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav.open .burger span:nth-child(2){ opacity:0; }
.nav.open .burger span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

@media (max-width:760px){
  .burger{ display:block; }
  .menu{
    position:absolute; top:64px; left:0; right:0;
    flex-direction:column; align-items:stretch; gap:0;
    background:var(--bg); border-bottom:1px solid var(--line);
    padding:8px 24px 20px; display:none;
  }
  .nav.open .menu{ display:flex; }
  .menu a{ padding:14px 0; font-size:1rem; border-bottom:1px solid var(--line); }
  .menu a.pill{ margin-top:16px; text-align:center; }
}

/* ---------- HERO ---------- */
.hero{
  --mx:50%;
  position:relative; min-height:100vh; min-height:100svh;
  display:grid; place-items:center;
  padding:110px 20px 90px; overflow:hidden;
  background:#050505;
}
.hero::before{
  content:''; position:absolute; inset:0; pointer-events:none;
  background:
    radial-gradient(ellipse 55% 42% at var(--mx) -6%, rgba(255,255,255,.30), transparent 72%),
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(255,255,255,.035), transparent 70%);
  transition:background .2s;
}
.hero::after{
  content:''; position:absolute; inset:0; pointer-events:none;
  background:radial-gradient(ellipse at center, transparent 45%, rgba(0,0,0,.7) 100%);
}
.hero-stage{ position:relative; z-index:2; width:100%; display:flex; flex-direction:column; align-items:center; }

.sel{
  position:relative; width:min(860px, 92vw);
  padding:clamp(40px,7vw,78px) clamp(22px,5vw,64px) clamp(46px,7vw,84px);
  border:1.5px dashed rgba(198,255,0,.6);
  animation:selIn .9s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes selIn{
  from{ opacity:0; transform:scale(1.06); }
  to{ opacity:1; transform:none; }
}
.h{
  position:absolute; width:9px; height:9px; background:var(--accent);
  transform:translate(-50%,-50%);
}
.h.tl{ left:0; top:0; } .h.tm{ left:50%; top:0; } .h.tr{ left:100%; top:0; }
.h.ml{ left:0; top:50%; } .h.mr{ left:100%; top:50%; }
.h.bl{ left:0; top:100%; } .h.bm{ left:50%; top:100%; }
.h.br{ left:100%; top:100%; width:16px; height:16px; }
.cursor{
  position:absolute; left:100%; top:100%; width:26px; height:26px;
  transform:translate(2px, 2px); filter:drop-shadow(0 2px 6px rgba(198,255,0,.35));
  animation:nudge 3.2s ease-in-out infinite;
}
@keyframes nudge{
  0%,100%{ transform:translate(2px,2px); }
  50%{ transform:translate(10px,8px); }
}

.role{
  font-size:clamp(.8rem,1.8vw,1rem); color:#cfcfcf; letter-spacing:.01em;
  margin-bottom:clamp(2px,1vw,10px); text-align:center;
}
.role b{ font-weight:700; color:#fff; }
.role em{ font-family:Georgia,'Times New Roman',serif; font-style:italic; color:#bdbdbd; }
.role i{ font-style:normal; color:var(--accent); margin:0 .35em; }

.portfolio{
  font-family:var(--display); font-weight:800;
  font-size:clamp(3.3rem, 14.5vw, 10rem); line-height:1; letter-spacing:-.03em;
  background:linear-gradient(180deg, #ffffff 15%, #8d8d8d 62%, #5a5a5a 100%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
  white-space:nowrap; display:flex; align-items:center; justify-content:center;
}
.fp{
  display:inline-grid; place-items:center;
  width:.74em; height:.74em; border-radius:50%;
  background:#fff; margin:0 .045em 0 .03em;
  box-shadow:0 0 38px 8px rgba(255,255,255,.55), 0 0 100px 26px rgba(255,255,255,.18);
  animation:pulse 3.6s ease-in-out infinite;
}
.fp svg{ width:62%; height:62%; }
@keyframes pulse{
  0%,100%{ box-shadow:0 0 38px 8px rgba(255,255,255,.55), 0 0 100px 26px rgba(255,255,255,.18); }
  50%{ box-shadow:0 0 54px 14px rgba(255,255,255,.75), 0 0 130px 36px rgba(255,255,255,.26); }
}

.year{
  position:absolute; right:clamp(18px,5vw,64px); bottom:clamp(16px,3vw,34px);
  display:inline-flex; align-items:center; gap:10px;
  border:1px solid rgba(255,255,255,.22); border-radius:100px;
  padding:4px 16px 4px 5px; font-size:.78rem; color:#d6d6d6;
  background:rgba(255,255,255,.03);
}
.year span{
  display:grid; place-items:center; width:17px; height:17px; border-radius:50%;
  border:1px solid rgba(255,255,255,.4); font-size:.62rem; line-height:1;
}

.hint{
  margin-top:clamp(30px,5vw,54px); text-align:center;
  font-size:clamp(.95rem,2vw,1.1rem); font-weight:600; color:#b5b5b5; letter-spacing:.005em;
}
.hint small{ font-size:.7em; color:var(--accent); margin:0 .6em; }
.hero-meta{ margin-top:10px; font-size:.82rem; color:#6d6d6d; text-align:center; }

.hero-foot{
  position:absolute; z-index:2; left:clamp(20px,4vw,48px); right:clamp(20px,4vw,48px); bottom:26px;
  display:flex; align-items:center; gap:16px;
  font-size:.7rem; letter-spacing:.14em; text-transform:uppercase; color:#555;
}
.hero-foot hr{ flex:1; border:0; height:1px; background:rgba(255,255,255,.1); }

@media (max-width:560px){
  .hero{ padding-top:96px; }
  .year{ position:static; margin-top:22px; align-self:flex-start; }
}

/* ---------- WORKS (scroll stack) ---------- */
.works-intro{
  padding:110px 0 60px; border-top:1px solid var(--line); background:var(--bg);
}
.works-intro .wrap{ display:flex; justify-content:space-between; align-items:flex-end; gap:24px; flex-wrap:wrap; }
h2{ font-family:var(--display); font-weight:700; font-size:clamp(1.9rem, 4.5vw, 3rem); letter-spacing:-.025em; line-height:1.1; }
h2 em{ font-style:normal; color:var(--accent); }
.works-intro p{ color:var(--dim); max-width:36ch; font-size:.98rem; }

.stack{ position:relative; background:var(--bg); }
.panel{ position:sticky; top:0; height:100vh; height:100svh; }
.panel-inner{
  position:relative; height:100%;
  background:var(--surface);
  border-radius:32px 32px 0 0; border-top:1px solid rgba(198,255,0,.22);
  box-shadow:0 -28px 70px rgba(0,0,0,.7);
  padding:96px max(24px,4vw) 44px;
  display:grid; grid-template-columns:minmax(0,5fr) minmax(0,7fr);
  gap:clamp(24px,4vw,64px); align-items:center;
  transform-origin:50% 0; will-change:transform; overflow:hidden;
}
.shade{
  position:absolute; inset:0; background:#000; opacity:0; pointer-events:none; z-index:5;
}
.meta .count{
  font-family:var(--display); font-weight:700; font-size:.85rem; color:var(--accent);
  letter-spacing:.1em; margin-bottom:20px; display:flex; align-items:center; gap:12px;
}
.meta .count::after{ content:''; width:56px; height:1px; background:rgba(198,255,0,.5); }
.meta .count span{ color:#6d6d6d; }
.tag{
  display:inline-block; font-size:.72rem; font-weight:600; letter-spacing:.08em; text-transform:uppercase;
  color:#0a0a0a; background:var(--accent); padding:4px 11px; border-radius:3px; margin-bottom:16px;
}
.meta h3{
  font-family:var(--display); font-weight:800; letter-spacing:-.03em; line-height:1.05;
  font-size:clamp(1.8rem, 4vw, 3.2rem);
}
.meta p{ margin-top:18px; color:#a8a8a8; font-size:1.02rem; max-width:44ch; }

.vwrap{ display:flex; justify-content:center; align-items:center; min-width:0; }
.vframe{
  --r:1.7778;
  position:relative; background:#000;
  width:min(100%, calc(66vh * var(--r))); aspect-ratio:var(--r);
  border-radius:14px; overflow:hidden; border:1px solid var(--line);
  box-shadow:0 0 0 1px rgba(198,255,0,.05), 0 30px 80px rgba(0,0,0,.55);
}
.vframe iframe, .vframe video{ position:absolute; inset:0; width:100%; height:100%; border:0; background:#000; }
.vframe .ph{ position:absolute; inset:0; display:grid; place-items:center; color:#444; font-size:.85rem; }

.stack-state{ padding:80px 24px 120px; text-align:center; color:var(--dim); }

@media (max-width:860px){
  .panel-inner{
    grid-template-columns:1fr; align-content:center; gap:22px;
    padding:84px 20px 32px; border-radius:24px 24px 0 0;
  }
  .vwrap{ order:-1; }
  .vframe{ width:min(100%, calc(46svh * var(--r))); }
  .meta .count{ margin-bottom:12px; }
  .meta h3{ font-size:1.6rem; }
  .meta p{ margin-top:10px; font-size:.95rem; }
}

/* ---------- other sections ---------- */
.section{ padding:96px 0; border-top:1px solid var(--line); background:var(--bg); position:relative; }
.about-grid{ display:grid; grid-template-columns:300px 1fr; gap:72px; align-items:start; }
@media (max-width:820px){ .about-grid{ grid-template-columns:1fr; gap:40px; } .about-photo{ max-width:300px; } }
.about-photo img{ border-radius:16px; border:1px solid var(--line); aspect-ratio:4/5; object-fit:cover; width:100%; }
.about-copy p{ font-size:1.1rem; color:#d2d2d2; max-width:58ch; }
.about-copy p + p{ margin-top:18px; }
.about-copy h3{ font-family:var(--display); font-size:1.05rem; margin:40px 0 14px; }
.chips{ display:flex; flex-wrap:wrap; gap:10px; list-style:none; }
.chips li{ border:1px solid var(--line); border-radius:100px; padding:8px 16px; font-size:.88rem; color:var(--dim); }
.chips li:hover{ border-color:rgba(198,255,0,.5); color:var(--accent); }

.actions{ display:flex; flex-wrap:wrap; gap:14px; margin-top:40px; }
.btn{
  display:inline-block; text-decoration:none; font-weight:600; font-size:.95rem;
  padding:15px 28px; border-radius:100px; border:1px solid var(--line);
  transition:transform .2s, border-color .2s, color .2s;
}
.btn:hover{ transform:translateY(-2px); }
.btn.primary{ background:var(--accent); color:#0a0a0a; border-color:var(--accent); }
.btn.ghost:hover{ border-color:var(--accent); color:var(--accent); }

.contact{ text-align:center; padding:120px 0; }
.contact h2{ max-width:16ch; margin:0 auto; }
.contact p{ color:var(--dim); font-size:1.1rem; max-width:42ch; margin:20px auto 0; }
.contact .actions{ justify-content:center; }

footer{ border-top:1px solid var(--line); padding:32px 0; background:var(--bg); position:relative; }
.foot{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:16px; font-size:.85rem; color:var(--dim); }
.foot ul{ display:flex; gap:24px; list-style:none; }
.foot a{ text-decoration:none; transition:color .2s; }
.foot a:hover{ color:var(--accent); }

@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  *{ transition:none !important; animation:none !important; }
}


/* Touch-friendly fullscreen control for work videos */
.fullscreen-btn{
  position:absolute; z-index:4; top:12px; right:12px;
  width:42px; height:42px; display:grid; place-items:center;
  border:1px solid rgba(255,255,255,.28); border-radius:10px;
  background:rgba(0,0,0,.68); color:#fff; cursor:pointer;
  opacity:.92; transition:background .2s, border-color .2s, transform .2s;
  -webkit-tap-highlight-color:transparent;
}
.fullscreen-btn svg{ width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.fullscreen-btn:hover, .fullscreen-btn:focus-visible{
  background:var(--accent); border-color:var(--accent); color:#101010;
}
.fullscreen-btn:active{ transform:scale(.94); }
.vframe:fullscreen, .vframe:-webkit-full-screen{
  width:100vw; height:100vh; max-width:none; aspect-ratio:auto;
  border:0; border-radius:0; box-shadow:none; background:#000;
}
.vframe:fullscreen iframe, .vframe:fullscreen video,
.vframe:-webkit-full-screen iframe, .vframe:-webkit-full-screen video{
  width:100%; height:100%; object-fit:contain;
}
