/* Cloud Vendor Software B.V. - site styles.
   No build step and no third-party requests. Fonts: Geist and Geist Mono (Vercel, SIL Open Font License 1.1),
   self-hosted in /assets/fonts. Identity: engineering drawing on deep ink; orange = the route, cyan = the drawing. */

@font-face { font-family: "Geist"; src: url("/assets/fonts/geist-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  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: "Geist"; src: url("/assets/fonts/geist-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/geist-mono-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  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: "Geist Mono"; src: url("/assets/fonts/geist-mono-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: dark;
  --ink: #070b14;
  --ink-2: #0c1322;
  --ink-3: #111a2e;
  --line: #1d2a44;
  --line-2: #2a3a5c;
  --text: #f1f4fa;
  --body: #c5cfdf;
  --muted: #8d9bb4;
  --route: #ff6a2b;          /* the route: signal orange */
  --route-soft: rgba(255, 106, 43, 0.14);
  --draw: #5fc6ff;           /* the drawing: blueprint cyan */
  --draw-soft: rgba(95, 198, 255, 0.07);
  --focus: #ffd166;

  --paper: #eef1f6;          /* reading surface for long texts */
  --paper-text: #141b2b;
  --paper-muted: #4a5568;
  --paper-line: #cdd5e2;
  --paper-link: #b63d0c;

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --max: 76rem;
  --gutter: 1rem;
  --rail: 2.5rem;
  --lane-a: 0.8rem;
  --lane-b: 0.8rem;
}
@media (min-width: 48rem) { :root { --gutter: 2rem; --rail: 6.5rem; --lane-a: 1.25rem; --lane-b: 3.75rem; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--ink); }

body {
  margin: 0;
  color: var(--body);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
  overflow-x: clip;
  background-color: var(--ink);
  /* drawing sheet: minor and major grid */
  background-image:
    linear-gradient(rgba(120, 150, 210, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 150, 210, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(120, 150, 210, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 150, 210, 0.03) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
  font-feature-settings: "ss01", "cv11";
}

img, svg { max-width: 100%; height: auto; }
a { color: var(--text); text-decoration-color: var(--route); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { color: var(--route); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
::selection { background: var(--route); color: var(--ink); }

h1, h2, h3 { color: var(--text); font-weight: 600; line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 0.6em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 7.6vw, 6.4rem); letter-spacing: -0.045em; line-height: 0.98; }
h2 { font-size: clamp(1.9rem, 4.4vw, 3.4rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); letter-spacing: -0.02em; line-height: 1.2; }
p { margin: 0 0 1em; }
strong { color: var(--text); font-weight: 600; }

.mono, .eyebrow, .tag { font-family: var(--mono); }
.eyebrow {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--route);
  margin: 0 0 1.25rem; display: flex; align-items: center; gap: 0.75rem;
}
.eyebrow .dim { color: var(--muted); }
.lead { font-size: clamp(1.1rem, 1.9vw, 1.35rem); line-height: 1.55; color: var(--body); max-width: 40rem; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--route); color: var(--ink); padding: 0.6rem 1rem; z-index: 50; font-weight: 600; }
.skip-link:focus { left: var(--gutter); top: 0.5rem; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(7, 11, 20, 0.82);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.4rem 1.5rem; padding-top: 0.75rem; padding-bottom: 0.75rem; }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; color: var(--text); text-decoration: none; font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; }
.brand svg { width: 26px; height: 26px; flex: none; color: var(--route); }
.brand small { display: block; font-family: var(--mono); font-weight: 400; color: var(--muted); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 1.4rem; }
.site-nav a { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); text-decoration: none; padding: 0.35rem 0; display: inline-block; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -1px 0 var(--route); }
@media (max-width: 30rem) { .site-nav ul { gap: 0 1rem; } .site-nav a { font-size: 0.72rem; } }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.85rem 1.25rem;
  font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500;
  text-decoration: none; border: 1px solid var(--route); color: var(--route); background: transparent;
  transition: background-color .2s, color .2s;
}
.btn::after { content: "\2192"; font-family: var(--font); }
.btn-primary { background: var(--route); color: var(--ink); }
.btn-primary:hover { background: #ff8a55; border-color: #ff8a55; color: var(--ink); }
.btn-secondary:hover { background: var(--route-soft); color: var(--text); }
.btn-ghost { border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); color: var(--text); }
.btn-big { font-size: clamp(0.85rem, 2.4vw, 1.05rem); text-transform: none; letter-spacing: 0; padding: 1rem 1.4rem; overflow-wrap: anywhere; }
@media (max-width: 30rem) { .btn-big { font-size: 0.8rem; padding: 0.9rem 1rem; } .btn-big::after { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(0.5rem, 3vw, 2.5rem) 0 2rem; }
.hero .wrap { position: relative; padding-left: calc(var(--gutter) + var(--rail)); }
.hero h1 { max-width: 13ch; margin-bottom: 0.45em; }
.hero h1 em { font-style: normal; color: var(--route); }
.hero .lead { max-width: 36rem; }
.hero-grid { display: grid; gap: 3rem 4rem; align-items: start; }
@media (min-width: 64rem) { .hero-grid { grid-template-columns: minmax(0, 1fr) 19rem; } .hero h1 { font-size: clamp(2.6rem, 6.6vw, 6.2rem); } }
.hero-aside { border: 1px solid var(--line-2); background: rgba(7, 11, 20, 0.7); padding: 1rem 1rem 0; margin-top: 0.75rem; }
.hero-aside .titleblock > div:nth-last-child(2) { border-bottom: 0; }
.hero-aside .titleblock { margin: 0 -1rem; border-left: 0; border-right: 0; border-bottom: 0; background: none; }
.map-title { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.75rem; }
.routemap { list-style: none; margin: 0 0 1.25rem; padding: 0; position: relative; }
.routemap::before { content: ""; position: absolute; left: 6px; top: 0.9rem; bottom: 0.9rem; border-left: 2px solid var(--route); }
.routemap a { display: flex; gap: 0.75rem; align-items: baseline; padding: 0.32rem 0 0.32rem 1.75rem; position: relative; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--body); text-decoration: none; }
.routemap a::before { content: ""; position: absolute; left: 0; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; border: 2px solid var(--route); background: var(--ink); box-sizing: border-box; }
.routemap span { color: var(--muted); min-width: 1.4rem; }
.routemap a:hover { color: var(--route); }
.routemap a:hover::before { background: var(--route); }
.routemap .end a { color: var(--text); }
.routemap .end a::before { border-radius: 2px; width: 18px; height: 10px; margin-top: -5px; left: -2px; background: var(--route); }
.scroll-cue { margin-top: 3rem !important; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 0.75rem; margin: 0; }
.scroll-cue::before { content: ""; width: 1px; height: 2.5rem; background: linear-gradient(var(--route), transparent); }

/* Drawing title block (hero, contact, sub-pages) */
.titleblock { border: 1px solid var(--line-2); display: grid; grid-template-columns: 1fr 1fr; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em; background: rgba(7, 11, 20, 0.6); margin: 0; }
.titleblock > div { padding: 0.55rem 0.75rem; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); min-width: 0; }
.titleblock > div:nth-child(2n) { border-right: 0; }
.titleblock > div.span { grid-column: 1 / -1; border-right: 0; }
.titleblock > div:nth-last-child(-n+1) { border-bottom: 0; }
.titleblock dt { color: var(--muted); text-transform: uppercase; font-size: 0.62rem; letter-spacing: 0.12em; }
.titleblock dd { margin: 0.15rem 0 0; color: var(--text); }
.titleblock dd a { color: var(--text); }

/* ---------- Journey: route rail ---------- */
.journey { position: relative; timeline-scope: --route; }
.route { position: absolute; left: 0; top: 0; width: 100%; pointer-events: none; overflow: visible; z-index: 0; view-timeline: --route block; }
.route path { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.route-plan { stroke: var(--line-2); stroke-width: 1.5; stroke-dasharray: 4 6; }
.route-built { stroke: var(--route); stroke-width: 3; filter: drop-shadow(0 0 6px rgba(255, 106, 43, 0.45)); }
.route-tip { position: absolute; left: 0; top: 0; width: 14px; height: 14px; margin: 0; border-radius: 50%; background: var(--route); box-shadow: 0 0 0 5px rgba(255, 106, 43, 0.22), 0 0 22px 4px rgba(255, 106, 43, 0.55); offset-rotate: 0deg; offset-anchor: center; offset-distance: 0%; display: none; z-index: 2; pointer-events: none; }
/* without JS: a plain rail */
.journey::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(max(0px, (100% - var(--max)) / 2) + var(--gutter) + var(--lane-a) + 8px); border-left: 2px solid var(--route); opacity: 0.6; }
.js .journey::before { display: none; }

.stop { position: relative; z-index: 1; }
.stop > .wrap { position: relative; padding-top: clamp(4rem, 9vw, 7.5rem); padding-bottom: clamp(2rem, 5vw, 4rem); padding-left: calc(var(--gutter) + var(--rail)); }
.node {
  position: absolute; top: calc(clamp(4rem, 9vw, 7.5rem) + 0.05rem); left: calc(var(--gutter) + var(--lane-a));
  width: 18px; height: 18px; border-radius: 50%; background: var(--ink); border: 2px solid var(--route);
  box-shadow: 0 0 0 4px var(--ink); z-index: 3;
}
.node::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--route); }
.lane-b .node { left: calc(var(--gutter) + var(--lane-b)); }
.node.interchange { width: 22px; height: 22px; margin: -2px 0 0 -2px; border-width: 3px; }
.node.interchange::after { inset: 4px; background: var(--ink); border: 2px solid var(--route); }
.node.terminus { border-radius: 3px; width: 26px; height: 14px; margin: 2px 0 0 -4px; }
.node.terminus::after { border-radius: 1px; }

.st-label { position: relative; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--route); margin: 0 0 1.5rem; line-height: 18px; display: flex; flex-wrap: wrap; gap: 0 0.9rem; }
.st-label .dim { color: var(--muted); }
.st-label::before { content: ""; position: absolute; top: 9px; right: calc(100% + 0.6rem); width: calc(var(--rail) - var(--lane-a) - 18px - 1.2rem); border-top: 1px dashed var(--line-2); }
.lane-b .st-label::before { width: calc(var(--rail) - var(--lane-b) - 18px - 1.2rem); }
@media (max-width: 47.99rem) { .st-label::before { display: none; } }

/* station layout: text + figure */
.st-grid { display: grid; gap: 2rem 4rem; align-items: start; }
@media (min-width: 64rem) { .st-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 27rem); } .st-grid.flip > .st-fig { order: -1; } .st-grid.flip { grid-template-columns: minmax(0, 27rem) minmax(0, 1fr); } }
.st-text { max-width: 40rem; }
.st-text h2, .st-text h3 { margin-bottom: 0.5em; }
.st-text h3.big { font-size: clamp(1.7rem, 3.6vw, 2.75rem); letter-spacing: -0.035em; line-height: 1.05; }
.principle { margin: 1.75rem 0 0; padding: 1rem 0 0; border-top: 1px solid var(--line); display: grid; gap: 0.25rem; }
.principle dt { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.principle dt b { color: var(--draw); font-weight: 500; }
.principle dd { margin: 0; color: var(--body); }
.principle dd strong { display: block; color: var(--text); font-size: 1.1rem; margin-bottom: 0.15rem; }

/* figures */
.st-fig { margin: 0; position: relative; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(12, 19, 34, 0.85), rgba(7, 11, 20, 0.85)); padding: 1rem 1rem 0.75rem; view-timeline: --fig block; }
.st-fig::before, .st-fig::after { content: ""; position: absolute; width: 10px; height: 10px; border-color: var(--draw); border-style: solid; opacity: 0.8; }
.st-fig::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.st-fig::after { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }
.st-fig svg { display: block; width: 100%; height: auto; overflow: visible; }
.st-fig figcaption { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; color: var(--muted); border-top: 1px dashed var(--line); margin-top: 0.75rem; padding-top: 0.6rem; display: flex; gap: 0.75rem; }
.st-fig figcaption b { color: var(--draw); font-weight: 500; white-space: nowrap; }

/* diagram vocabulary */
.dg { font-family: var(--mono); }
.dg .bx { fill: var(--draw-soft); stroke: var(--draw); stroke-width: 1.25; }
.dg .bx-dim { fill: none; stroke: var(--line-2); stroke-width: 1.25; stroke-dasharray: 4 4; }
.dg .bx-hl { fill: var(--route-soft); stroke: var(--route); stroke-width: 1.5; }
.dg .ln { fill: none; stroke: var(--draw); stroke-width: 1.25; }
.dg .ln-dim { fill: none; stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 3 4; }
.dg .ln-hl { fill: none; stroke: var(--route); stroke-width: 1.75; }
.dg .ln-dash { fill: none; stroke: var(--route); stroke-width: 1.5; stroke-dasharray: 5 5; }
.dg .tx { fill: var(--body); font-size: 11px; letter-spacing: 0.04em; }
.dg .tx-dim { fill: var(--muted); font-size: 10px; letter-spacing: 0.06em; }
.dg .tx-hl { fill: var(--route); font-size: 11px; letter-spacing: 0.04em; }
.dg .dot { fill: var(--draw); }
.dg .dot-hl { fill: var(--route); }
.dg .k { transform-box: fill-box; transform-origin: center; }
.dg .k-out, .dg .k-out-down { opacity: 0; } /* static drawing shows the end state */

/* intro / interlude */
.interlude > .wrap { padding-top: clamp(5rem, 12vw, 10rem); }
.interlude h2 { font-size: clamp(2.2rem, 5.6vw, 4.6rem); letter-spacing: -0.045em; line-height: 1; max-width: 16ch; }
.quote { font-size: clamp(1.35rem, 2.8vw, 2rem); line-height: 1.3; letter-spacing: -0.02em; color: var(--text); margin: 0 0 1.75rem; padding-left: 1.25rem; border-left: 3px solid var(--route); max-width: 34rem; font-weight: 500; }

/* how we work strip */
.howline { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 0; counter-reset: how; }
@media (min-width: 48rem) { .howline { grid-template-columns: repeat(4, 1fr); } }
.howline li { counter-increment: how; position: relative; padding: 1.75rem 1.25rem 0.5rem 0; border-top: 2px solid var(--line-2); }
.howline li::before { content: counter(how, decimal-leading-zero); position: absolute; top: -0.65rem; left: 0; font-family: var(--mono); font-size: 0.7rem; color: var(--route); background: var(--ink); padding: 0 0.5rem 0 0; letter-spacing: 0.1em; }
.howline b { display: block; color: var(--text); font-size: 1.05rem; margin-bottom: 0.3rem; font-weight: 600; }
.howline span { color: var(--muted); font-size: 0.95rem; }

/* services: four lines leaving an interchange */
.lines { list-style: none; margin: 3rem 0 0; padding: 0; display: grid; gap: 2.5rem 2rem; }
@media (min-width: 48rem) { .lines { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 80rem) { .lines { grid-template-columns: repeat(4, 1fr); } }
.lines > li { position: relative; padding-top: 1.5rem; border-top: 3px solid var(--route); }
.lines > li:nth-child(2) { border-top-color: var(--draw); }
.lines > li:nth-child(3) { border-top-style: dotted; }
.lines > li:nth-child(4) { border-top-color: var(--draw); border-top-style: dashed; }
.lines .code { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; gap: 1rem; margin: 0 0 0.9rem; }
.lines .code b { color: var(--text); font-weight: 500; white-space: nowrap; }
.lines .code span { text-align: right; }
.lines h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.lines p { color: var(--body); }
.lines ul { list-style: none; margin: 1rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.lines ul li { font-size: 0.93rem; color: var(--muted); padding: 0.5rem 0 0.5rem 1.1rem; border-bottom: 1px solid var(--line); position: relative; }
.lines ul li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 6px; height: 1px; background: var(--route); }

/* experience */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 0; margin: 2.5rem 0 1rem; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.stats div { padding: 1.25rem 1.25rem 1.25rem 0; }
.stats div + div { border-left: 1px solid var(--line); padding-left: 1.25rem; }
.stats b { display: block; font-family: var(--mono); font-weight: 400; font-size: clamp(2.6rem, 6vw, 4.2rem); letter-spacing: -0.05em; color: var(--text); line-height: 1; }
.stats b i { font-style: normal; color: var(--route); }
.stats span { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 36rem) { .stats div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); } }

.log { list-style: none; margin: 3rem 0 0; padding: 0; display: grid; gap: 0 3rem; counter-reset: log; }
@media (min-width: 56rem) { .log { grid-template-columns: repeat(2, 1fr); } }
.log li { counter-increment: log; display: grid; grid-template-columns: 3.25rem 1fr; gap: 0 0.5rem; padding: 1.4rem 0; border-top: 1px solid var(--line); }
.log li::before { content: counter(log, decimal-leading-zero); font-family: var(--mono); font-size: 0.75rem; color: var(--draw); padding-top: 0.25rem; letter-spacing: 0.08em; }
.log h3 { font-size: 1.15rem; margin: 0 0 0.35rem; }
.log p { margin: 0; color: var(--muted); font-size: 0.97rem; grid-column: 2; }
.log h3 { grid-column: 2; }

.kit { display: grid; gap: 2rem 3rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line-2); }
@media (min-width: 56rem) { .kit { grid-template-columns: 1fr 1fr; } }
.kit h3 { font-size: 1.05rem; font-family: var(--mono); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tags li { font-family: var(--mono); font-size: 0.78rem; padding: 0.3rem 0.6rem; border: 1px solid var(--line-2); color: var(--body); background: rgba(12, 19, 34, 0.7); }

/* product / branch line */
.branch { display: grid; gap: 2.5rem 4rem; align-items: start; }
@media (min-width: 60rem) { .branch { grid-template-columns: 1.1fr 1fr; } }
.sign { border: 1px solid var(--line-2); background: rgba(12, 19, 34, 0.85); position: relative; }
.sign header { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 0.7rem 1rem; border-bottom: 1px solid var(--line-2); font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.sign header b { color: var(--draw); font-weight: 500; }
.sign .body { padding: 1.25rem 1.25rem 1.5rem; }
.sign h3 { font-size: 1.6rem; margin-bottom: 0.4rem; }
.sign p { color: var(--body); }
.sign .more { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; }

.check-list { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.check-list li { padding: 0.55rem 0 0.55rem 1.75rem; position: relative; border-bottom: 1px solid var(--line); color: var(--body); }
.check-list li::before { content: ""; position: absolute; left: 0.2rem; top: 1.05em; width: 0.6rem; height: 0.32rem; border-left: 2px solid var(--route); border-bottom: 2px solid var(--route); transform: rotate(-45deg); }

/* contact / terminus */
.terminus-grid { display: grid; gap: 3rem 4rem; align-items: start; }
@media (min-width: 60rem) { .terminus-grid { grid-template-columns: 1.15fr 1fr; } }
.terminus-grid .small { color: var(--muted); font-size: 0.95rem; margin-top: 1.25rem; }
.contact-block { grid-template-columns: 1fr; font-size: 0.82rem; }
.contact-block > div { border-right: 0; }

/* station index (desktop) */
.route-index { position: fixed; right: 1.25rem; top: 50%; transform: translateY(-50%); z-index: 20; display: none; }
@media (min-width: 90rem) { .route-index { display: block; } }
.route-index ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; border-right: 1px solid var(--line-2); }
.route-index a { display: flex; align-items: center; justify-content: flex-end; gap: 0.6rem; font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; color: transparent; text-decoration: none; padding: 0.3rem 0.85rem 0.3rem 0; position: relative; transition: color .2s; }
.route-index a::after { content: ""; position: absolute; right: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); border: 1px solid var(--line-2); }
.route-index:hover a, .route-index a:focus-visible { color: var(--muted); }
.route-index a.passed::after { background: var(--route); border-color: var(--route); }
.route-index:hover a.active, .route-index a.active:focus-visible { color: var(--text); }
.route-index a.active::after { width: 9px; height: 9px; right: -5px; box-shadow: 0 0 0 3px var(--route-soft); }

/* ---------- Generic sections (sub-pages) ---------- */
.section { position: relative; padding: clamp(3rem, 8vw, 6rem) 0; }
.section + .section { border-top: 1px solid var(--line); }
.page-hero { padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(2.5rem, 6vw, 4rem); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4.8rem); max-width: 16ch; }
.narrow { max-width: 44rem; }
.cols { display: grid; gap: 1.5rem 3rem; }
@media (min-width: 48rem) { .cols-2 { grid-template-columns: repeat(2, 1fr); } .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .cols-4 { grid-template-columns: repeat(4, 1fr); } }
.cell { border-top: 1px solid var(--line-2); padding-top: 1rem; }
.cell h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.cell p { color: var(--muted); margin: 0; }
.muted { color: var(--muted); }
.breadcrumb { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0 0 1.5rem; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--route); }

/* ---------- Reading surface for legal/long pages ---------- */
.reading { padding: clamp(1.5rem, 5vw, 4rem) 0 clamp(3rem, 8vw, 6rem); }
.sheet {
  max-width: 50rem; margin: 0 auto; background: var(--paper); color: var(--paper-text);
  padding: clamp(1.5rem, 5vw, 3.5rem) clamp(1.25rem, 5vw, 4rem) clamp(2rem, 5vw, 3.5rem);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  position: relative; font-size: 1.04rem; line-height: 1.7;
}
.sheet::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--route); }
.sheet .breadcrumb, .sheet .breadcrumb a { color: var(--paper-muted); }
.sheet .breadcrumb a:hover { color: var(--paper-link); }
.prose { max-width: 42rem; }
.sheet h1, .sheet h2, .sheet h3 { color: var(--paper-text); letter-spacing: -0.02em; }
.sheet h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.035em; line-height: 1.05; }
.sheet h2 { font-size: 1.4rem; margin-top: 2.4rem; padding-top: 1.1rem; border-top: 1px solid var(--paper-line); line-height: 1.25; }
.sheet h3 { font-size: 1.1rem; margin-top: 1.6rem; }
.sheet p, .sheet li { color: var(--paper-text); }
.sheet strong { color: var(--paper-text); }
.sheet a { color: var(--paper-link); text-decoration-color: currentColor; }
.sheet a:hover { color: var(--paper-text); }
.sheet :focus-visible { outline-color: var(--paper-link); }
.sheet ul { padding-left: 1.25rem; }
.sheet li { margin-bottom: 0.4rem; }
.sheet li::marker { color: var(--paper-link); }
.sheet code { font-family: var(--mono); font-size: 0.88em; background: #dde3ec; padding: 0.08em 0.35em; }
.sheet details { border-top: 2px solid var(--paper-text); margin-top: 2rem; padding-top: 0.5rem; }
.sheet summary { cursor: pointer; font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.5rem 0; color: var(--paper-text); }
.sheet summary:hover { color: var(--paper-link); }
.sheet .lang-nav { font-family: var(--mono); font-size: 0.8rem; color: var(--paper-muted); }
.sheet .notice { border-left: 3px solid var(--route); background: #e2e7ef; padding: 0.8rem 1rem; font-size: 0.95rem; margin: 1.5rem 0; }
.sheet dl.facts dt { color: var(--paper-muted); }
.sheet ::selection { background: var(--route); color: #fff; }

dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1.5rem; margin: 0; }
dl.facts dt { color: var(--muted); font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; padding-top: 0.2rem; }
dl.facts dd { margin: 0; }
@media (max-width: 30rem) { dl.facts { grid-template-columns: 1fr; gap: 0.1rem; } dl.facts dd { margin-bottom: 0.6rem; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line-2); background: rgba(7, 11, 20, 0.9); font-size: 0.9rem; color: var(--muted); position: relative; z-index: 1; }
.site-footer .wrap { display: grid; gap: 0; padding-top: 0; padding-bottom: 0; }
@media (min-width: 48rem) { .site-footer .wrap { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer .wrap > div { padding: 2rem 0; }
@media (min-width: 48rem) { .site-footer .wrap > div + div { border-left: 1px solid var(--line); padding-left: 1.5rem; } }
@media (max-width: 47.99rem) { .site-footer .wrap > div + div { border-top: 1px solid var(--line); } }
.site-footer h2 { font-family: var(--mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.75rem; color: var(--route); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.35rem; }
.site-footer a { color: var(--body); text-decoration: none; }
.site-footer a:hover { color: var(--route); text-decoration: underline; }
.site-footer strong { color: var(--text); }

/* ============================================================
   Motion. Everything above is the complete static design.
   Motion is only added when the visitor has not asked for reduced motion.
   Mode 1: CSS scroll-driven animations (animation-timeline).
   Mode 2: html.nosda - JS adds .is-in via IntersectionObserver and
           drives the route with requestAnimationFrame.
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  @keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
  @keyframes pop { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes fadeout { from { opacity: 1; } to { opacity: 0; } }
  @keyframes fadeout-down { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(46px); } }
  @keyframes move { from { transform: translate(var(--dx, 0), var(--dy, 0)); } to { transform: none; } }
  @keyframes reach { from { border-color: var(--line-2); } to { border-color: var(--route); } }
  @keyframes reach-dot { from { transform: scale(0); } to { transform: scale(1); } }
  @keyframes tip { from { offset-distance: 0%; } to { offset-distance: 100%; } }
  @keyframes intro { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

  /* hero intro on load (time-based, short) */
  .hero .st-label, .hero h1, .hero .lead, .hero .actions, .hero-aside, .scroll-cue { animation: intro .9s cubic-bezier(.2,.7,.2,1) both; }
  .hero h1 { animation-delay: .08s; }
  .hero .lead { animation-delay: .2s; }
  .hero .actions { animation-delay: .3s; }
  .hero-aside { animation-delay: .4s; }
  .scroll-cue { animation-delay: .5s; }

  @supports (animation-timeline: view()) {
    .js .route-built { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw linear both; animation-timeline: --route; animation-range: entry 50% exit 50%; }
    .js .route-tip { display: block; animation: tip linear both; animation-timeline: --route; animation-range: entry 50% exit 50%; }

    .js .stop .node { animation: reach linear both; animation-timeline: view(); animation-range: cover 49% cover 50%; }
    .js .stop .node::after { animation: reach-dot linear both; animation-timeline: view(); animation-range: cover 49% cover 51%; }

    .js .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 5% entry 70%; }

    .js .st-fig .k { animation: pop linear both; animation-timeline: --fig; animation-range: entry calc(20% + var(--i, 0) * 7%) cover calc(28% + var(--i, 0) * 4%); }
    .js .st-fig .k-draw { stroke-dasharray: 1; animation-name: draw; }
    .js .st-fig .k-fade { animation-name: rise; }
    .js .st-fig .k-move { animation-name: move; }
    .js .st-fig .k-out { animation-name: fadeout; }
    .js .st-fig .k-out-down { animation-name: fadeout-down; }
  }

  /* fallback: IntersectionObserver + transitions */
  .nosda .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
  .nosda .reveal.is-in { opacity: 1; transform: none; }
  .nosda .st-fig .k { opacity: 0; transform: scale(0.6); transition: opacity .5s ease, transform .6s cubic-bezier(.2,.7,.2,1), stroke-dashoffset 1s ease; transition-delay: calc(var(--i, 0) * 110ms); }
  .nosda .st-fig .k-draw { opacity: 1; transform: none; stroke-dasharray: 1; stroke-dashoffset: 1; }
  .nosda .st-fig .k-fade { transform: translateY(14px); }
  .nosda .st-fig .k-move { opacity: 1; transform: translate(var(--dx, 0), var(--dy, 0)); }
  .nosda .st-fig .k-out, .nosda .st-fig .k-out-down { opacity: 1; transform: none; }
  .nosda .st-fig.is-in .k { opacity: 1; transform: none; stroke-dashoffset: 0; }
  .nosda .st-fig.is-in .k-out { opacity: 0; }
  .nosda .st-fig.is-in .k-out-down { opacity: 0; transform: translateY(46px); }
  .nosda .route-built { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .nosda .route-tip { display: block; }
  .nosda .stop .node { border-color: var(--line-2); transition: border-color .3s; }
  .nosda .stop .node::after { transform: scale(0); transition: transform .3s; }
  .nosda .stop .node.reached { border-color: var(--route); }
  .nosda .stop .node.reached::after { transform: none; }
}

@media print {
  .site-header nav, .site-footer, .skip-link, .route, .route-tip, .route-index { display: none; }
  body { background: #fff; color: #000; }
  h1, h2, h3, p, li, dd { color: #000 !important; }
  .sheet { box-shadow: none; padding: 0; }
}
