/* ============ TOKENS ============ */
:root {
  --bg: #0e100d;
  --bg-2: #151813;
  --bg-3: #1c2019;
  --ink: #f1ede4;
  --ink-2: #c9c5bb;
  --mute: #868a80;
  --line: rgba(241, 237, 228, .1);
  --line-2: rgba(241, 237, 228, .18);
  --brass: #e3bc6c;
  --brass-d: #a8833a;
  --live: #7ee38b;
  --card: #f7f4ec;
  --card-ink: #111;
  --shadow: 0 30px 80px -20px rgba(0, 0, 0, .7);
  --ff: "Bricolage Grotesque", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --pad: clamp(16px, 4vw, 56px);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #efeae0;
  --bg-2: #e6e0d4;
  --bg-3: #dcd5c7;
  --ink: #12140f;
  --ink-2: #34362f;
  --mute: #6f7168;
  --line: rgba(18, 20, 15, .1);
  --line-2: rgba(18, 20, 15, .2);
  --brass: #9b7329;
  --brass-d: #7a5a1e;
  --live: #1e9a3a;
  --card: #fffdf8;
  --shadow: 0 30px 70px -25px rgba(60, 45, 20, .35);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; border-radius: 6px; }
.door__leaf:focus-visible { outline-offset: -6px; border-radius: 999px 999px 4px 4px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ff);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color .6s var(--ease), color .6s var(--ease);
}
body.loading { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
::selection { background: var(--brass); color: #111; }

.eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--mute); display: inline-flex; align-items: center; gap: 10px;
}
.muted { color: var(--mute); }
.dot, .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--live); display: inline-block; position: relative; }
.pulse::after, .dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--live);
  animation: ping 2s var(--ease) infinite;
}
@keyframes ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }

/* ============ GRAIN + SPOTLIGHT ============ */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
:root[data-theme="light"] .grain { opacity: .08; mix-blend-mode: multiply; }
@keyframes grain { 0%,100% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); } 40% { transform: translate(2%,-3%); } 60% { transform: translate(-2%,-1%); } 80% { transform: translate(3%,3%); } }
.spot {
  position: fixed; left: 0; top: 0; width: 640px; height: 640px; margin: -320px 0 0 -320px; border-radius: 50%;
  pointer-events: none; z-index: 1; opacity: .5;
  background: radial-gradient(circle, rgba(227, 188, 108, .12), transparent 62%);
  transform: translate3d(-999px, -999px, 0);
}
:root[data-theme="light"] .spot { background: radial-gradient(circle, rgba(255, 255, 255, .7), transparent 62%); opacity: .8; }

/* ============ CURSOR ============ */
.cursor, .cursor-dot { position: fixed; left: 0; top: 0; pointer-events: none; z-index: 200; border-radius: 50%; }
.cursor {
  width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid var(--ink);
  display: grid; place-items: center; mix-blend-mode: difference; border-color: #fff;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background-color .35s var(--ease), opacity .3s;
}
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; mix-blend-mode: difference; }
.cursor__label { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #000; opacity: 0; transition: opacity .2s; white-space: nowrap; }
.cursor.is-label { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: #fff; }
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-hidden, .cursor-dot.is-hidden { opacity: 0; }
@media (hover: none), (pointer: coarse) { .cursor, .cursor-dot, .spot { display: none; } }
@media (hover: hover) and (pointer: fine) { body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; } }

/* ============ LOADER ============ */
.loader {
  position: fixed; inset: 0; z-index: 300; background: #0a0b09; color: #f1ede4;
  display: grid; place-content: center; justify-items: center; gap: 22px;
}
.loader__name { font-size: clamp(40px, 9vw, 120px); font-weight: 700; letter-spacing: -.04em; line-height: 1; display: flex; overflow: hidden; }
.loader__name span { display: inline-block; transform: translateY(110%); }
.loader__name em { color: #e3bc6c; display: inline-block; transform: translateY(110%); }
.loader__bar { width: min(320px, 70vw); height: 1px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.loader__bar i { display: block; height: 100%; width: 100%; background: #e3bc6c; transform: scaleX(0); transform-origin: left; }
.loader__count { font-family: var(--mono); font-size: 13px; color: #868a80; }
.loader__count span { color: #f1ede4; }
.loader__tag { position: absolute; bottom: 32px; font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #868a80; }

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--pad); padding-right: calc(var(--pad) + 40px);
  transition: transform .5s var(--ease), background-color .4s, backdrop-filter .4s;
}
.nav.is-solid { background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.nav__logo em { font-size: 26px; color: var(--brass); line-height: 1; }
.nav__links { display: flex; gap: 4px; padding: 5px; border: 1px solid var(--line); border-radius: 99px; background: color-mix(in srgb, var(--bg-2) 60%, transparent); }
.nav__links a { font-size: 13px; padding: 7px 14px; border-radius: 99px; color: var(--ink-2); transition: background-color .3s, color .3s; }
.nav__links a:hover, .nav__links a.is-active { background: var(--ink); color: var(--bg); }
.nav__meta { display: flex; gap: 14px; font-family: var(--mono); font-size: 11px; color: var(--mute); align-items: center; }
.nav__meta b { color: var(--ink); font-weight: 500; }
.nav__time, .nav__date { border: 1px solid var(--line); padding: 6px 10px; border-radius: 8px; }
.nav__burger { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; }
.nav__burger i { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease); }
.nav__burger i:first-child { top: 16px; } .nav__burger i:last-child { top: 24px; }
body.menu-open .nav__burger i:first-child { transform: translateY(4px) rotate(45deg); }
body.menu-open .nav__burger i:last-child { transform: translateY(-4px) rotate(-45deg); }
.menu {
  position: fixed; inset: 0; z-index: 95; background: var(--bg); display: flex; flex-direction: column; justify-content: center;
  padding: var(--pad); gap: 6px; clip-path: circle(0% at calc(100% - 40px) 40px); transition: clip-path .8s var(--ease);
}
.menu a { font-size: clamp(40px, 12vw, 72px); font-weight: 700; letter-spacing: -.04em; line-height: 1.05; }
.menu p { margin-top: 30px; font-family: var(--mono); font-size: 12px; color: var(--mute); }
body.menu-open .menu { clip-path: circle(150% at calc(100% - 40px) 40px); }

/* ============ PULL CORD ============ */
.cord { position: fixed; top: 0; right: calc(var(--pad) - 4px); z-index: 120; width: 30px; height: 150px; display: flex; flex-direction: column; align-items: center; }
.cord__line { width: 1.5px; flex: 1; background: linear-gradient(var(--brass-d), var(--brass)); transform-origin: top; }
.cord__knob {
  width: 13px; height: 22px; border-radius: 50% 50% 45% 45% / 40% 40% 60% 60%;
  background: radial-gradient(circle at 35% 30%, #fff3cf, var(--brass) 45%, #6b4e18);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .45);
}
.cord:hover .cord__knob { filter: brightness(1.15); }
.cord.pulled { animation: pull .7s var(--ease); }
@keyframes pull { 0% { transform: translateY(0); } 30% { transform: translateY(38px); } 60% { transform: translateY(-8px); } 100% { transform: translateY(0); } }
.cord-hint { animation: sway 3.4s ease-in-out infinite; transform-origin: top center; }
@keyframes sway { 0%,100% { transform: rotate(0); } 50% { transform: rotate(4deg); } }

/* View-transition circular reveal for theme switch */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ============ HERO ============ */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; padding: 110px var(--pad) 26px; overflow: hidden; }
.hero__glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 50% at 75% 40%, rgba(227, 188, 108, .1), transparent 70%), radial-gradient(40% 40% at 10% 90%, rgba(126, 227, 139, .05), transparent 70%);
}
.hero__inner { position: relative; flex: 1; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px; max-width: 1400px; width: 100%; margin: 0 auto; }
.hero__title { font-size: clamp(44px, 7.4vw, 112px); font-weight: 650; letter-spacing: -.045em; line-height: .98; margin: 22px 0 18px; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .word { display: inline-block; }
.hero__lede { max-width: 520px; font-size: clamp(15px, 1.25vw, 18px); color: var(--ink-2); margin: 34px 0 30px; }
.hero__lede b { color: var(--ink); font-weight: 600; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Flip calendar */
.flip { position: relative; display: inline-block; perspective: 1400px; margin-top: 6px; }
.flip__rings {
  position: absolute; z-index: 3; left: 18px; right: 18px; top: -13px; height: 26px;
  background:
    radial-gradient(ellipse 4px 11px at 50% 50%, transparent 3px, var(--ink-2) 3.5px, var(--ink-2) 5px, transparent 5.5px) 0 0 / 28px 26px repeat-x;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .4));
}
.flip__stack { position: relative; transform-style: preserve-3d; }
.flip__page {
  background: var(--card); color: var(--card-ink); border-radius: 14px;
  font-size: clamp(30px, 4.6vw, 66px); font-weight: 650; letter-spacing: -.035em; line-height: 1;
  padding: .42em .6em .38em; min-width: 7.6em; white-space: nowrap;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 -3px 0 rgba(0, 0, 0, .06) inset;
  backface-visibility: hidden;
}
.flip__page--under { position: absolute; inset: 0; }
.flip__page--top { position: relative; transform-origin: 50% 0; z-index: 2; }
.flip__stack::after { /* paper stack depth */
  content: ""; position: absolute; left: 6px; right: 6px; bottom: -7px; height: 12px; z-index: -1; border-radius: 0 0 14px 14px;
  background: color-mix(in srgb, var(--card) 80%, #000); box-shadow: 0 18px 40px -10px rgba(0, 0, 0, .6);
}
.flip__no { position: absolute; right: 14px; bottom: 8px; z-index: 4; font-family: var(--mono); font-size: 9px; color: #999; letter-spacing: .1em; }
.flip__page.is-flipping { position: absolute; inset: 0; z-index: 3; pointer-events: none; }

/* Portrait */
.hero__visual { position: relative; display: grid; place-items: center; }
.portrait { position: relative; width: min(100%, 470px); aspect-ratio: 4 / 5; }
.portrait__mono, .portrait__photo { position: absolute; inset: 0; border-radius: 30px; overflow: hidden; }
.portrait__mono {
  display: flex; align-items: center; justify-content: center;
  font-size: clamp(150px, 20vw, 280px); line-height: .8; letter-spacing: -.06em;
  background:
    radial-gradient(60% 50% at 30% 25%, rgba(227, 188, 108, .35), transparent 70%),
    radial-gradient(60% 60% at 80% 85%, rgba(197, 86, 43, .3), transparent 70%),
    linear-gradient(160deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line);
}
.portrait__mono em { color: var(--ink); text-shadow: 0 20px 60px rgba(0, 0, 0, .4); }
.portrait__mono em + em { color: var(--brass); margin-left: -.08em; }
/* with a photo, the monogram becomes a faint backdrop behind the cut-out */
.portrait:not(.no-photo) .portrait__mono { align-items: flex-start; padding-top: 4%; font-size: clamp(220px, 30vw, 420px); }
.portrait:not(.no-photo) .portrait__mono em { color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--ink) 38%, transparent); text-shadow: none; }
.portrait:not(.no-photo) .portrait__mono em + em { -webkit-text-stroke-color: color-mix(in srgb, var(--brass) 80%, transparent); }
.portrait__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.portrait__bw { filter: grayscale(1) contrast(1.08) brightness(1.02); }
.portrait__color { clip-path: circle(0px at var(--mx, 50%) var(--my, 50%)); transition: clip-path .5s var(--ease); }
.portrait:hover .portrait__color { clip-path: circle(130px at var(--mx, 50%) var(--my, 50%)); }
.portrait.no-photo .portrait__photo { display: none; }
.portrait__ring { position: absolute; width: 150px; height: 150px; left: -60px; bottom: 60px; z-index: 3; animation: spin 18s linear infinite; }
.portrait__ring svg { width: 100%; height: 100%; overflow: visible; }
.portrait__ring text { font-family: var(--mono); font-size: 12.5px; letter-spacing: .18em; fill: var(--ink); }
.portrait__ring::after { content: "✦"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 22px; color: var(--brass); animation: spin 18s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.chip {
  position: absolute; right: -14px; bottom: 34px; z-index: 3; font-size: 12px; font-weight: 600;
  padding: 10px 16px; border-radius: 99px; background: var(--ink); color: var(--bg); box-shadow: var(--shadow);
  transition: transform .4s var(--ease);
}
.chip span { color: var(--brass); margin-left: 4px; }
:root[data-theme="light"] .chip span { color: #e3bc6c; }
.chip:hover { transform: translateY(-3px) rotate(-2deg); }

.hero__foot {
  position: relative; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute);
  border-top: 1px solid var(--line); padding-top: 18px; margin-top: 30px; max-width: 1400px; width: 100%; margin-inline: auto;
}
.hero__foot span { display: inline-flex; gap: 10px; align-items: center; }
.scrollhint i { display: inline-block; animation: bob 1.6s ease-in-out infinite; font-style: normal; }
@keyframes bob { 50% { transform: translateY(4px); } }

/* ============ BUTTONS ============ */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px; height: 52px; padding: 0 8px 0 24px;
  border-radius: 99px; font-size: 15px; font-weight: 600; overflow: hidden; isolation: isolate; will-change: transform;
}
.btn span { position: relative; z-index: 1; }
.btn--solid { background: var(--ink); color: var(--bg); }
.btn--solid::before { content: ""; position: absolute; inset: 0; z-index: 0; background: var(--brass); transform: translateY(101%); border-radius: 50% 50% 0 0; transition: transform .55s var(--ease), border-radius .55s var(--ease); }
.btn--solid:hover::before { transform: translateY(0); border-radius: 0; }
.btn--solid:hover { color: #111; }
.btn__arrow { position: relative; z-index: 1; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--ink); font-style: normal; transition: transform .5s var(--ease); }
.btn:hover .btn__arrow { transform: rotate(-45deg); }
.btn--ghost { padding: 0 24px; border: 1px solid var(--line-2); }
.btn--ghost:hover { background: var(--bg-3); }
.btn--big { height: 64px; font-size: clamp(14px, 1.6vw, 18px); }
.btn--big .btn__arrow { width: 48px; height: 48px; }

/* ============ MARQUEE ============ */
.marquee { position: relative; padding: 40px 0; overflow: hidden; border-block: 1px solid var(--line); }
.marquee__row { display: flex; white-space: nowrap; }
.marquee__track { display: flex; align-items: center; gap: 34px; padding-right: 34px; flex-shrink: 0; will-change: transform; }
.marquee__row span { font-size: clamp(44px, 7vw, 104px); font-weight: 700; letter-spacing: -.045em; line-height: 1.05; }
.marquee__row span.o { color: transparent; -webkit-text-stroke: 1.2px var(--ink); }
.marquee__row b { color: var(--brass); font-size: clamp(22px, 3vw, 40px); font-weight: 400; }
.marquee__row--alt { margin-top: 8px; }
.marquee__row--alt span { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(34px, 5vw, 72px); letter-spacing: -.01em; color: var(--mute); }
.marquee__row--alt span.o { -webkit-text-stroke: 0; color: var(--ink-2); }
.marquee__row--alt b { font-size: 12px; }

/* ============ SECTION HEAD ============ */
section { position: relative; z-index: 2; }
.section-head { max-width: 1400px; margin: 0 auto; padding: 0 var(--pad); text-align: center; }
.section-head h2 { font-size: clamp(40px, 6.4vw, 96px); font-weight: 650; letter-spacing: -.045em; line-height: 1; margin-top: 18px; }
.section-head h2 em { color: var(--brass); }
.section-sub { color: var(--mute); margin-top: 16px; font-size: 16px; }
.reveal-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .16em; margin-bottom: -.08em; }
.reveal-words .w > span { display: inline-block; }

/* ============ DOORS ============ */
.doors { padding: clamp(100px, 14vw, 180px) 0 clamp(80px, 10vw, 140px); }
.doors__hall {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2.4vw, 36px);
  max-width: 1240px; margin: clamp(50px, 7vw, 90px) auto 0; padding: 0 var(--pad); position: relative;
}
.doors__hall::after { /* floor */
  content: ""; position: absolute; left: 0; right: 0; bottom: -40px; height: 80px; pointer-events: none;
  background: radial-gradient(50% 100% at 50% 0, rgba(0, 0, 0, .55), transparent 70%);
}
:root[data-theme="light"] .doors__hall::after { background: radial-gradient(50% 100% at 50% 0, rgba(60, 45, 20, .18), transparent 70%); }
.door {
  position: relative; aspect-ratio: 9 / 17; perspective: 1600px;
  border-radius: 999px 999px 6px 6px; padding: 10px;
  background: linear-gradient(180deg, #2a2d27, #1a1c18); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), var(--shadow);
}
:root[data-theme="light"] .door { background: linear-gradient(180deg, #cfc7b6, #b9b09d); }
.door__room {
  position: absolute; inset: 10px; border-radius: 999px 999px 4px 4px; overflow: hidden;
  background: radial-gradient(90% 60% at 50% 30%, color-mix(in srgb, var(--glow) 55%, #fff), var(--glow) 35%, var(--door-d) 100%);
  color: #0d0e0c; padding: 42% 10% 10%; display: flex; flex-direction: column;
}
.door__room h3 { font-size: clamp(17px, 1.7vw, 24px); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
.door__tag { font-family: var(--mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: .08em; margin: 8px 0 14px; opacity: .7; }
.door__room ul { list-style: none; display: grid; gap: 8px; font-size: clamp(11px, .95vw, 13.5px); line-height: 1.3; }
.door__room li { display: flex; gap: 8px; }
.door__room li::before { content: ""; flex: 0 0 6px; height: 6px; margin-top: 5px; border-radius: 50%; background: currentColor; opacity: .6; }
.door__walk { margin-top: auto; align-self: flex-start; font-size: 13px; font-weight: 700; padding: 10px 16px; border-radius: 99px; background: #0d0e0c; color: #fff; display: inline-flex; gap: 8px; }
.door__walk i { font-style: normal; transition: transform .4s var(--ease); }
.door__walk:hover i { transform: translateX(4px); }
.door__room > * { opacity: 0; transform: translateX(20px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.door.is-open .door__room > * { opacity: 1; transform: none; }
.door.is-open .door__room > *:nth-child(2) { transition-delay: .05s; }
.door.is-open .door__room > *:nth-child(3) { transition-delay: .1s; }
.door.is-open .door__room > *:nth-child(4) { transition-delay: .15s; }

.door__leaf {
  position: absolute; inset: 10px; border-radius: 999px 999px 4px 4px; transform-origin: 0 50%;
  transform-style: preserve-3d; cursor: pointer; z-index: 2;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .08), transparent 12%, transparent 88%, rgba(0, 0, 0, .25)),
    repeating-linear-gradient(90deg, transparent 0 9px, rgba(0, 0, 0, .16) 9px 10px, rgba(255, 255, 255, .05) 10px 11px),
    linear-gradient(180deg, var(--door), var(--door-d));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), inset 0 -30px 50px rgba(0, 0, 0, .25);
  transition: transform 1.1s cubic-bezier(.2, .9, .2, 1), box-shadow .6s;
}
.door__leaf::after { /* light leak along the hinge-opposite edge */
  content: ""; position: absolute; top: 8%; bottom: 0; right: -2px; width: 3px; border-radius: 3px;
  background: var(--glow); filter: blur(3px); opacity: 0; transition: opacity .5s;
}
.door:hover .door__leaf { transform: rotateY(-16deg); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 20px 0 40px -10px var(--glow); }
.door:hover .door__leaf::after { opacity: .9; }
.door.is-open .door__leaf { transform: rotateY(-104deg); box-shadow: none; pointer-events: none; }
.door.is-open .door__leaf::after { opacity: 0; }
.door.is-open .door__plate, .door.is-open .door__knob { opacity: 0; transition: opacity .3s .3s; }
.door.is-open .door__leaf { filter: brightness(.6); }
.door__plate {
  position: absolute; left: 50%; top: 30%; transform: translateX(-50%); width: 64%; padding: 8px 6px;
  text-align: center; font-family: var(--mono); font-size: clamp(8px, .75vw, 10.5px); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; line-height: 1.25;
  color: #3a2a0c; border-radius: 3px;
  background: linear-gradient(135deg, #8a6a2a, #f5dc95 35%, #c9a04e 55%, #fff1c2 75%, #9b7a35);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .35);
}
.door__knob {
  position: absolute; right: 12%; top: 58%; width: 26%; height: 9px; border-radius: 9px;
  background: linear-gradient(180deg, #fff0c0, #d4a94f 50%, #7d5a1e); box-shadow: 0 4px 8px rgba(0, 0, 0, .5);
  transform-origin: 85% 50%; transition: transform .4s var(--ease);
}
.door__knob::after { content: ""; position: absolute; right: 2px; top: 14px; width: 6px; height: 10px; border-radius: 3px; background: #2a1f0c; opacity: .6; }
.door:hover .door__knob { transform: rotate(-22deg); }
.doors__hint { text-align: center; margin-top: 70px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }

.portal { position: fixed; z-index: 150; pointer-events: none; border-radius: 999px 999px 0 0; opacity: 0; }

/* ============ WORK (stacking cards) ============ */
.work { padding: clamp(60px, 8vw, 120px) 0 60px; }
.stack { max-width: 1320px; margin: clamp(40px, 6vw, 80px) auto 0; padding: 0 var(--pad); }
.project {
  position: sticky; top: 90px; min-height: min(78vh, 720px); margin-bottom: 40px;
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 4vw, 60px); align-items: center;
  padding: clamp(24px, 4vw, 56px); border-radius: 32px; overflow: hidden;
  background: linear-gradient(150deg, var(--bg-3), var(--bg-2) 60%); border: 1px solid var(--line);
  box-shadow: 0 -20px 60px -30px rgba(0, 0, 0, .7); transform-origin: 50% 0;
}
.project::before { content: ""; position: absolute; width: 60%; aspect-ratio: 1; right: -15%; top: -30%; border-radius: 50%; background: var(--accent); opacity: .12; filter: blur(80px); pointer-events: none; }
.project__no { font-family: var(--mono); font-size: 12px; color: var(--accent); display: flex; gap: 14px; letter-spacing: .08em; }
.project__no span { color: var(--mute); text-transform: uppercase; }
.project h3 { font-size: clamp(38px, 5vw, 76px); font-weight: 650; letter-spacing: -.045em; line-height: 1; margin: 14px 0 18px; }
.project__info > p:not(.project__no) { color: var(--ink-2); font-size: clamp(14px, 1.15vw, 16.5px); max-width: 480px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 26px; }
.tags li { font-size: 12px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--ink-2); }
.project__stats { display: flex; gap: 28px; margin: -6px 0 26px; flex-wrap: wrap; }
.project__stats b { display: block; font-size: 28px; letter-spacing: -.03em; color: var(--accent); }
.project__stats small { font-family: var(--mono); font-size: 10px; text-transform: uppercase; color: var(--mute); letter-spacing: .08em; }

.monitor { position: relative; width: 100%; }
.monitor__screen {
  position: relative; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: #000;
  border: 10px solid #0b0b0b; box-shadow: 0 0 0 1px #2c2c2c, 0 50px 80px -30px rgba(0, 0, 0, .8);
}
.monitor__screen img { width: 100%; height: auto; transform: translateY(0); transition: transform 6s cubic-bezier(.45, 0, .55, 1); }
.monitor:hover .monitor__screen img { transform: translateY(calc(-100% + var(--sh, 300px))); }
.monitor__screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, .1), transparent 40%); }
.monitor__stand { width: 22%; height: 56px; margin: 0 auto; background: linear-gradient(90deg, #8d8d8d, #e2e2e2 40%, #a5a5a5); clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%); }
.monitor::after { content: ""; display: block; width: 40%; height: 7px; margin: 0 auto; border-radius: 3px 3px 8px 8px; background: linear-gradient(90deg, #7a7a7a, #e0e0e0 45%, #8a8a8a); box-shadow: 0 14px 30px rgba(0, 0, 0, .5); }

/* ============ DESIGN REEL ============ */
.design { padding: clamp(80px, 10vw, 140px) 0; overflow: hidden; }
.reel { margin-top: clamp(40px, 6vw, 70px); cursor: grab; user-select: none; touch-action: pan-y; }
.reel.is-drag { cursor: grabbing; }
.reel__track { display: flex; gap: 22px; align-items: center; padding: 20px var(--pad); width: max-content; will-change: transform; }
.tile { position: relative; flex: 0 0 auto; width: clamp(220px, 24vw, 340px); border-radius: 18px; overflow: hidden; background: var(--bg-3); box-shadow: var(--shadow); transition: transform .6s var(--ease); }
.tile--tall { width: clamp(200px, 20vw, 290px); }
.tile--wide { width: clamp(380px, 44vw, 620px); }
.tile img { width: 100%; height: auto; pointer-events: none; transition: transform .8s var(--ease); }
.tile:hover img { transform: scale(1.04); }
.tile figcaption {
  position: absolute; left: 12px; bottom: 12px; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 99px; background: rgba(10, 10, 10, .75); color: #fff; backdrop-filter: blur(6px);
  transform: translateY(8px); opacity: 0; transition: .4s var(--ease);
}
.tile:hover figcaption { transform: none; opacity: 1; }

/* ============ NUMBERS ============ */
.numbers { padding: 20px var(--pad) clamp(80px, 10vw, 140px); }
.numbers__grid { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 34px 24px 0 0; border-right: 1px solid var(--line); padding-left: 24px; }
.stat:first-child { padding-left: 0; } .stat:last-child { border-right: 0; }
.stat b { display: block; font-size: clamp(40px, 5.4vw, 80px); font-weight: 650; letter-spacing: -.05em; line-height: 1; }
.stat span { display: block; margin-top: 12px; color: var(--mute); font-size: 14px; max-width: 200px; }

/* ============ STORY ============ */
.story { padding: clamp(80px, 10vw, 140px) var(--pad); overflow: clip; }
.story__glow {
  position: absolute; width: 70vw; aspect-ratio: 1; left: -15vw; top: 10%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, var(--g, #c8a24f), transparent 65%); opacity: .2; filter: blur(40px); transition: background .8s;
}
.story__inner { position: relative; max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 100px); }
.story__sticky { position: sticky; top: 18vh; align-self: start; }
.story__sticky h2 { font-size: clamp(28px, 3.2vw, 46px); font-weight: 600; letter-spacing: -.03em; margin-top: 14px; }
.year { display: flex; font-size: clamp(110px, 15vw, 230px); font-weight: 700; letter-spacing: -.06em; line-height: 1; height: 1em; overflow: hidden; margin: 10px 0 6px; }
.digit { position: relative; display: inline-block; height: 1em; overflow: hidden; }
.digit__col { display: flex; flex-direction: column; transition: transform 1s cubic-bezier(.7, 0, .2, 1); }
.digit__col span { height: 1em; display: block; }
.story__range { font-family: var(--mono); font-size: 13px; letter-spacing: .14em; color: var(--ink-2); }
.story__progress { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; color: var(--mute); margin-top: 16px; }
.story__progress span { color: var(--ink); }
.story__progress i { width: 140px; height: 2px; background: var(--line-2); display: block; overflow: hidden; }
.story__progress b { display: block; height: 100%; width: 100%; background: var(--brass); transform-origin: left; transform: scaleX(.2); transition: transform .6s var(--ease); }
.timeline { list-style: none; border-left: 1px solid var(--line-2); padding: 18vh 0 18vh; }
.tl { position: relative; padding: 0 0 18vh 40px; opacity: .28; transition: opacity .6s var(--ease); }
.tl:last-child { padding-bottom: 0; }
.tl::before { content: ""; position: absolute; left: -6px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-2); transition: .5s var(--ease); }
.tl.is-active { opacity: 1; }
.tl.is-active::before { background: var(--live); border-color: var(--live); box-shadow: 0 0 0 5px color-mix(in srgb, var(--live) 25%, transparent), 0 0 20px var(--live); }
.tl small { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--mute); }
.tl h3 { font-size: clamp(22px, 2.3vw, 32px); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; margin: 8px 0 6px; }
.tl__org { color: var(--brass); font-size: 14px; }
.tl ul { margin-top: 14px; padding-left: 18px; color: var(--ink-2); display: grid; gap: 6px; font-size: 15px; }

/* ============ TOOLS ============ */
.tools { padding: 40px var(--pad) clamp(90px, 10vw, 140px); text-align: center; }
.tools__title { font-size: clamp(22px, 2.4vw, 32px); font-weight: 600; letter-spacing: -.03em; }
.tools__cloud { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 900px; margin: 26px auto 0; }
.tools__cloud span {
  font-size: clamp(14px, 1.4vw, 18px); padding: 10px 20px; border-radius: 99px; border: 1px solid var(--line-2);
  transition: background-color .3s, color .3s, transform .4s var(--ease);
}
.tools__cloud span:hover { background: var(--ink); color: var(--bg); transform: translateY(-4px) rotate(-3deg); }

/* ============ CONTACT ============ */
.contact { padding: 0 var(--pad) 24px; }
.contact__card {
  max-width: 1400px; margin: 0 auto; border-radius: 36px; padding: clamp(36px, 7vw, 100px);
  background: radial-gradient(70% 90% at 90% 0%, rgba(227, 188, 108, .16), transparent 60%), linear-gradient(160deg, #191c16, #0b0c0a);
  color: #f1ede4; border: 1px solid rgba(255, 255, 255, .08); box-shadow: var(--shadow); overflow: hidden; position: relative;
}
.contact__card .eyebrow { color: #9a9d93; }
.contact__title { font-size: clamp(44px, 8vw, 128px); font-weight: 650; letter-spacing: -.05em; line-height: .96; margin: 22px 0 26px; }
.contact__title span { display: block; }
.contact__title .muted { color: #7f8378; }
.contact__title em { color: #e3bc6c; }
.contact__lede { max-width: 520px; color: #c9c5bb; margin-bottom: 34px; }
.contact__card .btn--solid { background: #f1ede4; color: #0e100d; }
.contact__card .btn__arrow { background: #0e100d; color: #f1ede4; }
.contact__card .btn--ghost { border-color: rgba(255, 255, 255, .2); }
.contact__card .btn--ghost:hover { background: rgba(255, 255, 255, .08); }
.foot { max-width: 1400px; margin: 0 auto; }
.foot__giant { display: flex; justify-content: space-between; font-size: clamp(70px, 19vw, 300px); font-weight: 800; letter-spacing: -.06em; line-height: .8; padding-top: 50px; overflow: hidden; }
.foot__giant span { font-variation-settings: "wght" var(--w, 800); font-weight: 800; background: linear-gradient(180deg, var(--ink), color-mix(in srgb, var(--ink) 10%, transparent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.foot__row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); border-top: 1px solid var(--line); padding-top: 18px; margin-top: 12px; }

.foot__giant span { display: inline-block; }

/* ============ LIGHTBOX ============ */
.lightbox { position: fixed; inset: 0; z-index: 240; display: grid; place-items: center; padding: 6vh 4vw; background: rgba(6, 7, 6, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); opacity: 0; pointer-events: none; transition: opacity .4s var(--ease); }
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: 18px; box-shadow: 0 40px 100px rgba(0, 0, 0, .6); transform-origin: 0 0; will-change: transform; }
.lightbox__cap { position: absolute; bottom: 3vh; left: 0; right: 0; text-align: center; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #c9c5bb; }
.tile { cursor: zoom-in; }
.reel.is-drag .tile { cursor: grabbing; }

/* ============ ABILITY CARD ============ */
.ability { position: fixed; inset: 0; z-index: 250; display: grid; place-items: center; background: rgba(5, 6, 5, .7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; pointer-events: none; transition: opacity .4s; perspective: 1400px; }
.ability.is-open { opacity: 1; pointer-events: auto; }
.ability__card { position: relative; width: min(340px, 82vw); aspect-ratio: 5 / 7; transform-style: preserve-3d; transition: transform .9s var(--ease); cursor: pointer; transform: rotateY(-25deg) scale(.85); }
.ability.is-open .ability__card { transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)) scale(1); }
.ability.is-open .ability__card.is-flipped { transform: rotateX(var(--tx, 0deg)) rotateY(calc(180deg + var(--ty, 0deg))); }
.ability__face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 22px; padding: 22px;
  background: linear-gradient(145deg, #f6e3ad, #c99a44 30%, #f7e7bb 50%, #a87a2a 75%, #f1d898); color: #2a1d06;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .6), inset 0 0 0 6px rgba(255, 255, 255, .3);
  display: flex; flex-direction: column; overflow: hidden;
}
.ability__face::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .55) 45%, transparent 60%); transform: translateX(-100%); animation: shine 3.5s ease-in-out infinite; }
/* holographic foil: a rainbow sheen that follows the pointer */
.holo {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; mix-blend-mode: overlay; opacity: .12; border-radius: inherit; transition: opacity .4s;
  background:
    radial-gradient(circle at var(--hx, 50%) var(--hy, 30%), rgba(255, 255, 255, .55), transparent 40%),
    linear-gradient(115deg, transparent 20%, #ff7ad9 32%, #ffe56b 42%, #6bffd5 52%, #7aa8ff 62%, transparent 74%);
  background-size: 100% 100%, 260% 260%;
  background-position: 0 0, var(--hp, 50%) 50%;
}
.ability__card { transform-style: preserve-3d; }
.ability__card.is-tilting { transition: transform .15s linear; }
.ability__card.is-tilting .holo { opacity: .38; }
@keyframes shine { 60%, 100% { transform: translateX(100%); } }
.ability__top { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; }
.ability__art { flex: 1; margin: 16px 0; border-radius: 14px; background: radial-gradient(80% 70% at 50% 30%, #2b2f27, #0e100d); display: flex; align-items: center; justify-content: center; font-size: 120px; line-height: 1; color: #f1ede4; overflow: hidden; }
.ability__art em + em { color: #e3bc6c; margin-left: -.08em; }
.ability__art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; filter: grayscale(1); }
.ability__front h3 { font-size: 28px; letter-spacing: -.03em; line-height: 1; }
.ability__front p { font-size: 13px; margin-top: 4px; }
.ability__front small { font-family: var(--mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; margin-top: 10px; opacity: .6; }
.ability__back { transform: rotateY(180deg); background: linear-gradient(160deg, #1b1e18, #0c0d0b); color: #f1ede4; box-shadow: 0 40px 90px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(227, 188, 108, .5), inset 0 0 0 7px #0c0d0b, inset 0 0 0 8px rgba(227, 188, 108, .3); }
.ability__back h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #e3bc6c; margin-bottom: 18px; }
.bars { display: grid; gap: 14px; }
.bar { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; font-size: 13px; }
.bar i { grid-column: 1 / -1; grid-row: 2; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .1); position: relative; overflow: hidden; }
.bar i::after { content: ""; position: absolute; inset: 0; width: var(--v); background: linear-gradient(90deg, #a8833a, #e3bc6c); border-radius: 4px; transform-origin: left; transform: scaleX(0); transition: transform 1s var(--ease) .3s; }
.ability__card.is-flipped .bar i::after { transform: scaleX(1); }
.bar b { font-family: var(--mono); color: #e3bc6c; font-weight: 500; }
.ability__special { margin-top: auto; font-size: 13px; color: #c9c5bb; }
.ability__special b { color: #e3bc6c; }
.ability__close { position: absolute; top: 22px; right: 22px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); color: #fff; font-size: 24px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .nav__date { display: none; }
  .cord { right: calc(var(--pad) + 52px); height: 110px; }
  .door__room { padding-top: 36%; }
}
@media (max-width: 860px) {
  .hero { padding-top: 96px; }
  .hero__inner { grid-template-columns: 1fr; gap: 30px; }
  .hero__visual { order: -1; }
  .portrait { width: min(72vw, 330px); }
  .portrait__ring { width: 110px; height: 110px; left: -34px; bottom: 30px; }
  .portrait__ring text { font-size: 13px; }
  .hero__title { margin-top: 14px; }
  .hero__lede { margin-top: 26px; }
  .doors__hall { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .door { aspect-ratio: 9 / 15; }
  .door__room { padding: 34% 9% 9%; }
  .project { grid-template-columns: 1fr; position: relative; top: 0; min-height: 0; }
  .project__media { order: -1; }
  .numbers__grid { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 26px 16px 26px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:nth-child(odd) { border-right: 1px solid var(--line); }
  .stat:nth-child(even) { padding-left: 16px; }
  .story__inner { grid-template-columns: 1fr; gap: 0; }
  .story__sticky { top: 64px; z-index: 3; padding: 16px 0 14px; background: linear-gradient(var(--bg) 82%, transparent); }
  .story__sticky h2 { display: none; }
  .year { font-size: clamp(76px, 24vw, 120px); margin: 4px 0; }
  .timeline { padding: 6vh 0 10vh; }
  .tl { padding-bottom: 14vh; padding-left: 26px; }
}
@media (max-width: 560px) {
  .nav { padding-top: 14px; padding-bottom: 14px; }
  .nav__logo span { display: none; }
  .nav__time small { display: none; }
  .cord { height: 78px; }
  .flip__no { display: none; }
  .chip { right: 10px; }
  .flip__page { min-width: 0; width: calc(100vw - 2 * var(--pad)); }
  .hero__foot span:nth-child(2) { display: none; }
  .door__plate { font-size: 8px; letter-spacing: .1em; }
  .door__room h3 { font-size: 16px; }
  .door__room ul { gap: 5px; font-size: 11px; }
  .door__room { padding: 30% 8% 8%; }
  .door__room li:nth-child(n+3) { display: none; }
  .monitor__stand { height: 34px; }
  .door__tag { margin: 5px 0 8px; font-size: 8.5px; }
  .door__walk { font-size: 11px; padding: 8px 12px; }
  .btn { height: 48px; font-size: 14px; }
  .btn--big span { font-size: 13px; }
  .contact__card { border-radius: 26px; }
  .foot__row { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .2s !important; }
}
