/* Gastangel_ — portfolio
   Palette, type pairing and motion curve follow the landonorris.com language:
   dark navy, cool grey, magenta; a wide grotesk against a light condensed serif. */

:root {
  --green: #121a33;
  --green-1: #2a3350;
  --green-2: #59607a;
  --olive: #a9adba;
  --cream: #f1f2f5;
  --cream-2: #e7e9ee;
  --line-light: #d3d6df;
  --line-dark: #2b3556;
  --lime: #f72d9a;
  --lime-off: #c2127a;
  --black: #0b1022;

  --sans: "Mona Sans", "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;

  --pad: clamp(16px, 1.6vw, 32px);
  --side-wide: clamp(24px, 6vw, 140px); /* roomier side margins for the archive and featured project */
  --ease: cubic-bezier(0.65, 0.05, 0, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.75s;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--green);
  color: var(--cream);
  font: 400 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
em { font-style: normal; }
::selection { background: var(--lime); color: var(--black); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.defs { position: absolute; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; padding: 10px 14px; background: var(--lime); color: var(--black); font-weight: 600; }
.skip:focus { top: 16px; }

/* The two voices: wide grotesk capitals and a light condensed serif */
.sans { font-family: var(--sans); font-weight: 700; font-stretch: 112%; text-transform: uppercase; letter-spacing: -0.02em; }
.serif { font-family: var(--serif); font-weight: 400; text-transform: uppercase; letter-spacing: -0.01em; }

/* Contour background */
.topo { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; color: var(--line-light); z-index: 0; }
[data-tone="light"] > .topo, .marq-pin > .topo, .foot-card > .topo, .menu > .topo, .project > .topo { color: var(--line-dark); }

/* ── Buttons ── */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 10px;
  background: var(--lime); color: var(--black);
  font: 700 13px/1 var(--sans); font-stretch: 110%; text-transform: uppercase; letter-spacing: 0.01em;
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform 0.4s var(--ease), color 0.3s;
}
.pill svg { width: 14px; height: 14px; flex: none; transition: transform 0.5s var(--ease); }
.pill::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--black); transform: translateY(101%); transition: transform 0.5s var(--ease); }
.pill:hover { color: var(--lime); }
.pill:hover::before { transform: none; }
.pill:hover svg { transform: rotate(45deg); }
.pill:active { transform: scale(0.96); }

.round {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--lime); color: var(--black);
  transition: transform 0.5s var(--ease), background-color 0.3s;
}
.round svg { width: 14px; height: 14px; }
.round:hover { transform: rotate(45deg) scale(1.08); }
.round:active { transform: scale(0.92); }

/* ── Navigation ── */
.nav {
  position: fixed; z-index: 90; top: 0; left: 0; right: 0;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: start;
  padding: var(--pad); pointer-events: none;
  color: var(--green); transition: color 0.4s var(--ease);
}
.nav > * { pointer-events: auto; }
.nav.on-dark { color: var(--cream); }
/* wordmark: a heavy wide grotesk first half against a light condensed serif second half */
.wordmark { justify-self: start; display: flex; align-items: baseline; font-size: 30px; line-height: 1; padding-top: 12px; white-space: nowrap; }
/* same cap height as the grotesk: Instrument Serif and Mona Sans capitals measure ~0.735 em vs ~0.739 em */
.wordmark .serif, .hm-name .serif { font-size: 1.005em; letter-spacing: -0.01em; }
.wordmark .sans, .hm-name .sans { font-weight: 800; font-stretch: 118%; letter-spacing: -0.03em; }
.wm-u { color: var(--lime); }
.hero-mark { display: none; }
.nav .pill { height: 56px; padding: 0 24px; gap: 10px; border-radius: 14px; font-size: 17px; }
.nav .pill svg { width: 18px; height: 18px; }
.nav-logo { width: 30px; transition: transform 0.6s var(--ease); }
.nav-logo:hover { transform: rotate(-12deg) scale(1.1); }
.nav-right { grid-column: 3; display: flex; gap: 10px; justify-self: end; }
.burger {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-content: center; gap: 6px;
  background: var(--cream); color: var(--green); box-shadow: inset 0 0 0 1px currentColor;
  transition: background-color 0.3s, color 0.3s;
}
.nav.on-dark .burger { background: transparent; color: var(--cream); }
.burger span { display: block; width: 22px; height: 2px; background: currentColor; transition: transform 0.5s var(--ease), width 0.5s var(--ease); }
.burger span:last-child { width: 14px; justify-self: end; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { width: 22px; transform: translateY(-4px) rotate(-45deg); }
.menu-open .nav { color: var(--cream); }
.menu-open .burger { background: transparent; color: var(--cream); }

/* ── Menu ── */
.menu {
  position: fixed; inset: 0; z-index: 80; background: var(--green); color: var(--cream);
  display: flex; flex-direction: column; justify-content: center; padding: 110px var(--pad) var(--pad);
  clip-path: circle(0% at calc(100% - 44px) 44px); visibility: hidden;
  transition: clip-path 0.9s var(--ease), visibility 0s 0.9s;
}
.menu.open { clip-path: circle(150% at calc(100% - 44px) 44px); visibility: visible; transition: clip-path 0.9s var(--ease), visibility 0s; }
.menu-links { position: relative; display: grid; gap: 0.02em; }
.menu-links a { position: relative; display: inline-grid; overflow: hidden; font-size: min(9vw, 12svh); line-height: 0.95; }
.menu-links a > span { grid-area: 1 / 1; transition: transform 0.7s var(--ease); }
.menu-links .serif { color: var(--lime); transform: translateY(105%); }
.menu-links a:hover .sans, .menu-links a:focus-visible .sans { transform: translateY(-105%); }
.menu-links a:hover .serif, .menu-links a:focus-visible .serif { transform: none; }
.menu li { transform: translateY(60px); opacity: 0; transition: transform 0.9s var(--ease), opacity 0.6s; }
.menu.open li { transform: none; opacity: 1; }
.menu.open li:nth-child(2) { transition-delay: 0.06s; }
.menu.open li:nth-child(3) { transition-delay: 0.12s; }
.menu.open li:nth-child(4) { transition-delay: 0.18s; }
.menu.open li:nth-child(5) { transition-delay: 0.24s; }
.menu-foot { position: relative; margin-top: auto; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.menu-foot a:hover { color: var(--lime); }

/* ── 1. Hero ── */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: var(--cream); color: var(--green); }
.face {
  position: absolute; left: 50%; bottom: 0; z-index: 2;
  height: min(114svh, 150vw); aspect-ratio: 1197 / 1314;
  transform: translateX(-50%);
}
.face-img { position: absolute; inset: 0; width: 100%; height: 100%; will-change: transform; transform-origin: 50% 80%;
  -webkit-mask: linear-gradient(90deg, transparent 1%, #000 14%, #000 86%, transparent 99%); mask: linear-gradient(90deg, transparent 1%, #000 14%, #000 86%, transparent 99%); }
.hero-gl { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }
.hero.gl-on .face-img, .hero.gl-on > .topo { visibility: hidden; }
.hero.gl-on .face { animation: none; }
.js .face { animation: face-in 1.4s var(--ease) 0.15s both; }
@keyframes face-in { from { translate: 0 18%; opacity: 0; } to { translate: 0 0; opacity: 1; } }
.hero-card {
  position: absolute; z-index: 3; left: var(--pad); bottom: var(--pad); width: 360px;
  padding: 21px; border-radius: 17px; background: rgba(241, 242, 245, 0.86); box-shadow: inset 0 0 0 1px var(--line-light);
}
.js .hero-card { animation: up 1s var(--ease) 0.9s both; }
.hc-top { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.dot { width: 11px; height: 11px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px rgba(247, 45, 154, 0.3); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(247, 45, 154, 0); } }
.hero-card h1 { display: grid; gap: 0.08em; margin: 15px 0 9px; line-height: 1; }
.hero-card h1 .serif { font-size: 39px; }
.hero-card h1 .sans { font-size: 32px; font-weight: 800; }
.hc-role { font-size: 16.5px; line-height: 1.35; color: var(--green-2); }
.hero-scroll {
  position: absolute; z-index: 3; right: var(--pad); bottom: var(--pad);
  font: 600 11px/1 var(--sans); text-transform: uppercase; letter-spacing: 0.08em;
  writing-mode: vertical-rl; display: flex; align-items: center; gap: 10px;
}
/* lock button: touch screens only */
.lock { display: none; position: absolute; z-index: 4; right: var(--pad); bottom: var(--pad);
  flex-direction: row; align-items: center; gap: 10px; color: #fff; -webkit-tap-highlight-color: transparent; }
.lock-label { font: 700 9px/1 var(--sans); text-transform: uppercase; letter-spacing: 0.06em; color: #fff; }
.lock-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--lime); color: var(--black);
  transition: transform 0.3s var(--ease); }
.lock:active .lock-icon { transform: scale(0.92); }
.lock svg { grid-area: 1 / 1; width: 24px; height: 24px; transition: opacity 0.25s, transform 0.4s var(--ease); }
.lock .i-close, .lock[aria-pressed="true"] .i-hand { opacity: 0; transform: scale(0.6) rotate(-30deg); }
.lock[aria-pressed="true"] .i-close { opacity: 1; transform: none; }
.lock .i-hand { animation: nudge 2.4s var(--ease) infinite; }
@keyframes nudge { 0%, 70%, 100% { translate: 0 0; } 80% { translate: 0 -3px; } 90% { translate: 0 1px; } }
html.hero-locked .hero { touch-action: none; }
html.hero-locked .hero-card { opacity: 0.4; transition: opacity 0.4s; }
@media (hover: none) { .lock { display: flex; } }
.hero-scroll::after { content: ""; width: 1px; height: 48px; background: currentColor; animation: drip 1.8s var(--ease) infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@keyframes up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ── Hero → marquee hand-off: hero, marquee and signature are three pinned layers of one stage (.flow = JS on, motion allowed) ── */
.intro { position: relative; }
.hero-zoom { position: absolute; inset: 0; }
/* Hero wordmark: "GAST" in the widest, heaviest Mona Sans, behind the portrait (the WebGL canvas is transparent
   around the head, so the letters show on both sides and the head covers the middle) */
.hero-word {
  position: absolute; z-index: 1; left: 0; right: 0; top: 22%; margin: 0; text-align: center; pointer-events: none;
  font: 900 26vw/0.8 var(--sans); font-stretch: 125%; letter-spacing: -0.045em; text-transform: uppercase; color: var(--green);
}
.js .hero-word { animation: word-in 1.3s var(--ease) 0.1s both; }
@keyframes word-in { from { opacity: 0; translate: 0 12%; } to { opacity: 1; translate: 0 0; } }
/* frosted glass panels over the letters: blur what is behind, thin light edge, cut corner */
.glass {
  position: absolute; z-index: 3; pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.14));
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.7); box-shadow: inset 0 0 0 1px rgba(18, 26, 51, 0.08), 0 10px 40px rgba(18, 26, 51, 0.08);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}
.glass--tr { right: 9vw; top: 27%; width: 15vw; height: 17vw; }
.glass--bl { left: 5vw; top: calc(22% + 13vw); width: 19vw; height: 8vw; }
.glass-hatch { position: absolute; right: 10px; top: 30%; width: 6px; height: 40%; background: repeating-linear-gradient(-45deg, rgba(18, 26, 51, 0.55) 0 2px, transparent 2px 5px); }
.glass-tag { position: absolute; left: 12px; bottom: 10px; font: 600 9px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: rgba(18, 26, 51, 0.6); }
.js .glass { animation: up 1s var(--ease) 0.7s both; }

.flow .intro { --hh: max(100svh, 560px); }
.flow .intro .hero { position: sticky; top: 0; z-index: 5; }
.flow .intro .marq { margin-top: calc(-1 * var(--hh)); height: calc(var(--hh) + 200svh); }
.flow .intro .m-photo { visibility: hidden; }
.flow .sig-track { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.flow .sig-layer { position: sticky; top: 0; height: 100svh; overflow: hidden; }

/* ── 2. Marquee + signature ── */
.marq { position: relative; height: 210svh; background: var(--green); }
.marq-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; align-content: center; }
/* phones: when the browser bar slides away the screen is taller than 100svh; let the lines reach the real bottom */
.marq-pin { overflow: clip visible; }
.marq-pin > .topo, .marq-pin > .topo-gl { bottom: auto; height: 100lvh; }
.m-row { position: relative; z-index: 1; white-space: nowrap; line-height: 0.86; }
.m-track { display: inline-flex; will-change: transform; }
.m-serif { color: var(--lime); font-size: clamp(64px, 11vw, 200px); }
.m-sans { color: var(--cream); font-size: clamp(56px, 9.6vw, 176px); }
.m-row span { padding-right: 0.25em; }
.m-photo {
  position: absolute; z-index: 2; left: 50%; top: 50%; width: min(32vw, 56svh); aspect-ratio: 4 / 3;
  transform: translate(-50%, -50%); overflow: hidden; background: var(--green-1);
}
.m-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; filter: grayscale(1) contrast(1.05); }
.sig { position: absolute; z-index: 3; pointer-events: none; }
.sig i {
  display: block; width: 100%; height: 100%; background: var(--lime);
  -webkit-mask: url("assets/signature.png") center / contain no-repeat; mask: url("assets/signature.png") center / contain no-repeat;
  clip-path: inset(-5% calc(100% - var(--draw, 0) * 100%) -5% 0);
}
.sig-big { left: 50%; top: 50%; width: min(70vw, 120svh); aspect-ratio: 900 / 423; transform: translate(-46%, -58%) rotate(-6deg); }

/* ── 3. Statement ── */
.state { position: relative; padding: 18svh var(--pad) 22svh; background: var(--green); text-align: center; }
.state-badge { position: relative; display: grid; justify-items: center; gap: 20px; margin-bottom: 7svh; font: 600 11px/1 var(--sans); text-transform: uppercase; letter-spacing: 0.08em; color: var(--olive); }
.state-emblem { width: 66px; height: auto; overflow: visible; }
.state-text {
  position: relative; max-width: 15.5em; margin: 0 auto;
  font: 700 clamp(38px, 6.2vw, 112px)/1.14 var(--sans); font-stretch: 112%; text-transform: uppercase; letter-spacing: -0.02em; color: var(--cream);
}
.state-text em { font-family: var(--serif); font-weight: 400; font-stretch: normal; color: var(--lime); letter-spacing: -0.01em; font-size: 1.08em; }
/* statement.js: the section pins while the line forms from dots, then each line wipes in on a slant (.state--fx) */
.state-pin { position: relative; }
.state-wrap { position: relative; z-index: 2; }
.state-dots { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; display: none; }
.state--fx { height: 230svh; padding: 0; }
.state--fx .state-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; place-items: center; padding: 0 var(--pad); }
.state--fx .state-dots { display: block; position: fixed; }
.state--fx .state-text { max-width: none; will-change: transform; }
.state--fx .state-badge { will-change: transform, opacity; }
.st-ln { display: block; width: max-content; margin-inline: auto; white-space: nowrap; }
.js [data-words] .w { opacity: 0.14; transition: opacity 0.3s linear; }
.js [data-words] .w.on { opacity: 1; }

/* ── 4. Scattered gallery ── */
.scatter { position: relative; height: 285vh; background: var(--green); color: var(--cream); overflow: hidden; }
.scatter > .topo { color: var(--line-dark); transition: color 0.3s; }
.scatter.is-light > .topo { color: rgba(18, 26, 51, 0.16); }
.sc { position: absolute; left: var(--x); top: var(--y); width: var(--w); z-index: 1; will-change: transform; }
.sc button { display: block; width: 100%; overflow: hidden; }
.sc img { width: 100%; transition: transform 0.9s var(--ease), filter 0.6s; filter: grayscale(0.15); }
.sc button:hover img { transform: scale(1.06); filter: none; }
.sc figcaption { position: relative; margin-top: 8px; font: 500 11px/1.2 var(--sans); text-transform: uppercase; letter-spacing: 0.03em; opacity: 0.85; }
.sc .tag { position: absolute; left: 0; top: calc(-1 * (var(--w) * 0) - 13px); width: 32px; height: 5px; background: var(--lime); }
.sc { --tagtop: 0; }
.sc::before { content: ""; position: absolute; left: 0; top: -13px; width: 32px; height: 5px; background: var(--lime); }
.sc .tag { display: none; }
.sc-text { position: absolute; z-index: 2; left: 34%; top: 104vh; width: 34vw; }
.hl { font: 400 clamp(17px, 1.45vw, 26px)/1.35 var(--serif); }
.hl span { padding: 0 0.12em; background: linear-gradient(var(--lime), var(--lime)) left / var(--hl, 0%) 100% no-repeat; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: color 0.3s; }
.hl span.lit { color: var(--black); }
.sig-small { position: relative; width: 90px; aspect-ratio: 900 / 423; margin-top: 18px; }
.sig-small i { background: currentColor; }

/* ── 5. On paper / On screen ── */
.split { position: relative; height: 100svh; min-height: 640px; overflow: hidden; background: var(--cream); color: var(--green); }
.split-img { position: absolute; z-index: 1; top: 0; height: 100%; width: 30vw; object-fit: cover; transition: transform 1.4s var(--ease), opacity 1s; }
.split-l { left: 0; object-position: 30% 50%; }
.split-r { right: 0; object-position: 50% 50%; }
.js .split:not(.in) .split-l { transform: translateX(-60%); opacity: 0; }
.js .split:not(.in) .split-r { transform: translateX(60%); opacity: 0; }
.split-cols { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; grid-template-columns: 1fr 1fr; gap: 3vw; width: 36vw; }
.split-col { position: relative; }
.split-col h2 { display: grid; line-height: 0.82; }
.split-col h2 .serif { font-size: clamp(40px, 4.6vw, 86px); }
.split-col h2 .sans { font-size: clamp(30px, 3.4vw, 64px); font-weight: 800; }
.split-col p { max-width: 24ch; margin: 18px 0 16px; font-size: 13px; line-height: 1.4; font-weight: 500; }
.scribble { position: absolute; left: -16%; top: -18%; width: 70%; overflow: visible; pointer-events: none; mix-blend-mode: multiply; }
.scribble path { fill: none; stroke: var(--lime); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 0.9s var(--ease); }
.split-col:hover .scribble path, .split.in .split-cols:not(:hover) .split-col:first-child .scribble path { stroke-dashoffset: 0; }

/* ── 6. Full-bleed picture ── */
.bleed { position: relative; height: 110svh; overflow: hidden; background: var(--black); }
.bleed img { width: 100%; height: calc(100% + 26svh); object-fit: cover; transform: translate3d(0, var(--y, 0px), 0) scale(var(--s, 1)); transform-origin: 50% 0; will-change: transform; }

/* ── 7. Archive ── */
/* the grid stays clear of the fixed header buttons on wide screens (like landonorris.com): ~340px kept free on each side */
:root { --grid-w: 78vw; }
@media (min-width: 1500px) { :root { --grid-w: min(73vw, calc(100vw - 680px)); } }
.archive { position: relative; padding: 140px var(--side-wide) 160px; background: var(--black); color: var(--cream); }
.ar-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: nowrap; max-width: var(--grid-w); margin: 0 auto 80px; }
.ar-head h2 { display: grid; line-height: 1; flex-shrink: 0; }
.ar-head h2 .sans { font-size: clamp(44px, 5.5vw, 104px); font-weight: 800; }
.ar-head h2 .serif { font-size: clamp(48px, 6vw, 112px); color: var(--lime); }
.ar-side { max-width: clamp(420px, 36vw, 720px); display: grid; gap: 20px; }
.ar-side p { font-size: 14px; color: var(--olive); }
.filters { display: flex; flex-wrap: wrap; gap: clamp(7px, 0.6vw, 12px); }
.chip {
  height: clamp(40px, 2.6vw, 50px); padding: 0 clamp(14px, 1vw, 20px); border-radius: 10px; box-shadow: inset 0 0 0 1px var(--green-2);
  font: 600 clamp(14px, 0.9vw, 17px)/1 var(--sans); text-transform: uppercase; letter-spacing: 0.02em;
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.chip sup { font-size: 0.7em; margin-left: 2px; }
.chip:hover { box-shadow: inset 0 0 0 1px var(--lime); }
.chip[aria-pressed="true"] { background: var(--lime); color: var(--black); box-shadow: none; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.1vw, 22px); max-width: var(--grid-w); margin-inline: auto; padding-bottom: 14vw; }
.card { position: relative; transition: transform 0.9s var(--ease), opacity 0.7s; }
.card.lo { transform: translateY(var(--lo, 50%)); }
.card[hidden] { display: none; }
.card button {
  position: relative; display: grid; gap: 14px; width: 100%; padding: 14px; text-align: left;
  border: 1px solid var(--green-1); clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  transition: border-color 0.4s, background-color 0.4s;
}
.card button::after { content: ""; position: absolute; right: -4px; top: 8px; width: 26px; height: 1px; background: var(--green-1); transform: rotate(45deg); transition: background-color 0.4s; }
.card-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--green-1);
  /* the image keeps its own cut corner, parallel to the frame's (18px cut, inset by the card padding p: 18 + p*1.414 - 2p) */
  --cut: 10px; clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.card-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font: 600 11px/1.25 var(--sans); text-transform: uppercase; letter-spacing: 0.03em; }
.card-cat { color: var(--lime); text-align: right; }
.card button:hover, .card button:focus-visible { border-color: var(--lime); background: rgba(247, 45, 154, 0.04); }
.card button:hover::after { background: var(--lime); }
.card button:hover .card-img img { transform: scale(1.07); }
.js .card.pre { opacity: 0; translate: 0 40px; }
.card { transition: transform 0.9s var(--ease), opacity 0.7s, translate 0.9s var(--ease); }
.ar-more-wrap { display: flex; justify-content: center; margin: 8px 0 120px; }
.ar-more-wrap:has(.ar-more[hidden]) { display: none; }
.ar-more { height: clamp(46px, 3vw, 56px); padding: 0 clamp(18px, 1.3vw, 26px); gap: 10px; border-radius: 12px; font-size: clamp(14px, 0.95vw, 18px); }
.ar-more svg { width: clamp(15px, 1vw, 19px); height: clamp(15px, 1vw, 19px); }
.ar-foot { display: grid; justify-items: center; gap: 18px; text-align: center; }
.ar-foot .serif { font-size: clamp(28px, 3vw, 48px); text-transform: none; }

/* ── 8. Featured project ── */
.feature { position: relative; min-height: 100svh; padding: 140px calc((100% - var(--grid-w)) / 2) 100px; /* same edges as the works grid */ overflow: hidden; background: var(--cream); color: var(--green); display: grid; grid-template-columns: 5fr 7fr; gap: 3vw; align-items: center; }
.ft-text { position: relative; z-index: 2; display: grid; justify-items: start; gap: 22px; }
.ft-label { display: flex; align-items: center; gap: 8px; font: 600 11px/1 var(--sans); text-transform: uppercase; letter-spacing: 0.06em; }
.ft-label img { width: 16px; }
.ft-text h2 { display: grid; line-height: 1; }
.ft-text h2 .sans { font-size: clamp(54px, 5.8vw, 132px); font-weight: 800; white-space: nowrap; }
.ft-text h2 .serif { font-size: clamp(56px, 6vw, 136px); }
.ft-text > p { max-width: 44ch; font-size: clamp(16px, 1.1vw, 21px); line-height: 1.5; }
.ft-text .pill { height: clamp(46px, 3vw, 56px); padding: 0 clamp(18px, 1.3vw, 26px); gap: 10px; border-radius: 12px; font-size: clamp(14px, 0.95vw, 18px); }
.ft-text .pill svg { width: clamp(15px, 1vw, 19px); height: clamp(15px, 1vw, 19px); }
.ft-pics { position: relative; z-index: 1; height: 82svh; }
.fp { position: absolute; object-fit: cover; will-change: transform; }
.fp-1 { left: 0; top: 4%; width: 62%; aspect-ratio: 16 / 9; }
.fp-2 { right: 2%; top: 0; width: 30%; aspect-ratio: 4 / 5; }
.fp-3 { left: 14%; bottom: 2%; width: 48%; aspect-ratio: 16 / 9; }
.fp-4 { right: 0; bottom: 12%; width: 34%; aspect-ratio: 16 / 10; }

/* ── 9. Clients ── */
/* layout measured from landonorris.com "Partners & Campaigns": u = their fluid rem (viewport / 108, capped) */
.clients {
  --u: calc(min(100vw, 1548px) / 108);
  position: relative; isolation: isolate; padding: calc(var(--u) * 20) 0; background: var(--cream); color: var(--green); overflow: hidden;
}
.cl-head {
  position: relative; z-index: 2; max-width: 1548px; margin: 0 auto; padding: 0 calc(var(--u) * 1.25);
  display: grid; grid-template-columns: repeat(4, 1fr); column-gap: calc(var(--u) * 1.25); align-items: start;
}
.cl-head h2 { grid-column: 1 / 3; display: grid; line-height: 1; }
.cl-head h2 .sans { font-size: calc(var(--u) * 4.5); font-weight: 800; }
.cl-head h2 .serif { font-size: calc(var(--u) * 4.69); }
.cl-head p { grid-column: 3; font-size: calc(var(--u) * 1.25); line-height: 1.25; max-width: calc(var(--u) * 25); }
/* the handwritten word behind the title, written on as the section scrolls in (script.js sets --draw) */
.cl-word {
  position: absolute; z-index: -1; left: max(0px, calc(50% - 774px)); top: calc(var(--u) * 4);
  width: calc(var(--u) * 79.6); height: calc(var(--u) * 49.9); pointer-events: none;
  display: grid; place-items: center;
}
.cl-word span {
  display: block; font: 400 calc(var(--u) * 23.5)/1 "Nothing You Could Do", cursive; color: var(--lime);
  -webkit-text-stroke: calc(var(--u) * 1.5) var(--lime); paint-order: stroke fill; white-space: nowrap;
  transform: translate(calc(var(--u) * -10), calc(var(--u) * 0)) rotate(-30deg);
  clip-path: inset(-30% calc((1 - var(--draw, 0)) * 102%) -30% -5%);
}
.logos { position: relative; z-index: 2; max-width: 1548px; margin: calc(var(--u) * 8) auto 0; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.logos-track { display: flex; align-items: center; gap: calc(var(--u, 9.48px) * 7); width: max-content; animation: slide 46s linear infinite; }
.logos:hover .logos-track { animation-play-state: paused; }
.lg { white-space: nowrap; font-size: 26px; line-height: 1; transition: color 0.3s; }
.lg:hover { color: var(--green-2); }
.lg0 { font: 800 24px/1 var(--sans); font-stretch: 120%; text-transform: uppercase; letter-spacing: -0.02em; }
.lg1 { font: italic 400 34px/1 var(--serif); }
.lg2 { font: 300 28px/1 var(--sans); letter-spacing: -0.03em; text-transform: lowercase; }
.lg3 { font: 700 26px/1 var(--sans); font-stretch: 78%; text-transform: uppercase; letter-spacing: 0.04em; }
/* client logos: real artwork in greyscale so the set reads as one; pale single-colour marks (.mono) are flattened to grey */
.logos .lg { position: relative; display: block; flex: none; }
.logos .lg img { display: block; height: auto; max-width: none; filter: grayscale(1) contrast(1.1); opacity: 0.62; transition: opacity 0.3s, filter 0.3s; }
.logos .lg img.mono { filter: brightness(0); opacity: 0.55; }
.logos .lg:hover img, .logos .lg:hover img.mono { opacity: 1; filter: none; }
/* a logo whose grey version is its own file: the colour file sits on top and fades in on hover */
.logos .lg img.hover-colour { position: absolute; inset: 0; width: 100%; height: 100%; filter: none; opacity: 0; }
.logos .lg:hover img.hover-colour { opacity: 1; }
.logos .lg:hover img.has-hover { opacity: 0; }
@keyframes slide { to { transform: translateX(calc(-50% - 36px)); } }

/* ── 10. Socials fan: tall phone-shaped cards fanned around their bottom edge ── */
.contact { position: relative; min-height: 100svh; padding: 64px var(--pad) 90px; background: var(--cream); color: var(--green); text-align: center; display: grid; justify-items: center; align-content: center; overflow: hidden; }
.ct-icon { width: 50px; height: auto; margin-bottom: 30px; color: var(--green); overflow: visible; }
.contact h2 { display: grid; line-height: 1; }
.contact h2 .sans { font-size: clamp(38px, 3.6vw, 76px); font-weight: 800; }
.contact h2 .serif { font-size: clamp(42px, 4vw, 84px); }
.contact { --w: clamp(150px, min(18.5vw, 30svh), 300px); }
/* geometry from landonorris.com: card 20 × 35 units, fan box 36 units tall; socials.js drives the transforms */
.fan { position: relative; width: 100%; height: calc(var(--w) * 1.8); margin: clamp(30px, 3vw, 56px) 0 0; }
.fc {
  position: absolute; left: calc(50% - var(--w) / 2); top: calc(var(--w) * 0.025); width: var(--w); height: calc(var(--w) * 1.75);
  overflow: clip; border-radius: calc(var(--w) * 0.1658); background: var(--cream-2); transform-origin: 50% 50%;
  transform: translate(0, calc(var(--w) * 0.5)); will-change: transform;
}
html:not(.js) .fc { transform: translateX(calc(var(--i) * var(--w) * 0.5)) rotate(calc(var(--i) * 7deg)); }
.fc img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; user-select: none; }
.ct-line { position: relative; z-index: 20; margin-top: calc(var(--w) * 0.26 + 16px); font: 400 clamp(24px, 2.1vw, 40px)/1.2 var(--serif); letter-spacing: 0.01em; }
.ct-links { display: flex; gap: clamp(26px, 2vw, 40px); margin-top: 24px; font: 800 clamp(16px, 1.1vw, 21px)/1 var(--sans); font-stretch: 85%; text-transform: uppercase; letter-spacing: 0.02em; }
.ct-links a { transition: color 0.3s; }
.ct-links a:hover { color: var(--lime-off); }

/* ── 11. Footer: card with a tab on top and a foot reaching the page bottom (outline drawn by foot.js) ── */
.foot {
  --side: clamp(16px, 12.5vw, 340px);
  position: relative; min-height: max(100svh, 760px); display: flex; flex-direction: column;
  padding: 17svh var(--side) 0; color: var(--cream);
  background: linear-gradient(180deg, var(--cream) 4%, #f9a6d2 34%, var(--lime) 78%);
}
.foot-card {
  --tab: 40px; --ext: 30px; --r: 40px;
  position: relative; z-index: 1; flex: 1; min-height: 640px; overflow: hidden;
  border-radius: 40px; background: var(--green);
}
.foot-card.shaped { border-radius: 0; }
.foot-title { position: absolute; z-index: 2; left: 0; right: 0; top: 19%; text-align: center; pointer-events: none; }
.foot-title p { font-size: clamp(30px, 3vw, 76px); line-height: 0.9; }
.foot-title .sans { font-weight: 800; }
.foot-title .serif { font-size: 1.14em; color: var(--lime); }
.sig-foot { position: absolute; left: 50%; top: 0; width: clamp(110px, 10vw, 260px); aspect-ratio: 900 / 423; transform: translate(-72%, -62%) rotate(-8deg); }
.foot-logos { position: absolute; z-index: 1; left: 0; right: 0; bottom: calc(var(--ext) + 22px); overflow: hidden; color: var(--lime); -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.foot-logos .logos-track { gap: 64px; animation-duration: 60s; }
.foot-logos .lg { font-size: 22px; }
.foot-face { position: absolute; z-index: 1; left: 50%; bottom: 0; height: 80%; translate: -50% 0; pointer-events: none; }
.foot-face img { height: 100%; width: auto; max-width: none; }
.foot-cols { position: absolute; z-index: 2; left: 0; right: 0; top: 55%; }
.foot-cols > div { position: absolute; top: 0; translate: -50% 0; display: grid; justify-items: center; text-align: center; }
.foot-cols .l { left: 16%; }
.foot-cols .r { left: 84%; }
.foot-label { font: 600 10px/1 var(--sans); text-transform: uppercase; letter-spacing: 0.06em; color: var(--olive); margin-bottom: 14px; }
.foot-cols ul { list-style: none; padding: 0; display: grid; gap: 0; font: 800 clamp(16px, 1.35vw, 30px)/1.08 var(--sans); font-stretch: 78%; text-transform: uppercase; white-space: nowrap; }
.foot-more { color: var(--lime); }
/* footer links and all text buttons (fx.js): letters roll up one by one and a copy rolls in from below (landonorris.com text-hover: 0.6s power3.out, 0.02s stagger) */
.foot-cols a { display: inline-block; }
.fx-line { display: inline-block; vertical-align: top; line-height: 1.08; clip-path: inset(-0.15em -0.1em 0 -0.1em); }
.fx-ch { display: inline-block; white-space: pre; text-shadow: 0 1.08em currentColor; transition: transform 0.6s cubic-bezier(0.215, 0.61, 0.355, 1); transition-delay: calc(var(--n) * 20ms); }
:is(a, button):hover .fx-ch, :is(a, button):focus-visible .fx-ch { transform: translateY(-1.08em); }
.fx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .fx-ch { transition: none; } }
/* back-to-top arrow, fixed on the right; shows after the hero, rises above the footer bar */
.to-top {
  position: fixed; z-index: 70; right: var(--pad); bottom: 28px; width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; overflow: hidden; isolation: isolate;
  background: var(--lime); color: var(--black); box-shadow: 0 10px 30px -12px rgba(11, 16, 34, 0.5);
  opacity: 0; translate: 0 16px; pointer-events: none;
  transition: opacity 0.4s var(--ease), translate 0.6s var(--ease), bottom 0.5s var(--ease), color 0.3s;
}
.to-top.show { opacity: 1; translate: 0 0; pointer-events: auto; }
.to-top.lift { bottom: 64px; }
.menu-open .to-top { opacity: 0; pointer-events: none; }
.to-top::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--black); transform: translateY(101%); transition: transform 0.5s var(--ease); }
.to-top svg { width: 20px; height: 20px; transition: transform 0.5s var(--ease); }
.to-top:hover { color: var(--lime); }
.to-top:hover::before { transform: none; }
.to-top:hover svg { transform: translateY(-3px); }
.to-top:active { scale: 0.94; }
@media (max-width: 900px) { .to-top { width: 44px; height: 44px; border-radius: 12px; bottom: 18px; } .to-top.lift { bottom: 18px; } }
.foot-more { margin-top: 1.4em; font: 800 clamp(14px, 1.1vw, 24px)/1 var(--sans); font-stretch: 78%; text-transform: uppercase; }
.foot-more:hover { color: var(--cream); }
.foot-cta { position: absolute; z-index: 3; left: 50%; bottom: 20px; translate: -50% 0; }
.foot-bar {
  position: absolute; z-index: 2; left: var(--side); right: var(--side); bottom: 0; height: 30px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font: 600 10px/1.2 var(--sans); text-transform: uppercase; letter-spacing: 0.04em; color: var(--green);
}
.foot-bar p { white-space: nowrap; }

/* ── Project view ── */
.project { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--green); color: var(--cream); overflow: auto; overscroll-behavior: contain; }
.project::backdrop { background: rgba(11, 16, 34, 0.7); }
.project[open] { animation: pj-in 0.8s var(--ease); }
@keyframes pj-in { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }
.project > .topo { position: fixed; }
.pj-bar { position: sticky; top: 0; z-index: 3; display: flex; justify-content: space-between; padding: var(--pad); }
.pj-nav { display: flex; gap: 8px; }
.pj-title { position: relative; display: grid; padding: 30px var(--pad) 0; line-height: 0.86; }
.pj-title .sans { font-size: clamp(40px, 6vw, 110px); font-weight: 800; }
.pj-title .serif { font-size: clamp(36px, 4.6vw, 86px); color: var(--lime); }
.pj-body { position: relative; display: grid; grid-template-columns: 4fr 8fr; gap: 3vw; padding: 48px var(--pad) 120px; }
.pj-text { position: sticky; top: 100px; align-self: start; display: grid; justify-items: start; gap: 22px; }
.pj-kind { font: 600 11px/1 var(--sans); text-transform: uppercase; letter-spacing: 0.06em; color: var(--lime); }
.pj-desc { font-size: 15px; line-height: 1.6; }
.pj-link[hidden] { display: none; }
.pj-imgs { display: grid; gap: var(--pad); }
.pj-imgs img { width: 100%; background: var(--green-1); }
.pj-imgs.narrow { grid-template-columns: 1fr 1fr; }

/* ── Entrances ── */
.js .rise { opacity: 0; transform: translateY(40px); transition: opacity 0.9s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js .rise.in { opacity: 1; transform: none; }

/* ── Tablet and phone ── */
@media (max-width: 900px) {
  .wordmark { font-size: 22px; padding-top: 4px; transition: opacity 0.4s var(--ease), translate 0.4s var(--ease); }
  html:not(.menu-open) .nav .wordmark { opacity: 0; translate: 0 -8px; pointer-events: none; }
  .hero { --head: max(18svh, 118px); }
  .hero-mark { display: grid; justify-items: center; gap: 9px; position: absolute; z-index: 3; left: 0; right: 0; bottom: calc(100svh - var(--head) + 14px);
    color: var(--green); pointer-events: none; }
  .hm-name { display: flex; align-items: baseline; font-size: 30px; line-height: 1; white-space: nowrap; }
  .hm-sub { font: 700 9px/1 var(--sans); font-stretch: 110%; text-transform: uppercase; letter-spacing: 0.08em; }
  .js .hero-mark { animation: up 1s var(--ease) 0.5s both; }
  /* phones: the big GAST sits at eye level behind the head; no glass panels; the card keeps only the role */
  .hero-word { top: calc(var(--head) + 15svh); font-size: 33vw; }
  .glass { display: none; }
  .hc-more { display: none; }
  .nav .pill { height: 32px; padding: 0 11px; gap: 7px; font-size: 10px; border-radius: 9px; }
  .nav .pill svg { width: 13px; height: 13px; }
  .nav-right { gap: 7px; }
  .nav .burger { width: 32px; height: 32px; border-radius: 9px; gap: 4px; }
  .nav .burger span { width: 15px; }
  .nav .burger span:last-child { width: 10px; }
  .nav .burger[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
  .nav .burger[aria-expanded="true"] span:last-child { width: 15px; transform: translateY(-3px) rotate(-45deg); }
  .nav-logo { display: none; }
  /* phones: Let's talk on the left, the name in the middle (once the hero is scrolled away), the menu on the right */
  .nav { grid-template-columns: 1fr auto 1fr; grid-template-areas: "talk mark menu"; align-items: center; }
  .nav-right { display: contents; }
  .nav .pill { grid-area: talk; justify-self: start; }
  .nav .wordmark { grid-area: mark; justify-self: center; padding-top: 0; font-size: 18px; }
  .nav .burger { grid-area: menu; justify-self: end; }
  .pill { height: 38px; padding: 0 13px; font-size: 12px; }

  /* phones: a bigger head that sits high, its top just under the name (--head down the screen) */
  .face { height: min(105svh, 205vw); bottom: min(0px, calc(100svh - var(--head) - min(105svh, 205vw) * 0.805)); }
  .hero-card { width: auto; max-width: 190px; bottom: var(--pad); padding: 12px 14px; border-radius: 12px; }
  .hc-top { font-size: 10px; gap: 8px; }
  .dot { width: 8px; height: 8px; }
  .hero-card h1 { margin: 8px 0 5px; }
  .hero-card h1 .serif { font-size: 24px; }
  .hero-card h1 .sans { font-size: 19px; }
  .hc-role { font-size: 11px; }
  .hero-scroll { display: none; }
  
  .marq { height: 170svh; }
  .flow .intro .marq { height: calc(var(--hh) + 170svh); }
  .m-photo { width: 62vw; }
  .sig-big { width: 96vw; }

  .state { padding: 14svh var(--pad) 16svh; }
  .state--fx { height: 200svh; padding: 0; }

  .scatter { height: auto; padding: 120px var(--pad) 90px; display: grid; grid-template-columns: 1fr 1fr; gap: 54px 14px; align-items: start; }
  .sc { position: relative; left: auto; top: auto; width: auto; }
  .sc:nth-of-type(even) { margin-top: 70px; }
  .sc:nth-of-type(n+9) { display: none; }
  .sc-text { position: relative; left: auto; top: auto; width: auto; grid-column: 1 / -1; order: 4; padding: 30px 0; }
  .hl { font-size: 22px; }

  .split { height: auto; min-height: 0; padding: 120px var(--pad) 0; display: grid; }
  .split-cols { position: relative; left: auto; top: auto; transform: none; width: auto; grid-template-columns: 1fr; gap: 56px; }
  .split-col h2 .serif { font-size: 50px; }
  .split-col h2 .sans { font-size: 46px; }
  .split-img { position: relative; width: 100%; height: 60svh; margin-top: 60px; }
  .split-l { display: none; }

  .bleed { display: none; }

  .archive { padding: 110px var(--pad) 64px; }
  .ar-more-wrap { margin: 32px 0 0; }
  .ar-head { margin-bottom: 48px; }
  /* phones: an even grid like landonorris.com, no offset column; cards in a row share one height */
  .cards { grid-template-columns: 1fr 1fr; gap: 10px; max-width: none; padding-bottom: 0; }
  .ar-head { max-width: none; flex-wrap: wrap; }
  .card.lo { transform: none; }
  .card button { height: 100%; align-content: start; }
  .card button { padding: 8px; gap: 10px; }
  .card-img { --cut: 13px; }
  .card-meta { flex-direction: column; gap: 4px; font-size: 10px; }
  .card-cat { text-align: left; }

  .feature { grid-template-columns: 1fr; padding: 110px var(--pad) 80px; }
  .ft-pics { height: 70svh; }

  .clients { padding: 110px 0 90px; }
  .clients { --u: calc(100vw / 40); padding: calc(var(--u) * 10) 0; }
  .cl-head { grid-template-columns: 1fr; row-gap: calc(var(--u) * 2); }
  .cl-head h2, .cl-head p { grid-column: 1; }
  .cl-head p { font-size: 14px; max-width: 32ch; }
  .cl-word { height: calc(var(--u) * 30); }
  .cl-word { left: 0; width: 100vw; top: calc(var(--u) * 4); }
  .cl-word span { font-size: calc(var(--u) * 12); -webkit-text-stroke-width: calc(var(--u) * 0.85); transform: translate(calc(var(--u) * 2), calc(var(--u) * 3)) rotate(-30deg); }
  .logos-track { gap: 44px; }
  .logos .lg { zoom: 0.72; }

  .contact { min-height: 0; padding: 100px var(--pad) 28px; }
  .contact { --w: min(34vw, 160px); }
  .ct-links { flex-wrap: wrap; justify-content: center; }

  .foot { --side: var(--pad); padding-top: 72px; min-height: auto; }
  .foot-card { --tab: 28px; --ext: 0px; --r: 26px; flex: none; height: 640px; min-height: 0; border-radius: 26px; }
  .foot-title { top: 10%; }
  .foot-title p { font-size: clamp(28px, 8vw, 50px); }
  .sig-foot { width: 120px; }
  .foot-cols { top: 28%; }
  .foot-cols .l { left: 27%; }
  .foot-cols .r { left: 73%; }
  .foot-cols ul { font-size: 20px; }
  .foot-face { height: 385px; }
  .foot-logos { bottom: 92px; }
  .foot-cta { bottom: 24px; }
  .foot-bar { position: static; height: auto; flex-direction: column; align-items: center; text-align: center; padding: 14px 0 16px; gap: 4px; }
  .foot-bar p { white-space: normal; }

  .pj-body { grid-template-columns: 1fr; }
  .pj-text { position: static; }
  .pj-imgs.narrow { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .m-track, .logos-track, .dot, .hero-scroll::after { animation: none !important; }
  .js .face, .js .hero-card, .project[open] { animation: none; }
  .js .rise { opacity: 1; transform: none; }
  .js [data-words] .w { opacity: 1; }
  .sig i { clip-path: none; }
  .cl-word span { clip-path: none; }
  .js .split:not(.in) .split-img { transform: none; opacity: 1; }
  .js .card.pre { opacity: 1; translate: none; }
}

/* ── On line / Off line: two columns, a cut-out portrait on each edge, a hand-drawn word on hover ── */
.onoff { --p: 1; position: relative; min-height: 100svh; display: grid; place-items: center; padding: 16svh var(--pad); background: var(--cream); color: var(--green); overflow: hidden; }
.oo-photo { position: absolute; bottom: 0; z-index: 1; height: min(92svh, 58vw); width: auto; max-width: none; pointer-events: none; --h: 0%;
  transition: transform 0.9s var(--ease-out), opacity 0.6s var(--ease-out), filter 0.6s var(--ease-out); will-change: transform; }
.oo-photo--on { left: 0; transform: translate3d(calc(-36% - (1 - var(--p)) * 34% + var(--h)), 0, 0); }
.oo-photo--off { right: 0; transform: translate3d(calc(36% + (1 - var(--p)) * 34% - var(--h)), 0, 0) scaleX(-1); }
.onoff[data-active="on"] .oo-photo--on, .onoff[data-active="off"] .oo-photo--off { --h: 5%; }
.onoff[data-active="on"] .oo-photo--off, .onoff[data-active="off"] .oo-photo--on { --h: -7%; opacity: 0.55; filter: grayscale(1); }

.oo-grid { position: relative; z-index: 2; display: grid; grid-template-columns: auto auto; column-gap: clamp(48px, 6.5vw, 130px); }
.oo-col { display: grid; align-content: start; gap: 0; }
.oo-col--on { justify-items: end; text-align: right; }
.oo-col--off { justify-items: start; text-align: left; }
.oo-title { display: grid; font-size: clamp(56px, 6.8vw, 140px); line-height: 0.84; }
.oo-col--on .oo-title { justify-items: end; }
.oo-title .serif { font-size: 1.16em; line-height: 0.78; }
.oo-title .sans { font-weight: 800; font-stretch: 105%; letter-spacing: -0.035em; }
.oo-word { position: relative; display: inline-block; }
.oo-scrib { position: absolute; left: -22%; top: -95%; width: 150%; height: auto; overflow: visible; pointer-events: none; }
.oo-scrib path { fill: none; stroke: var(--lime); stroke-width: 10; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 0.45s var(--ease); }
.onoff[data-active="on"] .oo-col--on .oo-scrib path, .onoff[data-active="off"] .oo-col--off .oo-scrib path { stroke-dashoffset: 0; transition-duration: 0.9s; transition-timing-function: var(--ease-out); }
.oo-text { max-width: 22ch; margin-top: clamp(36px, 4.4vw, 64px); font: 500 clamp(16px, 1.2vw, 22px)/1.3 var(--sans); letter-spacing: -0.005em; }
.oo-btn { display: grid; place-items: center; width: clamp(56px, 3.6vw, 70px); aspect-ratio: 1; margin-top: clamp(22px, 2vw, 32px); border-radius: 8px; background: var(--lime); color: var(--black);
  transition: transform 0.4s var(--ease-out), background-color 0.3s; }
.oo-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.4s var(--ease-out); }
.oo-btn:hover { background: var(--lime-off); }
.oo-col--on .oo-btn:hover svg { transform: translateX(-3px); }
.oo-col--off .oo-btn:hover svg { transform: translateX(3px); }
.oo-btn:active { transform: scale(0.94); }

/* touch screens: both words are drawn once the section is in view */
@media (hover: none) {
  .onoff.in-view .oo-scrib path { stroke-dashoffset: 0; transition-duration: 1s; transition-timing-function: var(--ease-out); }
  .onoff.in-view .oo-col--off .oo-scrib path { transition-delay: 0.35s; }
}
@media (max-width: 900px) {
  /* phones: the two columns stay side by side (like landonorris.com), portraits large at the bottom */
  .onoff { place-items: start center; padding: 112px var(--pad) 54svh; }
  .oo-grid { grid-template-columns: 1fr 1fr; column-gap: 26px; width: 100%; }
  .oo-title { font-size: 14vw; }
  .oo-text { max-width: 17ch; margin-top: 16px; font-size: 14px; line-height: 1.25; }
  .oo-btn { width: 36px; margin-top: 16px; border-radius: 6px; }
  .oo-btn svg { width: 17px; height: 17px; }
  /* close-up: heads fill the lower half, faces cut by the screen edges and the chest cut by the section bottom */
  .oo-photo { --ph: min(69svh, 150vw); height: var(--ph); bottom: calc(var(--ph) * -0.14); }
  .oo-photo--on { transform: translate3d(calc(-50% - (1 - var(--p)) * 30%), 0, 0); }
  .oo-photo--off { transform: translate3d(calc(50% + (1 - var(--p)) * 30%), 0, 0) scaleX(-1); }
}
@media (prefers-reduced-motion: reduce) {
  .oo-photo, .oo-scrib path { transition: none; }
}
/* the contour lines drift like the hero's (onoff.js draws them on a canvas; the SVG stays as the fallback) */
.oo-gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.onoff.gl-on > .topo { visibility: hidden; }
.topo-gl { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.gl-on > .topo-gl ~ .topo, .gl-on > .topo:has(+ .topo-gl) { visibility: hidden; }

/* On line / Off line pins in place; the full-bleed picture slides up over it */
.oo-stack { position: relative; }
.oo-stack > .onoff { position: sticky; top: 0; z-index: 0; }
.oo-stack > .bleed { z-index: 1; }

/* ── Load screen (loader.js): pink panel, the G in the middle, a small label; the G opens into a window onto the page ── */
html.is-loading { overflow: hidden; }
.loader { display: none; }
.js .loader { display: block; position: fixed; inset: 0; z-index: 9999; animation: ld-safe 0s 7s forwards; }
@keyframes ld-safe { to { visibility: hidden; pointer-events: none; } }
.loader svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ld-panel { position: absolute; inset: 0; background: var(--lime); }
.ld-mark { fill: var(--black); opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(0.55) rotate(-10deg); transition: opacity 0.45s var(--ease-out), transform 1s cubic-bezier(0.34, 1.56, 0.64, 1); }
.loader.in .ld-mark { opacity: 1; transform: none; }
.loader.open .ld-mark { opacity: 0; transition: opacity 0.12s; }
.ld-label { position: absolute; left: 0; right: 0; bottom: 22px; margin: 0; text-align: center; font: 700 10px/1 var(--sans); font-stretch: 110%; letter-spacing: 0.08em; text-transform: uppercase; color: var(--black); opacity: 0; transition: opacity 0.5s 0.25s; }
.loader.in .ld-label { opacity: 1; }
.loader.open .ld-label { opacity: 0; transition: opacity 0.2s; }
.loader.fade { opacity: 0; transition: opacity 0.4s; }

/* light sections overlap by 1px so the dark page background never shows through a sub-pixel seam on phones */
.archive + .feature, .feature + .clients, .clients + .contact, .foot { margin-top: -1px; }
