/* ==========================================================================
   June Hong, CMF portfolio
   Color system: Shades of Ocean (2019), Pantone TCX
   15-4225 Alaskan Blue · 18-4252 Blue Aster · 19-4038 Gibraltar Sea
   14-4814 Angel Blue · 16-4834 Bluebird · 19-4535 Ocean Depths
   Type: Mona Sans, one variable family. Width carries the hierarchy:
   expanded light for display, regular for reading, extended caps for labels.
   ========================================================================== */

@font-face {
  font-family: 'Mona Sans';
  font-style: normal;
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-display: swap;
  src: url('../fonts/MonaSans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Mona Sans';
  font-style: normal;
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-display: swap;
  src: url('../fonts/MonaSans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Mona Sans';
  font-style: italic;
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-display: swap;
  src: url('../fonts/MonaSans-Italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Mona Sans';
  font-style: italic;
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-display: swap;
  src: url('../fonts/MonaSans-Italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* palette */
  --alaskan: #6faad4;
  --aster: #007cbc;
  --gibraltar: #153b52;
  --angel: #82c5cd;
  --bluebird: #009dae;
  --depths: #076a7d;

  /* derived neutrals, sea-mist paper to abyss */
  --paper: #eef3f2;
  --paper-2: #e4ecea;
  --mist: #d1e1de;
  --mist-2: #bcd6d3;
  --seaglass: #a5cdcc;
  --abyss: #08192a;
  --abyss-2: #0c2333;
  --ink: #0d2533;
  --ink-2: rgba(13, 37, 51, 0.72);
  --ink-3: rgba(13, 37, 51, 0.66);
  --line: rgba(13, 37, 51, 0.14);
  --line-2: rgba(13, 37, 51, 0.08);
  --on-dark: #e8f1f0;
  --on-dark-2: rgba(232, 241, 240, 0.68);
  --on-dark-3: rgba(232, 241, 240, 0.58);
  --line-dark: rgba(232, 241, 240, 0.14);
  --thread: #d6a64f; /* the gold yarn running through the Shades of Ocean weave */

  /* type */
  --f-sans: 'Mona Sans', 'Helvetica Neue', Arial, sans-serif;
  --display: 112%;  /* font-stretch for display sizes */
  --head: 108%;     /* font-stretch for headings */
  --wide: 125%;     /* font-stretch for labels */

  /* layout */
  --pad: clamp(16px, 4vw, 56px);
  --max: 1680px;
  --gap: clamp(14px, 1.6vw, 24px);
  --radius: 4px;
  --nav-h: 72px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  --accent: var(--depths);
  --accent-soft: var(--mist);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* the native scrollbar gives way to the index rail on mouse devices */
@media (hover: hover) and (pointer: fine) {
  html { scrollbar-width: none; }
  html::-webkit-scrollbar, body::-webkit-scrollbar { width: 0; height: 0; display: none; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  font-stretch: 100%;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }

h1, h2, h3, h4 { text-wrap: balance; }
p, li { text-wrap: pretty; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; letter-spacing: inherit; }
em { font-style: italic; }
i { font-style: normal; }
strong { font-weight: 600; }
::selection { background: var(--bluebird); color: #fff; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px; }
[tabindex="-1"]:focus { outline: none; }
.fig__media:focus-visible { outline-offset: 4px; }

.skip { position: fixed; left: 12px; top: 12px; z-index: 400; height: 40px; padding: 0 16px; border-radius: 3px; background: var(--ink); color: var(--paper); font-size: 13.5px; font-weight: 520; transform: translateY(-160%); transition: transform 0.3s var(--ease-out); }
.skip:focus-visible { transform: none; outline-color: var(--angel); }
.noscript { padding: 120px var(--pad); max-width: 900px; }
.noscript h1 { font-size: clamp(32px, 5vw, 64px); font-weight: 370; font-stretch: var(--display); letter-spacing: -0.04em; line-height: 1.02; margin: 24px 0; }
.noscript a { text-decoration: underline; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* labels: extended caps, the voice of a spec sheet */
.mono, .eyebrow {
  font-family: var(--f-sans);
  font-size: 10.5px;
  line-height: 1.4;
  font-stretch: var(--wide);
  font-weight: 540;
  letter-spacing: 0.085em;
  text-transform: uppercase;
}
.eyebrow { display: inline-flex; align-items: baseline; gap: 14px; color: var(--ink-3); }
.eyebrow b { font-weight: 540; color: var(--ink); }
.eyebrow span { opacity: 0.75; }
.on-dark .eyebrow { color: var(--on-dark-3); }
.tnum { font-variant-numeric: tabular-nums; }

/* folio: the running header above each section */
.folio {
  display: flex;
  align-items: baseline;
  gap: 0 var(--gap);
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
}
.folio__no { min-width: 56px; color: var(--ink); }
.folio__name { color: var(--ink); }
.folio__meta { margin-left: auto; text-align: right; }
.folio--dark { border-top-color: var(--line-dark); color: var(--on-dark-3); }
.folio--dark .folio__no, .folio--dark .folio__name { color: var(--on-dark); }

.line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.line > span { display: inline-block; will-change: transform; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- grain (static: cheap to composite) */
.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------------------- loader */
.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--abyss);
  color: var(--on-dark);
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 28px var(--pad);
}
.loader__top, .loader__bottom { display: flex; justify-content: space-between; align-items: center; }
.loader__top .mono, .loader__bottom .mono { color: var(--on-dark-2); }
.loader__name { font-size: 16px; font-weight: 560; font-stretch: var(--display); letter-spacing: -0.01em; color: var(--on-dark); }
.loader__chips {
  align-self: center;
  justify-self: center;
  display: flex;
  gap: clamp(6px, 1vw, 12px);
}
.loader__chip {
  width: clamp(42px, 6.2vw, 92px);
  height: clamp(110px, 17vw, 230px);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
  transform: translateY(40px);
  opacity: 0;
}
.loader__chip::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 22%;
  background: rgba(255, 255, 255, 0.92);
}
.loader__chip span {
  position: absolute;
  left: 8%;
  top: 5%;
  font-size: clamp(7px, 0.75vw, 10px);
  font-weight: 560;
  font-variant-numeric: tabular-nums;
  color: var(--gibraltar);
  white-space: nowrap;
}
.loader__count { font-size: 12px; font-stretch: 100%; font-weight: 540; letter-spacing: 0.06em; color: var(--on-dark); }
.loader__bar { flex: 1; height: 1px; margin: 0 24px; background: var(--line-dark); position: relative; overflow: hidden; }
.loader__bar i { position: absolute; inset: 0; background: var(--angel); transform-origin: left; transform: scaleX(0); }

/* ---------------------------------------------------------------- wipe (page transitions) */
.wipe {
  position: fixed;
  inset: 0;
  z-index: 150;
  pointer-events: none;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}
.wipe span { display: block; transform: scaleY(0); transform-origin: bottom; }
.wipe__label {
  position: fixed;
  inset: 0;
  z-index: 151;
  display: grid;
  place-items: center;
  pointer-events: none;
  color: #fff;
  font-size: clamp(34px, 6vw, 96px);
  font-stretch: var(--display);
  font-weight: 380;
  letter-spacing: -0.035em;
  opacity: 0;
}

/* ---------------------------------------------------------------- cursor */
.cursor {
  position: fixed;
  left: 0; top: 0;
  z-index: 300;
  pointer-events: none;
  width: 10px; height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: #fff;
  mix-blend-mode: difference;
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out), margin 0.35s var(--ease-out), opacity 0.3s;
}
.cursor.is-link { width: 36px; height: 36px; margin: -18px 0 0 -18px; }
.cursor.is-hidden { opacity: 0; }
.cursor-label {
  position: fixed;
  left: 0; top: 0;
  z-index: 301;
  pointer-events: none;
  width: 100px; height: 100px;
  margin: -50px 0 0 -50px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 10px;
  font-stretch: var(--wide);
  font-weight: 560;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transform: scale(0);
  transition: transform 0.45s var(--ease-out);
  box-shadow: 0 10px 40px rgba(8, 25, 42, 0.25);
}
.cursor-label.is-on { transform: scale(1); }
@media (hover: none), (pointer: coarse) { .cursor, .cursor-label { display: none; } }

/* ---------------------------------------------------------------- nav */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  color: var(--ink);
  transition: transform 0.6s var(--ease-out), color 0.4s;
}
.nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(238, 243, 242, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-2);
  opacity: 0;
  transition: opacity 0.4s, background 0.4s;
}
.nav.is-solid::before { opacity: 1; }
.nav.is-dark { color: var(--on-dark); }
.nav.is-dark::before { background: rgba(8, 25, 42, 0.78); border-bottom-color: var(--line-dark); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.brand { display: inline-flex; align-items: baseline; gap: 14px; white-space: nowrap; }
.brand__name { font-size: 17px; font-weight: 580; font-stretch: var(--display); letter-spacing: -0.015em; }
.brand__role { opacity: 0.55; }
.nav__links { display: flex; gap: clamp(18px, 2.2vw, 34px); }
.nav__links a {
  position: relative;
  font-size: 14px;
  font-stretch: 106%;
  font-weight: 460;
  padding: 8px 0;
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-out);
}
.nav__links a:hover::after, .nav__links a.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav__links a sup { font-size: 9px; font-stretch: var(--wide); font-weight: 540; margin-left: 3px; opacity: 0.5; }
.nav__right { display: flex; justify-content: flex-end; align-items: center; gap: 22px; }
.nav__time { opacity: 0.6; white-space: nowrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 44px;
  padding: 0 18px;
  border-radius: 3px;
  font-size: 13.5px;
  font-weight: 520;
  font-stretch: 108%;
  white-space: nowrap;
  transition: background 0.35s, color 0.35s, border-color 0.35s;
}
.btn svg { width: 14px; height: 14px; transition: transform 0.4s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--depths); }
.btn--ghost { box-shadow: inset 0 0 0 1px currentColor; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); box-shadow: inset 0 0 0 1px var(--ink); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: var(--angel); }
.on-dark .btn--ghost:hover, .nav.is-dark .btn--ghost:hover, .hero .btn--ghost:hover, .contact .btn--ghost:hover, .docview .btn--ghost:hover { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--paper); }
.nav.is-dark .btn--solid { background: var(--paper); color: var(--ink); }
.nav.is-dark .btn--solid:hover { background: var(--angel); }
.nav__menu { display: none; width: 44px; height: 44px; border-radius: 3px; box-shadow: inset 0 0 0 1px currentColor; position: relative; }
.nav__menu i { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform 0.4s var(--ease-out); }
.nav__menu i:first-child { top: 17px; }
.nav__menu i:last-child { bottom: 17px; }
body.menu-open .nav { color: var(--on-dark); transform: none; }
body.menu-open .nav::before { opacity: 0; }
body.menu-open .nav__menu i:first-child { transform: translateY(4px) rotate(45deg); }
body.menu-open .nav__menu i:last-child { transform: translateY(-4px) rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--abyss);
  color: var(--on-dark);
  padding: calc(var(--nav-h) + 32px) var(--pad) 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease-io);
  visibility: hidden;
}
body.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu__link {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-dark);
  font-size: clamp(34px, 9vw, 56px);
  font-stretch: var(--display);
  font-weight: 380;
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.menu__link .mono { color: var(--on-dark-3); min-width: 28px; }

/* ---------------------------------------------------------------- index rail (custom scrollbar + section index) */
.rail { position: fixed; top: 0; right: 0; bottom: 0; width: 34px; z-index: 95; display: none; --rail-line: rgba(13, 37, 51, 0.14); --rail-mark: rgba(13, 37, 51, 0.38); --rail-thumb: var(--ink); --rail-bg: rgba(238, 243, 242, 0.92); }
@media (hover: hover) and (pointer: fine) { .rail { display: block; } }
.rail.is-dark { --rail-line: rgba(232, 241, 240, 0.16); --rail-mark: rgba(232, 241, 240, 0.4); --rail-thumb: var(--on-dark); --rail-bg: rgba(8, 25, 42, 0.86); }
body.is-loading .rail, body.menu-open .rail { opacity: 0; pointer-events: none; }
.rail__panel { position: absolute; top: 0; bottom: 0; right: 30px; width: calc(var(--rail-w, 240px) - 30px); display: none; }
.rail.is-open .rail__panel { display: block; }
.rail__track { position: absolute; top: 18px; bottom: 18px; right: 12px; width: 1px; background: var(--rail-line); transition: background 0.4s; cursor: pointer; }
.rail__track::before { content: ''; position: absolute; top: 0; bottom: 0; left: -10px; right: -10px; }
.rail__thumb {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  margin-left: -1px;
  border-radius: 2px;
  background: var(--rail-thumb);
  transform-origin: 50% 0;
  transition: width 0.3s var(--ease-out), margin 0.3s var(--ease-out), background 0.4s;
  will-change: transform;
  cursor: grab;
}
.rail.is-open .rail__thumb, .rail.is-drag .rail__thumb { width: 4px; margin-left: -2px; }
.rail.is-drag .rail__thumb { cursor: grabbing; }
.rail__marks { position: absolute; top: 18px; bottom: 18px; right: 12px; width: 0; }
.rail__mark { position: absolute; right: -3px; width: 7px; height: 1px; background: var(--rail-mark); transition: background 0.4s, width 0.3s var(--ease-out); }
.rail.is-open .rail__mark { width: 11px; right: -5px; }
.rail__label {
  position: absolute;
  right: 22px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 6px 9px;
  border-radius: 2px;
  white-space: nowrap;
  font-size: 9.5px;
  background: var(--paper);
  color: var(--ink-2);
  box-shadow: 0 0 0 1px var(--line-2), 0 8px 24px rgba(8, 25, 42, 0.08);
  opacity: 0;
  transform: translate(8px, -50%);
  transition: opacity 0.3s, transform 0.45s var(--ease-out), background 0.3s, color 0.3s;
  pointer-events: none;
}
.rail__label b { font-weight: 540; color: var(--ink-3); }
.rail.is-open .rail__label { opacity: 1; transform: translate(0, -50%); pointer-events: auto; transition-delay: calc(var(--i) * 22ms); }
.rail__label:hover, .rail__label.is-current { background: var(--ink); color: var(--paper); }
.rail__label:hover b, .rail__label.is-current b { color: rgba(238, 243, 242, 0.55); }
.rail__now { position: absolute; right: 24px; top: 0; pointer-events: none; will-change: transform; }
.rail__now-in {
  display: flex;
  gap: 10px;
  white-space: nowrap;
  font-size: 9.5px;
  padding: 6px 9px;
  border-radius: 2px;
  background: var(--rail-bg);
  color: var(--rail-thumb);
  transform: translate(8px, -50%);
  opacity: 0;
  transition: opacity 0.35s, transform 0.5s var(--ease-out), color 0.4s;
}
.rail__now-in b { font-weight: 540; }
.rail__now-in span { opacity: 0.6; }
.rail.is-scrolling:not(.is-open) .rail__now-in, .rail.is-drag .rail__now-in { opacity: 1; transform: translate(0, -50%); }

/* hint that the nav is waiting at the top edge */
.peek { position: fixed; top: 0; left: 50%; z-index: 101; width: 56px; height: 3px; margin-left: -28px; border-radius: 0 0 2px 2px; background: var(--bluebird); transform: translateY(-100%); transition: transform 0.4s var(--ease-out); pointer-events: none; }
.peek.is-on { transform: none; }
@media (hover: none), (pointer: coarse) { .peek { display: none; } }

/* ---------------------------------------------------------------- sections */
.section { position: relative; padding: clamp(96px, 12vw, 180px) 0; }
.on-dark { background: var(--abyss); color: var(--on-dark); }
.sec-head { margin-bottom: clamp(48px, 6vw, 96px); }
.sec-head__title {
  margin: clamp(28px, 3.6vw, 60px) 0 0;
  max-width: 15em;
  font-size: clamp(32px, 4.4vw, 76px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 370;
  font-stretch: var(--display);
}

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 640px;
  background: var(--abyss);
  color: var(--on-dark);
  overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; }
.hero__canvas canvas { display: block; width: 100% !important; height: 100% !important; }
.hero__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 25, 42, 0.72) 0%, rgba(8, 25, 42, 0.25) 46%, rgba(8, 25, 42, 0) 70%),
    linear-gradient(0deg, rgba(8, 25, 42, 0.75) 0%, rgba(8, 25, 42, 0) 42%),
    linear-gradient(180deg, rgba(8, 25, 42, 0.45) 0%, rgba(8, 25, 42, 0) 22%);
}
.hero__inner {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 1fr auto auto;
  gap: 0 var(--gap);
  padding-top: calc(var(--nav-h) + 24px);
  padding-bottom: 28px;
  pointer-events: none;
}
.hero__inner > * { pointer-events: auto; }
.hero__kicker { grid-column: 1 / -1; grid-row: 1; align-self: start; display: flex; justify-content: space-between; gap: 24px; color: var(--on-dark-2); }
.hero__kicker .mono { color: var(--on-dark-2); }
.hero__title {
  grid-column: 1 / span 10;
  grid-row: 2;
  margin: 0 0 clamp(28px, 4vh, 48px);
  font-size: clamp(42px, 6.6vw, 112px);
  line-height: 0.96;
  letter-spacing: -0.045em;
  font-weight: 340;
  font-stretch: var(--display);
}
.hero__bottom {
  grid-column: 1 / -1;
  grid-row: 3;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  align-items: end;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
}
.hero__lede { grid-column: 1 / span 5; margin: 0; font-size: clamp(15px, 1.12vw, 17.5px); line-height: 1.55; color: var(--on-dark-2); max-width: 520px; }
.hero__lede strong { color: var(--on-dark); font-weight: 560; }
.hero__actions { grid-column: 6 / span 3; display: flex; gap: 10px; flex-wrap: wrap; }
.hero__sample { grid-column: 9 / span 4; justify-self: end; text-align: right; }
.hero__sample .mono { color: var(--on-dark-3); display: block; margin-bottom: 12px; }
.hero__sample .mono b { color: var(--on-dark); font-weight: 560; }
.chips { display: flex; gap: 6px; justify-content: flex-end; }
.chip {
  position: relative;
  width: clamp(40px, 3.6vw, 58px);
  height: clamp(62px, 5.6vw, 88px);
  border-radius: 3px;
  overflow: hidden;
  background: var(--c);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.chip::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 26%;
  background: rgba(244, 248, 247, 0.95);
}
.chip span {
  position: absolute;
  top: 3px; left: 5px;
  font-size: 8.5px;
  font-weight: 580;
  font-variant-numeric: tabular-nums;
  color: var(--gibraltar);
  white-space: nowrap;
}
.chip:hover, .chip.is-active { transform: translateY(-8px); }
.chip.is-active { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6), 0 12px 30px rgba(0, 0, 0, 0.35); }

/* ---------------------------------------------------------------- marquee */
.marquee {
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  white-space: nowrap;
  padding: 22px 0;
  background: var(--paper);
}
.marquee__track { display: inline-flex; animation: marquee 52s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: inline-flex;
  align-items: baseline;
  gap: 16px;
  padding: 0 30px;
  font-size: clamp(15px, 1.25vw, 19px);
  font-stretch: 106%;
  font-weight: 440;
  letter-spacing: -0.01em;
  color: var(--ink-2);
}
.marquee__item small { color: var(--ink-3); }
.marquee__item::after { content: ''; align-self: center; width: 6px; height: 6px; border-radius: 1px; background: var(--c, var(--bluebird)); margin-left: 30px; transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- statement + numbers */
.statement { padding-top: clamp(100px, 12vw, 200px); }
.statement__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); margin-top: clamp(28px, 3.6vw, 60px); }
.statement__text {
  grid-column: 1 / span 11;
  margin: 0;
  font-size: clamp(24px, 2.85vw, 48px);
  line-height: 1.16;
  letter-spacing: -0.03em;
  font-weight: 370;
  font-stretch: 106%;
}
.statement__text .w { opacity: 0.16; transition: opacity 0.2s; }
.numbers {
  margin-top: clamp(72px, 9vw, 140px);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
}
.num { padding: 26px 24px 0 0; border-right: 1px solid var(--line); }
.num + .num { padding-left: 24px; }
.num:last-child { border-right: 0; }
.num__v { font-size: clamp(38px, 4vw, 68px); letter-spacing: -0.045em; line-height: 1; font-weight: 300; font-stretch: var(--display); display: flex; align-items: baseline; gap: 6px; }
.num__v small { font-size: 10.5px; font-stretch: var(--wide); font-weight: 540; letter-spacing: 0.085em; text-transform: uppercase; color: var(--ink-3); }
.num__l { margin-top: 16px; font-size: 14px; line-height: 1.45; color: var(--ink-2); max-width: 220px; }

/* ---------------------------------------------------------------- work */
.work { padding-top: clamp(80px, 9vw, 150px); }
.work__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(40px, 5vw, 72px);
}
.filters { display: flex; gap: 4px clamp(16px, 2.2vw, 30px); flex-wrap: wrap; }
.pill {
  position: relative;
  height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-stretch: 106%;
  font-weight: 460;
  color: var(--ink-3);
  transition: color 0.3s;
}
.pill sup { font-size: 9px; font-stretch: var(--wide); font-weight: 560; letter-spacing: 0.06em; }
.pill::after { content: ''; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease-out); }
.pill:hover { color: var(--ink); }
.pill.is-active { color: var(--ink); }
.pill.is-active::after { transform: scaleX(1); transform-origin: left; }
.toggle { display: inline-flex; padding: 3px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--line); position: relative; }
.toggle button { position: relative; z-index: 1; height: 30px; padding: 0 13px; font-size: 13px; font-stretch: 106%; font-weight: 480; border-radius: 2px; transition: color 0.3s; display: inline-flex; align-items: center; gap: 8px; }
.toggle button.is-active { color: var(--paper); }
.toggle__thumb { position: absolute; top: 3px; bottom: 3px; left: 3px; border-radius: 2px; background: var(--ink); transition: transform 0.5s var(--ease-out), width 0.5s var(--ease-out); }
.toggle svg { width: 11px; height: 11px; }

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(56px, 6vw, 96px) var(--gap);
  align-items: start;
}
.card { position: relative; display: block; }
.card:nth-child(6n + 1) { grid-column: 1 / span 7; }
.card:nth-child(6n + 2) { grid-column: 9 / span 4; margin-top: 7vw; }
.card:nth-child(6n + 3) { grid-column: 1 / span 5; }
.card:nth-child(6n + 4) { grid-column: 7 / span 6; margin-top: 4vw; }
.card:nth-child(6n + 5) { grid-column: 1 / span 7; }
.card:nth-child(6n + 6) { grid-column: 9 / span 4; margin-top: 7vw; }
.grid.is-filtered .card { grid-column: span 6 !important; margin-top: 0 !important; }
.card.is-out { display: none; }
.card__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--mist);
  aspect-ratio: 4 / 3;
  isolation: isolate;
}
.card:nth-child(6n + 2) .card__media, .card:nth-child(6n + 6) .card__media { aspect-ratio: 4 / 5; }
.card__media img {
  position: absolute;
  inset: -6% 0;
  width: 100%;
  height: 112%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.card:hover .card__media img { transform: scale(1.045); }
.card__swatch {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 10px;
  display: flex;
  z-index: 2;
}
.card__swatch i { flex: 1; background: var(--c); transform: scaleY(0); transform-origin: bottom; transition: transform 0.6s var(--ease-out); transition-delay: calc(var(--i) * 40ms); }
.card:hover .card__swatch i { transform: scaleY(1); }
.card__badge {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  height: 24px;
  padding: 0 9px;
  border-radius: 2px;
  background: rgba(238, 243, 242, 0.92);
  display: inline-flex;
  align-items: center;
}
.card__info {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 4px 0;
  padding-top: 18px;
  align-items: baseline;
}
.card__no, .card__year { color: var(--ink-3); }
.card__title { margin: 0; font-size: clamp(22px, 2vw, 32px); letter-spacing: -0.03em; line-height: 1.05; font-weight: 440; font-stretch: var(--head); }
.card__sub { grid-column: 2 / span 2; margin: 6px 0 0; color: var(--ink-2); font-size: 15px; }
.card__tags { grid-column: 2 / span 2; display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 9.5px;
  font-stretch: var(--wide);
  font-weight: 540;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
}

.index { border-top: 1px solid var(--line); display: none; }
.index.is-on { display: block; }
.grid.is-off { display: none; }
.index__head, .index__row {
  display: grid;
  grid-template-columns: 70px 2.2fr 2fr 1.6fr 90px;
  gap: var(--gap);
  align-items: center;
}
.index__head { padding: 14px 0; color: var(--ink-3); border-bottom: 1px solid var(--line); }
.index__row {
  position: relative;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.index__row::before {
  content: '';
  position: absolute;
  inset: 0 calc(var(--pad) * -1);
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.5s var(--ease-out);
  z-index: -1;
}
.index__row:hover { color: var(--paper); }
.index__row:hover::before { transform: scaleY(1); }
.index__row:hover .tag { color: var(--paper); box-shadow: inset 0 0 0 1px rgba(238, 243, 242, 0.3); }
.index__row:hover .mono { color: rgba(238, 243, 242, 0.6); }
.index__title { font-size: clamp(24px, 2.7vw, 44px); letter-spacing: -0.035em; line-height: 1; font-weight: 380; font-stretch: var(--display); transition: transform 0.5s var(--ease-out); }
.index__row:hover .index__title { transform: translateX(12px); }
.index__row .mono { color: var(--ink-3); transition: color 0.3s; }
.index__ctx { font-size: 14px; }
.index__row .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.index__year { text-align: right; }
.preview {
  position: fixed;
  left: 0; top: 0;
  z-index: 80;
  width: 340px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.35s, transform 0.5s var(--ease-out);
  box-shadow: 0 30px 80px rgba(8, 25, 42, 0.35);
}
.preview.is-on { opacity: 1; transform: scale(1); }
.preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.4s; }
.preview img.is-on { opacity: 1; }

/* ---------------------------------------------------------------- approach (horizontal) */
.approach { background: var(--gibraltar); color: var(--on-dark); overflow: hidden; padding: 0; }
.approach__pin { height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; position: relative; padding-bottom: clamp(18px, 3.2vh, 36px); }
.approach__head { padding-top: calc(var(--nav-h) + 8px); margin-bottom: clamp(24px, 4vh, 48px); }
.approach__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.approach__title { margin: 22px 0 0; font-size: clamp(32px, 3.9vw, 66px); line-height: 1; letter-spacing: -0.04em; font-weight: 370; font-stretch: var(--display); max-width: 13em; }
.approach__intro { max-width: 380px; color: var(--on-dark-2); font-size: 15px; margin: 0; }
.approach__pin > * { flex-shrink: 0; }
.approach { --edge: max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad))); }
.approach__track { display: flex; gap: var(--gap); padding: 0 var(--edge); will-change: transform; flex: 0 1 560px; min-height: 280px; }
.stage {
  flex: 0 0 auto;
  width: min(78vw, 980px);
  height: auto;
  max-height: 560px;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  box-shadow: inset 0 0 0 1px var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(8, 25, 42, 0.25);
}
.stage__body { padding: clamp(22px, 2.4vw, 36px); display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.stage__no { color: var(--angel); display: flex; justify-content: space-between; }
.stage__title { margin: 0; font-size: clamp(26px, 2.5vw, 42px); letter-spacing: -0.035em; line-height: 1.02; font-weight: 380; font-stretch: var(--display); }
.stage__text { margin: 14px 0 0; color: var(--on-dark-2); font-size: 15px; line-height: 1.55; }
.stage__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.stage__tags .tag { color: var(--on-dark-2); box-shadow: inset 0 0 0 1px var(--line-dark); }
.stage__media { position: relative; overflow: hidden; background: var(--abyss-2); }
.stage__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--op, 50% 50%); }
.approach__progress { margin: clamp(24px, 4vh, 44px) var(--edge) 0; height: 1px; background: var(--line-dark); position: relative; }
.approach__progress i { position: absolute; inset: 0; background: var(--thread); transform-origin: left; transform: scaleX(0); }
.approach__steps { display: flex; justify-content: space-between; gap: 16px; margin: 12px var(--edge) 0; color: var(--on-dark-3); }
.approach__steps span { transition: color 0.4s; }

/* ---------------------------------------------------------------- library (3D) */
.library { background: linear-gradient(180deg, var(--paper-2) 0%, var(--mist) 100%); overflow: hidden; }
.library__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: stretch; margin-top: clamp(28px, 3.6vw, 60px); }
.library__ui { grid-column: 1 / span 4; display: flex; flex-direction: column; gap: 30px; position: relative; z-index: 2; }
.library__title { margin: 0 0 20px; font-size: clamp(32px, 3.5vw, 58px); line-height: 1; letter-spacing: -0.04em; font-weight: 370; font-stretch: var(--display); }
.library__intro { margin: 0; color: var(--ink-2); max-width: 420px; }
.library__stage { grid-column: 5 / span 8; position: relative; min-height: 620px; border-radius: 6px; overflow: hidden; background: radial-gradient(120% 90% at 50% 20%, #f7faf9 0%, #dfe9e7 55%, #c9dad7 100%); box-shadow: inset 0 0 0 1px var(--line-2); }
.library__canvas { position: absolute; inset: 0; }
.library__canvas canvas { display: block; width: 100% !important; height: 100% !important; }
.library__hud { position: absolute; left: 20px; right: 20px; top: 18px; display: flex; justify-content: space-between; gap: 16px; color: var(--ink-3); pointer-events: none; }
.library__hud span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.library__hud span:last-child { flex: none; }
.library__help { position: absolute; left: 20px; bottom: 18px; color: var(--ink-3); pointer-events: none; }
.ctl-label { margin-bottom: 10px; color: var(--ink-3); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button {
  height: 34px;
  padding: 0 12px;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 13px;
  font-stretch: 104%;
  font-weight: 460;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}
.seg button:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.seg button.is-active { background: var(--ink); color: var(--paper); box-shadow: inset 0 0 0 1px var(--ink); }
.specsheet { border-top: 1px solid var(--line); }
.specsheet__row { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; align-items: baseline; font-variant-numeric: tabular-nums; }
.specsheet__row .mono { color: var(--ink-3); }
.specsheet__swatch { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.specsheet__swatch i { width: 54px; height: 54px; border-radius: 3px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06); transition: background 0.6s var(--ease-out); flex: none; }
.specsheet__name { font-size: 21px; letter-spacing: -0.025em; line-height: 1.1; font-weight: 460; font-stretch: var(--head); }
.specsheet__code { font-size: 12px; color: var(--ink-3); margin-top: 4px; font-variant-numeric: tabular-nums; }
.specsheet__body { transition: opacity 0.35s; }
.specsheet__body.is-swap { opacity: 0.35; }
.copy { padding: 7px 10px; border-radius: 2px; box-shadow: inset 0 0 0 1px var(--line); margin-left: auto; transition: background 0.3s, color 0.3s; }
.copy:hover { background: var(--ink); color: var(--paper); }

/* ---------------------------------------------------------------- recognition */
.rec__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.rec__col { grid-column: span 6; }
.rec__col h3 { margin: 0 0 16px; color: var(--ink-3); font-weight: 540; }
.rec__item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 20px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  transition: padding 0.5s var(--ease-out);
}
.rec__item:last-child { border-bottom: 1px solid var(--line); }
.rec__item:hover { padding-left: 12px; }
.rec__name { font-size: clamp(18px, 1.5vw, 24px); letter-spacing: -0.02em; line-height: 1.2; font-weight: 440; font-stretch: var(--head); }
.rec__when { color: var(--ink-3); text-align: right; }
.rec__where { color: var(--ink-2); font-size: 14px; }

/* ---------------------------------------------------------------- about */
.about { background: var(--paper-2); }
.about__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); margin-top: clamp(28px, 3.6vw, 60px); }
.about__portrait { grid-column: 1 / span 4; position: relative; }
.portrait { position: sticky; top: calc(var(--nav-h) + 24px); }
.portrait__frame { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 598 / 980; background: var(--mist); }
.portrait__frame img { position: absolute; inset: -5% 0; width: 100%; height: 110%; object-fit: cover; }
.portrait__tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  right: 12px;
  background: rgba(238, 243, 242, 0.94);
  border-radius: 2px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  font-size: 13px;
}
.portrait__tag > span:first-child { font-weight: 560; font-stretch: var(--head); }
.portrait__tag .mono { color: var(--ink-3); }
.about__body { grid-column: 6 / span 7; }
.about__quote {
  margin: 0 0 40px;
  padding: 0;
  font-size: clamp(24px, 2.4vw, 40px);
  line-height: 1.16;
  letter-spacing: -0.03em;
  font-weight: 360;
  font-stretch: 106%;
  text-indent: -0.4em;
}
.about__quote cite { display: block; margin-top: 18px; text-indent: 0; font-style: normal; color: var(--ink-3); }
.about__text { color: var(--ink-2); font-size: 17px; max-width: 640px; }
.about__text p { margin: 0 0 1em; }
.about__actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 36px 0 72px; }

.cv-block { border-top: 1px solid var(--ink); padding-top: 16px; margin-bottom: 56px; }
.cv-block__head { display: flex; justify-content: space-between; margin-bottom: 8px; }
.cv-item { border-bottom: 1px solid var(--line); }
.cv-item__top {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 200px;
  gap: 16px;
  align-items: baseline;
  padding: 18px 0;
  text-align: left;
}
.cv-item__org { font-size: 18px; letter-spacing: -0.015em; font-weight: 500; font-stretch: var(--head); }
.cv-item__role { color: var(--ink-2); font-size: 15px; }
.cv-item__when { color: var(--ink-3); white-space: nowrap; display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.cv-item__when i { width: 18px; height: 18px; border-radius: 2px; box-shadow: inset 0 0 0 1px var(--line); position: relative; flex: none; }
.cv-item__when i::before, .cv-item__when i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 8px; height: 1px; background: currentColor; transform: translate(-50%, -50%); }
.cv-item__when i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.4s var(--ease-out); }
.cv-item.is-open .cv-item__when i::after { transform: translate(-50%, -50%) rotate(0deg); }
.cv-item__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.55s var(--ease-out); }
.cv-item.is-open .cv-item__body { grid-template-rows: 1fr; }
.cv-item__body > div { overflow: hidden; }
.cv-item__body p { margin: 0 0 20px; color: var(--ink-2); max-width: 620px; font-size: 15px; }
.cv-item__body ul { margin: 0 0 20px; padding: 0; list-style: none; }
.cv-item__body li { color: var(--ink-2); font-size: 15px; padding-left: 18px; position: relative; margin-bottom: 4px; }
.cv-item__body li::before { content: ''; position: absolute; left: 0; top: 0.72em; width: 8px; height: 1px; background: var(--thread); }
.cv-item__where { color: var(--ink-3); margin-bottom: 10px; }
.skills { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px var(--gap); }
.skills h4 { margin: 0 0 10px; font-weight: 520; font-size: 14px; font-stretch: var(--head); }
.skills div div { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------------------------------------------------------------- contact / footer */
.contact { background: var(--abyss); color: var(--on-dark); padding: clamp(100px, 12vw, 180px) 0 0; overflow: hidden; position: relative; }
.contact__inner { position: relative; }
.contact__title { margin: clamp(28px, 3.6vw, 60px) 0 0; max-width: 12em; font-size: clamp(40px, 6.4vw, 116px); line-height: 0.98; letter-spacing: -0.045em; font-weight: 340; font-stretch: var(--display); }
.contact__note { margin: 26px 0 0; max-width: 460px; color: var(--on-dark-2); font-size: 16px; }
.contact__row { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); margin-top: clamp(56px, 7vw, 110px); padding-top: 28px; border-top: 1px solid var(--line-dark); }
.contact__mail { grid-column: 1 / span 7; }
.contact__mail a { font-size: clamp(22px, 2.5vw, 42px); letter-spacing: -0.03em; font-stretch: var(--head); font-weight: 400; display: inline-flex; align-items: center; gap: 16px; position: relative; }
.contact__mail a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform-origin: right; transform: scaleX(0); transition: transform 0.6s var(--ease-out); }
.contact__mail a:hover::after { transform-origin: left; transform: scaleX(1); }
.contact__meta { grid-column: 8 / span 5; display: grid; grid-template-columns: 1fr 1fr; gap: 22px var(--gap); }
.contact__meta .mono { color: var(--on-dark-3); display: block; margin-bottom: 6px; }
.contact__meta p { margin: 0; color: var(--on-dark-2); font-size: 15px; font-variant-numeric: tabular-nums; }
.contact__meta a:hover, .contact__meta button:hover { color: var(--angel); }
.contact__cv { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.contact__ext { display: inline-flex; align-items: center; gap: 6px; }
.contact__ext svg { width: 0.7em; height: 0.7em; }
.menu__foot { color: var(--on-dark-3); line-height: 1.8; }
.menu__foot a { display: inline-block; padding: 6px 0; margin: -6px 0; }
.menu__foot a:hover { color: var(--on-dark); }
.specsheet a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); transition: text-decoration-color 0.3s; }
.specsheet a:hover { text-decoration-color: currentColor; }
.contact__cv a, .contact__cv button { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(232, 241, 240, 0.35); transition: color 0.3s, text-decoration-color 0.3s; }
.contact__cv a:hover, .contact__cv button:hover { text-decoration-color: currentColor; }
.contact .eyebrow { color: var(--on-dark-3); }
.footer { margin-top: clamp(80px, 9vw, 140px); }
.footer__stripe { display: flex; height: 10px; }
.footer__stripe i { flex: 1; background: var(--c); }
.footer__bar { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 26px; color: var(--on-dark-3); }
.footer__bar a { padding: 10px 0; margin: -10px 0; }
.footer__bar a:hover { color: var(--on-dark); }

/* ---------------------------------------------------------------- case study */
.case { background: var(--paper); }
.case-hero { padding: calc(var(--nav-h) + clamp(28px, 5vw, 72px)) 0 clamp(36px, 4vw, 56px); background: linear-gradient(180deg, var(--tint, var(--paper)) 0%, var(--paper) 100%); }
.case-hero__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: clamp(48px, 7vw, 110px); }
.back { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-stretch: 106%; font-weight: 480; }
.back svg { width: 14px; height: 14px; transform: rotate(180deg); transition: transform 0.4s var(--ease-out); }
.back:hover svg { transform: rotate(180deg) translateX(4px); }
.case-hero__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: end; }
.case-hero__title {
  grid-column: 1 / span 8;
  margin: 18px 0 0;
  font-size: clamp(50px, 9vw, 164px);
  line-height: 0.9;
  letter-spacing: -0.05em;
  font-weight: 340;
  font-stretch: var(--display);
}
.case-hero__sub { grid-column: 9 / span 4; margin: 0; font-size: clamp(17px, 1.4vw, 22px); line-height: 1.32; letter-spacing: -0.015em; color: var(--ink-2); padding-bottom: 0.6em; }
.case-hero__swatch { display: flex; gap: 4px; margin-top: clamp(28px, 3vw, 44px); }
.case-hero__swatch i { height: 8px; flex: 1; border-radius: 1px; background: var(--c); transform-origin: left; }

.case-cover { position: relative; margin: 0 auto; overflow: hidden; height: 92vh; height: 92svh; max-height: 1100px; clip-path: inset(0 var(--pad) 0 var(--pad) round var(--radius)); }
.case-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }

.case-overview { padding: clamp(72px, 9vw, 140px) 0 clamp(40px, 5vw, 80px); }
.overview__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.overview__spec { grid-column: 1 / span 4; }
.overview__spec .specsheet__row { grid-template-columns: 104px 1fr; }
.overview__summary { grid-column: 6 / span 7; margin: 0; font-size: clamp(21px, 2vw, 32px); line-height: 1.26; letter-spacing: -0.022em; font-weight: 380; font-stretch: 104%; }

.blocks { padding-bottom: clamp(60px, 8vw, 120px); }
.b { margin-top: clamp(64px, 8vw, 128px); }
.b-lede { font-size: clamp(30px, 4vw, 70px); line-height: 1.04; letter-spacing: -0.04em; font-weight: 350; font-stretch: var(--display); margin: 0; max-width: 16em; }
.b-lede em, .b-body em { font-style: normal; font-weight: 560; }
.b-text { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.b-text__kicker { grid-column: 1 / span 3; padding-top: 0.55em; }
.b-text__main { grid-column: 4 / span 9; }
.b-title { margin: 0 0 22px; font-size: clamp(24px, 2.4vw, 40px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 400; font-stretch: var(--head); max-width: 22em; }
.b-body { color: var(--ink-2); font-size: 17px; max-width: 700px; }
.b-body p { margin: 0 0 1em; }
.b-body strong { color: var(--ink); font-weight: 600; }
.b-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--gap); margin-top: 36px; }
.b-col { border-top: 1px solid var(--ink); padding-top: 16px; }
.b-col h4 { margin: 0 0 8px; font-size: 18px; font-weight: 500; font-stretch: var(--head); letter-spacing: -0.015em; }
.b-col p { margin: 0; color: var(--ink-2); font-size: 15px; }
.b-col small { display: block; margin-top: 12px; font-size: 10px; font-stretch: var(--wide); font-weight: 540; letter-spacing: 0.07em; color: var(--ink-3); text-transform: uppercase; line-height: 1.6; }

.b-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.b-stat { padding: 30px 22px 30px 0; }
.b-stat + .b-stat { padding-left: 22px; border-left: 1px solid var(--line); }
.b-stat__v { font-size: clamp(38px, 4.2vw, 72px); letter-spacing: -0.045em; line-height: 1; font-weight: 300; font-stretch: var(--display); color: var(--accent); }
.b-stat__l { margin-top: 14px; font-size: 15px; color: var(--ink); line-height: 1.4; max-width: 240px; }
.b-stat__s { margin-top: 8px; color: var(--ink-3); }

.b-split { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: start; }
.b-split__text { grid-column: 1 / span 5; }
.b-split__text .eyebrow { margin-bottom: 20px; }
.b-split__side { grid-column: 7 / span 6; }
.b-split__side .fig { margin: 0; }
.modes { display: grid; gap: 10px; }
.mode { display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 16px; padding: 22px; border-radius: var(--radius); background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.mode:first-child { background: #26302f; color: #e6ecea; box-shadow: none; }
.mode:first-child .mono { color: rgba(230, 236, 234, 0.55); }
.mode__name { font-size: 24px; font-stretch: var(--head); font-weight: 420; letter-spacing: -0.025em; }
.mode__route { font-size: 15px; }

.numlist { margin: 0 0 1em; padding: 0; list-style: none; counter-reset: n; }
.numlist li { counter-increment: n; padding: 12px 0 12px 44px; border-top: 1px solid var(--line); position: relative; }
.numlist li::before { content: '0' counter(n); position: absolute; left: 0; top: 15px; font-size: 10.5px; font-stretch: var(--wide); font-weight: 540; color: var(--accent); }
.ticks { margin: 0; padding: 0; list-style: none; }
.ticks li { padding: 10px 0 10px 26px; border-top: 1px solid var(--line); position: relative; font-size: 15px; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 18px; width: 10px; height: 5px; border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(-45deg); }
.ticks li.neg::before { border-left: 0; transform: none; top: 20px; height: 0; }

.fig { margin: 0; }
.fig__media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); cursor: zoom-in; }
.fig__media img { width: 100%; height: auto; transition: transform 1.1s var(--ease-out); }
.fig__cap { display: flex; gap: 16px; margin-top: 12px; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.fig__cap .mono { color: var(--ink-3); flex: none; padding-top: 2px; }
.b-img--wide { max-width: calc(var(--max) - 2 * var(--pad)); }
.b-img--full { padding: 0 var(--pad); }
.b-img--full .fig__media { border-radius: var(--radius); }
.b-img--full .fig__cap { max-width: var(--max); margin-left: auto; margin-right: auto; }

.b-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.b-pair__cap { grid-column: 1 / -1; }

.b-gallery__head { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); margin-bottom: 28px; }
.b-gallery__head h3 { grid-column: 1 / span 5; margin: 0; font-size: clamp(22px, 2vw, 32px); letter-spacing: -0.025em; font-weight: 420; font-stretch: var(--head); }
.b-gallery__head p { grid-column: 7 / span 6; margin: 0; color: var(--ink-2); font-size: 15px; }
.b-gallery__grid { columns: 3; column-gap: var(--gap); }
.b-gallery__grid .fig { break-inside: avoid; margin-bottom: var(--gap); }

.b-palette__head { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); margin-bottom: 26px; }
.b-palette__head h3 { grid-column: 1 / span 5; margin: 0; font-size: clamp(21px, 1.9vw, 30px); letter-spacing: -0.025em; font-weight: 420; font-stretch: var(--head); }
.b-palette__head p { grid-column: 7 / span 6; margin: 0; color: var(--ink-2); font-size: 15px; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.swatches--small { grid-template-columns: repeat(auto-fill, minmax(150px, 220px)); }
.sw { position: relative; border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line-2); transition: transform 0.5s var(--ease-out), box-shadow 0.5s; text-align: left; display: flex; flex-direction: column; }
.sw:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px var(--line-2), 0 18px 40px rgba(8, 25, 42, 0.14); }
.sw__color { height: 150px; background: var(--c); position: relative; }
.swatches--small .sw__color { height: 90px; }
.sw__color::after { content: 'Copy HEX'; position: absolute; right: 10px; bottom: 10px; font-size: 9.5px; font-stretch: var(--wide); font-weight: 560; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 8px; border-radius: 2px; background: rgba(255, 255, 255, 0.92); color: var(--ink); opacity: 0; transform: translateY(6px); transition: opacity 0.3s, transform 0.4s var(--ease-out); }
.sw:hover .sw__color::after { opacity: 1; transform: none; }
.sw.is-copied .sw__color::after { content: 'Copied'; }
.sw__info { padding: 12px 12px 14px; flex: 1; }
.sw__code { font-size: 12.5px; font-weight: 560; font-variant-numeric: tabular-nums; color: var(--ink); }
.sw__name { font-size: 14px; margin-top: 2px; color: var(--ink-2); line-height: 1.3; }
.sw__vals { margin-top: 10px; font-size: 11.5px; font-variant-numeric: tabular-nums; color: var(--ink-3); line-height: 1.55; }

.b-materials { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.b-materials__head { grid-column: 1 / span 4; }
.b-materials__head h3 { margin: 0 0 14px; font-size: clamp(21px, 1.9vw, 30px); letter-spacing: -0.025em; font-weight: 420; font-stretch: var(--head); }
.b-materials__head p { margin: 0; color: var(--ink-2); font-size: 15px; }
.b-materials__list { grid-column: 6 / span 7; margin: 0; padding: 0; list-style: none; counter-reset: m; }
.b-materials__list li { counter-increment: m; display: grid; grid-template-columns: 44px 1fr; gap: 4px 12px; padding: 15px 0; border-top: 1px solid var(--line); }
.b-materials__list li:last-child { border-bottom: 1px solid var(--line); }
.b-materials__list li::before { content: counter(m, decimal-leading-zero); font-size: 10.5px; font-stretch: var(--wide); font-weight: 540; color: var(--accent); padding-top: 4px; grid-row: span 2; }
.b-materials__list b { font-weight: 500; font-size: 16.5px; letter-spacing: -0.01em; }
.b-materials__list span { color: var(--ink-3); font-size: 14px; grid-column: 2; }
.b-materials__groups { grid-column: 6 / span 7; display: grid; gap: 36px; }
.b-materials__groups h4 { margin: 0 0 6px; color: var(--ink-3); font-weight: 540; }
.b-materials__groups .b-materials__list { grid-column: auto; }

.b-chapter { position: relative; margin-top: clamp(90px, 11vw, 180px); padding: clamp(80px, 10vw, 150px) 0; background: var(--cc); color: var(--ink); overflow: hidden; }
.b-chapter.is-dark { color: var(--on-dark); }
.b-chapter.is-dark .eyebrow, .b-chapter.is-dark .mono { color: var(--on-dark-3); }
.b-chapter__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: end; }
.b-chapter__no { grid-column: 1 / -1; }
.b-chapter__title { grid-column: 1 / span 9; margin: 22px 0 0; font-size: clamp(50px, 8.4vw, 150px); line-height: 0.9; letter-spacing: -0.05em; font-weight: 330; font-stretch: var(--display); }
.b-chapter__sub { grid-column: 10 / span 3; margin: 0; font-size: 19px; line-height: 1.35; font-stretch: 104%; padding-bottom: 0.8em; }
.b-chapter + .b { margin-top: clamp(72px, 9vw, 130px); }

.b-videos__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: var(--gap); }
.video { position: relative; border-radius: var(--radius); overflow: hidden; background: #191919; }
.video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.video video:focus { outline: none; }
.video__play { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: #fff; background: radial-gradient(circle at 50% 50%, rgba(8, 25, 42, 0.05), rgba(8, 25, 42, 0.42)); transition: opacity 0.45s; }
.video__play-ico { display: grid; place-items: center; width: clamp(64px, 7vw, 92px); aspect-ratio: 1; border-radius: 50%; background: rgba(238, 243, 242, 0.94); color: var(--ink); box-shadow: 0 12px 40px rgba(8, 25, 42, 0.3); transition: transform 0.6s var(--ease-out); }
.video__play-ico svg { width: 30%; margin-left: 6%; }
.video__play .mono { font-size: 10.5px; text-shadow: 0 1px 12px rgba(8, 25, 42, 0.6); }
.video__play:hover .video__play-ico, .video__play:focus-visible .video__play-ico { transform: scale(1.08); }
.video.is-started .video__play { opacity: 0; pointer-events: none; }
.video__toggle { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(8, 25, 42, 0.5); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: opacity 0.3s, background 0.3s; }
.video__toggle svg { width: 13px; }
.video__toggle:hover { background: rgba(8, 25, 42, 0.75); }
.video:hover .video__toggle, .video__toggle:focus-visible, .video.is-paused .video__toggle { opacity: 1; }
.video .video__toggle svg:last-child, .video.is-paused .video__toggle svg:first-child { display: none; }
.video.is-paused .video__toggle svg:last-child { display: block; }
@media (hover: none) { .video__toggle { opacity: 0.9; } }
.b-videos h3 { margin: 0 0 6px; font-size: clamp(21px, 1.9vw, 30px); letter-spacing: -0.025em; font-weight: 420; font-stretch: var(--head); }
.b-videos p { margin: 0 0 24px; color: var(--ink-2); font-size: 15px; }

.b-spec { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); padding: clamp(28px, 3vw, 48px); border-radius: 6px; background: #fff; box-shadow: 0 0 0 1px var(--line-2); }
.b-spec__head { grid-column: 1 / span 4; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.b-spec__head h3 { margin: 0; font-size: clamp(21px, 1.9vw, 30px); letter-spacing: -0.025em; font-weight: 420; font-stretch: var(--head); }
.b-spec__table { grid-column: 5 / span 8; }
.b-spec__row { display: grid; grid-template-columns: 180px 1fr; gap: 20px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px; }
.b-spec__row:first-child { border-top: 0; padding-top: 0; }
.b-spec__row .mono { color: var(--ink-3); padding-top: 3px; }
.glow-dots { display: flex; align-items: flex-end; gap: 14px; }
.glow-dots span { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--ink-3); }
.glow-dots i { display: block; border-radius: 50%; background: var(--c); box-shadow: 0 0 22px var(--c), 0 0 4px var(--c); }

.b-outcome { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); padding-top: 28px; border-top: 1px solid var(--ink); }
.b-outcome h3 { grid-column: 1 / span 4; margin: 0; font-size: clamp(21px, 1.9vw, 30px); letter-spacing: -0.025em; font-weight: 420; font-stretch: var(--head); }
.b-outcome ul { grid-column: 6 / span 7; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--gap); }
.b-outcome li { padding: 12px 0 12px 22px; border-bottom: 1px solid var(--line); position: relative; font-size: 15px; }
.b-outcome li::before { content: ''; position: absolute; left: 0; top: 21px; width: 7px; height: 7px; border-radius: 1px; background: var(--accent); transform: rotate(45deg); }

.b-colorways { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: start; }
.b-colorways__text { grid-column: 1 / span 4; }
.b-colorways__text h3 { margin: 0 0 18px; font-size: clamp(22px, 2vw, 32px); letter-spacing: -0.025em; font-weight: 420; font-stretch: var(--head); }
.b-colorways__text .b-body { font-size: 15px; }
.b-colorways__stage { grid-column: 6 / span 7; }
.cw-tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.cw-tabs button { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px 0 8px; border-radius: 2px; box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-stretch: 104%; transition: background 0.3s, color 0.3s, box-shadow 0.3s; }
.cw-tabs button .dots { display: inline-flex; }
.cw-tabs button .dots i { width: 12px; height: 24px; background: var(--c); }
.cw-tabs button .dots i:first-child { border-radius: 1px 0 0 1px; }
.cw-tabs button .dots i:last-child { border-radius: 0 1px 1px 0; }
.cw-tabs button.is-active { background: var(--ink); color: var(--paper); box-shadow: inset 0 0 0 1px var(--ink); }
.cw-view { position: relative; display: grid; grid-template-columns: 1.62fr 1fr; gap: 10px; }
.cw-slot { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.cw-slot img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.7s var(--ease-out), transform 1s var(--ease-out); }
.cw-slot img + img { position: absolute; inset: 0; }
.cw-slot img.is-hidden { opacity: 0; transform: scale(1.04); }
.cw-slot--ext { grid-row: span 2; aspect-ratio: 990 / 608; }
.cw-meta { display: flex; flex-direction: column; justify-content: space-between; padding: 18px; border-radius: var(--radius); background: var(--paper-2); }
.cw-meta__name { font-size: 26px; letter-spacing: -0.03em; line-height: 1.05; font-stretch: var(--head); font-weight: 420; }
.cw-meta__sw { display: flex; gap: 4px; margin-top: 16px; }
.cw-meta__sw i { flex: 1; height: 36px; border-radius: 2px; background: var(--c); transition: background 0.6s; }

/* constructed tension editorial */
.ed-intro { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.ed-intro__big { grid-column: 1 / span 10; margin: 0 0 48px; font-size: clamp(30px, 4vw, 70px); line-height: 1.04; letter-spacing: -0.04em; font-weight: 350; font-stretch: var(--display); }
.ed-intro__p { grid-column: 4 / span 7; }
.ed-intro__p p { margin: 0 0 1.1em; font-size: clamp(17px, 1.3vw, 20px); color: var(--ink-2); line-height: 1.55; }
.ed-pair { margin-top: clamp(80px, 11vw, 180px); }
.ed-pair__lead { max-width: 19em; margin: 0 0 clamp(28px, 3vw, 48px); font-size: clamp(24px, 2.6vw, 44px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 370; font-stretch: 106%; }
.ed-pair:nth-child(even) .ed-pair__lead { margin-left: auto; text-align: right; }
.ed-pair__imgs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: center; }
.ed-pair__imgs.is-one { grid-template-columns: 1fr; }
.ed-pair__imgs.is-stack { grid-template-columns: 1fr; }
.ed-pair__cap { margin-top: 14px; color: var(--ink-3); }
.ed-outro { margin-top: clamp(100px, 12vw, 200px); padding-top: 36px; border-top: 1px solid var(--ink); display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.ed-outro p { grid-column: 4 / span 8; margin: 0 0 1em; font-size: clamp(21px, 2vw, 34px); line-height: 1.24; letter-spacing: -0.025em; font-weight: 370; font-stretch: 104%; }

/* next project */
.case-next { position: relative; display: block; background: var(--abyss); color: var(--on-dark); overflow: hidden; }
.case-next__media { position: absolute; inset: 0; opacity: 0.38; transition: opacity 0.8s, transform 1.4s var(--ease-out); }
.case-next__media img { width: 100%; height: 100%; object-fit: cover; }
.case-next:hover .case-next__media { opacity: 0.58; transform: scale(1.04); }
.case-next__inner { position: relative; padding-block: clamp(100px, 13vw, 200px); }
.case-next__title { margin: 18px 0 0; font-size: clamp(50px, 9vw, 164px); line-height: 0.9; letter-spacing: -0.05em; font-weight: 330; font-stretch: var(--display); display: flex; align-items: center; gap: 0.2em; }
.case-next__title svg { width: 0.4em; height: 0.4em; flex: none; transition: transform 0.6s var(--ease-out); }
.case-next:hover .case-next__title svg { transform: translateX(14px); }

/* ---------------------------------------------------------------- lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(8, 25, 42, 0.985);
  color: var(--on-dark);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s, visibility 0s linear 0.45s;
}
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity 0.45s, visibility 0s; }
.lightbox__top, .lightbox__bottom { display: flex; justify-content: space-between; align-items: center; padding: 16px var(--pad); gap: 16px; }
.lightbox__top .mono, .lightbox__bottom { color: var(--on-dark-2); }
.lightbox__stage { position: relative; min-height: 0; overflow: hidden; display: grid; place-items: center; padding: 0 var(--pad); cursor: zoom-in; }
.lightbox__stage.is-zoomed { cursor: zoom-out; }
.lightbox__stage img { position: absolute; inset: 0; margin: auto; max-width: calc(100% - 2 * var(--pad)); max-height: 100%; width: auto; height: auto; border-radius: 2px; transition: transform 0.5s var(--ease-out), opacity 0.3s; }
.lightbox__btn { width: 44px; height: 44px; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--line-dark); display: grid; place-items: center; transition: background 0.3s, color 0.3s; }
.lightbox__btn:hover { background: var(--paper); color: var(--ink); }
.lightbox__btn svg { width: 14px; height: 14px; }
.lightbox__nav { display: flex; gap: 8px; }
.lightbox__nav.is-single { visibility: hidden; }
.lightbox__cap { font-size: 14px; max-width: 760px; }

/* ---------------------------------------------------------------- document viewer (CV) */
.docview {
  position: fixed;
  inset: 0;
  z-index: 255;
  background: rgba(8, 25, 42, 0.985);
  color: var(--on-dark);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s, visibility 0s linear 0.45s;
}
.docview.is-open { opacity: 1; visibility: visible; transition: opacity 0.45s, visibility 0s; }
.docview__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px var(--pad); border-bottom: 1px solid var(--line-dark); }
.docview__title { display: flex; align-items: baseline; gap: 18px; min-width: 0; }
.docview__title strong { font-size: 15px; font-weight: 520; font-stretch: var(--head); white-space: nowrap; }
.docview__title .mono { color: var(--on-dark-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.docview__actions { display: flex; gap: 8px; align-items: center; }
.docview__actions .btn { height: 40px; font-size: 13px; color: var(--on-dark); }
.docview__actions .btn--light { color: var(--ink); }
.docview__scroll {
  overflow: auto;
  overscroll-behavior: contain;
  outline: none;
  padding: clamp(20px, 4vw, 56px) var(--pad) 96px;
  scrollbar-width: thin;
  scrollbar-color: rgba(232, 241, 240, 0.3) transparent;
}
.docview__scroll::-webkit-scrollbar { width: 6px; }
.docview__scroll::-webkit-scrollbar-thumb { background: rgba(232, 241, 240, 0.3); border-radius: 3px; }
.docview__page {
  margin: 0 auto;
  width: min(100%, 940px);
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.45);
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.8s var(--ease-out), opacity 0.6s, width 0.6s var(--ease-out);
}
.docview.is-open .docview__page { transform: none; opacity: 1; }
.docview__page { cursor: zoom-in; }
.docview.is-wide .docview__page { width: max(100%, 1500px); cursor: zoom-out; }
@media (max-width: 900px) { .docview.is-wide .docview__page { width: max(100%, 860px); } }
.docview__page img { width: 100%; height: auto; display: block; border-radius: 2px; }
.docview__foot { width: min(100%, 940px); margin: 18px auto 0; display: flex; justify-content: space-between; color: var(--on-dark-3); }

/* ---------------------------------------------------------------- loupe */
.loupe {
  position: fixed;
  left: 0; top: 0;
  z-index: 120;
  width: 220px;
  height: 220px;
  margin: -110px 0 0 -110px;
  border-radius: 50%;
  pointer-events: none;
  background-repeat: no-repeat;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7), 0 0 0 7px rgba(8, 25, 42, 0.1), 0 24px 60px rgba(8, 25, 42, 0.35);
  transform: scale(0);
  transition: transform 0.4s var(--ease-out);
}
.loupe.is-on { transform: scale(1); }
.loupe::after { content: '3×'; position: absolute; right: 22px; bottom: 26px; font-size: 10px; font-weight: 560; font-stretch: var(--wide); color: #fff; background: rgba(8, 25, 42, 0.6); padding: 3px 6px; border-radius: 2px; }
.fig.has-loupe .fig__media { cursor: none; }
@media (hover: none) { .loupe { display: none; } .fig.has-loupe .fig__media { cursor: zoom-in; } }
.loupe-hint { display: inline-flex; gap: 6px; align-items: center; }
.loupe-hint::before { content: ''; width: 9px; height: 9px; border: 1.5px solid currentColor; border-radius: 50%; }

/* ---------------------------------------------------------------- email chooser */
.mailpop {
  position: fixed;
  z-index: 270;
  width: min(320px, calc(100vw - 24px));
  padding: 6px;
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--line-2), 0 24px 60px rgba(8, 25, 42, 0.32);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.25s, transform 0.4s var(--ease-out), visibility 0.25s;
}
.mailpop.is-above { transform: translateY(6px); }
.mailpop.is-on { opacity: 1; visibility: visible; transform: none; }
.mailpop__head { display: flex; justify-content: space-between; align-items: center; padding: 6px 6px 8px 10px; color: var(--ink-3); }
.mailpop__head button { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 2px; }
.mailpop__head button:hover { background: var(--paper-2); }
.mailpop__head svg { width: 11px; height: 11px; }
.mailpop__opt {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 10px;
  border-top: 1px solid var(--line-2);
  font-size: 15px;
  font-stretch: 104%;
  font-weight: 480;
  text-align: left;
  transition: background 0.25s;
}
.mailpop__opt:hover, .mailpop__opt:focus-visible { background: var(--paper-2); outline-offset: -2px; }
.mailpop__opt .mono { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); font-size: 9.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: none; letter-spacing: 0.02em; }
.mailpop__opt:not(button) .mono { text-transform: uppercase; letter-spacing: 0.085em; }
.mailpop__opt svg { width: 9px; height: 9px; flex: none; }

/* ---------------------------------------------------------------- toast */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 260; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: var(--paper); padding: 12px 16px; border-radius: 3px; font-size: 13px; font-stretch: 104%; display: flex; gap: 10px; align-items: center; transition: opacity 0.4s, transform 0.5s var(--ease-out); pointer-events: none; }
.toast i { width: 12px; height: 12px; border-radius: 2px; background: var(--c, var(--bluebird)); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }


.nc { text-transform: none; }
.nw { white-space: nowrap; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .nav__time { display: none; }
  .numbers { grid-template-columns: repeat(3, 1fr); }
  .num:nth-child(3) { border-right: 0; }
  .num:nth-child(4) { padding-left: 0; }
  .num:nth-child(n + 4) { padding-top: 36px; }
  .library__ui { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 28px var(--gap); }
  .library__ui > :first-child { grid-column: 1 / -1; }
  .library__stage { grid-column: 1 / -1; min-height: 560px; }
}

@media (min-width: 901px) and (max-height: 820px) {
  .approach__head { padding-top: calc(var(--nav-h) - 6px); margin-bottom: 22px; }
  .approach__title { font-size: clamp(30px, 3.2vw, 52px); }
  .approach__progress { margin-top: 20px; }
  .stage__text { font-size: 14px; line-height: 1.5; }
  .stage__body { padding: 24px 26px; }
  .library__stage { min-height: 540px; }
}

@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  .nav__links, .nav__right .btn { display: none; }
  .nav__menu { display: block; }
  .nav__inner { grid-template-columns: 1fr auto; }
  .brand__role { display: none; }
  .hero__title { grid-column: 1 / -1; }
  .hero__bottom { grid-template-columns: 1fr; gap: 22px; }
  .hero__lede, .hero__actions, .hero__sample { grid-column: 1 / -1; }
  .hero__sample { justify-self: start; text-align: left; }
  .chips { justify-content: flex-start; }
  .statement__text { grid-column: 1 / -1; }
  .numbers { grid-template-columns: 1fr 1fr; }
  .num { padding: 24px 12px 0 0 !important; border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 24px !important; }
  .grid { grid-template-columns: 1fr; gap: 56px; }
  .card, .grid.is-filtered .card { grid-column: 1 / -1 !important; margin-top: 0 !important; }
  .card .card__media { aspect-ratio: 4 / 3 !important; }
  .index__head { display: none; }
  .index__row { grid-template-columns: 44px 1fr auto; }
  .index__row .tags, .index__ctx { display: none; }
  .approach__pin { height: auto; padding: 100px 0; }
  .approach__head { padding-top: 0; }
  .approach__row { flex-direction: column; align-items: flex-start; gap: 24px; }
  .approach__track { flex-direction: column; transform: none !important; flex: none; min-height: 0; }
  .stage { width: 100%; height: auto; max-height: none; grid-template-columns: 1fr; }
  .stage__media { aspect-ratio: 16 / 10; order: -1; }
  .approach__progress, .approach__steps { display: none; }
  .library__ui { grid-template-columns: 1fr; }
  .library__stage { min-height: 460px; }
  .rec__col { grid-column: 1 / -1; }
  .rec__col + .rec__col { margin-top: 48px; }
  .about__portrait, .about__body { grid-column: 1 / -1; }
  .portrait { position: relative; top: 0; max-width: 420px; margin-bottom: 48px; }
  .cv-item__top { grid-template-columns: 1fr auto; }
  .cv-item__role { grid-column: 1; grid-row: 2; }
  .cv-item__when { grid-row: 1 / span 2; grid-column: 2; }
  .skills { grid-template-columns: 1fr; }
  .contact__mail, .contact__meta { grid-column: 1 / -1; }
  .contact__mail a { font-size: clamp(20px, 6vw, 32px); word-break: break-all; }
  .contact__meta { margin-top: 36px; }
  .case-hero__title, .case-hero__sub { grid-column: 1 / -1; }
  .case-hero__sub { margin-top: 18px; }
  .case-cover { height: 62vh; }
  .overview__spec, .overview__summary { grid-column: 1 / -1; }
  .overview__summary { margin-top: 40px; }
  .b-text__kicker, .b-text__main, .b-split__text, .b-split__side, .b-materials__head, .b-materials__list, .b-materials__groups, .b-spec__head, .b-spec__table, .b-outcome h3, .b-outcome ul, .b-colorways__text, .b-colorways__stage, .b-gallery__head h3, .b-gallery__head p, .b-palette__head h3, .b-palette__head p, .b-chapter__title, .b-chapter__sub, .ed-intro__big, .ed-intro__p, .ed-outro p { grid-column: 1 / -1; }
  .b-text__kicker { margin-bottom: 14px; }
  .b-split__side { margin-top: 32px; }
  .b-stats { grid-template-columns: 1fr 1fr; }
  .b-stat { padding: 24px 12px 24px 0 !important; border-left: 0 !important; border-bottom: 1px solid var(--line); }
  .b-pair { grid-template-columns: 1fr; }
  .b-gallery__grid { columns: 2; }
  .b-gallery__head p, .b-palette__head p { margin-top: 12px; }
  .b-spec__row { grid-template-columns: 1fr; gap: 4px; }
  .b-outcome ul { grid-template-columns: 1fr; margin-top: 20px; }
  .b-materials__list { margin-top: 24px; }
  .b-chapter__sub { margin-top: 18px; }
  .cw-view { grid-template-columns: 1fr; }
  .cw-slot--ext { grid-row: auto; }
  .ed-pair__imgs { grid-template-columns: 1fr; }
  .ed-pair:nth-child(even) .ed-pair__lead { text-align: left; margin-left: 0; }
  .lightbox__bottom { flex-wrap: wrap; row-gap: 8px; }
  .lightbox__cap { order: -1; flex: 1 0 100%; font-size: 12.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .docview__title .mono { display: none; }
}

/* phones and small tablets: the samples sit right under their controls, the spec sheet below */
@media (max-width: 900px) {
  .library__ui { display: contents; }
  .library__ui > * { grid-column: 1 / -1; }
  .library__stage { order: 1; }
  .specsheet { order: 2; }
}

@media (max-width: 900px) and (min-width: 600px) and (orientation: portrait) {
  .about__portrait { grid-column: 1 / span 5; }
  .about__body { grid-column: 6 / -1; }
  .portrait { position: sticky; top: calc(var(--nav-h) + 16px); max-width: none; }
}

@media (max-width: 900px) and (min-width: 600px) and (orientation: landscape) {
  .stage { grid-template-columns: 1fr 1fr; }
  .stage__media { aspect-ratio: auto; order: 0; min-height: 280px; }
  .about__portrait { grid-column: 1 / span 5; }
  .about__body { grid-column: 6 / -1; }
  .portrait { position: sticky; top: calc(var(--nav-h) + 16px); max-width: none; }
  .library__stage { min-height: 380px; }
  .case-cover { height: 78vh; }
}

@media (max-width: 560px) {
  .library__stage { min-height: 420px; }
  .library__hud { flex-direction: column; align-items: flex-start; gap: 4px; }
  .library__hud span { white-space: normal; overflow: visible; max-width: none; }
  .mode { grid-template-columns: 1fr; gap: 8px; }
  .hero__title { font-size: 8.6vw; line-height: 1; }
  .hero__kicker .mono:last-child { display: none; }
  .chip { width: 44px; height: 70px; }
  .chip span { font-size: 7px; }
  .numbers { grid-template-columns: 1fr; }
  .b-stats { grid-template-columns: 1fr; }
  .b-gallery__grid { columns: 1; }
  .swatches { grid-template-columns: 1fr 1fr; }
  .contact__meta { grid-template-columns: 1fr; }
  .card__info { grid-template-columns: 40px 1fr; }
  .card__year { grid-column: 2; grid-row: 2; }
  .card__sub, .card__tags { grid-column: 1 / -1; }
  .folio__no { min-width: 36px; }
  .folio__meta { display: none; }
  .docview__long { display: none; }
  .docview__actions .btn { padding: 0 12px; gap: 8px; }
  .docview__title strong { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .grain { display: none; }
  .marquee__track { animation: none; }
  .approach__pin { height: auto; padding: clamp(96px, 12vw, 160px) 0; }
  .approach__head { padding-top: 0; }
  .approach__track { flex-direction: column; flex: none; min-height: 0; }
  .stage { width: 100%; max-height: none; }
  .stage__media { min-height: 320px; }
  .approach__progress, .approach__steps { display: none; }
}
