/* ==========================================================================
   SEO Cork — styles
   Paper, ink and the gold of the Shandon fish. One bold accent, lots of air.
   ========================================================================== */

:root {
  --paper: #F1ECE2;
  --paper-2: #E7DFCF;
  --ink: #151514;
  --ink-2: #2B2A27;
  --muted: #6B665C;
  --gold: #EAAA2C;
  --gold-2: #F6CD6A;
  --on-gold: #121211; /* text on yellow */
  --lee: #123D33;

  --c-ink: var(--ink);
  --c-paper: var(--paper);

  --f-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --f-serif: "Instrument Serif", ui-serif, Georgia, serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --radius: 18px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-display);
  font-size: clamp(16px, 1.05vw + 10px, 19px);
  line-height: 1.55;
  font-variation-settings: "opsz" 16;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: .98; letter-spacing: -.035em; }
h2 em, h1 em, .manifesto-text em, .cta h2 em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
}
p { margin: 0; }
::selection { background: var(--gold); color: var(--on-gold); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 22px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }

.js [data-split], .js [data-fade], .js .hero-stage { visibility: hidden; }

/* ---------- grain overlay (pure SVG noise, no image request) ---------- */
.grain {
  position: fixed; inset: 0; contain: strict; z-index: 90; pointer-events: none; opacity: .09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 24px; border-radius: 999px; border: 2px solid var(--ink);
  background: var(--bg); color: var(--fg);
  font: 600 16px/1 var(--f-display); letter-spacing: -.01em; text-decoration: none; cursor: pointer;
  overflow: hidden; isolation: isolate;
  transition: color .35s var(--ease), border-color .35s var(--ease);
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--fill, var(--paper)); transform: translateY(101%);
  transition: transform .45s var(--ease);
}
.btn:hover::after, .btn:focus-visible::after { transform: translateY(0); }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-ink { --fill: var(--gold); }
.btn-ink:hover, .btn-ink:focus-visible { color: var(--on-gold); }
.btn-gold { --bg: var(--gold); --fg: var(--on-gold); --fill: var(--ink); }
.btn-gold:hover, .btn-gold:focus-visible { color: var(--gold); }
.btn-line { --bg: transparent; --fg: var(--ink); --fill: var(--ink); }
.btn-line:hover, .btn-line:focus-visible { color: var(--paper); }
.btn > * { pointer-events: none; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 14px var(--gutter) auto; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  max-width: var(--max); margin: 0 auto;
  padding: 10px 10px 10px 20px;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  /* Solid-ish fill instead of backdrop-filter: blurring the live WebGL hero every frame was a GPU hog */
  border: 1.5px solid color-mix(in srgb, var(--ink) 14%, transparent);
  border-radius: 999px;
  transition: transform .5s var(--ease);
}
.nav.is-hidden { transform: translateY(calc(-100% - 24px)); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -.04em; }
.brand em { font-family: var(--f-serif); font-weight: 400; font-size: 1.15em; margin-left: 2px; letter-spacing: 0; }
.brand-fish { width: 38px; height: 19px; fill: var(--gold); stroke: var(--ink); stroke-width: 2; transition: transform .6s var(--ease); }
.brand:hover .brand-fish { transform: rotate(-12deg) translateX(-2px); }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  position: relative; padding: 8px 12px; border-radius: 999px; text-decoration: none;
  font-size: 15px; font-weight: 500; transition: background .25s;
}
.nav-links a:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.nav-cta { padding: 12px 18px; font-size: 15px; }
.nav-progress { position: absolute; left: 28px; right: 28px; bottom: -1.5px; height: 2px; overflow: hidden; border-radius: 2px; }
.nav-progress i { display: block; height: 100%; background: var(--gold); transform-origin: left; transform: scaleX(0); }
.nav-toggle { display: none; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: var(--ink); color: var(--paper);
  display: flex; align-items: flex-end; padding: 100px var(--gutter) 48px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: grid; gap: 6px; }
.mobile-menu a { font-size: clamp(36px, 11vw, 64px); font-weight: 700; letter-spacing: -.04em; text-decoration: none; line-height: 1.05; }
.mobile-menu .mm-cta { color: var(--gold); font-family: var(--f-serif); font-style: italic; font-weight: 400; margin-top: 18px; font-size: clamp(30px, 8vw, 48px); }

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle {
    display: grid; place-content: center; gap: 6px; margin-left: auto;
    width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--ink); cursor: pointer;
  }
  .nav-toggle i { display: block; width: 18px; height: 2px; background: var(--paper); transition: transform .35s var(--ease); }
  .nav-toggle[aria-expanded="true"] i:first-of-type { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] i:last-of-type { transform: translateY(-4px) rotate(-45deg); }
  .nav-toggle[aria-expanded="true"] { background: var(--gold); }
  .nav-toggle[aria-expanded="true"] i { background: var(--on-gold); }
}

/* ---------- section scaffolding ---------- */
section { position: relative; padding: clamp(96px, 13vw, 180px) var(--gutter); }
section > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: clamp(48px, 6vw, 88px); }
.section-head h2 { font-size: clamp(42px, 6.4vw, 104px); max-width: 15ch; }
.section-sub { max-width: 52ch; margin-top: 24px; color: var(--muted); }

/* ---------- character rig ---------- */
.ch { overflow: visible; width: 100%; height: auto; }
.ch-arm { stroke: var(--c-ink); stroke-width: 21; stroke-linecap: round; fill: none; }
.ch-halo { stroke: var(--c-paper); stroke-width: 27; stroke-linecap: round; fill: none; }
.ch-hand, .ch-skin, .ch-lens { fill: var(--c-paper); stroke: var(--c-ink); stroke-width: 3; }
.ch-lens { stroke-width: 5; fill: color-mix(in srgb, var(--c-paper) 70%, transparent); }
.ch-hair, .ch-jumper, .ch-shoe, .ch-eye { fill: var(--c-ink); }
.ch-line { fill: none; stroke: var(--c-ink); stroke-width: 2.6; stroke-linecap: round; }
.ch-crease { fill: none; stroke: var(--c-paper); stroke-width: 2.2; stroke-linecap: round; }
.ch-leg-o line { stroke: var(--c-ink); stroke-width: 33; stroke-linecap: round; }
.ch-leg-f line { stroke: var(--c-paper); stroke-width: 26.5; stroke-linecap: round; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; gap: clamp(24px, 4vw, 64px);
  padding-top: clamp(120px, 14vh, 160px); padding-bottom: 80px;
  overflow: clip;
  max-width: none;
}
.hero > * { margin: 0; }
.hero-copy { position: relative; z-index: 2; justify-self: end; max-width: 760px; width: 100%; }
.hero-blob {
  position: absolute; z-index: 0; right: -10vw; top: 8vh; width: min(70vw, 900px); aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(closest-side at 40% 40%, var(--gold-2), transparent 70%),
    radial-gradient(closest-side at 65% 60%, color-mix(in srgb, var(--gold) 80%, transparent), transparent 75%);
  filter: blur(30px); opacity: .75; pointer-events: none;
}
.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px;
  font: 600 13px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase;
  padding: 10px 14px; border-radius: 999px; border: 1.5px solid var(--ink);
}
.kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px var(--ink); animation: ping 2.4s infinite; }
@keyframes ping { 50% { box-shadow: 0 0 0 5px var(--ink); } }
.hero-title {
  display: block;
  font-size: clamp(54px, 7.6vw, 132px);
  font-weight: 640;
  line-height: .9;
  letter-spacing: -.045em;
  font-variation-settings: "opsz" 96, "wght" 640;
}
.hero-title em { color: var(--ink); position: relative; white-space: nowrap; }
.hero-title .char { display: inline-block; will-change: transform; }
.hero-lede { margin-top: 32px; max-width: 34em; font-size: clamp(17px, 1.25vw, 21px); color: var(--ink-2); }
.hero-lede q { font-family: var(--f-serif); font-style: italic; font-size: 1.15em; quotes: "“" "”"; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px 28px; list-style: none; padding: 0; margin: 40px 0 0; font-size: 14px; color: var(--muted); }
.hero-proof li { position: relative; padding-left: 22px; }
.hero-proof li::before { content: ""; position: absolute; left: 0; top: .3em; width: 14px; height: 14px; border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 7.2l2 2 4-4.4' fill='none' stroke='%23F1ECE2' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); flex: none; }
.hero-proof strong { color: var(--ink); font-weight: 600; }

.hero-stage { position: relative; z-index: 1; width: 100%; max-width: 560px; justify-self: start; aspect-ratio: 1 / 1.05; }
.serp {
  position: absolute; right: 0; top: 2%; width: 84%;
  background: var(--paper); border: 2px solid var(--ink); border-radius: 22px;
  box-shadow: 10px 12px 0 var(--ink);
  padding: 16px;
}
.serp-bar {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 999px;
  border: 1.5px solid var(--ink); font: 500 15px/1 var(--f-mono); min-height: 46px;
}
.serp-bar svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; flex: none; }
.serp-query { white-space: nowrap; overflow: hidden; }
.serp-caret { width: 2px; height: 18px; background: var(--ink); animation: caret 1s steps(1) infinite; margin-left: -6px; }
@keyframes caret { 50% { opacity: 0; } }
.serp-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.serp-row {
  display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: center;
  padding: 12px 12px; border-radius: 12px; background: var(--paper-2);
}
.serp-row b { font: 600 12px/1 var(--f-mono); color: var(--muted); }
.sk { display: grid; gap: 7px; }
.sk i { display: block; height: 8px; border-radius: 6px; background: color-mix(in srgb, var(--ink) 16%, transparent); }
.sk i:first-child { height: 10px; background: color-mix(in srgb, var(--ink) 28%, transparent); }
.serp-row.is-you { background: var(--gold); color: var(--on-gold); border: 2px solid var(--ink); padding: 12px 10px; position: relative; z-index: 2; }
.serp-row.is-you b { color: var(--on-gold); }
.you { display: grid; gap: 3px; }
.you-url { font: 500 11px/1 var(--f-mono); }
.you-title { font-weight: 700; font-size: 17px; letter-spacing: -.02em; line-height: 1.15; }
.you-stars { font-size: 13px; letter-spacing: .05em; }
.you-stars small { font-size: 11.5px; letter-spacing: 0; opacity: .85; }
.serp-tag {
  position: absolute; right: -14px; top: -16px; background: var(--ink); color: var(--gold);
  font: 600 12px/1 var(--f-mono); padding: 8px 12px; border-radius: 999px; transform: rotate(4deg);
}

.scroll-cue {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 3;
  display: grid; justify-items: center; gap: 8px; text-decoration: none;
  font: 600 11px/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.scroll-cue i { width: 2px; height: 42px; background: linear-gradient(var(--ink) 50%, transparent 50%) 0 0 / 100% 200%; animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { from { background-position: 0 100%; } to { background-position: 0 -100%; } }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 120px; }
  .hero-copy { justify-self: start; }
  .hero-stage { justify-self: center; max-width: 480px; margin-top: 12px; }
  .scroll-cue { display: none; }
}

/* ==========================================================================
   MANIFESTO
   ========================================================================== */
.manifesto {
  padding-top: clamp(80px, 10vw, 140px);
  padding-inline: max(var(--gutter), (100vw - var(--max)) / 2);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 24px; align-items: start;
}
.manifesto > * { margin: 0; max-width: none; }
.manifesto .eyebrow { margin-top: .9em; }
@media (max-width: 800px) { .manifesto { grid-template-columns: 1fr; } }
.manifesto-text {
  font-size: clamp(30px, 4.3vw, 72px);
  line-height: 1.08;
  letter-spacing: -.035em;
  font-weight: 560;
  max-width: 22ch;
  font-variation-settings: "opsz" 72;
}
.manifesto-text .word { transition: none; }
.manifesto-text em { color: inherit; }
.inline-char {
  display: inline-block; vertical-align: middle; width: 1.4em; height: 1.1em; margin: -.2em .1em 0;
  border-radius: 999px; background: var(--gold); border: 2px solid var(--ink); position: relative; overflow: hidden;
}
.inline-char .ch { position: absolute; width: 140%; left: -12%; top: -4%; }

/* ==========================================================================
   MARQUEE (scroll-velocity)
   ========================================================================== */
.marquee { padding: 24px 0 clamp(80px, 10vw, 140px); overflow: hidden; }
.marquee-row { display: flex; white-space: nowrap; }
.marquee-track {
  display: flex; align-items: center; gap: .35em; padding-right: .35em; flex: none;
  font-size: clamp(56px, 9vw, 150px); font-weight: 800; letter-spacing: -.05em; line-height: 1.02;
  font-variation-settings: "opsz" 96, "wdth" 80;
}
.marquee-track .o { color: transparent; -webkit-text-stroke: 2px var(--ink); }
.marquee-track svg { width: .7em; height: .35em; fill: var(--gold); stroke: var(--ink); stroke-width: 2.5; flex: none; overflow: visible; }
.marquee-row + .marquee-row .marquee-track svg { transform: scaleX(-1); }

/* ==========================================================================
   THE CLIMB
   ========================================================================== */
.climb { background: var(--gold); padding: 0 var(--gutter); }
.climb > * { max-width: none; }
.climb-pin {
  position: relative; height: 100svh; max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  grid-template-rows: auto 1fr auto; column-gap: clamp(24px, 5vw, 80px);
  padding: clamp(96px, 12vh, 130px) 0 clamp(28px, 5vh, 56px);
}
.climb-head { grid-column: 1; grid-row: 1; }
.climb-head h2 { font-size: clamp(40px, 5.2vw, 84px); max-width: 11ch; }
.climb-rank { grid-column: 1; grid-row: 2; align-self: center; display: grid; gap: 6px; }
.climb-rank-label { font: 600 12px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; }
.climb-rank-num {
  font-size: clamp(110px, 17vw, 260px); font-weight: 800; line-height: .8; letter-spacing: -.07em;
  font-variant-numeric: tabular-nums; font-variation-settings: "opsz" 96, "wdth" 78;
  display: flex; align-items: flex-start;
}
.climb-rank-num small { font-size: .38em; margin-top: .12em; margin-right: .04em; font-weight: 500; }
.climb-rank-page { font-family: var(--f-serif); font-style: italic; font-size: clamp(20px, 1.8vw, 28px); }
.climb-scene { grid-column: 2; grid-row: 1 / 3; align-self: end; position: relative; }
.climb-scene svg { width: 100%; height: auto; max-height: 74svh; overflow: visible; margin-left: auto; }
.climb-grid line { stroke: var(--ink); stroke-width: 3; }
[data-bars] rect { fill: transparent; stroke: var(--ink); stroke-width: 3; stroke-dasharray: 8 7; transition: fill .4s var(--ease); }
[data-bars] rect.is-on { fill: var(--ink); stroke-dasharray: none; }
.bar-labels text { font: 600 22px var(--f-mono); fill: var(--ink); text-anchor: middle; transition: fill .4s; }
.bar-labels text.is-on { fill: var(--gold); }
.climb-flag line { stroke: var(--ink); stroke-width: 6; stroke-linecap: round; }
.climb-flag path { fill: var(--paper); stroke: var(--ink); stroke-width: 4; stroke-linejoin: round; }

.climb-steps { grid-column: 1 / -1; grid-row: 3; list-style: none; margin: 0; padding: 0; position: relative; min-height: 172px; }
.climb-step {
  position: absolute; inset: 0 auto auto 0; width: min(100%, 640px);
  display: grid; gap: 10px; padding: 22px 24px; border-radius: var(--radius);
  background: var(--paper); border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--ink);
}
.climb-step h3 { font-size: clamp(22px, 2vw, 30px); letter-spacing: -.03em; line-height: 1.05; }
.climb-step p { font-size: 16px; color: var(--ink-2); }
.step-num { font: 600 12px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; }

/* Without JS (or with reduced motion) the climb becomes a readable list */
.no-pin .climb-pin { height: auto; grid-template-rows: auto auto auto; }
.no-pin .climb-steps { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 40px; }
.no-pin .climb-step { position: relative; width: auto; }
.no-pin [data-bars] rect { fill: var(--ink); stroke-dasharray: none; }

@media (max-width: 900px) {
  .climb-pin { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr auto; padding-top: 96px; }
  .climb-head { grid-row: 1; }
  .climb-head h2 { font-size: clamp(34px, 9vw, 52px); }
  .climb-rank { grid-row: 2; grid-column: 1; margin-top: 28px; grid-template-columns: auto 1fr; align-items: end; column-gap: 16px; }
  .climb-rank-label { grid-column: 1 / -1; }
  .climb-rank-num { font-size: clamp(84px, 26vw, 140px); }
  .climb-rank-page { align-self: end; padding-bottom: 6px; }
  .climb-scene { grid-column: 1; grid-row: 3; }
  .climb-scene svg { max-height: 36svh; }
  .climb-steps { grid-row: 4; min-height: 190px; }
  .climb-step { padding: 18px; box-shadow: 6px 6px 0 var(--ink); }
  .climb-step p { font-size: 15px; }
}

/* ==========================================================================
   SERVICES
   ========================================================================== */
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card {
  --x: 50%; --y: 50%;
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; align-content: start; gap: 14px;
  min-height: 330px; padding: 32px 30px 28px; border-radius: var(--radius);
  background: var(--ink); color: var(--paper);
  transition: translate .5s var(--ease); /* `translate`, not `transform`: GSAP owns transform */
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--x) var(--y), color-mix(in srgb, var(--gold) 34%, transparent), transparent 60%);
}
.card:hover::before { opacity: 1; }
.card:hover { translate: 0 -4px; }
.card-ico { width: 52px; height: 52px; fill: none; stroke: var(--gold); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 26px; }
.card h3 { font-size: clamp(26px, 2.2vw, 34px); letter-spacing: -.035em; }
.card p { color: color-mix(in srgb, var(--paper) 78%, transparent); font-size: 16.5px; }
.card-tags { margin-top: auto; padding-top: 18px; font: 500 11.5px/1.4 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--gold); border-top: 1px solid color-mix(in srgb, var(--paper) 18%, transparent); }
.card:nth-child(2) { background: var(--lee); }
.card:nth-child(4) { background: var(--paper-2); color: var(--ink); }
.card:nth-child(4) p { color: var(--ink-2); }
.card:nth-child(4) .card-ico { stroke: var(--ink); }
.card:nth-child(4) .card-tags { color: var(--ink); border-color: color-mix(in srgb, var(--ink) 18%, transparent); }
.card:nth-child(4)::before { background: radial-gradient(420px circle at var(--x) var(--y), color-mix(in srgb, var(--gold) 55%, transparent), transparent 60%); }
.card:nth-child(6) { background: var(--gold); color: var(--on-gold); }
.card:nth-child(6) p { color: var(--ink-2); }
.card:nth-child(6) .card-ico { stroke: var(--on-gold); }
.card:nth-child(6) .card-tags { color: var(--ink); border-color: color-mix(in srgb, var(--ink) 25%, transparent); }
.card:nth-child(6)::before { background: radial-gradient(420px circle at var(--x) var(--y), rgba(255,255,255,.45), transparent 60%); }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } .card { min-height: 0; } }

/* ==========================================================================
   ANATOMY
   ========================================================================== */
.anatomy { background: var(--paper-2); }
.anatomy-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.mock {
  background: var(--paper); border: 2px solid var(--ink); border-radius: 24px; padding: clamp(18px, 2.4vw, 32px);
  box-shadow: 12px 12px 0 var(--ink); display: grid; gap: 22px;
}
.mock-search {
  display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 999px; border: 1.5px solid var(--ink);
  font: 500 15px/1 var(--f-mono);
}
.mock-search svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
[data-part] { position: relative; border-radius: 10px; transition: background .35s var(--ease), box-shadow .35s var(--ease); }
[data-part].is-active { background: color-mix(in srgb, var(--gold) 38%, transparent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--gold) 38%, transparent); }
.mock-map { border: 1.5px solid color-mix(in srgb, var(--ink) 25%, transparent); border-radius: 16px; overflow: hidden; padding: 0; }
.mock-map.is-active { box-shadow: 0 0 0 5px var(--gold); background: transparent; }
.mock-mapart { position: relative; height: 120px; background: color-mix(in srgb, var(--lee) 12%, var(--paper)); }
.mock-mapart svg { width: 100%; height: 100%; }
.mm-river { fill: none; stroke: color-mix(in srgb, var(--lee) 45%, transparent); stroke-width: 10; stroke-linecap: round; }
.mm-road { fill: none; stroke: var(--paper); stroke-width: 4; }
.pin {
  position: absolute; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; box-shadow: 0 3px 0 rgba(0,0,0,.25);
  background: var(--ink); color: var(--paper); font: 600 11px/1 var(--f-mono);
}
.pin.p1 { left: 22%; top: 28%; background: var(--gold); color: var(--on-gold); border: 2px solid var(--ink); }
.pin.p2 { left: 56%; top: 46%; } .pin.p3 { left: 78%; top: 20%; }
.mock-places { list-style: none; margin: 0; padding: 6px 14px 10px; display: grid; }
.mock-places li { display: grid; gap: 4px; padding: 10px 4px; border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); font-size: 14px; }
.mock-places li:first-child { border-top: 0; }
.mock-places b { font-size: 16px; }
.mock-places span { color: var(--muted); font-size: 13px; }
.mock-places .is-you span { color: var(--ink-2); }
.skl { display: inline-block; height: 9px; border-radius: 5px; background: color-mix(in srgb, var(--ink) 16%, transparent); }
.mock-result { display: grid; gap: 10px; padding: 8px 4px; }
.mock-result > [data-part] { padding: 4px 6px; }
.mock-url { font: 500 13px/1.3 var(--f-mono); }
.mock-url span { color: var(--muted); }
.mock-title { font-size: clamp(20px, 1.8vw, 26px); font-weight: 650; letter-spacing: -.02em; line-height: 1.15; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; padding-right: 40px !important; }
.mock-stars { color: var(--ink); font-size: 15px; letter-spacing: .06em; }
.mock-stars span { letter-spacing: 0; color: var(--muted); font-size: 14px; margin-left: 6px; }
.mock-desc { color: var(--ink-2); font-size: 15.5px; padding-right: 40px !important; }
.mock-links { display: flex; flex-wrap: wrap; gap: 8px; }
.mock-links span { padding: 7px 12px; border-radius: 999px; border: 1.5px solid var(--ink); font-size: 13.5px; font-weight: 600; }
.hot {
  position: absolute; right: -8px; top: 50%; translate: 0 -50%; z-index: 2;
  width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--ink);
  background: var(--paper); color: var(--ink); font: 700 13px/1 var(--f-mono); cursor: pointer;
  display: grid; place-items: center; transition: background .25s, transform .3s var(--ease);
}
.mock-map .hot { translate: none; }
.hot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--ink); opacity: 0; animation: hot 2.4s infinite; }
@keyframes hot { 0% { transform: scale(.7); opacity: .6; } 100% { transform: scale(1.4); opacity: 0; } }
.hot:hover { transform: scale(1.12); }
.hot[aria-pressed="true"] { background: var(--ink); color: var(--gold); }
.hot[aria-pressed="true"]::after { animation: none; }

.explain { position: sticky; top: 120px; display: grid; gap: 24px; }
.explain-card {
  position: relative; background: var(--ink); color: var(--paper); border-radius: 24px; padding: clamp(26px, 3vw, 40px);
  min-height: 280px; display: grid; align-content: start; gap: 16px;
}
.explain-num { font: 800 clamp(64px, 6vw, 96px)/.8 var(--f-display); color: var(--gold); letter-spacing: -.06em; font-variation-settings: "wdth" 78; }
.explain-card h3 { font-size: clamp(28px, 2.6vw, 40px); }
.explain-card p { color: color-mix(in srgb, var(--paper) 82%, transparent); }
.explain-char { width: 46%; max-width: 220px; margin: -30px 0 0 6%; }
.explain-char .ch { transform: scaleX(-1); }
@media (max-width: 900px) {
  .anatomy-grid { grid-template-columns: 1fr; }
  .explain { position: sticky; top: auto; bottom: 12px; z-index: 3; }
  .explain-card { padding: 20px 22px; gap: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
  .explain-num { font-size: 44px; }
  .explain-card h3 { font-size: 24px; }
  .explain-card p { font-size: 15px; }
  .explain-char { display: none; }
  .explain-card { min-height: 0; }
}

/* ==========================================================================
   LOCAL
   ========================================================================== */
.local { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: center; max-width: none; }
.local > * { margin: 0; }
.local-copy { justify-self: end; max-width: 600px; }
.local-copy h2 { font-size: clamp(38px, 4.6vw, 76px); margin-bottom: 28px; }
.local-copy > p { color: var(--ink-2); max-width: 46ch; }
.local-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 0; }
.local-list li { padding: 16px 0; border-top: 1.5px solid var(--ink); font-size: 17px; }
.local-list li:last-child { border-bottom: 1.5px solid var(--ink); }
.local-map { margin: 0; max-width: 820px; }
.local-map svg { width: 100%; height: auto; overflow: visible; }
.lee { fill: none; stroke: var(--lee); stroke-width: 18; stroke-linecap: round; stroke-linejoin: round; }
.lee-shadow { stroke: color-mix(in srgb, var(--lee) 14%, transparent); stroke-width: 54; }
.place circle { fill: var(--paper); stroke: var(--ink); stroke-width: 3; }
.place text { font: 600 17px var(--f-display); fill: var(--ink); text-anchor: middle; letter-spacing: -.01em; paint-order: stroke; stroke: var(--paper); stroke-width: 6px; stroke-linejoin: round; }
.place.is-home circle { fill: var(--gold); }
.map-fish { fill: var(--gold); stroke: var(--ink); stroke-width: 2.5; }
.local-map figcaption { margin-top: 10px; font: 500 13px/1.4 var(--f-mono); color: var(--muted); text-align: right; }
.local-map figcaption em { font-family: var(--f-serif); font-size: 1.25em; color: var(--ink); }
@media (max-width: 900px) {
  .local { grid-template-columns: 1fr; }
  .local-copy { justify-self: start; }
}

/* ==========================================================================
   RESULTS
   ========================================================================== */
.results { padding-top: clamp(60px, 8vw, 120px); }
.stats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.stat { padding: 36px 28px 36px 0; display: grid; gap: 10px; align-content: start; }
.stat + .stat { padding-left: 28px; border-left: 2px solid var(--ink); }
.stat-num { font-size: clamp(72px, 9vw, 150px); font-weight: 800; line-height: .85; letter-spacing: -.06em; font-variant-numeric: tabular-nums; font-variation-settings: "opsz" 96, "wdth" 80; }
.stat:nth-child(2) .stat-num { color: var(--lee); }
.stat-label { font-size: 19px; font-weight: 600; letter-spacing: -.01em; max-width: 18ch; line-height: 1.2; }
.stat-who { font: 500 12px/1.4 var(--f-mono); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 800px) {
  .stats { grid-template-columns: 1fr; }
  .stat, .stat + .stat { padding: 28px 0; border-left: 0; border-bottom: 2px solid var(--ink); }
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.faq .section-head { position: sticky; top: 120px; margin: 0; }
.faq .section-head h2 { font-size: clamp(40px, 5vw, 84px); }
.faq-list { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 2px solid var(--ink); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 4px; font-size: clamp(19px, 1.6vw, 25px); font-weight: 650; letter-spacing: -.025em; line-height: 1.2;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; width: 38px; height: 38px; flex: none; border-radius: 50%; border: 2px solid var(--ink); transition: background .3s, transform .45s var(--ease); }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; background: currentColor; translate: -50% -50%; }
.faq summary i::after { rotate: 90deg; transition: rotate .45s var(--ease); }
.faq details[open] summary i { background: var(--gold); color: var(--on-gold); transform: rotate(180deg); }
.faq details[open] summary i::after { rotate: 0deg; }
.faq summary:hover i { background: var(--gold); color: var(--on-gold); }
.faq-a { overflow: hidden; }
.faq-a p { padding: 0 60px 28px 4px; color: var(--ink-2); max-width: 60ch; }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; } .faq .section-head { position: relative; top: 0; } .faq-a p { padding-right: 0; } }

/* ==========================================================================
   CTA + FOOTER
   ========================================================================== */
.cta {
  background: var(--ink); color: var(--paper); --c-paper: var(--paper);
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 90px); align-items: center;
  border-radius: clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px) 0 0;
  max-width: none;
}
.cta > * { margin: 0; }
.cta-art { justify-self: end; width: 100%; max-width: 520px; }
.cta-art svg { width: 100%; overflow: visible; }
.cta-sun { fill: var(--gold); }
.cta-bars rect { fill: var(--paper); }
.cta-flag line { stroke: var(--paper); stroke-width: 5; stroke-linecap: round; }
.cta-flag path { fill: var(--gold); stroke: var(--paper); stroke-width: 3; stroke-linejoin: round; }
.cta-copy { max-width: 640px; }
.cta h2 { font-size: clamp(56px, 8vw, 140px); margin-bottom: 26px; }
.cta h2 em { color: var(--gold); }
.cta-copy > p { color: color-mix(in srgb, var(--paper) 78%, transparent); max-width: 44ch; }
.audit-form { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 8px; }
.field label { font: 600 12px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.field input {
  width: 100%; padding: 17px 18px; border-radius: 14px; border: 2px solid color-mix(in srgb, var(--paper) 30%, transparent);
  background: transparent; color: var(--paper); font: 500 17px var(--f-display); transition: border-color .25s;
}
.field input::placeholder { color: color-mix(in srgb, var(--paper) 40%, transparent); }
.field input:focus { outline: none; border-color: var(--gold); }
.field input[aria-invalid="true"] { border-color: #FF8A6B; }
.audit-form .btn { grid-column: 1 / -1; justify-self: start; border-color: var(--gold); --fill: var(--paper); }
.audit-form .btn:hover { color: var(--ink); }
.form-note { grid-column: 1 / -1; font-size: 14px; color: color-mix(in srgb, var(--paper) 60%, transparent); }
.form-note.is-ok { color: var(--gold); font-weight: 600; }
@media (max-width: 900px) {
  .cta { grid-template-columns: 1fr; }
  .cta-art { justify-self: center; max-width: 340px; }
}
@media (max-width: 560px) { .audit-form { grid-template-columns: 1fr; } }

.footer { background: var(--ink); color: var(--paper); padding: 40px var(--gutter) 28px; overflow: hidden; }
.footer > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.footer-top { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 32px; padding-top: 48px; border-top: 1.5px solid color-mix(in srgb, var(--paper) 18%, transparent); }
.footer-h { font-weight: 800; font-size: 22px; letter-spacing: -.03em; margin-bottom: 10px; }
.footer address { font-style: normal; color: color-mix(in srgb, var(--paper) 70%, transparent); line-height: 1.7; }
.footer address a { color: var(--gold); }
.footer nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; align-content: start; }
.footer nav a { text-decoration: none; color: color-mix(in srgb, var(--paper) 80%, transparent); }
.footer nav a:hover { color: var(--gold); }
.footer-note { font-family: var(--f-serif); font-style: italic; font-size: 21px; line-height: 1.3; color: color-mix(in srgb, var(--paper) 85%, transparent); }
.footer-word {
  display: flex; align-items: center; justify-content: space-between; gap: 2vw; margin-top: clamp(40px, 6vw, 80px);
  font-size: clamp(80px, 21.5vw, 340px); font-weight: 800; letter-spacing: -.07em; line-height: .78; font-variation-settings: "opsz" 96, "wdth" 75;
  max-width: none;
}
.footer-word svg { width: 1.3em; height: .65em; fill: var(--gold); flex: none; overflow: visible; }
.footer-word span { display: inline-block; }
.footer-legal { margin-top: 28px; font: 500 12px/1 var(--f-mono); color: color-mix(in srgb, var(--paper) 50%, transparent); }
@media (max-width: 800px) { .footer-top { grid-template-columns: 1fr; } }

#fish .fish-eye { fill: var(--ink); stroke: none; }
#fish .fish-gill { fill: none; }

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
.map-dot { fill: color-mix(in srgb, var(--ink) 22%, transparent); }
