/* ==========================================================================
   ATHERION - VISUAL SYSTEM
   Cinematic, full-bleed, scroll-driven. Replaces the previous concept sheet.

   Laws of the system
     1. Stages are full-bleed and full-viewport. Media goes edge to edge.
     2. Type overlaps media. It does not sit politely beside it.
     3. Corner radius comes from one scale (--r-sm/md/lg) and nothing else.
     4. No cards, no boxes. Rules, rails, crops and grounds instead.
     5. Blue is a ground/line/fill on dark; a text colour only on light.
     6. Every scroll-linked transform reads from --p, written by the engine.
   ========================================================================== */

/* ==========================================================================
   1.  STAGE + LAYOUT PRIMITIVES
   ========================================================================== */

.stage {
  position: relative;
  isolation: isolate;
  overflow: clip;
}
.stage--full  { min-height: 100svh; display: grid; align-items: center; }
.stage--tall  { min-height: 120svh; }
.stage--pad   { padding-block: var(--section-pad); }

/* Grounds */
.g-black { background: var(--black); color: var(--ink-2); }
.g-navy  { background: var(--navy); background-image: var(--grad-navy); color: var(--ink-2); }
.g-brand { background: var(--black); background-image: var(--grad-brand); color: var(--ink-2); }
.g-blue  { background: var(--blue); color: var(--white); }
.g-white { background: var(--white); color: var(--ink-dk-2); }
.g-white h1, .g-white h2, .g-white h3, .g-white h4 { color: var(--black); }

.hold {
  --container-max: var(--max);
  width: min(calc(100% - (var(--gut) * 2)), var(--container-max));
  margin-inline: auto;
  min-width: 0;
}
.hold > * { min-width: 0; }
/* The trace lives in the outer gutter; content keeps the same page edge. */
.wired > .hold, .wired .hold { padding-left: 0; }
.hold--wide { --container-max: 100%; }
.hold--tight { --container-max: 1180px; }

/* Asymmetric 12-track. Children opt in with .c-<start>-<end>; below 900px
   every child collapses to a single full-width track - keeping 12 tracks at
   phone widths would keep 11 gaps with it, and the gutters alone would set a
   width floor no phone can satisfy. */
.grid12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.2vw, 40px);
  row-gap: var(--s5);
}
.c-1-6  { grid-column: 1 / 7; }
.c-1-7  { grid-column: 1 / 8; }
.c-1-8  { grid-column: 1 / 9; }
.c-2-8  { grid-column: 2 / 9; }
.c-3-11 { grid-column: 3 / 12; }
.c-5-13 { grid-column: 5 / 13; }
.c-6-13 { grid-column: 6 / 13; }
.c-7-13 { grid-column: 7 / 13; }
.c-8-13 { grid-column: 8 / 13; }
.c-full { grid-column: 1 / -1; }

@media (max-width: 900px) {
  .grid12 { grid-template-columns: 1fr; row-gap: var(--s4); }
  .grid12 > * { grid-column: 1 / -1 !important; }
}

/* ==========================================================================
   2.  TYPE
   ========================================================================== */

.t-mega { font-size: var(--t-mega); line-height: var(--lh-mega); letter-spacing: var(--ls-mega); font-weight: var(--w-lt); }
.t-xl   { font-size: var(--t-xl);   line-height: var(--lh-xl);   letter-spacing: var(--ls-xl);   font-weight: var(--w-lt); }
.t-lg   { font-size: var(--t-lg);   line-height: var(--lh-lg);   letter-spacing: var(--ls-lg);   font-weight: var(--w-lt); }
.t-md   { font-size: var(--t-md);   line-height: 1.06;           letter-spacing: -.028em;        font-weight: var(--w-lt); }
.t-sm   { font-size: var(--t-sm);   line-height: 1.2;            letter-spacing: -.02em;         font-weight: var(--w-rg); }

.lede { font-size: var(--t-lead); line-height: 1.55; font-weight: var(--w-lt); color: var(--ink-3); max-width: 46ch; }
.g-white .lede { color: var(--ink-dk-2); }
.copy { max-width: 62ch; color: var(--ink-3); }
.g-white .copy { color: var(--ink-dk-2); }
.copy + .copy { margin-top: var(--s3); }
.copy strong, .lede strong { color: var(--ink); font-weight: var(--w-rg); }
.g-white .copy strong { color: var(--black); font-weight: var(--w-md); }

/* Technical annotation. Uppercase letterspaced Arial rather than a monospace:
   a second face would be a brand element the references do not contain. */
.tag {
  display: inline-flex; align-items: center; gap: 11px;
  font-size: var(--t-tag); font-weight: var(--w-md);
  letter-spacing: var(--ls-tag); text-transform: uppercase;
  color: var(--ink-4);
}
.tag::before { content: ''; width: 26px; height: 1px; background: var(--blue-2); flex: none; }
.tag--bare::before { display: none; }
.g-white .tag { color: var(--ink-dk-3); }
.g-white .tag::before { background: var(--blue); }
.g-blue .tag { color: rgba(255,255,255,.72); }
.g-blue .tag::before { background: var(--white); }

.num {
  font-size: var(--t-tag); font-weight: var(--w-md);
  letter-spacing: .16em; color: var(--blue-2);
  font-variant-numeric: tabular-nums;
}
.g-white .num { color: var(--blue); }

/* Outlined numeral used as a chapter marker */
.numeral {
  font-size: clamp(64px, 11vw, 190px); line-height: .78;
  font-weight: var(--w-lt); letter-spacing: -.05em;
  color: transparent; -webkit-text-stroke: 1px var(--ink-5);
  font-variant-numeric: tabular-nums; pointer-events: none;
}
.g-white .numeral { -webkit-text-stroke-color: rgba(0,0,0,.16); }

/* The wordmark sweep. The ONLY place this gradient is permitted. */
.wordmark {
  font-weight: var(--w-rg); letter-spacing: -.03em;
  background: var(--grad-wordmark);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--white);
  padding-bottom: .06em;
}
.g-white .wordmark { background: linear-gradient(90deg, #000 0%, #595959 100%); -webkit-background-clip: text; background-clip: text; color: var(--black); }

/* ==========================================================================
   3.  RULES, TICKS, DIMENSIONS
   ========================================================================== */

.rule-h { height: 1px; background: var(--rule); width: 100%; border: 0; }
.g-white .rule-h { background: var(--rule-dk); }

.ticked { position: relative; }
.ticked::before, .ticked::after {
  content: ''; position: absolute; width: 14px; height: 14px;
  border: 1px solid var(--blue-2); pointer-events: none; z-index: 3;
}
.ticked::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.ticked::after { bottom: 0; right: 0; border-left: 0; border-top: 0; }

.dim { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.dim-l { position: relative; height: 1px; background: var(--blue-2); width: 100%; }
.dim-l::before, .dim-l::after {
  content: ''; position: absolute; top: -4px; width: 1px; height: 9px; background: var(--blue-2);
}
.dim-l::before { left: 0; } .dim-l::after { right: 0; }
.dim-v { font-size: clamp(17px, 1.6vw, 22px); color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.dim-k { font-size: 10.5px; letter-spacing: .17em; text-transform: uppercase; color: var(--ink-4); }
.g-white .dim-l, .g-white .dim-l::before, .g-white .dim-l::after { background: var(--blue); }
.g-white .dim-v { color: var(--black); }
.g-white .dim-k { color: var(--ink-dk-3); }

/* Blueprint grid overlay - kept at the reference's ≈4% lift */
.gridded { position: relative; }
.gridded > .grid-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, #000 5%, transparent 74%);
  mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, #000 5%, transparent 74%);
}

/* ==========================================================================
   4.  MEDIA - Higgsfield slots
   Art-directed per breakpoint. One asset can be cropped cinematically wide on
   desktop and portrait on mobile; a separate mobile source is used when the
   markup supplies one.
   ========================================================================== */

.media {
  position: relative; width: 100%; overflow: hidden; border-radius: var(--r-md);
  background: #05060B;
  aspect-ratio: var(--ar, 16 / 9);
}
.media--fill {
  position: absolute; inset: 0; aspect-ratio: auto; z-index: var(--z-media);
}
.media video, .media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: var(--focal, 50% 50%);
}

/* Placeholder - reads as an intentional registration frame, not a broken box */
.media-ph { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: var(--s3); }
.media-ph::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 46px 46px;
}
.media-ph::after {
  content: ''; position: absolute; inset: 14px;
  border: 1px solid rgba(255,255,255,.08);
}
.ph-in { position: relative; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.ph-id { font-size: var(--t-tag); font-weight: var(--w-md); letter-spacing: var(--ls-tag); text-transform: uppercase; color: var(--blue-2); }
.ph-t  { font-size: clamp(14px, 1.5vw, 19px); color: var(--ink-3); font-weight: var(--w-lt); max-width: 30ch; }
.ph-m  { font-size: 11px; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-5); font-variant-numeric: tabular-nums; }

/* Full-bleed slots: park the placeholder in the lower-right so it never sits
   underneath the headline that overlaps the same frame. */
.hero-media .media-ph, .prod-media .media-ph { place-items: end; padding: var(--s5) var(--gut); }
.hero-media .ph-in, .prod-media .ph-in { align-items: flex-end; text-align: right; opacity: .55; }
@media (max-width: 900px) {
  .hero-media .media-ph, .prod-media .media-ph { place-items: center end; }
}

/* Scrim so oversized type stays legible over moving footage */
.veil { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.veil--btm { background: var(--grad-edge); }
.veil--l   { background: linear-gradient(90deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.45) 42%, transparent 72%); }
.veil--r   { background: linear-gradient(270deg, rgba(0,0,0,.86) 0%, rgba(0,0,0,.35) 45%, transparent 74%); }
.veil--all { background: radial-gradient(ellipse 90% 80% at 50% 50%, transparent 22%, rgba(0,0,0,.72) 88%); }
.veil--navy{ background: linear-gradient(180deg, rgba(2,25,92,.5) 0%, transparent 35%, rgba(2,25,92,.86) 100%); }

@media (max-width: 640px) {
  .veil--l, .veil--r { background: linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.86) 72%); }
}

/* ==========================================================================
   5.  SCROLL-LINKED TRANSFORMS
   Every one reads --p, written once per frame by the engine.
   ========================================================================== */

.par       { transform: translate3d(0, calc((var(--p, .5) - .5) * 56px), 0); }
.par-slow  { transform: translate3d(0, calc((var(--p, .5) - .5) * 30px), 0); }
.par-rev   { transform: translate3d(0, calc((var(--p, .5) - .5) * -46px), 0); }
.zoom      { transform: scale(calc(1.14 - var(--p, 0) * .14)); }
.zoom-in   { transform: scale(calc(1 + var(--p, 0) * .12)); }
.fade-p    { opacity: calc(1 - var(--p, 0)); }
.rise      { transform: translate3d(0, calc((1 - var(--p, 0)) * 40px), 0); opacity: var(--p, 1); }

/* ==========================================================================
   6.  PINNED SEQUENCES
   ========================================================================== */

.pin-wrap { position: relative; }
.pin {
  position: sticky; top: 0;
  height: 100svh;
  overflow: clip;
  display: grid;
  align-items: center;
}

/* ==========================================================================
   THE SIGNAL WIRE
   One continuous technical trace running vertically down the page. Each
   section owns a segment; every segment sits at the same x, so they read as
   a single line. The drawn length is tied to real scroll progress - the blue
   extends as you scroll down and retracts as you scroll up, because it is
   stroke-dashoffset computed from --p, not a timed animation.

   Node activation is pure CSS: a node at --y lights when --p passes it,
   via clamp(0, (--p - --y) * k, 1). No per-node JavaScript.
   ========================================================================== */

.wire {
  position: absolute;
  inset: 0;
  pointer-events: none;          /* never intercepts a click */
  z-index: 4;
  --wire-x: clamp(14px, calc(var(--gut) * .46), 38px);
}
.wire svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.w-bg, .w-fg { fill: none; stroke-linecap: square; stroke-linejoin: miter; vector-effect: non-scaling-stroke; }
.w-bg { stroke: rgba(255,255,255,.13); stroke-width: 1; }
.w-fg {
  stroke: var(--blue);
  stroke-width: 1.25;
  stroke-dasharray: var(--len, 0px);
  stroke-dashoffset: calc(var(--len, 0px) * (1 - var(--p, 0)));
}
.g-white .w-bg { stroke: rgba(0,0,0,.14); }

/* The travelling head - a restrained bloom on the active point only */
.w-head {
  position: absolute;
  left: var(--wire-x);
  top: calc(var(--p, 0) * 100%);
  width: 3px; height: 3px; margin: -1.5px 0 0 -1.5px;
  background: var(--blue);
  opacity: clamp(0, calc(var(--p, 0) * 40), 1);
}
.w-head::after {
  content: '';
  position: absolute; left: 50%; top: 50%;
  width: 46px; height: 46px; transform: translate(-50%,-50%);
  background: radial-gradient(circle, rgba(1,41,229,.55) 0%, rgba(1,41,229,0) 68%);
}
.w-head[data-end]::after { width: 74px; height: 74px; background: radial-gradient(circle, rgba(1,41,229,.75) 0%, rgba(1,41,229,0) 70%); }

/* Junction node + its branch stub toward the content it marks */
.w-node {
  position: absolute;
  left: var(--wire-x);
  top: calc(var(--y, .5) * 100%);
  width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px;
  border: 1px solid rgba(255,255,255,.24);
  background: var(--black);
  --on: clamp(0, calc((var(--p, 0) - var(--y, .5)) * 50), 1);
}
.g-white .w-node { border-color: rgba(0,0,0,.22); background: var(--white); }
.w-node::after {
  content: ''; position: absolute; inset: 1px;
  background: var(--blue); opacity: var(--on);
}
.w-node::before {                 /* branch stub toward the heading */
  content: ''; position: absolute; top: 50%; left: 7px;
  width: var(--branch, 30px); height: 1px;
  background: var(--blue);
  transform: scaleX(var(--on)); transform-origin: left center;
}
@media (max-width: 700px) { .w-node { --branch: 14px; } }

/* Registration tick - a passive mark on the inactive line */
.w-tick {
  position: absolute; left: var(--wire-x); top: calc(var(--y, .5) * 100%);
  width: 9px; height: 1px; margin-left: -4.5px;
  background: rgba(255,255,255,.18);
}

/* Cross-fading media stack for staged sequences */
.seq { position: relative; width: 100%; height: 100%; }
.seq-layer { position: absolute; inset: 0; opacity: 0; transition: opacity .45s var(--ease); }
.seq-layer.on { opacity: 1; }

/* Step list beside a staged sequence */
.steps { display: flex; flex-direction: column; gap: 2px; }
.step {
  padding: var(--s3) 0 var(--s3) var(--s3);
  border-left: 1px solid var(--rule);
  transition: border-color var(--dur-1) var(--ease), opacity var(--dur-1) var(--ease);
  opacity: .34;
}
.step.on { opacity: 1; border-left-color: var(--blue-2); }
.step h3 { font-size: clamp(17px, 1.7vw, 23px); font-weight: var(--w-rg); letter-spacing: -.02em; margin-bottom: 6px; }
.step p { font-size: var(--t-cap); color: var(--ink-4); max-width: 42ch; }

/* ==========================================================================
   7.  NAV
   ========================================================================== */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-nav);
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background var(--dur-1) ease, border-color var(--dur-1) ease;
  border-bottom: 1px solid transparent;
}
.nav.solid { background: rgba(0,0,0,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--rule-2); }
.nav-in {
  width: min(calc(100% - (var(--gut) * 2)), var(--max));
  margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center; gap: clamp(18px, 2.4vw, 40px);
}
.nav-mark { justify-self: start; font-size: clamp(19px, 1.7vw, 23px); line-height: 1; }
.nav-links { justify-self: center; display: flex; align-items: center; gap: clamp(18px, 2vw, 34px); }
.nav-cta { justify-self: end; }
.nav-links a {
  font-size: 13.5px; color: var(--ink-4); padding: 8px 0;
  position: relative; transition: color var(--dur-1) ease;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: var(--blue-2); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-1) var(--ease);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--white); }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); background: var(--blue); }

.burger { display: none; grid-column: 3; justify-self: end; width: 46px; height: 46px; margin-right: -12px; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.burger span { display: block; width: 24px; height: 1px; background: var(--ink-2); transition: transform var(--dur-1) var(--ease), opacity var(--dur-1) ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  background: var(--black);
  display: none; flex-direction: column; justify-content: center;
  padding: var(--nav-h) var(--gut) var(--s6);
}
.menu[data-open="true"] { display: flex; }
.menu-list { display: flex; flex-direction: column; gap: 2px; }
.menu-list a {
  font-size: clamp(30px, 8vw, 58px); line-height: 1.08; font-weight: var(--w-lt);
  letter-spacing: -.035em; color: var(--ink-2);
  padding: 10px 0; border-bottom: 1px solid var(--rule-2);
  display: flex; align-items: baseline; gap: 16px;
}
.menu-list a .num { font-size: 11px; }
.menu-list a:hover { color: var(--white); }
.menu-cta { margin-top: var(--s5); }

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: flex; }
}

/* One quiet registration line orients every page. Its blue segment is driven
   by --sp in site.js; keeping it in the shared system prevents page-specific
   offsets from drifting at different viewport and browser zoom levels. */
.rail {
  position: fixed; z-index: var(--z-rail); pointer-events: none;
  /* Keep the navigator in the outer gutter. Tying this to --max made it
     drift into full-bleed section copy on ultra-wide viewports. */
  left: max(12px, calc(var(--page-edge) / 2));
  top: var(--nav-h); bottom: 0; width: 1px;
  background: rgba(89,89,89,.28);
}
.rail::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--blue-2), var(--blue));
  transform: scaleY(var(--sp, 0)); transform-origin: top center;
}
@media (max-width: 700px) { .rail { display: none; } }
@media (prefers-reduced-motion: reduce) { .rail::after { transform: scaleY(1); opacity: .35; } }

/* ==========================================================================
   8.  BUTTONS + LINKS
   ========================================================================== */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 17px 34px; border: 1px solid transparent; border-radius: var(--r-sm);
  font-size: 14.5px; font-weight: var(--w-md); letter-spacing: .012em;
  white-space: nowrap;
  transition: background var(--dur-1) ease, color var(--dur-1) ease, border-color var(--dur-1) ease;
}
.btn--pri { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn--pri:hover { background: var(--blue-2); border-color: var(--blue-2); }
.btn--gho { color: var(--ink-2); border-color: var(--rule); }
.btn--gho:hover { color: var(--white); border-color: var(--grey-lt); }
.btn--sol { background: var(--white); color: var(--black); border-color: var(--white); }
.btn--sol:hover { background: var(--grey-lt); border-color: var(--grey-lt); }
.btn--sm { padding: 11px 22px; font-size: 13px; }
.g-white .btn--gho { color: var(--ink-dk-2); border-color: var(--rule-dk); }
.g-white .btn--gho:hover { color: var(--black); border-color: var(--black); }
.g-blue .btn--gho { color: var(--white); border-color: rgba(255,255,255,.4); }
.g-blue .btn--gho:hover { border-color: var(--white); }

.lnk {
  display: inline-flex; align-items: center; gap: 11px;
  font-size: 15px; color: var(--ink); padding-bottom: 6px;
  border-bottom: 1px solid var(--rule);
  transition: border-color var(--dur-1) ease;
}
.lnk:hover { border-bottom-color: var(--blue-2); }
.lnk .ar { transition: transform var(--dur-1) var(--ease); }
.lnk:hover .ar { transform: translateX(5px); }
.g-white .lnk { color: var(--black); border-bottom-color: var(--rule-dk); }
.g-white .lnk:hover { border-bottom-color: var(--blue); }

/* ==========================================================================
   9.  ROWS + LISTS  (no cards anywhere)
   ========================================================================== */

.rows { border-top: 1px solid var(--rule); width: 100%; }
.g-white .rows { border-top-color: var(--rule-dk); }
.row {
  /* A fixed side rail rather than `auto`: with auto, each row's dimension
     pair sized to its own content, so the three rows' side columns started at
     three different x. A fixed track aligns them and closes the dead span
     between the copy and the rail. */
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: clamp(18px, 3vw, 56px);
  padding: clamp(24px, 3.4vw, 46px) 0;
  border-bottom: 1px solid var(--rule-2);
  align-items: start;
  transition: background var(--dur-1) ease;
}
.g-white .row { border-bottom-color: var(--rule-dk-2); }
.row:hover { background: rgba(255,255,255,.022); }
.g-white .row:hover { background: rgba(0,0,0,.018); }
.row-t { font-size: clamp(20px, 2.3vw, 32px); font-weight: var(--w-lt); letter-spacing: -.028em; margin-bottom: 10px; }
.row-d { font-size: var(--t-cap); color: var(--ink-3); max-width: 56ch; }
.g-white .row-d { color: var(--ink-dk-2); }
.row-side { display: flex; gap: var(--s4); min-width: 0; }

@media (max-width: 900px) {
  .row { grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
  .row > .num,
  .row > .row-body,
  .row > .row-side { grid-column: 1; }
  .row > .num { grid-row: 1; }
  .row > .row-body { grid-row: 2; }
  .row > .row-side { grid-row: 3; margin-top: 0; }
}
@media (max-width: 520px) {
  .row-side { gap: var(--s3); }
}

/* Pill - used for status, never as a container */
.pill {
  display: inline-block; font-size: 10px; font-weight: var(--w-md);
  letter-spacing: .17em; text-transform: uppercase;
  padding: 5px 11px; margin-bottom: var(--s2);
  background: var(--blue); color: var(--white);
}
.pill--q { background: transparent; color: var(--ink-4); border: 1px solid var(--rule); }

/* ==========================================================================
   10. FOOTER
   ========================================================================== */

.foot { background: var(--black); border-top: 1px solid var(--rule-2); padding-block: var(--s6) var(--s4); }
.foot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s5) var(--s4); margin-bottom: var(--s7); }
.foot-col h2 { font-size: 10px; font-weight: var(--w-md); letter-spacing: var(--ls-tag); text-transform: uppercase; color: var(--ink-5); margin-bottom: var(--s3); }
.foot-col ul { display: flex; flex-direction: column; gap: 13px; }
.foot-col a { font-size: 14.5px; color: var(--ink-4); transition: color var(--dur-1) ease; }
.foot-col a:hover { color: var(--white); }
.foot-mark { font-size: clamp(58px, 17vw, 260px); line-height: .8; letter-spacing: -.05em; display: block; margin-bottom: var(--s4); }
.foot-base { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); flex-wrap: wrap; border-top: 1px solid var(--rule-2); padding-top: var(--s4); }
.foot-base p { font-size: 12.5px; color: var(--ink-5); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) {
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--s3); margin-bottom: var(--s6); }
}

/* ==========================================================================
   11. COOKIE NOTICE
   Storage key `atherion_cookies` is preserved - changing it re-prompts every
   returning visitor.
   ========================================================================== */

.cookie {
  position: fixed; left: var(--s3); bottom: var(--s3); z-index: var(--z-cookie);
  width: min(430px, calc(100vw - var(--s5)));
  background: var(--black); border: 1px solid var(--rule);
  padding: var(--s3) var(--s4) var(--s4);
  transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
.cookie[hidden] { display: none; }
.cookie.out { opacity: 0; transform: translateY(12px); pointer-events: none; }
.cookie h2 { font-size: 14px; font-weight: var(--w-md); letter-spacing: 0; margin-bottom: 9px; }
.cookie p { font-size: 13px; color: var(--ink-4); line-height: 1.6; margin-bottom: var(--s3); }
.cookie p a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
.cookie-row { display: flex; gap: 10px; }
.cookie-row .btn { flex: 1; padding: 12px 14px; font-size: 12.5px; }
@media (max-width: 460px) { .cookie { left: var(--s2); right: var(--s2); bottom: var(--s2); width: auto; } }
