/* ==========================================================================
   Trainfish - shared styles (index, impressum, privacy)
   Fully self-contained: system fonts only, no external requests.
   Palette sampled from logo_x1024.png.
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Surfaces - the deep navy of the logo background */
  --bg: #040b1c;
  --surface: rgba(16, 36, 72, .42);
  --surface-strong: rgba(20, 44, 88, .55);
  --border: rgba(126, 190, 255, .13);
  --border-strong: rgba(126, 190, 255, .26);

  /* Text */
  --text: #eaf2ff;
  --text-muted: #a9b8d6;
  --text-faint: #8190b2;

  /* Brand - fish body, train highlights, eye */
  --azure: #1698f0;
  --azure-light: #39a8f1;
  --ice: #b3f6fe;
  --link: #7cc7ff;
  --ember: #f24b27;
  --online: #3ddc97;

  --radius-lg: 20px;
  --radius: 14px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --page: 1120px;
  --gutter: clamp(16px, 4vw, 32px);

  --font: "Segoe UI Variable Text", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-display: "Segoe UI Variable Display", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 96px;
  scrollbar-color: #1c3563 var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Soft ambient light: azure from above, a faint ember glow like the fish's eye */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1000px 560px at 50% -140px, rgba(22, 152, 240, .17), transparent 70%),
    radial-gradient(720px 480px at 0% 90%, rgba(22, 152, 240, .07), transparent 70%),
    radial-gradient(640px 420px at 100% 100%, rgba(242, 75, 39, .06), transparent 70%);
}

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

a { color: var(--link); }

h1, h2, h3, h4, .tagline { text-wrap: balance; }
p, li { text-wrap: pretty; }

::selection { background: rgba(242, 75, 39, .38); color: #fff; }

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

.wrap {
  width: min(100% - 2 * var(--gutter), var(--page));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--azure);
  color: #03112a;
  font-weight: 600;
  text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  view-transition-name: site-header;
  background: rgba(4, 11, 28, .72);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  backdrop-filter: saturate(150%) blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.14rem;
  letter-spacing: -.015em;
}
.brand img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  box-shadow: 0 0 0 1px var(--border-strong), 0 6px 18px -6px rgba(22, 152, 240, .6);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.brand:hover img {
  transform: rotate(-4deg) scale(1.05);
  box-shadow: 0 0 0 1px rgba(126, 190, 255, .45), 0 8px 24px -6px rgba(22, 152, 240, .8);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.top-nav a:not(.btn) {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.top-nav a:not(.btn):hover { color: var(--text); background: rgba(126, 190, 255, .08); }
.top-nav a[aria-current="page"] { color: var(--text); background: rgba(22, 152, 240, .16); }
.top-nav .btn { margin-left: 8px; }

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: .97rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(0) scale(.98); }

.btn-primary {
  color: #03112a;
  background: linear-gradient(180deg, #5cbcf8, var(--azure));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 8px 26px -8px rgba(22, 152, 240, .75);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 14px 34px -8px rgba(22, 152, 240, .95);
}

.btn-ghost {
  color: var(--text);
  background: rgba(126, 190, 255, .06);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  background: rgba(126, 190, 255, .12);
  border-color: rgba(126, 190, 255, .45);
}

.site-header .btn { min-height: 40px; padding: 8px 16px; font-size: .92rem; }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--link);
  font-weight: 600;
  text-decoration: none;
  transition: color .2s var(--ease);
}
.arrow-link svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.arrow-link:hover { color: var(--ice); }
.arrow-link:hover svg { transform: translateX(3px); }

/* ---------- Hero (index) ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
  padding: clamp(28px, 5vw, 56px) var(--gutter) clamp(48px, 7vw, 80px);
  text-align: center;
}

/* Faint server-rack grid behind the logo */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(126, 190, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 190, 255, .055) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center -1px;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 32%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 55% at 50% 32%, #000 25%, transparent 75%);
}

/* The logo artwork has an empty lower margin - pull the text up a little */
.hero-visual {
  position: relative;
  margin-bottom: calc(min(74vw, 340px) * -.1);
}

.hero-logo {
  position: relative;
  width: min(74vw, 340px);
  margin-inline: auto;
}
.hero-logo::before {
  content: "";
  position: absolute;
  inset: -4%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(22, 152, 240, .34), rgba(22, 152, 240, .1) 60%, transparent);
  animation: glow 8s ease-in-out infinite;
}
.hero-logo img {
  width: 100%;
  height: auto;
  -webkit-mask-image: radial-gradient(closest-side, #000 74%, transparent 99%);
  mask-image: radial-gradient(closest-side, #000 74%, transparent 99%);
  animation: float 8s ease-in-out infinite;
}

/* Speed streaks, like the motion lines behind the train */
.speedlines {
  position: absolute;
  top: 12%;
  bottom: 12%;
  left: 50%;
  z-index: -1;
  width: 100vw;
  transform: translateX(-50%);
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}
.speedlines span {
  position: absolute;
  left: 0;
  top: var(--y);
  width: var(--w);
  height: var(--h, 2px);
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, rgba(57, 168, 241, .75) 72%, rgba(179, 246, 254, .95));
  opacity: 0;
  animation: streak var(--t) linear var(--d) infinite;
}
.speedlines span:nth-child(1) { --y: 14%; --w: 22vw; --t: 5.6s; --d: -1.2s; --o: .55; }
.speedlines span:nth-child(2) { --y: 27%; --w: 30vw; --t: 7.2s; --d: -4.1s; --o: .35; --h: 1px; }
.speedlines span:nth-child(3) { --y: 41%; --w: 18vw; --t: 4.8s; --d: -2.6s; --o: .6; }
.speedlines span:nth-child(4) { --y: 55%; --w: 26vw; --t: 6.4s; --d: -.4s; --o: .4; }
.speedlines span:nth-child(5) { --y: 66%; --w: 34vw; --t: 8.2s; --d: -6.3s; --o: .3; --h: 1px; }
.speedlines span:nth-child(6) { --y: 78%; --w: 20vw; --t: 5.2s; --d: -3.3s; --o: .5; }
.speedlines span:nth-child(7) { --y: 21%; --w: 14vw; --t: 6.9s; --d: -5.2s; --o: .3; --h: 1px; }
.speedlines span:nth-child(8) { --y: 88%; --w: 40vw; --t: 9s; --d: -7.4s; --o: .25; --h: 1px; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin: 18px 0 0;
  padding: 6px 15px 6px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(8, 19, 41, .72);
  color: var(--text-muted);
  font-size: .86rem;
}
.status strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: .82rem;
  font-weight: 500;
}
.status-dot {
  position: relative;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--online);
  box-shadow: 0 0 10px rgba(61, 220, 151, .7);
}
.status-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--online);
  animation: ping 2.4s var(--ease) infinite;
}

.hero-title {
  width: fit-content;
  max-width: 100%;
  margin: 16px auto 10px;
  padding-inline: .06em;
  font-family: var(--font-display);
  font-size: clamp(2.9rem, 9vw, 4.9rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.04em;
  background: linear-gradient(100deg, #fff 18%, var(--ice) 52%, var(--azure-light) 88%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.tagline {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.08rem, 2.6vw, 1.3rem);
  font-weight: 600;
  letter-spacing: -.01em;
}

.hero-lead {
  max-width: 35rem;
  margin: 10px auto 0;
  color: var(--text-muted);
  font-size: 1.03rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

/* ---------- Fact cards (index) ---------- */

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: clamp(56px, 8vw, 96px);
}

.fact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(18, 40, 80, .5), rgba(9, 20, 42, .38));
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.fact:hover {
  border-color: var(--border-strong);
  box-shadow: 0 18px 40px -24px rgba(22, 152, 240, .55);
}
.fact h2 {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: 1.14rem;
  line-height: 1.3;
  letter-spacing: -.01em;
}
.fact p {
  margin: 0;
  color: var(--text-muted);
  font-size: .96rem;
  line-height: 1.6;
}
.fact-foot { margin-top: auto; padding-top: 6px; }

.icon-badge {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(22, 152, 240, .24), rgba(22, 152, 240, .1));
  box-shadow: inset 0 0 0 1px rgba(57, 168, 241, .3);
  color: var(--ice);
}
.icon-badge svg { width: 22px; height: 22px; }
.icon-badge--ember {
  background: linear-gradient(180deg, rgba(242, 75, 39, .22), rgba(242, 75, 39, .08));
  box-shadow: inset 0 0 0 1px rgba(242, 75, 39, .35);
  color: #ffb49c;
}

.mail-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}
.mail-row a {
  color: var(--link);
  font-family: var(--font-mono);
  font-size: .92rem;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.mail-row a:hover { color: var(--ice); text-decoration: underline; text-underline-offset: 3px; }

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: rgba(126, 190, 255, .06);
  color: var(--text-muted);
  font: inherit;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: color .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease);
}
.copy-btn svg { width: 14px; height: 14px; }
.copy-btn:hover { color: var(--text); background: rgba(126, 190, 255, .12); }
.copy-btn.is-copied { color: var(--online); border-color: rgba(61, 220, 151, .45); }
.copy-btn[hidden] { display: none; }

/* ---------- Legal pages ---------- */

.legal {
  max-width: 860px;
  padding-block: clamp(36px, 6vw, 72px) clamp(56px, 8vw, 96px);
}

.legal-head { margin-bottom: clamp(28px, 4vw, 40px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--azure-light);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--ember), var(--azure));
}

.legal h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5.5vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -.03em;
}
.legal h1 .h1-sub { color: var(--text-faint); font-weight: 600; }

.lede { margin: 0; color: var(--text-muted); font-size: 1.05rem; }

/* Legal notice: grid of info cards */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.info-card {
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.info-card--wide { grid-column: 1 / -1; }
.info-card h2 {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 1.04rem;
  line-height: 1.35;
  letter-spacing: -.005em;
}
.info-card h2::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: calc((1.35em - 8px) / 2);
  border-radius: 2px;
  background: linear-gradient(135deg, var(--ice), var(--azure));
  box-shadow: 0 0 10px rgba(22, 152, 240, .7);
}
.info-card p,
.info-card address {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-style: normal;
}
.info-card > :last-child { margin-bottom: 0; }
.info-card .name { color: var(--text); font-size: 1.12rem; font-weight: 650; }
.info-card .value {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 1.05rem;
  letter-spacing: .02em;
}
.info-card .label {
  margin-bottom: 2px;
  color: var(--text-faint);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.provider {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px 32px;
  align-items: start;
}
.provider h2 { grid-column: 1 / -1; }
.provider .note {
  padding: 14px 16px;
  border-radius: var(--radius);
  background: rgba(22, 152, 240, .08);
  border: 1px solid rgba(57, 168, 241, .2);
  color: var(--text-muted);
  font-size: .95rem;
}
.provider .note strong { color: var(--text); }

.kv { display: grid; gap: 10px; margin: 0 0 12px; }
.kv:last-child { margin-bottom: 0; }
.kv div {
  display: grid;
  grid-template-columns: 5.25rem minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
}
.kv dt {
  color: var(--text-faint);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.kv dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }

/* Privacy policy: long-form text */
.toc {
  margin: 0 0 8px;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.toc-title {
  margin: 0 0 8px;
  color: var(--text-faint);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.toc ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}
.toc li { counter-increment: toc; }
/* "li > a" outranks the ".prose a" link styling below */
.toc li > a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-inline: -10px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.toc li > a::before {
  content: counter(toc) ".";
  min-width: 1.3em;
  color: var(--azure-light);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.toc li > a:hover { background: rgba(126, 190, 255, .08); color: var(--ice); }

.prose h2 {
  margin: 56px 0 18px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.2vw, 1.7rem);
  line-height: 1.25;
  letter-spacing: -.02em;
}
.prose h2 .num { margin-right: .3em; color: var(--azure-light); }
.prose h3 {
  margin: 36px 0 10px;
  font-size: 1.14rem;
  line-height: 1.35;
  letter-spacing: -.005em;
}
.prose h4 {
  margin: 24px 0 6px;
  color: var(--ice);
  font-size: 1rem;
  font-weight: 600;
}
.prose p, .prose li { color: var(--text-muted); }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 16px; padding-left: 1.25rem; }
.prose li { margin: 6px 0; padding-left: .2rem; }
.prose li::marker { color: var(--azure-light); }
.prose strong { color: var(--text); }

.address-card {
  margin: 14px 0 18px;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--azure);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-style: normal;
}

.callout {
  margin: 16px 0;
  padding: 20px 22px;
  border: 1px solid rgba(242, 75, 39, .32);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(242, 75, 39, .1), rgba(242, 75, 39, .04));
}
.callout p { color: var(--text); }
.callout p:last-child { margin-bottom: 0; }

/* Inline links inside legal text */
.prose a,
.info-card a,
.address-card a,
.provider .note a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: rgba(124, 199, 255, .4);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
  transition: color .2s var(--ease), text-decoration-color .2s var(--ease);
}
.prose a:hover,
.info-card a:hover,
.address-card a:hover,
.provider .note a:hover { color: var(--ice); text-decoration-color: currentColor; }

/* ---------- Footer ---------- */

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: rgba(4, 11, 28, .6);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 22px;
  color: var(--text-faint);
  font-size: .9rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color .2s var(--ease);
}
.footer-links a:hover { color: var(--text); }

/* ---------- Motion ---------- */

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes glow {
  0%, 100% { opacity: .75; transform: scale(.97); }
  50% { opacity: 1; transform: scale(1.03); }
}
@keyframes streak {
  0% { transform: translateX(-100%); opacity: 0; }
  12% { opacity: var(--o, .5); }
  88% { opacity: var(--o, .5); }
  100% { transform: translateX(100vw); opacity: 0; }
}
@keyframes ping {
  0% { transform: scale(1); opacity: .7; }
  80%, 100% { transform: scale(2.8); opacity: 0; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

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

  .hero > * { animation: rise .9s var(--ease) both; }
  .hero > :nth-child(2) { animation-delay: .12s; }
  .hero > :nth-child(3) { animation-delay: .2s; }
  .hero > :nth-child(4) { animation-delay: .28s; }
  .hero > :nth-child(5) { animation-delay: .36s; }
  .hero > :nth-child(6) { animation-delay: .44s; }
  .fact { animation: rise .9s var(--ease) both; }
  .fact:nth-child(1) { animation-delay: .5s; }
  .fact:nth-child(2) { animation-delay: .58s; }
  .fact:nth-child(3) { animation-delay: .66s; }
}

/* Smooth cross-fade between pages (Chromium, Safari 18.2+) */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: .32s;
  animation-timing-function: var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .speedlines { display: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .facts { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 700px) {
  .info-grid,
  .provider,
  .toc ol { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .header-inner { min-height: 60px; gap: 10px; }
  .top-nav { gap: 0; }
  .top-nav a:not(.btn) { padding: 8px 9px; font-size: .9rem; }
  .top-nav .btn { margin-left: 4px; }
  .site-header .btn { width: 40px; height: 40px; min-height: 0; padding: 0; }
  .site-header .btn-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .brand { gap: 9px; font-size: 1.06rem; }
  .brand img { width: 34px; height: 34px; border-radius: 10px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 370px) {
  .brand-name {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/* ---------- Accessibility modes & print ---------- */

@media (forced-colors: active) {
  .hero-title { background: none; color: CanvasText; -webkit-text-fill-color: CanvasText; }
  .btn { border-color: ButtonText; }
}

@media print {
  body::before,
  .site-header,
  .skip-link,
  .copy-btn,
  .speedlines { display: none !important; }
  *, *::before, *::after {
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
    background: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  .info-card, .toc, .address-card, .callout, .site-footer { border-color: #bbb !important; }
}
