/* ==========================================================================
   Felicet Technologies — site styles
   Design system inherited from felicet.com (Barlow Condensed / Source Sans 3 /
   #e86c2c), extended with IBM Plex Mono for the technical layer.
   ========================================================================== */

:root {
  /* Ground + surfaces — neutrals biased warm toward the accent */
  --ground:        #f4f2f0;
  --ground-2:      #eae7e3;
  --surface:       #ffffff;
  --surface-2:     #faf8f6;

  /* Ink */
  --ink:           #1a1714;
  --ink-2:         #4a443e;
  --ink-3:         #7a736c;

  /* Lines */
  --line:          rgba(26, 23, 20, 0.13);
  --line-strong:   rgba(26, 23, 20, 0.34);

  /* Accent */
  --accent:        #e86c2c;
  --accent-ink:    #ffffff;
  --accent-soft:   rgba(232, 108, 44, 0.10);
  --warm:          #ffb300;

  /* The dark band */
  --void:          #17140f;
  --void-2:        #211d17;
  --void-ink:      #f3efe9;
  --void-ink-2:    #a8a099;
  --void-line:     rgba(243, 239, 233, 0.14);

  /* Type */
  --font-display: "Barlow Condensed", "Oswald", "Arial Narrow", sans-serif;
  --font-body:    "Source Sans 3", "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Metrics */
  --container:     1320px;
  --pad:           clamp(1.25rem, 5vw, 4.5rem);
  --band:          clamp(4rem, 8vw, 7.5rem);
  --nav-h:         68px;
  --r:             2px;
  --ease:          cubic-bezier(0.4, 0, 0.2, 1);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground:      #15120f;
    --ground-2:    #1d1915;
    --surface:     #201c17;
    --surface-2:   #262119;
    --ink:         #f2eee9;
    --ink-2:       #c3bcb3;
    --ink-3:       #8f877f;
    --line:        rgba(242, 238, 233, 0.14);
    --line-strong: rgba(242, 238, 233, 0.34);
    --accent:      #ff8442;
    --accent-ink:  #1a1005;
    --accent-soft: rgba(255, 132, 66, 0.14);
    --void:        #0f0d0a;
    --void-2:      #17140f;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --ground:      #15120f;
  --ground-2:    #1d1915;
  --surface:     #201c17;
  --surface-2:   #262119;
  --ink:         #f2eee9;
  --ink-2:       #c3bcb3;
  --ink-3:       #8f877f;
  --line:        rgba(242, 238, 233, 0.14);
  --line-strong: rgba(242, 238, 233, 0.34);
  --accent:      #ff8442;
  --accent-ink:  #1a1005;
  --accent-soft: rgba(255, 132, 66, 0.14);
  --void:        #0f0d0a;
  --void-2:      #17140f;
  color-scheme: dark;
}

/* ---------- base ---------- */

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 1rem); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.005em;
  text-wrap: balance;
  margin: 0;
}

h1 { font-size: clamp(2.9rem, 7vw, 5.25rem); }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); line-height: 1.06; }
h4 { font-size: 1.15rem; line-height: 1.15; }

p { margin: 0; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

img, svg { max-width: 100%; }

/* ---------- layout primitives ---------- */

.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.band { padding-block: var(--band); }
.band--tight { padding-block: clamp(3rem, 5vw, 4.5rem); }
.band--alt { background: var(--ground-2); }
.band--paper { background: var(--surface); }

.band--dark {
  background: var(--void);
  color: var(--void-ink);
}
.band--dark h2, .band--dark h3 { color: var(--void-ink); }
.band--dark .lede, .band--dark p { color: var(--void-ink-2); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}
.band--dark .eyebrow { color: var(--warm); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  max-width: 58ch;
  margin-bottom: clamp(2.5rem, 4vw, 3.75rem);
}

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--ink-2);
  max-width: 62ch;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--r);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease), color 0.2s var(--ease);
}
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { transform: translateY(-2px); background: #d55f22; }
:root[data-theme="dark"] .btn--primary:hover { background: #ff9760; }

.btn--ghost { border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.band--dark .btn--ghost { border-color: var(--void-line); color: var(--void-ink); }
.band--dark .btn--ghost:hover { border-color: var(--warm); color: var(--warm); }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--ground) 92%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav--scrolled { box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08); }

.nav__inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
}
.brand__mark { color: var(--ink); }
.brand__mark span { color: var(--accent); }
.brand__sub {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--ink-3);
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding-block: 0.4rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.nav__links a:hover { color: var(--ink); border-bottom-color: var(--accent); }
.nav__links .btn { text-transform: uppercase; padding: 0.6rem 1.2rem; border-bottom: 0; }
.nav__links .btn:hover { border-bottom-color: transparent; color: var(--accent-ink); }

.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  color: var(--ink);
  cursor: pointer;
}
.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  margin-inline: auto;
  content: "";
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.nav__toggle span::before { transform: translateY(-6px); }
.nav__toggle span::after  { transform: translateY(4px); }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after  { transform: rotate(-45deg) translateY(-1px); }

@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--pad) 1.5rem;
    background: var(--ground);
    border-bottom: 1px solid var(--line);
  }
  .nav__links[hidden] { display: none; }
  .nav__links li { border-bottom: 1px solid var(--line); }
  .nav__links li:last-child { border-bottom: 0; padding-top: 1rem; }
  .nav__links a { display: block; padding-block: 0.9rem; border-bottom: 0; }
  .nav__links .btn { justify-content: center; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 7vw, 6rem) clamp(3.5rem, 6vw, 5.5rem);
  background:
    radial-gradient(90ch 50ch at 82% -10%, var(--accent-soft), transparent 70%),
    var(--ground);
  border-bottom: 1px solid var(--line);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
}

.hero__copy { display: flex; flex-direction: column; gap: 1.5rem; }
.hero h1 { text-transform: uppercase; }
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero__lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-2); max-width: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  text-transform: uppercase;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}

/* platform schematic */
.schematic {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(1.25rem, 2.5vw, 2rem);
  box-shadow: 0 16px 44px rgba(26, 23, 20, 0.09);
}
.schematic__label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.schematic svg { display: block; width: 100%; height: auto; }

/* ---------- stat strip ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.stat {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(1.4rem, 2.5vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.stat__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}
.stat__num sup { font-size: 0.42em; color: var(--accent); vertical-align: super; }
.stat__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ---------- capability cards ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.cap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  border-top: 3px solid var(--accent);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.cap:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(26, 23, 20, 0.1); }
.cap__idx {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  color: var(--ink-3);
}
.cap p { color: var(--ink-2); font-size: 0.975rem; }

/* ---------- products ---------- */

.product {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 4vw, 4rem);
  padding-block: clamp(2.75rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
  align-items: start;
}
.product:first-of-type { border-top: 0; padding-top: 0; }
@media (max-width: 880px) {
  .product { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
}

.product__id {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}
@media (max-width: 880px) { .product__id { position: static; } }

.product__kicker {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.product__name { text-transform: uppercase; }
.product__who { color: var(--ink-2); }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.chip {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  color: var(--ink-2);
  white-space: nowrap;
}
.chip--accent { border-color: var(--accent); color: var(--accent); }

.feature-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.75rem 2.5rem;
}
.feature-group h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 0.6rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}
.feature-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.feature-group li {
  position: relative;
  padding-left: 1.05rem;
  font-size: 0.95rem;
  color: var(--ink-2);
}
.feature-group li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 1px;
  background: var(--accent);
}

/* ---------- industry modules ---------- */

.modules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.module {
  background: var(--void-2);
  border: 1px solid var(--void-line);
  border-radius: var(--r);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.module__status {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--void-ink-2);
}
.module__status::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--warm);
}
.module__status--soon::before { background: var(--void-ink-2); }
.module h3 { text-transform: uppercase; }
.module__vocab {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--void-ink);
}
.module__vocab span {
  border: 1px solid var(--void-line);
  padding: 0.25rem 0.5rem;
  border-radius: var(--r);
}

/* ---------- endpoints ---------- */

.tech-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
@media (max-width: 880px) { .tech-grid { grid-template-columns: minmax(0, 1fr); } }

.endpoints {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  overflow: hidden;
}
.endpoints__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.endpoints ul { list-style: none; margin: 0; padding: 0; }
.endpoints li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ink);
}
.endpoints li:last-child { border-bottom: 0; }
.endpoints .verb { color: var(--accent); font-size: 0.6875rem; letter-spacing: 0.08em; min-width: 3.2rem; }
.endpoints .note { margin-left: auto; color: var(--ink-3); font-size: 0.6875rem; text-align: right; }

.stack-list { display: flex; flex-direction: column; gap: 0; }
.stack-row {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--line);
}
.stack-row:first-child { border-top: 1px solid var(--line); }
.stack-row dt {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 0.2rem;
}
.stack-row dd { margin: 0; color: var(--ink); font-size: 0.95rem; }
@media (max-width: 520px) {
  .stack-row { grid-template-columns: minmax(0, 1fr); gap: 0.25rem; }
}

/* ---------- cta ---------- */

.cta {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
@media (max-width: 880px) { .cta { grid-template-columns: minmax(0, 1fr); } }
.cta h2 { text-transform: uppercase; }

.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.contact-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  justify-content: space-between;
  align-items: baseline;
  padding-block: 0.9rem;
  border-bottom: 1px solid var(--void-line);
}
.contact-list li:first-child { border-top: 1px solid var(--void-line); }
.contact-list dt, .contact-list .k {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--void-ink-2);
}
.contact-list a { color: var(--void-ink); text-decoration: none; border-bottom: 1px solid var(--warm); }
.contact-list a:hover { color: var(--warm); }

/* ---------- footer ---------- */

.footer {
  background: var(--ground-2);
  border-top: 1px solid var(--line);
  padding-block: clamp(2.5rem, 4vw, 3.5rem) 2rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
.footer h5 {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 0.9rem;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.footer a { color: var(--ink-2); text-decoration: none; font-size: 0.9375rem; }
.footer a:hover { color: var(--accent); }
.footer__blurb { color: var(--ink-2); font-size: 0.95rem; max-width: 40ch; margin-top: 0.9rem; }
.footer__base {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
  padding-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  text-transform: uppercase;
}

/* ---------- legal / support pages ---------- */

.page-head {
  padding-block: clamp(3rem, 5vw, 4.5rem) clamp(2rem, 3vw, 3rem);
  border-bottom: 1px solid var(--line);
  background: var(--ground);
}
.page-head h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); text-transform: uppercase; }
.page-head .meta {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 1rem;
}

.doc {
  max-width: 72ch;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.doc h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  text-transform: uppercase;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.doc h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.doc h3 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; line-height: 1.4; margin-top: 0.75rem; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul, .doc ol { margin: 0; padding-left: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.doc code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0.1em 0.35em;
  border-radius: var(--r);
}
.doc a { color: var(--accent); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
table { border-collapse: collapse; width: 100%; min-width: 34rem; background: var(--surface); }
th, td { text-align: left; padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); font-size: 0.9375rem; }
th {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--surface-2);
}
td { color: var(--ink-2); }
tr:last-child td { border-bottom: 0; }

.callout {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  padding: 1rem 1.25rem;
  border-radius: var(--r);
  font-size: 0.95rem;
  color: var(--ink-2);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.75rem 1.25rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- schematic (inline SVG) ---------- */

.schematic .sch-box   { fill: var(--surface-2); stroke: var(--line-strong); stroke-width: 1; }
.schematic .sch-svc   { fill: none; stroke: var(--line-strong); stroke-width: 1; }
.schematic .sch-line  { stroke: var(--ink-3); stroke-width: 1; }
.schematic .sch-arrowhead { fill: var(--ink-3); }
.schematic .sch-api   { fill: var(--accent); }
.schematic .sch-foot  { fill: var(--void); }

.schematic .sch-app {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  fill: var(--ink);
}
.schematic .sch-mono {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.2px;
  fill: var(--ink-3);
}
.schematic .sch-api-title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  fill: #ffffff;
}
.schematic .sch-api-sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  fill: #ffe7d8;
}
:root[data-theme="dark"] .schematic .sch-api-title,
:root[data-theme="dark"] .schematic .sch-api-sub { fill: #2a1508; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .schematic .sch-api-title,
  :root:not([data-theme="light"]) .schematic .sch-api-sub { fill: #2a1508; }
}
.schematic .sch-end { text-anchor: end; }
.schematic .sch-svc-t {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  fill: var(--ink);
}
.schematic .sch-foot-t {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.6px;
  fill: var(--warm);
}

/* ==========================================================================
   The stage — scroll-scrubbed opening. Deliberately single-theme (dark):
   it is a lit screen in both light and dark mode, so every colour here is
   explicit rather than token-driven.
   ========================================================================== */

.stage {
  position: relative;
  height: 220vh;                 /* scroll travel = the scrub track */
  background: #0d0b09;
}

.stage__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(70ch 50ch at 72% 18%, rgba(232, 108, 44, 0.16), transparent 68%),
    radial-gradient(60ch 40ch at 12% 88%, rgba(255, 179, 0, 0.08), transparent 70%),
    #0d0b09;
}

.stage__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.stage__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(13, 11, 9, 0.94) 0%, rgba(13, 11, 9, 0.72) 42%, rgba(13, 11, 9, 0.28) 100%);
  pointer-events: none;
}

.stage__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  max-width: min(var(--container), 100%);
}

.stage__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ffb300;
  margin: 0;
}

/* stacked captions: all share one grid cell, so the block never jumps */
.stage__h1,
.stage__subs {
  display: grid;
  margin: 0;
}
.stage__h1 > .scap,
.stage__subs > .scap {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.stage__h1 > .scap.is-active,
.stage__subs > .scap.is-active {
  opacity: 1;
  transform: none;
}

.stage__h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 7.4vw, 6rem);
  line-height: 0.94;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #fdf9f4;
  max-width: 17ch;
}
.stage__h1 em { font-style: normal; color: #ff7a35; }

.stage__subs {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.55;
  color: #cbc1b7;
  max-width: 46ch;
}

.stage__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.btn--on-dark { border-color: rgba(253, 249, 244, 0.28); color: #fdf9f4; }
.btn--on-dark:hover { border-color: #ffb300; color: #ffb300; }

/* the three-step rail */
.rail {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: clamp(1.5rem, 4vh, 2.75rem);
  z-index: 2;
  display: flex;
  gap: clamp(1rem, 3vw, 2.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.rail__step {
  flex: 1 1 0;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(253, 249, 244, 0.16);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(253, 249, 244, 0.42);
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.rail__step.is-active { color: #fdf9f4; border-top-color: #e86c2c; }
.rail__n { color: #e86c2c; }

.stage__hint {
  position: absolute;
  right: var(--pad);
  top: 50%;
  z-index: 2;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(253, 249, 244, 0.45);
  transform: rotate(90deg);
  transform-origin: right center;
}

@media (max-width: 760px) {
  .stage { height: 200vh; }
  .stage__hint { display: none; }
  .rail__t { display: none; }
  .rail { gap: 0.75rem; }
}

/* nav sits over the stage until you leave it */
.nav--over-stage {
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
  box-shadow: none;
}
.nav--over-stage .brand__mark { color: #fdf9f4; }
.nav--over-stage .brand__sub  { color: rgba(253, 249, 244, 0.6); }
.nav--over-stage .nav__links > li > a { color: rgba(253, 249, 244, 0.82); }
.nav--over-stage .nav__links > li > a:hover { color: #fdf9f4; }
.nav--over-stage .nav__toggle { color: #fdf9f4; border-color: rgba(253, 249, 244, 0.3); }
.nav--over-stage .nav__links .btn--primary { color: var(--accent-ink); }
@media (max-width: 900px) {
  .nav--over-stage .nav__links { background: #0d0b09; border-bottom-color: rgba(253, 249, 244, 0.14); }
  .nav--over-stage .nav__links li { border-bottom-color: rgba(253, 249, 244, 0.12); }
}

/* the topology figure, now inside the platform section */
.platform-figure {
  margin: 0 0 clamp(2.5rem, 4vw, 3.5rem);
  max-width: 760px;
}
