/* ============================================================================
   HOXTON PHARMA — marketing site
   Layout layer on top of the design-system tokens (colors_and_type.css).
   Infrastructure-grade. Near-monochrome. Blue used surgically.
   ============================================================================ */

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body { overflow-x: hidden; }
#root { isolation: isolate; }

/* ---- shared layout primitives ------------------------------------------- */
.wrap { max-width: var(--container); margin: 0 auto; padding-inline: 32px; }
.wrap-wide { max-width: var(--container-wide); margin: 0 auto; padding-inline: 32px; }
.wrap-narrow { max-width: var(--container-narrow); margin: 0 auto; padding-inline: 32px; }

section { position: relative; }
.band { padding-block: clamp(72px, 11vw, 128px); }
.band-tight { padding-block: clamp(56px, 8vw, 96px); }

/* dark sections opt into the DS dark token set + ink background */
[data-theme="dark"] { background: var(--bg-page); color: var(--fg-1); }
.surface-ink   { background: var(--hp-ink); }
.surface-deep  { background: #02101a; }
.surface-bone  { background: var(--hp-bone); }
.surface-paper { background: var(--hp-paper); }

/* eyebrow / kicker */
.kicker {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg-3);
  display: inline-flex; align-items: center; gap: 10px;
}
.kicker::before {
  content: ""; width: 22px; height: 1px; background: currentColor; opacity: 0.6;
}
.kicker.accent { color: var(--accent); }
.kicker.no-tick::before { display: none; }

/* section heading device */
.sec-head { max-width: 60ch; }
.sec-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  line-height: 1.05; letter-spacing: -0.03em;
  margin: 20px 0 0; text-wrap: balance;
}
.sec-lead {
  font-family: var(--font-body); font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.55; color: var(--fg-2); margin: 22px 0 0; max-width: 56ch;
  text-wrap: pretty;
}
.emph { color: var(--accent); }

/* numbers always mono */
.mono { font-family: var(--font-mono); font-feature-settings: "tnum" 1, "zero" 1; letter-spacing: -0.01em; }

/* ---- buttons ------------------------------------------------------------- */
.btn {
  font-family: var(--font-body); font-size: 15px; font-weight: 500;
  letter-spacing: -0.01em;
  padding: 12px 20px; border-radius: var(--r-3);
  border: 1px solid transparent; background: transparent;
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  transition: background var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
  white-space: nowrap; text-decoration: none;
}
.btn .ic { width: 18px; height: 18px; transition: transform var(--dur-base) var(--ease-out); }
.btn:hover .ic-arrow { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--shadow-focus); }

.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { background: var(--accent-press); }

.btn-outline { color: var(--fg-1); border-color: var(--border-1); }
.btn-outline:hover { border-color: var(--border-strong); background: var(--bg-surface-2); }

.btn-ghost { color: var(--fg-1); }
.btn-ghost:hover { background: var(--bg-surface-2); }

.btn-link { color: var(--fg-link); padding-inline: 0; }
.btn-link:hover { opacity: 0.7; }

/* on dark fields */
[data-theme="dark"] .btn-outline { color: var(--fg-1); border-color: var(--border-1); }
[data-theme="dark"] .btn-outline:hover { border-color: var(--border-strong); background: var(--bg-surface); }

.btn-lg { padding: 15px 26px; font-size: 16px; }

/* ===========================================================================
   NAV
   =========================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(20px, 4vw, 44px);
  transition: background var(--dur-slow) var(--ease-out),
              border-color var(--dur-slow) var(--ease-out),
              backdrop-filter var(--dur-slow) var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.over-dark { color: var(--hp-bone); }
.nav.scrolled {
  background: color-mix(in srgb, var(--hp-ink) 78%, transparent);
  backdrop-filter: saturate(1.2) blur(14px);
  border-bottom-color: rgba(255,255,255,0.08);
}
.nav.scrolled.on-light {
  background: color-mix(in srgb, var(--hp-bone) 82%, transparent);
  border-bottom-color: var(--border-2);
  color: var(--hp-ink);
}
.nav-brand { display: flex; align-items: center; }
.nav-brand img { display: block; height: 22px; width: auto; }
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a {
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  letter-spacing: -0.01em; color: inherit; opacity: 0.82;
  padding: 8px 12px; border-radius: var(--r-2);
  transition: opacity var(--dur-base) var(--ease-out);
}
.nav-links a:hover { opacity: 1; }
.nav-actions { display: flex; gap: 8px; align-items: center; }
.nav-actions .btn { padding: 9px 16px; font-size: 14px; }
.nav.over-dark .btn-ghost { color: var(--hp-bone); }
.nav.over-dark .btn-ghost:hover { background: rgba(255,255,255,0.08); }
.nav-menu-btn { display: none; }

@media (max-width: 920px) {
  .nav-links { display: none; }
  .nav-actions .nav-cdmo { display: none; }
}

/* ===========================================================================
   HERO
   =========================================================================== */
.hero { background: var(--hp-ink); color: var(--hp-bone); overflow: clip; }
.hero-inner {
  position: relative; min-height: 100svh;
  display: grid; align-content: center;
  padding-top: 96px;
}
.hero-lattice {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; }
.hero-eyebrow { color: var(--hp-bone); opacity: 0.66; margin-bottom: 30px; }
.hero-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.7rem, 7.2vw, 6.5rem);
  line-height: 0.98; letter-spacing: -0.035em;
  margin: 0; color: var(--hp-bone); max-width: 16ch; text-wrap: balance;
}
.hero-title .accent { color: var(--accent); }
.hero-sub {
  font-family: var(--font-body); font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  line-height: 1.5; color: color-mix(in srgb, var(--hp-bone) 74%, transparent);
  max-width: 50ch; margin: 30px 0 0; text-wrap: pretty;
}
.hero-actions { display: flex; gap: 14px; align-items: center; margin-top: 40px; flex-wrap: wrap; }
.hero-actions .btn-outline { color: var(--hp-bone); border-color: rgba(255,255,255,0.22); }
.hero-actions .btn-outline:hover { border-color: var(--hp-bone); background: rgba(255,255,255,0.06); }

/* hero variant: split */
.hero-split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px,5vw,72px); align-items: center; }
.hero-split-viz { align-self: center; }
@media (max-width: 880px){ .hero-split{ grid-template-columns: 1fr } .hero-split-viz{ display:none } }

/* paradigm scale triad */
.paradigm-triad { margin-top: clamp(44px, 7vw, 80px); }

/* hero scroll cue + film slot marker */
.hero-foot {
  position: absolute; left: 0; right: 0; bottom: 26px; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(245,244,238,0.4);
}
.hero-foot .slot {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px dashed rgba(255,255,255,0.18); border-radius: var(--r-2);
  padding: 6px 11px;
}
.scroll-cue { display: inline-flex; align-items: center; gap: 9px; }
.scroll-cue .line { width: 1px; height: 26px; background: rgba(245,244,238,0.3); position: relative; overflow: hidden; }
.scroll-cue .line::after {
  content:""; position:absolute; left:0; top:-50%; width:100%; height:50%;
  background: var(--accent); animation: scrollcue 1.8s var(--ease-in-out) infinite;
}
@keyframes scrollcue { 0%{transform:translateY(-100%)} 60%,100%{transform:translateY(300%)} }
@media (prefers-reduced-motion: reduce){ .scroll-cue .line::after{ animation:none } }

/* ===========================================================================
   STAT / TICKER STRIP
   =========================================================================== */
.ticker {
  border-top: 1px solid var(--border-1); border-bottom: 1px solid var(--border-1);
  background: var(--hp-ink);
}
.ticker-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.ticker-cell {
  padding: 28px 26px; border-left: 1px solid var(--border-1);
}
.ticker-cell:first-child { border-left: none; }
.ticker-cell .n {
  font-family: var(--font-mono); font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 500; color: var(--accent); line-height: 1;
  font-feature-settings: "tnum" 1; letter-spacing: -0.02em;
}
.ticker-cell .l {
  font-family: var(--font-body); font-size: 13px; line-height: 1.4;
  color: var(--fg-2); margin-top: 12px; max-width: 24ch;
}
@media (max-width: 760px){ .ticker-grid{ grid-template-columns: repeat(2,1fr) } .ticker-cell:nth-child(odd){border-left:none} }
.ticker-grid.ticker-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px){ .ticker-grid.ticker-3{ grid-template-columns: 1fr } .ticker-grid.ticker-3 .ticker-cell{ border-left: none; border-top: 1px solid var(--border-1); } .ticker-grid.ticker-3 .ticker-cell:first-child{ border-top: none; } }
/* caption above the figure */
.ticker-cell.cap-above .l { margin-top: 0; margin-bottom: 14px; }
.ticker-cell.cap-above .n { margin-top: 0; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--success); display: inline-block; vertical-align: middle; margin-left: 12px; animation: liveblink 3s var(--ease-in-out) infinite; }
@keyframes liveblink { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce){ .live-dot{ animation: none; } }

/* ===========================================================================
   GENERIC CARD
   =========================================================================== */
.card {
  background: var(--bg-surface); border: 1px solid var(--border-2);
  border-radius: var(--r-4); padding: 28px;
  transition: box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.card.hoverable:hover { box-shadow: var(--shadow-3); border-color: var(--border-1); }
.card .ic-feat { width: 28px; height: 28px; color: var(--fg-1); }
.card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; letter-spacing:-0.02em; margin: 18px 0 8px; }
.card p { font-family: var(--font-body); font-size: 15px; line-height: 1.55; color: var(--fg-2); margin: 0; }

/* ===========================================================================
   WHY NOW — evidence rows
   =========================================================================== */
.evidence { display: grid; gap: 0; margin-top: 56px; border-top: 1px solid var(--border-1); }
.ev-row {
  display: grid; grid-template-columns: 120px 1fr auto; gap: 32px; align-items: baseline;
  padding: 26px 0; border-bottom: 1px solid var(--border-1);
}
.ev-row .ev-fig { font-family: var(--font-mono); font-size: clamp(1.6rem,2.6vw,2.2rem); font-weight:500; color: var(--fg-1); letter-spacing:-0.02em; }
.ev-row .ev-fig .u { font-size: 0.5em; color: var(--fg-3); margin-left: 4px; }
.ev-row .ev-body { }
.ev-row .ev-body h4 { font-family: var(--font-display); font-weight:600; font-size: 1.05rem; margin:0 0 5px; letter-spacing:-0.02em; }
.ev-row .ev-body p { font-family: var(--font-body); font-size: 14px; line-height:1.5; color: var(--fg-2); margin:0; max-width: 52ch; }
.ev-row .ev-src { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); letter-spacing:0.04em; white-space: nowrap; }
@media (max-width:680px){ .ev-row{ grid-template-columns: 1fr; gap:8px } .ev-row .ev-src{ } }
/* headings-only evidence rows */
.ev-row.ev-head-only { grid-template-columns: 1fr; padding: 24px 0; align-items: center; }
.ev-row.ev-head-only h4 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.35rem, 2.6vw, 2rem); line-height: 1.1;
  letter-spacing: -0.025em; margin: 0; color: var(--fg-1); text-wrap: balance;
}

/* ===========================================================================
   SCALING LADDER (interactive)
   =========================================================================== */
.ladder-stage {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px,5vw,80px);
  align-items: center; margin-top: 56px;
}
.ladder-viz {
  aspect-ratio: 1 / 1; width: 100%;
  border: 1px solid var(--border-1); border-radius: var(--r-5);
  background:
    linear-gradient(var(--border-2) 1px, transparent 1px) 0 0 / 100% 25%,
    var(--bg-surface);
  position: relative; overflow: hidden;
  display: grid; place-items: center;
}
.ladder-viz svg { width: 86%; height: 86%; display: block; }
.ladder-meta {
  position: absolute; top: 16px; left: 16px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--fg-3);
}
.ladder-steps { display: flex; flex-direction: column; gap: 10px; }
.ladder-step {
  text-align: left; cursor: pointer; width: 100%; color: var(--fg-1);
  display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center;
  padding: 20px 22px; border-radius: var(--r-4);
  border: 1px solid var(--border-2); background: var(--bg-surface);
  transition: border-color var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.ladder-step:hover { border-color: var(--border-1); }
.ladder-step:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.ladder-step.active { border-color: var(--border-strong); box-shadow: var(--shadow-2); }
.ladder-step .idx { font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); }
.ladder-step.active .idx { color: var(--accent); }
.ladder-step .nm { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing:-0.02em; }
.ladder-step .ds { font-family: var(--font-body); font-size: 13.5px; color: var(--fg-2); margin-top: 3px; }
.ladder-step .vol { font-family: var(--font-mono); font-size: 13px; color: var(--fg-1); text-align: right; white-space: nowrap; }
.ladder-step .vol small { display:block; font-size: 10px; color: var(--fg-3); letter-spacing: 0.06em; text-transform: uppercase; margin-top:3px; }
.ladder-specbar {
  display: flex; gap: 28px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--border-2);
}
.ladder-specbar .sp { }
.ladder-specbar .sp .k { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing:0.08em; color: var(--fg-3); }
.ladder-specbar .sp .v { font-family: var(--font-mono); font-size: 1.05rem; color: var(--fg-1); margin-top: 5px; font-feature-settings:"tnum" 1; }
@media (max-width: 860px){ .ladder-stage{ grid-template-columns: 1fr; } .ladder-viz{ order:-1; max-width:440px; margin-inline:auto } }
.ladder-stage.ladder-noviz { grid-template-columns: 1fr; max-width: 860px; }

/* two-column data variant: steps + spec bar on the left, per-tier chart on the right */
.ladder-stage.ladder-data { align-items: start; }
.ladder-left { min-width: 0; }
.ladder-panel .lp-card { padding: 22px 24px; }
.lp-headline { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.02em; color: var(--fg-1); margin: 0 0 10px; }
.lp-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.lp-cap { margin: 14px 0 0; }
@media (max-width: 860px){ .ladder-panel { margin-top: 28px; } }

/* ladder — slider variant */
.ladder-slider input[type=range]{ width:100%; accent-color: var(--accent); margin: 4px 0 14px; height: 4px; }
.ladder-slider-labels { display:flex; justify-content: space-between; gap: 8px; margin-bottom: 22px; }
.sl-tick { background:none; border:none; cursor:pointer; font-family: var(--font-body); font-size:13px; color: var(--fg-3); padding:4px 0; transition: color var(--dur-base); }
.sl-tick.active { color: var(--accent); font-weight: 600; }
.ladder-current h3 { font-family: var(--font-display); font-weight:600; font-size:1.4rem; letter-spacing:-0.02em; margin:0 0 8px; }
.ladder-current p { font-family: var(--font-body); font-size:15px; line-height:1.55; color: var(--fg-2); margin:0; max-width: 46ch; }

/* ladder — tabs variant */
.ladder-tabs { display:flex; gap:6px; padding:5px; background: var(--bg-surface-2); border-radius: var(--r-3); margin-bottom: 22px; }
.ladder-tab { flex:1; display:inline-flex; align-items:center; justify-content:center; gap:9px; background:transparent; border:none; cursor:pointer; font-family: var(--font-body); font-size:14px; font-weight:500; color: var(--fg-2); padding:11px; border-radius: var(--r-2); transition: background var(--dur-base), color var(--dur-base); }
.ladder-tab .mono { font-size:11px; color: var(--fg-3); }
.ladder-tab.active { background: var(--bg-surface); color: var(--fg-1); box-shadow: var(--shadow-1); }
.ladder-tab.active .mono { color: var(--accent); }

/* ===========================================================================
   PROOF — engineering charts
   =========================================================================== */
.proof-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px,4vw,56px); margin-top: 56px; align-items: stretch; }
@media (max-width: 880px){ .proof-grid{ grid-template-columns:1fr } }
.chart-card {
  border: 1px solid var(--border-1); border-radius: var(--r-4);
  background: var(--bg-surface); padding: 26px 28px 22px;
}
.chart-card .ch-head { display:flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 6px; }
.chart-card h4 { font-family: var(--font-display); font-weight:600; font-size: 1.1rem; margin:0; letter-spacing:-0.02em; white-space: nowrap; }
.chart-card .ch-n { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); letter-spacing: 0.04em; white-space: nowrap; }
.chart-card .ch-cap { font-family: var(--font-body); font-size: 13px; color: var(--fg-2); margin: 4px 0 18px; }
.chart-card svg { width: 100%; height: auto; display: block; overflow: visible; }
.axis-label { font-family: var(--font-mono); font-size: 10px; fill: var(--fg-3); text-transform: lowercase; }
.bar-val { font-family: var(--font-mono); font-size: 11px; fill: var(--fg-1); font-weight: 500; }

/* gated stat tiles */
.gate-head { margin-bottom: 18px; }
.gate-head .kicker { color: var(--warning); margin-bottom: 12px; }
.gate-head p { font-family: var(--font-body); font-size: 14.5px; line-height: 1.55; color: var(--fg-2); margin: 0; max-width: 44ch; }
.gated {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 18px;
}
.gate-tile {
  position: relative; border: 1px solid var(--border-1); border-radius: var(--r-3);
  background: var(--bg-surface-2); padding: 18px 18px; overflow: hidden;
}
.gate-tile .gk { font-family: var(--font-body); font-size: 12.5px; color: var(--fg-2); }
.gate-tile .gv {
  font-family: var(--font-mono); font-size: 1.6rem; color: var(--fg-1); margin-top: 8px;
  filter: blur(7px); user-select: none; letter-spacing: 0.02em;
}
.gate-tile .lock {
  position: absolute; top: 14px; right: 14px; width: 15px; height: 15px; color: var(--fg-3);
}
.gate-note {
  grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--font-body); font-size: 13px; color: var(--fg-2);
  border: 1px dashed var(--border-1); border-radius: var(--r-3); padding: 14px 18px;
}

/* ===========================================================================
   ECONOMICS — data centre revenue model (interactive)
   =========================================================================== */
.rev-stage { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,5vw,72px); margin-top: 56px; align-items: center; }
@media (max-width: 900px){ .rev-stage{ grid-template-columns:1fr } }
.rev-chart { border: 1px solid var(--border-1); border-radius: var(--r-5); padding: 24px; background: var(--bg-surface); }
.rev-chart-head { display:flex; justify-content: space-between; align-items: baseline; gap: 14px; margin-bottom: 12px; }
.rev-axis-y { font-size: 11px; color: var(--fg-3); letter-spacing: 0.04em; text-transform: lowercase; }
.rev-share { font-size: 12px; color: var(--accent); font-weight: 500; }
.rev-chart svg { width:100%; height:auto; display:block; overflow: visible; }
.rev-bars { transform: scaleY(0); transform-box: fill-box; transform-origin: bottom; transition: transform 720ms var(--ease-out); }
.rev-bars.grown { transform: scaleY(1); }
@media (prefers-reduced-motion: reduce){ .rev-bars{ transform: none; transition: none; } }
.rev-layers { display: flex; flex-direction: column; gap: 12px; }
.rev-layer {
  text-align:left; cursor: pointer; width: 100%; color: var(--fg-1);
  border: 1px solid var(--border-2); border-radius: var(--r-4); background: var(--bg-surface);
  padding: 20px 22px; display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center;
  transition: border-color var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.rev-layer:hover { border-color: var(--border-1); }
.rev-layer:focus-visible { outline:none; box-shadow: var(--shadow-focus); }
.rev-layer.active { border-color: var(--border-strong); box-shadow: var(--shadow-2); }
.rev-layer .swatch { width: 14px; height: 14px; border-radius: 3px; }
.rev-layer .nm { font-family: var(--font-display); font-weight:600; font-size: 1.05rem; letter-spacing:-0.02em; }
.rev-layer .ds { font-family: var(--font-body); font-size: 13px; color: var(--fg-2); margin-top: 3px; max-width: 40ch; }
.rev-layer .marg { font-family: var(--font-mono); font-size: 12px; color: var(--fg-2); text-align: right; white-space: nowrap; }
.rev-layer .marg b { display:block; color: var(--fg-1); font-size: 1.05rem; font-weight: 500; }

/* ===========================================================================
   MOAT + COMPARISON TABLE
   =========================================================================== */
.moat-cols { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 52px; }
@media (max-width: 820px){ .moat-cols{ grid-template-columns:1fr } }
.moat-card { border: 1px solid var(--border-1); border-radius: var(--r-4); padding: 28px; background: var(--bg-surface); position: relative; }
.moat-card .layer-n { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); letter-spacing: 0.1em; }
.moat-card h3 { font-family: var(--font-display); font-weight:600; font-size: 1.4rem; margin: 14px 0 10px; letter-spacing:-0.02em; }
.moat-card p { font-family: var(--font-body); font-size: 14.5px; line-height:1.55; color: var(--fg-2); margin: 0; }
.moat-card .ic-feat { width: 26px; height: 26px; color: var(--accent); }

.cmp-wrap { margin-top: 40px; overflow-x: auto; border-radius: var(--r-4); }
table.cmp { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 720px; font-family: var(--font-body); }
table.cmp thead th {
  background: var(--hp-ink); color: #fff; font-weight: 600; font-size: 13.5px;
  text-align: center; padding: 16px 18px; letter-spacing: -0.01em;
}
table.cmp thead th:first-child { text-align: left; border-top-left-radius: var(--r-4); }
table.cmp thead th:last-child { border-top-right-radius: var(--r-4); }
table.cmp thead th.own { background: var(--accent); }
table.cmp td {
  padding: 15px 18px; border-bottom: 1px solid var(--border-1); font-size: 14px; text-align: center;
  color: var(--fg-1);
}
table.cmp td:first-child { text-align: left; font-weight: 500; }
table.cmp tbody tr td.own-col { background: var(--bg-surface-2); }
table.cmp .dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
table.cmp .dot.yes-own { background: var(--accent); }
table.cmp .dot.yes { background: var(--hp-ink); }
table.cmp .dot.no { background: transparent; border: 1.5px solid var(--hp-ink-300); }
table.cmp td.spec { font-family: var(--font-mono); font-size: 12.5px; font-feature-settings:"tnum" 1; }
table.cmp .word-own { color: var(--accent); font-weight: 600; }

/* moat commercial engine */
.moat-engine { margin-top: 40px; border: 1px solid var(--border-1); border-radius: var(--r-4); background: var(--bg-surface); padding: 26px 30px; }
.moat-engine .eng-k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 10px; }
.moat-engine .eng-v { font-family: var(--font-body); font-size: clamp(1.05rem,1.6vw,1.25rem); line-height: 1.5; color: var(--fg-1); margin: 0; max-width: 70ch; text-wrap: pretty; }

/* ===========================================================================
   HONESTY MARKER
   =========================================================================== */
.honesty {
  display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start;
  border: 1px solid var(--border-1); border-left: 3px solid var(--hp-amber);
  border-radius: var(--r-4); padding: 26px 30px; background: var(--bg-surface); margin-top: 44px;
}
.honesty .h-ic { width: 26px; height: 26px; color: var(--warning); }
.honesty h4 { font-family: var(--font-display); font-weight:600; font-size: 1.15rem; margin: 0 0 6px; letter-spacing:-0.02em; }
.honesty p { font-family: var(--font-body); font-size: 14.5px; line-height: 1.55; color: var(--fg-2); margin: 0; max-width: 70ch; }
.honesty .status-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.status-pill {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: var(--r-pill); border: 1px solid var(--border-1);
  color: var(--fg-1); background: var(--bg-page);
}
.status-pill .d { width: 7px; height: 7px; border-radius: 50%; }
.status-pill .d.live { background: var(--success); }
.status-pill .d.build { background: var(--hp-amber); }
.status-pill .d.plan { background: var(--hp-ink-300); }

/* ===========================================================================
   TEAM & BACKING
   =========================================================================== */
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,5vw,64px); margin-top: 52px; align-items: start; }
@media (max-width: 820px){ .team-grid{ grid-template-columns:1fr } }
.cred-list.team-single { margin-top: clamp(40px, 6vw, 64px); max-width: 780px; }
.cred-list { display: grid; gap: 0; border-top: 1px solid var(--border-1); }
.cred-row { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--border-1); align-items: baseline; }
.cred-row .ic { width: 22px; height: 22px; color: var(--accent); }
.cred-row h4 { font-family: var(--font-display); font-weight:600; font-size: 1.05rem; margin:0 0 4px; letter-spacing:-0.02em; }
.cred-row p { font-family: var(--font-body); font-size: 14px; color: var(--fg-2); margin:0; line-height:1.5; }
.backers { margin-top: 8px; }
.backers .bk-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); }
.backers .raise { font-family: var(--font-mono); font-size: clamp(2.6rem,6vw,4rem); font-weight:500; color: var(--accent); line-height:1; margin: 18px 0 6px; letter-spacing:-0.02em; }
.backing-stmt { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.2; letter-spacing: -0.02em; color: var(--fg-1); margin: 14px 0 0; max-width: 22ch; text-wrap: balance; }
.backers .raise-sub { font-family: var(--font-body); font-size: 14px; color: var(--fg-2); }
.logo-row { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; margin-top: 28px; background: var(--border-1); border: 1px solid var(--border-1); border-radius: var(--r-4); overflow: hidden; }
.logo-cell { background: var(--bg-page); padding: 22px 20px; display: flex; align-items: center; justify-content: center; min-height: 76px; }
.logo-cell span { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; color: var(--fg-1); opacity: 0.78; }

/* ===========================================================================
   CLOSING CTA
   =========================================================================== */
.closing { background: var(--hp-ink); color: var(--fg-1); overflow: clip; position: relative; }
.closing-lattice { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.55; }
.closing-scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(3,21,32,0.92) 0%, rgba(3,21,32,0.74) 45%, rgba(3,21,32,0.4) 100%); }
.closing-inner { position: relative; z-index: 2; text-align: center; display: grid; justify-items: center; }
.closing h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 5rem); line-height: 1; letter-spacing: -0.035em;
  margin: 0; color: var(--fg-1); max-width: 18ch; text-wrap: balance;
}
.closing p { font-family: var(--font-body); font-size: clamp(1rem,1.5vw,1.25rem); color: var(--fg-2); margin: 24px 0 0; max-width: 46ch; }
.closing .closing-actions { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; justify-content: center; }
.closing .btn-outline { color: var(--fg-1); border-color: var(--border-1); }
.closing .btn-outline:hover { border-color: var(--border-strong); background: var(--bg-surface-2); }

/* ===========================================================================
   FOOTER
   =========================================================================== */
.footer { background: var(--hp-ink); color: var(--fg-1); border-top: 1px solid var(--border-1); padding: 64px 0 36px; }
.footer .footer-grid { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px){ .footer .footer-grid{ grid-template-columns: 1fr 1fr; gap: 32px } }
.footer-brand img { height: 22px; margin-bottom: 18px; }
.footer-brand p { font-family: var(--font-body); font-size: 13px; line-height: 1.6; color: var(--fg-2); max-width: 30ch; margin: 0; }
.footer-col h5 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); margin: 0 0 14px; }
.footer-col a { display: block; font-family: var(--font-body); font-size: 14px; color: var(--fg-1); opacity: 0.82; padding: 5px 0; cursor: pointer; }
.footer-col a:hover { opacity: 1; color: var(--accent); }
.footer-base { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border-1); font-family: var(--font-mono); font-size: 11.5px; color: var(--fg-3); letter-spacing: 0.02em; }
.footer-base a { color: var(--fg-3); cursor: pointer; }
.footer-base a:hover { color: var(--fg-1); }
.footer-base .grow { flex: 1; }

/* ===========================================================================
   MODAL (book a tour / LatticeAI access)
   =========================================================================== */
.modal-scrim {
  position: fixed; inset: 0; z-index: 1000; background: rgba(3,21,32,0.6);
  backdrop-filter: blur(4px); display: grid; place-items: center; padding: 24px;
  opacity: 0; pointer-events: none; transition: opacity var(--dur-base) var(--ease-out);
}
.modal-scrim.open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--bg-page); border: 1px solid var(--border-1); border-radius: var(--r-5);
  width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-4); transform: translateY(10px) scale(0.99);
  transition: transform var(--dur-base) var(--ease-out); position: relative;
}
.modal-scrim.open .modal { transform: none; }
.modal-head { padding: 28px 30px 0; }
.modal-head .kicker { margin-bottom: 14px; }
.modal-head h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; letter-spacing:-0.03em; margin: 0; }
.modal-head p { font-family: var(--font-body); font-size: 14.5px; color: var(--fg-2); margin: 10px 0 0; line-height:1.5; }
.modal-close { position: absolute; top: 18px; right: 18px; width: 36px; height: 36px; border-radius: var(--r-2); border: 1px solid var(--border-1); background: var(--bg-surface); display: grid; place-items: center; cursor: pointer; color: var(--fg-2); transition: background var(--dur-base); }
.modal-close:hover { background: var(--bg-surface-2); }
.modal-body { padding: 24px 30px 30px; }
.modal-tabs { display: flex; gap: 6px; padding: 4px; background: var(--bg-surface-2); border-radius: var(--r-3); margin-bottom: 22px; }
.modal-tabs button { flex: 1; font-family: var(--font-body); font-size: 13.5px; font-weight: 500; padding: 10px; border: none; background: transparent; border-radius: var(--r-2); cursor: pointer; color: var(--fg-2); transition: background var(--dur-base), color var(--dur-base); }
.modal-tabs button.active { background: var(--bg-surface); color: var(--fg-1); box-shadow: var(--shadow-1); }
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--font-body); font-size: 13px; font-weight: 500; color: var(--fg-1); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 14.5px; color: var(--fg-1);
  padding: 11px 13px; border: 1px solid var(--border-1); border-radius: var(--r-3);
  background: var(--bg-surface); transition: border-color var(--dur-base), box-shadow var(--dur-base);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--shadow-focus); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field .hint { font-family: var(--font-body); font-size: 12px; color: var(--fg-3); margin-top: 6px; }
.field .err { color: var(--danger); }
.form-error { font-family: var(--font-body); font-size: 13px; color: var(--danger); margin-top: 12px; }
.modal .btn-primary { width: 100%; justify-content: center; margin-top: 6px; }
.modal-success { text-align: center; padding: 20px 0; }
.modal-success .ok { width: 52px; height: 52px; color: var(--success); margin: 0 auto 16px; }
.modal-success h4 { font-family: var(--font-display); font-weight:700; font-size: 1.4rem; margin: 0 0 8px; letter-spacing:-0.02em; }
.modal-success p { font-family: var(--font-body); font-size: 14.5px; color: var(--fg-2); margin: 0; }
.login-meta { font-family: var(--font-body); font-size: 13px; color: var(--fg-2); text-align: center; margin-top: 18px; }
.login-meta a { font-weight: 500; }

/* ===========================================================================
   SCROLL REVEAL
   =========================================================================== */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 520ms var(--ease-out), transform 520ms var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 70ms; }
.reveal.d2 { transition-delay: 140ms; }
.reveal.d3 { transition-delay: 210ms; }
.reveal.d4 { transition-delay: 280ms; }
@media (prefers-reduced-motion: reduce){ .reveal{ opacity:1 !important; transform:none !important; transition:none } }

/* ===========================================================================
   LATTICE MOTIF
   =========================================================================== */
.hp-lattice { width: 100%; height: 100%; display: block; }
.hp-lattice svg { display: block; }
.lat-cell { transform-box: fill-box; transform-origin: center; }
/* pointer spotlight: soft transition so the blue glow trails the cursor */
.hp-lattice.interactive { cursor: crosshair; }
.hp-lattice.interactive .lat-cell rect,
.hp-lattice.interactive .lat-cell line {
  transition: stroke 160ms var(--ease-out), fill 160ms var(--ease-out), filter 160ms var(--ease-out);
}
/* animated reveal: hidden pre-state only when the container opts in (.anim) */
.hp-lattice.anim .lat-cell {
  opacity: 0; transform: scale(0.62);
  transition: opacity 420ms var(--ease-out), transform 460ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.hp-lattice.anim.lit .lat-cell { opacity: 1; transform: scale(1); }
.lat-pulse { animation: latpulse 3.4s var(--ease-in-out) infinite; transform-box: fill-box; transform-origin: bottom; }
@keyframes latpulse { 0%,100% { opacity: 1; } 50% { opacity: 0.45; } }
.lat-shimmer { animation: latshimmer 5.5s var(--ease-in-out) infinite; }
@keyframes latshimmer { 0%,100% { opacity: 0.5; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce){
  .lat-pulse{ animation: none }
  .lat-shimmer{ animation: none; opacity: 0.85; }
  .hp-lattice.anim .lat-cell{ opacity:1; transform:none; transition:none }
}

.scale-triad { display: flex; align-items: flex-end; gap: clamp(14px, 3vw, 36px); }
.triad-col { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.triad-cap { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--fg-3); white-space: nowrap; }
.triad-col .hp-lattice { width: auto; }
.triad-col .hp-lattice svg { width: auto; height: auto; display: block; }
.scale-triad .triad-arrow { width: 24px; height: 24px; color: var(--fg-3); flex: none; margin-bottom: 16px; }
.scale-triad > .triad-col:nth-child(1) .hp-lattice svg { width: 44px; height: 44px; }
.scale-triad > .triad-col:nth-child(3) .hp-lattice svg { width: 92px; height: 64px; }
.scale-triad > .triad-col:nth-child(5) .hp-lattice svg { width: 128px; height: 88px; }

/* utility */
.center { text-align: center; }
.mt-s { margin-top: 16px; } .mt-m { margin-top: 28px; } .mt-l { margin-top: 44px; }
.divider { height: 1px; background: var(--border-1); border: none; margin: 0; }
.fadeable { transition: opacity var(--dur-base) var(--ease-out); }

/* ===========================================================================
   GLOBAL REDUCED-MOTION SAFETY
   Collapse all transitions/animations to ~instant so state changes (modal
   open, hovers, reveals) always reach their end value rather than holding at
   the pre-animation start. Non-reduced-motion users keep the full motion.
   =========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* ===========================================================================
   SPLASH OVERLAY — full-bleed image, analogue-TV grain/flicker, dismiss on click
   =========================================================================== */
.splash-seen #hp-splash { display: none !important; }
/* while the splash is up, freeze the page at the top so a scroll gesture
   reveals the splash curtain instead of skating past the hero beneath it */
html.splash-lock, html.splash-lock body { overflow: hidden; height: 100%; }
#hp-splash {
  position: fixed; inset: 0; z-index: 9999; overflow: hidden;
  background: var(--hp-ink); cursor: pointer;
  opacity: 1; transform: translateY(0); will-change: transform;
  transition: transform 640ms var(--ease-in-out), opacity 640ms var(--ease-out);
}
/* slide the whole panel up like a curtain to reveal the hero underneath */
#hp-splash.leaving { transform: translateY(-100%); pointer-events: none; }

.splash-bg {
  position: absolute; inset: -3%;
  background: url("../assets/splash-london.jpg") center center / cover no-repeat;
  filter: contrast(1.12) saturate(0.82) brightness(0.6);
}
@keyframes splashFlicker {
  0%, 100% { filter: contrast(1.12) saturate(0.82) brightness(0.6); transform: translateX(0); }
  3%  { filter: contrast(1.2) saturate(0.7) brightness(0.78); transform: translateX(-2px); }
  5%  { filter: contrast(1.05) saturate(0.85) brightness(0.5); }
  7%  { filter: contrast(1.15) brightness(0.62); transform: translateX(1px); }
  9%  { filter: contrast(1.1) brightness(0.58); }
  30% { filter: contrast(1.12) brightness(0.6); }
  32% { filter: contrast(1.0) saturate(0.6) brightness(0.34); }   /* signal drop */
  33% { filter: contrast(1.3) saturate(0.9) brightness(0.95); transform: translateX(-3px); }  /* bright blip */
  35% { filter: contrast(1.08) brightness(0.52); transform: translateX(2px); }
  37% { filter: contrast(1.12) brightness(0.6); }
  62% { filter: contrast(1.12) brightness(0.6); }
  64% { filter: contrast(1.18) saturate(0.7) brightness(0.74); transform: translateX(2px); }
  66% { filter: contrast(1.05) brightness(0.46); transform: translateX(-1px); }
  68% { filter: contrast(1.12) brightness(0.6); }
  86% { filter: contrast(1.1) brightness(0.55); }
  88% { filter: contrast(1.25) brightness(0.85); }
  90% { filter: contrast(1.0) brightness(0.4); }
}

/* moving fine-grain noise */
.splash-grain {
  position: absolute; inset: -60%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 170px 170px;
  opacity: 0.24; mix-blend-mode: overlay; pointer-events: none;
}
@keyframes splashGrain {
  0%   { transform: translate(0, 0); }
  16%  { transform: translate(-9%, 6%); }
  33%  { transform: translate(7%, -10%); }
  50%  { transform: translate(-11%, 9%); }
  66%  { transform: translate(10%, 4%); }
  83%  { transform: translate(-5%, -8%); }
  100% { transform: translate(6%, -3%); }
}

/* faint horizontal scanlines, slowly drifting */
.splash-scanlines {
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,0.34) 0 1px, transparent 1px 3px);
  opacity: 0.7; mix-blend-mode: multiply;
}
@keyframes splashScan { 0% { background-position: 0 0; } 100% { background-position: 0 9px; } }

/* protection scrim for left-justified text + vignette */
.splash-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(3,21,32,0.85) 0%, rgba(3,21,32,0.45) 38%, rgba(3,21,32,0.08) 72%),
    linear-gradient(0deg, rgba(3,21,32,0.72) 0%, rgba(3,21,32,0) 46%),
    radial-gradient(130% 120% at 50% 42%, rgba(3,21,32,0) 52%, rgba(3,21,32,0.55) 100%);
}

.splash-content {
  position: absolute; inset: 0; display: flex;
  flex-direction: column; align-items: flex-start; justify-content: flex-end;
  padding: clamp(40px, 8vw, 104px) clamp(28px, 6vw, 96px);
}
.splash-title {
  font-family: 'Space Grotesk', var(--font-display); font-weight: 700;
  font-size: clamp(2.6rem, 8.5vw, 7rem); line-height: 0.96; letter-spacing: -0.04em;
  color: var(--hp-bone); margin: 0; text-align: left;
  text-shadow: 0 2px 30px rgba(3,21,32,0.45);
}
/* "scroll / click to continue" cue — directly under the title, left-aligned */
.splash-hint {
  margin-top: clamp(16px, 2.2vw, 26px);
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  text-align: left; pointer-events: none;
  color: rgba(245, 244, 238, 0.6);
}
.splash-hint .hint-label {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  animation: splashHintPulse 2.6s var(--ease-in-out) infinite;
}
.splash-hint .hint-arrow {
  color: var(--hp-blue-300);
  animation: splashArrowBob 1.8s var(--ease-in-out) infinite;
}
.splash-hint .hint-touch { display: none; }
@media (hover: none), (pointer: coarse) {
  .splash-hint .hint-desktop { display: none; }
  .splash-hint .hint-touch { display: inline; }
}
@keyframes splashHintPulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
@keyframes splashArrowBob {
  0%, 100% { transform: translateY(0); opacity: 0.55; }
  50%      { transform: translateY(6px); opacity: 1; }
}

.splash-title .hl { color: var(--hp-blue-300); }   /* "hyperscaling" in highlight blue */
.splash-title .dot {
  font-family: var(--font-display);   /* Manrope period against the Space Grotesk title */
  color: var(--hp-blue-300);
  /* steps(1) makes each change snap rather than fade — a true flicker.
     Irregular, clustered blips with uneven gaps so it never reads as a loop.
     !important so the period keeps flickering even when the OS requests
     reduced motion (beats the global reduced-motion animation kill-switch). */
  animation: dotFlicker 5.7s steps(1, end) infinite !important;
}
@keyframes dotFlicker {
  0%   { opacity: 1; }
  8.5% { opacity: 0.12; }   /* A — lone flash */
  9.2% { opacity: 1; }
  24%  { opacity: 0.3; }    /* B — stutter burst */
  24.7%{ opacity: 0.85; }
  25.4%{ opacity: 0.1; }
  26%  { opacity: 1; }
  45%  { opacity: 0.22; }   /* C */
  45.9%{ opacity: 1; }
  62%  { opacity: 0.4; }    /* D — deeper drop-out */
  62.8%{ opacity: 0.06; }
  64%  { opacity: 1; }
  84%  { opacity: 0.18; }   /* E */
  84.7%{ opacity: 1; }
  92%  { opacity: 0.12; }   /* F — quick double */
  92.5%{ opacity: 0.6; }
  93%  { opacity: 0.1; }
  93.6%{ opacity: 1; }
  100% { opacity: 1; }
}

/* ===========================================================================
   LATTICEAI SECTION — capability modules (live microscopy) + proof charts
   =========================================================================== */
.ai-cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 22px; margin-top: 52px;
}
@media (max-width: 900px) { .ai-cards { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }

.ai-card {
  border: 1px solid var(--border-1); border-radius: var(--r-4);
  background: var(--bg-surface); overflow: hidden; outline: none;
  transition: transform var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.ai-card:hover, .ai-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-3);
}
.ai-card-media {
  position: relative; aspect-ratio: 6 / 5; overflow: hidden;
  background: var(--hp-ink);
}
.ai-card-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: brightness(0.82) saturate(0.92) contrast(1.04);
  transform: scale(1.01);
  transition: transform 620ms var(--ease-out), filter var(--dur-base) var(--ease-out);
}
.ai-card:hover .ai-card-media img,
.ai-card:focus-visible .ai-card-media img {
  transform: scale(1.07);
  filter: brightness(1) saturate(1.05) contrast(1.06);
}
/* the "AI read" — an accent scan bar that sweeps the cells while hovered */
.ai-scan {
  position: absolute; left: 0; right: 0; top: 0; height: 34%;
  transform: translateY(-120%); opacity: 0; pointer-events: none;
  background: linear-gradient(to bottom,
    rgba(80,82,224,0) 0%, rgba(80,82,224,0.22) 78%, rgba(181,182,240,0.7) 100%);
  box-shadow: 0 1px 0 rgba(181,182,240,0.8);
  mix-blend-mode: screen;
}
.ai-card:hover .ai-scan, .ai-card:focus-visible .ai-scan {
  opacity: 1; animation: aiScan 1.7s var(--ease-in-out) infinite;
}
@keyframes aiScan {
  0%   { transform: translateY(-120%); }
  100% { transform: translateY(330%); }
}
.ai-stage {
  position: absolute; left: 12px; bottom: 12px;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--hp-bone); background: rgba(3,21,32,0.55);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  padding: 5px 9px; border-radius: var(--r-1);
  border: 1px solid rgba(245,244,238,0.16);
}
.ai-card-body { padding: 20px 22px 24px; }
.ai-tool {
  font-family: var(--font-display); font-weight: 700; font-size: 1.35rem;
  letter-spacing: -0.02em; margin: 0; color: var(--fg-1);
  transition: color var(--dur-base) var(--ease-out);
}
.ai-card:hover .ai-tool, .ai-card:focus-visible .ai-tool { color: var(--accent); }
.ai-role {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); margin: 6px 0 10px;
}
.ai-desc { font-size: 14px; line-height: 1.5; color: var(--fg-2); margin: 0; }

@media (prefers-reduced-motion: reduce) {
  .ai-card-media img { transform: none !important; }
  .ai-card:hover { transform: none; }
  .ai-scan { display: none; }
}
