:root {
  --bg: #eceef4;
  --ink: #0e0f13;
  --mute: #6f727c;
  --line: rgba(14, 15, 19, 0.14);
  --accent: #ff4d14;
  --g: clamp(16px, 2.2vw, 32px);
  --r: 18px;
  --ease: cubic-bezier(0.22, 0.8, 0.16, 1);
  --slow: 1.3s;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); color: var(--ink); font-family: Inter, system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }
body { margin: 0; overflow-x: clip; }
html:not(.ready) body { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; font-weight: 400; }
::selection { background: var(--accent); color: #fff; }

.glwrap { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
#gl { position: absolute; left: 0; top: 0; width: 100%; height: 100vh; will-change: transform; }
body { position: relative; }
main { position: relative; z-index: 1; }

/* loader */
#loader { position: fixed; inset: 0; z-index: 100; background: var(--ink); color: #f4f4f6; display: flex; align-items: flex-end; padding: var(--g); clip-path: inset(0 0 0 0); transition: clip-path 1.25s var(--ease) 0.15s; }
.ready #loader { clip-path: inset(0 0 100% 0); }
.ld-num { font-size: clamp(88px, 15vw, 240px); font-weight: 300; letter-spacing: -0.05em; line-height: 0.8; display: flex; font-variant-numeric: tabular-nums; }
.ld-num span { display: inline-block; width: 0.62em; }
.ready .ld-num { transform: translateY(-30%); opacity: 0; transition: transform 1.1s var(--ease), opacity 0.6s; }

/* nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 30; display: flex; align-items: flex-start; padding: 22px var(--g); pointer-events: none; transition: color 0.8s var(--ease); }
.nav > * { pointer-events: auto; }
.logo { font-weight: 600; font-size: 15px; letter-spacing: 0.04em; padding-top: 6px; }
.nav-line { max-width: 30ch; margin-left: clamp(40px, 9vw, 160px); font-size: clamp(14px, 1.06vw, 17px); line-height: 1.24; letter-spacing: -0.012em; transition: opacity 0.6s var(--ease); }
.nav-r { margin-left: auto; display: flex; gap: 8px; }
.on-dark .nav { color: #f4f4f6; }
.scrolled .nav-line { opacity: 0; }

.pill { height: 34px; padding: 0 16px; border-radius: 99px; border: 0; background: #fff; color: var(--ink); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; white-space: nowrap; transition: background 0.5s var(--ease), color 0.5s var(--ease), transform 0.5s var(--ease); }
.pill:hover { transform: translateY(-1px); }
.pill.ink { background: var(--ink); color: #fff; }
.pill.line { background: transparent; box-shadow: inset 0 0 0 1px var(--line); height: 42px; padding: 0 20px; }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.pill .dots { display: inline-flex; gap: 3px; }
.pill .dots b { width: 4px; height: 4px; border-radius: 50%; background: currentColor; transition: transform 0.6s var(--ease); }
.menu-open .pill .dots b:first-child { transform: translateX(3.5px); }
.menu-open .pill .dots b:last-child { transform: translateX(-3.5px); }
.on-dark .nav .pill:not(.ink) { background: rgba(255, 255, 255, 0.14); color: #fff; backdrop-filter: blur(10px); }
.on-dark .nav .pill.ink { background: #fff; color: var(--ink); }
.arr { font-style: normal; display: inline-block; transition: transform 0.7s var(--ease); }

/* menu */
.menu { position: fixed; z-index: 29; top: 64px; right: var(--g); width: min(360px, calc(100vw - var(--g) * 2)); background: #fff; border-radius: var(--r); padding: 26px 28px 22px; box-shadow: 0 30px 80px -30px rgba(14, 15, 19, 0.35); transform-origin: 100% 0; transform: translateY(-8px) scale(0.96); opacity: 0; visibility: hidden; transition: transform 0.9s var(--ease), opacity 0.5s var(--ease), visibility 0s 0.9s; }
.menu-open .menu { transform: none; opacity: 1; visibility: visible; transition: transform 0.9s var(--ease), opacity 0.5s var(--ease); }
.menu nav { display: flex; flex-direction: column; }
.menu nav a { font-size: 34px; letter-spacing: -0.03em; line-height: 1.22; transition: color 0.4s, transform 0.6s var(--ease); }
.menu nav a:hover { color: var(--accent); transform: translateX(6px); }
.menu-foot { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--mute); }

/* hero */
.hero { padding-top: 84px; }
.hero-line { display: none; }
.stage { position: relative; margin: 0 var(--g); height: calc(100svh - 84px - 58px); min-height: 440px; border-radius: var(--r); cursor: grab; touch-action: pan-y; }
.stage:active { cursor: grabbing; }
.nogl .stage { background: radial-gradient(120% 90% at 50% 40%, #23252c, #0b0c0f); }
.marks { display: flex; align-items: center; justify-content: space-between; padding: 0 calc(var(--g) - 4px); height: 58px; font-size: 10.5px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); }
.marks i { font-style: normal; font-weight: 300; font-size: 15px; color: var(--ink); opacity: 0.55; }
.hero-foot { opacity: 0; transition: opacity 1.2s var(--ease) 0.9s; }
.ready .hero-foot { opacity: 1; }

/* hero labels */
.hero { position: relative; }
.stage.pointing { cursor: pointer; }
.hover-tag { position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none; padding: 8px 13px; border-radius: 99px; background: rgba(255, 255, 255, 0.94); color: var(--ink); font-size: 12px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; opacity: 0; transition: opacity 0.35s var(--ease); box-shadow: 0 8px 30px -10px rgba(0, 0, 0, 0.5); }
.hover-tag.on { opacity: 1; }
.piece-card { position: absolute; right: calc(var(--g) + clamp(18px, 2.6vw, 44px)); bottom: calc(58px + clamp(18px, 2.6vw, 44px)); width: min(360px, calc(100% - var(--g) * 2 - 36px)); color: #f4f4f6; opacity: 0; transform: translate3d(0, 16px, 0); pointer-events: none; transition: opacity 0.8s var(--ease), transform 1s var(--ease); }
.piece-card.on { opacity: 1; transform: none; pointer-events: auto; transition-delay: 0.25s; }
.pc-k { font-size: 10.5px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.6; }
.pc-name { margin-top: 8px; font-size: clamp(34px, 3.6vw, 56px); letter-spacing: -0.04em; line-height: 0.95; }
.pc-line { margin-top: 12px; font-size: 16px; line-height: 1.4; letter-spacing: -0.01em; opacity: 0.78; max-width: 30ch; }
.pc-row { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.piece-card .pill.ink { background: #fff; color: var(--ink); }
.piece-card .pill:not(.ink) { background: rgba(255, 255, 255, 0.14); color: #fff; backdrop-filter: blur(10px); }

/* text reveal */
.ln { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.ln > span { display: block; transform: translate3d(0, 105%, 0); transition: transform var(--slow) var(--ease); }
.rv.in .ln > span { transform: none; }
.rv.in .ln:nth-child(2) > span { transition-delay: 0.1s; }
.rv.fade { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity 1.1s var(--ease), transform var(--slow) var(--ease); }
.rv.fade.in { opacity: 1; transform: none; }

/* intro */
.intro { padding: clamp(110px, 20vh, 220px) 0 0; }
.big { font-size: clamp(46px, 7.4vw, 128px); letter-spacing: -0.048em; line-height: 0.94; padding: 0 var(--g); }
.intro-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--g); padding: clamp(40px, 7vh, 80px) var(--g) clamp(60px, 12vh, 140px); }
.intro-cols p { grid-column: 2; max-width: 40ch; font-size: clamp(16px, 1.3vw, 20px); line-height: 1.45; letter-spacing: -0.01em; color: #2b2d33; }
.intro-cols .pill { grid-column: 2; justify-self: start; }
.reel-wrap { padding: 0 var(--g); --s: 0.86; }
.reel { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; border-radius: var(--r); overflow: hidden; background: #cfd2da; cursor: pointer; transform: scale(var(--s)); transform-origin: 50% 0; }
.reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(var(--z, 1.16)); transform-origin: var(--o, 50% 50%); filter: saturate(1.05) brightness(0.9); transition: opacity 1.2s var(--ease); }
.reel video.on { opacity: 1; }
.reel-t { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: clamp(14px, 2vw, 30px); color: #fff; font-size: clamp(38px, 6.4vw, 110px); letter-spacing: -0.03em; text-transform: uppercase; text-shadow: 0 2px 40px rgba(0, 0, 0, 0.18); }
.reel .play { width: clamp(64px, 8.4vw, 140px); height: clamp(40px, 5.2vw, 86px); border-radius: 99px; background: #fff; display: grid; place-items: center; transition: transform 0.9s var(--ease), background 0.5s; }
.reel .play svg { width: 34%; height: 54%; fill: var(--ink); }
.reel:hover .play { transform: scale(1.08); background: var(--accent); }
.reel:hover .play svg { fill: #fff; }

/* work */
.work { padding: clamp(110px, 18vh, 200px) 0 clamp(120px, 20vh, 220px); }
.work-head { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: var(--g); margin-bottom: clamp(40px, 8vh, 90px); }
.work-head .big { grid-column: 1 / -1; }
.work-head .cap { grid-column: 2; padding: 0 var(--g) 0 0; }
.cap { font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); line-height: 1.6; max-width: 46ch; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vh, 80px) clamp(14px, 1.6vw, 24px); padding: 0 var(--g); }
.card { display: block; }
.card:nth-child(even) { transition-delay: 0.12s; }
.media { position: relative; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: #d9dce4; transform: translateZ(0); }
.media img, .media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), opacity 0.8s var(--ease); }
.media video { opacity: 0; }
.card.playing .media video { opacity: 1; }
.card:hover .media img, .card:hover .media video { transform: scale(1.045); }
.tags { margin-top: 16px; font-size: 10px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); }
.card h3 { margin-top: 6px; font-size: clamp(22px, 2vw, 30px); letter-spacing: -0.025em; display: flex; align-items: baseline; }
.card h3 .arr { width: 0; overflow: hidden; opacity: 0; transform: translateX(-12px); transition: width 0.7s var(--ease), opacity 0.5s, transform 0.7s var(--ease); }
.card:hover h3 .arr, .card:focus-visible h3 .arr { width: 1.25em; opacity: 1; transform: none; }
.desc { margin-top: 4px; font-size: 15px; color: var(--mute); letter-spacing: -0.01em; }
.card:focus-visible { outline: none; }
.card:focus-visible .media { outline: 2px solid var(--accent); outline-offset: 4px; }

/* portal */
.portal { position: relative; height: 760vh; }
.portal-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid; place-items: center; color: #f4f4f6; }
.nogl .portal-pin { background: #000; }
.beat { grid-area: 1 / 1; text-align: center; font-size: clamp(30px, 4.6vw, 76px); letter-spacing: 0.01em; line-height: 1.04; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; visibility: hidden; opacity: 0; padding: 0 var(--g); will-change: transform, opacity; }
.beat span { display: block; word-spacing: 0.35em; }
.wbeat { justify-self: start; align-self: end; text-align: left; text-transform: none; align-items: flex-start; letter-spacing: -0.02em; margin: 0 0 clamp(70px, 14vh, 150px) clamp(16px, 6vw, 110px); padding: 0; max-width: 34ch; }
.wbeat[data-tone="dark"] { color: var(--ink); }
.wk { font-size: 11px; font-weight: 500; letter-spacing: 0.12em; opacity: 0.7; }
.wn { font-size: clamp(48px, 7vw, 116px); letter-spacing: -0.05em; line-height: 0.92; margin-top: 12px; }
.wl { font-size: clamp(16px, 1.35vw, 21px); line-height: 1.4; margin-top: 14px; opacity: 0.85; text-transform: none; letter-spacing: -0.01em; }
.wbeat .pill { margin-top: 22px; background: rgba(255, 255, 255, 0.16); color: inherit; backdrop-filter: blur(10px); }
.wbeat[data-tone="dark"] .pill { background: var(--ink); color: #fff; }
.portal-cap { position: absolute; bottom: 30px; left: 0; right: 0; text-align: center; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.55; }

/* end */
.end { padding: clamp(140px, 24vh, 260px) 0 0; }
.end .cap { padding: 0 var(--g); margin-bottom: 18px; }
.huge { font-size: clamp(58px, 11.5vw, 200px); letter-spacing: -0.055em; line-height: 0.9; padding: 0 var(--g); }
.mail { display: inline-flex; gap: 14px; align-items: center; margin: clamp(40px, 7vh, 70px) var(--g) clamp(80px, 14vh, 150px); font-size: clamp(22px, 2.6vw, 40px); letter-spacing: -0.03em; border-bottom: 1px solid currentColor; padding-bottom: 6px; transition: color 0.5s; }
.mail:hover { color: var(--accent); }
.mail:hover .arr, .pill:hover .arr { transform: translateX(5px); }
.end-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--g); padding: 28px var(--g) calc(40px + env(safe-area-inset-bottom, 0px)); font-size: 13px; line-height: 1.6; color: var(--mute); }
.end-meta a:hover { color: var(--ink); }
.end-meta p:last-child { text-align: right; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(8, 9, 11, 0.94); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: var(--g); opacity: 0; transition: opacity 0.7s var(--ease); }
.lightbox.open { opacity: 1; }
.lightbox video { width: min(100%, 1400px); max-height: calc(100vh - 140px); aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r); background: #000; transform: scale(0.96); transition: transform 1s var(--ease); }
.lightbox.open video { transform: none; }
.lb-bar { display: flex; gap: 8px; align-items: center; width: min(100%, 1400px); color: #fff; }
.lb-name { margin-right: auto; font-size: 18px; letter-spacing: -0.02em; }
.lightbox .pill:not(.ink) { background: rgba(255, 255, 255, 0.14); color: #fff; }
.lightbox .pill.ink { background: #fff; color: var(--ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (max-width: 800px) {
  .nav { padding: 16px var(--g); }
  .nav-line { display: none; }
  .hero { padding-top: 66px; }
  .hero-line { display: block; padding: 4px var(--g) 18px; font-size: 21px; line-height: 1.22; letter-spacing: -0.02em; max-width: 22ch; }
  .stage { height: 64svh; min-height: 380px; }
  .hide-s, .hero-foot .hint { display: none; }
  .piece-card { left: calc(var(--g) + 18px); right: auto; bottom: calc(58px + 18px); }
  .pc-name { font-size: 34px; }
  .intro-cols, .work-head { grid-template-columns: 1fr; }
  .intro-cols p, .intro-cols .pill, .work-head .cap { grid-column: 1; padding: 0; }
  .work-head .cap { padding: 0 var(--g); }
  .grid { grid-template-columns: 1fr; gap: 44px; }
  .reel-t { font-size: 34px; }
  .wbeat { margin: 0 0 76px var(--g); max-width: calc(100% - var(--g) * 2); }
  .wn { font-size: 46px; }
  .end-meta { grid-template-columns: 1fr; }
  .end-meta p:last-child { text-align: left; }
  .menu { top: 58px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01s !important; transition-delay: 0s !important; }
  .ln > span, .rv.fade { transform: none !important; opacity: 1 !important; }
  .reel-wrap { --s: 1 !important; }
}
