/* ==========================================================================
   Top Floor Design — Dani Salman
   Core stylesheet
   ========================================================================== */

:root {
  --bg: #0a0a0b;
  --bg-raise: #111113;
  --card: #151517;
  --card-2: #1b1b1e;
  --line: rgba(237, 235, 229, 0.1);
  --line-strong: rgba(237, 235, 229, 0.2);
  --text: #edebe5;
  --text-2: #b8b6af;
  --muted: #85837d;
  --accent: #ff5a1f;
  --accent-ink: #0a0a0b;
  --accent-soft: color-mix(in srgb, var(--accent) 16%, transparent);

  --f-sans: "Inter Tight", "Helvetica Neue", Arial, system-ui, sans-serif;
  --f-serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --gutter: clamp(16px, 3.4vw, 52px);
  --radius: 14px;
  --radius-lg: 22px;
  --header-h: 76px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);

  --fs-display: clamp(52px, 8.6vw, 148px);
  --fs-h2: clamp(40px, 6.2vw, 104px);
  --fs-h3: clamp(26px, 2.8vw, 42px);
  --fs-lede: clamp(19px, 1.7vw, 26px);
}

/* Project accents ------------------------------------------------------- */
body[data-project="werks"]   { --accent: #e0263a; --accent-2: #e8720c; }
body[data-project="design"]  { --accent: #f3d104; --accent-2: #c9cbd0; }
body[data-project="opal"]    { --accent: #c9a063; --accent-2: #7a1f2b; }
body[data-project="fortune"] { --accent: #e0a64b; --accent-2: #c0392b; }

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 1000; padding: 10px 16px;
  background: var(--text); color: var(--bg); border-radius: 999px; transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* Film grain ------------------------------------------------------------- */
.grain {
  pointer-events: none; position: fixed; inset: -50%; z-index: 90; opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* Typography helpers ----------------------------------------------------- */
.label {
  font-family: var(--f-mono); font-size: 11.5px; line-height: 1.4; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}
.label--accent { color: var(--accent); }
.serif, h1 em, h2 em, h3 em, .display em {
  font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em;
}
.display {
  font-size: var(--fs-h2); line-height: 0.94; letter-spacing: -0.04em; font-weight: 500;
}
.display em { letter-spacing: -0.02em; }
.lede { font-size: var(--fs-lede); line-height: 1.38; letter-spacing: -0.012em; color: var(--text-2); }
.lede strong { color: var(--text); font-weight: 500; }
.body-copy { color: var(--text-2); font-size: 17px; line-height: 1.65; max-width: 62ch; }
.body-copy + .body-copy { margin-top: 1em; }
.body-copy strong { color: var(--text); font-weight: 500; }

/* Split text (built by main.js) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.2em 0.08em 0.22em; margin: -0.2em -0.08em -0.22em; }
.wi { display: inline-block; will-change: transform; }
.c { display: inline-block; will-change: transform; }
[data-scrub-words] .w { overflow: visible; }

/* Layout ----------------------------------------------------------------- */
.wrap { padding-inline: var(--gutter); }
.section { padding-block: clamp(96px, 14vw, 200px); position: relative; }
.section--tight { padding-block: clamp(64px, 9vw, 128px); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 1.6vw, 24px); }

.section-head {
  display: grid; grid-template-columns: 1fr; gap: 20px; align-items: end;
  margin-bottom: clamp(48px, 7vw, 96px);
}
@media (min-width: 900px) {
  .section-head { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); }
  .section-head .label { padding-bottom: 0.9em; }
}

/* Buttons ---------------------------------------------------------------- */
.btn {
  --btn-bg: var(--text); --btn-fg: var(--bg);
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 26px; border-radius: 999px; overflow: hidden; isolation: isolate;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 500; font-size: 15px; letter-spacing: -0.005em; white-space: nowrap;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent);
  border-radius: inherit; transform: translateY(101%); transition: transform 0.6s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--accent-ink); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn__arrow { display: inline-block; transition: transform 0.5s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px) rotate(-45deg); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 500;
  padding-bottom: 4px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size 0.6s var(--ease);
}
.link-arrow:hover { background-size: 0 1px; background-position: 100% 100%; }
.link-arrow span { transition: transform 0.5s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; align-items: flex-start; align-self: start; }
.chips li, .chip {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 7px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--text-2);
}

/* Custom cursor ---------------------------------------------------------- */
.cursor { position: fixed; inset: 0 auto auto 0; z-index: 200; pointer-events: none; display: none; }
.has-cursor .cursor { display: block; }
.cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--text); mix-blend-mode: difference; }
.cursor__ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px; box-shadow: inset 0 0 0 1px rgba(237,235,229,.45);
  display: grid; place-items: center;
  transition: width .5s var(--ease), height .5s var(--ease), margin .5s var(--ease), background-color .4s, box-shadow .4s;
}
.cursor__label {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-ink); opacity: 0; transform: scale(.6); transition: opacity .3s, transform .5s var(--ease);
}
.cursor.is-link .cursor__ring { width: 58px; height: 58px; margin: -29px 0 0 -29px; box-shadow: inset 0 0 0 1px var(--accent); }
.cursor.is-label .cursor__ring { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--accent); box-shadow: none; }
.cursor.is-label .cursor__label { opacity: 1; transform: none; }
.cursor.is-label .cursor__dot { opacity: 0; }
.cursor.is-hidden .cursor__ring, .cursor.is-hidden .cursor__dot { opacity: 0; }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }
.has-cursor input[type="range"], .has-cursor select { cursor: pointer; }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 80; height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding-inline: var(--gutter);
  transition: transform .7s var(--ease), background-color .4s;
}
.site-header::before {
  content: ""; position: absolute; inset: 0 0 -28px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(10,10,11,.96) 0%, rgba(10,10,11,.9) 58%, rgba(10,10,11,0) 100%);
  opacity: 0; transition: opacity .4s;
}
.site-header.is-scrolled::before { opacity: 1; }
.site-header.is-hidden { transform: translateY(-110%); }

.brand { display: inline-flex; align-items: center; gap: 12px; justify-self: start; }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__mark .lit { fill: var(--accent); transition: fill .4s; }
.brand__name { font-size: 13px; line-height: 1.1; font-weight: 600; letter-spacing: -0.01em; }
.brand__name span { display: block; color: var(--muted); font-weight: 400; }

.nav { display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(21,21,23,.7); box-shadow: inset 0 0 0 1px var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.nav a {
  position: relative; padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--text-2);
  transition: color .3s, background-color .3s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: rgba(237,235,229,.08); }

.floor-display {
  justify-self: end; display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.floor-display__panel {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 10px; border-radius: 8px;
  background: #0d0d0e; box-shadow: inset 0 0 0 1px var(--line), 0 0 0 1px rgba(0,0,0,.4);
}
.floor-display__arrow { width: 9px; height: 9px; color: var(--accent); transition: transform .5s var(--ease); }
.floor-display.is-down .floor-display__arrow { transform: rotate(180deg); }
.floor-display__num {
  position: relative; display: inline-block; height: 1.3em; overflow: hidden; min-width: 2.2ch;
  color: var(--accent); font-weight: 500; font-size: 14px; line-height: 1.3; text-shadow: 0 0 12px color-mix(in srgb, var(--accent) 60%, transparent);
}
.floor-display__num span { display: block; }
.floor-display__label { min-width: 12ch; text-align: right; }
.floor-display__time { color: var(--text-2); }

@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .site-header { grid-template-columns: auto 1fr auto; }
  .brand__name { display: none; }
  .nav { justify-self: center; }
  .nav a { padding: 7px 11px; font-size: 13px; }
  .floor-display__label, .floor-display__time { display: none; }
}
@media (max-width: 360px) {
  .nav a { padding: 7px 8px; }
}

/* Elevator doors (page transition + preloader) ---------------------------- */
.doors { --dc: var(--doors-c, var(--accent)); position: fixed; inset: 0; z-index: 150; pointer-events: none; visibility: hidden; overflow: hidden; }
.door { position: absolute; top: 0; bottom: 0; width: 50.5%; background: #0b0b0c; will-change: transform; }
.door--l { left: 0; transform: translateX(-101%); }
.door--r { right: 0; transform: translateX(101%); }
.doors__seam { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; margin-left: -0.5px; opacity: 0; transform: scaleY(0);
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--dc) 65%, #fff) 50%, transparent); }
.doors__stage { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; opacity: 0; will-change: opacity, transform; }
/* The number is an odometer. Each column is taller than its digit and fades at the top and
   bottom, so digits roll in and out softly instead of being cut by a hard edge. */
.doors__num { display: flex; height: 1.3em; font-family: var(--f-sans); font-weight: 300; font-size: clamp(64px, 8vw, 124px); line-height: 1.3; letter-spacing: -0.03em;
  color: var(--text); font-variant-numeric: tabular-nums; }
.doors__num:empty::before { content: var(--doors-num, ""); }
.doors__col { display: block; height: 1.3em; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 17%, #000 83%, transparent); mask-image: linear-gradient(180deg, transparent, #000 17%, #000 83%, transparent); }
.doors__col > span { display: block; will-change: transform; }
.doors__col b { display: block; height: 1.3em; font-weight: inherit; text-align: center; }
.doors__line { position: relative; width: clamp(120px, 11vw, 170px); height: 1px; overflow: hidden; background: rgba(237,235,229,.12); }
.doors__line i { position: absolute; inset: 0; background: var(--dc); transform: scaleX(0); transform-origin: 0 50%; }
.doors__label { margin-top: 10px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-2); white-space: nowrap; }
.doors[data-dir="up"] .doors__label::before, html[data-doors-dir="up"] .doors__label::before { content: "↑"; }
.doors[data-dir="down"] .doors__label::before, html[data-doors-dir="down"] .doors__label::before { content: "↓"; }
.doors__label::before { margin-right: .7em; color: var(--dc); }

html.doors-closed .doors { visibility: visible; pointer-events: auto; }
html.doors-closed .door--l, html.doors-closed .door--r { transform: none; }
html.doors-closed .doors__stage { opacity: 1; }
html.doors-closed .doors__line i { transform: none; }
html.is-preloading .doors__stage { opacity: 0; }
html.is-preloading .doors__line i { transform: scaleX(0); }
/* Safety net: if scripts never run, open the doors anyway. */
html.doors-closed .door--l { animation: doorFallbackL .9s var(--ease-io) 3.4s forwards; }
html.doors-closed .door--r { animation: doorFallbackR .9s var(--ease-io) 3.4s forwards; }
html.doors-closed .doors__stage { animation: doorFallbackP .3s linear 3.4s forwards; }
@keyframes doorFallbackL { to { transform: translateX(-101%); } }
@keyframes doorFallbackR { to { transform: translateX(101%); } }
@keyframes doorFallbackP { to { opacity: 0; } }
html.doors-js .door--l, html.doors-js .door--r, html.doors-js .doors__stage { animation: none; }

/* Reveal defaults (only when JS is running) -------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(40px); }
.js [data-reveal="fade"] { transform: none; }
.js [data-split] .wi { transform: translateY(140%); }
.js .reduced [data-reveal], .reduced [data-reveal] { opacity: 1 !important; transform: none !important; }

/* ==========================================================================
   Home
   ========================================================================== */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--header-h) + 40px) var(--gutter) clamp(28px, 4vw, 48px); overflow: hidden; isolation: isolate;
}
.hero__gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(10,10,11,0) 55%, var(--bg) 100%);
}
.hero__eyebrow { display: flex; justify-content: space-between; gap: 16px; margin-bottom: clamp(20px, 3vw, 36px); }
.hero__title {
  font-size: clamp(76px, 18.4vw, 330px); line-height: 0.8; letter-spacing: -0.065em; font-weight: 600;
  margin-left: -0.05em;
}
.hero__title .line { display: block; }
.hero__title .line--2 { padding-left: 13vw; }
.hero__title em { font-weight: 400; letter-spacing: -0.035em; }
.hero__title .c { transform: translateY(140%); }
.reduced .hero__title .c, .no-js .hero__title .c { transform: none; }
.hero__foot {
  display: grid; gap: 28px; margin-top: clamp(28px, 4vw, 56px); padding-top: 22px; border-top: 1px solid var(--line);
}
@media (min-width: 900px) { .hero__foot { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: end; } }
.hero__lede { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.4; color: var(--text-2); max-width: 36ch; letter-spacing: -0.01em; }
.hero__lede strong { color: var(--text); font-weight: 500; }
.hero__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
@media (min-width: 900px) { .hero__facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hero__facts li { display: grid; gap: 4px; }
.hero__facts strong { font-weight: 500; font-size: 16px; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; margin-right: 8px; box-shadow: 0 0 0 0 rgba(61,220,132,.6); animation: pulse 2.2s infinite; vertical-align: 1px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61,220,132,.55); } 70% { box-shadow: 0 0 0 10px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }
.hero .js-hero-fade { opacity: 0; }
.no-js .hero .js-hero-fade, .reduced .hero .js-hero-fade { opacity: 1; }

/* Lift control plate (hero) */
.lift { --lc: var(--pv, var(--accent)); position: absolute; right: var(--gutter); top: 50%; translate: 0 -46%; z-index: 3; display: none; }
@media (min-width: 1000px) and (min-height: 720px) { .lift { display: block; } }
.lift__plate {
  position: relative; width: 196px; padding: 18px 16px 16px; border-radius: 22px; overflow: hidden; isolation: isolate;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.018) 0 1px, transparent 1px 3px),
    linear-gradient(160deg, #2b2b30, #17171a 42%, #1e1e22 70%, #121214);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), inset 0 -1px 0 rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.05), 0 40px 80px -20px rgba(0,0,0,.75), 0 0 0 1px rgba(0,0,0,.6);
}
.lift__plate::after { content: ""; position: absolute; inset: -40% -60%; z-index: -1; pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.06) 48%, rgba(255,255,255,.1) 50%, rgba(255,255,255,.06) 52%, transparent 60%);
  animation: liftSheen 7s var(--ease-io) infinite; }
@keyframes liftSheen { 0% { transform: translateX(-40%); } 55%, 100% { transform: translateX(40%); } }
.lift__screw { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #6a6a70, #232326 70%); box-shadow: inset 0 0 0 1px rgba(0,0,0,.5); }
.lift__screw::after { content: ""; position: absolute; left: 1px; right: 1px; top: 50%; height: 1px; background: rgba(0,0,0,.6); transform: rotate(35deg); }
.lift__screw:nth-of-type(1) { left: 9px; top: 9px; } .lift__screw:nth-of-type(2) { right: 9px; top: 9px; }
.lift__screw:nth-of-type(3) { left: 9px; bottom: 9px; } .lift__screw:nth-of-type(4) { right: 9px; bottom: 9px; }

.lift__display { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 10px; padding: 11px 12px 10px; border-radius: 12px; margin-bottom: 16px; overflow: hidden;
  background: radial-gradient(120% 140% at 50% 0%, #0d0b0a, #040404); box-shadow: inset 0 2px 8px rgba(0,0,0,.9), inset 0 0 0 1px rgba(255,255,255,.06), 0 1px 0 rgba(255,255,255,.06); }
.lift__display::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0,0,0,.35) 0 1px, transparent 1px 3px); mix-blend-mode: multiply; }
.lift__display::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(160deg, rgba(255,255,255,.07), transparent 40%); }
.lift__arrow { grid-row: span 2; width: 12px; height: 12px; color: var(--lc); filter: drop-shadow(0 0 6px var(--lc)); transition: transform .5s var(--ease), opacity .3s; }
.lift__display.is-down .lift__arrow { transform: rotate(180deg); }
.lift__display.is-idle .lift__arrow { opacity: .35; }
.lift__num { position: relative; height: 1.1em; overflow: hidden; font-family: var(--f-mono); font-weight: 500; font-size: 28px; line-height: 1.1; color: var(--lc); letter-spacing: .02em;
  text-shadow: 0 0 10px color-mix(in srgb, var(--lc) 90%, transparent), 0 0 24px color-mix(in srgb, var(--lc) 50%, transparent); font-variant-numeric: tabular-nums; transition: color .35s, text-shadow .35s; }
.lift__num span { display: block; }
.lift__name { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: color-mix(in srgb, var(--lc) 70%, #fff); opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .35s; }

.lift__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; justify-items: center; }
.lift__btn { position: relative; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; isolation: isolate;
  font-family: var(--f-mono); font-size: 14px; font-weight: 500; color: #a9a9a3; letter-spacing: .04em;
  text-shadow: 0 1px 0 rgba(0,0,0,.85), 0 -1px 0 rgba(255,255,255,.06);
  background: radial-gradient(circle at 38% 30%, #45454b, #1b1b1f 62%, #111113);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), inset 0 -2px 4px rgba(0,0,0,.6), 0 0 0 3px #0c0c0e, 0 0 0 4px rgba(255,255,255,.07), 0 6px 14px rgba(0,0,0,.55);
  transition: color .35s, transform .2s var(--ease), box-shadow .35s; }
.lift__btn::before { content: ""; position: absolute; inset: 5px; border-radius: inherit; z-index: -1; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.08); transition: box-shadow .35s; }
.lift__btn--wide { grid-column: span 2; width: 100%; height: 44px; border-radius: 22px; display: flex; justify-content: center; gap: 10px; }
.lift__btn--wide small { font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; opacity: .6; }
.lift__btn:hover, .lift__btn:focus-visible { color: #fff; }
.lift__btn:hover::before, .lift__btn:focus-visible::before { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 80%, transparent), 0 0 16px color-mix(in srgb, var(--accent) 45%, transparent); }
.lift__btn:active { transform: translateY(1px) scale(.97); }
.lift__btn.is-here, .lift__btn.is-called { color: var(--accent); text-shadow: 0 0 10px var(--accent); }
.lift__btn.is-here::before, .lift__btn.is-called::before { box-shadow: inset 0 0 0 2px var(--accent), 0 0 22px color-mix(in srgb, var(--accent) 60%, transparent), inset 0 0 16px color-mix(in srgb, var(--accent) 35%, transparent); }
.lift__btn.is-called { animation: liftCall .5s var(--ease) 2; }
@keyframes liftCall { 50% { filter: brightness(1.6); } }
.lift__led { position: absolute; right: 12px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: blink 2s infinite; }
.lift__engrave { display: block; margin-top: 16px; text-align: center; font-family: var(--f-mono); font-size: 8.5px; letter-spacing: .24em; text-transform: uppercase; color: rgba(255,255,255,.22);
  text-shadow: 0 1px 0 rgba(0,0,0,.8); }

.lift__preview { position: absolute; right: calc(100% + 18px); top: 50%; width: 300px; translate: 0 -50%; pointer-events: none; opacity: 0; transform: translateX(16px) scale(.97); transform-origin: 100% 50%;
  transition: opacity .35s var(--ease), transform .6s var(--ease); }
.lift__preview.is-on { opacity: 1; transform: none; }
.lift__pv-media { position: relative; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: #0b0b0c; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 30px 60px rgba(0,0,0,.6); }
.lift__pv-media img, .lift__pv-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lift__pv-media video { opacity: 0; transition: opacity .4s; }
.lift__pv-media video.is-playing { opacity: 1; }
.lift__pv-text { display: grid; gap: 3px; margin-top: 12px; padding: 0 2px; text-align: right; }

.lift__pv-text b { font-size: 22px; font-weight: 500; letter-spacing: -0.03em; }
.lift__pv-text small { font-size: 13px; color: var(--text-2); }

/* Manifesto */
.manifesto { display: grid; gap: 40px; }
@media (min-width: 900px) { .manifesto { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); } }
.manifesto__text {
  font-size: clamp(30px, 4.2vw, 68px); line-height: 1.06; letter-spacing: -0.035em; font-weight: 500;
}
.manifesto__text em { color: var(--accent); }
.manifesto__cta { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 14px; }

/* Selected work — horizontal track */
.work { position: relative; padding-top: clamp(80px, 10vw, 140px); }
.work__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-inline: var(--gutter); margin-bottom: clamp(36px, 5vw, 64px); }
.work__count { font-family: var(--f-mono); font-size: clamp(14px, 1.2vw, 18px); color: var(--muted); }
.work__pin { position: relative; }
@media (min-width: 900px) { .work__pin { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: calc(var(--header-h) - 10px); } }
.work__track { display: flex; gap: clamp(16px, 2vw, 28px); padding-inline: var(--gutter); will-change: transform; }
.work__progress { margin: clamp(28px, 4vw, 48px) var(--gutter) 0; height: 1px; background: var(--line); position: relative; }
.work__progress i { position: absolute; inset: 0; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

.work-card {
  --card-accent: var(--accent);
  position: relative; flex: none; width: min(74vw, 1040px, calc((100svh - 330px) * 1.6)); display: grid; gap: 22px;
}
.work-card__media {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
  transform: translateZ(0);
}
.work-card__media img, .work-card__media canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.4s var(--ease); }
.work-card:hover .work-card__media img { transform: scale(1.02); }
.work-card__glow {
  position: absolute; inset: auto -20% -60% -20%; height: 90%; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, color-mix(in srgb, var(--card-accent) 45%, transparent), transparent 70%);
  opacity: .0; transition: opacity .8s var(--ease); mix-blend-mode: screen;
}
.work-card:hover .work-card__glow { opacity: .55; }
.work-card__floor {
  position: absolute; left: 18px; top: 18px; z-index: 2; display: inline-flex; gap: 8px; align-items: center;
  padding: 7px 11px; border-radius: 8px; background: rgba(7,7,8,.78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; color: var(--card-accent);
}
.work-card__info { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: start; }
.work-card__title { font-size: clamp(30px, 3.6vw, 56px); line-height: 1; letter-spacing: -0.04em; font-weight: 500; }
.work-card__title em { color: var(--card-accent); }
.work-card__desc { grid-column: 1 / -1; color: var(--text-2); max-width: 54ch; }
.work-card__tags { grid-column: 1 / -1; margin-top: 6px; }
.work-card__arrow {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: background-color .4s, color .4s, transform .6s var(--ease);
}
.work-card:hover .work-card__arrow { background: var(--card-accent); color: #0a0a0b; transform: rotate(-45deg); box-shadow: none; }

@media (max-width: 899px) {
  .work__track { flex-direction: column; gap: 64px; }
  .work-card { width: 100%; }
  .work__progress { display: none; }
}

/* Services */
.svc-list { border-top: 1px solid var(--line); }
.svc { border-bottom: 1px solid var(--line); }
.svc__head {
  width: 100%; display: grid; grid-template-columns: 56px 1fr 40px; align-items: center; gap: 16px;
  padding: clamp(22px, 2.6vw, 36px) 0; text-align: left;
}
.svc__num { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.svc__title { font-size: clamp(26px, 3.4vw, 54px); line-height: 1; letter-spacing: -0.04em; font-weight: 500; transition: transform .6s var(--ease), color .4s; }
.svc__head:hover .svc__title { transform: translateX(14px); }
.svc.is-open .svc__title { color: var(--accent); }
.svc__plus { position: relative; width: 22px; height: 22px; justify-self: end; }
.svc__plus::before, .svc__plus::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: currentColor; transition: transform .5s var(--ease); }
.svc__plus::after { transform: rotate(90deg); }
.svc.is-open .svc__plus::after { transform: rotate(0); }
.svc__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease); }
.svc.is-open .svc__body { grid-template-rows: 1fr; }
.svc__inner { overflow: hidden; }
.svc__content { display: grid; gap: 22px; padding: 0 0 36px 72px; }
@media (min-width: 900px) { .svc__content { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); padding-left: 72px; } }
@media (max-width: 600px) { .svc__head { grid-template-columns: 34px 1fr 28px; } .svc__content { padding-left: 50px; } }

/* Marquee */
.marquee { padding-block: clamp(48px, 7vw, 96px); overflow: hidden; border-block: 1px solid var(--line); }
.marquee__row { display: flex; white-space: nowrap; }
.marquee__row + .marquee__row { margin-top: 10px; }
.marquee__inner { display: flex; flex: none; align-items: center; gap: clamp(20px, 3vw, 44px); padding-right: clamp(20px, 3vw, 44px); will-change: transform; }
.marquee__item { font-size: clamp(38px, 6.4vw, 104px); line-height: 1.05; letter-spacing: -0.045em; font-weight: 500; }
.marquee__row--alt .marquee__item { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; color: var(--text-2); }
.marquee__sep { width: clamp(10px, 1.2vw, 18px); height: clamp(10px, 1.2vw, 18px); border-radius: 50%; background: var(--accent); flex: none; }
.marquee__row--alt .marquee__sep { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); }

/* Index list */
.index-list { border-top: 1px solid var(--line); }
.index-list a {
  position: relative; display: grid; grid-template-columns: 64px minmax(0, 1.4fr) minmax(0, 1fr) 40px; gap: 16px; align-items: center;
  padding: 26px 0; border-bottom: 1px solid var(--line); transition: color .3s;
}
.index-list a::before {
  content: ""; position: absolute; inset: 0; background: var(--card); transform: scaleY(0); transform-origin: 50% 100%;
  transition: transform .6s var(--ease); z-index: -1;
}
.index-list a:hover::before { transform: scaleY(1); }
.index-list li { position: relative; isolation: isolate; }
.i-floor { font-family: var(--f-mono); font-size: 12px; color: var(--accent); padding-left: 8px; }
.i-name { font-size: clamp(24px, 2.6vw, 40px); letter-spacing: -0.035em; font-weight: 500; line-height: 1.05; transition: transform .6s var(--ease); }
.index-list a:hover .i-name { transform: translateX(10px); }
.i-sector { color: var(--muted); font-size: 14px; }
.i-arrow { justify-self: end; padding-right: 8px; transition: transform .5s var(--ease); }
.index-list a:hover .i-arrow { transform: rotate(-45deg); color: var(--accent); }
@media (max-width: 700px) {
  .index-list a { grid-template-columns: 40px 1fr 24px; }
  .i-sector { display: none; }
}
.hover-preview {
  position: fixed; left: 0; top: 0; z-index: 70; width: 340px; aspect-ratio: 16/10; border-radius: 12px; overflow: hidden;
  pointer-events: none; opacity: 0; transform: scale(.85); transition: opacity .35s, transform .5s var(--ease);
  box-shadow: 0 40px 80px rgba(0,0,0,.6);
}
.hover-preview.is-on { opacity: 1; transform: scale(1); }
.hover-preview img { width: 100%; height: 100%; object-fit: cover; }

/* Footer ----------------------------------------------------------------- */
.site-footer { position: relative; padding: clamp(96px, 14vw, 200px) var(--gutter) 28px; overflow: hidden; isolation: isolate; border-top: 1px solid var(--line); }
.site-footer::before {
  content: ""; position: absolute; left: 50%; bottom: -40%; width: 120vw; height: 90%; transform: translateX(-50%); z-index: -1;
  background: radial-gradient(50% 50% at 50% 50%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
  pointer-events: none;
}
.footer__cta { display: grid; gap: 28px; }
.footer__title { font-size: clamp(64px, 13vw, 240px); line-height: 0.84; letter-spacing: -0.06em; font-weight: 600; }
.footer__title em { font-weight: 400; color: var(--accent); }
.footer__title + .lede { margin-top: 0.35em; }
.cs-title .tight-em { margin-left: 0.05em; }
.footer__mail {
  display: inline-flex; align-items: center; gap: 16px; justify-self: start; margin-top: 12px;
  font-size: clamp(22px, 3vw, 46px); letter-spacing: -0.03em; font-weight: 500;
  padding-bottom: 6px; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat; transition: background-size .7s var(--ease);
}
.footer__mail:hover { background-size: 100% 2px; }
.footer__grid { display: grid; gap: 32px; margin-top: clamp(72px, 10vw, 140px); padding-top: 28px; border-top: 1px solid var(--line); }
@media (min-width: 800px) { .footer__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.footer__grid h4 { font-family: var(--f-mono); font-size: 11.5px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.footer__grid li + li { margin-top: 6px; }
.footer__grid a { color: var(--text-2); transition: color .3s; }
.footer__grid a:hover { color: var(--text); }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; }
.to-top { display: inline-flex; align-items: center; gap: 10px; }
.to-top svg { width: 10px; height: 10px; }

/* ==========================================================================
   About
   ========================================================================== */
.page-hero { padding: calc(var(--header-h) + clamp(80px, 12vw, 160px)) var(--gutter) clamp(64px, 8vw, 110px); }
.page-hero__title { font-size: var(--fs-display); line-height: 0.9; letter-spacing: -0.055em; font-weight: 600; }
.page-hero__title em { font-weight: 400; color: var(--accent); }
.page-hero__row { display: grid; gap: 32px; margin-top: clamp(40px, 5vw, 72px); }
@media (min-width: 900px) { .page-hero__row { grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr); } }

.building { display: grid; gap: 48px; }
@media (min-width: 960px) { .building { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; } }
.building__visual { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
@media (max-width: 959px) { .building__visual { position: relative; top: 0; } }
.tower { width: 100%; max-width: 440px; margin-inline: auto; }
.tower__floor rect.win { fill: #1a1a1d; transition: fill .6s var(--ease); }
.tower__floor.is-lit rect.win { fill: color-mix(in srgb, var(--accent) 80%, #fff 0%); }
.tower__floor.is-lit rect.win:nth-child(3n) { fill: color-mix(in srgb, var(--accent) 55%, #000); }
.tower__floor text { font-family: var(--f-mono); font-size: 10px; fill: var(--muted); letter-spacing: .08em; }
.tower__floor.is-lit text { fill: var(--text); }
.tower__floor.is-active text { fill: var(--accent); }
.building__floors { counter-reset: none; }
.bfloor { display: grid; grid-template-columns: 72px 1fr; gap: 16px; padding: 34px 0; border-top: 1px solid var(--line); opacity: .35; transition: opacity .6s var(--ease); }
.bfloor.is-lit { opacity: 1; }
.bfloor__num { font-family: var(--f-mono); color: var(--accent); font-size: 13px; padding-top: 8px; }
.bfloor h3 { font-size: var(--fs-h3); letter-spacing: -0.035em; line-height: 1.05; font-weight: 500; margin-bottom: 10px; }
.bfloor p { color: var(--text-2); max-width: 54ch; }
.bfloor .chips { margin-top: 16px; }

.principles { display: grid; gap: 16px; }
@media (min-width: 800px) { .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .principles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.principle {
  position: relative; padding: 28px; border-radius: var(--radius-lg); background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
  min-height: 300px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
}
.principle__num { font-family: var(--f-serif); font-style: italic; font-size: 64px; line-height: 1; color: var(--accent); }
.principle h3 { font-size: 24px; letter-spacing: -0.025em; font-weight: 500; margin: 36px 0 10px; }
.principle p { color: var(--text-2); font-size: 15.5px; }

.process { display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .process { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.process li { padding: 28px 20px 28px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .process li { border-bottom: 0; border-right: 1px solid var(--line); padding: 28px 22px; } .process li:first-child { padding-left: 0; } .process li:last-child { border-right: 0; } }
.process h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; margin: 18px 0 8px; }
.process p { color: var(--text-2); font-size: 15px; }

/* ==========================================================================
   Case studies
   ========================================================================== */
.cs-hero { padding: calc(var(--header-h) + clamp(56px, 9vw, 120px)) var(--gutter) clamp(40px, 5vw, 64px); position: relative; }
.cs-hero__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: clamp(20px, 3vw, 36px); }
.cs-title { font-size: clamp(64px, 15vw, 272px); line-height: 0.82; letter-spacing: -0.065em; font-weight: 600; margin-left: -0.04em; }
.cs-title em { font-weight: 400; color: var(--accent); letter-spacing: -0.035em; }
.cs-title .c { transform: translateY(140%); }
.reduced .cs-title .c, .no-js .cs-title .c { transform: none; }
.cs-hero__row { display: grid; gap: 36px; margin-top: clamp(36px, 5vw, 72px); padding-top: 24px; border-top: 1px solid var(--line); }
@media (min-width: 960px) { .cs-hero__row { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); } }
.cs-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; }
.cs-meta dt { margin-bottom: 6px; }
.cs-meta dd { font-size: 15.5px; color: var(--text); }
.cs-meta dd a { color: var(--accent); }
.cs-meta dd a:hover { text-decoration: underline; text-underline-offset: 3px; }

.cs-cover { position: relative; padding-inline: var(--gutter); display: grid; justify-items: center; isolation: isolate; }
.cs-cover::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: min(90vw, 1500px); height: 80%; transform: translate(-50%, -50%); z-index: -1; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%); filter: blur(30px); opacity: .9;
}
.cs-cover__frame {
  position: relative; width: min(100%, 1280px); border-radius: 18px; overflow: hidden; background: #070708; aspect-ratio: 16/10; will-change: clip-path;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 0 0 10px rgba(255,255,255,.02), 0 60px 120px -40px rgba(0,0,0,.9);
}
.cs-cover__cap { display: flex; justify-content: space-between; gap: 16px; width: min(100%, 1280px); margin-top: 14px; }
.cs-cover__frame img, .cs-cover__frame canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.cs-overview { display: grid; gap: 48px; }
@media (min-width: 960px) { .cs-overview { grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 4fr); } }
.cs-overview h2 { font-size: var(--fs-h3); letter-spacing: -0.035em; line-height: 1.08; font-weight: 500; margin-bottom: 20px; }
.cs-facts { display: grid; gap: 0; border-top: 1px solid var(--line); align-self: start; }
.cs-facts li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cs-facts strong { font-weight: 500; text-align: right; }

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { background: var(--bg); padding: clamp(24px, 3vw, 40px); display: grid; gap: 12px; align-content: space-between; min-height: 200px; }
.stat__num { font-size: clamp(56px, 7vw, 120px); line-height: 0.9; letter-spacing: -0.06em; font-weight: 500; font-variant-numeric: tabular-nums; }
.stat__num small { font-size: 0.4em; letter-spacing: -0.02em; color: var(--accent); margin-left: 4px; }
.stat p { color: var(--text-2); font-size: 15px; max-width: 26ch; }

/* Browser + phone frames */
.browser { border-radius: var(--radius); overflow: hidden; background: #0d0d0f; box-shadow: 0 0 0 1px var(--line-strong), 0 50px 100px -30px rgba(0,0,0,.8); }
.browser__bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; background: #161619; border-bottom: 1px solid rgba(255,255,255,.06); }
.browser__bar > span { width: 10px; height: 10px; border-radius: 50%; background: #2a2a2e; }
.browser__url {
  flex: 1; max-width: 360px; margin: 0 auto; transform: translateX(-20px); height: 24px; border-radius: 6px; background: #0e0e10;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--f-mono); font-size: 11px; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 0 10px;
}
.browser__url svg { width: 9px; height: 9px; flex: none; }
.browser__view { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0d0d0f; }
.browser__view > img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.browser__view--scroll > img { height: auto; object-fit: fill; will-change: transform; }
.browser__view--tall { aspect-ratio: 4 / 5; }
figcaption.cap { display: flex; gap: 14px; margin-top: 16px; color: var(--text-2); font-size: 14.5px; max-width: 70ch; }
figcaption.cap .label { flex: none; padding-top: 3px; }

.phone {
  position: relative; width: 100%; max-width: 330px; aspect-ratio: 390 / 844; border-radius: 44px; padding: 10px;
  background: linear-gradient(145deg, #2a2a2e, #111113); box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 60px 100px -30px rgba(0,0,0,.85);
}
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; width: 30%; height: 22px; transform: translateX(-50%); background: #000; border-radius: 999px; z-index: 2; }
.phone__screen { width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: #000; }
.phone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.phones { display: flex; justify-content: center; align-items: center; gap: clamp(16px, 4vw, 64px); padding-block: 20px; }
.phones .phone:nth-child(2) { transform: translateY(12%); }
@media (max-width: 600px) { .phones .phone { max-width: 46%; border-radius: 30px; padding: 6px; } .phones .phone .phone__screen { border-radius: 25px; } .phone::before { height: 14px; top: 12px; } }

/* Feature grid */
.feature-grid { display: grid; gap: clamp(40px, 5vw, 72px) clamp(16px, 2vw, 28px); }
@media (min-width: 900px) {
  .feature-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .fg-7 { grid-column: span 7; } .fg-5 { grid-column: span 5; } .fg-6 { grid-column: span 6; } .fg-12 { grid-column: span 12; }
  .fg-offset { margin-top: 18%; }
}

/* Filmstrip — sticky scroll-scrubbed frames */
.filmstrip { position: relative; }
.filmstrip__sticky { position: sticky; top: 0; height: 100svh; display: grid; align-content: center; gap: 24px; padding: calc(var(--header-h) + 8px) var(--gutter) 24px; }
.filmstrip__layout { display: grid; gap: 24px; align-items: center; }
@media (min-width: 1000px) { .filmstrip__layout { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; } }
.filmstrip .browser { width: 100%; max-height: calc(100svh - var(--header-h) - 150px); aspect-ratio: auto; }
.filmstrip .browser__view { aspect-ratio: 16 / 10; max-height: calc(100svh - var(--header-h) - 190px); }
.filmstrip .browser__view img { position: absolute; inset: 0; opacity: 0; }
.filmstrip .browser__view img:first-child { opacity: 1; }
.filmstrip__steps { display: grid; }
.filmstrip__step { grid-area: 1 / 1; opacity: 0; transform: translateY(16px); transition: opacity .5s, transform .6s var(--ease); }
.filmstrip__step.is-on { opacity: 1; transform: none; }
.filmstrip__step h3 { font-size: var(--fs-h3); letter-spacing: -0.035em; line-height: 1.05; font-weight: 500; margin: 14px 0 12px; }
.filmstrip__step p { color: var(--text-2); max-width: 44ch; }
.filmstrip__ticks { display: flex; gap: 6px; margin-top: 28px; }
.filmstrip__ticks i { height: 2px; flex: 1; max-width: 48px; background: var(--line-strong); position: relative; overflow: hidden; }
.filmstrip__ticks i::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }
@media (max-width: 999px) {
  .filmstrip__sticky { align-content: start; padding-top: calc(var(--header-h) + 16px); }
  .filmstrip__steps { order: 2; min-height: 160px; }
  .filmstrip__ticks { margin-top: 16px; }
}

/* Architecture diagram */
.diagram-wrap { display: grid; gap: 24px; }
@media (min-width: 1100px) { .diagram-wrap { grid-template-columns: minmax(0, 9fr) minmax(0, 3fr); align-items: stretch; } }
.diagram { position: relative; border-radius: var(--radius-lg); background: radial-gradient(120% 80% at 50% 0%, #151517, #0c0c0d); box-shadow: inset 0 0 0 1px var(--line); overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
.diagram svg { min-width: 820px; width: 100%; height: auto; }
.diagram__grid { stroke: rgba(255,255,255,.035); }
.d-edge { fill: none; stroke: rgba(237,235,229,.16); stroke-width: 1.2; transition: stroke .4s, opacity .4s; }
.d-edge--flow { stroke: var(--accent); stroke-dasharray: 3 7; stroke-width: 1.2; opacity: .55; animation: dash 1.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -20; } }
.d-dot { fill: var(--accent); filter: drop-shadow(0 0 6px var(--accent)); }
.d-node rect { fill: #121214; stroke: rgba(237,235,229,.18); stroke-width: 1; transition: stroke .3s, fill .3s; }
.d-node .d-title { font-family: var(--f-sans); font-size: 15px; font-weight: 500; fill: var(--text); letter-spacing: -0.01em; }
.d-node .d-sub { font-family: var(--f-mono); font-size: 10px; fill: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.d-node .d-pip { fill: var(--muted); transition: fill .3s; }
.d-node--accent rect { stroke: color-mix(in srgb, var(--accent) 70%, transparent); fill: color-mix(in srgb, var(--accent) 9%, #121214); }
.d-node--accent .d-pip { fill: var(--accent); }
.d-node { cursor: pointer; }
.d-node:hover rect, .d-node.is-active rect { stroke: var(--accent); fill: color-mix(in srgb, var(--accent) 14%, #121214); }
.d-node.is-active .d-pip { fill: var(--accent); }
.diagram.has-focus .d-edge:not(.is-linked) { opacity: .25; }
.diagram.has-focus .d-edge.is-linked { stroke: var(--accent); opacity: 1; }
.diagram.has-focus .d-node:not(.is-active):not(.is-linked) { opacity: .45; }
.d-group-label { font-family: var(--f-mono); font-size: 10px; fill: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.d-group { fill: none; stroke: rgba(237,235,229,.08); stroke-dasharray: 4 5; }
.diagram-info { border-radius: var(--radius-lg); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); padding: 26px; display: grid; align-content: start; gap: 12px; min-height: 220px; }
.diagram-info h3 { font-size: 26px; letter-spacing: -0.03em; font-weight: 500; line-height: 1.1; }
.diagram-info p { color: var(--text-2); font-size: 15.5px; }
.diagram-hint { display: none; margin-top: 10px; }
@media (max-width: 900px) { .diagram-hint { display: block; } }

/* Demo shell */
.demo { border-radius: var(--radius-lg); background: var(--bg-raise); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.demo__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.demo__live { display: inline-flex; align-items: center; gap: 8px; }
.demo__live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .35; } }
.demo__body { padding: clamp(20px, 3vw, 40px); }
.demo-intro { display: grid; gap: 24px; margin-bottom: clamp(32px, 4vw, 56px); }
@media (min-width: 900px) { .demo-intro { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; } }

.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 12px; background: #0c0c0d; box-shadow: inset 0 0 0 1px var(--line); }
.seg button { padding: 9px 14px; border-radius: 8px; font-size: 14px; color: var(--text-2); transition: background-color .3s, color .3s; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--text); color: var(--bg); }

.range { width: 100%; appearance: none; -webkit-appearance: none; background: transparent; height: 28px; }
.range::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, var(--accent) var(--fill, 50%), var(--line-strong) var(--fill, 50%)); border-radius: 2px; }
.range::-moz-range-track { height: 2px; background: var(--line-strong); border-radius: 2px; }
.range::-moz-range-progress { height: 2px; background: var(--accent); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--text); margin-top: -9px; box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 25%, transparent); }
.range::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 25%, transparent); }

.readout { font-size: clamp(40px, 5vw, 76px); line-height: .95; letter-spacing: -0.05em; font-weight: 500; font-variant-numeric: tabular-nums; }
.readout small { font-size: .38em; letter-spacing: -0.01em; color: var(--muted); margin-left: 6px; }

/* Engineering notes */
.notes { display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .notes { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; } }
.note { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.note__i { font-family: var(--f-mono); font-size: 12px; color: var(--accent); padding-top: 4px; }
.note h3 { font-size: 19px; font-weight: 500; letter-spacing: -0.015em; margin-bottom: 6px; }
.note p { color: var(--text-2); font-size: 15px; }
.note code { font-family: var(--f-mono); font-size: 12.5px; padding: 2px 6px; border-radius: 5px; background: #18181b; color: var(--text); white-space: nowrap; }

/* Next project */
.next { position: relative; display: block; padding: clamp(96px, 12vw, 180px) var(--gutter); border-top: 1px solid var(--line); overflow: hidden; isolation: isolate; }
.next__bg { position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .9s var(--ease); }
.next__bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) brightness(.35); transform: scale(1.08); transition: transform 1.6s var(--ease); }
.next:hover .next__bg { opacity: 1; }
.next:hover .next__bg img { transform: scale(1); }
.next__title { font-size: clamp(56px, 12vw, 220px); line-height: .86; letter-spacing: -0.06em; font-weight: 600; margin-top: 20px; transition: transform .8s var(--ease); }
.next__title em { font-weight: 400; color: var(--next-accent, var(--accent)); }
.next:hover .next__title { transform: translateX(2vw); }
.next__row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }

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

/* Lift: each button glows in its own floor's colour */
.lift__btn { --b: var(--bc, var(--accent)); }
.lift__btn:hover::before, .lift__btn:focus-visible::before { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--b) 80%, transparent), 0 0 16px color-mix(in srgb, var(--b) 45%, transparent); }
.lift__btn.is-called { color: var(--b); text-shadow: 0 0 10px var(--b); }
.lift__btn.is-called::before { box-shadow: inset 0 0 0 2px var(--b), 0 0 22px color-mix(in srgb, var(--b) 60%, transparent), inset 0 0 16px color-mix(in srgb, var(--b) 35%, transparent); }
.lift__btn::after { content: ""; position: absolute; inset: -6px; border-radius: inherit; pointer-events: none; opacity: 0; box-shadow: 0 0 0 1px var(--b); }
.lift__btn.is-called::after { animation: liftPing .9s var(--ease) 2; }
@keyframes liftPing { 0% { opacity: .9; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.45); } }
.lift__preview.no-media .lift__pv-media { display: none; }
.lift__pv-media { transition: box-shadow .4s; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 30px 60px rgba(0,0,0,.6), 0 0 60px -10px color-mix(in srgb, var(--lc) 45%, transparent); }
.lift__pv-media.is-tall { background: radial-gradient(80% 100% at 50% 30%, color-mix(in srgb, var(--lc) 45%, #0b0b0c), #0b0b0c 75%); }
.lift__pv-media.is-tall img, .lift__pv-media.is-tall video { inset: auto; left: 50%; top: 9%; width: 46%; height: auto; aspect-ratio: 780 / 1688; transform: translateX(-50%); object-fit: cover; object-position: top;
  border-radius: 16px 16px 0 0; box-shadow: 0 0 0 5px #15171c, 0 20px 40px rgba(0,0,0,.6); }
.lift__pv-text .label { color: var(--lc); }



/* Responsive hardening ------------------------------------------------------ */
/* Nothing inside the page may widen it: decorative glows, the horizontal work track and
   parallax images are clipped at the screen edge, so touch browsers never zoom out to fit. */
main, .site-footer { overflow-x: clip; }
.work__pin { overflow-x: clip; }
/* Long unbroken values (URLs) wrap instead of running out of their column. */
.cs-meta dd { overflow-wrap: anywhere; }
/* Lift plate captions stay legible. */
.lift__name, .lift__btn--wide small { font-size: 10px; }
.lift__engrave { font-size: 9.5px; }
@media (max-width: 600px) { .hero__eyebrow { flex-direction: column; gap: 6px; } }

/* Hero: the stack ----------------------------------------------------------- */
/* An exploded model of the studio, drawn by hero-stack.js on the canvas behind the copy. The floor
   labels are real links, pinned to each floor's front corner by the script. */
.hero--stack { min-height: 100svh; display: grid; align-content: center; justify-content: stretch; padding: calc(var(--header-h) + 24px) var(--gutter) clamp(40px, 6vh, 72px); }
.hero--stack::after { background: linear-gradient(to bottom, rgba(10,10,11,0) 82%, var(--bg) 100%); }
.hero__scene { position: absolute; inset: 0; z-index: -2; background: var(--bg); }
.hero__scene-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; max-width: none; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero__scene.is-live .hero__scene-gl { opacity: 1; }
.hero--stack.stack--fallback .hero__scene { background: var(--bg) url("../media/stack/still.webp") 100% 50% / auto 100% no-repeat; }
.stack--fallback .stack__floors, .stack--fallback .hero__hint { display: none; }
@media (max-width: 899px) { .hero--stack.stack--fallback .hero__scene { background-size: min(100%, 520px) auto; background-position: 50% calc(var(--header-h) + 8px); } }

.hero--stack .hero__copy { position: relative; z-index: 2; width: min(100%, 46vw); max-width: 820px; }
.hero--stack .hero__eyebrow { display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: center; gap: 12px 22px; margin-bottom: clamp(18px, 2.4vw, 30px); }
.hero__status { display: inline-flex; align-items: center; color: var(--text-2); }
.hero--stack .hero__title { font-size: clamp(64px, 10.2vw, 196px); line-height: .82; margin-left: -0.05em; }
.hero--stack .hero__title .line--2 { padding-left: 0.62em; }
.hero--stack .hero__lede { margin-top: clamp(22px, 2.6vw, 38px); max-width: 40ch; font-size: clamp(17px, 1.25vw, 20px); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: clamp(22px, 2.4vw, 34px); }
.hero__hint { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); }
.hero__hint::before { content: ""; width: 22px; height: 1px; background: currentColor; }

/* Floor labels: a dot on the floor's corner, a leader, the number and name. The open floor
   also shows its one-liner above the name. */
.stack__floors { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity 1s var(--ease); }
.stack__floors.is-ready { opacity: 1; }
.stack__floor { position: absolute; left: 0; top: 0; display: grid; justify-items: start; translate: 0 calc(16px - 100%); pointer-events: auto; will-change: transform;
  color: rgba(237,235,229,.46); transition: color .35s; }
.stack__floor::before { content: ""; position: absolute; left: -2.5px; bottom: 13.5px; width: 5px; height: 5px; border-radius: 50%; background: currentColor; transition: background-color .35s, box-shadow .35s; }
.stack__row { display: flex; align-items: center; gap: 12px; height: 32px; padding-right: 10px; white-space: nowrap; }
.stack__row::before { content: ""; width: 40px; height: 1px; background: currentColor; opacity: .5; transition: background-color .35s, opacity .35s; }
.stack__no { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; transition: color .35s; }
.stack__name { font-size: 15px; letter-spacing: -0.01em; }
.stack__sub { margin-left: 52px; width: max-content; max-width: 190px; font-size: 13px; line-height: 1.35; color: var(--text-2); text-wrap: balance; visibility: hidden; opacity: 0; translate: 0 6px;
  transition: opacity .35s var(--ease), translate .5s var(--ease), visibility 0s .35s; }
.stack__sub i { font-style: normal; color: var(--c); margin-left: 4px; }
.stack__floor.is-on, .stack__floor:hover, .stack__floor:focus-visible { color: var(--text); }
.stack__floor.is-on::before { background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 22%, transparent); }
.stack__floor.is-on .stack__row::before { background: var(--c); opacity: 1; }
.stack__floor.is-on .stack__no { color: var(--c); }
.stack__floor.is-on .stack__sub { visibility: visible; opacity: 1; translate: 0 0; transition: opacity .5s var(--ease) .12s, translate .6s var(--ease) .12s, visibility 0s; }

@media (max-width: 899px) {
  /* the model gets its own space above the copy */
  .hero--stack { align-content: end; padding-top: calc(var(--header-h) + min(112vw, 520px)); }
  .hero--stack::after { background: linear-gradient(to bottom, rgba(10,10,11,0) 86%, var(--bg) 100%); }
  .hero--stack .hero__copy { width: 100%; }
  .hero--stack .hero__title { font-size: clamp(60px, 17vw, 120px); }
  .stack__floors, .hero__hint { display: none; }
}
@media (max-width: 600px) { .hero--stack .hero__eyebrow { align-items: flex-start; } }
.reduced .hero__scene-gl { transition: none; }
