/* Mavik Solutions — shared stylesheet (EN + ES)
   World: the perimeter runs at night (WebGL field); the company speaks in daylight
   (cool stone paper); the close is drenched in the brand amber. One family: Archivo,
   whose width axis carries the display voice. Mono only for real data. */

:root {
  /* Surfaces */
  --night: #0b0e13;
  --night-2: #131821;
  --paper: #eceeeb;
  --paper-2: #e2e5e1;
  --amber: #edaa43;

  /* Ink */
  --ink: #12151a;
  --ink-2: #3f4550;          /* secondary on paper: 8.6:1 */
  --ink-amber: #7a4a06;      /* amber as text on paper: 6.4:1 */
  --on-night: #eef0f2;
  --on-night-2: #a9b0bb;     /* secondary on night: 8.3:1 */
  --on-amber: #16110a;
  --on-amber-2: #4a3410;     /* secondary on amber, tinted from the hue: 6.7:1 */
  --signal: #ff6a4d;         /* hostile traffic, matches the WebGL red */
  --ok: #5ad19a;

  --rule: rgba(18, 21, 26, 0.14);
  --rule-night: rgba(238, 240, 242, 0.12);

  /* Type */
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  /* Space: 4-based scale */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
  --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  --gutter: clamp(20px, 5vw, 80px);
  --measure: 66ch;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --hero-progress: 0;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--paper);
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  scrollbar-color: var(--ink-2) var(--paper-2);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--amber);
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
::selection { background: var(--amber); color: var(--on-amber); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 2px; }
.paper :focus-visible { outline-color: var(--ink); }

/* Browser scrollbar (WebKit) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb { background: #9aa1aa; border-radius: 10px; border: 2px solid var(--paper-2); }

.i { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.skip {
  position: fixed;
  z-index: 100;
  top: var(--s3);
  left: var(--s3);
  transform: translateY(-200%);
  background: var(--amber);
  color: var(--on-amber);
  padding: var(--s3) var(--s4);
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
}
.skip:focus { transform: none; }

/* ---------- Type roles ---------- */
.display {
  font-variation-settings: "wdth" 118;
  font-weight: 760;
  letter-spacing: -0.035em;
  line-height: 0.94;
}
h2 {
  font-size: clamp(2.1rem, 4.6vw, 4rem);
  font-variation-settings: "wdth" 115;
  font-weight: 720;
  letter-spacing: -0.03em;
  line-height: 1;
}
h3 {
  font-size: clamp(1.25rem, 1.6vw, 1.5rem);
  font-variation-settings: "wdth" 108;
  font-weight: 640;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.lead { font-size: clamp(1.1rem, 1.35vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 46ch; }
.small { font-size: 0.9375rem; color: var(--ink-2); }

/* ---------- Actions ---------- */
.button {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  min-height: 52px;
  padding: 0 var(--s5);
  border-radius: 999px;
  background: var(--amber);
  color: var(--on-amber);
  font-weight: 650;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.button .i { transition: transform 0.25s var(--ease); }
.button:hover { background: #f6bd60; }
.button:hover .i { transform: translate(2px, -2px); }
.button:active { transform: translateY(1px); }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  min-height: 44px;
  font-weight: 560;
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-decoration-thickness: 1px;
}
.text-link:hover { text-decoration-thickness: 2px; }

/* ---------- Header ---------- */
.brandbar {
  position: fixed;
  z-index: 60;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s5);
  height: 68px;
  padding: 0 var(--gutter);
  color: var(--on-night);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.brandbar .progress {
  position: absolute;
  inset: auto 0 -1px;
  height: 2px;
  background: var(--amber);
  transform: scaleX(var(--page-p, 0));
  transform-origin: left;
}
.brandbar.on-paper .progress { background: var(--ink); }
.brandbar.is-scrolled { background: var(--night); box-shadow: 0 1px 0 var(--rule-night); }
.brandbar.on-paper { background: var(--paper); color: var(--ink); box-shadow: 0 1px 0 var(--rule); }
.wordmark {
  font-variation-settings: "wdth" 125;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.wordmark span { color: var(--amber); }
.on-paper .wordmark span { color: var(--ink-amber); }
.nav { display: flex; align-items: center; gap: var(--s6); }
.nav-links { display: flex; gap: var(--s5); margin: 0; padding: 0; list-style: none; }
.nav-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-size: 0.9375rem;
  font-weight: 520;
  text-decoration: none;
  opacity: 0.78;
  transition: opacity 0.2s;
}
.nav-links a:hover, .nav-links a.is-active { opacity: 1; text-decoration: underline; }
.lang-switch { display: inline-flex; gap: var(--s1); font-size: 0.875rem; font-weight: 600; }
.lang-switch a, .lang-switch span { display: inline-grid; place-items: center; min-width: 36px; min-height: 36px; border-radius: 999px; text-decoration: none; }
.lang-switch .lang-active { background: currentColor; }
.lang-switch .lang-active b { color: var(--night); }
.on-paper .lang-switch .lang-active b { color: var(--paper); }
.lang-switch a { opacity: 0.75; }
.lang-switch a:hover { opacity: 1; }
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.menu-toggle span { display: block; width: 20px; height: 2px; margin: 5px auto; background: currentColor; border-radius: 2px; transition: transform 0.3s var(--ease); }
.menu-open .menu-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .menu-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Hero: the perimeter at night ---------- */
.hero-stage { position: relative; height: 260svh; background: var(--night); }
.hero {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 70% 60% at 72% 42%, #161c27 0%, var(--night) 70%);
  color: var(--on-night);
}
.gl { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s var(--ease); }
.gl-ready .gl { opacity: 1; }
.gl-fallback {
  display: none;
  position: absolute;
  right: 12%;
  top: 42%;
  width: min(32vw, 420px);
  aspect-ratio: 1;
  translate: 0 -50%;
  border-radius: 50%;
  background: radial-gradient(circle, #ffd27a 0%, var(--amber) 14%, rgba(154, 77, 12, 0.5) 26%, transparent 34%);
  box-shadow: inset 0 0 0 1px rgba(237, 170, 67, 0.3);
}
.no-webgl .gl-fallback { display: block; }
.shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(0deg, var(--night) 0%, rgba(11, 14, 19, 0.82) 26%, transparent 58%);
}
.hero-darken {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: var(--night);
  opacity: calc(max(0, (var(--hero-progress) - 0.86) * 7.2));
  pointer-events: none;
}
.hero-copy {
  position: absolute;
  z-index: 2;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(40px, 9vh, 96px);
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: var(--s5) var(--s8);
  align-items: end;
  transform: translateY(calc(var(--hero-progress) * -220px));
  opacity: calc(1 - var(--hero-progress) * 5.5);
}
.hero-past .hero-copy { visibility: hidden; }
.hero-past .attack-hint { visibility: hidden; }
.hero-past .hero.is-armed { cursor: auto; }

/* Second act: once the shield has broken apart, the statement lights up word by word */
.manifesto {
  position: absolute;
  z-index: 2;
  left: var(--gutter);
  top: 50%;
  translate: 0 -50%;
  width: min(56vw, 980px);
  font-size: clamp(2.1rem, 4.8vw, 4.9rem);
  font-variation-settings: "wdth" 116;
  font-weight: 740;
  letter-spacing: -0.035em;
  line-height: 1;
  text-wrap: balance;
  opacity: var(--m-show, 0);
  pointer-events: none;
}
.manifesto em { font-style: normal; color: var(--amber); }
.manifesto .w { opacity: clamp(0.14, calc(var(--m-p, 0) * var(--n) - var(--i)), 1); }
.hero h1 { grid-column: 1 / -1; font-size: clamp(3.2rem, 9vw, 6rem); max-width: 12ch; }
.hero h1 .amb { color: var(--amber); }
.hero-sub { font-size: clamp(1.1rem, 1.4vw, 1.3rem); line-height: 1.5; color: var(--on-night-2); max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s5); justify-self: end; }
.hero .text-link { color: var(--on-night); }
/* The copy rises as the shield assembles: part of the one authored moment */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise 1.1s var(--ease) 0.25s both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.4s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.5s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(32px); } }
/* Hold to charge an attack (driven by hero.js) */
.hero.is-armed { cursor: crosshair; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.hero-copy { cursor: auto; -webkit-user-select: text; user-select: text; }
.attack-hint {
  position: absolute;
  z-index: 2;
  top: 92px;
  right: var(--gutter);
  max-width: 30ch;
  font-size: 0.875rem;
  color: var(--on-night-2);
  text-align: right;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  pointer-events: none;
}
.is-armed .attack-hint { opacity: 1; transition-delay: 2.5s; }
.is-armed.attack-used .attack-hint { opacity: 0; transition-delay: 0s; }

/* ---------- Paper sections ---------- */
.paper { background: var(--paper); color: var(--ink); }
.night { background: var(--night); color: var(--on-night); }
.night .lead { color: var(--on-night-2); }
.section.night { border-top: 0; }

/* Content rises into place the first time it is seen (classes added by site.js) */
.rv { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease) var(--d, 0s), transform 0.9s var(--ease) var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
.section { position: relative; z-index: 5; padding: clamp(80px, 12vh, 144px) var(--gutter); }
.section + .section { border-top: 1px solid var(--rule); }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: var(--s5) var(--s8);
  align-items: end;
  margin-bottom: var(--s8);
}

/* What we do: three full-bleed rows. The one crossing the middle of the screen
   turns to night, so the list reads one discipline at a time as you scroll. */
.disciplines { margin: 0 calc(var(--gutter) * -1); padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.discipline {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: var(--s5) var(--s8);
  padding: clamp(48px, 9vh, 104px) var(--gutter);
  border-bottom: 1px solid var(--rule);
  align-items: start;
  transition: color 0.5s var(--ease);
}
.discipline::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--night);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform 0.7s var(--ease);
}
.discipline h3 {
  grid-row: 1 / span 2;
  font-size: clamp(2.3rem, 5.6vw, 5.5rem);
  font-variation-settings: "wdth" 110;
  font-weight: 740;
  letter-spacing: -0.035em;
  line-height: 0.95;
  transition: font-variation-settings 0.7s var(--ease), color 0.5s var(--ease);
}
.discipline p { color: var(--ink-2); max-width: 44ch; font-size: clamp(1.05rem, 1.25vw, 1.2rem); transition: color 0.5s var(--ease); }
.discipline ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s3); font-size: 1rem; }
.discipline li { display: flex; gap: var(--s3); align-items: baseline; }
.discipline li::before { content: ""; flex: none; width: 14px; height: 2px; background: var(--amber); transform: translateY(-4px); }
.discipline.is-current { color: var(--on-night); }
.discipline.is-current::before { transform: scaleY(1); transform-origin: 50% 0; }
.discipline.is-current h3 { color: var(--amber); font-variation-settings: "wdth" 122; }
.discipline.is-current p { color: var(--on-night-2); }

/* At home: the layers every request crosses, simulated with the real rules */
.home { background: var(--night); color: var(--on-night); }
.home .section-head { margin-bottom: var(--s7); }
.home .lead { color: var(--on-night-2); }

.pipeline { position: relative; }
.track { position: relative; height: 128px; border-top: 1px solid var(--rule-night); }
.track canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.track-from, .track-to {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  font-size: 0.8125rem;
  color: var(--on-night-2);
  background: var(--night);
  padding: 0 var(--s2);
  pointer-events: none;
}
.track-from { left: 0; padding-left: 0; }
.track-to { right: 0; padding-right: 0; color: var(--amber); font-weight: 600; }

.stages { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule-night); }
.stage { padding: var(--s6) var(--s6) var(--s7); border-left: 1px solid var(--rule-night); display: flex; flex-direction: column; }
.stage:first-child { border-left: 0; padding-left: 0; }
.stage:last-child { padding-right: 0; }
.stage-count {
  order: -1;
  font-variation-settings: "wdth" 120;
  font-weight: 760;
  font-size: clamp(3rem, 6.4vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  color: var(--signal);
}
.stage-unit { order: -1; margin: var(--s2) 0 var(--s5); font-size: 0.875rem; color: var(--on-night-2); }
.stage.is-served .stage-count { color: var(--on-night); }
.stage h3 { margin-bottom: var(--s3); }
.stage p { color: var(--on-night-2); font-size: 1rem; max-width: 36ch; }
.stage .stops { margin-top: var(--s3); font-size: 0.9375rem; color: var(--on-night); }
.stage.hit .stage-count { animation: hit 0.5s var(--ease); }
@keyframes hit { from { color: #ffd2c7; } }

.pipe-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3) var(--s5);
  padding: var(--s3) 0;
  border-top: 1px solid var(--rule-night);
  border-bottom: 1px solid var(--rule-night);
}
.swarm-btn {
  min-height: 44px;
  padding: 0 var(--s5);
  border: 1.5px solid var(--signal);
  border-radius: 999px;
  background: transparent;
  color: var(--on-night);
  font: 600 0.9375rem var(--font);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.1s;
}
.swarm-btn:hover { background: var(--signal); color: var(--night); }
.swarm-btn:active { transform: scale(0.97); }
.track { cursor: pointer; }
.pipe-event {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s3);
  align-items: baseline;
  min-height: 1.6em;
  margin: 0;
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--on-night-2);
}
.pipe-event b { font-weight: 500; color: var(--on-night); }
.pipe-event .code { color: var(--signal); }
.pipe-event .rule { color: var(--amber); }

.home-foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s5) var(--s8); margin-top: var(--s6); font-size: 0.9375rem; color: var(--on-night-2); }
.home-foot p { max-width: 58ch; }
.home-foot strong { color: var(--on-night); font-weight: 600; }
.home-foot a { color: var(--on-night); }
.home-foot code { font-family: var(--mono); font-size: 0.9em; color: var(--amber); }

/* Method: the heading holds still while the four steps run down a rail that
   fills as you read. The sequence is information, so it is numbered. */
.method { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: var(--s8) clamp(48px, 8vw, 128px); align-items: start; }
.method .section-head { display: block; position: sticky; top: 112px; margin: 0; }
.method .section-head .lead { margin-top: var(--s5); }
.steps { position: relative; margin: 0; padding: 0 0 0 clamp(40px, 5vw, 72px); list-style: none; counter-reset: step; }
.steps::before, .steps::after { content: ""; position: absolute; left: 6px; top: 10px; bottom: 0; width: 2px; background: var(--rule); }
.steps::after { background: var(--ink); transform: scaleY(var(--steps-p, 1)); transform-origin: 50% 0; }
.step { position: relative; counter-increment: step; padding-bottom: clamp(56px, 10vh, 104px); }
.step:last-child { padding-bottom: 0; }
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: var(--s4);
  font-variation-settings: "wdth" 125;
  font-weight: 780;
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--ink-amber);
  font-variant-numeric: tabular-nums;
  transition: color 0.6s var(--ease);
}
.step::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: calc(clamp(40px, 5vw, 72px) * -1);
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 2px var(--ink), 0 0 0 7px var(--paper);
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.step h3 { margin-bottom: var(--s3); font-size: clamp(1.6rem, 2.4vw, 2.25rem); font-variation-settings: "wdth" 114; font-weight: 700; letter-spacing: -0.025em; }
.step p { color: var(--ink-2); max-width: 46ch; font-size: clamp(1.05rem, 1.2vw, 1.15rem); transition: color 0.6s var(--ease); }
.steps.is-live .step:not(.is-on)::before { color: #c3c7c2; }
.steps.is-live .step:not(.is-on)::after { background: var(--paper); box-shadow: 0 0 0 2px #a9aea9, 0 0 0 7px var(--paper); }
.steps.is-live .step:not(.is-on) p { color: #6b717a; }

/* Principles: four commitments on the night field, split by hairlines */
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--on-night); }
.principles div { padding: clamp(32px, 6vh, 64px) clamp(24px, 4vw, 64px) clamp(32px, 6vh, 64px) 0; border-bottom: 1px solid var(--rule-night); }
.principles div:nth-child(even) { padding-left: clamp(24px, 4vw, 64px); padding-right: 0; border-left: 1px solid var(--rule-night); }
.principles dt { margin-bottom: var(--s4); font-size: clamp(1.6rem, 2.8vw, 2.6rem); font-variation-settings: "wdth" 116; font-weight: 720; letter-spacing: -0.03em; line-height: 1; text-wrap: balance; }
.principles dd { margin: 0; color: var(--on-night-2); max-width: 42ch; font-size: clamp(1.05rem, 1.2vw, 1.15rem); }

/* ---------- Close: drenched in amber ---------- */
.close { position: relative; z-index: 5; overflow: hidden; background: var(--amber); color: var(--on-amber); padding: clamp(96px, 14vh, 160px) var(--gutter) var(--s6); }
.close h2 { font-size: clamp(2.8rem, 8.4vw, 8rem); font-variation-settings: "wdth" 120; font-weight: 780; letter-spacing: -0.035em; line-height: 0.95; max-width: 14ch; }
.close-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--s7) var(--s8); margin-top: var(--s8); align-items: end; }
.close .lead { color: var(--on-amber-2); }
.mail { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s4); margin-top: var(--s6); }
.mail a {
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-variation-settings: "wdth" 110;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
}
.mail a:hover { text-decoration-thickness: 4px; }
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  min-height: 44px;
  padding: 0 var(--s4);
  border: 1.5px solid var(--on-amber);
  border-radius: 999px;
  background: transparent;
  color: var(--on-amber);
  font: 600 0.9375rem var(--font);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.copy-btn:hover { background: var(--on-amber); color: var(--amber); }
.copy-btn.is-done { background: var(--on-amber); color: var(--amber); }
.close .notes { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s3); }
.close .notes li { display: flex; gap: var(--s3); align-items: baseline; color: var(--on-amber-2); font-weight: 520; }
.close .notes li::before { content: ""; flex: none; width: 10px; height: 2px; background: var(--on-amber); transform: translateY(-4px); }
.colossus {
  margin: clamp(64px, 12vh, 128px) calc(var(--gutter) * -1) 0;
  font-size: 23.2vw;
  font-variation-settings: "wdth" 125;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 0.74;
  text-align: center;
  white-space: nowrap;
  -webkit-user-select: none;
  user-select: none;
  transform: translateY(calc((1 - var(--close-p, 1)) * 30%));
}
.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s3) var(--s5);
  margin-top: var(--s7);
  padding-top: var(--s5);
  border-top: 1px solid rgba(22, 17, 10, 0.25);
  font-size: 0.875rem;
  color: var(--on-amber-2);
}
.footer a { color: var(--on-amber); }
.close :focus-visible { outline-color: var(--on-amber); }

/* ---------- Honeypot markup: invisible to people and screen readers, kept in the text ---------- */
.hp {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  pointer-events: none;
}

/* ---------- CTF bait page (served at /verify/<token>) ---------- */
.ctf { text-align: left; }
.ctf > div { max-width: 64ch; }
.ctf p { margin: 0 0 var(--s4); max-width: none; }
.ctf h1 { margin-left: 0; }
.ctf pre {
  margin: 0 0 var(--s5);
  padding: var(--s4);
  border-radius: 10px;
  background: var(--night-2);
  box-shadow: 0 0 0 1px var(--rule-night);
  color: var(--amber);
  font: 0.875rem/1.6 var(--mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* ---------- 404 ---------- */
.lost { min-height: 100svh; display: grid; place-items: center; padding: 120px var(--gutter) 64px; background: var(--night); color: var(--on-night); text-align: center; }
.lost-code { font-family: var(--mono); color: var(--amber); font-size: 0.875rem; }
.lost h1 { margin: var(--s4) auto var(--s4); max-width: 16ch; font-size: clamp(2.4rem, 6vw, 4.5rem); }
.lost p { margin: 0 auto var(--s6); max-width: 46ch; color: var(--on-night-2); }
.lost .hero-actions { justify-content: center; justify-self: auto; }
.lost .text-link { color: var(--on-night); }
.lost-eyes { display: flex; justify-content: center; gap: 44px; margin-bottom: var(--s6); }
.lost-eyes i {
  width: 44px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(ellipse 4px 10px at var(--px, 50%) 50%, #080808 90%, transparent 100%), radial-gradient(ellipse at center, #ffc266, var(--amber) 55%, #8a5a12);
  animation: blink 5s infinite;
}
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.08); } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .manifesto { width: min(78vw, 1040px); }
}

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav { gap: var(--s3); }
  .nav-links {
    position: fixed;
    inset: 68px 0 0;
    z-index: -1;
    flex-direction: column;
    gap: 0;
    padding: var(--s6) var(--gutter);
    background: var(--night);
    color: var(--on-night);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), visibility 0.25s;
  }
  .on-paper .nav-links { background: var(--paper); color: var(--ink); }
  .nav-links a { font-size: 2rem; font-variation-settings: "wdth" 115; font-weight: 700; letter-spacing: -0.02em; min-height: 64px; opacity: 1; }
  .menu-open .nav-links { opacity: 1; visibility: visible; }
  .menu-open { overflow: hidden; }
  .menu-open .brandbar { background: var(--night); }
  .menu-open .brandbar.on-paper { background: var(--paper); }
  .section-head, .close-row { grid-template-columns: 1fr; gap: var(--s5); }
  .method { grid-template-columns: 1fr; }
  .method .section-head { position: static; }
  .discipline { grid-template-columns: 1fr; }
  .discipline h3 { grid-row: auto; }
  .hero-copy { grid-template-columns: 1fr; }
  .hero-actions { justify-self: start; }
  .principles { grid-template-columns: 1fr; }
  .principles div, .principles div:nth-child(even) { padding-left: 0; padding-right: 0; border-left: 0; }
}

@media (max-width: 640px) {
  .brandbar { height: 60px; }
  .nav-links { inset: 60px 0 0; }
  .hero-stage { height: 230svh; }
  .manifesto { top: 62%; width: auto; right: var(--gutter); font-size: clamp(2rem, 9.4vw, 3rem); }
  .hero { min-height: 620px; background: radial-gradient(ellipse 120% 50% at 50% 28%, #161c27 0%, var(--night) 70%); }
  .hero h1 { font-size: clamp(2.8rem, 13vw, 4rem); }
  .hero-copy { bottom: 32px; }
  .attack-hint { top: 72px; left: var(--gutter); right: var(--gutter); text-align: left; max-width: none; }
  .shade { background: linear-gradient(0deg, var(--night) 0%, rgba(11, 14, 19, 0.85) 40%, transparent 66%); }
  .track { height: 72px; }
  .stages { grid-template-columns: 1fr; }
  .stage, .stage:first-child { border-left: 0; border-top: 1px solid var(--rule-night); padding: var(--s5) 0; }
  .stage:first-child { border-top: 0; }
  .stage-unit { margin-bottom: var(--s3); }
  .home-foot { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .hero-stage { height: auto; }
  .manifesto { display: none; }
}
