/* Greg Althoff — Portfolio 2026
   Paper, ink and six overprint colours. Type: Archivo (variable width), JetBrains Mono, Instrument Serif. */

:root {
  --paper: #edeae2;
  --paper-2: #e2dfd6;
  --ink: #131311;
  --blue: #2b33ff;
  --red: #ef3e2d;
  --yellow: #f2ce1b;
  --green: #0fa352;
  --pink: #f4b8d3;
  --cyan: #1fb3e6;
  --neon: #2cf57a;
  --accent: var(--yellow);
  --on-accent: var(--ink);

  --pad: clamp(16px, 2.6vw, 44px);
  --gap: clamp(10px, 1.2vw, 20px);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-io: cubic-bezier(0.7, 0, 0.3, 1);

  --sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.4;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, h4, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.mono {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 400;
}
.dim { opacity: 0.5; }
.display {
  font-family: var(--sans);
  font-stretch: 62%;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.84;
  letter-spacing: -0.005em;
}
.skip { position: fixed; left: 8px; top: -60px; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 14px; }
.skip:focus { top: 8px; }

/* ───────────── top bar ───────────── */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: grid; grid-template-columns: 3fr 3fr 4fr 2fr; gap: var(--gap); align-items: baseline;
  padding: 16px var(--pad);
  color: #fff; mix-blend-mode: difference;
  pointer-events: none;
}
.bar > * { pointer-events: auto; }
.bar-name { font-stretch: 62%; font-weight: 900; text-transform: uppercase; font-size: 20px; letter-spacing: 0.01em; line-height: 1; }
.bar-nav { display: flex; gap: 22px; justify-content: flex-end; }
.bar-nav a, .foot a, .ext { position: relative; }
.bar-nav a::after, .foot a::after, .ext::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease);
}
.bar-nav a:hover::after, .foot a:hover::after, .ext:hover::after { transform: scaleX(1); transform-origin: left; }

/* ───────────── cursor ───────────── */
.cursor, .cursor-label { position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none; opacity: 0; }
.cursor {
  width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
  border: 1.5px solid #fff; mix-blend-mode: difference;
  transition: opacity 0.3s, width 0.35s var(--ease), height 0.35s var(--ease), margin 0.35s var(--ease), background 0.3s;
}
.cursor.is-on { opacity: 1; }
.cursor.is-hot { width: 10px; height: 10px; margin: -5px 0 0 -5px; background: #fff; }
.cursor-label {
  background: var(--ink); color: var(--paper); padding: 8px 12px 7px; border-radius: 99px; white-space: nowrap;
  transition: opacity 0.25s, scale 0.35s var(--ease); scale: 0.4; transform-origin: 0 0;
}
.cursor-label.is-on { opacity: 1; scale: 1; }
@media (hover: none), (pointer: coarse) { .cursor, .cursor-label { display: none; } }

/* ───────────── reveal primitives ───────────── */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }

/* Images: a blurred preview shows at once, the sharp image fades in when it is loaded AND on screen
   (main.js adds .ok). <picture> is layout-transparent so the img behaves as the container's child. */
picture { display: contents; }
.phd { position: relative; isolation: isolate; overflow: hidden; background-color: var(--paper-2); }
.phd::before {
  content: ''; position: absolute; inset: -6%; z-index: -1;
  background: var(--ph, none) center / cover no-repeat;
  filter: blur(22px) saturate(1.15); transform: scale(1.08);
  transition: opacity 0.6s linear;
}
.phd.done::before { opacity: 0; }
.js .fade { opacity: 0; transition: opacity 1.1s var(--ease), transform 1.8s var(--ease); }
.js .phd .fade { transform: scale(1.045); }
.js .fade.ok { opacity: 1; transform: none; }
/* JS drives these transforms (parallax / page scans), so only fade opacity. */
.js .plate-media .fade, .js .scan-frame .fade { transition: opacity 1.1s var(--ease); }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.09em 0.02em 0.04em; margin: -0.09em -0.02em -0.04em; }
.w > span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.in .w > span { transform: none; }
.word { opacity: 0.14; transition: opacity 0.35s linear; }
.word.on { opacity: 1; }

/* ───────────── hero: the sea ─────────────
   A line-engraved sea drawn on the GPU (src/ocean.js). The text colours flip between ink and
   paper as the sky changes hour, so they stay readable from midnight to noon. */
.sea {
  --sea-fg-sky: var(--ink); --sea-fg-sea: var(--ink);
  position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: var(--paper);
  color: var(--sea-fg-sky); touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.sea.ready { transition: color 0.6s; }
.moire { position: absolute; pointer-events: none; }
.sea-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sea.sky-hover { cursor: ew-resize; }
.sea.scrub { cursor: grabbing; }
/* The real heading. Hidden as type while the canvas carries the name; shown if WebGL or JS is unavailable. */
.sea-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; font: inherit; }
html:not(.js) .sea-name, .sea.no-gl .sea-name {
  left: var(--pad); right: var(--pad); top: 52%; width: auto; height: auto; clip-path: none; overflow: visible;
  font-family: var(--sans); font-stretch: 62%; font-weight: 900; font-size: 18vw; line-height: 0.8; text-transform: uppercase; color: var(--blue);
}
.sea-copy { position: absolute; z-index: 2; left: var(--pad); top: 84px; max-width: min(30em, 56vw); pointer-events: none; }
.sea-tags { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-bottom: 16px; opacity: 0.8; }
.sea-tags .dim { font-style: normal; opacity: 0.65; }
.sea-statement { font-size: clamp(20px, 2.1vw, 34px); line-height: 1.06; letter-spacing: -0.02em; font-weight: 500; max-width: 15em; }
.sea-now { position: absolute; z-index: 2; right: var(--pad); top: 84px; display: grid; justify-items: end; gap: 6px; text-align: right; pointer-events: none; }
.sea-now b { font-weight: 500; }
.sea-phase { font-size: clamp(28px, 3.4vw, 54px); line-height: 0.9; letter-spacing: 0; margin: 2px 0 6px; }
.sea-live { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px 5px; border: 1px solid currentColor; border-radius: 99px; pointer-events: auto; }
.sea-live i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: 0.4; }
.sea-live.is-live i { background: var(--red); opacity: 1; animation: sea-pulse 1.6s ease-in-out infinite; }
@keyframes sea-pulse { 50% { opacity: 0.25; } }
.sea-foot {
  position: absolute; z-index: 2; left: var(--pad); right: var(--pad); bottom: 24px; display: grid; grid-template-columns: 5fr 4fr 3fr; gap: var(--gap);
  color: var(--sea-fg-sea); pointer-events: none;
}
.sea.ready .sea-foot { transition: color 0.6s; }
.sea-scroll { text-align: right; }
.sea-scroll i { display: inline-block; font-style: normal; animation: bob 1.6s var(--ease-io) infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }

/* ───────────── about / mediums ───────────── */
.about { background: var(--ink); color: var(--paper); padding: clamp(90px, 18vh, 220px) var(--pad) clamp(70px, 12vh, 160px); }
.about-copy { display: grid; grid-template-columns: 3fr 9fr; gap: var(--gap); }
.about-text {
  font-size: clamp(28px, 4.6vw, 84px); line-height: 1; letter-spacing: -0.025em; font-weight: 500; font-stretch: 88%;
  max-width: 17em;
}
.about-lower { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 5vw, 90px); align-items: end; margin-top: clamp(70px, 14vh, 180px); }
.orbit svg { width: 100%; overflow: visible; }
.orbit ellipse, .orbit-line, .orbit-dash { fill: none; stroke: currentColor; stroke-width: 0.8; opacity: 0.55; vector-effect: non-scaling-stroke; }
.orbit-dash { stroke-dasharray: 2 5; }
.orbit-dot { fill: var(--neon); }
.orbit-labels text { font-size: 8.5px; fill: currentColor; letter-spacing: 0.04em; }
.orbit figcaption { margin-top: 18px; opacity: 0.5; }
.mediums-label { margin-bottom: 14px; }
.mediums li { border-top: 1px solid rgb(237 234 226 / 0.22); }
.mediums li:last-child { border-bottom: 1px solid rgb(237 234 226 / 0.22); }
.mediums a { display: grid; grid-template-columns: 44px 1fr auto; align-items: baseline; padding: 12px 0 10px; transition: color 0.3s, padding 0.5s var(--ease); }
.mediums-name { font-size: clamp(34px, 5.2vw, 92px); transition: font-stretch 0.5s var(--ease), letter-spacing 0.5s var(--ease); }
.mediums a:hover { color: var(--neon); padding-left: 14px; }
.mediums a:hover .mediums-name { font-stretch: 90%; }

/* ───────────── featured work — horizontal track ───────────── */
.work { position: relative; height: calc(100vh + var(--travel, 220vw)); background: var(--paper); }
.work-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.work-track {
  --ph: min(58vh, 38vw);
  display: flex; align-items: center; gap: clamp(40px, 7vw, 130px); height: 100%; width: max-content;
  padding: 40px 8vw 0 var(--pad); will-change: transform;
}
.work-intro { flex: 0 0 auto; width: min(36vw, 560px); display: flex; flex-direction: column; gap: 22px; }
.work-intro h2 { font-size: clamp(64px, 15vh, 190px); }
.work-arrow { display: inline-block; font-style: normal; margin-left: 10px; animation: nudge 1.6s var(--ease-io) infinite; }
@keyframes nudge { 50% { transform: translateX(8px); } }
.plate { flex: 0 0 auto; width: calc(var(--ph) * 1.62); }
.plate > a { display: block; }
.plate-media { position: relative; height: var(--ph); }
.plate-block { position: absolute; inset: 0; background: var(--accent); transform: translate(16px, 16px); transition: transform 0.6s var(--ease); }
.plate-media figure { position: absolute; inset: 0; overflow: hidden; background: var(--paper-2); }
.plate-media img { position: absolute; left: -8%; top: 0; width: 116%; max-width: none; height: 100%; object-fit: cover; will-change: transform; }
.plate-seal { position: absolute; right: -5vh; top: -5vh; width: 15vh; transition: transform 0.8s var(--ease); }
.plate a:hover .plate-block { transform: translate(28px, 28px); }
.plate a:hover .plate-seal { transform: rotate(90deg) scale(1.08); }
.plate-info { display: grid; grid-template-columns: auto 1fr; gap: 12px 20px; align-items: baseline; margin-top: 34px; }
.plate-title { grid-column: 1 / -1; grid-row: 2; font-size: clamp(40px, 8.4vh, 108px); white-space: nowrap; }
.plate-scope { text-align: right; }
.work-outro { flex: 0 0 auto; width: min(34vw, 520px); display: flex; flex-direction: column; gap: 22px; }
.work-outro .display { font-size: clamp(64px, 15vh, 190px); transition: color 0.3s; }
.work-outro:hover .display { color: var(--blue); }
.work-progress { position: absolute; left: var(--pad); right: var(--pad); bottom: 18px; height: 1px; background: rgb(19 19 17 / 0.18); }
.work-progress i { display: block; height: 3px; margin-top: -1px; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); }

/* ───────────── trust ───────────── */
.trust { background: var(--blue); color: var(--paper); padding: clamp(90px, 18vh, 220px) 0 0; overflow: clip; }
.trust-head { display: grid; grid-template-columns: 3fr 4fr 5fr; gap: var(--gap); padding: 0 var(--pad); }
.trust-text { font-size: 17px; max-width: 24em; }
.trust-quote {
  font-family: var(--serif); font-size: clamp(36px, 6.2vw, 112px); line-height: 0.98; letter-spacing: -0.015em;
  padding: clamp(50px, 9vh, 120px) var(--pad) 0; max-width: 15.5em;
}
.trust-who { display: flex; align-items: center; gap: 14px; padding: clamp(28px, 5vh, 60px) var(--pad) 0; }
.trust-who img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.trust-who p { display: grid; gap: 3px; }
.logos { display: flex; margin-top: clamp(70px, 14vh, 170px); border-top: 1px solid rgb(237 234 226 / 0.35); padding: 34px 0; width: max-content; }
.logos ul { display: flex; align-items: center; gap: clamp(44px, 6vw, 110px); padding-right: clamp(44px, 6vw, 110px); animation: marquee 46s linear infinite; }
.logos img { height: clamp(26px, 3.2vw, 46px); width: auto; max-width: 150px; object-fit: contain; filter: brightness(0) invert(1); opacity: 0.92; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ───────────── index ───────────── */
.index { background: var(--paper); padding: clamp(90px, 18vh, 220px) 0 0; }
.index-head { display: grid; grid-template-columns: 3fr 9fr; gap: 26px var(--gap); padding: 0 var(--pad) clamp(40px, 7vh, 90px); }
.index-head h2 { font-size: clamp(54px, 10.4vw, 200px); }
.index-note { grid-column: 2; font-size: clamp(18px, 1.5vw, 24px); max-width: 26em; line-height: 1.25; }
.filters { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.filters button { border: 1px solid var(--ink); border-radius: 99px; padding: 9px 14px 8px; transition: background 0.3s, color 0.3s; }
.filters button sup { opacity: 0.55; font-size: 0.85em; margin-left: 3px; }
.filters button:hover { background: rgb(19 19 17 / 0.08); }
.filters button.on { background: var(--ink); color: var(--paper); }
.index-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.cell {
  position: relative; display: grid; grid-template-rows: auto 1fr auto; aspect-ratio: 1 / 1.16; padding: 14px 16px 16px;
  background: #efeeeb; color: var(--ink); transition: background 0.4s, opacity 0.5s var(--ease), filter 0.5s;
}
.cell:nth-child(odd) { background: #dfe0e3; }
.cell-no { grid-row: 1; }
.cell-ico { position: absolute; right: 16px; top: 8px; font-size: 22px; font-weight: 300; line-height: 1; transition: transform 0.5s var(--ease); }
.cell-seal { position: relative; align-self: center; justify-self: center; width: 64%; aspect-ratio: 1; }
.seal { width: 100%; height: 100%; overflow: visible; }
.seal-flower, .seal-spokes { transform-box: fill-box; transform-origin: center; transition: transform 0.9s var(--ease); }
.cell-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  clip-path: circle(0% at 50% 50%); transition: clip-path 0.65s var(--ease-io);
}
.cell-cap { display: grid; gap: 3px; min-height: 2.9em; align-content: end; }
.cell-cap b { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.cell-cap { min-width: 0; }
.cell-cap span { opacity: 0; transform: translateY(6px); transition: opacity 0.35s, transform 0.5s var(--ease); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell:hover, .cell:focus-visible { background: #fbfaf7; }
.cell:hover .cell-ico { transform: rotate(90deg); }
.cell:hover .seal-flower { transform: rotate(90deg) scale(0.9); }
.cell:hover .seal-spokes { transform: rotate(-45deg); }
.cell:hover .cell-img, .cell:focus-visible .cell-img { clip-path: circle(50% at 50% 50%); }
.cell:hover .cell-cap span, .cell:focus-visible .cell-cap span { opacity: 0.6; transform: none; }
.cell.is-off { opacity: 0.16; filter: grayscale(1); pointer-events: none; }
.cell--you { color: var(--ink); }
.cell--you:hover { background: var(--yellow); }

/* ───────────── contact + footer ───────────── */
.contact {
  position: relative; background: var(--green); color: var(--ink); overflow: clip;
  min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; gap: 30px;
  padding: clamp(80px, 14vh, 160px) var(--pad) clamp(40px, 8vh, 90px);
}
.contact-moire { right: -12vw; top: 50%; width: min(86vw, 120vh); aspect-ratio: 1; translate: 0 -50%; }
.contact-label, .contact-title, .contact-actions { position: relative; }
.contact-title { font-size: clamp(52px, 10.4vw, 210px); align-self: center; max-width: min(9.2em, 100%); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  justify-self: start; display: inline-flex; align-items: center; gap: 18px;
  background: var(--ink); color: var(--paper); border-radius: 99px; padding: 22px 30px 21px 34px;
  font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.03em;
  transition: background 0.35s, color 0.35s, padding 0.5s var(--ease);
}
.btn i { font-style: normal; font-size: 18px; transition: transform 0.5s var(--ease); }
.btn:hover { background: var(--paper); color: var(--ink); padding-right: 40px; }
.btn:hover i { transform: rotate(45deg); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--ink); color: #fff; }
.btn--light:hover i { transform: translateX(4px); }
.btn-email { text-transform: none; letter-spacing: 0.01em; }
.foot {
  background: var(--ink); color: var(--paper); display: grid; grid-template-columns: 3fr 3fr 2fr 2fr 2fr; gap: var(--gap);
  padding: 44px var(--pad) 38px; align-items: end;
}
.foot-seal { width: 64px; }
.foot-social { display: grid; gap: 6px; justify-items: start; }
.foot-top { justify-self: end; }

/* ───────────── case study ───────────── */
.case-head { position: relative; padding: 110px var(--pad) 0; }
.case-top { display: grid; grid-template-columns: 3fr 3fr 6fr; gap: var(--gap); padding-bottom: clamp(40px, 9vh, 110px); }
.case-seal { position: absolute; right: var(--pad); top: 96px; width: clamp(84px, 11vw, 170px); }
.case-title { font-size: clamp(60px, 15.5vw, 300px); margin-bottom: clamp(30px, 6vh, 70px); max-width: 100%; }
.case-title--long { font-size: clamp(44px, 8.6vw, 170px); }
.case-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); border-top: 1px solid var(--ink); padding: 14px 0 clamp(30px, 6vh, 70px); }
.case-meta div, .meta div { display: grid; gap: 6px; align-content: start; }
.case-meta dd, .meta dd { font-size: 16px; line-height: 1.25; max-width: 20em; }
.case-hero { overflow: hidden; }
.case-hero img { width: 100%; }
.case-hero.video video, .blk-video video { width: 100%; max-height: 92vh; background: var(--ink); }

.blk { padding: 0 var(--pad); margin: clamp(60px, 13vh, 170px) 0; }
.blk-text, .blk-chapter .blk-text { display: grid; grid-template-columns: 4fr 7fr 1fr; gap: var(--gap); }
.blk-chapter .blk-text { padding: 0; margin: 0; }
.blk-label { display: grid; gap: 8px; align-content: start; justify-items: start; }
.blk-label h2 { font-weight: 500; }
.ext { margin-top: 12px; }
.blk-body { display: grid; gap: 1.05em; font-size: clamp(17px, 1.35vw, 22px); line-height: 1.42; max-width: 40em; }
.blk-body p:first-child { font-size: 1.45em; line-height: 1.16; letter-spacing: -0.015em; font-weight: 500; margin-bottom: 0.3em; }
.blk-heading h2 { font-size: clamp(40px, 7.4vw, 140px); border-top: 1px solid var(--ink); padding-top: 18px; }
.blk-heading { margin-bottom: clamp(-130px, -9vh, -30px); }
/* minmax(0, 1fr): without it the grid column grows to the images' intrinsic width after the
   row heights are already sized, so images overflow down over the next section. */
.blk-gallery { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); }
.rows { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); }
.row { display: flex; gap: var(--gap); width: 100%; min-width: 0; max-width: var(--maxw, 100%); margin-inline: auto; }
.row figure { flex: var(--r) 1 0; min-width: 0; aspect-ratio: var(--r); overflow: hidden; }
.row img { width: 100%; height: 100%; object-fit: cover; }

.phones {
  display: flex; gap: clamp(12px, 1.6vw, 26px); overflow-x: auto; scrollbar-width: none;
  margin: 0 calc(var(--pad) * -1); padding: 6px var(--pad); cursor: grab;
}
.phones::-webkit-scrollbar { display: none; }
.phones.is-drag { cursor: grabbing; }
.phones--few { justify-content: safe center; cursor: auto; }
.phone { flex: 0 0 clamp(170px, 17vw, 270px); border-radius: clamp(16px, 1.6vw, 28px); overflow: hidden; border: 1px solid rgb(19 19 17 / 0.14); background: #fff; }
.phone img { width: 100%; pointer-events: none; user-select: none; }

.scan { height: 260vh; margin: 0 calc(var(--pad) * -1); }
.scan-pin { position: sticky; top: 0; height: 100vh; display: flex; gap: var(--gap); align-items: center; justify-content: center; padding: 0 var(--pad); }
.scan-frame {
  position: relative; flex: 1 1 0; min-width: 0; max-width: 1100px; height: 80vh; overflow: hidden; border-radius: 10px;
  background: #fff; border: 1px solid rgb(19 19 17 / 0.16); box-shadow: 0 30px 60px -40px rgb(19 19 17 / 0.5);
}
.scan-frame--narrow { flex: 0 0 min(24vw, 37vh); }
.scan-frame img { width: 100%; height: auto; max-width: none; will-change: transform; }
.scan-bar { position: absolute; right: 5px; top: 5px; width: 3px; height: 22%; border-radius: 3px; background: rgb(19 19 17 / 0.55); transform: translateY(calc(var(--p, 0) * 340%)); }
.scan-hint { position: absolute; left: 0; right: 0; bottom: 3.2vh; text-align: center; opacity: 0.5; }

.blk-quote { background: var(--accent); color: var(--on-accent); padding-block: clamp(70px, 15vh, 200px); }
.blk-quote blockquote { font-family: var(--serif); font-size: clamp(32px, 5.4vw, 100px); line-height: 1; letter-spacing: -0.015em; max-width: 16em; }
.blk-quote .word { opacity: 0.22; }
.blk-quote .word.on { opacity: 1; }

.blk-chapter { margin-top: clamp(110px, 22vh, 280px); }
.chapter-head { display: grid; grid-template-columns: 4fr 8fr; gap: var(--gap); align-items: end; border-top: 3px solid var(--ink); padding-top: 18px; margin-bottom: clamp(36px, 7vh, 90px); }
.chapter-head h2, .chapter-no { font-size: clamp(48px, 9.4vw, 180px); }
.chapter-no { color: var(--accent); -webkit-text-stroke: 0; }
.meta { gap: 22px; }

.blk-insights { display: grid; grid-template-columns: 4fr 8fr; gap: var(--gap); }
.insights { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.insights li { border-top: 1px solid var(--ink); padding-top: 12px; display: grid; gap: 10px; align-content: start; }
.insights h3 { font-size: clamp(20px, 1.9vw, 30px); line-height: 1.05; letter-spacing: -0.02em; font-weight: 600; }
.insights p { font-size: 15px; opacity: 0.75; }
.personas { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 40px); }
.persona figure { margin-bottom: 22px; background: var(--paper-2); }
.persona h3 { border-top: 1px solid var(--ink); padding-top: 10px; margin: 20px 0 10px; font-weight: 500; }
.persona li { position: relative; padding-left: 16px; font-size: 15px; line-height: 1.35; margin-bottom: 7px; }
.persona li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); outline: 1px solid var(--ink); }

.next {
  position: relative; display: grid; grid-template-columns: 3fr 9fr; gap: 18px var(--gap); align-items: end;
  border-top: 1px solid var(--ink); padding: clamp(50px, 10vh, 130px) var(--pad); margin-top: clamp(80px, 16vh, 200px);
  transition: background 0.5s var(--ease), color 0.5s;
}
.next-title { font-size: clamp(54px, 12vw, 240px); grid-column: 2; }
.next > .mono:last-child { grid-column: 2; }
.next-seal { position: absolute; right: var(--pad); top: clamp(30px, 6vh, 70px); width: clamp(70px, 9vw, 140px); transition: transform 0.9s var(--ease); }
.next:hover { background: var(--accent); color: var(--on-accent); }
.next:hover .next-seal { transform: rotate(120deg) scale(1.1); }

/* ───────────── page transitions ───────────── */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 0.45s var(--ease-io) both vt-out; }
::view-transition-new(root) { animation: 0.7s var(--ease-io) both vt-in; }
@keyframes vt-out { to { opacity: 0.4; transform: translateY(-4vh); } }
@keyframes vt-in { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }

/* ───────────── responsive ───────────── */
@media (max-width: 1100px) {
  .index-grid { grid-template-columns: repeat(4, 1fr); }
  .bar { grid-template-columns: 1fr auto auto; }
  .bar-role { display: none; }
}
@media (max-width: 820px) {
  body { font-size: 16px; }
  .bar { grid-template-columns: 1fr auto; }
  .bar-loc { display: none; }
  .bar-nav { gap: 16px; }

  .sea-copy { max-width: 62vw; }
  .sea-statement { font-size: 21px; }
  .sea-tags { display: none; }
  .sea-now { top: auto; bottom: 60px; color: var(--sea-fg-sea); }
  .sea-phase { font-size: 30px; }
  .sea-live { pointer-events: auto; }
  .sea-foot { grid-template-columns: 1fr auto; bottom: 20px; }
  .sea-foot span:nth-child(2) { display: none; }

  .about-copy, .about-lower, .trust-head, .index-head, .blk-text, .blk-chapter .blk-text, .blk-insights, .chapter-head, .next { grid-template-columns: 1fr; }
  .index-note, .filters, .next-title, .next > .mono:last-child { grid-column: 1; }
  .about-lower { gap: 60px; }
  .orbit { max-width: 420px; }

  .work { height: auto !important; }
  .work-sticky { position: static; height: auto; overflow: visible; }
  .work-track { --ph: auto; flex-direction: column; align-items: stretch; width: auto; gap: 64px; padding: 90px var(--pad); transform: none !important; }
  .work-intro, .work-outro, .plate { width: auto; }
  .work-intro h2, .work-outro .display { font-size: 22vw; }
  .work-arrow { rotate: 90deg; }
  .plate-media { height: auto; aspect-ratio: 1.62; }
  .plate-block { transform: translate(10px, 10px); }
  .plate-seal { width: 76px; right: -8px; top: -30px; }
  .plate-info { margin-top: 26px; }
  .plate-title { white-space: normal; font-size: 15vw; }
  .work-progress { display: none; }

  .index-grid { grid-template-columns: repeat(2, 1fr); }
  .cell-cap span { opacity: 0.6; transform: none; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); scrollbar-width: none; }
  .filters button { flex: 0 0 auto; }

  .foot { grid-template-columns: 1fr 1fr; gap: 28px var(--gap); }
  .foot-top { justify-self: start; }

  .case-head { padding-top: 92px; }
  .case-top { grid-template-columns: 1fr auto auto; }
  .case-seal { position: static; margin-bottom: 22px; width: 84px; }
  .case-meta { grid-template-columns: 1fr 1fr; gap: 20px var(--gap); }
  .row { flex-wrap: wrap; max-width: 100%; }
  .row figure { flex: 1 1 100%; }
  .insights, .personas { grid-template-columns: 1fr; }
  .persona { margin-bottom: 30px; }
  .scan { height: auto; margin: 0; }
  .scan-pin { position: static; height: auto; flex-direction: column; padding: 0; }
  .scan-frame, .scan-frame--narrow { flex: 0 0 auto; width: 100%; height: 72vh; }
  .scan-frame--narrow { width: 62%; }
  .scan-hint { position: static; }
  .phone { flex-basis: 56vw; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .rv, .w > span { opacity: 1; transform: none; }
  .js .phd .fade { transform: none; }
  .word { opacity: 1; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
