/* =========================================================
   VEGA — styles
   ========================================================= */

:root {
  --bg: #05060a;
  --bg-2: #0a0c14;
  --bg-3: #10131e;
  --ink: #f3efe6;
  --ink-2: rgba(243, 239, 230, 0.66);
  --ink-3: rgba(243, 239, 230, 0.4);
  --line: rgba(243, 239, 230, 0.12);
  --line-2: rgba(243, 239, 230, 0.22);
  --dawn: #ffc28a;
  --dawn-2: #ff9f5a;
  --star: #b9d3ff;
  --star-2: #7fa8ff;
  --ok: #8ef0b8;
  --danger: #ff8f8f;

  --display: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-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(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }

::selection { background: var(--star); color: var(--bg); }

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; list-style: none; }
em { font-style: normal; }
:focus-visible { outline: 1px solid var(--star); outline-offset: 4px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1480px; margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.h2 {
  font-family: var(--display);
  font-size: clamp(2.6rem, 5.8vw, 6.4rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.045em;
  margin-top: 22px;
}
.h2 em { color: var(--star); }
.h2--sm { font-size: clamp(2rem, 3.4vw, 3.4rem); margin-top: 14px; }
.cycle__lede { margin-top: 12px; color: var(--ink-2); font-size: 1rem; }

.lede { color: var(--ink-2); font-size: clamp(1.05rem, 1.3vw, 1.25rem); line-height: 1.55; max-width: 34em; margin-top: 28px; }

/* split text */
.word { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.06em 0.04em 0.14em; margin: -0.06em -0.04em -0.14em; }
.char { display: inline-block; will-change: transform; }
[data-words] .w { transition: none; }

/* ---------- Buttons ---------- */

.btn {
  --h: 52px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: var(--h);
  padding: 0 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  overflow: hidden;
  isolation: isolate;
  white-space: nowrap;
  transition: color 0.5s var(--ease), border-color 0.5s var(--ease);
}
.btn span, .btn svg { position: relative; z-index: 1; }
.btn svg { width: 18px; height: 18px; transition: transform 0.5s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.6s var(--ease);
  z-index: 0;
}
.btn:hover::before { transform: translateY(0); }

.btn--light { background: var(--ink); color: var(--bg); }
.btn--light::before { background: var(--star); }

.btn--line { border: 1px solid var(--line-2); color: var(--ink); }
.btn--line::before { background: var(--ink); }
.btn--line:hover { color: var(--bg); border-color: var(--ink); }

.btn--ghost { border: 1px solid var(--line-2); }
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { color: var(--bg); }

.btn--sm { --h: 40px; padding: 0 18px; font-size: 14px; }
.btn--lg { --h: 62px; padding: 0 34px; font-size: 16px; }
.btn[disabled] { opacity: 0.6; pointer-events: none; }

/* ---------- Loader ---------- */

.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  display: grid;
  place-items: center;
}
.loader__inner { width: min(560px, 84vw); }
.loader__mark {
  display: flex;
  justify-content: space-between;
  font-family: var(--display);
  font-size: clamp(4.5rem, 16vw, 10rem);
  font-weight: 300;
  letter-spacing: -0.05em;
  line-height: 0.9;
  overflow: hidden;
}
.loader__mark span { display: inline-block; }
.loader__meta {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.loader__bar { height: 1px; background: var(--line); margin-top: 12px; overflow: hidden; }
.loader__bar i { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); }

/* ---------- Cursor ---------- */

.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 90; display: none; }
.has-cursor .cursor { display: block; }
.has-cursor body, .has-cursor a, .has-cursor button, .has-cursor label, .has-cursor select { cursor: none; }
.has-cursor input, .has-cursor textarea { cursor: text; }
.cursor__dot, .cursor__ring { position: absolute; top: 0; left: 0; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--ink); }
.cursor__ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 1px solid rgba(243, 239, 230, 0.4);
  display: grid; place-items: center;
  transition: width 0.45s var(--ease), height 0.45s var(--ease), margin 0.45s var(--ease), background 0.45s var(--ease), border-color 0.45s var(--ease);
}
.cursor__label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bg); opacity: 0; transition: opacity 0.3s; }
.cursor.is-hover .cursor__ring { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--ink); border-color: var(--ink); }
.cursor.is-hover .cursor__label { opacity: 1; }
.cursor.is-hover .cursor__dot { opacity: 0; }
.cursor.is-text .cursor__ring { width: 4px; height: 28px; margin: -14px 0 0 -2px; border-radius: 2px; background: var(--ink); }
.cursor { transition: opacity 0.3s; }
.cursor.is-hidden { opacity: 0; }

/* ---------- Grain ---------- */

.grain {
  position: fixed;
  inset: -50%;
  z-index: 80;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); } 40% { transform: translate(3%, -5%); }
  60% { transform: translate(-6%, -2%); } 80% { transform: translate(5%, 4%); } 100% { transform: translate(0, 0); }
}

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px var(--gutter);
  transition: background 0.6s var(--ease), padding 0.6s var(--ease);
}
.nav.is-scrolled { background: rgba(5, 6, 10, 0.55); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); padding-top: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.nav__brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-weight: 500; letter-spacing: 0.32em; font-size: 14px; }
.nav__star { width: 18px; height: 18px; color: var(--star); filter: drop-shadow(0 0 8px rgba(185, 211, 255, 0.8)); animation: spin 24s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.nav__links { display: flex; gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: rgba(10, 12, 20, 0.4); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav__links a { font-size: 14px; color: var(--ink-2); padding: 7px 14px; border-radius: 999px; transition: color 0.3s, background 0.3s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); background: rgba(243, 239, 230, 0.08); }
.nav__toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 50%; position: relative; }
.nav__toggle i { position: absolute; left: 12px; right: 12px; height: 1px; background: var(--ink); transition: transform 0.5s var(--ease); }
.nav__toggle i:first-child { top: 16px; }
.nav__toggle i:last-child { top: 23px; }
.nav__toggle[aria-expanded="true"] i:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] i:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 0 var(--gutter);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
}
.menu a { font-family: var(--display); font-size: clamp(2.2rem, 10vw, 3.4rem); font-weight: 300; letter-spacing: -0.04em; line-height: 1.15; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero__sky { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 70% at 50% 120%, rgba(255, 159, 90, 0.14), transparent 60%), linear-gradient(180deg, transparent 60%, var(--bg));
  pointer-events: none;
}
.hero__content { padding: 140px var(--gutter) 0; width: 100%; max-width: 1480px; margin: 0 auto; }
.hero__eyebrow { color: var(--ink-2); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(142, 240, 184, 0.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(142, 240, 184, 0.55); } 70% { box-shadow: 0 0 0 10px rgba(142, 240, 184, 0); } 100% { box-shadow: 0 0 0 0 rgba(142, 240, 184, 0); } }

.hero__title {
  font-family: var(--display);
  /* Capped so each line always fits on one row; the longest line is ~10.1em wide. */
  font-size: min(clamp(2.8rem, 7.2vw, 7.8rem), calc((100vw - 2 * var(--gutter)) / 10.4));
  white-space: nowrap;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.05em;
  margin-top: 28px;
}
.hero__title em:first-of-type { color: var(--dawn); }
.hero__title em:last-of-type { color: var(--star); }

.hero__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-top: 44px; flex-wrap: wrap; }
.hero__lede { max-width: 30em; color: var(--ink-2); font-size: clamp(1rem, 1.2vw, 1.15rem); }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.acronym {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  max-width: 1480px;
  margin: 56px auto 0;
  padding: 0 var(--gutter);
}
.acronym li {
  border-top: 1px solid var(--line);
  padding: 22px 0 34px;
  display: flex;
  align-items: baseline;
  font-family: var(--display);
  font-size: clamp(1rem, 1.6vw, 1.5rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--ink-3);
  overflow: hidden;
}
.acronym li + li { padding-left: 18px; border-left: 1px solid var(--line); }
.acronym b { font-weight: 400; color: var(--ink); font-size: 1.5em; line-height: 1; }
.acronym span { display: inline-block; }

.hero__scroll {
  position: absolute; right: var(--gutter); top: 50%;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-3);
  writing-mode: vertical-rl;
}
.hero__scroll i { width: 1px; height: 64px; background: linear-gradient(var(--ink-3), transparent); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ''; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--ink); animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { to { top: 110%; } }
.hero__coords { position: absolute; top: 112px; right: var(--gutter); text-align: right; color: var(--ink-3); font-size: 11px; line-height: 1.8; }

/* ---------- Manifesto ---------- */

.manifesto { padding: clamp(120px, 18vw, 240px) 0 clamp(100px, 14vw, 200px); }
.manifesto__text {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.6vw, 3.8rem);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin-top: 36px;
  max-width: 1200px;
}
[data-words] .w { opacity: 0.14; display: inline; }

/* ---------- Marquee ---------- */

.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; }
.marquee__track { display: flex; align-items: center; gap: 48px; width: max-content; font-family: var(--display); font-size: clamp(2.6rem, 5.6vw, 5.4rem); font-weight: 300; letter-spacing: -0.04em; line-height: 1; white-space: nowrap; will-change: transform; }
.marquee__track span:nth-of-type(odd) { color: transparent; -webkit-text-stroke: 1px var(--ink-3); }
.marquee__track i { font-style: normal; font-size: 0.4em; color: var(--star); }

/* ---------- Pillars ---------- */

.pillars { padding-top: clamp(120px, 14vw, 200px); }
.pillars__intro { margin-bottom: 40px; }
.pillars__pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; }
.pillars__track { display: flex; gap: 3vw; padding: 0 var(--gutter); will-change: transform; }
.pillar {
  --c: hsl(var(--hue) 95% 78%);
  position: relative;
  flex: 0 0 auto;
  width: min(82vw, 1180px);
  height: min(72vh, 680px);
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  align-items: center;
  gap: 4vw;
  padding: clamp(28px, 4vw, 64px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(80% 90% at 0% 100%, hsl(var(--hue) 80% 50% / 0.12), transparent 60%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.005));
  overflow: hidden;
}
.pillar::before {
  content: '';
  position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(140deg, hsl(var(--hue) 90% 75% / 0.5), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.pillar__letter {
  font-family: var(--display);
  font-size: clamp(12rem, 40vh, 30rem);
  font-weight: 300;
  letter-spacing: -0.06em;
  line-height: 0.8;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1.5px hsl(var(--hue) 90% 78% / 0.6);
  background-image: linear-gradient(180deg, var(--c), hsl(var(--hue) 90% 60% / 0.1));
  background-repeat: no-repeat;
  background-position: bottom;
  background-size: 100% 0%;
  -webkit-background-clip: text;
  background-clip: text;
  user-select: none;
}
.pillar__num { color: var(--c); }
.pillar__title { font-family: var(--display); font-size: clamp(2.2rem, 3.8vw, 3.8rem); font-weight: 300; line-height: 1; margin-top: 16px; letter-spacing: -0.05em; }
.pillar__owner { margin-top: 16px; font-size: 14px; color: var(--ink-2); }
.pillar__owner span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-right: 8px; }
.pillar__desc { margin-top: 22px; color: var(--ink-2); font-size: clamp(1rem, 1.15vw, 1.12rem); max-width: 32em; }
.pillar__list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.pillar__list li { font-size: 13px; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); }
.pillar__artifact { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-family: var(--display); font-size: 1.3rem; font-weight: 400; letter-spacing: -0.03em; }
.pillar__artifact span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c); margin-right: 10px; vertical-align: middle; }
.pillars__progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 6vh; height: 1px; background: var(--line); }
.pillars__progress i { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); }

/* ---------- Cycle ---------- */

.cycle { position: relative; margin-top: clamp(80px, 10vw, 140px); }
.cycle__pin {
  --sky-top: #1b2a4a;
  --sky-bot: #e8935a;
  --glow: 0.7;
  --glow-y: 60%;
  --stars: 0;
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 680px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 116px 0 28px;
}
.cycle__sky { position: absolute; inset: 0; background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bot) 130%); z-index: 0; }
.cycle__sky::after { content: ''; position: absolute; inset: 0; background: radial-gradient(90% 70% at 50% 50%, transparent 40%, rgba(5, 6, 10, 0.55)), linear-gradient(180deg, var(--bg) 0%, transparent 14%, transparent 86%, var(--bg) 100%); }
.cycle__glow { position: absolute; left: 50%; top: var(--glow-y); width: 120vmax; height: 120vmax; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(255, 196, 140, 0.32), rgba(255, 150, 90, 0.08) 30%, transparent 55%); opacity: var(--glow); }
.cycle__stars { position: absolute; top: 0; left: 0; width: 1px; height: 1px; opacity: var(--stars); }
.cycle__head, .cycle__grid, .cycle__rail { position: relative; z-index: 1; }

.cycle__grid { flex: 1; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 4vw; min-height: 0; }
.cycle__dial { position: relative; width: min(60vh, 40vw, 600px); aspect-ratio: 1; justify-self: center; }
.dial { width: 100%; height: 100%; overflow: visible; }
.dial__ticks line { stroke: rgba(243, 239, 230, 0.25); stroke-width: 1; }
.dial__ticks line.major { stroke: rgba(243, 239, 230, 0.7); stroke-width: 1.5; }
.dial__arcs path { fill: none; stroke-linecap: butt; }
.dial__labels text { fill: rgba(243, 239, 230, 0.55); font-family: var(--mono); font-size: 13px; text-anchor: middle; dominant-baseline: middle; letter-spacing: 0.05em; }
.dial__inner { fill: rgba(5, 6, 10, 0.35); stroke: rgba(243, 239, 230, 0.12); }
.dial__needle { stroke: rgba(243, 239, 230, 0.85); stroke-width: 1.2; }
.dial__tip { fill: #fff; }
.dial__center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; pointer-events: none; }
.dial__clock { font-size: clamp(2.4rem, 5vw, 4.4rem); letter-spacing: -0.02em; text-transform: none; font-weight: 400; line-height: 1; font-variant-numeric: tabular-nums; }
.dial__mode { color: var(--dawn); font-size: 11px; letter-spacing: 0.14em; transition: color 0.6s; }
.dial__mode.is-night { color: var(--star); }
.dial__cycle { color: var(--ink-3); font-size: 11px; }

.cycle__info { display: flex; flex-direction: column; gap: 28px; max-width: 560px; }
.cycle__phases { position: relative; min-height: 250px; }
.phase { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); pointer-events: none; }
.phase.is-active { opacity: 1; transform: none; pointer-events: auto; }
.phase__time { color: var(--ink-3); }
.phase__title { font-family: var(--display); font-size: clamp(1.9rem, 2.8vw, 2.8rem); font-weight: 300; line-height: 1.05; margin-top: 10px; letter-spacing: -0.045em; }
.phase__desc { color: var(--ink-2); margin-top: 14px; font-size: 1.04rem; }
.phase__who { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.phase__who span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--dawn); }
.phase__who span.is-ai { color: var(--star); border-color: rgba(185, 211, 255, 0.35); }

.terminal {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(5, 6, 10, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  opacity: 0.35;
  transition: opacity 0.8s var(--ease), border-color 0.8s;
}
.terminal.is-live { opacity: 1; border-color: rgba(185, 211, 255, 0.28); box-shadow: 0 30px 80px -30px rgba(127, 168, 255, 0.35); }
.terminal__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.terminal__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.terminal__bar span { margin-left: 8px; color: var(--ink-3); font-size: 10px; }
.terminal__body { padding: 12px 14px; height: 150px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; text-transform: none; font-size: 11.5px; letter-spacing: 0; line-height: 1.75; }
.terminal__body p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); display: none; }
.terminal__body p.is-on { display: block; animation: line-in 0.5s var(--ease); }
.terminal__body b { color: var(--star); font-weight: 400; margin-right: 8px; }
.terminal__body em { color: var(--ok); font-style: normal; }
@keyframes line-in { from { opacity: 0; transform: translateY(6px); } }
.terminal__stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.terminal__stats div { padding: 10px 14px; }
.terminal__stats div + div { border-left: 1px solid var(--line); }
.terminal__stats span { display: block; font-size: 9.5px; color: var(--ink-3); }
.terminal__stats .terminal__tail { display: inline; }
.terminal__stats b { font-family: var(--display); font-weight: 300; letter-spacing: -0.04em; font-size: 1.7rem; line-height: 1.1; font-variant-numeric: tabular-nums; }

.cycle__rail { margin-top: 16px; }
.rail__track { height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.rail__fill { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--dawn), var(--dawn-2) 45%, var(--star-2) 52%, var(--star)); transform-origin: left; transform: scaleX(0); }
.rail__labels { position: relative; height: 28px; margin-top: 10px; }
.rail__labels span { position: absolute; left: calc(var(--s) / 24 * 100%); width: calc(var(--w) / 24 * 100%); padding-left: 6px; border-left: 1px solid var(--line-2); color: var(--ink-3); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.4s; }
.rail__labels span.is-active { color: var(--ink); }

@media (min-width: 901px) and (max-height: 820px) {
  .cycle__head .h2, .cycle__lede { display: none; }
  .cycle__pin { padding-top: 104px; }
  .terminal__body { height: 104px; }
  .cycle__phases { min-height: 230px; }
  .phase__desc { font-size: 0.96rem; }
}

/* ---------- Catalogue ---------- */

.catalogue { padding: clamp(120px, 14vw, 220px) 0; }
.catalogue__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 6vw; align-items: center; }
.catalogue__grid > *, .cycle__grid > * { min-width: 0; }
.checks { margin-top: 36px; display: grid; gap: 18px; max-width: 34em; }
.checks li { position: relative; padding-left: 34px; color: var(--ink-2); }
.checks li::before { content: '✦'; position: absolute; left: 0; top: 0; color: var(--star); }
.checks b { color: var(--ink); font-weight: 500; }

.catalogue__stage { position: relative; perspective: 1600px; min-height: 640px; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; }
.cat-card {
  position: relative;
  width: min(100%, 560px);
  border-radius: 22px;
  border: 1px solid var(--line-2);
  background: linear-gradient(160deg, rgba(22, 26, 40, 0.92), rgba(10, 12, 20, 0.96));
  box-shadow: 0 50px 120px -40px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform-style: preserve-3d;
}
.cat-card--back, .cat-card--mid { position: absolute; height: 82%; }
.cat-card--back { transform: translate3d(0, -60px, -160px) rotateX(8deg); opacity: 0.35; }
.cat-card--mid { transform: translate3d(0, -30px, -80px) rotateX(4deg); opacity: 0.6; }
.cat-card--front { padding: 28px; }
.cat-card__head { display: flex; justify-content: space-between; align-items: center; color: var(--ink-3); }
.chip { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); }
.chip--live { color: var(--ok); border-color: rgba(142, 240, 184, 0.3); }
.chip--live i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); animation: pulse 2s infinite; }
.cat-card__title { font-family: var(--display); font-size: 1.9rem; font-weight: 400; line-height: 1.05; margin-top: 18px; letter-spacing: -0.04em; }
.cat-card__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; color: var(--ink-3); font-size: 10.5px; }
.cat-card__ms { margin-top: 22px; border-top: 1px solid var(--line); }
.cat-card__ms li { display: flex; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.cat-card__ms li span { color: var(--star); font-size: 11px; width: 22px; }
.cat-card__ms li em { margin-left: auto; font-style: normal; color: var(--ink-3); font-size: 10.5px; }
.cat-card__code { margin: 20px 0 0; padding: 16px; border-radius: 12px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); font-size: 11.5px; line-height: 1.7; text-transform: none; letter-spacing: 0; color: var(--ink-2); white-space: pre; overflow-x: auto; }
.cat-card__code .k { color: var(--star); }
.cat-card__code .s { color: var(--dawn); }
.cat-card__code .c { color: var(--ink-3); }

/* ---------- Team ---------- */

.roles { padding: clamp(80px, 10vw, 140px) 0; }

.crew {
  position: relative;
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  margin-top: 64px;
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  isolation: isolate;
}
.crew__day, .crew__night { position: relative; display: flex; flex-direction: column; align-items: center; gap: 20px; padding: clamp(24px, 3vw, 44px); }
.crew__day { background: radial-gradient(110% 90% at 35% 0%, rgba(255, 194, 138, 0.1), transparent 60%), rgba(255, 255, 255, 0.012); }
.crew__night {
  --agent: 180px;
  justify-content: center;
  text-align: center;
  border-left: 1px solid rgba(185, 211, 255, 0.2);
  background: radial-gradient(90% 70% at 50% 45%, rgba(127, 168, 255, 0.16), transparent 65%), linear-gradient(180deg, #070a18, #05060d);
}
.crew__night::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(1px 1px at 12% 20%, rgba(243,239,230,.7), transparent), radial-gradient(1px 1px at 78% 14%, rgba(185,211,255,.8), transparent),
    radial-gradient(1px 1px at 30% 72%, rgba(243,239,230,.5), transparent), radial-gradient(1px 1px at 88% 64%, rgba(243,239,230,.6), transparent),
    radial-gradient(1px 1px at 55% 88%, rgba(243,239,230,.4), transparent), radial-gradient(1px 1px at 18% 52%, rgba(185,211,255,.5), transparent);
  pointer-events: none;
}
.crew__zone { align-self: flex-start; color: var(--dawn); font-size: 11px; position: relative; }
.crew__zone--night { color: var(--star); position: absolute; top: clamp(24px, 3vw, 44px); left: clamp(24px, 3vw, 44px); }

/* The three roles orbit the catalogue; each card counter-rotates so its text stays upright. */
.system { --orbit: 35%; --period: 90s; position: relative; width: min(460px, 100%); aspect-ratio: 1; z-index: 2; }
.system__ring { position: absolute; inset: calc(50% - var(--orbit)); border-radius: 50%; border: 1px dashed rgba(255, 220, 180, 0.3); }
.system__ring--inner { inset: 30%; border: 1px solid rgba(255, 220, 180, 0.12); }
.system__ring--outer { inset: 2%; border: 1px solid rgba(243, 239, 230, 0.06); }
.system__arm { position: absolute; inset: 0; rotate: var(--a); animation: orbit var(--period) linear infinite; pointer-events: none; }
/* A zero-size anchor on the ring; it counter-rotates and its card stays centered on it. */
.system__body {
  position: absolute; left: 50%; top: calc(50% - var(--orbit));
  width: 0; height: 0;
  display: flex; align-items: center; justify-content: center;
  rotate: calc(var(--a) * -1);
  animation: orbit-upright var(--period) linear infinite;
}
.system__card {
  --c: 255, 194, 138;
  flex: none;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 10px 16px 11px;
  text-align: center; white-space: nowrap;
  border: 1px solid rgba(var(--c), 0.45);
  border-radius: 16px;
  background: rgba(10, 8, 6, 0.72);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 0 30px rgba(var(--c), 0.12);
  pointer-events: auto;
}
.system__card::before { content: ''; width: 7px; height: 7px; margin-bottom: 4px; border-radius: 50%; background: rgb(var(--c)); box-shadow: 0 0 10px 2px rgba(var(--c), 0.6); }
.system__card span { font-size: clamp(0.88rem, 1.1vw, 1rem); letter-spacing: -0.02em; color: var(--ink); }
.system__card em { font-size: 11px; color: rgb(var(--c)); }
.system__card--e { --c: 255, 159, 90; }
.system__card--a { --c: 201, 149, 255; }
@keyframes orbit { to { rotate: calc(var(--a) + 360deg); } }
@keyframes orbit-upright { to { rotate: calc(var(--a) * -1 - 360deg); } }

/* Side by side: the catalogue core and the agent star share the panels' midline, so the loop runs level. */
@media (min-width: 901px) {
  .crew__day { justify-content: center; padding-block: clamp(56px, 6vw, 88px); }
  .crew__day .crew__zone { position: absolute; top: clamp(24px, 3vw, 44px); left: clamp(24px, 3vw, 44px); }
}
.system__core {
  position: absolute; left: 50%; top: 50%;
  width: 25%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: grid; place-items: center;
  text-align: center;
  background: radial-gradient(circle, #1a1410, #0a0806);
  border: 1px solid rgba(255, 220, 180, 0.6);
  box-shadow: 0 0 40px rgba(255, 194, 138, 0.25);
  z-index: 3;
}
.system__core b { font-weight: 400; font-size: 10px; color: var(--ink); line-height: 1.4; padding: 0 8px; }

.agent { position: relative; width: var(--agent); aspect-ratio: 1; display: grid; place-items: center; z-index: 2; }
.agent__ring { position: absolute; inset: 8%; border-radius: 50%; border: 1px dashed rgba(185, 211, 255, 0.35); animation: spin 40s linear infinite; }
.agent__ring--2 { inset: 27%; border: 1px solid rgba(185, 211, 255, 0.18); animation-duration: 22s; animation-direction: reverse; }
.agent__star { position: relative; z-index: 3; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 0 24px 8px rgba(210, 228, 255, 0.7), 0 0 90px 40px rgba(127, 168, 255, 0.22); }
/* Out of flow, so the agent's star sits at the panel's vertical center. */
.agent__title { font-family: var(--display); font-weight: 300; font-size: clamp(1.6rem, 2.4vw, 2.2rem); letter-spacing: -0.04em; position: absolute; left: 0; right: 0; top: calc(50% + var(--agent) / 2 + 12px); z-index: 3; }

.crew__orbit { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; overflow: visible; }
.crew__dot { fill: #fff; filter: drop-shadow(0 0 6px rgba(210, 228, 255, 0.95)); }
.orbit__label {
  position: absolute; z-index: 4;
  transform: translate(-50%, -50%);
  font-size: 10px; white-space: nowrap;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(5, 6, 10, 0.85);
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  pointer-events: none;
}

/* ---------- Compare ---------- */

.compare { padding: clamp(80px, 10vw, 140px) 0; }
.table { margin-top: 64px; border-top: 1px solid var(--line-2); }
.table__row { display: grid; grid-template-columns: 1fr 1.2fr 1.6fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.table__row > span:first-child { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.table__row > span:nth-child(2) { color: var(--ink-3); text-decoration: line-through; text-decoration-color: rgba(243, 239, 230, 0.2); font-size: 1.05rem; }
.table__row > span:nth-child(3) { font-family: var(--display); font-size: clamp(1.15rem, 1.7vw, 1.55rem); font-weight: 400; line-height: 1.25; letter-spacing: -0.025em; }
.table__row--head > span { font-family: var(--mono) !important; font-size: 12px !important; text-decoration: none !important; color: var(--ink-3) !important; }
.table__row--head > span:nth-child(3) { color: var(--star) !important; }

/* ---------- Workshops ---------- */

.workshops { padding: clamp(100px, 12vw, 180px) 0; position: relative; overflow-x: clip; }
.workshops::before { content: ''; position: absolute; left: 50%; top: 0; width: min(1200px, 100%); height: 800px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(127, 168, 255, 0.08), transparent); pointer-events: none; }
.workshops__head { max-width: 900px; }

.offers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 64px; }
.offer {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  padding: 26px 24px 22px;
  min-height: 320px;
  text-align: left;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.4s, background 0.4s, transform 0.5s var(--ease);
}
.offer:hover { border-color: var(--line-2); background: rgba(255, 255, 255, 0.035); }
.offer:active { transform: scale(0.985); }
.offer.is-selected { border-color: rgba(185, 211, 255, 0.55); background: rgba(127, 168, 255, 0.07); }
.offer__toggle {
  position: absolute; top: 18px; right: 18px;
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  transition: background 0.35s var(--ease), border-color 0.35s, transform 0.5s var(--ease);
}
.offer__toggle::before { content: '+'; font-size: 18px; line-height: 1; color: var(--ink-2); transition: transform 0.4s var(--ease); }
.offer:hover .offer__toggle { border-color: var(--ink-3); }
.offer.is-selected .offer__toggle { background: var(--star); border-color: var(--star); }
.offer.is-selected .offer__toggle::before { content: '✓'; font-size: 14px; color: var(--bg); }
.offer__meta { display: flex; gap: 10px; flex-wrap: wrap; color: var(--ink-3); font-size: 10.5px; padding-right: 40px; }
.offer__meta span + span::before { content: '·'; margin-right: 10px; }
.offer__body { display: block; margin-top: auto; padding-top: 48px; }
.offer__name { display: block; font-family: var(--display); font-size: 1.6rem; font-weight: 400; line-height: 1.1; letter-spacing: -0.04em; }
.offer__desc { display: block; color: var(--ink-2); font-size: 0.95rem; margin-top: 12px; }
.offer__add { display: block; margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 11px; color: var(--ink-2); }
.offer__add-on { display: none; color: var(--star); }
.offer.is-selected .offer__add-off { display: none; }
.offer.is-selected .offer__add-on { display: inline; }
.offer--wide { grid-column: 1 / -1; min-height: 0; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "meta toggle" "body add"; column-gap: 40px; align-items: end; background: linear-gradient(100deg, rgba(255, 194, 138, 0.06), rgba(127, 168, 255, 0.06)); }
.offer--wide .offer__meta { grid-area: meta; }
.offer--wide .offer__body { grid-area: body; padding-top: 24px; }
.offer--wide .offer__name { font-size: clamp(1.8rem, 2.8vw, 2.5rem); }
.offer--wide .offer__desc { max-width: 40em; }
.offer--wide .offer__add { grid-area: add; border-top: 0; padding-top: 0; white-space: nowrap; }
.offer--wide.is-selected { background: linear-gradient(100deg, rgba(255, 194, 138, 0.12), rgba(127, 168, 255, 0.14)); }

.request-bar { position: sticky; bottom: 20px; z-index: 20; margin-top: 24px; }
.request-bar__inner {
  display: flex; align-items: center; gap: 16px;
  max-width: 920px; margin: 0 auto;
  padding: 10px 10px 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(10, 12, 20, 0.86);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.9);
}
.request-bar__count { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--star); color: var(--bg); transition: background 0.3s, color 0.3s; }
.request-bar__list { flex: 1; min-width: 0; color: var(--ink); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.request-bar.is-empty .request-bar__count { background: var(--line-2); color: var(--ink-2); }
.request-bar.is-empty .request-bar__list { color: var(--ink-3); }
.request-bar.is-empty .request-bar__go { opacity: 0.4; pointer-events: none; }

.form {
  position: relative;
  margin-top: 80px;
  padding: clamp(24px, 4vw, 56px);
  border-radius: 28px;
  border: 1px solid var(--line-2);
  background: linear-gradient(160deg, rgba(20, 24, 38, 0.75), rgba(8, 10, 16, 0.85));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
}
.form__head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.form__title { font-family: var(--display); font-size: clamp(1.9rem, 3.2vw, 2.8rem); font-weight: 300; line-height: 1; letter-spacing: -0.045em; }
.form__note { color: var(--ink-3); font-size: 11px; }
.form__group { border: 0; margin: 0; padding: 32px 0 0; min-width: 0; }
.form__legend { padding: 0; color: var(--ink-3); margin-bottom: 18px; font-size: 11px; }

.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice input, .segmented input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-block; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; color: var(--ink-2); transition: all 0.35s var(--ease); }
.choice:hover span { border-color: var(--ink-3); color: var(--ink); }
.choice input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.choice--all input:checked + span { background: var(--star); border-color: var(--star); }
.choice input:focus-visible + span, .segmented input:focus-visible + span { outline: 1px solid var(--star); outline-offset: 3px; }

.fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 24px; }
.form__group:nth-of-type(3) .fields { grid-template-columns: repeat(3, 1fr); }
.field { position: relative; display: block; }
.field input, .field select, .field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  color: var(--ink);
  font: inherit;
  font-size: 1.05rem;
  padding: 26px 0 10px;
  outline: none;
  border-radius: 0;
  transition: border-color 0.4s;
  appearance: none;
  -webkit-appearance: none;
}
.field select { padding-right: 24px; }
.field select option { background: var(--bg-2); color: var(--ink); }
.field--select::after { content: ''; position: absolute; right: 4px; top: 34px; width: 7px; height: 7px; border-right: 1px solid var(--ink-3); border-bottom: 1px solid var(--ink-3); transform: rotate(45deg); pointer-events: none; }
.field textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.field > span { position: absolute; left: 0; top: 26px; color: var(--ink-3); font-size: 1.05rem; pointer-events: none; transform-origin: left top; transition: transform 0.45s var(--ease), color 0.3s; }
.field input:focus ~ span, .field input:not(:placeholder-shown) ~ span,
.field textarea:focus ~ span, .field textarea:not(:placeholder-shown) ~ span,
.field--select > span { transform: translateY(-22px) scale(0.72); color: var(--ink-3); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--star); }
.field input:focus ~ span, .field textarea:focus ~ span, .field select:focus ~ span { color: var(--star); }
.field.has-error input, .field.has-error select { border-color: var(--danger); }
.field__error { display: block; min-height: 18px; margin-top: 6px; font-size: 12px; font-style: normal; color: var(--danger); }

.segmented { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.segmented__label { color: var(--ink-3); font-size: 11px; margin-right: 10px; }
.segmented label span { display: inline-block; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; color: var(--ink-2); transition: all 0.35s var(--ease); }
.segmented label:hover span { color: var(--ink); border-color: var(--ink-3); }
.segmented input:checked + span { background: var(--star); color: var(--bg); border-color: var(--star); }
.segmented .field__error { flex-basis: 100%; }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.form__status { color: var(--ink-2); font-size: 14px; min-height: 1.4em; }
.form__status.is-error { color: var(--danger); }

.form__success {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  background: radial-gradient(60% 60% at 50% 40%, rgba(127, 168, 255, 0.16), transparent), rgba(7, 8, 14, 0.96);
  visibility: hidden;
  opacity: 0;
}
.success__star { width: 72px; height: 72px; color: var(--star); filter: drop-shadow(0 0 24px rgba(185, 211, 255, 0.9)); }
.form__success h3 { font-family: var(--display); font-size: clamp(2.2rem, 4vw, 3.6rem); font-weight: 300; letter-spacing: -0.05em; line-height: 1; margin-top: 28px; }
.form__success p { color: var(--ink-2); max-width: 30em; margin-top: 16px; }
.form__success b { color: var(--ink); font-weight: 500; font-size: 14px; }
.success__again { margin-top: 28px; }

/* ---------- Closer ---------- */

.closer { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; text-align: center; isolation: isolate; }
.closer__sky { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.closer::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--bg), transparent 30%, transparent 70%, var(--bg)); pointer-events: none; }
.closer__inner { display: flex; flex-direction: column; align-items: center; }
.closer__title { font-family: var(--display); font-size: clamp(2.6rem, 6.8vw, 7.6rem); font-weight: 300; line-height: 0.98; letter-spacing: -0.055em; margin: 28px 0 48px; }
.closer__title em { color: var(--star); }

/* ---------- Footer ---------- */

.footer { border-top: 1px solid var(--line); padding: 32px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--ink-3); }
.footer__brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--mono); letter-spacing: 0.32em; font-size: 13px; }
.footer__brand svg { width: 16px; height: 16px; color: var(--star); }
.footer .mono { font-size: 11px; }
.footer__copy a { color: var(--ink-2); transition: color 0.3s; }
.footer__copy a:hover { color: var(--ink); }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .offers { grid-template-columns: repeat(2, 1fr); }
  .catalogue__grid { grid-template-columns: 1fr; }
  .catalogue__stage { min-height: 0; padding-top: 70px; }
}

@media (max-width: 900px) {
  .nav__links, .nav > .btn { display: none; }
  .nav__toggle { display: block; }
  .hero__scroll, .hero__coords { display: none; }

  .pillars__pin { height: auto; display: block; overflow: visible; }
  .pillars__track { flex-direction: column; gap: 14px; }
  .pillar { width: 100%; height: auto; grid-template-columns: 1fr; gap: 0; }
  .pillar__letter { font-size: 8rem; text-align: left; line-height: 0.85; margin-bottom: 8px; }
  .pillars__progress { display: none; }

  /* Pinned, so the heading, dial, phase, terminal and rail share one screen. */
  .cycle__pin { height: 100svh; min-height: 0; padding: 84px 0 16px; }
  .cycle__head .h2 { font-size: 1.7rem; margin-top: 8px; }
  .cycle__lede { font-size: 0.86rem; margin-top: 6px; line-height: 1.45; }
  .cycle__grid { flex: none; grid-template-columns: 1fr; gap: 12px; align-content: start; margin-top: 12px; }
  .cycle__dial { width: clamp(120px, calc(100svh - 630px), min(66vw, 300px)); }
  .dial__clock { font-size: clamp(1.6rem, 9vw, 2.6rem); }
  .cycle__info { gap: 12px; }
  .cycle__phases { min-height: 150px; }
  .phase__title { font-size: 1.6rem; margin-top: 6px; }
  .phase__desc { font-size: 0.92rem; margin-top: 8px; line-height: 1.45; }
  .phase__who { margin-top: 10px; }
  .terminal__bar { padding: 8px 14px; }
  .terminal__body { height: 76px; padding: 6px 14px; font-size: 10.5px; line-height: 16px; -webkit-mask-image: linear-gradient(180deg, transparent, #000 22px); mask-image: linear-gradient(180deg, transparent, #000 22px); }
  .terminal__body p { white-space: normal; overflow: visible; }
  .terminal__body p.is-on { flex: none; }
  .terminal__stats div { padding: 6px 14px; }
  .terminal__stats span { white-space: nowrap; }
  .terminal__stats b { font-size: 1.3rem; }
  .terminal__stats .terminal__tail, .crew__zone-tail { display: none; }
  .cycle__rail { margin-top: 12px; }
  .rail__labels span { font-size: 8.5px; padding-left: 3px; }

  .crew { grid-template-columns: 1fr; }
  .crew__night { border-left: 0; border-top: 1px solid rgba(185, 211, 255, 0.2); padding-top: 72px; }
  .system { --orbit: 37%; width: min(380px, 100%); }
  .system__core { width: 21%; }
  .system__card { width: 112px; padding: 7px 8px 8px; white-space: normal; }
  .system__card span { font-size: 0.8rem; line-height: 1.15; }
  .system__card em { font-size: 9.5px; line-height: 1.3; }
  .crew__night { --agent: 140px; min-height: 420px; padding-bottom: 72px; }
  .table__row { grid-template-columns: 1fr 1fr; gap: 6px 16px; }
  .table__row > span:first-child { grid-column: 1 / -1; }
  .fields, .form__group:nth-of-type(3) .fields { grid-template-columns: 1fr; }
  .offer--wide { grid-template-columns: 1fr; grid-template-areas: "meta" "body" "add"; }
  .offer--wide .offer__add { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 18px; }
  .request-bar__list { white-space: normal; font-size: 13px; line-height: 1.35; }
  .request-bar__inner { border-radius: 22px; }
}

@media (max-width: 900px) and (max-height: 720px) {
  .cycle__lede, .terminal__stats { display: none; }
  .cycle__dial { width: clamp(120px, calc(100svh - 520px), 66vw); }
}

@media (max-width: 900px) and (max-height: 559px) {
  .cycle__pin { height: auto; min-height: 100svh; }
}

@media (max-width: 600px) {
  .offers { grid-template-columns: 1fr; }
  .offer { min-height: 0; }
  .offer__body { padding-top: 32px; }
  .acronym { grid-template-columns: repeat(2, 1fr); margin-top: 48px; }
  .acronym li:nth-child(3) { border-left: 0; padding-left: 0; }
  .acronym li { padding: 16px 0 18px; }
  .hero__ctas, .hero__ctas .btn { width: 100%; justify-content: center; }
  .terminal__stats b { font-size: 1.4rem; }
  .cat-card--front { padding: 20px; }
  .rail__labels span:nth-child(1) { visibility: hidden; }
  .form__foot .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .nav__star, .pulse, .hero__scroll i::after, .system__arm, .system__body { animation: none; }
  .loader { display: none; }
}

/* ---------- Section jump veil ---------- */

.veil { position: fixed; inset: 0; z-index: 58; background: var(--bg); opacity: 0; visibility: hidden; pointer-events: none; }
