/* hexp — built on the HH mosaic brand kit */
:root {
  --blue: #1A50E6;
  --blue-2: #3464E8;
  --white: #F4F5F7;
  --black: #0A0A0C;

  --bg: #0A0A0C;
  --bg-2: #111114;
  --fg: #F4F5F7;
  --dim: rgba(244, 245, 247, 0.56);
  --line: rgba(244, 245, 247, 0.12);
  --tile: #1D1D1F;
  --accent-ink: #7B9BF4;

  --f-display: 'Archivo', system-ui, sans-serif;
  --f-serif: 'Fraunces', Georgia, serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;

  --gutter: clamp(16px, 2.3vw, 32px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-2: cubic-bezier(.25, .46, .45, .94);
  --nav-h: 64px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #F4F5F7;
  --bg-2: #EBEDF2;
  --fg: #0A0A0C;
  --dim: rgba(10, 10, 12, 0.58);
  --line: rgba(10, 10, 12, 0.12);
  --tile: #E3E8F6;
  --accent-ink: #1A50E6;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 15px/1.5 var(--f-display);
  font-variation-settings: 'wdth' 100;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background-color .5s var(--ease-2), color .5s var(--ease-2);
}
img, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
::selection { background: var(--blue); color: var(--white); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 20000; background: var(--blue); color: var(--white); padding: 10px 14px; font: 500 12px var(--f-mono); }
.skip:focus { top: 12px; }
html.has-cursor, html.has-cursor * { cursor: none !important; }

.wrap { padding-inline: var(--gutter); }

/* ---------- type ---------- */
.mono { font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.02em; }
.mono-body { font-family: var(--f-mono); font-size: 13.5px; line-height: 1.75; }
.label { font-family: var(--f-mono); font-size: 12px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; }
.accent { color: var(--accent-ink); }
.dim { color: var(--dim); }
.display-xl, .display-l, .display-m {
  font-family: var(--f-display);
  font-weight: 560;
  font-variation-settings: 'wdth' 118;
  text-transform: uppercase;
  letter-spacing: -0.035em;
  line-height: 0.86;
}
.display-xl { font-size: clamp(54px, 10.4vw, 170px); }
/* Long single words (client names) shrink to fit the line instead of overflowing. */
.display-xl.fit { font-size: min(clamp(40px, 10.4vw, 170px), calc((100vw - var(--gutter) * 2) * 1.16 / var(--n))); }
.display-l { font-size: clamp(40px, 6.4vw, 104px); }
.display-m { font-size: clamp(28px, 3.2vw, 46px); line-height: .95; }
/* Reading serif: a lower optical size gives sturdier strokes; weights sit above hairline for legibility. */
.serif-xl, .serif-l, .serif-m, .serif-s { font-family: var(--f-serif); font-weight: 330; font-variation-settings: 'opsz' 36; letter-spacing: 0; }
.serif-xl { font-size: clamp(28px, 4.1vw, 62px); line-height: 1.16; letter-spacing: -0.015em; font-weight: 300; font-variation-settings: 'opsz' 72; }
.serif-l { font-size: clamp(21px, 1.95vw, 28px); line-height: 1.42; }
.serif-m { font-size: clamp(18px, 1.45vw, 21px); line-height: 1.5; }
.serif-s { font-size: 17px; line-height: 1.5; }
.ic { width: 0.8em; height: 0.8em; display: inline-block; vertical-align: -0.02em; }
.ul { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); padding-bottom: 2px; }
.ul:hover { background-size: 100% 1px; }

/* ---------- buttons ---------- */
.btn {
  --h: 40px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 20px; border-radius: 0;
  font: 500 13px/1 var(--f-mono); letter-spacing: 0.04em;
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease), color .35s var(--ease-2), border-color .35s;
  will-change: transform;
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--fill); transform: scaleY(0); transform-origin: 0 100%;
  transition: transform .45s var(--ease);
}
.btn:hover::before { transform: scaleY(1); }
.btn-primary { background: var(--blue); color: var(--white); --fill: var(--white); }
.btn-primary:hover { color: var(--black); }
.btn-ghost { box-shadow: inset 0 0 0 1px var(--line); --fill: var(--fg); }
.btn-ghost:hover { color: var(--bg); box-shadow: inset 0 0 0 1px var(--fg); }
.btn-lg { --h: 52px; padding: 0 28px; font-size: 14px; }

/* ---------- loader + wipe ---------- */
.loader { display: none; }
html.js:not(.seen) .loader {
  display: flex; flex-direction: column; justify-content: space-between;
  position: fixed; inset: 0; z-index: 9500;
  background: var(--black); color: var(--white);
  padding: 22px var(--gutter);
}
.loader-top, .loader-bottom { width: 100%; display: flex; justify-content: space-between; text-transform: uppercase; letter-spacing: .14em; font-size: 12px; color: rgba(244,245,247,.6); }
.loader-bottom [data-count] { font-size: clamp(40px, 7vw, 96px); letter-spacing: -0.04em; color: var(--white); font-family: var(--f-display); font-weight: 500; font-variation-settings: 'wdth' 118; line-height: .8; }
.loader-bottom { align-items: flex-end; }
.loader-mark { width: 12vmin; height: 12vmin; position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.loader.done .loader-top, .loader.done .loader-bottom { opacity: 0; transition: opacity .3s; }
/* Cover the page on hard loads until the wipe takes over, so nothing flashes. */
html.js.seen body::after { content: ''; position: fixed; inset: 0; background: var(--bg); z-index: 9400; animation: unveil 0s 2.5s forwards; pointer-events: none; }
html.js.seen.ready body::after { display: none; }
@keyframes unveil { to { visibility: hidden; } }
#wipe { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 9600; pointer-events: none; visibility: hidden; }
#wipe.on { visibility: visible; pointer-events: auto; }
#wipe-label {
  position: fixed; left: 0; right: 0; top: calc(50% + 6vmin + 26px); z-index: 9601; text-align: center;
  color: var(--white); text-transform: uppercase; letter-spacing: .3em; font-size: 12px;
  opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .5s var(--ease); pointer-events: none;
}
#wipe-label.on { opacity: 1; transform: none; }

/* ---------- cursor ---------- */
#cursor { position: fixed; inset: 0; z-index: 10000; pointer-events: none; mix-blend-mode: difference; opacity: 0; transition: opacity .3s; }
#cursor.on { opacity: 1; }
html:not(.has-cursor) #cursor, html:not(.has-cursor) #cursor-label { display: none; }
.cursor-tile {
  position: absolute; left: 0; top: 0;
  width: var(--s, 14px); height: var(--s, 14px);
  background: #F4F5F7; filter: blur(var(--b, 0px));
  transition: width .3s var(--ease-2), height .3s var(--ease-2), filter .3s var(--ease-2), opacity .2s;
  will-change: transform;
}
#cursor[data-state="link"] { --s: 8px; --b: 1.5px; }
#cursor[data-state="big"] { --s: 38px; --b: 3px; }
#cursor[data-state="label"] .cursor-tile { opacity: 0; }
#cursor.down { --s: 6px; }
#cursor-label {
  position: fixed; left: 0; top: 0; z-index: 10001; pointer-events: none;
  background: var(--blue); color: var(--white);
  padding: 8px 12px 7px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  opacity: 0; scale: .6; transition: opacity .2s, scale .35s var(--ease);
}
#cursor-label.on { opacity: 1; scale: 1; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900; height: var(--nav-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding-inline: var(--gutter);
  transition: transform .6s var(--ease), background-color .4s, backdrop-filter .4s;
}
.nav--solid { background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }
.nav--hidden { transform: translateY(-100%); }
.nav-logo { display: inline-flex; align-items: center; gap: 12px; justify-self: start; }
.mark { width: 22px; height: 22px; color: var(--fg); transition: color .3s; }
.nav-logo:hover .mark { color: var(--blue); }
.nav-word { font: 500 15px var(--f-mono); letter-spacing: 0.02em; }
.nav-links { display: flex; gap: clamp(16px, 2.4vw, 40px); text-transform: uppercase; letter-spacing: .12em; font-size: 11.5px; }
.nav-links a { color: var(--dim); transition: color .3s; display: inline-flex; gap: 6px; position: relative; }
.nav-links a:hover, .nav-links a.is-current { color: var(--fg); }
.nav-links a.is-current::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--blue); }
.nav-no { font-size: 9px; color: var(--accent-ink); }
.nav-end { justify-self: end; display: flex; align-items: center; gap: 18px; font-size: 11.5px; letter-spacing: .1em; color: var(--dim); }
.theme-btn { width: 18px; height: 18px; display: grid; place-items: center; }
.theme-btn span { width: 12px; height: 12px; background: linear-gradient(90deg, var(--fg) 50%, transparent 50%); box-shadow: inset 0 0 0 1px var(--fg); transition: transform .5s var(--ease); }
.theme-btn:hover span { transform: rotate(180deg); }
.menu-btn { display: none; text-transform: uppercase; letter-spacing: .14em; font-size: 12px; color: var(--fg); }

.menu { position: fixed; inset: 0; z-index: 800; background: var(--bg); padding: calc(var(--nav-h) + 24px) var(--gutter) 28px; display: flex; flex-direction: column; justify-content: space-between; visibility: hidden; clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease), visibility 0s .7s; }
.menu-open .menu { visibility: visible; clip-path: inset(0); transition: clip-path .7s var(--ease); }
.menu-links { display: flex; flex-direction: column; gap: 4px; }
.menu-links a { font: 560 clamp(40px, 12vw, 72px)/1 var(--f-display); font-variation-settings: 'wdth' 118; text-transform: uppercase; letter-spacing: -0.03em; display: flex; align-items: baseline; gap: 12px; transform: translateY(40px); opacity: 0; transition: transform .7s var(--ease), opacity .5s; }
.menu-links a .mono { font-size: 11px; color: var(--accent-ink); letter-spacing: .1em; }
.menu-links a.is-current { color: var(--accent-ink); }
.menu-open .menu-links a { transform: none; opacity: 1; transition-delay: calc(var(--i) * 50ms + 150ms); }
.menu-foot { display: flex; flex-direction: column; gap: 10px; color: var(--dim); }

/* ---------- reveals ---------- */
html.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
html.js [data-reveal].in { opacity: 1; transform: none; }
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
html.js [data-split] .wi { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 55ms); }
html.js [data-split].in .wi { transform: none; }
html.js #swap:not(.is-revealed) [data-split].in .wi { transform: translateY(105%); }
.scrub .w { overflow: visible; }
.scrub .wi { transition: opacity .25s linear; }
.tr { position: relative; overflow: hidden; }
.tr-cover { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }

/* ---------- hero ---------- */
.hero { padding-top: calc(var(--nav-h) + clamp(12px, 3vh, 40px)); min-height: 100svh; display: flex; flex-direction: column; }
.hero-mark { width: 100%; height: auto; aspect-ratio: 76 / 7; touch-action: pan-y; }
/* The line is the headline: big thin serif, the typed ending in italic. */
.hero-title {
  margin-top: clamp(28px, 6vh, 64px);
  font-family: var(--f-serif); font-weight: 200; font-variation-settings: 'opsz' 144;
  font-size: clamp(38px, 5.6vw, 96px); line-height: 1.04; letter-spacing: -0.03em;
}
.hero-title-1, .hero-title-2 { display: block; }
.hero-title-1 { white-space: nowrap; }
.hero-title-2 { min-height: 1.04em; }
.type { font-style: italic; font-weight: 240; color: var(--fg); }
.caret { color: var(--accent-ink); animation: blink 1s steps(1) infinite; margin-left: .04em; font-weight: 300; }
@keyframes blink { 50% { opacity: 0; } }
.hero-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: clamp(24px, 4.5vh, 44px); }
.hero-cta { display: flex; gap: 10px; flex-shrink: 0; }
html.js .hero-row, html.js .hero-title-2, html.js .ribbon { opacity: 0; transform: translateY(20px); transition: opacity 1s var(--ease) .5s, transform 1.2s var(--ease) .5s; }
html.js .hero-title-2 { transition-delay: .35s; }
html.js .ribbon { transition-delay: .75s; }
.is-revealed .hero-row, .is-revealed .hero-title-2, .is-revealed .ribbon { opacity: 1 !important; transform: none !important; }

.ribbon { margin-top: auto; padding-top: clamp(24px, 5vh, 56px); padding-bottom: 28px; }
.ribbon-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.ribbon-ctrl { display: flex; align-items: center; gap: 6px; }
.ribbon-ctrl .label { margin-right: 12px; }
.rib-btn { width: 30px; height: 26px; box-shadow: inset 0 0 0 1px var(--line); font: 400 13px/1 var(--f-mono); transition: background-color .3s, color .3s, box-shadow .3s; }
.rib-btn:hover { background: var(--fg); color: var(--bg); box-shadow: inset 0 0 0 1px var(--fg); }
.ribbon-view { overflow: hidden; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.ribbon-view img { -webkit-user-drag: none; }
.ribbon-view.is-dragging .rcard { pointer-events: none; }
.ribbon-track { display: flex; width: max-content; will-change: transform; }
.ribbon-set { display: flex; gap: 14px; padding-right: 14px; }
.rcard { width: clamp(220px, 21vw, 320px); flex-shrink: 0; display: flex; flex-direction: column; gap: 10px; transition: opacity .5s var(--ease-2), filter .5s var(--ease-2); }
.rcard-fig { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.rcard-fig img, .rcard-fig canvas { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1s var(--ease); }
/* Client cards: each logo as a single-colour silhouette in our palette (follows light/dark, blue on hover). */
.rcard-logo { background: var(--bg-2); display: grid; place-items: center; }
.logo-mono { width: 74%; height: 42%; background: var(--fg); -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; transition: background-color .4s var(--ease-2), transform 1s var(--ease); }
.rcard:hover .logo-mono { background: var(--accent-ink); transform: scale(1.04); }
.rcard-name { font: 560 22px/1 var(--f-display); text-transform: uppercase; }
.rcard-cap { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.rcard-cap .mono { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
@media (hover: hover) {
  .ribbon-view:hover .rcard { opacity: .35; filter: blur(2px) grayscale(.6); }
  .ribbon-view:hover .rcard:hover { opacity: 1; filter: none; }
  .rcard:hover .rcard-fig img, .rcard:hover .rcard-fig canvas { transform: scale(1.04); }
}

/* ---------- home sections ---------- */
.statement { padding-block: clamp(100px, 18vh, 200px); display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.statement .label { grid-column: 1 / span 3; padding-top: 1em; }
.statement .serif-xl { grid-column: 4 / -1; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }

.selected { padding-bottom: clamp(80px, 14vh, 160px); }
.proj { margin-bottom: clamp(56px, 9vh, 96px); }
.proj-link { display: block; }
.proj-head { display: grid; grid-template-columns: 40px minmax(140px, auto) 1fr auto; gap: 16px; align-items: baseline; margin-bottom: 14px; font-size: 13px; }
.proj-no { color: var(--accent-ink); }
.proj-tag { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proj-ind { text-transform: uppercase; letter-spacing: .1em; font-size: 11px; }
.proj-media { display: grid; gap: 14px; }
.proj-media--three { grid-template-columns: 1.55fr 1.55fr 1fr; }
.proj-media--two { grid-template-columns: 2.4fr 1fr; }
.frame { background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; }
.frame-bar { height: 28px; display: flex; align-items: center; gap: 6px; padding: 0 12px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.frame-bar i { width: 7px; height: 7px; background: var(--line); }
.frame-bar .mono { font-size: 10.5px; color: var(--dim); margin-left: 10px; letter-spacing: .06em; }
.frame img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease); }
.proj-media .frame { overflow: hidden; }
.proj-link:hover .frame img { transform: scale(1.035); }
.phone-wrap { background: var(--tone, var(--bg-2)); display: grid; place-items: center; padding: 18px; min-height: 100%; aspect-ratio: auto; }
.phone { width: min(58%, 210px); aspect-ratio: 390 / 844; border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 5px #0d0d0f, 0 0 0 6px rgba(255,255,255,.12), 0 30px 60px -20px rgba(0,0,0,.6); transition: transform 1s var(--ease); }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.proj-link:hover .phone { transform: translateY(-6px) rotate(-1.5deg); }

.how { padding-bottom: clamp(80px, 14vh, 160px); }
.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-left: 1px solid var(--line); }
.how-item { padding: 22px 22px 30px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; min-height: 260px; }
.how-item h3 { margin-top: 64px; }

.space-tease { padding-bottom: clamp(100px, 16vh, 180px); display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: start; }
.space-tease-head { grid-column: 1 / span 4; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; position: sticky; top: calc(var(--nav-h) + 24px); }
.space-tease-grid { grid-column: 5 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.study-card { display: block; position: relative; aspect-ratio: 1; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.study-card:nth-child(2) { margin-top: 64px; }
.study-card:nth-child(4) { margin-top: 64px; margin-bottom: -64px; }
.study-card canvas, .space-item canvas { width: 100%; height: 100%; }
.study-cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; padding: 12px 14px; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; background: linear-gradient(transparent, color-mix(in srgb, var(--bg) 85%, transparent)); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding-top: clamp(80px, 14vh, 160px); position: relative; }
.foot-cta { display: flex; flex-direction: column; gap: 28px; padding-bottom: clamp(70px, 12vh, 140px); }
.foot-cta-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.foot-cta-row p { max-width: 460px; }
.foot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-block: 28px; border-top: 1px solid var(--line); font-size: 12.5px; }
.foot-grid .label { color: var(--dim); margin-bottom: 14px; font-size: 11px; }
.foot-grid ul { display: flex; flex-direction: column; gap: 6px; }
.foot-field { width: 100%; height: clamp(150px, 18vw, 270px); touch-action: pan-y; }

/* ---------- inner pages ---------- */
.page-head { padding-top: calc(var(--nav-h) + clamp(60px, 14vh, 150px)); padding-bottom: clamp(60px, 10vh, 110px); display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end; }
.page-head h1 { grid-column: 1 / -1; }
.page-head-side { grid-column: 7 / -1; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; margin-top: clamp(8px, 2vh, 24px); }
[data-page="contact"] .foot-cta { display: none; }
[data-page="contact"] .foot { padding-top: 0; }

.seg { display: inline-flex; box-shadow: inset 0 0 0 1px var(--line); }
.seg button { padding: 9px 14px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--dim); transition: color .3s, background-color .3s; }
.seg button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.seg sup { font-size: 9px; margin-left: 2px; }
.work-bar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 22px; }
.work-list { padding-bottom: clamp(80px, 14vh, 160px); }
.work-list[data-mode="grid"] { display: grid; grid-template-columns: repeat(2, 1fr); gap: 56px 20px; }
.work-index-head { display: none; }
.wcard { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-content: start; }
.wcard[hidden] { display: none !important; }
.wcard-fig { grid-column: 1 / -1; aspect-ratio: 16 / 10; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 10px; overflow: hidden; }
.wcard-fig img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease); }
.wcard:hover .wcard-fig img { transform: scale(1.04); }
.wcard-no { display: none; }
.wcard-name { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.wcard-ind { justify-self: end; text-transform: uppercase; font-size: 11px; letter-spacing: .12em; align-self: center; }
.wcard-place, .wcard-del { display: none; }
.wcard-tag { grid-column: 1 / -1; }
.work-list[data-mode="index"] { display: block; }
.work-list[data-mode="index"] .work-index-head,
.work-list[data-mode="index"] .wcard { display: grid; grid-template-columns: 60px 2fr 1fr 1fr 1fr; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.work-list[data-mode="index"] .work-index-head { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; padding: 10px 0; }
.work-list[data-mode="index"] .wcard-fig, .work-list[data-mode="index"] .wcard-tag { display: none; }
.work-list[data-mode="index"] .wcard-no, .work-list[data-mode="index"] .wcard-place, .work-list[data-mode="index"] .wcard-del { display: block; }
.work-list[data-mode="index"] .wcard-ind { justify-self: start; }
.work-list[data-mode="index"] .wcard-name { font: 560 clamp(22px, 2.6vw, 38px)/1 var(--f-display); font-variation-settings: 'wdth' 118; text-transform: uppercase; letter-spacing: -0.03em; transition: transform .6s var(--ease), color .3s; }
.work-list[data-mode="index"] .wcard:hover .wcard-name { transform: translateX(14px); color: var(--accent-ink); }
.work-list[data-mode="index"] .wcard { opacity: 1; transform: none; }
.preview { position: fixed; left: 0; top: 0; width: 300px; aspect-ratio: 16 / 10; z-index: 700; pointer-events: none; opacity: 0; scale: .85; transition: opacity .3s, scale .5s var(--ease); box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); }
.preview.on { opacity: 1; scale: 1; }
.preview img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* project */
.p-head { padding-top: calc(var(--nav-h) + clamp(40px, 10vh, 110px)); padding-bottom: clamp(40px, 7vh, 72px); display: flex; flex-direction: column; gap: 28px; }
.back { align-self: flex-start; color: var(--dim); }
.p-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.p-head-row .serif-l { max-width: 680px; }
.p-cta { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.p-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; border-top: 1px solid var(--line); padding-top: 20px; }
.p-meta dt { color: var(--dim); font-size: 11px; margin-bottom: 8px; }
.p-media { display: flex; flex-direction: column; gap: 14px; }
.p-two { display: grid; grid-template-columns: 1fr 1.9fr; gap: 14px; }
.p-two .phone-wrap { padding: 40px; }
.p-two .phone { width: min(70%, 280px); }
.p-quote { background: var(--tone); color: #F4F5F7; display: grid; place-items: center; padding: 40px; text-align: center; min-height: 360px; }
.p-end { padding-top: clamp(80px, 12vh, 140px); }
.p-cta-band { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 28px; border-block: 1px solid var(--line); }
.next { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 12px 32px; padding-block: clamp(60px, 12vh, 120px) 20px; position: relative; }
.next .label { grid-column: 1 / -1; color: var(--dim); }
.next-name { transition: color .4s, transform .8s var(--ease); }
.next:hover .next-name { color: var(--accent-ink); transform: translateX(16px); }
.next-fig { width: clamp(160px, 22vw, 320px); aspect-ratio: 16 / 10; overflow: hidden; clip-path: inset(0 0 0 100%); transition: clip-path .9s var(--ease); }
.next:hover .next-fig { clip-path: inset(0); }
.next-fig img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* process */
.proc { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; padding-bottom: clamp(80px, 14vh, 160px); }
.proc-rail { grid-column: 1 / span 3; }
.proc-sticky { position: sticky; top: calc(var(--nav-h) + 24px); display: flex; flex-direction: column; gap: 14px; }
.proc-mark { width: 100%; max-width: 260px; height: auto; aspect-ratio: 1; }
.proc-read { display: flex; justify-content: space-between; max-width: 260px; text-transform: uppercase; letter-spacing: .12em; font-size: 11.5px; border-top: 1px solid var(--line); padding-top: 12px; }
.proc-note { font-size: 11px; }
.proc-main { grid-column: 4 / -1; display: flex; flex-direction: column; gap: clamp(80px, 12vh, 140px); }
.sec-label { padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 0; }
.cards { display: grid; grid-template-columns: 1fr 1fr; border-left: 1px solid var(--line); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 28px 34px; display: flex; flex-direction: column; gap: 18px; min-height: 320px; }
.card h3 { margin-top: 28px; }
.arrows { display: flex; flex-direction: column; gap: 6px; margin-top: auto; padding-top: 10px; font-size: 12.5px; }
.goals { display: flex; flex-direction: column; gap: 32px; align-items: flex-start; }
.goals-body { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 980px; }
.promises { display: flex; flex-direction: column; width: 100%; }
.promises li { display: grid; grid-template-columns: 48px 1fr; padding: 14px 0; border-bottom: 1px solid var(--line); }

/* space */
.space-bar { display: flex; justify-content: space-between; align-items: center; padding-bottom: 22px; }
.density { display: flex; align-items: center; gap: 10px; }
.density button { width: 26px; height: 26px; box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; }
.density input { -webkit-appearance: none; appearance: none; width: 120px; height: 1px; background: var(--line); }
.density input::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; background: var(--fg); border-radius: 0; }
.density input::-moz-range-thumb { width: 12px; height: 12px; background: var(--fg); border: 0; border-radius: 0; }
.space-grid { --cols: 4; columns: var(--cols); column-gap: 14px; padding-bottom: clamp(80px, 14vh, 160px); }
.space-item { display: block; width: 100%; break-inside: avoid; margin-bottom: 14px; position: relative; aspect-ratio: var(--ar, 1); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; text-align: left; }
.space-item--site { aspect-ratio: auto; }
.space-item--site img { width: 100%; height: auto; display: block; }
.space-cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 4px; padding: 14px; font-size: 11px; letter-spacing: .06em; background: linear-gradient(transparent, color-mix(in srgb, var(--bg) 92%, transparent) 40%); transform: translateY(100%); transition: transform .5s var(--ease); }
.space-item:hover .space-cap, .space-item:focus-visible .space-cap { transform: none; }
.lightbox { width: min(1100px, calc(100vw - 32px)); height: min(760px, calc(100svh - 32px)); max-width: none; max-height: none; padding: 0; border: 0; background: var(--bg); color: var(--fg); box-shadow: 0 0 0 1px var(--line); }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; animation: lb .6s var(--ease); }
.lightbox::backdrop { background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(8px); }
@keyframes lb { from { opacity: 0; transform: scale(.96); } }
.lightbox canvas { width: 100%; height: 100%; }
.lb-info { display: flex; gap: 20px; padding: 16px 20px; border-top: 1px solid var(--line); font-size: 12px; flex-wrap: wrap; }
.lb-close { position: absolute; top: 14px; right: 14px; padding: 8px 12px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }

/* studio */
.beliefs, .people, .clients-list, .home-base { padding-bottom: clamp(80px, 12vh, 140px); }
.beliefs .label, .people .label, .clients-list .label, .home-base .label { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.person { display: grid; grid-template-columns: minmax(200px, 3fr) 9fr; gap: 24px; padding-top: 28px; }
.person > div:last-child { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.person-mark { aspect-ratio: 1; background: var(--blue); display: grid; place-items: center; max-width: 320px; }
.person-svg { width: 40%; color: var(--white); }
.names { display: flex; flex-wrap: wrap; gap: 4px 28px; padding-top: 28px; font: 560 clamp(28px, 3.6vw, 56px)/1.15 var(--f-display); font-variation-settings: 'wdth' 118; text-transform: uppercase; letter-spacing: -0.03em; }
.home-base .display-l { padding-top: 28px; }
.home-base .mono { padding-top: 16px; }

/* contact */
.contact { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; padding-bottom: clamp(80px, 14vh, 160px); }
.form { grid-column: 1 / span 7; display: flex; flex-direction: column; }
.field { display: flex; flex-direction: column; gap: 12px; padding: 20px 0; }
.field-q { display: flex; gap: 14px; font-size: 13px; color: var(--dim); transition: color .3s; }
.field input, .field textarea {
  font: 330 clamp(19px, 1.7vw, 24px)/1.4 var(--f-serif); color: var(--fg);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 0;
  padding: 14px 16px; outline: none; resize: vertical; width: 100%;
  transition: border-color .3s, background-color .3s, box-shadow .3s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--dim); opacity: .55; }
.field input:hover, .field textarea:hover { border-color: color-mix(in srgb, var(--fg) 30%, transparent); }
.field input:focus, .field textarea:focus { border-color: var(--blue); background: var(--bg); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 25%, transparent); }
.field:focus-within .field-q { color: var(--fg); }
.form-end { display: flex; align-items: center; gap: 20px; padding-top: 28px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.form-note { font-size: 11.5px; }
.contact-side { grid-column: 9 / -1; display: flex; flex-direction: column; gap: 48px; }
.side-block { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.nf .page-head-side { gap: 28px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav-clock { display: none; }
  .proj-media--three { grid-template-columns: 1.6fr 1fr; }
  .proj-media--three .frame:nth-child(2) { display: none; }
  .how-grid { grid-template-columns: 1fr 1fr; }
  .how-item { border-bottom: 1px solid var(--line); }
}
@media (max-width: 860px) {
  :root { --nav-h: 56px; }
  .nav { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .hero { min-height: auto; }
  .hero-mark { margin-top: 8px; }
  .hero-title { font-size: clamp(36px, 9.6vw, 64px); margin-top: 32px; }
  .hero-title-1 { white-space: normal; }
  .hero-title-2 { min-height: 2.08em; }
  .hero-row { flex-direction: column; align-items: flex-start; gap: 18px; }
  .ribbon-ctrl .label { display: none; }
  .ribbon { padding-top: 40px; }
  .statement, .page-head, .space-tease, .proc, .contact { grid-template-columns: 1fr; }
  .statement .label, .statement .serif-xl, .page-head h1, .page-head-side, .space-tease-head, .space-tease-grid, .proc-rail, .proc-main, .form, .contact-side { grid-column: 1 / -1; }
  .space-tease-head { position: static; }
  .page-head { padding-top: calc(var(--nav-h) + 56px); gap: 28px; }
  .proj-head { grid-template-columns: 32px 1fr; }
  .proj-tag { grid-column: 2; white-space: normal; }
  .proj-ind { display: none; }
  .proj-media--three, .proj-media--two { grid-template-columns: 1fr; }
  .proj-media .phone-wrap { display: none; }
  .proj-media--three .frame:nth-child(2) { display: none; }
  .work-list[data-mode="grid"] { grid-template-columns: 1fr; gap: 44px; }
  .work-list[data-mode="index"] .work-index-head { display: none; }
  .work-list[data-mode="index"] .wcard { grid-template-columns: 36px 1fr auto; }
  .work-list[data-mode="index"] .wcard-place, .work-list[data-mode="index"] .wcard-del { display: none; }
  .p-head-row { flex-direction: column; align-items: flex-start; }
  .p-meta { grid-template-columns: 1fr 1fr; }
  .p-two { grid-template-columns: 1fr; }
  .proc-sticky { position: static; flex-direction: row; align-items: center; gap: 18px; }
  .proc-mark { width: 120px; }
  .proc-read { flex-direction: column; gap: 4px; border: 0; padding: 0; }
  .proc-note { display: none; }
  .cards, .cards--3 { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .goals-body { grid-template-columns: 1fr; }
  .space-grid { --cols: 2 !important; }
  .density { display: none; }
  .person { grid-template-columns: 1fr; }
  .person-mark { max-width: 160px; }
  .foot-cta-row { flex-direction: column; align-items: flex-start; }
  .foot-grid { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .p-cta-band { flex-direction: column; align-items: flex-start; }
  .next { grid-template-columns: 1fr; }
  .next-fig { clip-path: none; width: 100%; }
}
@media (max-width: 520px) {
  .how-grid { grid-template-columns: 1fr; }
  .how-item { min-height: 0; }
  .how-item h3 { margin-top: 20px; }
  .rcard { width: 236px; }
  .rcard-cap { flex-direction: column; gap: 2px; }
  .space-tease-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .study-card:nth-child(n) { margin: 0; }
  .space-grid { --cols: 1 !important; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1; }
  .p-meta { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html.js [data-reveal], html.js [data-split] .wi { opacity: 1; transform: none; }
}

/* footer sign-off over the tile band */
.foot-band { position: relative; }
.foot-line { position: absolute; left: var(--gutter); bottom: clamp(14px, 2vw, 26px); font: italic 240 clamp(20px, 1.8vw, 28px)/1 var(--f-serif); letter-spacing: -0.01em; pointer-events: none; }

/* concepts */
.proj-media--concept { grid-template-columns: 1.9fr 1fr 1fr; }
.cfig { background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; aspect-ratio: 16 / 10; }
.proj-media--concept .cfig:first-child { aspect-ratio: auto; }
.cfig img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease); }
.proj-link:hover .cfig img { transform: scale(1.035); }
.p-media--concept { gap: clamp(28px, 5vh, 56px); }
.cfull { display: flex; flex-direction: column; gap: 12px; }
.cfull img { width: 100%; height: auto; box-shadow: 0 0 0 1px var(--line); }
.cphotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 300px)); gap: 14px; }
.cphotos figure { aspect-ratio: 4 / 5; overflow: hidden; }
.cphotos img { width: 100%; height: 100%; object-fit: cover; }
.study-card--photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.study-card--photo:hover img { transform: scale(1.05); }
@media (max-width: 860px) {
  .proj-media--concept { grid-template-columns: 1fr; }
  .proj-media--concept .cfig:not(:first-child) { display: none; }
}

/* Standout quote inside a process step, linking to its source. */
.pquote { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; padding: 14px 0 2px 16px; border-left: 2px solid var(--blue); }
.pquote-text { font: italic 340 clamp(20px, 1.7vw, 26px)/1.25 var(--f-serif); color: var(--fg); transition: color .3s; }
.pquote-by { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.pquote:hover .pquote-text { color: var(--accent-ink); }

/* A highlighted term with a short definition on hover / focus. */
.term { position: relative; font-style: italic; color: var(--accent-ink); text-decoration: underline dotted; text-decoration-thickness: 1px; text-underline-offset: 6px; cursor: help; outline: none; }
.term-tip {
  position: absolute; left: 0; bottom: calc(100% + 12px); z-index: 20; width: max-content; max-width: min(320px, 80vw);
  padding: 10px 12px; background: var(--fg); color: var(--bg); font-style: normal; font-size: 12px; line-height: 1.5; letter-spacing: .02em;
  opacity: 0; transform: translateY(6px); pointer-events: none; transition: opacity .25s, transform .35s var(--ease);
}
.term:hover .term-tip, .term:focus-visible .term-tip, .term:focus .term-tip { opacity: 1; transform: none; }

/* Contact form states */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { flex-basis: 100%; font-size: 12.5px; line-height: 1.7; color: var(--fg); }
.form-msg--ok { color: var(--accent-ink); }
.form.sent .form-note, .form.sending .form-note { display: none; }
.form.sending .btn { opacity: .6; pointer-events: none; }
.copy-btn { margin-left: 6px; padding: 3px 8px; font: 500 11px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; box-shadow: inset 0 0 0 1px var(--line); }
.copy-btn:hover { background: var(--fg); color: var(--bg); }
.operator { font-size: 11.5px; margin-top: 4px; }

/* Footer legal link + privacy page */
.foot-legal { position: absolute; right: var(--gutter); bottom: clamp(14px, 2vw, 26px); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.foot-legal:hover { color: var(--fg); }
.legal { max-width: 760px; padding-bottom: clamp(80px, 14vh, 160px); display: flex; flex-direction: column; gap: 14px; }
.legal h2 { margin-top: 28px; }
