@font-face{font-family:"Instrument Serif";font-style:italic;font-weight:400;font-display:swap;src:url("../fonts/InstrumentSerif-400i-latin-ext.woff2") format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:"Instrument Serif";font-style:italic;font-weight:400;font-display:swap;src:url("../fonts/InstrumentSerif-400i-latin.woff2") format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:"Instrument Serif";font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/InstrumentSerif-400-latin-ext.woff2") format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:"Instrument Serif";font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/InstrumentSerif-400-latin.woff2") format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:"JetBrains Mono";font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/JetBrainsMono-400-latin-ext.woff2") format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:"JetBrains Mono";font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/JetBrainsMono-400-latin.woff2") format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:"JetBrains Mono";font-style:normal;font-weight:500;font-display:swap;src:url("../fonts/JetBrainsMono-500-latin-ext.woff2") format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:"JetBrains Mono";font-style:normal;font-weight:500;font-display:swap;src:url("../fonts/JetBrainsMono-500-latin.woff2") format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:"Satoshi";src:url("../fonts/Satoshi-Regular.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Satoshi";src:url("../fonts/Satoshi-Medium.woff2") format("woff2");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"Satoshi";src:url("../fonts/Satoshi-Bold.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap}

/* Cloudfactory v3: v1 look, cleaned up (fonts self-hosted, motion Emil, no glows, AA contrast) */

:root {
  /* Light theme (default) */
  --bg: #f4f1ec;
  --bg-elev: #ffffff;
  --bg-soft: #ebe6dd;
  --ink: #0b1220;
  --ink-2: #1b2235;
  --muted: #5b6475;
  --muted-2: #687083;
  --line: #d9d3c7;
  --line-2: #e8e3d8;
  --accent: #0057ff;        /* electric blue */
  --accent-2: #00b2ff;      /* cyan */
  --accent-ink: #fbfaf7;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-move: cubic-bezier(0.77, 0, 0.175, 1);
  --warn: #e06b2b;
  --ok: #1f9d55;

  /* Type */
  --f-display: "Instrument Serif", "Times New Roman", serif;
  --f-sans: "Satoshi", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 22px;

  --maxw: 1280px;
}

[data-theme="dark"] {
  --bg: #0b0f17;
  --bg-elev: #121826;
  --bg-soft: #151c2c;
  --ink: #f4f1ec;
  --ink-2: #d6dae2;
  --muted: #9aa3b3;
  --muted-2: #8f98a8;
  --line: #1f2a3d;
  --line-2: #18212f;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

/* Utility */
.mono { font-family: var(--f-mono); font-weight: 400; letter-spacing: 0; }
.caps {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.serif { font-family: var(--f-display); font-weight: 400; font-style: normal; }

.hr {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}
.hr-dim { background: var(--line-2); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.eyebrow::before { content: none; }

.section {
  padding: 120px 0;
  position: relative;
}
.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 64px;
}
.section-head h2 {
  font-family: var(--f-display);
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 12px 0 0 0;
  font-weight: 400;
  text-wrap: balance;
}
.section-head .sub {
  color: var(--muted);
  font-size: 17px;
  max-width: 60ch;
  margin-top: 8px;
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}
.brand {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: "Satoshi", var(--f-sans);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.brand-word { display: inline-flex; }
.mark { display: block; flex-shrink: 0; }
/* On dark surfaces the front (navy) cloud would vanish - flip it to paper, keep amber. */
.footer .mark { --mark-front: #ECE6D7; }
[data-theme="dark"] .mark { --mark-front: #ECE6D7; }
.nav {
  display: flex; align-items: center; gap: 4px;
}
.nav a {
  padding: 8px 12px;
  color: var(--ink-2);
  font-size: 14px;
  border-radius: var(--r-sm);
  transition: background-color 150ms ease;
}
.top-right {
  display: flex; align-items: center; gap: 8px;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out);
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-ghost { border-color: transparent; }
.btn:active, .theme-btn:active, .lang-switch button:active, .acc-head:active .acc-icon { transform: scale(0.97); }
.btn svg { transition: transform 200ms var(--ease-out); }

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
}
.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out);
}
.lang-switch button.active {
  background: var(--ink);
  color: var(--bg);
}
.theme-btn {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--ink);
  transition: background-color 160ms ease, transform 160ms var(--ease-out);
}

/* mobile nav off by default - not building a full responsive menu for hi-fi desktop */
.menu-btn { display: none; }
.mnav { display: none; }
@media (max-width: 960px) {
  .nav, .top-right .btn-primary { display: none; }
  .menu-btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-elev); color: var(--ink); font-size: 14px; font-weight: 500; transition: transform 160ms var(--ease-out); }
  .menu-btn:active { transform: scale(0.97); }
  .mnav { display: grid; gap: 2px; padding: 0 28px; max-height: 0; overflow: hidden; opacity: 0; transition: opacity 180ms var(--ease-out); }
  .mnav.open { max-height: 480px; padding: 8px 28px 24px; opacity: 1; transition-duration: 220ms; }
  .mnav a { font-family: var(--f-display); font-size: 30px; letter-spacing: -0.01em; padding: 6px 0; }
  .mnav .btn { justify-self: start; margin-top: 12px; font-family: var(--f-sans); font-size: 15px; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 96px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}
.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--muted);
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elev);
}
.status-dot {
  width: 7px; height: 7px; border-radius: 999px;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(31,157,85,.45);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(31,157,85,.45); }
  70% { box-shadow: 0 0 0 10px rgba(31,157,85,0); }
  100% { box-shadow: 0 0 0 0 rgba(31,157,85,0); }
}

.hero h1 {
  font-family: var(--f-display);
  font-size: clamp(52px, 8.4vw, 128px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0;
  font-weight: 400;
  text-wrap: balance;
}
.hero h1 .accent {
  color: var(--accent);
  font-style: italic;
}
.hero h1 .l2 { display: block; padding-left: clamp(40px, 12vw, 180px); }
.hero h1 .l3 { display: block; color: var(--muted); }

.hero-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 64px;
  align-items: end;
}
.hero-sub {
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 56ch;
  text-wrap: pretty;
}
.hero-sub-2 { margin-top: 18px; font-size: 18px; color: var(--muted); }
.hero-ctas {
  display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
  font-family: var(--f-mono);
  font-size: 12.5px;
  color: var(--ink-2);
  min-height: 280px;
  overflow: hidden;
}
.hero-visual .hv-head {
  display: flex; justify-content: space-between; align-items: center;
  color: var(--muted);
  margin-bottom: 12px;
}
.hv-log {
  display: grid; gap: 6px;
  position: relative; z-index: 1;
}
.hv-row { display: grid; grid-template-columns: 78px 1fr auto; gap: 12px; }
.hv-row .t { color: var(--muted-2); }
.hv-row .m { color: var(--ink-2); }
.hv-row .s { color: var(--ok); }
.hv-row .s.warn { color: var(--warn); }

/* Ticker */
.ticker {
  margin-top: 72px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}
.ticker-track {
  display: inline-flex;
  gap: 48px;
  animation: ticker 40s linear infinite;
  padding-right: 48px;
}
.ticker-track span::before {
  content: none;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- About ---------- */
.about-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin-bottom: 72px;
}
.about-body p {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
  text-wrap: pretty;
}
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.principle {
  padding: 32px 0;
  border-right: 1px solid var(--line);
  padding-right: 32px;
}
.principle:last-child { border-right: 0; padding-right: 0; }
.principle:not(:first-child) { padding-left: 32px; }
.principle .k {
  font-family: var(--f-mono);
  color: var(--accent);
  font-size: 12px;
  margin-bottom: 24px;
}
.principle .t {
  font-family: var(--f-display);
  font-size: 28px;
  line-height: 1.1;
  margin-bottom: 12px;
  letter-spacing: -0.015em;
}
.principle .d { color: var(--muted); font-size: 15px; }

/* ---------- Services ---------- */
.services {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.service {
  background: var(--bg-elev);
  padding: 36px 32px 40px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 440px;
  transition: background-color 200ms ease;
  position: relative;
}
.service .tag {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.service h3 {
  font-family: var(--f-display);
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
  font-weight: 400;
  text-wrap: balance;
}
.service .body {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 24px;
}
.service ul {
  list-style: none;
  padding: 0;
  margin: auto 0 0 0;
  font-family: var(--f-mono);
  font-size: 12.5px;
  color: var(--ink-2);
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: grid; gap: 8px;
}
.service ul li {
  display: flex; align-items: center; gap: 10px;
}
.service ul li::before {
  content: "›"; color: var(--accent); font-family: var(--f-sans); font-weight: 700;
}

/* ---------- Integration ---------- */
.integration .section-head h2 .em { color: var(--accent); font-style: italic; }

.integration-stage {
  margin-top: 56px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px;
  position: relative;
}
.stage-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 28px;
}
.stage-head .ttl {
  font-family: var(--f-display);
  font-size: 24px;
  letter-spacing: -0.01em;
}
.diagram {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 28px;
  align-items: stretch;
  position: relative;
}
.diag-col {
  display: grid;
  gap: 12px;
  align-content: start;
}
.diag-col .colname {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 4px;
}
.node {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px 14px;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--ink-2);
  transition: border-color 200ms ease, transform 200ms var(--ease-out);
}
.node .sw {
  width: 22px; height: 22px;
  border-radius: var(--r-sm);
  display: grid; place-items: center;
  background: color-mix(in oklab, var(--accent) 16%, var(--bg-elev));
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  flex: 0 0 auto;
}
.node .meta {
  margin-left: auto;
  color: var(--muted-2);
  font-size: 11px;
}
.hub {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--r-md);
  padding: 24px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative;
  overflow: hidden;
  min-height: 100%;
}
.hub > * { position: relative; z-index: 1; }
.hub .title {
  font-family: var(--f-display);
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.hub .sub {
  font-family: var(--f-mono);
  font-size: 11px;
  color: color-mix(in oklab, var(--bg) 80%, transparent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
}
.hub-ports {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  margin-top: 10px;
}
.hub-port {
  font-family: var(--f-mono);
  font-size: 11px;
  padding: 6px 8px;
  border-radius: var(--r-sm);
  background: color-mix(in oklab, var(--bg) 12%, transparent);
  color: color-mix(in oklab, var(--bg) 85%, transparent);
  border: 1px solid color-mix(in oklab, var(--bg) 18%, transparent);
  display: flex; align-items: center; gap: 6px;
}
.hub-port .hp-dot {
  width: 6px; height: 6px; border-radius: 999px; background: var(--accent);
}

.diag-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.diag-logs {
  margin-top: 28px;
  border-top: 1px dashed var(--line);
  padding-top: 20px;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
}
.diag-logs .caps { align-self: start; }
.log-stream {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--muted);
  display: grid; gap: 6px;
}
.log-stream .ln { display: grid; grid-template-columns: 72px 70px 1fr auto; gap: 12px; }
.log-stream .ln .tag { color: var(--accent); }
.log-stream .ln .msg { color: var(--ink-2); }
.log-stream .ln .d { color: var(--muted-2); }

.int-caption {
  margin-top: 40px;
  font-size: 17px;
  color: var(--muted);
  max-width: 70ch;
  text-wrap: pretty;
}

.kpis {
  margin-top: 56px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.kpi { padding: 28px 0; border-right: 1px solid var(--line); padding-right: 24px; }
.kpi:last-child { border-right: 0; }
.kpi:not(:first-child) { padding-left: 24px; }
.kpi .n {
  font-family: var(--f-display);
  font-size: clamp(44px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.kpi .l { color: var(--muted); font-size: 14px; margin-top: 10px; }

/* ---------- Stats ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 40px 24px;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat .n {
  font-family: var(--f-display);
  font-size: clamp(54px, 6.5vw, 96px);
  line-height: 1;
  letter-spacing: -0.02em;
  display: flex; align-items: baseline; gap: 4px;
}
.stat .n .s { font-size: 0.45em; color: var(--accent); }
.stat .l {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 12px;
}

/* ---------- Tech ---------- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.tech-col {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 24px;
  background: var(--bg-elev);
}
.tech-col .l {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}
.tech-col ul {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 10px;
}
.tech-col li {
  font-family: var(--f-display);
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
  display: flex; align-items: center; gap: 10px;
}
.tech-col li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0.6;
}

/* ---------- Lab Notes ---------- */
.notes { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.notes-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.note {
  background: var(--bg-elev);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 32px 28px;
  display: flex; flex-direction: column;
  min-height: 340px;
  transition: background-color 200ms ease;
}
.note.feature {
  grid-row: span 2;
  min-height: unset;
  background: var(--ink);
  color: var(--bg);
  position: relative;
  overflow: hidden;
}
.note.feature > * { position: relative; z-index: 1; }

.note-meta {
  display: flex; gap: 10px; align-items: center; font-family: var(--f-mono); font-size: 11px;
  color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.note.feature .note-meta { color: color-mix(in oklab, var(--bg) 70%, transparent); }
.note-meta .pill {
  padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink-2);
}
.note.feature .note-meta .pill {
  background: color-mix(in oklab, var(--bg) 14%, transparent);
  border-color: color-mix(in oklab, var(--bg) 22%, transparent);
  color: var(--bg);
}

.note h3 {
  font-family: var(--f-display);
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  font-weight: 400;
  text-wrap: balance;
}
.note.feature h3 { font-size: 42px; line-height: 1.08; }
.note .excerpt {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}
.note.feature .excerpt { color: color-mix(in oklab, var(--bg) 72%, transparent); font-size: 18px; }

.note-foot {
  margin-top: auto;
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--f-mono); font-size: 12px; color: var(--muted);
}
.note.feature .note-foot { color: color-mix(in oklab, var(--bg) 65%, transparent); }
.note-foot .arrow {
  width: 32px; height: 32px; border-radius: 999px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  color: var(--ink);
  transition: background .15s, color .15s;
}
.note.feature .note-foot .arrow {
  border-color: color-mix(in oklab, var(--bg) 30%, transparent);
  color: var(--bg);
}

/* ---------- Appunti dal cantiere (accordion) ---------- */
.accordion { border-top: 1px solid var(--line); margin-top: 8px; }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-head {
  width: 100%; background: none; border: 0; cursor: pointer;
  display: flex; align-items: center; gap: 20px;
  padding: 32px 4px;
  text-align: left;
  font-family: inherit;
}
.acc-title {
  font-family: var(--f-display);
  font-size: clamp(28px, 3.4vw, 46px);
  font-weight: 400; letter-spacing: -0.02em; line-height: 1.04;
  color: var(--ink);
  flex: 1;
}
.acc-title.struck {
  text-decoration: line-through;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  color: var(--muted);
}
.acc-count {
  font-family: var(--f-mono); font-size: 13px;
  color: var(--muted-2); flex-shrink: 0;
}
.acc-icon { position: relative; width: 22px; height: 22px; flex-shrink: 0; }
.acc-icon::before, .acc-icon::after {
  content: ""; position: absolute; background: var(--ink);
  transition: transform 220ms var(--ease-out), opacity 180ms var(--ease-out);
}
.acc-icon::before { left: 0; top: 10px; width: 22px; height: 2px; }
.acc-icon::after  { left: 10px; top: 0; width: 2px; height: 22px; }
.acc-item.open .acc-icon::after { transform: scaleY(0); opacity: 0; }

.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 260ms var(--ease-out); }
.acc-item.open .acc-body { grid-template-rows: 1fr; }
.acc-body-inner { min-height: 0; overflow: hidden; }
.acc-title { transition: color 160ms ease; }
.acc-item.open .acc-body-inner { padding-bottom: 44px; }

.reserved-shell {
  background: #0c1426; color: #e7ebf2;
  border: 1px solid #1c2742; border-radius: var(--r-lg);
  padding: clamp(28px, 3.5vw, 48px);
  position: relative; overflow: hidden;
}
.reserved-shell > * { position: relative; }

.cantiere-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.cantiere-card {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 30px 28px 26px;
  background: var(--bg-elev);
  display: flex; flex-direction: column;
  min-height: 320px;
  transition: background-color 200ms ease;
}
.ct-meta {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 22px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}
.ct-sector { color: var(--accent); }
.ct-practice { color: var(--muted-2); }
.ct-practice::before { content: "· "; }
.cantiere-card h4 {
  font-family: var(--f-display);
  font-size: 27px;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
  font-weight: 400;
  text-wrap: balance;
}
.cantiere-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 24px;
  text-wrap: pretty;
}
.ct-stack {
  margin-top: auto;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.ct-log {
  margin: 0 0 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg);
  overflow: hidden;
  font-family: var(--f-mono);
  font-size: 11px;
}
.ct-log-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--line-2);
}
.ct-log-row:last-child { border-bottom: 0; }
.ct-log-row .m { color: var(--muted); }
.ct-log-row .s { color: var(--ok); white-space: nowrap; }
.ct-chip {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-2);
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
}

/* --- Riservato: lista (dentro reserved-shell) --- */
.reserved-intro {
  font-size: 16px;
  line-height: 1.55;
  color: rgba(231,235,242,0.66);
  margin: 0 0 28px;
  max-width: 560px;
}
.reserved-list {
  list-style: none;
  margin: 0; padding: 0;
}
.reserved-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 8px 24px;
  padding: 22px 0;
  align-items: baseline;
}
.reserved-item:last-child { padding-bottom: 4px; }
.ri-n {
  font-family: var(--f-mono);
  font-size: 13px;
  color: rgba(231,235,242,0.7);
  letter-spacing: 0.08em;
  padding-top: 6px;
}
.ri-body h4 {
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
  color: #f4f1ec;
  text-wrap: balance;
}
.ri-body p {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(231,235,242,0.66);
  margin: 0 0 12px;
  max-width: 720px;
  text-wrap: pretty;
}
.ri-meta {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(231,235,242,0.7);
}
.case-ref {
  margin-top: 28px;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.case-ref .dot {
  width: 7px; height: 7px; border-radius: 999px;
  background: var(--accent); display: inline-block;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-info dl {
  display: grid; grid-template-columns: 120px 1fr;
  row-gap: 24px; column-gap: 24px;
  margin: 0;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.contact-info dt {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding-top: 4px;
}
.contact-info dd {
  margin: 0;
  font-family: var(--f-display);
  font-size: 22px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.contact-info dd.sm { font-size: 22px; font-family: var(--f-display); color: var(--ink); }

.form {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  display: grid; gap: 16px;
}
.field { display: grid; gap: 6px; }
.field label {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.field input, .field textarea {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--ink);
  transition: border-color 150ms ease, background-color 150ms ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: 0; border-color: var(--accent); background: var(--bg-elev);
}

/* ---------- Footer ---------- */
.footer {
  padding: 80px 0 40px;
  background: var(--ink);
  color: color-mix(in oklab, var(--bg) 80%, transparent);
  border-top: 1px solid var(--line);
}
.footer a { color: color-mix(in oklab, var(--bg) 80%, transparent); }
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid color-mix(in oklab, var(--bg) 14%, transparent);
}
.footer h4 {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  color: color-mix(in oklab, var(--bg) 72%, transparent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 18px;
}
.footer .wordmark {
  font-family: "Satoshi", var(--f-sans);
  font-weight: 500;
  font-size: 44px;
  color: var(--bg);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.footer .tagline { max-width: 36ch; color: color-mix(in oklab, var(--bg) 70%, transparent); }
.foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot-col .co li { color: color-mix(in oklab, var(--bg) 70%, transparent); font-size: 14px; }
.foot-bottom {
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--f-mono); font-size: 12px;
  color: color-mix(in oklab, var(--bg) 72%, transparent);
}

.tweaks-fab {
  position: fixed; right: 20px; bottom: 20px;
  z-index: 90;
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
}
.tweaks-panel {
  position: fixed; right: 20px; bottom: 20px;
  z-index: 91;
  width: 320px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
  padding: 18px;
  font-size: 13px;
}
.tweaks-panel h5 {
  margin: 0 0 12px; font-family: var(--f-mono); font-size: 11px;
  color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em;
}
.tweaks-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.tweaks-chip {
  padding: 6px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg);
  font-size: 12px;
  cursor: pointer;
}
.tweaks-chip.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.swatch-chip {
  width: 28px; height: 28px; border-radius: 999px; padding: 0;
  border: 2px solid var(--line); cursor: pointer;
}
.swatch-chip.active { border-color: var(--ink); }
.tweaks-close {
  position: absolute; top: 10px; right: 10px;
  width: 26px; height: 26px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg);
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero-grid, .about-body, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .section-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 40px; }
  .service-grid { grid-template-columns: 1fr; }
  .principles, .kpis, .stats-row { grid-template-columns: 1fr 1fr; }
  .tech-grid { grid-template-columns: 1fr 1fr; }
  .notes-grid { grid-template-columns: 1fr 1fr; }
  .note.feature { grid-row: auto; grid-column: span 2; }
  .diagram { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 80px 0; }
  .hero { padding: 48px 0 72px; }
  .hero h1 .l2 { padding-left: 0; }
  .principles, .kpis, .stats-row, .tech-grid, .notes-grid, .cantiere-grid, .foot-grid {
    grid-template-columns: 1fr;
  }
  .cantiere-grid { grid-template-columns: 1fr; }
  .note.feature { grid-column: auto; }
  .reserved-item { grid-template-columns: 1fr; gap: 4px; }
  .ri-n { padding-top: 0; }
}

/* Section entrances (only with JS and motion allowed) */
.rv-on .rv { opacity: 0; transform: translateY(20px); transition: opacity 600ms var(--ease-out), transform 800ms var(--ease-out); transition-delay: var(--d, 0ms); }
.rv-on .rv.in { opacity: 1; transform: none; }
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero h1 .ln > span { display: inline-block; }
.rv-on .hero h1 .ln > span { transform: translateY(105%); transition: transform 1000ms var(--ease-out); transition-delay: var(--d, 0ms); }
.rv-on .hero.in h1 .ln > span { transform: none; }
.hv-row { transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out); }
.hv-row.new { animation: hvIn 360ms var(--ease-out) both; }
@keyframes hvIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.node.lit { border-color: var(--accent); }
.node.lit .sw { background: var(--accent); color: var(--accent-ink); }
.node .sw { transition: background-color 200ms ease, color 200ms ease; }
.diag-lines path { fill: none; stroke: var(--line); stroke-width: 1.5; }
.diag-lines path.on { stroke: var(--accent); stroke-width: 2; }
.diag-lines circle { fill: var(--accent); }
.log-stream .ln.new { animation: hvIn 360ms var(--ease-out) both; }
@media (max-width: 1100px) { .diag-lines { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) *, html:not(.force-motion) *::before, html:not(.force-motion) *::after { animation-duration: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 0ms !important; transition-delay: 0ms !important; }
  html:not(.force-motion) .ticker-track { animation: none !important; }
  html { scroll-behavior: auto; }
}
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { background: var(--bg-soft); }
  .btn:hover { background: var(--bg-soft); }
  .btn-primary:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
  .btn-accent:hover { background: color-mix(in oklab, var(--accent) 80%, black); }
  .theme-btn:hover { background: var(--bg-soft); }
  .service:hover { background: var(--bg); }
  .node:hover { border-color: var(--accent); transform: translateY(-1px); }
  .note:hover { background: var(--bg); }
  .note.feature:hover { background: var(--ink-2); }
  .note:hover .arrow { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
  .acc-head:hover .acc-title { color: var(--accent); }
  .acc-head:hover .acc-title.struck { color: var(--ink); }
  .cantiere-card:hover { background: var(--bg); }
  .footer a:hover { color: var(--bg); }
  .btn:hover svg { transform: translateX(3px); }
}

/* Palettes (tweak). Carta = original. */
html[data-palette="cobalto"] .integration,
html[data-palette="cobalto"] .acc-reserved .reserved-shell {
  --bg: #0057ff; --bg-elev: #0a4ee6; --bg-soft: #0b49d6; --ink: #fbfaf7; --ink-2: #eef2ff; --muted: #dbe5ff; --muted-2: #d0dcff;
  --line: rgba(251,250,247,0.28); --line-2: rgba(251,250,247,0.16); --accent: #fbfaf7; --accent-ink: #0b1220;
  --mark-front: #fbfaf7;
  background: var(--bg); color: var(--ink);
}
html[data-palette="cobalto"] .integration .hub { background: #0b1220; color: #fbfaf7; border-color: #0b1220; }
html[data-palette="cobalto"] .integration .node.lit { background: #fbfaf7; color: #0b1220; }
html[data-palette="cobalto"] .integration .node.lit .sw { background: #0057ff; color: #fbfaf7; }
html[data-palette="cobalto"] .integration .node.lit .meta { color: #3d4658; }
html[data-palette="cobalto"] .stats-band { background: #ffd23f; --ink: #0b1220; --muted: #2e2a12; --muted-2: #2e2a12; --line: rgba(11,18,32,0.25); color: var(--ink); }
html[data-palette="cobalto"] .stats-band .n .s { color: #0b1220; }
html[data-palette="cobalto"] .hero h1 .accent { color: #0057ff; }

html[data-palette="cielo"][data-theme="light"] {
  --bg: #edf2fb; --bg-elev: #fbfcfe; --bg-soft: #dfe8f7; --line: #cbd6ea; --line-2: #dde5f2; --muted: #4f5b73; --muted-2: #5d6880;
}
html[data-palette="cielo"] .stats-band {
  --bg: #0b1a3a; --bg-elev: #12244d; --ink: #f4f6fb; --ink-2: #dfe5f2; --muted: #b6c2dc; --muted-2: #aab7d3; --line: #23366a; --line-2: #1a2b57; --accent: #7fb0ff; --mark-front: #f4f6fb;
  background: var(--bg); color: var(--ink);
}
html[data-palette="cobalto"] .footer { --ink: #0057ff; --bg: #fbfaf7; --line: rgba(251,250,247,0.2); }
html[data-palette="cielo"] .footer { --ink: #0b1a3a; --bg: #f4f6fb; --line: #23366a; }

/* Hero visuals: network (1) and path (3) */
.hero-visual.hv-net, .hero-visual.hv-path { font-family: var(--f-sans); padding: 22px 24px 18px; display: flex; flex-direction: column; gap: 8px; }
.hv-cap { font-size: 14px; color: var(--muted); min-height: 20px; }
.hv-cap span { display: inline-block; transition: color 200ms ease; }
.hv-cap span.on { color: var(--accent); animation: hvIn 360ms var(--ease-out) both; }
.hn-svg { width: 100%; height: auto; display: block; overflow: visible; }
.hn-node { transition: opacity 500ms var(--ease-out), transform 800ms var(--ease-move); transform-box: fill-box; transform-origin: center; }
.hn-node rect { fill: var(--bg); stroke: var(--line); stroke-width: 1; transition: fill 200ms ease, stroke 200ms ease; }
.hn-node text { font-family: var(--f-sans); font-size: 15px; font-weight: 500; fill: var(--ink); transition: fill 200ms ease; }
.hn-node.lit rect { stroke: var(--accent); stroke-width: 1.5; }
.hn-hub { transition: opacity 400ms var(--ease-out); }
.hn-hub rect { fill: var(--bg-soft); stroke: var(--line); transition: fill 300ms ease, stroke 300ms ease; }
.hn-hub text { font-family: var(--f-sans); font-size: 14px; font-weight: 500; fill: var(--muted); transition: fill 300ms ease; }
.hn-hub.lit rect { fill: var(--ink); stroke: var(--ink); }
.hn-hub.lit text { fill: var(--bg); }
.hn-wire { fill: none; stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 420ms var(--ease-out), stroke 200ms ease; }
.hn-wire.on { stroke-dashoffset: 0; stroke: color-mix(in oklab, var(--ink) 35%, var(--bg)); }
.hn-wire.on.hot { stroke: var(--accent); stroke-width: 2; }
.hn-dot { fill: var(--accent); }

.hp-list { list-style: none; margin: 8px 0 0; padding: 0 0 0 30px; position: relative; display: grid; gap: 0; transition: opacity 200ms var(--ease-out); }
.hv-path.leaving .hp-list { opacity: 0; transition-duration: 180ms; }
.hp-rail { position: absolute; left: 7px; top: 22px; bottom: 22px; width: 2px; background: var(--line); }
.hp-fill { position: absolute; inset: 0; background: var(--accent); transform-origin: top; transition: transform 700ms var(--ease-move); }
.hp-token { position: absolute; left: 2px; top: 17px; width: 12px; height: 12px; border-radius: 999px; background: var(--accent); opacity: 0; transform: translateY(calc(var(--step) * 76px)); transition: transform 700ms var(--ease-move), opacity 200ms ease; }
.hp-token.on { opacity: 1; }
.hp-row { position: relative; min-height: 76px; display: grid; align-content: start; gap: 4px; padding: 12px 0 0 12px; }
.hp-stop { position: absolute; left: -26px; top: 18px; width: 10px; height: 10px; border-radius: 999px; background: var(--bg-elev); border: 2px solid var(--line); transition: border-color 200ms ease; }
.hp-row.done .hp-stop, .hp-row.now .hp-stop { border-color: var(--accent); }
.hp-sys { font-size: 17px; font-weight: 500; color: var(--muted-2); transition: color 200ms ease; }
.hp-row.done .hp-sys, .hp-row.now .hp-sys { color: var(--ink); }
.hp-txt { font-size: 15px; color: var(--muted); opacity: 0; transform: translateY(6px); transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out); }
.hp-row.done .hp-txt, .hp-row.now .hp-txt { opacity: 1; transform: none; }
.hp-row.now .hp-txt { color: var(--ink-2); }

.hv-bare { padding: 8px 0 0; max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.hv-bare .hv-cap { text-align: center; }
.hero-visual.hv-pairs { font-family: var(--f-sans); padding: 36px 36px 28px; min-height: 400px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.hpr-stack { display: grid; justify-items: start; gap: 0; }
.hpr-sys { font-family: var(--f-display); font-size: clamp(40px, 4.4vw, 64px); line-height: 1.1; letter-spacing: -0.015em; color: var(--ink); transition: opacity 240ms var(--ease-out), transform 420ms var(--ease-out); }
.hpr-b { color: var(--accent); transition-delay: 90ms; }
.hpr-link { position: relative; display: block; width: 2px; height: 72px; margin: 10px 0 10px 18px; }
.hpr-line { position: absolute; inset: 0; background: var(--ink); transform-origin: top; transform: scaleY(0); transition: transform 520ms var(--ease-move); }
.hpr-dot { position: absolute; left: -4px; top: -5px; width: 10px; height: 10px; border-radius: 999px; background: var(--accent); opacity: 0; }
.hpr-txt { margin-top: 28px; font-size: 18px; line-height: 1.45; color: var(--ink-2); max-width: 34ch; transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out); transition-delay: 160ms; }
.hv-pairs.st-in .hpr-sys, .hv-pairs.st-in .hpr-txt { opacity: 0; transform: translateY(14px); }
.hv-pairs.st-in .hpr-sys { animation: hprIn 460ms var(--ease-out) forwards; }
.hv-pairs.st-in .hpr-b { animation-delay: 90ms; }
@keyframes hprIn { to { opacity: 1; transform: none; } }
.hv-pairs.st-linked .hpr-line { transform: scaleY(1); }
.hv-pairs.st-linked .hpr-dot { animation: hprDot 1600ms var(--ease-move) 300ms infinite; }
@keyframes hprDot { 0% { opacity: 0; transform: translateY(0); } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(72px); } }
.hv-pairs.st-out .hpr-sys, .hv-pairs.st-out .hpr-txt { opacity: 0; transform: translateY(-10px); transition-duration: 180ms; transition-delay: 0ms; }
.hv-pairs.st-out .hpr-line { transform: scaleY(1); }
.hpr-steps { display: flex; gap: 6px; }
.hpr-steps span { width: 24px; height: 2px; background: var(--line); transition: background-color 200ms ease; }
.hpr-steps span.on { background: var(--accent); }

/* Full-bleed hero */
.hero.hero-full { min-height: calc(100svh - 64px); display: flex; flex-direction: column; justify-content: center; padding: 64px 0 0; }
.hero-circuit { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-full .hero-content { position: relative; z-index: 1; width: 100%; }
.hero-full .hero-grid { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.hero-full .ticker { position: relative; z-index: 1; background: var(--bg); margin-top: auto; }
.hero-full .hero-content + .ticker { margin-top: 88px; }

.diag-col{position:relative;z-index:1}
html.rv-on #root:not(.mounted){visibility:hidden}
.skip{position:absolute;left:-9999px}.skip:focus{left:16px;top:12px;z-index:100;background:var(--ink);color:var(--bg);padding:10px 16px;border-radius:6px}
