/* ===========================================================
   DVIBE — editorial site styles
   =========================================================== */

:root {
  --bg: #F6F2EA;
  --bg-2: #EDE6D8;
  --bg-deep: #14110E;
  --ink: #11100F;
  --ink-soft: #3D3833;
  --ink-dim: #7A7468;
  --rule: #D8D1C0;
  --rule-soft: #E8E2D2;

  --accent: #D97757;
  --accent-2: #C25E3F;
  --accent-deep: #9A4628;
  --accent-soft: #F5E5DC;

  --grad: linear-gradient(135deg, #C25E3F 0%, #D97757 50%, #E89175 100%);
  --grad-flat: #D97757;
  --grad-soft: rgba(217,119,87,0.10);
  --grad-deep: var(--bg-deep);

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;

  --max: 1440px;
  --gutter: clamp(24px, 4vw, 72px);
  --ease: cubic-bezier(0.2, 0.9, 0.2, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 { margin: 0; font-weight: 500; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }
strong { font-weight: 600; }

/* ---------- GRAIN ---------- */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 200;
  opacity: 0.04; mix-blend-mode: multiply;
  background-image:
    radial-gradient(rgba(60,40,20,0.6) 1px, transparent 1px),
    radial-gradient(rgba(60,40,20,0.5) 1px, transparent 1px);
  background-size: 3px 3px, 5px 5px;
  background-position: 0 0, 1px 2px;
}

/* Subtle aurora wash behind the whole page */
body::before {
  content: "";
  position: fixed; inset: 0;
  background: transparent;
  pointer-events: none;
  z-index: 0;
}
main, footer, header { position: relative; z-index: 1; }

/* ---------- SCROLL PROGRESS ---------- */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  background: transparent; z-index: 300;
}
.progress__bar {
  height: 100%; width: 0%;
  background: var(--grad);
  transition: width 60ms linear;
}

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 22px var(--gutter); z-index: 100;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em;
  background: linear-gradient(to bottom, rgba(242,237,227,0.85), rgba(242,237,227,0));
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.nav__brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { color: var(--ink); display: flex; }
.brand-word {
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: -0.01em;
  line-height: 1;
}
.brand-dot { color: var(--accent); }
.nav__links { display: flex; gap: 32px; justify-content: center; }
.nav__links a { color: var(--ink-soft); transition: color .2s; }
.nav__links a:hover { color: var(--ink); }
.nav__meta { display: flex; gap: 24px; justify-content: flex-end; align-items: center; color: var(--ink-soft); }
.status { display: flex; align-items: center; gap: 8px; }
.status__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: oklch(0.66 0.16 145);
  box-shadow: 0 0 0 3px oklch(0.66 0.16 145 / 0.2);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px oklch(0.66 0.16 145 / 0.2); }
  50% { box-shadow: 0 0 0 6px oklch(0.66 0.16 145 / 0); }
}

@media (max-width: 880px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav__links { display: none; }
  .nav__meta .clock, .nav__meta .status { display: none; }
}

/* ---------- LAYOUT BASICS ---------- */
.section {
  position: relative;
  padding: clamp(80px, 12vw, 160px) var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}
.section__head {
  display: flex; align-items: baseline; gap: 16px;
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-soft); text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-bottom: 24px; margin-bottom: 64px;
  border-bottom: 1px solid var(--rule);
}
.section__num { color: var(--accent); font-weight: 500; }
.section__head--light { color: rgba(255,255,255,0.6); border-bottom-color: rgba(255,255,255,0.15); }
.section__head--light .section__num { color: var(--accent); }

.display {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  font-weight: 400;
  text-wrap: balance;
}

.eyebrow, .col-label, .chip-label, .card-tag {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px var(--gutter) 60px;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  grid-template-areas:
    "index    index"
    "headline signal"
    "body     signal"
    "metrics  metrics"
    "rotor    rotor";
  gap: 36px 64px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 80% 30%, rgba(217,119,87,0.08), transparent 70%),
    radial-gradient(ellipse 40% 30% at 10% 70%, rgba(217,119,87,0.05), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero > *:not(.hero__tokens) { z-index: 1; position: relative; }

/* Floating capability tokens */
.hero__tokens {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 0;
}
.token {
  position: absolute;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--accent-deep);
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.55));
  border: 1px solid oklch(0.62 0.16 32 / 0.25);
  border-radius: 999px;
  padding: 6px 12px;
  white-space: nowrap;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 8px 20px -10px oklch(0.62 0.16 32 / 0.3);
  opacity: 0;
  transform: translateY(8px);
  animation: tokenIn 1s cubic-bezier(0.2, 0.9, 0.2, 1) forwards, tokenDrift 9s ease-in-out infinite;
}
.token:nth-child(1) { animation-delay: 0.6s, 1.6s; }
.token:nth-child(2) { animation-delay: 0.8s, 1.8s; }
.token:nth-child(3) { animation-delay: 1.0s, 2.0s; }
.token:nth-child(4) { animation-delay: 1.2s, 2.2s; }
.token:nth-child(5) { animation-delay: 1.4s, 2.4s; }
@keyframes tokenIn {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes tokenDrift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(6px, -10px); }
}
.hero__index {
  grid-area: index;
  display: flex; align-items: center; gap: 16px;
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-soft);
}
.hero__index span:first-child {
  background: var(--grad);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  font-weight: 600;
}
.hero__index-spacer { flex: 1; height: 1px; background: var(--rule); }
.hero__build { color: var(--ink-dim); }

.hero__headline { grid-area: headline; align-self: end; position: relative; }

/* Text scramble — kept upright so "AI" doesn't read as "Al" in italic serif */
.scramble {
  display: inline-block;
  cursor: pointer;
  position: relative;
  background: var(--grad);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  font-style: normal;
  letter-spacing: -0.01em;
}
.hero__headline em.scramble { font-style: normal; }
.scramble::after {
  content: "";
  position: absolute;
  left: 6%; right: 6%; bottom: 6%;
  height: 8px;
  background: var(--grad);
  opacity: 0.2;
  border-radius: 3px;
  filter: blur(2px);
}
.hero__headline h1 { font-family: var(--serif); font-size: clamp(52px, 7.5vw, 116px); line-height: 0.94; letter-spacing: -0.03em; font-weight: 400; }
.hero__headline .line {
  display: block;
  opacity: 0;
  transform: translateY(40px);
  animation: lineIn 1.1s var(--ease) forwards;
}
.hero__headline .line:nth-of-type(1) { animation-delay: 0.25s; }
.hero__headline .line:nth-of-type(2) { animation-delay: 0.45s; }
.hero__headline .line:nth-of-type(3) { animation-delay: 0.65s; }
@keyframes lineIn {
  to { opacity: 1; transform: translateY(0); }
}
.hero__headline em {
  background: var(--grad);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  font-style: italic;
}
.underline-word {
  background-image: var(--grad);
  background-position: 0 95%;
  background-size: 100% 8px;
  background-repeat: no-repeat;
  padding-bottom: 2px;
}

.hero__body {
  grid-area: body;
  align-self: start;
  max-width: 560px;
  display: flex; flex-direction: column; gap: 20px;
  margin-top: 4px;
}

/* Live metrics strip */
.hero__metrics {
  grid-area: metrics;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 18px 0;
  margin-top: 24px;
}
.metric {
  display: flex; flex-direction: column; gap: 4px;
  padding: 0 24px;
  border-right: 1px solid var(--rule);
}
.metric:last-child { border-right: none; }
.metric__label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.metric__val {
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.metric__val--text { color: var(--accent); font-style: italic; }
.lede {
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
}
.sub {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.kicker {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink);
  padding: 12px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 999px;
  transition: transform .4s var(--ease), background .2s, color .2s, border-color .2s, box-shadow .3s;
  border: 1px solid transparent;
  position: relative;
  will-change: transform;
  cursor: pointer;
}
.btn > * { transition: transform .4s var(--ease); }
.btn--primary {
  background: var(--grad);
  color: #fff;
  background-size: 200% 100%;
  background-position: 0% 0%;
  transition: transform .2s, background-position .6s, box-shadow .3s;
  box-shadow: 0 12px 28px -10px oklch(0.62 0.16 32 / 0.5);
}
.btn--primary:hover { background-position: 100% 0%; box-shadow: 0 18px 40px -10px oklch(0.70 0.18 38 / 0.55); }
.btn--ghost {
  border-color: var(--ink);
  color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--lg { padding: 18px 28px; font-size: 13px; }
.btn--xs { padding: 8px 14px; font-size: 10px; gap: 6px; }
.btn--ghost-light { border-color: rgba(255,255,255,0.4); color: #fff; }
.btn--ghost-light:hover { background: rgba(255,255,255,0.9); color: var(--bg-deep); }

.nav__cta { letter-spacing: 0.04em; }
.nav__cta svg { transition: transform .3s var(--ease); }
.nav__cta:hover svg { transform: translateX(2px); }

/* ---------- SIGNAL PANEL (light glass) ---------- */
.signal {
  grid-area: signal;
  align-self: stretch;
  width: 100%;
  max-width: 440px;
  justify-self: end;
  background:
    linear-gradient(180deg, rgba(255,253,249,0.95), rgba(255,253,249,0.65));
  color: var(--ink);
  border-radius: 20px;
  padding: 24px;
  font-family: var(--mono);
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow:
    0 40px 100px -30px rgba(154, 70, 40, 0.35),
    0 8px 24px -8px rgba(154, 70, 40, 0.18),
    0 1px 0 rgba(255,255,255,0.7) inset,
    0 0 0 1px rgba(255,255,255,0.5) inset;
  opacity: 0;
  animation: signalIn 1.2s var(--ease) 0.4s forwards;
  will-change: transform;
}
@keyframes signalIn {
  to { opacity: 1; }
}
/* Gradient border ring */
.signal::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0.7;
}
/* Soft gradient bloom inside */
.signal::after {
  content: "";
  position: absolute;
  top: -40%; right: -30%;
  width: 320px; height: 320px;
  background: radial-gradient(circle, oklch(0.70 0.18 38 / 0.35), transparent 65%);
  filter: blur(20px);
  pointer-events: none;
  animation: signalBloom 7s ease-in-out infinite alternate;
}
@keyframes signalBloom {
  0% { transform: translate(0,0) scale(1); opacity: 0.6; }
  100% { transform: translate(-20px, 20px) scale(1.1); opacity: 1; }
}
.signal > * { position: relative; z-index: 1; }
.signal__head {
  display: flex; justify-content: space-between; align-items: center;
  color: var(--ink-soft);
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--rule);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.signal__tag {
  display: flex; align-items: center; gap: 8px;
  background: var(--grad);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  font-weight: 600;
}
.signal__live {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 0 3px oklch(0.62 0.16 32 / 0.25);
  animation: pulse 1.8s infinite;
}
.signal__id { font-size: 10px; }

.signal__stage {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.signal__step {
  display: flex; flex-direction: column; gap: 4px;
  padding: 9px 6px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: rgba(255,255,255,0.55);
  color: var(--ink-dim);
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: 0.08em;
  transition: color .4s, background .4s, border-color .4s, transform .4s, box-shadow .4s;
  position: relative;
  overflow: hidden;
}
.signal__step[data-active="true"] {
  color: #fff;
  border-color: transparent;
  background: var(--grad);
  box-shadow: 0 8px 22px -8px oklch(0.62 0.16 32 / 0.55);
  transform: translateY(-2px);
}
.signal__step-num { color: inherit; opacity: 0.65; }
.signal__step-name { font-size: 11px; }

.signal__viz {
  background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(255,255,255,0.3));
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 8px;
  color: var(--ink-soft);
  position: relative;
  overflow: hidden;
}
.signal__viz::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, oklch(0.70 0.18 38 / 0.15), transparent);
  transform: translateX(-100%);
  animation: vizSheen 4s ease-in-out infinite;
}
@keyframes vizSheen {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}
.signal__viz .edge {
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  animation: edgeDraw 3.2s ease-in-out infinite;
}
.edge--2 { animation-delay: 0.2s; }
.edge--3 { animation-delay: 0.5s; }
.edge--4 { animation-delay: 0.7s; }
.edge--5 { animation-delay: 1.0s; }
.edge--6 { animation-delay: 1.2s; }
@keyframes edgeDraw {
  0%   { stroke-dashoffset: 120; opacity: 0.2; }
  40%  { stroke-dashoffset: 0; opacity: 1; }
  80%  { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: -120; opacity: 0.2; }
}
.node-pulse {
  transform-origin: 160px 55px;
  transform-box: fill-box;
  animation: nodePulse 1.8s ease-in-out infinite;
}
@keyframes nodePulse {
  0%, 100% { r: 4; opacity: 1; }
  50% { r: 6.5; opacity: 0.7; }
}

.signal__readout {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px 14px;
  background: var(--grad-soft);
  border-radius: 8px;
  border: 1px solid oklch(0.62 0.16 32 / 0.2);
  position: relative;
  overflow: hidden;
}
.signal__readout::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--grad);
}
.signal__readout-label {
  color: var(--accent-deep);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.signal__readout-text {
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
}
.signal__readout-text::after {
  content: "";
  display: inline-block;
  width: 7px; height: 13px;
  background: var(--grad);
  vertical-align: text-bottom;
  margin-left: 4px;
  border-radius: 1px;
  animation: caret 0.9s steps(2) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

.signal__meter {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center; gap: 12px;
  color: var(--ink-soft);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.08em;
}
.signal__meter-track {
  height: 5px; background: rgba(80,60,40,0.08);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.signal__meter-fill {
  display: block; height: 100%;
  width: 0;
  background: var(--grad);
  border-radius: 999px;
  transition: width 1.2s cubic-bezier(0.2, 0.9, 0.2, 1);
  position: relative;
}
.signal__meter-fill::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
  transform: translateX(-100%);
  animation: meterSheen 2.4s ease-in-out infinite;
}
@keyframes meterSheen {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}
.signal__meter-val {
  background: var(--grad);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 600;
}
.signal__foot {
  color: var(--ink-dim);
  padding-top: 12px;
  border-top: 1px dashed var(--rule);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 10px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.signal__hint {
  color: var(--accent-deep);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--serif);
  font-size: 12px;
  opacity: 0.7;
}

/* ---------- SIGNAL PATTERN SELECTOR ---------- */
.signal__patterns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.signal__pattern {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255,253,249,0.6);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 10px 8px;
  display: flex; flex-direction: column; gap: 3px;
  cursor: pointer;
  transition: background .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
  text-align: left;
  font-family: var(--mono);
  color: var(--ink-soft);
  position: relative;
  overflow: hidden;
}
.signal__pattern:hover {
  background: rgba(255,255,255,0.95);
  border-color: oklch(0.62 0.16 32 / 0.4);
  transform: translateY(-1px);
  color: var(--ink);
}
.signal__pattern[data-active="true"] {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 22px -10px oklch(0.62 0.16 32 / 0.6);
  transform: translateY(-1px);
}
.signal__pattern[data-active="true"]::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -1px;
  width: 24px; height: 2px;
  background: #fff;
  transform: translateX(-50%);
  border-radius: 2px;
  opacity: 0.7;
}
.signal__pattern-id {
  font-size: 9px;
  opacity: 0.65;
  letter-spacing: 0.1em;
}
.signal__pattern-name {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ---------- SIGNAL GRAPH (4 swappable patterns) ---------- */
.signal__graph {
  position: relative;
  padding: 6px 4px;
  background: linear-gradient(180deg, rgba(255,253,249,0.7), rgba(255,253,249,0.35));
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
  min-height: 152px;
}
.signal__graph::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, oklch(0.70 0.18 38 / 0.10), transparent);
  transform: translateX(-100%);
  animation: vizSheen 5s ease-in-out infinite;
  pointer-events: none;
}
.signal__graph svg { display: block; position: relative; z-index: 1; overflow: visible; }

.graph-pattern {
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease);
}
.graph-pattern[data-active="true"] {
  opacity: 1;
}

/* Edges draw in sequence using per-element --d delay */
.graph-pattern .edge {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  opacity: 0;
}
.graph-pattern[data-active="true"] .edge {
  animation: drawEdge 0.7s var(--ease) var(--d, 0s) forwards;
}
@keyframes drawEdge {
  0%   { stroke-dashoffset: 100; opacity: 0; }
  12%  { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}
.graph-pattern .edge--alt {
  /* dotted feedback loops */
  animation-duration: 0.9s !important;
}

/* Nodes scale + fade in with per-element --d delay */
.graph-pattern .node {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0.5);
}
.graph-pattern[data-active="true"] .node {
  animation: nodeIn 0.4s var(--ease) var(--d, 0s) forwards;
}
@keyframes nodeIn {
  to { opacity: 1; transform: scale(1); }
}

/* End node pulses subtly after appearing */
.graph-pattern[data-active="true"] .node--end {
  animation: nodeIn 0.4s var(--ease) var(--d, 0s) forwards, endPulse 2.2s ease-in-out 1.6s infinite;
}
@keyframes endPulse {
  0%, 100% { filter: drop-shadow(0 0 0 transparent); }
  50%      { filter: drop-shadow(0 0 6px oklch(0.70 0.18 38 / 0.8)); }
}

/* Labels fade in */
.node-label {
  font-family: var(--mono);
  font-size: 8.5px;
  fill: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0;
  font-weight: 500;
}
.graph-pattern[data-active="true"] .node-label {
  animation: labelIn 0.4s var(--ease) var(--d, 0s) forwards;
}
@keyframes labelIn {
  to { opacity: 1; }
}

/* Recommendation row */
.signal__rec {
  display: flex; flex-direction: column; gap: 4px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px dashed oklch(0.62 0.16 32 / 0.4);
  background: rgba(255,253,249,0.5);
  position: relative;
  overflow: hidden;
}
.signal__rec::before {
  content: "→";
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 600;
  opacity: 0.6;
}
.signal__rec-label {
  color: var(--accent-deep);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.signal__rec-text {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  padding-right: 24px;
}

/* Text transitions on pattern change */
.signal__readout-text,
.signal__rec-text {
  transition: opacity .25s var(--ease);
}
.signal__readout-text.is-changing,
.signal__rec-text.is-changing {
  opacity: 0;
}

/* ---------- HERO SCROLL ROTOR ---------- */
.hero__scroll {
  grid-area: rotor;
  display: flex; align-items: center;
  font-family: var(--mono); font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-soft);
  overflow: hidden;
  white-space: nowrap;
  margin-top: 16px;
}
.rotor {
  display: inline-block;
  animation: rotor 30s linear infinite;
}
@keyframes rotor {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 1099px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "index"
      "headline"
      "signal"
      "body"
      "metrics"
      "rotor";
    gap: 32px;
  }
  .signal { max-width: 100%; justify-self: stretch; }
  .hero__metrics { grid-template-columns: 1fr 1fr; }
  .metric { padding: 12px 16px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
  .metric:nth-child(even) { border-right: none; }
}
@media (max-width: 600px) {
  .hero__tokens { display: none; }
  .hero__metrics { grid-template-columns: 1fr; }
  .metric { border-right: none; }
}

/* ---------- TRUST STRIP ---------- */
.strip {
  background: var(--grad-deep);
  color: var(--bg);
  padding: 64px 0 0;
  margin-top: 40px;
  position: relative;
  overflow: hidden;
}
.strip::before {
  content: "";
  position: absolute; inset: 0;
  background: transparent;
  pointer-events: none;
}
.strip > * { position: relative; }
.strip__lead {
  padding: 0 var(--gutter) 40px;
  max-width: var(--max); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 32px; flex-wrap: wrap;
}
.strip__lead h3 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.05;
  max-width: 720px;
  letter-spacing: -0.01em;
}
.strip__lead .eyebrow { color: rgba(255,255,255,0.5); }
.marquee {
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.15);
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding: 28px 0;
}
.marquee__track {
  display: inline-flex; align-items: center; gap: 32px;
  white-space: nowrap;
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 56px);
  animation: marquee 50s linear infinite;
  padding-left: 32px;
}
.marquee__track .sep {
  background: var(--grad);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  font-family: var(--sans); font-size: 0.6em;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- ABOUT ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: start;
}
.about__body {
  display: flex; flex-direction: column; gap: 20px;
  font-size: 17px; line-height: 1.6; color: var(--ink-soft);
  max-width: 480px;
}
.callout {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.3;
  color: var(--ink);
  padding-left: 20px;
  border-left: 2px solid var(--accent);
}
.about__chips { grid-column: 1 / -1; margin-top: 24px; }
.chips {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 16px;
}
.chips li {
  font-family: var(--mono);
  font-size: 12px;
  padding: 10px 16px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: rgba(255,255,255,0.4);
  transition: background .2s, transform .2s, border-color .2s, color .2s;
  cursor: none;
}
.chips li:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  transform: translateY(-2px);
}

@media (max-width: 880px) {
  .about__grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- PARTNERSHIP ---------- */
.partnership__title {
  max-width: 900px;
  margin-bottom: 80px;
}
.partnership__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  border-top: 1px solid var(--rule);
  padding-top: 48px;
}
.partnership__col {
  display: flex; flex-direction: column; gap: 16px;
}
.partnership__col ul {
  display: flex; flex-direction: column; gap: 6px;
}
.partnership__col li {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.3;
}
.not-needed li { color: var(--ink-dim); }
.not-needed s { text-decoration: line-through; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.unsure li { color: var(--ink); }
.dim {
  font-size: 13px; color: var(--ink-dim);
  font-family: var(--mono);
  margin-top: auto;
  padding-top: 16px;
}
.partnership__col--accent .paths { display: flex; flex-direction: column; gap: 18px; }
.path {
  display: flex; gap: 16px; align-items: baseline;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--rule);
}
.path:last-of-type { border-bottom: none; }
.path__num {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 12px;
  text-transform: uppercase;
  width: 12px;
  flex-shrink: 0;
}
.path p {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.2;
}

@media (max-width: 880px) {
  .partnership__grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- EXPLORE ---------- */
.explore__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.explore__body {
  display: flex; flex-direction: column; gap: 32px;
  font-size: 15px;
}
.explore__body > p:first-child {
  font-family: var(--mono);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.explore__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--rule);
}
.explore__list li {
  display: flex; gap: 12px; align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
  transition: padding .2s, color .2s;
  cursor: none;
}
.explore__list li:hover { padding-left: 8px; color: var(--accent); }
.explore__list .n {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-dim);
  width: 20px;
  flex-shrink: 0;
}
.explore__answers {
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.35;
  display: flex; flex-direction: column; gap: 4px;
  border-top: 1px solid var(--rule);
  padding-top: 32px;
}
.explore__answers strong { color: var(--accent); font-weight: 400; font-style: italic; }

@media (max-width: 880px) {
  .explore__grid { grid-template-columns: 1fr; gap: 32px; }
  .explore__list { grid-template-columns: 1fr; }
}

/* ---------- PHILOSOPHY ---------- */
.philosophy {
  background: var(--grad-deep);
  color: var(--bg);
  max-width: none;
  border-radius: 0;
  position: relative;
  overflow: hidden;
}
.philosophy::before {
  content: "";
  position: absolute; inset: 0;
  background: transparent;
  pointer-events: none;
}
.philosophy > * { position: relative; }
.phrase--eq {
  background: var(--grad);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  font-style: italic; font-size: 0.6em; padding: 8px 0;
}
.philosophy__title {
  font-family: var(--serif);
  font-size: clamp(48px, 9vw, 144px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 400;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  gap: 0;
  margin-bottom: 100px;
}
.phrase--1, .phrase--2 { display: block; }
.philosophy__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}
.philosophy__lead {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.35;
}
.philosophy__lead .dim { color: rgba(255,255,255,0.4); font-family: var(--mono); font-size: 12px; padding-top: 12px; }
.problems {
  display: flex; flex-direction: column;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.problems li {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.3;
  transition: padding .25s, color .25s;
  cursor: none;
}
.problems li:hover {
  padding-left: 16px;
  color: var(--accent);
}
.philosophy__foot {
  grid-column: 1 / -1;
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid rgba(255,255,255,0.15);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.philosophy__foot p { color: rgba(255,255,255,0.75); font-size: 16px; line-height: 1.6; }
.philosophy__foot .big {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.2;
  color: #fff;
}

@media (max-width: 880px) {
  .philosophy__grid, .philosophy__foot { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- 5-LEVER APPROACH ---------- */
.approach__intro {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px;
  align-items: end; margin-bottom: 80px;
}
.approach__intro p {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 360px;
}

.levers {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
  overflow: hidden;
  transition: grid-template-columns .6s cubic-bezier(0.2, 0.9, 0.2, 1);
}

/* When a lever is active, expand it */
.levers:has(.lever[data-active="true"]:nth-child(1)) { grid-template-columns: 2.4fr 1fr 1fr 1fr 1fr; }
.levers:has(.lever[data-active="true"]:nth-child(2)) { grid-template-columns: 1fr 2.4fr 1fr 1fr 1fr; }
.levers:has(.lever[data-active="true"]:nth-child(3)) { grid-template-columns: 1fr 1fr 2.4fr 1fr 1fr; }
.levers:has(.lever[data-active="true"]:nth-child(4)) { grid-template-columns: 1fr 1fr 1fr 2.4fr 1fr; }
.levers:has(.lever[data-active="true"]:nth-child(5)) { grid-template-columns: 1fr 1fr 1fr 1fr 2.4fr; }

.lever {
  border-right: 1px solid var(--ink);
  padding: 32px 24px;
  min-height: 460px;
  display: flex; flex-direction: column; gap: 20px;
  position: relative;
  cursor: none;
  background: var(--bg);
  transition: background .35s, color .35s, padding .6s;
  overflow: hidden;
}
.lever__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.lever__title {
  font-family: var(--serif);
  font-size: clamp(32px, 3vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  margin-top: auto;
  transition: writing-mode .4s, transform .4s, font-size .4s;
}
.lever__desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 320px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s ease .15s, transform .35s ease .15s;
  pointer-events: none;
}
.lever__icon {
  color: var(--ink);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s ease .2s, transform .4s ease .2s;
}

.lever[data-active="true"] {
  background: var(--grad-deep);
  color: var(--bg);
  position: relative;
}
.lever[data-active="true"]::before {
  content: "";
  position: absolute; inset: 0;
  background: transparent;
  pointer-events: none;
}
.lever > * { position: relative; }
.lever[data-active="true"] .lever__num { color: var(--accent-2); }
.lever[data-active="true"] .lever__title {
  writing-mode: horizontal-tb;
  transform: none;
  font-size: clamp(48px, 5vw, 88px);
  color: var(--bg);
}
.lever[data-active="true"] .lever__desc {
  opacity: 1; transform: translateY(0);
  color: rgba(255,255,255,0.78);
}
.lever[data-active="true"] .lever__icon {
  opacity: 1; transform: translateY(0);
  color: var(--accent-2);
  align-self: flex-end;
  margin-top: auto;
}

.lever:hover:not([data-active="true"]) { background: var(--bg-2); }

@media (max-width: 1100px) {
  .levers { grid-template-columns: 1fr !important; }
  .levers:has(.lever[data-active]) { grid-template-columns: 1fr !important; }
  .lever { min-height: auto; padding: 28px 24px; }
  .lever__title {
    writing-mode: horizontal-tb !important;
    transform: none !important;
    font-size: 36px !important;
    margin-top: 0;
  }
  .lever__desc, .lever__icon { opacity: 1; transform: none; }
}

/* lever nav */
.lever-nav {
  display: flex; align-items: center; gap: 24px;
  margin-top: 32px;
}
.lever-arrow {
  width: 44px; height: 44px;
  border: 1px solid var(--ink);
  background: transparent;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  cursor: none;
  transition: background .2s, color .2s;
}
.lever-arrow:hover { background: var(--ink); color: var(--bg); }
.lever-progress {
  flex: 1;
  height: 1px;
  background: var(--rule);
  position: relative;
}
.lever-progress__bar {
  position: absolute;
  top: -1px; left: 0;
  height: 3px;
  width: 20%;
  background: var(--grad);
  border-radius: 3px;
  transition: width .5s cubic-bezier(0.2, 0.9, 0.2, 1), left .5s cubic-bezier(0.2, 0.9, 0.2, 1);
}

/* ---------- EDUCATIONAL ---------- */
.edu__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  margin-top: 48px;
  margin-bottom: 80px;
}
.edu__lead {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.35;
  color: var(--ink);
}
.edu__list {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--rule);
}
.edu__list li {
  display: flex; gap: 16px; align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--serif);
  font-size: 22px;
}
.edu__list .n {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  width: 16px;
  text-transform: uppercase;
}

.pull-quote {
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 110px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-align: center;
  margin: 80px auto;
  max-width: 1100px;
  position: relative;
  font-style: italic;
  color: var(--ink);
}
.quote-mark {
  color: var(--accent);
  font-style: normal;
  font-size: 1.5em;
  line-height: 0.6;
  display: inline-block;
  vertical-align: text-bottom;
  margin: 0 8px;
}
.quote-mark--end { vertical-align: top; }

.edu__close {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.25;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

@media (max-width: 880px) {
  .edu__grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- SERVICES ---------- */
.services__intro {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px;
  align-items: end; margin-bottom: 64px;
}
.services__intro p {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 380px;
}

.services .chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 32px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.service {
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 36px 32px;
  min-height: 280px;
  display: flex; flex-direction: column;
  gap: 16px;
  position: relative;
  cursor: none;
  transition: background .3s, color .3s, transform .3s;
}
.service::before {
  content: ""; position: absolute; inset: 0;
  background: var(--grad);
  transform-origin: bottom;
  transform: scaleY(0);
  transition: transform .4s cubic-bezier(0.2, 0.9, 0.2, 1);
  z-index: 0;
}
.service > * { position: relative; z-index: 1; }
.service:hover { color: #fff; }
.service:hover::before { transform: scaleY(1); }
.service__num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-dim);
  letter-spacing: 0.08em;
}
.service h3 {
  font-family: var(--serif);
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.service__short {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-top: auto;
  transition: color .3s;
}
.service:hover .service__short { color: rgba(255,255,255,0.85); }
.service:hover .service__num { color: rgba(255,255,255,0.6); }
.service__tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color .3s;
}
.service:hover .service__tag { color: rgba(255,255,255,0.75); }
.service--wide { grid-column: span 1; }

@media (max-width: 1100px) {
  .service-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .service-grid { grid-template-columns: 1fr; }
  .services__intro { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- HUMAN-CENTRED ---------- */
.human__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: start;
}
.human__list {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--rule);
}
.human__item {
  display: flex; gap: 16px; align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--serif);
  font-size: 22px;
  transition: padding .25s, color .25s;
  cursor: none;
}
.human__item:hover { padding-left: 12px; color: var(--accent); }
.bullet { color: var(--accent); font-family: var(--mono); font-size: 14px; }
.human__close {
  grid-column: 1 / -1;
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--rule);
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 48px);
  line-height: 1.2;
  max-width: 900px;
}

@media (max-width: 880px) {
  .human__grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- MODELS ---------- */
.models__intro {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px;
  align-items: end; margin-bottom: 56px;
}
.models__intro p {
  font-size: 16px; color: var(--ink-soft); max-width: 360px;
}

.model-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 0;
}
.model-tab {
  background: transparent;
  border: none;
  border-right: 1px solid var(--rule);
  padding: 24px 20px;
  text-align: left;
  display: flex; align-items: baseline; gap: 16px;
  font-family: inherit;
  cursor: none;
  color: var(--ink-soft);
  position: relative;
  transition: color .25s, background .25s;
}
.model-tab:last-child { border-right: none; }
.model-tab::after {
  content: "";
  position: absolute; bottom: -1px; left: 0; right: 0;
  height: 3px;
  background: var(--grad);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s cubic-bezier(0.2, 0.9, 0.2, 1);
  border-radius: 3px;
}
.model-tab[aria-selected="true"] { color: var(--ink); background: rgba(255,255,255,0.4); }
.model-tab[aria-selected="true"]::after { transform: scaleX(1); }
.model-tab:hover { color: var(--ink); }
.model-tab__num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.model-tab__name {
  font-family: var(--serif);
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.1;
}

.model-panels { position: relative; min-height: 320px; }
.model-panel {
  position: absolute; inset: 0;
  padding: 48px 0 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .35s, transform .35s;
  pointer-events: none;
}
.model-panel[data-active="true"] {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}
.model-panel__head { display: flex; flex-direction: column; gap: 12px; }
.model-panel__id {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.model-panel h3 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.model-panel > p {
  font-size: 17px; line-height: 1.55; color: var(--ink-soft);
  grid-column: 2 / 3;
  grid-row: 1 / 2;
}
.model-panel__attrs {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  margin-top: 12px;
}
.model-panel__attrs li {
  padding: 24px 0;
  border-right: 1px solid var(--rule);
  padding-right: 24px;
  display: flex; flex-direction: column; gap: 8px;
}
.model-panel__attrs li:last-child { border-right: none; }
.model-panel__attrs li span:first-child {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--ink-dim);
  letter-spacing: 0.08em;
}
.model-panel__attrs li span:last-child {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.2;
}

@media (max-width: 880px) {
  .model-tabs { grid-template-columns: 1fr 1fr; }
  .model-panel { grid-template-columns: 1fr; gap: 24px; }
  .model-panel > p { grid-column: 1; grid-row: auto; }
  .model-panel__attrs { grid-template-columns: 1fr; }
  .model-panel__attrs li { border-right: none; border-bottom: 1px solid var(--rule); padding: 16px 0; }
  .models__intro { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- FINAL CTA ---------- */
.cta {
  background: var(--grad-deep);
  color: var(--bg);
  max-width: none;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute; inset: 0;
  background: transparent;
  pointer-events: none;
}
.cta > * { position: relative; }
.cta__title {
  font-family: var(--serif);
  font-size: clamp(64px, 11vw, 180px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  font-weight: 400;
  margin-bottom: 80px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.cta__title em {
  background: var(--grad);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  font-style: italic;
}
.cta__grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 56px;
}
.cta__list ul { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.cta__list li {
  font-family: var(--serif);
  font-size: 22px;
  color: rgba(255,255,255,0.85);
  transition: color .2s, padding .2s;
  cursor: none;
}
.cta__list li:hover { color: var(--accent); padding-left: 8px; }
.cta__list .col-label { color: rgba(255,255,255,0.5); }
.cta__body { display: flex; flex-direction: column; gap: 28px; }
.cta__body > p {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.2;
}
.three-no {
  display: flex; flex-wrap: wrap; gap: 16px;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.three-no span {
  padding: 10px 16px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
}
.three-no span:nth-child(1) { color: var(--accent); border-color: var(--accent); }
.cta__close {
  font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.3;
  color: rgba(255,255,255,0.85);
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.15);
}

@media (max-width: 880px) {
  .cta__grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--bg-2);
  padding: 80px var(--gutter) 32px;
  max-width: var(--max);
  margin: 0 auto;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 64px;
  margin-bottom: 64px;
}
.brand-word--big {
  font-size: clamp(64px, 9vw, 144px);
  display: block;
  letter-spacing: -0.03em;
  line-height: 0.9;
}
.footer__tagline {
  margin-top: 24px;
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.3;
  max-width: 360px;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.footer__col li { font-size: 14px; }
.footer__col a { color: var(--ink-soft); transition: color .2s; }
.footer__col a:hover { color: var(--accent); }
.alts li { font-family: var(--serif); font-size: 16px; line-height: 1.3; color: var(--ink-soft); }
.footer__rule { height: 1px; background: var(--rule); margin: 24px 0; }
.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

@media (max-width: 880px) {
  .footer__top { grid-template-columns: 1fr; gap: 32px; }
  .footer__cols { grid-template-columns: 1fr; }
}

/* ---------- REVEAL ON SCROLL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}

/* ---------- SMOOTH SIGNAL PARALLAX ---------- */
.signal { transition: transform .5s var(--ease), box-shadow .3s; }
.token { transition: transform .4s var(--ease); }
