/* KOKI AFRICA — site styles, v2
   Layout: clean editorial grid on warm ivory. Full-bleed cinematic hero, oversized tight
   uppercase display type with a muted continuation, mono utility labels.
   Colour: ivory field, deep-green ink, vermilion as the signal colour; green and
   vermilion take over whole sections (menu, services, philosophy, footer) for rhythm.
   Single brand look: colours are explicit and do not follow light/dark preference. */

@font-face { font-family: "Nimbus Sans"; src: url("fonts/NimbusSans-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Nimbus Sans"; src: url("fonts/NimbusSans-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Nimbus Mono PS"; src: url("fonts/NimbusMonoPS-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --ivory: #FCFDEF;
  --ivory-2: #F2F4E2;
  --green: #072C25;
  --green-2: #0D3A31;
  --vermilion: #FE2B00;
  --vermilion-ink: #C42200;          /* small vermilion text on ivory */
  --mute: #81948A;                   /* green at ~50% on ivory, display continuation */
  --mute-d: rgba(252, 253, 239, .46);/* ivory at ~46% on green */
  --line: rgba(7, 44, 37, .14);
  --line-d: rgba(252, 253, 239, .18);

  --sans: "Nimbus Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Nimbus Mono PS", "Courier New", Courier, monospace;

  --d-hero: clamp(3rem, 8.4vw, 9.25rem);
  --d-xl: clamp(2.75rem, 7.6vw, 8.25rem);
  --d-st: clamp(2rem, 5.1vw, 5.5rem);
  --d-l: clamp(2rem, 4.4vw, 4.5rem);
  --d-m: clamp(1.5rem, 2.5vw, 2.5rem);
  --t-lead: clamp(1.125rem, 1.45vw, 1.375rem);
  --t-body: clamp(1rem, 1.05vw, 1.0625rem);

  --g: clamp(16px, 2.6vw, 40px);     /* side gutter */
  --gap: clamp(12px, 1.6vw, 24px);
  --sec: clamp(88px, 11vw, 176px);
  --hdr: 72px;
  --ease: cubic-bezier(.22, .8, .16, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);

  color-scheme: light;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ivory); color: var(--green);
  font-family: var(--sans); font-size: var(--t-body); line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 90; background: var(--green); }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, h4, figure, dl, dd { margin: 0; }
h1, h2, h3, h4 { font-weight: 700; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--vermilion); color: var(--ivory); }
:focus-visible { outline: 2px solid var(--vermilion); 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: -80px; z-index: 200; background: var(--vermilion); color: var(--ivory); padding: 10px 14px; font-weight: 700; }
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

.wrap { width: 100%; max-width: 1680px; margin-inline: auto;
  padding-left: max(var(--g), env(safe-area-inset-left, 0px));
  padding-right: max(var(--g), env(safe-area-inset-right, 0px)); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.grid > * { min-width: 0; }
.dark { background: var(--green); color: var(--ivory); --line: var(--line-d); --mute: var(--mute-d); }
.verm { background: var(--vermilion); color: var(--ivory); --line: rgba(252, 253, 239, .3); }
.verm :focus-visible, .dark :focus-visible { outline-color: var(--ivory); }

/* ---------- type ---------- */
.label { font-family: var(--mono); font-size: .75rem; line-height: 1.35; letter-spacing: .05em; text-transform: uppercase; }
.d { font-weight: 700; text-transform: uppercase; letter-spacing: -.048em; line-height: .88; }
.d-hero { font-size: var(--d-hero); }
.d-xl { font-size: var(--d-xl); }
.d-st { font-size: var(--d-st); line-height: .92; letter-spacing: -.045em; }
.d-l { font-size: var(--d-l); line-height: .92; letter-spacing: -.042em; }
.d-m { font-size: var(--d-m); line-height: .98; letter-spacing: -.03em; }
.mute { color: var(--mute); }
.lead { font-size: var(--t-lead); line-height: 1.38; letter-spacing: -.01em; }
.prose { max-width: 60ch; }
.prose p + p { margin-top: 1em; }
.line-mask { display: block; overflow: hidden; padding-bottom: .04em; margin-bottom: -.04em; }
.line-mask > span { display: block; }

/* ---------- small controls ---------- */
.pill {
  display: inline-flex; align-items: center; gap: .6em; min-height: 44px; padding: 0 18px;
  border-radius: 999px; font-weight: 700; font-size: .875rem; letter-spacing: -.005em; white-space: nowrap;
  background: var(--green); color: var(--ivory); position: relative; overflow: hidden; isolation: isolate;
  transition: color .4s var(--ease);
}
.pill::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--vermilion); border-radius: inherit; transform: translateY(101%); transition: transform .45s var(--ease); }
.pill:hover::before, .pill:focus-visible::before { transform: none; }
.pill.ivory { background: var(--ivory); color: var(--green); }
.pill.ivory:hover { color: var(--ivory); }
.pill.verm-p { background: var(--vermilion); color: var(--ivory); }
.pill.verm-p::before { background: var(--green); }
.pill.line { background: transparent; color: currentColor; box-shadow: inset 0 0 0 1px currentColor; }
.pill.line:hover { color: var(--ivory); box-shadow: inset 0 0 0 1px var(--vermilion); }
.pill.big { min-height: 56px; padding: 0 26px; font-size: 1rem; }
.arr { display: inline-block; transition: transform .35s var(--ease); }
a:hover .arr, button:hover .arr { transform: translate(3px, -3px); }
.arr.r { transform: none; }
a:hover .arr.r { transform: translateX(4px); }
.ulink { display: inline-flex; align-items: center; gap: .55em; font-weight: 700; padding-bottom: 4px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .5s var(--ease); }
.ulink:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ---------- header ---------- */
.progress { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; height: 2px; z-index: 81; background: var(--vermilion); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
.hdr {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 80; color: var(--green);
  transition: transform .6s var(--ease), background-color .4s var(--ease), color .4s var(--ease);
}
.hdr .wrap { height: var(--hdr); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.hdr-logo { display: inline-flex; color: inherit; }
.hdr-logo svg { width: 112px; height: auto; }
.hdr-mid { display: flex; gap: 28px; }
.hdr-mid .label { opacity: .9; }
.hdr-right { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 6px 0 16px; border-radius: 999px; font-weight: 700; font-size: .875rem; box-shadow: inset 0 0 0 1px currentColor; }
.menu-btn .mb-t { display: grid; height: 1.2em; overflow: hidden; line-height: 1.2; }
.menu-btn .mb-t span { grid-area: 1 / 1; transition: transform .5s var(--ease); }
.menu-btn .mb-t span + span { transform: translateY(110%); }
.menu-btn[aria-expanded="true"] .mb-t span:first-child { transform: translateY(-110%); }
.menu-btn[aria-expanded="true"] .mb-t span + span { transform: none; }
.menu-btn .dots { width: 32px; height: 32px; border-radius: 50%; background: var(--vermilion); position: relative; transition: transform .5s var(--ease); }
.menu-btn .dots i { position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px; border-radius: 50%; background: var(--ivory); transition: transform .5s var(--ease), width .5s var(--ease), border-radius .5s var(--ease); }
.menu-btn .dots i:first-child { transform: translateX(-4px); }
.menu-btn .dots i:last-child { transform: translateX(4px); }
.menu-btn:hover .dots { transform: rotate(90deg); }
.menu-btn[aria-expanded="true"] .dots i { width: 14px; height: 2px; margin: -1px -7px; border-radius: 1px; }
.menu-btn[aria-expanded="true"] .dots i:first-child { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .dots i:last-child { transform: rotate(-45deg); }
.on-hero .hdr { color: var(--ivory); }
.hdr.solid { background: rgba(252, 253, 239, .86); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); color: var(--green); }
.hdr.tucked { transform: translateY(-110%); }
body.menu-open .hdr { color: var(--ivory); background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; transform: none; }
.hdr .pill { transition: color .4s var(--ease), opacity .3s; }
body.menu-open .hdr .pill { opacity: 0; pointer-events: none; }
@media (max-width: 900px) { .hdr-mid { display: none; } }
@media (max-width: 560px) { .hdr .pill { display: none; } .hdr-logo svg { width: 100px; } }

/* ---------- menu overlay ---------- */
.menu {
  position: fixed; inset: 0; z-index: 70; background: var(--green); color: var(--ivory);
  clip-path: circle(0% at calc(100% - 60px) 36px); transition: clip-path .9s var(--ease-io);
  overflow-y: auto; overscroll-behavior: contain;
}
.menu.open { clip-path: circle(150% at calc(100% - 60px) 36px); }
.menu-inner { min-height: 100%; padding-top: calc(var(--hdr) + env(safe-area-inset-top, 0px) + clamp(24px, 5vh, 64px)); padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); grid-template-rows: 1fr auto; row-gap: 40px; }
.menu-nav { grid-column: 1 / span 8; align-self: center; }
.menu-links { display: grid; gap: clamp(2px, .6vh, 8px); counter-reset: m; }
.menu-links a { display: flex; align-items: baseline; gap: clamp(12px, 1.6vw, 24px); width: fit-content; }
.menu-links .n { font-family: var(--mono); font-size: .75rem; letter-spacing: .05em; opacity: .55; min-width: 2.2em; transform: translateY(-1.6em); }
.menu-links .t { display: block; overflow: hidden; font-weight: 700; text-transform: uppercase; letter-spacing: -.05em; line-height: .9; font-size: clamp(2.75rem, 8.4vh, 7rem); padding-bottom: .04em; }
.menu-links .t > span { display: block; transform: translateY(105%); transition: transform .9s var(--ease); }
.menu-links sup { font-family: var(--mono); font-size: .75rem; letter-spacing: .05em; opacity: .55; }
.menu-links a:hover .t > span, .menu-links a[aria-current="page"] .t > span { color: var(--vermilion); }
.menu-links a .t > span { transition: transform .9s var(--ease), color .3s; }
.menu.open .menu-links .t > span { transform: none; }
.menu.open .menu-links li:nth-child(2) .t > span { transition-delay: .06s; }
.menu.open .menu-links li:nth-child(3) .t > span { transition-delay: .12s; }
.menu.open .menu-links li:nth-child(4) .t > span { transition-delay: .18s; }
.menu.open .menu-links li:nth-child(5) .t > span { transition-delay: .24s; }
.menu.open .menu-links li:nth-child(1) .t > span { transition-delay: 0s; }
.menu-prev { grid-column: 9 / span 4; align-self: center; position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--green-2); opacity: 0; transform: translateY(40px); transition: opacity .6s .25s var(--ease), transform .9s .2s var(--ease); }
.menu.open .menu-prev { opacity: 1; transform: none; }
.menu-prev img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity .6s var(--ease), transform 1.2s var(--ease); }
.menu-prev img.on { opacity: 1; transform: none; }
.menu-prev .cap { position: absolute; left: 12px; bottom: 12px; right: 12px; display: flex; justify-content: space-between; }
.menu-foot { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px var(--gap); border-top: 1px solid var(--line-d); padding-top: 20px; opacity: 0; transition: opacity .6s .35s var(--ease); }
.menu.open .menu-foot { opacity: 1; }
.menu-foot .label { opacity: .55; display: block; margin-bottom: 6px; }
.menu-foot a:hover { color: var(--vermilion); }
@media (max-width: 900px) {
  .menu-nav { grid-column: 1 / -1; align-self: start; }
  .menu-prev { display: none; }
  .menu-foot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menu-links .t { font-size: clamp(2.75rem, 13vw, 4.5rem); }
}

/* ---------- page transition ---------- */
.curtain { position: fixed; inset: 0; z-index: 150; background: var(--vermilion); transform: translateY(100%); pointer-events: none; display: grid; place-items: center; color: var(--ivory); }
.curtain svg { width: 64px; height: auto; opacity: 0; transition: opacity .3s .2s; }
body.leaving .curtain { transform: none; transition: transform .55s var(--ease-io); }
body.leaving .curtain svg { opacity: 1; }

/* ---------- home hero ---------- */
.hero { position: relative; height: clamp(600px, 94svh, 980px); color: var(--ivory); background: var(--green); overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s var(--ease); }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 8s linear; }
.slide.on { opacity: 1; }
.slide.on img { transform: scale(1.02); }
.hero-shade { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(180deg, rgba(4, 22, 18, .62) 0%, rgba(4, 22, 18, .08) 28%, rgba(4, 22, 18, .1) 56%, rgba(4, 22, 18, .78) 100%),
  linear-gradient(90deg, rgba(4, 22, 18, .45) 0%, rgba(4, 22, 18, 0) 55%); }
.hero-ui { position: relative; height: 100%; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: 1fr auto; column-gap: var(--gap); padding-top: calc(var(--hdr) + 24px); padding-bottom: clamp(20px, 3vw, 40px); }
.hero-ui > * { min-width: 0; }
.h-left { grid-column: 1 / span 4; align-self: center; display: grid; gap: 22px; }
.h-left ul { display: grid; gap: 2px; font-size: .875rem; }
.h-sig { font-size: .9375rem; line-height: 1.35; max-width: 22ch; }
.h-right { grid-column: 9 / span 4; align-self: center; justify-self: end; text-align: right; display: grid; gap: 4px; }
.h-right .clock { font-variant-numeric: tabular-nums; }
.h-bottom { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; row-gap: 24px; }
.h-bottom h1 { grid-column: 1 / span 8; }
.h-bottom h1 .line-mask > span { animation: lift 1.1s var(--ease) both; }
.h-bottom h1 .line-mask:nth-child(2) > span { animation-delay: .08s; }
@keyframes lift { from { transform: translateY(40%); } to { transform: none; } }
.now { grid-column: 9 / span 4; justify-self: end; width: min(100%, 360px); display: grid; gap: 10px; }
.now-card { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 14px; align-items: stretch; padding: 8px; background: rgba(7, 44, 37, .5); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); box-shadow: inset 0 0 0 1px rgba(252, 253, 239, .16); transition: background .4s; }
.now-card:hover { background: rgba(7, 44, 37, .72); }
.now-card .th { position: relative; aspect-ratio: 1; overflow: hidden; }
.now-card .th img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.now-card .tx { display: flex; flex-direction: column; justify-content: space-between; padding-block: 2px; min-width: 0; }
.now-card b { display: block; font-size: 1rem; line-height: 1.15; }
.now-card .label { opacity: .72; }
.now-card .arr { align-self: start; padding: 2px 4px 0 0; }
.now-ctrl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.bars { display: grid; grid-auto-flow: column; gap: 6px; }
.bars button { height: 22px; position: relative; }
.bars button::before, .bars button::after { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: rgba(252, 253, 239, .3); }
.bars button::after { background: var(--ivory); transform-origin: 0 50%; transform: scaleX(0); }
.bars button.done::after { transform: none; }
.bars button.on::after { animation: bar var(--dur, 6s) linear forwards; }
.hero.paused .bars button.on::after { animation-play-state: paused; }
@keyframes bar { to { transform: none; } }
.pause { font-family: var(--mono); font-size: .75rem; letter-spacing: .05em; text-transform: uppercase; min-height: 32px; padding: 0 4px; }
@media (max-width: 900px) {
  .hero { height: auto; min-height: min(720px, 96svh); }
  .h-left { grid-column: 1 / span 7; align-self: start; padding-top: 12px; }
  .h-right { grid-column: 8 / span 5; align-self: start; padding-top: 12px; }
  .h-bottom h1 { grid-column: 1 / -1; }
  .now { grid-column: 1 / -1; justify-self: stretch; width: 100%; }
  .h-left ul { display: none; }
}

/* ---------- section scaffolding ---------- */
.sec { padding-block: var(--sec); }
.sec-meta { display: flex; gap: 24px; align-items: baseline; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 14px; margin-bottom: clamp(36px, 5vw, 80px); }
.sec-meta .label:first-child { min-width: 4em; }
.sec-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 32px; margin-bottom: clamp(40px, 5vw, 80px); }

/* ---------- statement ---------- */
.statement .grid { row-gap: clamp(40px, 5vw, 72px); }
.st-text { grid-column: 1 / span 11; }
.st-text .w { transition: color .5s var(--ease); }
.st-text .w.on { color: var(--green); }
.st-foot { grid-column: 7 / span 5; display: grid; gap: 24px; justify-items: start; }
@media (max-width: 900px) { .st-text, .st-foot { grid-column: 1 / -1; } }
.brands { border-top: 1px solid var(--line); padding-top: 18px; margin-top: clamp(72px, 9vw, 140px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 24px; align-items: center; }
.brands .bl { grid-column: 1 / span 3; display: grid; gap: 8px; }
.brands .bl p { font-size: .8125rem; line-height: 1.4; opacity: .72; max-width: 28ch; }
.brands ul { grid-column: 4 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 36px; }
.logo-mark { display: block; background: var(--green); opacity: .85; -webkit-mask-position: center; -webkit-mask-size: contain; -webkit-mask-repeat: no-repeat; mask-position: center; mask-size: contain; mask-repeat: no-repeat; transition: opacity .3s; }
.brands li:hover .logo-mark { opacity: 1; }
@media (max-width: 900px) {
  .brands .bl, .brands ul { grid-column: 1 / -1; }
  .brands ul { justify-content: flex-start; gap: 22px 30px; }
  .logo-mark { transform: scale(.8); transform-origin: left center; }
}

/* ---------- work cards ---------- */
.cards { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: clamp(56px, 7vw, 120px); }
.card { position: relative; display: grid; gap: 14px; align-content: start; min-width: 0; }
.card.full { grid-column: 1 / -1; }
.card.l { grid-column: 1 / span 7; }
.card.r { grid-column: 9 / span 4; margin-top: clamp(64px, 12vw, 220px); }
.card.l2 { grid-column: 1 / span 5; margin-top: clamp(64px, 10vw, 180px); }
.card.r2 { grid-column: 7 / span 6; }
.card-media { position: relative; display: block; overflow: hidden; background: var(--ivory-2); cursor: pointer; }
.card.full .card-media { aspect-ratio: 2.1 / 1; }
.card.l .card-media, .card.r2 .card-media { aspect-ratio: 4 / 3; }
.card.r .card-media, .card.l2 .card-media { aspect-ratio: 4 / 5; }
.card-media img, .card-media .tt { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; transform: translate3d(0, var(--py, 0px), 0) scale(1.001); transition: scale 1.1s var(--ease); will-change: transform; }
.card:hover .card-media img { scale: 1.04; }
.card-cta { position: absolute; left: 0; top: 0; z-index: 2; display: grid; place-items: center; width: 108px; height: 108px; margin: -54px 0 0 -54px; border-radius: 50%; background: var(--vermilion); color: var(--ivory); font-weight: 700; font-size: .875rem; text-align: center; line-height: 1.1; pointer-events: none; transform: translate3d(var(--cx, 50%), var(--cy, 50%), 0) scale(0); transition: transform .5s var(--ease); }
.card-media:hover .card-cta { transform: translate3d(var(--cx, 50%), var(--cy, 50%), 0) scale(1); }
.card-meta { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 16px; align-items: baseline; border-top: 1px solid var(--line); padding-top: 12px; }
.card-meta .n { font-family: var(--mono); font-size: .75rem; letter-spacing: .05em; }
.card-meta h3 { font-size: clamp(1.25rem, 1.9vw, 1.875rem); letter-spacing: -.03em; line-height: 1.05; text-transform: uppercase; }
.card-meta h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-meta .yr { font-family: var(--mono); font-size: .75rem; letter-spacing: .05em; text-transform: uppercase; text-align: right; }
.card-meta .ds { grid-column: 2 / -1; font-size: .9375rem; opacity: .75; }
.card:focus-within .card-media { outline: 2px solid var(--vermilion); outline-offset: 4px; }
@media (hover: none) { .card-cta { display: none; } }
@media (max-width: 760px) {
  .card.full, .card.l, .card.r, .card.l2, .card.r2 { grid-column: 1 / -1; margin-top: 0; }
  .card.full .card-media, .card.l .card-media, .card.r2 .card-media { aspect-ratio: 4 / 3; }
  .card.r .card-media, .card.l2 .card-media { aspect-ratio: 4 / 5; }
}
.tt { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(18px, 2.4vw, 32px); background: var(--green); color: var(--ivory); }
.tt.v { background: var(--vermilion); }
.tt .nm { font-weight: 700; text-transform: uppercase; letter-spacing: -.05em; line-height: .88; font-size: clamp(2.25rem, 5vw, 5rem); max-width: 10ch; }
.tt .mk { width: 34px; color: currentColor; }
.tt .mk svg { width: 100%; height: auto; }
.all-work { margin-top: clamp(72px, 9vw, 140px); display: flex; justify-content: space-between; align-items: center; gap: 24px; border-block: 1px solid var(--line); padding-block: clamp(20px, 2.4vw, 32px); position: relative; overflow: hidden; isolation: isolate; transition: color .5s var(--ease); }
.all-work::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--green); transform: scaleY(0); transform-origin: 50% 100%; transition: transform .6s var(--ease); }
.all-work:hover { color: var(--ivory); }
.all-work:hover::before { transform: none; }
.all-work .d-l { padding-inline: 0; transition: transform .6s var(--ease); }
.all-work:hover .d-l { transform: translateX(clamp(8px, 1.5vw, 24px)); }
.all-work .arr { font-size: var(--d-l); line-height: 1; }

/* ---------- services index (home) ---------- */
.idx { border-top: 1px solid var(--line); }
.idx li { border-bottom: 1px solid var(--line); }
.idx-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 5fr) minmax(0, 4fr) auto; gap: 8px var(--gap); align-items: center; padding-block: clamp(18px, 2.2vw, 30px); position: relative; }
.idx-row .n { font-family: var(--mono); font-size: .75rem; letter-spacing: .05em; }
.idx-row .nm { font-weight: 700; text-transform: uppercase; letter-spacing: -.048em; line-height: .9; font-size: clamp(2.25rem, 5.6vw, 6rem); transition: transform .6s var(--ease), color .3s; }
.idx-row .ds { font-size: .9375rem; line-height: 1.45; max-width: 36ch; opacity: .75; }
.idx-row .arr { font-size: 1.5rem; }
.idx-row:hover .nm { transform: translateX(clamp(8px, 1.4vw, 24px)); color: var(--vermilion); }
.float-prev { position: fixed; left: 0; top: 0; z-index: 30; width: clamp(200px, 20vw, 320px); aspect-ratio: 4 / 5; pointer-events: none; overflow: hidden; opacity: 0; transform: translate3d(var(--fx, 0), var(--fy, 0), 0) scale(.85) rotate(-3deg); transition: opacity .35s var(--ease), transform .6s var(--ease); }
.float-prev.on { opacity: 1; transform: translate3d(var(--fx, 0), var(--fy, 0), 0) scale(1) rotate(0); }
.float-prev img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.float-prev img.on { opacity: 1; }
@media (hover: none), (max-width: 900px) { .float-prev { display: none; } }
@media (max-width: 760px) {
  .idx-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .idx-row .ds { grid-column: 2 / -1; }
  .idx-row .n { align-self: start; padding-top: .7em; }
}

/* ---------- philosophy ---------- */
.ethos { position: relative; overflow: hidden; }
.ethos .grid { row-gap: 40px; align-items: end; position: relative; z-index: 1; }
.ethos h2 { grid-column: 1 / span 10; font-size: clamp(2.75rem, 8.2vw, 9rem); }
.ethos h2 .g { color: var(--green); }
.ethos .side { grid-column: 1 / span 5; display: grid; gap: 1em; font-size: var(--t-lead); line-height: 1.38; }
.ethos .mark-big { position: absolute; right: -6vw; top: 50%; width: clamp(240px, 34vw, 560px); color: var(--green); transform: translate3d(0, calc(-50% + var(--py, 0px)), 0); opacity: .95; pointer-events: none; }
.ethos .mark-big svg { width: 100%; height: auto; display: block; }
@media (max-width: 900px) {
  .ethos h2, .ethos .side { grid-column: 1 / -1; }
  .ethos .mark-big { width: 62vw; right: -22vw; top: auto; bottom: -10vw; transform: translate3d(0, var(--py, 0px), 0); opacity: .9; }
  .ethos .wrap { padding-bottom: 34vw; }
}

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px var(--gap); }
.step { display: grid; gap: 14px; align-content: start; border-top: 1px solid var(--line); padding-top: 14px; }
.step .n { font-weight: 700; font-size: clamp(3rem, 5vw, 5rem); letter-spacing: -.05em; line-height: .9; color: var(--mute); }
.step h3 { font-size: clamp(1.25rem, 1.7vw, 1.625rem); text-transform: uppercase; letter-spacing: -.03em; line-height: 1; }
.step p { max-width: 34ch; opacity: .82; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- CTA + footer ---------- */
.cta .grid { row-gap: 40px; align-items: end; }
.cta h2 { grid-column: 1 / span 10; }
.cta .cta-side { grid-column: 1 / span 6; display: grid; gap: 24px; justify-items: start; }
.cta .cta-mail { grid-column: 8 / span 5; justify-self: end; text-align: right; display: grid; gap: 10px; justify-items: end; }
.cta .cta-mail b { font-size: clamp(1.25rem, 2vw, 1.75rem); letter-spacing: -.02em; }
@media (max-width: 900px) { .cta h2, .cta .cta-side, .cta .cta-mail { grid-column: 1 / -1; justify-self: start; text-align: left; justify-items: start; } }
.ftr { padding-top: clamp(40px, 5vw, 72px); }
.ftr-cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 32px; border-top: 1px solid var(--line-d); padding-top: 20px; }
.ftr-cols > div { display: grid; gap: 6px; align-content: start; grid-column: span 3; }
.ftr-cols .label { opacity: .55; margin-bottom: 4px; }
.ftr-cols a:hover { color: var(--vermilion); }
.ftr-big { display: block; margin-top: clamp(48px, 7vw, 120px); color: var(--ivory); }
.ftr-big svg { width: 100%; height: auto; display: block; }
.ftr-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-block: 20px 28px; }
.ftr-base .clock { font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .ftr-cols > div { grid-column: span 6; } }

/* ---------- page heads (inner pages) ---------- */
.ph { padding-top: calc(var(--hdr) + clamp(48px, 8vw, 128px)); padding-bottom: clamp(40px, 5vw, 80px); }
.ph .grid { row-gap: 28px; align-items: end; }
.ph .crumbs { grid-column: 1 / -1; display: flex; gap: 10px; }
.ph .crumbs a { opacity: .6; } .ph .crumbs a:hover { opacity: 1; color: var(--vermilion-ink); }
.ph h1 { grid-column: 1 / span 11; }
.ph h1 .line-mask > span { animation: lift 1s var(--ease) both; }
.ph h1 .line-mask:nth-child(2) > span { animation-delay: .07s; }
.ph h1 .line-mask:nth-child(3) > span { animation-delay: .14s; }
.ph .ph-side { grid-column: 1 / span 6; }
.ph .ph-right { grid-column: 9 / span 4; justify-self: end; text-align: right; }
@media (max-width: 900px) { .ph h1, .ph .ph-side, .ph .ph-right { grid-column: 1 / -1; justify-self: start; text-align: left; } }

/* ---------- work index page ---------- */
.wbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; border-block: 1px solid var(--line); padding-block: 12px; margin-bottom: clamp(40px, 5vw, 72px); position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--hdr)); z-index: 20; background: rgba(252, 253, 239, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: top .6s var(--ease); }
body.hdr-tucked .wbar { top: env(safe-area-inset-top, 0px); }
.filters { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.chip { min-height: 40px; padding: 0 14px; border-radius: 999px; font-weight: 700; font-size: .875rem; box-shadow: inset 0 0 0 1px var(--line); transition: background .3s, color .3s, box-shadow .3s; }
.chip sup { font-family: var(--mono); font-weight: 400; font-size: .6875rem; margin-left: 3px; opacity: .7; }
.chip:hover { box-shadow: inset 0 0 0 1px var(--green); }
.chip[aria-pressed="true"], .chip[aria-checked="true"] { background: var(--green); color: var(--ivory); box-shadow: none; }
.views { display: flex; gap: 4px; align-items: center; }
.views .label { margin-right: 8px; opacity: .6; }
.wgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(56px, 6vw, 96px) var(--gap); }
.wgrid .card .card-media { aspect-ratio: 4 / 3; }
.wgrid .card:nth-child(4n+2), .wgrid .card:nth-child(4n+3) { }
@media (max-width: 760px) { .wgrid { grid-template-columns: 1fr; } }
.wlist { border-top: 1px solid var(--line); }
.wlist li { border-bottom: 1px solid var(--line); }
.wrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 5fr) minmax(0, 3fr) minmax(0, 2fr) auto; gap: 6px var(--gap); align-items: baseline; padding-block: clamp(14px, 1.6vw, 22px); }
.wrow .n, .wrow .sc { font-family: var(--mono); font-size: .75rem; letter-spacing: .05em; text-transform: uppercase; }
.wrow .nm { font-weight: 700; text-transform: uppercase; letter-spacing: -.045em; line-height: .95; font-size: clamp(1.75rem, 3.6vw, 3.5rem); transition: transform .5s var(--ease), color .3s; }
.wrow .ds { font-size: .9375rem; opacity: .75; }
.wrow:hover .nm { transform: translateX(14px); color: var(--vermilion-ink); }
@media (max-width: 760px) { .wrow { grid-template-columns: auto minmax(0, 1fr) auto; } .wrow .ds, .wrow .sc { grid-column: 2 / -1; } }

/* ---------- case study ---------- */
.cs-meta { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px var(--gap); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 12px; }
.cs-meta dt { opacity: .6; margin-bottom: 6px; }
.cs-meta dd { font-weight: 700; line-height: 1.35; font-size: .9375rem; }
.cs-hero { position: relative; overflow: hidden; height: clamp(360px, 78vh, 920px); background: var(--ivory-2); }
.cs-hero img, .cs-hero .tt { position: absolute; left: 0; right: 0; top: -8%; height: 116%; width: 100%; object-fit: cover; transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }
.cs-hero.portrait { height: auto; background: transparent; overflow: visible; }
.cs-hero.portrait .frame { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.cs-hero.portrait figure { grid-column: 3 / span 8; position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.cs-hero.portrait img { top: -6%; height: 112%; }
@media (max-width: 760px) { .cs-hero { height: clamp(320px, 60vh, 560px); } .cs-hero.portrait { height: auto; } .cs-hero.portrait figure { grid-column: 1 / -1; } }
.cs-intro .grid { row-gap: 32px; }
.cs-intro .label { grid-column: 1 / span 3; padding-top: .7em; }
.cs-intro .ov { grid-column: 4 / span 9; font-size: clamp(1.625rem, 3.1vw, 3rem); line-height: 1.12; letter-spacing: -.03em; }
.cs-rows { margin-top: clamp(56px, 7vw, 112px); }
.cs-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 10px; padding-block: clamp(20px, 2.4vw, 32px); border-top: 1px solid var(--line); }
.cs-row h2 { grid-column: 1 / span 3; font-family: var(--mono); font-weight: 400; font-size: .75rem; letter-spacing: .05em; text-transform: uppercase; padding-top: .35em; }
.cs-row .body { grid-column: 4 / span 7; min-width: 0; font-size: clamp(1rem, 1.2vw, 1.1875rem); line-height: 1.55; }
.deliv { display: flex; flex-wrap: wrap; gap: 8px; }
.deliv li { border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); padding: 8px 14px; font-weight: 700; font-size: .875rem; }
@media (max-width: 900px) { .cs-intro .label, .cs-intro .ov, .cs-row h2, .cs-row .body { grid-column: 1 / -1; } }
.mosaic { display: grid; gap: clamp(28px, 3vw, 48px); }
.m-label { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 12px; }
.m-row { display: grid; gap: var(--gap); align-items: start; }
.m-row figure { min-width: 0; }
.m-row .im { overflow: hidden; background: var(--ivory-2); }
.m-row img { width: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.m-row figure:hover img { transform: scale(1.03); }
.m-row figcaption { margin-top: 10px; opacity: .7; }
.m-1 img { aspect-ratio: 2 / 1; }
.m-2l { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.m-2l img { aspect-ratio: 2 / 1; }
.m-3p { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.m-2p { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.m-1p { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.m-3p img, .m-2p img, .m-1p img { aspect-ratio: 4 / 5; }
.m-3p figure:nth-child(2) { margin-top: clamp(24px, 6vw, 96px); }
@media (max-width: 760px) {
  .m-2l, .m-3p, .m-2p, .m-1p { grid-template-columns: 1fr; }
  .m-3p figure:nth-child(2) { margin-top: 0; }
  .m-1 img, .m-2l img { aspect-ratio: 16 / 10; }
}
.cs-out .grid { row-gap: 32px; align-items: start; }
.cs-out .label { grid-column: 1 / span 3; padding-top: .8em; }
.cs-out .big { grid-column: 4 / span 9; font-size: clamp(1.75rem, 3.6vw, 3.5rem); line-height: 1.05; letter-spacing: -.035em; font-weight: 700; }
.cs-out .scope { grid-column: 4 / span 9; display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 14px; }
.cs-out .scope p { font-size: var(--t-lead); }
.cs-out .credits { opacity: .62; font-size: .875rem; }
@media (max-width: 900px) { .cs-out .label, .cs-out .big, .cs-out .scope { grid-column: 1 / -1; } }
.next { position: relative; display: block; height: clamp(420px, 70vh, 760px); overflow: hidden; color: var(--ivory); background: var(--green); isolation: isolate; }
.next .bg { position: absolute; inset: 0; z-index: -2; }
.next .bg img, .next .bg .tt { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.6s var(--ease); }
.next:hover .bg img { transform: scale(1); }
.next::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4, 22, 18, .55), rgba(4, 22, 18, .2) 40%, rgba(4, 22, 18, .75)); }
.next .wrap { height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding-block: calc(var(--hdr) - 24px) clamp(24px, 3vw, 44px); }
.next .top { display: flex; justify-content: space-between; gap: 20px; }
.next .nm { font-size: var(--d-xl); transition: transform .8s var(--ease); }
.next:hover .nm { transform: translateX(clamp(8px, 1.6vw, 28px)); }
.next .sub { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; align-items: end; margin-top: 14px; }

/* ---------- studio ---------- */
.two .grid { row-gap: 40px; align-items: start; }
.two .a { grid-column: 1 / span 5; }
.two .b { grid-column: 7 / span 6; }
@media (max-width: 900px) { .two .a, .two .b { grid-column: 1 / -1; } }
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px var(--gap); }
.cols3 > div { border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 12px; align-content: start; }
.cols3 h3 { font-size: clamp(1.25rem, 1.7vw, 1.625rem); text-transform: uppercase; letter-spacing: -.03em; line-height: 1; }
.cols3 p { opacity: .82; }
@media (max-width: 900px) { .cols3 { grid-template-columns: 1fr; } }
.leader { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 28px; border-top: 1px solid var(--line); padding-top: 16px; }
.leader + .leader { margin-top: clamp(72px, 9vw, 140px); }
.leader .nm { grid-column: 1 / span 7; }
.leader .nm .role { display: block; margin-top: 18px; }
.leader .bio { grid-column: 8 / span 5; display: grid; gap: 1em; }
.leader .focus { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.leader .focus li { border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); padding: 6px 12px; font-size: .8125rem; font-weight: 700; }
@media (max-width: 900px) { .leader .nm, .leader .bio { grid-column: 1 / -1; } }
.sectors li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 6fr) minmax(0, 5fr); gap: 6px var(--gap); padding-block: 20px; border-top: 1px solid var(--line); align-items: baseline; }
.sectors li:last-child { border-bottom: 1px solid var(--line); }
.sectors .n { font-family: var(--mono); font-size: .75rem; }
.sectors .nm { font-weight: 700; text-transform: uppercase; letter-spacing: -.035em; line-height: 1; font-size: clamp(1.5rem, 2.8vw, 2.75rem); }
.sectors .ds { opacity: .78; }
@media (max-width: 760px) { .sectors li { grid-template-columns: auto minmax(0, 1fr); } .sectors .ds { grid-column: 2; } }
.tag { display: inline-flex; align-items: center; gap: 8px; }
.tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--vermilion); animation: blink 1.6s steps(2, start) infinite; }
.verm .tag::before { background: var(--green); }
@keyframes blink { to { visibility: hidden; } }

/* ---------- services page ---------- */
.svc { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 28px; padding-block: clamp(40px, 5vw, 80px); border-top: 1px solid var(--line); scroll-margin-top: calc(var(--hdr) + 16px); }
.svc .n { grid-column: 1 / span 1; font-family: var(--mono); font-size: .75rem; padding-top: 1em; }
.svc h2 { grid-column: 2 / span 5; font-size: clamp(2.75rem, 6.4vw, 6.5rem); }
.svc .body { grid-column: 7 / span 3; display: grid; gap: 18px; align-content: start; }
.svc .body .short { font-weight: 700; font-size: var(--t-lead); line-height: 1.3; }
.svc .inc { display: grid; gap: 4px; border-top: 1px solid var(--line); padding-top: 12px; }
.svc .inc li::before { content: "+ "; color: var(--vermilion-ink); font-family: var(--mono); }
.svc .rel { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.svc .rel .label { width: 100%; opacity: .6; }
.svc .rel a { font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.svc .rel a:hover { color: var(--vermilion-ink); }
.svc figure { grid-column: 10 / span 3; }
.svc figure .im { overflow: hidden; }
.svc figure img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.svc figcaption { margin-top: 10px; opacity: .7; }
@media (max-width: 1000px) { .svc h2 { grid-column: 2 / -1; } .svc .body { grid-column: 2 / span 6; } .svc figure { grid-column: 8 / span 5; } }
@media (max-width: 640px) { .svc .n { grid-column: 1 / -1; padding-top: 0; } .svc h2, .svc .body, .svc figure { grid-column: 1 / -1; } .svc figure img { aspect-ratio: 16 / 11; } }
.range { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.range img { aspect-ratio: 8 / 7; object-fit: cover; width: 100%; }
.range figcaption { margin-top: 10px; opacity: .7; }
@media (max-width: 760px) { .range { grid-template-columns: 1fr; } }
.jump { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- contact ---------- */
.ct .grid { row-gap: 56px; align-items: start; }
.ct-aside { grid-column: 1 / span 4; display: grid; gap: 40px; position: sticky; top: calc(var(--hdr) + 32px); }
.ct-aside .mail { font-weight: 700; font-size: clamp(1.5rem, 2.4vw, 2.25rem); letter-spacing: -.03em; line-height: 1.05; overflow-wrap: anywhere; }
.ct-aside ol { display: grid; gap: 10px; counter-reset: q; }
.ct-aside ol li { display: grid; grid-template-columns: 34px minmax(0, 1fr); counter-increment: q; }
.ct-aside ol li::before { content: "(" counter(q) ")"; font-family: var(--mono); font-size: .75rem; padding-top: .3em; opacity: .6; }
.ct-form { grid-column: 6 / span 7; }
@media (max-width: 960px) { .ct-aside, .ct-form { grid-column: 1 / -1; } .ct-aside { position: static; } }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px var(--gap); }
.field { display: grid; gap: 10px; align-content: start; border: 0; padding: 0; margin: 0; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field > label, .field > legend { font-family: var(--mono); font-size: .75rem; letter-spacing: .05em; text-transform: uppercase; padding: 0; }
.field .opt { opacity: .55; }
.field input, .field textarea {
  width: 100%; border: 0; border-radius: 0; background: transparent; color: var(--green);
  font: inherit; font-size: clamp(1.125rem, 1.5vw, 1.375rem); letter-spacing: -.01em;
  padding: 6px 0 12px; box-shadow: inset 0 -1px 0 var(--green); transition: box-shadow .3s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--mute); opacity: 1; }
.field textarea { min-height: 140px; resize: vertical; line-height: 1.45; }
.field input:focus, .field textarea:focus { outline: none; box-shadow: inset 0 -2px 0 var(--vermilion); }
.field .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.field .chips label { position: relative; }
.field .chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.field .chips span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; font-weight: 700; font-size: .875rem; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: background .25s, color .25s, box-shadow .25s; }
.field .chips span:hover { box-shadow: inset 0 0 0 1px var(--green); }
.field .chips input:checked + span { background: var(--green); color: var(--ivory); box-shadow: none; }
.field .chips input:focus-visible + span { outline: 2px solid var(--vermilion); outline-offset: 2px; }
.field[data-invalid] input, .field[data-invalid] textarea { box-shadow: inset 0 -2px 0 var(--vermilion-ink); }
.field[data-invalid] .chips span { box-shadow: inset 0 0 0 1px var(--vermilion-ink); }
.field .err { color: var(--vermilion-ink); font-weight: 700; font-size: .875rem; }
.field .hint { font-size: .875rem; opacity: .7; }
.form .actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; border-top: 1px solid var(--line); padding-top: 24px; }
.form .actions p { font-size: .875rem; max-width: 46ch; opacity: .8; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }
.result { margin-top: 40px; padding: clamp(20px, 3vw, 36px); display: grid; gap: 18px; }
.result textarea { width: 100%; min-height: 220px; background: var(--green-2); color: var(--ivory); border: 0; padding: 14px; font-family: var(--mono); font-size: .875rem; line-height: 1.5; resize: vertical; }
.result .status { font-weight: 700; min-height: 1.4em; }
.copy-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---------- reveal (transform only; content is always visible) ---------- */
.rv { transform: translate3d(0, 28px, 0); transition: transform 1.1s var(--ease); }
.rv.in { transform: none; }
.mt-m { margin-top: 32px; } .mt-l { margin-top: clamp(48px, 6vw, 96px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .rv { transform: none; }
  .slide img { transform: none !important; }
  .card-media img, .cs-hero img, .ethos .mark-big { --py: 0px !important; }
  .menu-links .t > span { transform: none; }
}
.menu { background-image: url("pattern-deep.svg"); background-repeat: no-repeat; background-size: max(1400px, 120%) auto; background-position: 70% 100%; }
/* fixes */
.curtain { visibility: hidden; }
body.leaving .curtain { visibility: visible; }
.idx-row { grid-template-columns: 56px minmax(0, 5fr) minmax(0, 4fr) auto; }
@media (max-width: 900px) {
  .hero-ui { min-height: inherit; grid-template-rows: auto 1fr auto; row-gap: 24px; }
  .h-left, .h-right { grid-row: 1; }
  .h-bottom { grid-row: 3; }
  .h-sig { font-size: .875rem; }
  .h-sig br, .h-sig .x { display: none; }
}
@media (max-width: 560px) {
  .h-left { grid-column: 1 / span 7; }
  .h-right { grid-column: 8 / span 5; }
  .now-card { grid-template-columns: 64px minmax(0, 1fr) auto; }
  .idx-row { grid-template-columns: 32px minmax(0, 1fr) auto; }
}
.now-card .th { aspect-ratio: auto; min-height: 64px; }
.now-card .tx { gap: 6px; }
/* fix: give clipped display lines room for cap height and accents */
.line-mask { padding-top: .14em; margin-top: -.14em; padding-bottom: .08em; margin-bottom: -.08em; }
.menu-links .t { padding-top: .14em; margin-top: -.14em; padding-bottom: .08em; margin-bottom: -.08em; }
.menu-btn .mb-t { height: 1.35em; line-height: 1.35; }

/* ---------- home hero v3: animated mark + project rail ---------- */
.khero { position: relative; overflow: hidden; padding-top: calc(var(--hdr) + env(safe-area-inset-top, 0px) + clamp(24px, 4vw, 56px)); }
.kh-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 32px; align-items: end; }
.kh-grid > * { min-width: 0; }
.kh-copy { grid-column: 1 / span 7; grid-row: 1; display: grid; gap: 26px; justify-items: start; padding-bottom: 6px; }
.kh-eyebrow { display: inline-flex; gap: 10px; align-items: center; }
.kh-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--vermilion); }
.kh-lead { max-width: 34ch; opacity: .86; }
.kh-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.kh-stage {
  grid-column: 8 / span 5; grid-row: 1; position: relative; aspect-ratio: 1; overflow: hidden; isolation: isolate;
  background: var(--vermilion); perspective: 900px;
  animation: stage-in 1.2s var(--ease) both;
}
@keyframes stage-in { from { transform: scale(.94); } to { transform: none; } }
.kh-pat { position: absolute; inset: -20%; z-index: -1; background: url("pattern.svg") 30% 40% / 230% auto no-repeat; animation: pat-drift 22s ease-in-out infinite alternate; }
@keyframes pat-drift { 0% { transform: translate3d(-4%, -2%, 0) rotate(0deg); } 100% { transform: translate3d(5%, 4%, 0) rotate(-4deg); } }
.kh-mark { position: absolute; left: 50%; top: 50%; width: 40%; transform-style: preserve-3d; }
.kh-mark svg { width: 100%; height: auto; display: block; }
.kh-main { color: var(--ivory); animation: sway 7s ease-in-out infinite alternate; }
.kh-echo { color: var(--green); animation: sway-echo 7s ease-in-out infinite alternate; animation-delay: -.6s; }
@keyframes sway { 0% { transform: translate(-50%, -50%) rotateY(-28deg) rotateX(6deg); } 100% { transform: translate(-50%, -50%) rotateY(28deg) rotateX(-6deg); } }
@keyframes sway-echo { 0% { transform: translate(-44%, -45%) rotateY(-28deg) rotateX(6deg); } 100% { transform: translate(-56%, -45%) rotateY(28deg) rotateX(-6deg); } }
.kh-tl, .kh-br { position: absolute; color: var(--ivory); }
.kh-tl { left: 14px; top: 12px; }
.kh-br { right: 14px; bottom: 12px; font-variant-numeric: tabular-nums; }
.kh-railhead { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: clamp(48px, 6vw, 96px); border-top: 1px solid var(--line-d); padding-top: 14px; }
.kh-ctrl { display: flex; align-items: center; gap: 6px; }
.rb { width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-d); font-size: 1.125rem; transition: background .3s, color .3s, box-shadow .3s; }
.rb:hover { background: var(--ivory); color: var(--green); box-shadow: none; }
.rpause { min-height: 44px; padding: 0 10px; }
.rail { margin-top: 18px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; cursor: grab; outline-offset: -2px; }
.rail::-webkit-scrollbar { display: none; }
.rail.dragging { cursor: grabbing; }
.rail.dragging a { pointer-events: none; }
.rail-track { display: flex; gap: var(--gap); width: max-content; padding-left: max(var(--g), env(safe-area-inset-left, 0px)); padding-right: var(--gap); }
.rc { width: clamp(270px, 27vw, 440px); flex: none; }
.rc a { display: grid; gap: 12px; }
.rc-im { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--green-2); }
.rc-im img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); -webkit-user-drag: none; user-select: none; }
.rc a:hover .rc-im img { transform: scale(1.05); }
.rc-meta { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 2px 12px; align-items: baseline; border-top: 1px solid var(--line-d); padding-top: 10px; }
.rc-meta b { font-size: 1.0625rem; text-transform: uppercase; letter-spacing: -.02em; line-height: 1.1; }
.rc-meta .label:first-child { opacity: .6; }
.rc-d { grid-column: 2 / -1; opacity: .62; }
.rc a:hover b { color: var(--vermilion); }
.kh-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: clamp(28px, 3vw, 44px) clamp(40px, 5vw, 72px); }
.kh-foot .label { opacity: .5; }
@media (max-width: 900px) {
  .kh-stage { grid-column: 1 / -1; grid-row: 1; aspect-ratio: 4 / 3; }
  .kh-mark { width: 30%; }
  .kh-copy { grid-column: 1 / -1; grid-row: 2; gap: 20px; }
  .rc { width: 76vw; }
  .kh-foot .label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .kh-main { transform: translate(-50%, -50%); }
  .kh-echo { transform: translate(-46%, -46%); }
}

/* =========================================================
   v4 — MEXORA-inspired home, folder-tab services, header nav
   ========================================================= */
@font-face { font-family: "Nimbus Sans Narrow"; src: url("fonts/NimbusSansNarrow-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
:root { --narrow: "Nimbus Sans Narrow", "Arial Narrow", "Helvetica Neue Condensed", var(--sans); --r: clamp(16px, 2vw, 26px); }

/* header: inline nav on desktop, two-line burger on mobile */
.hdr-nav { display: flex; gap: clamp(18px, 2.4vw, 36px); position: absolute; left: 50%; transform: translateX(-50%); }
.hdr-nav a { font-size: .9375rem; padding-block: 6px; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease); }
.hdr-nav a:hover, .hdr-nav a[aria-current="page"] { background-size: 100% 1px; }
.hdr .wrap { position: relative; }
@media (min-width: 901px) { .menu-btn { display: none; } }
@media (max-width: 900px) {
  .hdr-nav { display: none; }
  .hdr .pill { display: none; }
  .menu-btn { box-shadow: none; padding: 0; gap: 10px; width: 44px; justify-content: center; }
  .menu-btn .mb-t { display: none; }
  .menu-btn .dots { width: 30px; height: 14px; border-radius: 0; background: none; }
  .menu-btn:hover .dots { transform: none; }
  .menu-btn .dots i { left: 0; right: 0; width: auto; height: 2px; margin: 0; border-radius: 0; background: currentColor; transform: none; }
  .menu-btn .dots i:first-child { top: 2px; transform: none; }
  .menu-btn .dots i:last-child { top: auto; bottom: 2px; left: 8px; transform: none; }
  .menu-btn[aria-expanded="true"] .dots i { width: auto; margin: 0; height: 2px; left: 2px; right: 2px; top: 6px; bottom: auto; }
  .menu-btn[aria-expanded="true"] .dots i:first-child { transform: rotate(45deg); }
  .menu-btn[aria-expanded="true"] .dots i:last-child { transform: rotate(-45deg); }
}

/* hero: full-width logo, descriptors */
.mx-hero { padding-top: calc(var(--hdr) + env(safe-area-inset-top, 0px) + clamp(20px, 3vw, 40px)); padding-bottom: clamp(20px, 2.6vw, 36px); }
.mx-logo { display: block; overflow: hidden; margin: 0; }
.mx-logo-in { display: block; color: var(--green); animation: lift 1.2s var(--ease) both; }
.mx-logo svg { display: block; width: 100%; height: auto; max-height: min(58vh, 560px); }
.mx-sub { display: flex; justify-content: space-between; align-items: end; gap: 16px 32px; margin-top: clamp(16px, 2vw, 28px); }
.mx-desc { display: inline-flex; align-items: center; gap: 10px; font-size: .9375rem; }
.mx-desc .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--vermilion); }
.mx-tag { text-align: right; font-size: .9375rem; line-height: 1.4; }
@media (max-width: 760px) {
  .mx-hero { text-align: center; padding-top: calc(var(--hdr) + env(safe-area-inset-top, 0px) + 28px); }
  .mx-logo svg { width: 78%; margin-inline: auto; }
  .mx-sub { flex-direction: column; align-items: center; gap: 10px; }
  .mx-desc { order: -1; }
  .mx-tag { text-align: center; }
  .mx-hero .mx-desc { position: relative; }
}

/* band: drifting brand pattern + mark, statement overlaid */
.mx-band { position: relative; overflow: hidden; isolation: isolate; color: var(--ivory); background: var(--vermilion); min-height: clamp(460px, 48vw, 760px); display: flex; perspective: 900px; }
.mx-pat { position: absolute; inset: -18%; z-index: -2; background: url("pattern.svg") 40% 50% / cover no-repeat; animation: pat-drift 24s ease-in-out infinite alternate; }
.mx-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 44, 37, 0) 35%, rgba(7, 44, 37, .55) 100%); }
.mx-mark { position: absolute; right: clamp(16px, 6vw, 120px); top: 50%; width: clamp(140px, 18vw, 300px); aspect-ratio: 120 / 164; transform: translateY(-58%); z-index: 0; }
.mx-mark .kh-mark { width: 100%; }
.mx-band-in { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 28px; padding-block: clamp(32px, 4vw, 64px); }
.mx-say { font-weight: 400; text-transform: uppercase; letter-spacing: -.045em; line-height: .95; font-size: clamp(2.25rem, 6vw, 6.25rem); max-width: 14ch; }
.mx-band-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
@media (max-width: 760px) {
  .mx-band { min-height: 112vw; }
  .mx-band-in { justify-content: center; align-items: center; text-align: center; }
  .mx-say { font-size: clamp(2.125rem, 10.6vw, 3.25rem); max-width: none; }
  .mx-mark { right: 50%; top: 14%; width: 26vw; transform: translateX(50%); }
  .mx-band-foot { flex-direction: column; }
}

/* light statements + aside */
.mx-light { font-weight: 400; text-transform: uppercase; letter-spacing: -.045em; line-height: .95; font-size: clamp(2.25rem, 5vw, 5.25rem); }
.mx-collab .grid, .mx-twohead { row-gap: 20px; align-items: end; }
.mx-collab .mx-light, .mx-twohead .mx-light { grid-column: 1 / span 7; }
.mx-aside { grid-column: 7 / span 4; font-size: .9375rem; line-height: 1.5; opacity: .78; max-width: 40ch; }
.mx-collab .mx-aside, .mx-twohead .mx-aside { grid-column: 7 / span 4; grid-row: 2; }
.mx-tiles-l { margin-top: clamp(48px, 6vw, 88px); margin-bottom: 14px; }
.mx-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.lt { background: var(--ivory-2); aspect-ratio: 2 / 1; display: grid; place-items: center; transition: background .3s; }
.lt:hover { background: #E6E9CF; }
.lt .logo-mark { opacity: .9; max-width: 70%; }
@media (max-width: 760px) {
  .mx-collab .mx-light, .mx-twohead .mx-light, .mx-collab .mx-aside, .mx-twohead .mx-aside { grid-column: 1 / -1; grid-row: auto; }
  .mx-tiles { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-right: calc(-1 * max(var(--g), env(safe-area-inset-right, 0px))); padding-right: var(--g); }
  .mx-tiles::-webkit-scrollbar { display: none; }
  .lt { flex: 0 0 42vw; scroll-snap-align: start; }
  .lt .logo-mark { transform: none; }
}

/* rail on ivory */
.mx-work .kh-railhead { border-top-color: var(--line); margin-top: clamp(32px, 4vw, 56px); }
.mx-work .rb { box-shadow: inset 0 0 0 1px var(--line); }
.mx-work .rb:hover { background: var(--green); color: var(--ivory); }
.mx-work .rc-meta { border-top-color: var(--line); }
.mx-work .rc-im { background: var(--ivory-2); }
.mx-work .rc a:hover b { color: var(--vermilion-ink); }

/* approach cards */
.mx-approach .grid { row-gap: 40px; align-items: start; }
.mx-ap-l { grid-column: 1 / span 5; display: grid; justify-items: start; position: sticky; top: calc(var(--hdr) + 32px); }
.mx-cards { grid-column: 7 / span 6; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pc { background: var(--ivory-2); padding: clamp(18px, 2vw, 28px); display: grid; gap: 10px; align-content: start; min-height: 220px; }
.pc-ic { width: 22px; color: var(--vermilion-ink); }
.pc-ic svg { width: 100%; height: auto; display: block; }
.pc .label { opacity: .6; margin-top: 18px; }
.pc h3 { font-weight: 400; text-transform: uppercase; letter-spacing: -.03em; line-height: 1; font-size: clamp(1.375rem, 1.9vw, 1.875rem); }
.pc p { font-size: .9375rem; opacity: .78; }
.pc-v { grid-column: 1 / -1; background: var(--vermilion); color: var(--ivory); min-height: 0; }
.pc-v .pc-ic { color: var(--green); }
.pc-v .label { opacity: .8; }
.pc-v h3 { font-size: clamp(1.75rem, 3vw, 3rem); }
.pc-v p { opacity: .92; }
@media (max-width: 900px) {
  .mx-ap-l, .mx-cards { grid-column: 1 / -1; position: static; }
}
@media (max-width: 520px) { .mx-cards { grid-template-columns: 1fr; } .pc { min-height: 0; } }

/* folder-tab services stack */
.tabs-title { font-family: var(--narrow); font-weight: 700; text-transform: uppercase; letter-spacing: -.02em; line-height: .86; font-size: clamp(3.25rem, 11vw, 10rem); margin-bottom: -.06em; }
.tabs { display: grid; }
.tb { position: relative; margin-top: calc(-1 * var(--r)); color: var(--f); }
.tb:first-child { margin-top: 0; }
.tb-h { display: flex; margin: 0; }
.tb-l .tb-h { justify-content: flex-start; }
.tb-m .tb-h { justify-content: flex-start; padding-left: 18%; }
.tb-r .tb-h { justify-content: flex-end; }
.tb-btn {
  position: relative; display: inline-flex; align-items: center; gap: .4em; max-width: 100%;
  background: var(--c); color: var(--f); border-radius: var(--r) var(--r) 0 0;
  padding: clamp(10px, 1.2vw, 16px) clamp(16px, 2vw, 28px) 4px; text-align: left;
  font-family: var(--narrow); font-weight: 700; text-transform: uppercase; letter-spacing: -.015em; line-height: .88;
  font-size: clamp(2.25rem, 9.4vw, 7.25rem);
}
.tb-btn::before, .tb-btn::after { content: ""; position: absolute; bottom: 0; width: var(--r); height: var(--r); pointer-events: none; }
.tb-btn::before { right: 100%; background: radial-gradient(circle at 0 0, transparent calc(var(--r) - .5px), var(--c) var(--r)); }
.tb-btn::after { left: 100%; background: radial-gradient(circle at 100% 0, transparent calc(var(--r) - .5px), var(--c) var(--r)); }
.tb-l .tb-btn::before, .tb-r .tb-btn::after { display: none; }
.tb-pm { width: .32em; height: .32em; position: relative; flex: none; align-self: center; margin-left: .1em; }
.tb-pm::before, .tb-pm::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; background: currentColor; transition: transform .4s var(--ease); }
.tb-pm::after { transform: rotate(90deg); }
.tb-btn[aria-expanded="true"] .tb-pm::after { transform: rotate(0); }
.tb-btn:focus-visible { outline-offset: -4px; }
.tb-body { background: var(--c); border-radius: 0 var(--r) 0 0; min-height: calc(var(--r) * 2); padding-bottom: calc(var(--r) + 6px); }
.tb-r .tb-body { border-radius: var(--r) 0 0 0; }
.tb-m .tb-body { border-radius: var(--r) var(--r) 0 0; }
.tb:last-child .tb-body { border-radius: 0 var(--r) var(--r) var(--r); padding-bottom: 0; }
.tb-r:last-child .tb-body { border-radius: var(--r) 0 var(--r) var(--r); }
.tb-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px var(--gap); padding: clamp(18px, 2.4vw, 36px) clamp(16px, 2vw, 28px) clamp(20px, 2.6vw, 40px); align-items: end; }
.tb-txt { display: grid; gap: 14px; align-content: start; max-width: 46ch; }
.tb-short { font-weight: 700; font-size: clamp(1.125rem, 1.5vw, 1.375rem); line-height: 1.25; }
.tb-txt > p:not(.tb-short):not(.tb-rel) { opacity: .85; }
.tb-rel a { text-decoration: underline; text-underline-offset: 3px; }
.tb-fig { border-radius: calc(var(--r) - 6px); overflow: hidden; }
.tb-fig img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.tb-clip:not([hidden]) .tb-in { animation: tb-open .6s var(--ease) both; }
@keyframes tb-open { from { transform: translateY(-12px); } to { transform: none; } }
@media (max-width: 760px) {
  .tb-m .tb-h { padding-left: 10%; }
  .tb-in { grid-template-columns: 1fr; }
  .tb-btn { font-size: clamp(2.125rem, 11.4vw, 3.5rem); }
}
@media (max-width: 760px) {
  .mx-band-in { justify-content: flex-end; }
  .mx-mark { top: 9%; width: 20vw; transform: translateX(50%); }
  .mx-band { min-height: 128vw; }
}
@media (max-width: 760px) {
  .mx-say .line-mask:nth-child(n+2) { display: none; }
  .mx-say { font-size: clamp(2.75rem, 14vw, 4rem); max-width: 8ch; margin-inline: auto; }
  .mx-band { min-height: 118vw; }
  .mx-mark { top: 12%; width: 22vw; }
}
@media (max-width: 760px) {
  .mx-say { font-size: clamp(2.5rem, 12.4vw, 3.75rem); max-width: none; }
  .mx-band { min-height: 124vw; }
  .mx-mark { top: 9%; width: 20vw; }
}

/* =========================================================
   v5 — logo-mask hero, stacked case studies, shifting lines
   ========================================================= */
/* hero */
.mh { position: relative; height: 260vh; background: var(--ivory); }
.mh-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; }
.mh-win, .mh-fill { position: absolute; inset: 0; }
.mh-win picture, .mh-fill picture, .mh-win img, .mh-fill img { display: block; width: 100%; height: 100%; }
.mh-win img, .mh-fill img { object-fit: cover; }
.mh-win {
  --k: 1; --mx: 79%; --my: 54%;
  -webkit-mask-image: var(--mask); mask-image: var(--mask);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: auto calc(62vh * var(--k)); mask-size: auto calc(62vh * var(--k));
  -webkit-mask-position: var(--mx) var(--my); mask-position: var(--mx) var(--my);
  z-index: 1;
}
.mh-win img { transform: scale(calc(1.12 - .1 * var(--p, 0))); }
.mh-fill { z-index: 2; opacity: var(--fo, 0); }
.mh-fill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 22, 18, .35) 0%, rgba(4, 22, 18, .05) 40%, rgba(4, 22, 18, .7) 100%); }
.mh-ui { position: relative; z-index: 3; height: 100%; display: grid; grid-template-rows: auto 1fr auto; padding-top: calc(var(--hdr) + env(safe-area-inset-top, 0px) + 20px); padding-bottom: clamp(20px, 3vw, 40px); opacity: var(--uo, 1); transform: translate3d(0, var(--uy, 0px), 0); }
.mh-eye { display: inline-flex; gap: 10px; align-items: center; }
.mh-eye .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--vermilion); }
.mh-h { align-self: center; font-size: clamp(3.25rem, 9.6vw, 10.5rem); line-height: .86; letter-spacing: -.055em; max-width: 7ch; }
.mh-h span { display: block; }
.mh-h .vdot { display: inline; color: var(--vermilion); }
.mh-a { animation: lift 1.1s var(--ease) both; }
.mh-b { animation: lift 1.1s .08s var(--ease) both; }
.mh-foot { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.mh-lead { max-width: 34ch; font-size: var(--t-lead); line-height: 1.38; }
.mh-hint { opacity: .6; }
.mh-end { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; color: var(--ivory); padding-bottom: clamp(28px, 4vw, 56px); display: grid; gap: 28px; opacity: var(--eo, 0); transform: translate3d(0, var(--ey, 30px), 0); pointer-events: none; }
.mh-end.live { pointer-events: auto; }
.mh-say { font-size: clamp(2.75rem, 7.4vw, 8rem); line-height: .88; letter-spacing: -.05em; }
.mh-end-row { display: flex; flex-wrap: wrap; gap: 10px; }
.hdr.inv:not(.solid) { color: var(--ivory); }
@media (max-width: 760px) {
  .mh { height: 230vh; }
  .mh-win { --mx: 50%; --my: 40%; -webkit-mask-size: auto calc(38svh * var(--k)); mask-size: auto calc(38svh * var(--k)); }
  .mh-ui { grid-template-rows: auto 1fr auto auto; }
  .mh-h { grid-row: 3; font-size: clamp(3rem, 15.4vw, 4.75rem); max-width: none; margin-bottom: 14px; }
  .mh-foot { grid-row: 4; }
  .mh-lead { font-size: 1rem; }
  .mh-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mh { height: auto; }
  .mh-sticky { position: relative; height: 100svh; min-height: 560px; }
  .mh-fill, .mh-end { display: none; }
}

/* stacked case studies */
.stack { display: grid; }
.stk { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--hdr) + 8px); height: calc(100svh - var(--hdr) - 32px); max-height: 860px; margin-bottom: 20px; }
.stk:last-child { margin-bottom: 0; }
.stk-in { position: relative; height: 100%; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); border-radius: 14px; overflow: hidden; transform-origin: 50% 0; transform: scale(calc(1 - .05 * var(--q, 0))); transition: transform .1s linear; }
.stk-in::after { content: ""; position: absolute; inset: 0; background: #041612; opacity: calc(.45 * var(--q, 0)); pointer-events: none; }
.stk-verm .stk-in { background: var(--vermilion); color: var(--ivory); }
.stk-green .stk-in { background: var(--green); color: var(--ivory); }
.stk-ivory .stk-in { background: var(--ivory-2); color: var(--green); }
.stk-txt { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: clamp(20px, 2.6vw, 40px); min-width: 0; }
.stk-top { display: flex; justify-content: space-between; gap: 12px; opacity: .8; }
.stk-body { display: grid; gap: 16px; }
.stk-h { font-weight: 700; text-transform: uppercase; letter-spacing: -.05em; line-height: .88; font-size: clamp(2.5rem, 5.2vw, 5.75rem); }
.stk-h a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.stk-t { font-size: var(--t-lead); line-height: 1.3; max-width: 26ch; }
.stk-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.stk-chips li { border-radius: 999px; box-shadow: inset 0 0 0 1px currentColor; padding: 6px 12px; font-size: .8125rem; font-weight: 700; opacity: .9; }
.stk-go { justify-self: start; align-self: flex-start; }
.stk-verm .stk-go, .stk-green .stk-go { background: var(--ivory); color: var(--green); }
.stk-verm .stk-go::before { background: var(--green); }
.stk-in:hover .stk-go { color: var(--ivory); }
.stk-in:hover .stk-go::before { transform: none; }
.stk-fig { position: relative; overflow: hidden; margin: 10px 10px 10px 0; border-radius: 8px; }
.stk-fig img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.stk-in:hover .stk-fig img { transform: scale(1.04); }
.stk-in:focus-within { outline: 2px solid var(--vermilion); outline-offset: 3px; }
@media (max-width: 900px) {
  .stk { height: calc(100svh - var(--hdr) - 24px); max-height: 760px; margin-bottom: 14px; }
  .stk-in { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; border-radius: 12px; }
  .stk-fig { order: -1; margin: 8px 8px 0; }
  .stk-txt { padding: 18px 18px 20px; gap: 16px; }
  .stk-top { display: none; }
  .stk-h { font-size: clamp(2.25rem, 10vw, 3.25rem); }
  .stk-t { font-size: 1rem; }
  .stk-chips { display: none; }
}

/* shifting philosophy lines */
.ph-sec { padding-block: var(--sec); overflow: hidden; }
.ph-lines { display: grid; gap: clamp(4px, 1vw, 12px); margin-block: clamp(24px, 4vw, 56px); }
.ph-line { white-space: nowrap; font-weight: 700; text-transform: uppercase; letter-spacing: -.055em; line-height: .9; font-size: clamp(3.5rem, 11vw, 12rem); transform: translate3d(var(--x, 0px), 0, 0); will-change: transform; }
.ph-1 { padding-left: max(var(--g), env(safe-area-inset-left, 0px)); }
.ph-2 { color: var(--green); margin-left: -60vw; }
.ph-line .sep { display: inline-block; font-size: .32em; vertical-align: middle; margin: 0 .5em; transform: translateY(-.1em); }
.ph-1 .sep { color: var(--green); }
.ph-2 .sep { color: var(--ivory); }
.ph-foot { row-gap: 16px; }
.ph-foot .lead { grid-column: span 5; }
.ph-foot .lead + .lead { grid-column: 7 / span 5; }
@media (max-width: 760px) { .ph-foot .lead, .ph-foot .lead + .lead { grid-column: 1 / -1; } .ph-2 { margin-left: -120vw; } }
.ph-1, .ph-2 { padding-left: 0; margin-left: 0; }
.ph-line .c { display: inline-block; }

/* =========================================================
   v5 — static editorial home (no motion)
   ========================================================= */
.curtain { display: none !important; }
.h5 { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); min-height: clamp(640px, 90svh, 920px); background: var(--green); color: var(--ivory); }
.h5-l { display: flex; }
.h5-in { width: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
  padding-top: calc(var(--hdr) + env(safe-area-inset-top, 0px) + clamp(32px, 5vw, 72px)); padding-bottom: clamp(28px, 3.4vw, 52px);
  padding-left: max(var(--g), env(safe-area-inset-left, 0px)); padding-right: clamp(24px, 4vw, 64px); }
.h5-k { display: inline-flex; align-items: center; gap: 10px; opacity: .9; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--vermilion); display: inline-block; }
.h5-t { font-weight: 700; text-transform: uppercase; letter-spacing: -.05em; line-height: .86; font-size: clamp(3.4rem, 8.1vw, 9.25rem); max-width: 8.2ch; }
.h5-t .v { color: var(--vermilion); }
.h5-b { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 32px; align-items: end; border-top: 1px solid var(--line-d); padding-top: 22px; }
.h5-p { font-size: var(--t-lead); line-height: 1.38; max-width: 30ch; }
.h5-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.h5-r { position: relative; display: block; overflow: hidden; background: var(--green-2); }
.h5-r img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.h5-cap { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 4px; padding: 56px clamp(16px, 2vw, 28px) clamp(18px, 2vw, 28px); background: linear-gradient(180deg, rgba(7, 44, 37, 0), rgba(7, 44, 37, .82)); }
.h5-cap b { font-size: clamp(1.25rem, 1.8vw, 1.75rem); letter-spacing: -.02em; line-height: 1.1; }
.h5-cap span:last-child { font-size: .9375rem; opacity: .9; }
.h5-r:hover .h5-cap b { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
@media (max-width: 1100px) { .h5-b { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .h5 { grid-template-columns: 1fr; min-height: 0; }
  .h5-in { padding-right: max(var(--g), env(safe-area-inset-right, 0px)); gap: 36px; }
  .h5-t { font-size: clamp(3.25rem, 15vw, 5.5rem); }
  .h5-r { aspect-ratio: 4 / 5; }
}

.lg { border-bottom: 1px solid var(--line); }
.lg-in { display: grid; grid-template-columns: minmax(0, 2.6fr) minmax(0, 9.4fr); gap: 20px var(--gap); align-items: center; padding-block: clamp(28px, 3vw, 44px); }
.lg h2 { max-width: 22ch; opacity: .7; }
.lg ul { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 22px 32px; }
.lg .logo-mark { opacity: .88; }
@media (max-width: 900px) {
  .lg-in { grid-template-columns: 1fr; }
  .lg ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); justify-items: center; gap: 26px 12px; }
  .lg .logo-mark { max-width: 100%; transform: scale(.78); }
}

.st5 .grid { row-gap: 28px; }
.st5-k { grid-column: 1 / span 2; padding-top: .7em; }
.st5-t { grid-column: 3 / span 10; font-weight: 400; font-size: clamp(1.75rem, 3.7vw, 3.75rem); line-height: 1.08; letter-spacing: -.035em; }
.st5-t em { font-style: normal; color: var(--vermilion-ink); }
.st5-f { grid-column: 3 / span 10; display: flex; flex-wrap: wrap; gap: 14px 32px; }
@media (max-width: 760px) { .st5-k, .st5-t, .st5-f { grid-column: 1 / -1; } }

.wk5-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 14px 32px; border-top: 1px solid var(--line); padding-top: 18px; margin-bottom: clamp(28px, 3.4vw, 52px); }
.wk5-g { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(36px, 4vw, 64px) var(--gap); align-items: start; }
.wk5-g > * { min-width: 0; }
.c8 { grid-column: span 8; } .c4 { grid-column: span 4; } .c6 { grid-column: span 6; }
.wt-a { display: grid; gap: 12px; }
.wt-im { position: relative; display: block; overflow: hidden; background: var(--ivory-2); }
.wt-im img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.c8 .wt-im { aspect-ratio: auto !important; height: 100%; }
.wk5-g > .c8 { align-self: stretch; display: grid; }
.wk5-g > .c8 .wt-a { grid-template-rows: 1fr auto; }
.wt-meta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; }
.wt-c { font-weight: 700; font-size: clamp(1.125rem, 1.4vw, 1.375rem); letter-spacing: -.02em; }
.wt-y { grid-column: 2; grid-row: 1; align-self: center; opacity: .65; }
.wt-d { grid-column: 1 / -1; font-size: .9375rem; opacity: .72; }
.wt-a:hover .wt-c { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; color: var(--vermilion-ink); }
.wk5-more { align-self: stretch; background: var(--green); color: var(--ivory); padding: clamp(22px, 3vw, 44px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; align-items: flex-start; }
.wk5-q { font-size: clamp(1.625rem, 2.8vw, 2.75rem); line-height: 1.08; letter-spacing: -.03em; max-width: 18ch; }
@media (max-width: 900px) {
  .c8, .c6 { grid-column: 1 / -1; } .c4 { grid-column: span 6; }
  .c8 .wt-im { aspect-ratio: 16 / 10 !important; height: auto; }
}
@media (max-width: 600px) { .c4 { grid-column: 1 / -1; } }

.sv5-p { max-width: 34ch; font-size: var(--t-lead); line-height: 1.35; }
.sv5 .wk5-h { border-top-color: rgba(252, 253, 239, .35); }
.sv5-l { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.sv a { height: 100%; display: flex; flex-direction: column; gap: 14px; padding: clamp(18px, 1.8vw, 26px); background: var(--ivory); color: var(--green); min-height: clamp(260px, 24vw, 340px); }
.sv-n { color: var(--vermilion-ink); }
.sv-h { font-weight: 700; text-transform: uppercase; letter-spacing: -.035em; line-height: .95; font-size: clamp(1.5rem, 2.1vw, 2.125rem); margin-top: auto; }
.sv-s { font-size: .9375rem; line-height: 1.45; opacity: .78; }
.sv-go { font-weight: 700; font-size: .9375rem; border-top: 1px solid var(--line); padding-top: 12px; }
.sv a:hover { background: var(--green); color: var(--ivory); }
.sv a:hover .sv-n { color: var(--vermilion); }
.sv a:hover .sv-go { border-top-color: var(--line-d); }
@media (max-width: 1100px) { .sv5-l { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sv:last-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .sv5-l { grid-template-columns: 1fr; } .sv a { min-height: 0; } .sv-h { margin-top: 8px; } }

.ph5 { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); background: var(--green); color: var(--ivory); }
.ph5-art { position: relative; min-height: clamp(360px, 40vw, 640px); background: var(--vermilion) url("pattern.svg") 42% 50% / cover no-repeat; display: grid; place-items: center; }
.ph5-mark { width: 30%; color: var(--ivory); }
.ph5-mark svg { width: 100%; height: auto; display: block; }
.ph5-tx { display: flex; flex-direction: column; justify-content: center; gap: 24px; padding: clamp(40px, 6vw, 112px) max(var(--g), env(safe-area-inset-right, 0px)) clamp(40px, 6vw, 112px) clamp(24px, 5vw, 96px); }
.ph5-t { font-weight: 700; text-transform: uppercase; letter-spacing: -.048em; line-height: .9; font-size: clamp(2.5rem, 5.6vw, 6rem); }
.ph5-t span { display: block; color: var(--vermilion); }
.ph5-p { font-size: var(--t-lead); line-height: 1.4; max-width: 40ch; opacity: .86; }
@media (max-width: 900px) {
  .ph5 { grid-template-columns: 1fr; }
  .ph5-art { min-height: 0; aspect-ratio: 4 / 3; }
  .ph5-tx { padding-left: max(var(--g), env(safe-area-inset-left, 0px)); }
}

.pr5-l { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px var(--gap); }
.pr5-l li { display: grid; gap: 10px; align-content: start; border-top: 2px solid var(--green); padding-top: 14px; }
.pr5-l .label { color: var(--vermilion-ink); }
.pr5-l h3 { font-size: clamp(1.375rem, 1.9vw, 1.875rem); text-transform: uppercase; letter-spacing: -.03em; line-height: 1; }
.pr5-l p { opacity: .8; max-width: 32ch; }
@media (max-width: 900px) { .pr5-l { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .pr5-l { grid-template-columns: 1fr; } }

/* =========================================================
   v6 — The Ribbon (immersive Home + Work)
   Static by default; body.gl switches on the WebGL layer.
   ========================================================= */
.rib { position: relative; background: var(--green); color: var(--ivory); }
.rb-canvas { position: sticky; top: 0; display: block; width: 100%; height: 100vh; height: 100lvh; z-index: 0; }
body.gl .rb-layer { margin-top: -100vh; margin-top: -100lvh; position: relative; z-index: 1; }
.rb-sec { position: relative; min-height: 100svh; display: flex; align-items: center; }
.rb-hero { align-items: stretch; overflow: hidden; }
.rb-intro { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 28px;
  padding-top: calc(var(--hdr) + env(safe-area-inset-top, 0px) + 32px); padding-bottom: clamp(64px, 9vh, 120px); }
.rb-intro .h5-t { font-size: clamp(3.4rem, 9.6vw, 10.5rem); max-width: 9ch; }
.rb-ib { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px 40px; border-top: 1px solid var(--line-d); padding-top: 22px; max-width: 980px; }
.rb-poster { position: absolute; right: -4vw; top: 50%; transform: translateY(-50%); width: min(62vw, 820px); height: auto; opacity: .95; pointer-events: none; }
.rb-hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: none; align-items: center; gap: 10px; opacity: .72; white-space: nowrap; z-index: 1; }
.rb-line { width: 1px; height: 28px; background: currentColor; display: inline-block; }
body.gl .rb-hint { display: inline-flex; }
body.gl .rb-poster { display: none; }
body.gl .rib { background: var(--green); }

/* project stops */
.rb-stop { padding-block: clamp(72px, 10vh, 120px); }
.rb-stop .rb-fb { width: 50%; padding-left: max(var(--g), env(safe-area-inset-left, 0px)); }
.rb-stop .rb-fb img { width: 100%; height: auto; max-height: 76vh; object-fit: cover; }
.rb-txt { display: grid; gap: 12px; justify-items: start; width: min(440px, 42vw); margin-left: clamp(24px, 5vw, 80px); padding: 22px 0; }
.rb-txt .label { opacity: .75; }
.rb-c { font-weight: 700; text-transform: uppercase; letter-spacing: -.045em; line-height: .9; font-size: clamp(2.5rem, 5.2vw, 5.5rem); }
.rb-c a:hover { color: var(--vermilion); }
.rb-t { font-size: var(--t-lead); line-height: 1.3; }
.rb-d { font-size: .9375rem; opacity: .72; margin-bottom: 8px; }
.rb-r { flex-direction: row-reverse; }
.rb-r .rb-fb { padding-left: 0; padding-right: max(var(--g), env(safe-area-inset-right, 0px)); }
.rb-r .rb-txt { margin-left: max(var(--g), env(safe-area-inset-left, 0px)); margin-right: clamp(24px, 5vw, 80px); }
/* with WebGL: images live in 3D; text sits on the side opposite each panel */
body.gl .rb-fb { display: none; }
body.gl .rb-stop { padding-block: 0; }
body.gl .rb-l { justify-content: flex-start; }
body.gl .rb-l .rb-txt { margin-left: max(var(--g), env(safe-area-inset-left, 0px)); }
body.gl .rb-r { flex-direction: row; justify-content: flex-end; }
body.gl .rb-r .rb-txt { margin-right: max(var(--g), env(safe-area-inset-right, 0px)); margin-left: 0; }
body.gl .rb-txt { text-shadow: 0 1px 24px rgba(4, 22, 18, .55); }
@media (max-width: 900px) {
  .rb-poster { width: 92vw; right: -18vw; top: 34%; opacity: .5; }
  .rb-stop, .rb-r { flex-direction: column; align-items: stretch; }
  .rb-stop .rb-fb, .rb-r .rb-fb { width: 100%; padding-inline: max(var(--g), env(safe-area-inset-left, 0px)); }
  .rb-txt, .rb-r .rb-txt { width: auto; margin: 0; padding-inline: max(var(--g), env(safe-area-inset-left, 0px)); }
  body.gl .rb-stop { align-items: flex-end; justify-content: flex-end; }
  body.gl .rb-txt, body.gl .rb-r .rb-txt { width: 100%; margin: 0; padding: 80px max(var(--g), env(safe-area-inset-left, 0px)) 40px;
    background: linear-gradient(180deg, rgba(7, 44, 37, 0), rgba(7, 44, 37, .9) 45%); }
  .rb-ib { flex-direction: column; align-items: flex-start; }
}
body.gl.on-hero .hdr:not(.solid) { background: linear-gradient(180deg, rgba(7, 44, 37, .92), rgba(7, 44, 37, 0)); }
