/* RIDVANARS / NavTrack — site styles */
:root {
  --navy: #0A1310;
  --navy-2: #0F1C17;
  --navy-3: #14251E;
  --navy-deep: #060D0A;
  --line-dark: rgba(244, 242, 236, 0.12);
  --paper: #E7EFE9;
  --paper-2: #D9E5DC;
  --card-paper: #F2F7F3;
  --line-paper: rgba(15, 27, 45, 0.13);
  --orange: #4FD69C;
  --orange-hover: #6FE3B2;
  --orange-ink: #1E7A4E;
  --text-dark-bg: #E7EFE9;
  --muted-dark-bg: #93AB9E;
  --text-paper: #0A1310;
  --muted-paper: #44584D;
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --wrap: 1180px;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  background: transparent;   /* html carries the base color, or the last-frame snapshot during a page change */
  color: var(--text-dark-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--orange); color: #04110A; padding: 8px 14px; border-radius: 6px; font-weight: 600; text-decoration: none; }
.skip:focus { left: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15, 27, 45, 0.9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--paper); flex-shrink: 0; }
.brand-mark { width: 32px; height: 32px; color: var(--paper); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-weight: 600; letter-spacing: 0.12em; font-size: 15px; }
.brand-text small { font-family: var(--mono); font-size: 11px; color: var(--muted-dark-bg); letter-spacing: 0.06em; }

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a:not(.btn) {
  text-decoration: none; color: var(--muted-dark-bg); font-size: 15px;
  padding: 8px 12px; border-radius: 6px; transition: color .15s;
}
.nav a:not(.btn):hover { color: var(--paper); }
.nav a[aria-current="page"] { color: var(--paper); box-shadow: inset 0 -2px 0 var(--orange); border-radius: 0; }
.nav .btn { margin-left: 10px; }

.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px;
  background: transparent; border: 1px solid var(--line-dark); border-radius: 8px;
  color: var(--paper); cursor: pointer; position: relative;
}
.nav-toggle span:not(.sr) { position: absolute; left: 12px; right: 12px; height: 2px; background: currentColor; transition: transform .2s, top .2s; }
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 25px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); border-bottom: 1px solid var(--line-dark);
    padding: 8px 16px 20px; display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line-dark); border-radius: 0; font-size: 17px; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--orange); padding-left: 14px; }
  .nav .btn { margin: 16px 0 0; justify-content: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 8px; border: 1px solid transparent;
  font: 600 15px/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-primary { background: var(--orange); color: #04110A; }
.btn-primary:hover { background: var(--orange-hover); }
.btn-ghost { border-color: rgba(244, 242, 236, 0.32); color: var(--paper); background: transparent; }
.btn-ghost:hover { border-color: var(--paper); }
.on-paper .btn-ghost { border-color: rgba(15, 27, 45, 0.3); color: var(--navy); }
.on-paper .btn-ghost:hover { border-color: var(--navy); }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link { color: var(--orange); text-decoration: none; font-weight: 600; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.on-paper .text-link { color: var(--orange-ink); }

/* ---------- Sections & type ---------- */
.section { padding: 104px 0; position: relative; }
.section-tight { padding: 72px 0; }
@media (max-width: 700px) { .section { padding: 72px 0; } .section-tight { padding: 56px 0; } }
.on-paper { background: var(--paper); color: var(--text-paper); }
.on-navy-2 { background: var(--navy-2); }
.on-navy { background: var(--navy); }
.on-navy-3 { background: var(--navy-3); }

.eyebrow {
  display: inline-block; font-family: var(--mono); font-size: 13px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange);
}
.on-paper .eyebrow { color: var(--orange-ink); }

h1, h2, h3, h4 { font-weight: 600; margin: 0; }
h1 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.06; letter-spacing: -0.025em; margin: 18px 0 22px; }
h2 { font-size: clamp(29px, 3.4vw, 42px); line-height: 1.14; letter-spacing: -0.02em; margin: 14px 0 18px; }
h3 { font-size: 20px; line-height: 1.3; letter-spacing: -0.005em; margin: 0 0 10px; }
h4 { font-size: 13px; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 500; }
.lede { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.55; color: var(--muted-dark-bg); max-width: 64ch; }
.on-paper .lede { color: var(--muted-paper); }
.muted { color: var(--muted-dark-bg); }
.on-paper .muted { color: var(--muted-paper); }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lede { margin-left: auto; margin-right: auto; }

.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.card {
  background: var(--navy-2); border: 1px solid var(--line-dark); border-radius: var(--radius);
  padding: 26px;
}
.on-navy-2 .card { background: var(--navy); }
.on-paper .card { background: var(--card-paper); border-color: var(--line-paper); }
.card p:last-child { margin-bottom: 0; }

.ticks { list-style: none; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.62em; width: 12px; height: 2px; background: var(--orange);
}
.on-paper .ticks li::before { background: var(--orange-ink); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid currentColor; border-radius: 999px; padding: 3px 10px; opacity: 0.85;
}
.chip-orange { color: var(--orange); }
.on-paper .chip-orange { color: var(--orange-ink); }

.placeholder {
  border: 1px dashed currentColor; border-radius: var(--radius);
  padding: 22px 24px; font-family: var(--mono); font-size: 14px; opacity: 0.75;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: min(860px, calc(100vh - 68px));
  display: flex; align-items: center;
  background: radial-gradient(ellipse 80% 70% at 72% 55%, #15284200 0%, #0A1310 75%), var(--navy);
}
.hero-map { position: absolute; inset: 0; z-index: 0; }
.hero-map canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s ease; }
.hero-map.is-ready canvas { opacity: 1; }
.hero-map svg.map-fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, var(--navy) 0%, rgba(15, 27, 45, 0.92) 30%, rgba(15, 27, 45, 0.25) 58%, rgba(15, 27, 45, 0) 75%);
}
.hero .wrap { position: relative; z-index: 2; width: 100%; }
.hero-copy { max-width: 590px; padding: 80px 0 96px; }
.hero-copy .lede { margin-bottom: 34px; }
.map-loading {
  position: absolute; right: 22%; top: 50%; z-index: 2;
  font-family: var(--mono); font-size: 13px; color: var(--muted-dark-bg); letter-spacing: 0.08em;
  display: flex; align-items: center; gap: 10px; transition: opacity .4s;
}
.map-loading::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange);
  animation: pulse 1.2s ease-in-out infinite;
}
.hero-map.is-ready .map-loading { opacity: 0; pointer-events: none; }
@keyframes pulse { 0%, 100% { opacity: .3; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.2); } }

.map-label {
  position: absolute; left: 0; top: 0; z-index: 1; pointer-events: none;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; color: rgba(244, 242, 236, 0.62);
  white-space: nowrap; opacity: 0; transition: opacity .8s;
}
.hero-map.is-ready .map-label.is-on { opacity: 1; }

.map-caption {
  position: absolute; right: 24px; bottom: 20px; z-index: 3;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; color: var(--muted-dark-bg);
  display: flex; align-items: center; gap: 8px;
}
.map-caption::before { content: ""; width: 18px; height: 2px; background: var(--orange); }

.unit-card {
  position: absolute; z-index: 3; right: 40px; bottom: 64px; width: 268px;
  background: rgba(10, 19, 34, 0.82); border: 1px solid var(--line-dark); border-radius: 10px;
  padding: 14px 16px; font-size: 13px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transform: translateY(8px); transition: opacity .8s .6s, transform .8s .6s;
}
.hero-map.is-ready ~ .unit-card, .hero.is-ready .unit-card { opacity: 1; transform: none; }
.unit-card header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.unit-card .unit-id { font-family: var(--mono); font-weight: 500; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.unit-card .unit-id::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(232, 120, 30, 0.22); }
.unit-card dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; }
.unit-card dt { color: var(--muted-dark-bg); font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em; padding-top: 1px; }
.unit-card dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.unit-card .chip { font-size: 10px; padding: 2px 8px; color: var(--muted-dark-bg); }
@media (max-width: 1100px) { .unit-card { display: none; } }

@media (max-width: 860px) {
  .hero { align-items: flex-start; min-height: 0; }
  .hero::after { background: linear-gradient(180deg, var(--navy) 0%, rgba(15, 27, 45, 0.94) 42%, rgba(15, 27, 45, 0.15) 70%, rgba(15, 27, 45, 0.35) 100%); }
  .hero-copy { padding: 56px 0 400px; }
  .map-loading { right: auto; left: 50%; top: auto; bottom: 170px; transform: translateX(-50%); }
  .map-caption { right: 16px; bottom: 14px; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; padding: 96px 0 80px; border-bottom: 1px solid var(--line-dark); overflow: hidden;
  background-image: radial-gradient(rgba(244, 242, 236, 0.07) 1px, transparent 1px);
  background-size: 26px 26px; background-position: -1px -1px;
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { max-width: 18ch; }
.page-hero .lede { margin-bottom: 0; }
.page-hero-art { position: absolute; right: -40px; top: 0; bottom: 0; width: 55%; z-index: 0; opacity: .9; pointer-events: none; }
.page-hero-art path { fill: none; stroke-linecap: round; }
@media (max-width: 860px) { .page-hero { padding: 64px 0 56px; } .page-hero-art { width: 100%; opacity: .35; } }

.anchor-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.anchor-nav a {
  font-family: var(--mono); font-size: 13px; text-decoration: none; color: var(--muted-dark-bg);
  border: 1px solid var(--line-dark); border-radius: 999px; padding: 6px 14px; transition: color .15s, border-color .15s;
}
.anchor-nav a:hover { color: var(--paper); border-color: var(--orange); }

/* ---------- Pillars ---------- */
.pillar { border-top: 2px solid var(--orange); padding-top: 22px; }
.on-paper .pillar { border-top-color: var(--orange); }
.pillar .num { font-family: var(--mono); font-size: 13px; color: var(--orange-ink); letter-spacing: 0.08em; display: block; margin-bottom: 14px; }
.pillar p { color: var(--muted-paper); margin: 0; }

/* ---------- Flow diagram (home) ---------- */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px; position: relative; }
.flow-col { position: relative; }
.flow-col h3 { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange); margin-bottom: 14px; display: flex; gap: 10px; align-items: center; }
.flow-col h3 span { color: var(--muted-dark-bg); }
.flow-node {
  background: var(--navy); border: 1px solid var(--line-dark); border-radius: 8px;
  padding: 12px 14px; margin-bottom: 10px; font-size: 15px; line-height: 1.35;
}
.on-navy-2 .flow-node { background: var(--navy); }
.flow-node small { display: block; font-family: var(--mono); font-size: 11.5px; color: var(--muted-dark-bg); margin-top: 3px; letter-spacing: 0.02em; }
.flow-node.hot { border-color: rgba(232, 120, 30, 0.6); box-shadow: inset 3px 0 0 var(--orange); }
.flow-col:not(:last-child)::after {
  content: ""; position: absolute; top: 50%; right: -30px; width: 24px; height: 2px;
  background: linear-gradient(90deg, var(--orange), rgba(232, 120, 30, 0.2));
}
.flow-col:not(:last-child)::before {
  content: ""; position: absolute; top: calc(50% - 4px); right: -32px; width: 0; height: 0;
  border-left: 7px solid var(--orange); border-top: 5px solid transparent; border-bottom: 5px solid transparent;
}
@media (max-width: 960px) {
  .flow { grid-template-columns: 1fr; gap: 44px; }
  .flow-col:not(:last-child)::after { top: auto; bottom: -34px; right: auto; left: 20px; width: 2px; height: 24px; background: linear-gradient(180deg, var(--orange), rgba(232, 120, 30, 0.2)); }
  .flow-col:not(:last-child)::before { top: auto; bottom: -38px; right: auto; left: 16px; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 7px solid var(--orange); border-bottom: 0; }
  .flow-col .nodes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .flow-col .flow-node { margin: 0; }
}
@media (max-width: 520px) { .flow-col .nodes { grid-template-columns: 1fr; } }

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 58px; }
.steps li::before {
  content: "0" counter(step); position: absolute; top: 0; left: 0;
  font-family: var(--mono); font-size: 14px; font-weight: 500; color: var(--orange-ink);
  width: 40px; height: 40px; border: 1.5px solid var(--orange-ink); border-radius: 50%;
  display: grid; place-items: center; background: var(--paper);
}
.steps li::after {
  content: ""; position: absolute; top: 20px; left: 52px; right: -16px; height: 0;
  border-top: 1.5px dashed rgba(15, 27, 45, 0.25);
}
.steps li:last-child::after { display: none; }
.steps p { color: var(--muted-paper); margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .steps li::after { display: none; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Capability grid ---------- */
.cap {
  display: block; text-decoration: none; height: 100%;
  background: var(--navy); border: 1px solid var(--line-dark); border-radius: var(--radius);
  padding: 24px; transition: border-color .2s, transform .2s, background .2s;
}
.cap:hover { border-color: rgba(232, 120, 30, 0.7); transform: translateY(-2px); }
.cap .cap-icon { width: 36px; height: 36px; color: var(--orange); margin-bottom: 18px; }
.cap h3 { font-size: 18px; margin-bottom: 6px; }
.cap p { color: var(--muted-dark-bg); font-size: 15px; margin: 0; }

/* ---------- Tech strip ---------- */
.tech-strip { display: flex; flex-wrap: wrap; gap: 10px; }
.tech-strip li {
  list-style: none; font-family: var(--mono); font-size: 13.5px;
  border: 1px solid var(--line-paper); border-radius: 6px; padding: 8px 12px; background: var(--card-paper);
}
.tech-strip li.oss { border-style: dashed; }
.tech-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
@media (max-width: 900px) { .tech-split { grid-template-columns: 1fr; gap: 32px; } }
.legend { display: flex; gap: 20px; font-family: var(--mono); font-size: 12px; color: var(--muted-paper); margin-top: 16px; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 18px; height: 12px; border: 1px solid var(--line-paper); border-radius: 3px; background: var(--card-paper); }
.legend i.oss { border-style: dashed; border-color: rgba(15, 27, 45, 0.4); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--navy-3); }
.cta-band .wrap { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { margin: 10px 0 8px; max-width: 20ch; }
.cta-band p { margin: 0; color: var(--muted-dark-bg); max-width: 52ch; }
.cta-art { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }

/* ---------- Platform modules ---------- */
.module {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; align-items: center;
  padding: 80px 0; border-top: 1px solid var(--line-paper); scroll-margin-top: 80px;
}
.module:first-child { border-top: 0; padding-top: 24px; }
.module:nth-child(even) .module-text { order: 2; }
.module .num { font-family: var(--mono); font-size: 13px; color: var(--orange-ink); letter-spacing: 0.1em; }
.module h2 { font-size: clamp(26px, 2.8vw, 34px); margin: 10px 0 14px; }
.module p { color: var(--muted-paper); }
.module .ticks { margin-top: 20px; }
.module .note { font-size: 14px; color: var(--muted-paper); border-left: 2px solid var(--line-paper); padding-left: 14px; margin-top: 20px; }
@media (max-width: 900px) {
  .module { grid-template-columns: 1fr; gap: 32px; padding: 56px 0; }
  .module:nth-child(even) .module-text { order: 0; }
}

.shot {
  position: relative; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden;
  background: var(--navy);
  border: 1px solid rgba(15, 27, 45, 0.25);
  box-shadow: 0 30px 60px -30px rgba(15, 27, 45, 0.45);
  display: grid; place-items: center; color: var(--muted-dark-bg);
}
.shot svg.shot-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.shot .shot-label {
  position: relative; z-index: 1; font-family: var(--mono); font-size: 13.5px;
  border: 1px dashed rgba(244, 242, 236, 0.4); border-radius: 8px; padding: 10px 16px;
  background: rgba(10, 19, 34, 0.75); color: var(--paper); text-align: center;
}
.shot .chip { position: absolute; z-index: 1; left: 14px; top: 14px; color: var(--muted-dark-bg); font-size: 10.5px; background: rgba(10, 19, 34, 0.7); }

/* ---------- Architecture (technology) ---------- */
.arch { display: grid; gap: 14px; }
.tier { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; align-items: stretch; }
.tier-label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-dark-bg); padding-top: 14px; }
.tier-nodes { display: grid; gap: 12px; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.tier .flow-node { margin: 0; }
.tier-arrow { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; height: 22px; }
.tier-arrow span { position: relative; }
.tier-arrow span::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 6px; width: 2px; background: linear-gradient(180deg, rgba(232, 120, 30, 0.25), var(--orange)); }
.tier-arrow span::after { content: ""; position: absolute; left: calc(50% - 4px); bottom: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 7px solid var(--orange); }
.flow-node .tag { display: inline-block; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--orange); margin-bottom: 4px; }
@media (max-width: 860px) {
  .tier, .tier-arrow { grid-template-columns: 1fr; gap: 8px; }
  .tier-label { padding-top: 0; }
  .tier-arrow > :first-child { display: none; }
  .tier-nodes { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 480px) { .tier-nodes { grid-template-columns: 1fr !important; } }

.life { list-style: none; display: grid; gap: 0; counter-reset: life; }
.life li { counter-increment: life; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-top: 1px solid var(--line-paper); }
.life li::before { content: "0" counter(life); font-family: var(--mono); color: var(--orange-ink); font-size: 14px; padding-top: 2px; }
.life li p { margin: 0; color: var(--muted-paper); }
.life li strong { display: block; margin-bottom: 2px; color: var(--text-paper); }

.control { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; }
.control svg { width: 40px; height: 40px; color: var(--orange); }

/* ---------- Developers ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line-dark); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line-dark); vertical-align: top; }
th { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-dark-bg); background: var(--navy-2); }
tr:last-child td { border-bottom: 0; }
td code { font-family: var(--mono); font-size: 13.5px; color: var(--paper); }

.code {
  position: relative; background: var(--navy-deep); border: 1px solid var(--line-dark); border-radius: var(--radius);
  overflow: hidden;
}
.code-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 12px; color: var(--muted-dark-bg);
  padding: 10px 16px; border-bottom: 1px solid var(--line-dark); background: rgba(244, 242, 236, 0.03);
}
.code pre { margin: 0; padding: 18px; overflow-x: auto; font-family: var(--mono); font-size: 13.5px; line-height: 1.65; color: #D6E6DC; }
.code .k { color: #9BE7B8; }
.code .s { color: #A8D5A2; }
.code .c { color: #6A8576; }
.code .n { color: #8FD8C0; }

.dev-block { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; padding: 72px 0; border-top: 1px solid var(--line-dark); scroll-margin-top: 80px; }
.dev-block:first-of-type { border-top: 0; }
@media (max-width: 900px) { .dev-block { grid-template-columns: 1fr; gap: 28px; padding: 56px 0; } }
.event-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.event-list code { font-family: var(--mono); font-size: 13px; border: 1px solid var(--line-dark); border-radius: 6px; padding: 4px 10px; background: var(--navy-2); }

/* ---------- Solutions ---------- */
.solution { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; padding: 80px 0; border-top: 1px solid var(--line-paper); scroll-margin-top: 80px; }
.solution:first-child { border-top: 0; padding-top: 16px; }
.solution-side .num { font-family: var(--mono); font-size: 13px; color: var(--orange-ink); letter-spacing: 0.1em; }
.solution-side h2 { margin-top: 10px; }
.solution-side .iso { width: 100%; max-width: 280px; margin-top: 20px; }
.solution-body .grid { margin-bottom: 28px; }
.solution-body h3 { font-size: 15px; font-family: var(--mono); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange-ink); }
.modules-used { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.modules-used a { font-family: var(--mono); font-size: 13px; text-decoration: none; border: 1px solid var(--line-paper); background: var(--card-paper); border-radius: 6px; padding: 5px 10px; }
.modules-used a:hover { border-color: var(--orange-ink); }
@media (max-width: 900px) { .solution { grid-template-columns: 1fr; gap: 24px; padding: 56px 0; } .solution-side .iso { display: none; } }

/* ---------- Company ---------- */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line-paper); border-radius: var(--radius); overflow: hidden; }
.facts div { padding: 22px; border-right: 1px solid var(--line-paper); background: var(--card-paper); }
.facts div:last-child { border-right: 0; }
.facts dt { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-paper); margin-bottom: 8px; }
.facts dd { margin: 0; font-family: var(--mono); font-size: 15px; color: var(--orange-ink); }
@media (max-width: 760px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .facts div:nth-child(2) { border-right: 0; } .facts div:nth-child(-n+2) { border-bottom: 1px solid var(--line-paper); } }

/* ---------- Contact form ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 56px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
.form { background: var(--card-paper); border: 1px solid var(--line-paper); border-radius: 14px; padding: 36px; }
@media (max-width: 600px) { .form { padding: 22px; } }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label { font-size: 14px; font-weight: 600; }
.field label .opt { font-weight: 400; color: var(--muted-paper); }
.field input, .field select, .field textarea {
  font: 16px/1.4 var(--font); color: var(--text-paper); background: #fff;
  border: 1px solid rgba(15, 27, 45, 0.22); border-radius: 8px; padding: 12px 14px; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange-ink); box-shadow: 0 0 0 3px rgba(232, 120, 30, 0.2); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #B42318; }
.field .err { font-size: 13px; color: #B42318; display: none; }
.field.has-error .err { display: block; }
.segmented { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0 0 22px; }
.segmented legend { font-size: 14px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.segmented label { cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: inline-block; border: 1px solid rgba(15, 27, 45, 0.22); border-radius: 999px; padding: 8px 16px; font-size: 14px; background: #fff; transition: all .15s; }
.segmented input:checked + span { background: var(--navy); color: var(--paper); border-color: var(--navy); }
.segmented input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.form-note { font-size: 13px; color: var(--muted-paper); margin: 14px 0 0; }
.form-status { margin-top: 18px; padding: 14px 16px; border-radius: 8px; font-size: 15px; display: none; }
.form-status.is-shown { display: block; background: rgba(232, 120, 30, 0.1); border: 1px solid rgba(169, 83, 14, 0.35); }
.contact-side .card { margin-bottom: 18px; }
.contact-side h3 { font-size: 17px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); border-top: 1px solid var(--line-dark); padding: 64px 0 36px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-grid h4 { color: var(--muted-dark-bg); margin-bottom: 14px; }
.footer-grid ul { list-style: none; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; color: var(--paper); opacity: 0.85; }
.footer-grid a:hover { opacity: 1; color: var(--orange); }
.footer-grid .ph { font-family: var(--mono); font-size: 13.5px; color: var(--muted-dark-bg); }
.footer-tag { color: var(--muted-dark-bg); margin-top: 14px; max-width: 32ch; }
.footer-legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-dark); color: var(--muted-dark-bg); font-size: 13px; display: grid; gap: 6px; }
.footer-legal p { margin: 0; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Animated route art ---------- */
.draw path.route { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.6s cubic-bezier(.6, .05, .25, 1) forwards; }
.draw path.route:nth-of-type(2) { animation-delay: .5s; }
.draw path.route:nth-of-type(3) { animation-delay: 1s; }
.draw path.route:nth-of-type(4) { animation-delay: 1.5s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* =====================================================================
   Persistent 3D world + page transitions
   ===================================================================== */
html { background: var(--navy); }
#world { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
#world canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s ease; }
.world-ready #world canvas, .world-instant #world canvas { opacity: 1; }
.world-instant #world canvas { transition: none; }
#world.is-static svg { position: absolute; inset: 0; width: 100%; height: 100%; }
main, .site-footer { position: relative; z-index: 1; }

/* transparent bands that let the world show through */
.world-window { background: transparent !important; }

.hero { background: transparent; min-height: calc(100vh - 68px); min-height: calc(100svh - 68px); }
.hero::after {
  background:
    linear-gradient(90deg, rgba(10,19,16,.96) 0%, rgba(10,19,16,.82) 30%, rgba(10,19,16,.2) 60%, rgba(10,19,16,0) 78%),
    linear-gradient(0deg, rgba(10,19,16,.9) 0%, rgba(10,19,16,0) 22%);
}
.hero-copy { max-width: 640px; }
.hero h1 { font-size: clamp(42px, 6vw, 76px); letter-spacing: -0.03em; }
.unit-card { transition-delay: 1.4s; }
.world-ready .unit-card { opacity: 1; transform: none; }

.page-hero {
  background: transparent; border-bottom: 0;
  min-height: 74vh; display: flex; align-items: flex-end; padding: 120px 0 88px;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10,19,16,.95) 0%, rgba(10,19,16,.75) 35%, rgba(10,19,16,0) 70%),
    linear-gradient(0deg, rgba(10,19,16,1) 0%, rgba(10,19,16,0) 30%);
}
.page-hero .wrap { width: 100%; }
.page-hero h1 { font-size: clamp(40px, 5.6vw, 70px); letter-spacing: -0.03em; max-width: 16ch; }
@media (max-width: 860px) {
  .hero::after, .page-hero::after {
    background: linear-gradient(180deg, rgba(10,19,16,.96) 0%, rgba(10,19,16,.85) 45%, rgba(10,19,16,.1) 75%, rgba(10,19,16,.6) 100%);
  }
  .page-hero { min-height: 0; align-items: flex-start; padding: 56px 0 300px; }
}

.scroll-cue {
  position: absolute; left: 50%; bottom: 22px; z-index: 3; transform: translateX(-50%);
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-dark-bg);
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none;
}
.scroll-cue::after { content: ""; width: 1px; height: 34px; background: linear-gradient(var(--orange), transparent); animation: cue 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 860px) { .scroll-cue { display: none; } }

/* entering content */
/* Horizontal travel: the new page arrives from the right, the old one leaves to the left */
/* Only opacity and translate are animated: both stay on the compositor, so nothing re-rasterizes mid-transition. */
.js .enter { animation: enter .9s cubic-bezier(.16,.8,.24,1) both; animation-delay: calc(var(--i, 0) * 80ms + 300ms); }
@keyframes enter {
  from { opacity: 0; transform: translate3d(56px, 0, 0); }
  to { opacity: 1; transform: none; }
}
/* leaving content */
body.is-leaving main, body.is-leaving .site-footer {
  transition: opacity .5s ease, transform .6s cubic-bezier(.65,0,.35,1);
  opacity: 0; transform: translate3d(-7vw, 0, 0);
}
body.is-leaving { pointer-events: none; }
/* while the previous page's last frame stands in for the map */
html.from-snap { background-attachment: fixed; }
html.from-snap .road-hud { transition: none; }

/* road travel indicator shown while the camera drives to the next page */
.road-hud {
  position: fixed; left: 50%; bottom: 28px; z-index: 95; transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-radius: 999px;
  background: rgba(6,13,10,.82); border: 1px solid rgba(79,214,156,.45); color: #E7EFE9;
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; pointer-events: none;
  opacity: 0; transition: opacity .3s;
}
.road-hud.is-on { opacity: 1; }
.road-hud span { white-space: nowrap; }
.road-hud i { width: 140px; height: 3px; border-radius: 3px; background: rgba(231,239,233,.15); position: relative; overflow: hidden; }
.road-hud i b { position: absolute; inset: 0; background: var(--orange); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
@media (max-width: 480px) { .road-hud { gap: 10px; padding: 9px 14px; font-size: 11px; } .road-hud i { width: 80px; } }

/* No cross-document view transitions: they snapshot the WebGL canvas as blank and flash.
   Continuity comes from the saved camera pose and the last-frame snapshot instead. */

/* grid children must be allowed to shrink below their content, or long code lines widen the page */
.split > *, .grid > *, .dev-block > * { min-width: 0; }

/* product API consoles */
.api-card {
  position: relative; margin-top: 26px; max-width: 520px; border-radius: 12px; overflow: hidden;
  background: radial-gradient(120% 80% at 0% 0%, rgba(79,214,156,.10), transparent 55%), #050B08;
  border: 1px solid rgba(79,214,156,.38);
  box-shadow: 0 0 0 1px rgba(79,214,156,.06), 0 0 28px -6px rgba(79,214,156,.35), 0 30px 60px -30px rgba(0,0,0,.7);
  font-family: var(--mono); font-size: 12px; line-height: 1.65; color: #CFE7DA;
}
.api-card::before {   /* CRT scan lines */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, transparent 1px 3px);
}
.api-card::after {    /* slow sweep */
  content: ""; position: absolute; left: 0; right: 0; top: -40%; height: 40%; pointer-events: none; z-index: 2;
  background: linear-gradient(180deg, transparent, rgba(79,214,156,.09), transparent);
  animation: apiSweep 5s linear infinite;
}
@keyframes apiSweep { to { top: 100%; } }
.api-bar { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid rgba(79,214,156,.22); background: rgba(79,214,156,.05); }
.api-dots { display: inline-flex; gap: 5px; }
.api-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(231,239,233,.18); }
.api-dots i:first-child { background: #4FD69C; box-shadow: 0 0 8px #4FD69C; }
.api-title { color: #8FB5A3; letter-spacing: .04em; }
.api-status { margin-left: auto; color: #4FD69C; border: 1px solid rgba(79,214,156,.45); border-radius: 999px; padding: 1px 9px; font-size: 11px; text-shadow: 0 0 8px rgba(79,214,156,.6); }
.api-card pre { margin: 0; padding: 12px 14px; white-space: pre; overflow-x: auto; position: relative; z-index: 1; }
.api-res { border-top: 1px dashed rgba(79,214,156,.22); background: rgba(0,0,0,.18); }
.api-card .m { color: #06120C; background: #4FD69C; border-radius: 4px; padding: 0 6px; font-weight: 500; }
.api-card .p { color: #E7EFE9; }
.api-card .h { color: #6A8576; }
.api-card .k { color: #8FD8C0; }
.api-card .s { color: #D2F6E4; }
.api-card .n { color: #4FD69C; text-shadow: 0 0 6px rgba(79,214,156,.45); }
.api-card .n.alert { color: #FF8A73; text-shadow: 0 0 6px rgba(255,138,115,.5); }
.api-card .ln { display: block; }
.js .api-card .ln { opacity: 0; transform: translateX(-6px); }
.js .api-card.is-in .ln { animation: apiLine .35s ease forwards; animation-delay: calc(var(--l) * 110ms + 250ms); }
@keyframes apiLine { to { opacity: 1; transform: none; } }
.api-card .cur { display: inline-block; width: 7px; height: 13px; margin-left: 4px; vertical-align: -2px; background: #4FD69C; box-shadow: 0 0 8px #4FD69C; animation: apiBlink 1s steps(1) infinite; }
@keyframes apiBlink { 50% { opacity: 0; } }
.api-foot { position: relative; z-index: 1; padding: 7px 14px; border-top: 1px solid rgba(79,214,156,.15); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: #6A8576; }
@media (prefers-reduced-motion: reduce) {
  .js .api-card .ln { opacity: 1; transform: none; animation: none; }
  .api-card::after, .api-card .cur { animation: none; }
}

/* RIDVANARS AI: assistant conversation in the console style */
.ai-section .split { align-items: center; }
.chat-card { max-width: 560px; justify-self: end; width: 100%; }
.chat-body { position: relative; z-index: 1; padding: 16px 16px 6px; display: flex; flex-direction: column; gap: 10px; font-family: var(--font); font-size: 14px; line-height: 1.55; }
.chat-body .msg { margin: 0; padding: 10px 13px; border-radius: 12px; max-width: 88%; }
.chat-body .msg.user { align-self: flex-end; background: rgba(79,214,156,.14); border: 1px solid rgba(79,214,156,.4); color: #E7EFE9; border-bottom-right-radius: 4px; }
.chat-body .msg.ai { align-self: flex-start; background: rgba(231,239,233,.04); border: 1px solid rgba(231,239,233,.12); color: #CFE7DA; border-bottom-left-radius: 4px; }
.chat-body .msg .who { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: #4FD69C; margin-bottom: 4px; }
.chat-body .msg b { color: #E7EFE9; font-weight: 600; }
.chat-body .msg .alert { color: #FF8A73; }
.js .chat-body .msg { opacity: 0; transform: translateY(8px); }
.js .chat-card.is-in .chat-body .msg { animation: chatIn .45s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--l) * 900ms + 300ms); }
@keyframes chatIn { to { opacity: 1; transform: none; } }
@media (max-width: 900px) { .chat-card { justify-self: stretch; } }
@media (prefers-reduced-motion: reduce) { .js .chat-body .msg { opacity: 1; transform: none; animation: none; } }

/* contact form: honeypot stays off-screen for people, visible to naive bots */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form button[disabled] { opacity: .6; cursor: progress; }

/* example scenarios (clearly labelled as illustrative) */
.scenarios { margin-top: 48px; }
.scenarios-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.scenarios-head .chip { font-size: 10.5px; color: var(--muted-dark-bg); }
.on-paper .scenarios-head .chip { color: var(--muted-paper); }
.scenario { position: relative; padding: 26px; border-radius: 14px; border: 1px solid var(--line-dark); background: var(--navy-2); }
.on-paper .scenario { background: var(--card-paper); border-color: var(--line-paper); }
.scenario h3 { font-size: 20px; margin: 10px 0 10px; }
.scenario p { margin: 0; font-size: 15.5px; color: var(--muted-dark-bg); }
.on-paper .scenario p { color: var(--muted-paper); }
.scenario-tag { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); }
.on-paper .scenario-tag { color: var(--orange-ink); }
.footer-grid li a[href^="mailto:"] { font-family: var(--mono); font-size: 13.5px; }

/* deployment options */
.deploy .card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.deploy .card h3 { margin: 4px 0 0; font-size: 21px; }
.deploy .card p { margin: 0; }
.deploy-icon { width: 38px; height: 38px; color: var(--orange); }
.deploy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 28px; padding: 18px 20px; border: 1px solid var(--line-dark); border-radius: 14px; background: rgba(231,239,233,.03); }
.deploy-label { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-dark-bg); margin-right: 6px; }
.deploy-pill { font-size: 14px; color: var(--muted-dark-bg); border: 1px solid var(--line-dark); border-radius: 999px; padding: 7px 14px; }
.deploy-pill b { color: var(--paper); font-weight: 600; margin-right: 6px; }

/* ---------- Company-level components ---------- */
.kicker { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-dark-bg); }
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--orange); }
.on-paper .kicker { color: var(--muted-paper); }

.big-list { list-style: none; border-top: 1px solid var(--line-paper); }
.big-list li {
  display: grid; grid-template-columns: 80px minmax(0, 5fr) minmax(0, 6fr) 40px; gap: 28px; align-items: baseline;
  padding: 34px 0; border-bottom: 1px solid var(--line-paper); position: relative;
}
.big-list .idx { font-family: var(--mono); font-size: 13px; color: var(--orange-ink); }
.big-list h3 { font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -0.02em; margin: 0; }
.big-list p { margin: 0; color: var(--muted-paper); }
.big-list a.row-link { position: absolute; inset: 0; z-index: 1; }
.big-list .go { justify-self: end; color: var(--orange-ink); font-size: 22px; transition: transform .2s; }
.big-list li:hover .go { transform: translateX(6px); }
.big-list li::before { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--orange); transition: width .5s cubic-bezier(.2,.7,.2,1); }
.big-list li:hover::before { width: 100%; }
@media (max-width: 760px) {
  .big-list li { grid-template-columns: 1fr; gap: 10px; padding: 26px 0; }
  .big-list .go { display: none; }
}

.product {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 0;
  border: 1px solid var(--line-dark); border-radius: 16px; overflow: hidden; background: var(--navy);
}
.product-copy { padding: 52px; }
.product-copy h3 { font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -0.025em; margin: 14px 0 14px; }
.product-copy p { color: var(--muted-dark-bg); max-width: 52ch; }
.product-copy .ticks { margin: 24px 0 32px; color: var(--paper); }
.product-visual { position: relative; min-height: 380px; background: radial-gradient(ellipse at 60% 40%, #163026, #0A1310 75%); border-left: 1px solid var(--line-dark); overflow: hidden; }
.product-visual svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.product-slot {
  margin-top: 20px; border: 1px dashed rgba(231,239,233,.28); border-radius: 16px; padding: 30px 36px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 14px; color: var(--muted-dark-bg);
}
@media (max-width: 900px) {
  .product { grid-template-columns: 1fr; }
  .product-copy { padding: 30px 24px; }
  .product-visual { min-height: 260px; border-left: 0; border-top: 1px solid var(--line-dark); }
}

.statement { padding: 180px 0; position: relative; }
.statement::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--navy) 0%, rgba(10,19,16,.35) 30%, rgba(10,19,16,.35) 70%, var(--navy) 100%); pointer-events: none; }
.statement .wrap { position: relative; }
.statement h2 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.08; letter-spacing: -0.03em; max-width: 19ch; }
.statement .facts-row { display: flex; flex-wrap: wrap; gap: 12px 36px; margin-top: 36px; }
.statement .facts-row span { font-family: var(--mono); font-size: 13.5px; color: var(--paper); display: flex; align-items: center; gap: 10px; }
.statement .facts-row span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(79,214,156,.2); }
@media (max-width: 760px) { .statement { padding: 120px 0; } }

.sector { position: relative; padding: 32px 28px 30px; border-radius: 14px; background: var(--card-paper); border: 1px solid var(--line-paper); overflow: hidden; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
.sector:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(10,19,16,.45); }
.sector svg { width: 100%; height: 120px; display: block; margin-bottom: 22px; }
.sector h3 { font-size: 22px; }
.sector p { color: var(--muted-paper); margin: 0; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 28px; } }
.sticky-head { position: sticky; top: 110px; }
@media (max-width: 900px) { .sticky-head { position: static; } }

.area { padding: 64px 0; border-top: 1px solid var(--line-paper); scroll-margin-top: 80px; }
.area:first-child { border-top: 0; padding-top: 8px; }
.area h2 { font-size: clamp(28px, 3vw, 38px); margin-top: 12px; }
.area p { color: var(--muted-paper); }
.area .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 26px; }
.area h4 { color: var(--orange-ink); margin-bottom: 12px; }
@media (max-width: 640px) { .area .cols { grid-template-columns: 1fr; } }

.principle { padding-top: 22px; border-top: 1px solid var(--line-dark); }
.on-paper .principle { border-top-color: var(--line-paper); }
.principle h3 { font-size: 21px; }
.principle p { color: var(--muted-dark-bg); margin: 0; }
.on-paper .principle p { color: var(--muted-paper); }

/* ---------- Product family ---------- */
.on-navy .cap { background: var(--navy-2); }
.family .chip { font-size: 10.5px; }
.cap .cap-icon, .product-mini .cap-icon { display: block; }
.product-mini .chip { display: inline-flex; }
.pmark { display: flex; align-items: center; gap: 14px; }
.pmark svg { width: 46px; height: 46px; padding: 6px; border: 1px solid var(--line-paper); border-radius: 10px; background: var(--card-paper); }
.pname { font-size: clamp(36px, 4.4vw, 56px) !important; letter-spacing: -0.03em; margin-top: 18px !important; }
.ptag { font-size: clamp(20px, 2vw, 24px); font-weight: 600; letter-spacing: -0.01em; color: var(--text-paper); margin-bottom: 14px; }
.works { margin-top: 22px; font-size: 15px; color: var(--muted-paper); border-left: 2px solid var(--orange); padding-left: 14px; }
.works a { color: var(--orange-ink); font-weight: 600; text-decoration: none; }
.works a:hover { text-decoration: underline; }
.product-mini { display: block; text-decoration: none; padding: 24px; border: 1px solid var(--line-dark); border-radius: 14px; background: var(--navy-2); transition: border-color .2s, transform .2s; }
.product-mini:hover { border-color: rgba(79,214,156,.7); transform: translateY(-2px); }
.product-mini .cap-icon { width: 34px; height: 34px; color: var(--orange); margin-bottom: 14px; }
.product-mini h3 { font-size: 20px; margin-bottom: 4px; }
.product-mini p { margin: 0; font-size: 15px; color: var(--muted-dark-bg); }
.product-mini .chip { font-size: 10px; color: var(--muted-dark-bg); margin-bottom: 10px; }

/* =====================================================================
   Interactive layer
   ===================================================================== */
/* headline word reveal */
h1.word-split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
h1.word-split .w > span { display: inline-block; transform: translateX(110%); opacity: 0; transform-origin: 0 100%; animation: wordUp 1s cubic-bezier(.16,.8,.24,1) forwards; animation-delay: calc(var(--wi) * 55ms + 280ms); }
@keyframes wordUp { to { transform: none; opacity: 1; } }

/* scroll progress */
.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, var(--orange), #B3F2D2); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }

/* 3D tilt + light sheen */
.tilt.tilt, .tilt.tilt:hover {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0);
  transition: transform .6s cubic-bezier(.2,.7,.2,1), border-color .2s, box-shadow .3s;
  position: relative; will-change: transform;
}
.tilt.is-tilting { transition: transform .08s linear, border-color .2s, box-shadow .3s; box-shadow: 0 30px 60px -30px rgba(0,0,0,.55); }
.tilt::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.12), transparent 48%);
}
.on-paper .tilt::after { background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(79,214,156,.12), transparent 50%); }
.tilt.is-tilting::after { opacity: 1; }
.btn-primary { transition: background .15s, transform .25s cubic-bezier(.2,.7,.2,1); }

/* world: grab cursor, hub tooltip */
html.world-grab .world-window { cursor: grab; }
html.world-dragging, html.world-dragging * { cursor: grabbing !important; user-select: none !important; }
.world-tip {
  position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none;
  min-width: 210px; padding: 12px 14px; border-radius: 10px;
  background: rgba(6,13,10,.9); border: 1px solid rgba(79,214,156,.5);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: grid; gap: 3px; font-size: 13px; color: var(--muted-dark-bg);
  opacity: 0; transition: opacity .2s; box-shadow: 0 20px 40px -20px rgba(0,0,0,.6);
}
.world-tip.is-on { opacity: 1; }
.world-tip strong { color: var(--paper); font-size: 14.5px; font-weight: 600; }
.world-tip em { font-style: normal; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); margin-top: 4px; }
.world-hint { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; color: var(--muted-dark-bg); display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; }
.world-hint svg { width: 16px; height: 16px; }
@media (pointer: coarse) { .world-hint { display: none; } }

/* product explorer */
.explorer { position: relative; min-height: 100vh; padding: 120px 0; display: flex; align-items: center; }
.explorer::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(10,19,16,.96) 0%, rgba(10,19,16,.82) 40%, rgba(10,19,16,0) 72%), linear-gradient(180deg, var(--navy) 0%, rgba(10,19,16,0) 18%, rgba(10,19,16,0) 82%, var(--navy) 100%); }
.explorer .wrap { position: relative; width: 100%; }
.explorer-head { max-width: 560px; margin-bottom: 36px; }
.explorer-ui { display: grid; grid-template-columns: 210px minmax(0, 400px); gap: 18px; align-items: start; }
.explorer-tabs { display: grid; gap: 6px; }
.explorer-tabs button {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer;
  font: 600 15px/1.2 var(--font); color: var(--muted-dark-bg); background: transparent;
  border: 1px solid transparent; border-radius: 10px; padding: 12px 14px; transition: all .2s;
}
.explorer-tabs button svg { width: 22px; height: 22px; color: currentColor; flex-shrink: 0; }
.explorer-tabs button:hover { color: var(--paper); background: rgba(231,239,233,.04); }
.explorer-tabs button[aria-selected="true"] { color: var(--paper); background: rgba(79,214,156,.1); border-color: rgba(79,214,156,.55); }
.explorer-tabs button[aria-selected="true"] svg { color: var(--orange); }
.explorer-panel { background: rgba(6,13,10,.82); border: 1px solid var(--line-dark); border-radius: 14px; padding: 24px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.explorer-panel .ex-top { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.explorer-panel .chip { font-size: 10px; }
.explorer-panel h3 { font-size: 28px; letter-spacing: -0.02em; margin-bottom: 8px; }
.explorer-panel > p { color: var(--muted-dark-bg); font-size: 15px; }
.ex-feed { list-style: none; margin: 16px 0 18px; padding: 0; border-top: 1px solid var(--line-dark); min-height: 214px; }
.ex-feed li { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-dark); font-size: 13px; }
.ex-feed time { grid-row: span 2; font-family: var(--mono); font-size: 11.5px; color: var(--muted-dark-bg); padding-top: 2px; }
.ex-feed code { font-family: var(--mono); font-size: 12.5px; color: var(--orange); }
.ex-feed span { color: var(--paper); opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-feed li.is-alert code { color: #FF8A73; }
.ex-feed li.is-new { animation: feedIn .5s cubic-bezier(.2,.7,.2,1); }
@keyframes feedIn { from { opacity: 0; transform: translateY(-10px); background: rgba(79,214,156,.12); } }
@media (max-width: 860px) {
  .explorer { min-height: 0; padding: 72px 0 320px; align-items: flex-start; }
  .explorer::before { background: linear-gradient(180deg, var(--navy) 0%, rgba(10,19,16,.92) 60%, rgba(10,19,16,0) 85%, var(--navy) 100%); }
  .explorer-ui { grid-template-columns: 1fr; }
  .explorer-tabs { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
}

/* animated pipeline: nodes light up column by column */
.flow.is-in .flow-col .flow-node { animation: nodePulse 6s ease-in-out infinite; }
.flow.is-in .flow-col:nth-child(2) .flow-node { animation-delay: 1.2s; }
.flow.is-in .flow-col:nth-child(3) .flow-node { animation-delay: 2.4s; }
.flow.is-in .flow-col:nth-child(4) .flow-node { animation-delay: 3.6s; }
@keyframes nodePulse {
  0%, 30%, 100% { border-color: var(--line-dark); box-shadow: none; }
  8%, 18% { border-color: rgba(79,214,156,.8); box-shadow: 0 0 0 4px rgba(79,214,156,.12), inset 3px 0 0 var(--orange); }
}

/* product demo widgets */
.demo-widget { margin-top: 26px; border: 1px solid var(--line-paper); border-radius: 14px; overflow: hidden; background: var(--navy); color: var(--paper); }
.demo-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line-dark); font-family: var(--mono); font-size: 12px; color: var(--muted-dark-bg); }
.demo-head .chip { font-size: 10px; }
.demo-widget svg { display: block; width: 100%; height: auto; touch-action: pan-y; }
.demo-range { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-top: 1px solid var(--line-dark); font-size: 14px; }
.demo-range input { flex: 1; accent-color: var(--orange); }
.demo-range output { font-family: var(--mono); font-size: 14px; color: var(--orange); min-width: 56px; text-align: right; }
.iso-fill { fill: rgba(79,214,156,.16); }
.iso-line { fill: none; stroke: var(--orange); stroke-width: 1.6; }
.demo-readout { margin: 0; padding: 12px 16px; border-top: 1px solid var(--line-dark); font-size: 14px; color: var(--muted-dark-bg); min-height: 46px; }
.demo-readout strong { color: var(--paper); }
.demo-readout.is-alert { color: #FF8A73; }
.temp-band { fill: rgba(79,214,156,.1); }
.temp-line { fill: none; stroke: var(--paper); stroke-width: 2; stroke-linejoin: round; }
.temp-cross { stroke: var(--orange); stroke-width: 1; opacity: 0; transition: opacity .15s; }
.temp-dot { fill: var(--orange); opacity: 0; transition: opacity .15s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .flow.is-in .flow-col .flow-node { animation: none; }
  .js .enter { animation: none; }
  body.is-leaving main, body.is-leaving .site-footer { opacity: 1; transform: none; filter: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
