/* ============================================================
   DeepSky / Digital observatory
   Design foundation — compatible with the existing HTML.
   Orbital illustrations are decorative CSS, not a sky simulation.
   ============================================================ */

:root {
  color-scheme: dark;
  --bg: #060a10;
  --bg-2: #0a111c;
  --bg-3: #101c2b;
  --navy: #1b2c4d;
  --line: rgba(172, 196, 227, .14);
  --line-strong: rgba(172, 196, 227, .28);
  --text: #f0f3f7;
  --muted: #a0adbf;
  --dim: #8593a8;
  --accent: #a9d4f5;
  --accent-2: #d3e7f6;
  --star: #eaf1ff;
  --glow: rgba(110, 168, 255, .18);
  --warm: #d9bd8c;
  --radius: 18px;
  --maxw: 1280px;
  --gutter: clamp(22px, 4.5vw, 64px);
  --header-h: 88px;
  --font-body: 'Exo 2', system-ui, sans-serif;
  --font-display: 'Space Grotesk', 'Exo 2', sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Foundation ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  position: relative;
  isolation: isolate;
  min-width: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  text-wrap: balance;
}
p { text-wrap: pretty; }
img, svg { display: block; max-width: 100%; }
::selection { background: #a9d4f5; color: #060a10; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap > *, .feature-grid > *, .tile-grid > * { min-width: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }

/* A visible, static background remains when motion is disabled. */
#starfield {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .48;
  background:
    radial-gradient(1px 1px at 16% 24%, #eaf1ff 70%, transparent),
    radial-gradient(1px 1px at 76% 14%, #eaf1ff 70%, transparent),
    radial-gradient(1px 1px at 48% 68%, #a9d4f5 70%, transparent),
    radial-gradient(1px 1px at 87% 79%, #eaf1ff 70%, transparent),
    radial-gradient(ellipse at 85% 12%, #152e48 0%, transparent 55%);
}

/* ---------- Controls ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
  transition: background .25s var(--ease), border-color .25s var(--ease),
    box-shadow .25s var(--ease), transform .25s var(--ease), color .25s var(--ease);
}
.btn-lg { min-height: 56px; padding: 16px 26px; font-size: 16px; }
.btn-primary {
  color: #102132;
  background: #c9e4f7;
  border-color: #d8edfc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 4px 24px rgba(125, 187, 231, .08);
}
.btn-primary::after {
  content: '';
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  background: currentColor;
  clip-path: polygon(0 44%, 75% 44%, 43% 12%, 51% 4%, 98% 50%, 51% 96%, 43% 88%, 75% 56%, 0 56%);
  transition: transform .25s var(--ease);
}
.btn-ghost { background: rgba(6, 10, 16, .4); color: var(--text); border-color: var(--line-strong); }

/* ---------- Navigation / existing logo preserved ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 10, 16, .88);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark { display: inline-flex; }
.bm-disc { fill: var(--navy); }
.bm-orbit { fill: none; stroke: var(--star); stroke-width: 1.6; opacity: .9; }
.bm-core { fill: var(--star); }
.brand-text b {
  display: block;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 3px;
  line-height: 1.4;
}
.brand-text i { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; font-style: normal; letter-spacing: 2.4px; }
#nav ul { display: flex; gap: clamp(18px, 2.2vw, 32px); list-style: none; }
#nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 13px; white-space: nowrap; transition: color .2s; }
#nav a::after { content: ''; position: absolute; inset: auto 0 3px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.btn-nav { flex-shrink: 0; min-height: 42px; padding: 10px 17px; font-size: 13px; gap: 16px; }
.burger { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 7px; background: transparent; cursor: pointer; }
.burger span { width: 20px; height: 1px; background: var(--text); transition: transform .25s, opacity .25s; }
.burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero / orbital study, drawn without assets ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 760px;
  padding: clamp(104px, 11vw, 164px) 0 132px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(6, 10, 16, .9), rgba(6, 10, 16, .2) 72%),
    radial-gradient(ellipse at 82% 48%, rgba(44, 84, 128, .22), transparent 62%);
}
/* Radial tracks, fine measuring ticks, and a handful of fixed stars. */
.hero::before {
  content: '';
  position: absolute;
  z-index: -2;
  top: 28px;
  left: calc(50% + 88px);
  width: 720px;
  height: 720px;
  border: 1px solid rgba(169, 212, 245, .12);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 5.5%, #dcefff 0 2px, transparent 3px),
    radial-gradient(circle at 19% 82%, #d9bd8c 0 2px, transparent 4px),
    radial-gradient(circle at 87% 68%, #a9d4f5 0 2px, transparent 3px),
    linear-gradient(transparent calc(50% - .5px), rgba(169, 212, 245, .12) 50%, transparent calc(50% + .5px)),
    linear-gradient(90deg, transparent calc(50% - .5px), rgba(169, 212, 245, .12) 50%, transparent calc(50% + .5px)),
    repeating-radial-gradient(circle, transparent 0 88px, rgba(169, 212, 245, .12) 89px, transparent 90px 118px);
  box-shadow: 0 0 0 36px rgba(169, 212, 245, .015), 0 0 0 37px rgba(169, 212, 245, .06);
  transform: rotate(-22deg);
  pointer-events: none;
}
/* A quiet crescent: a compositional object, not a product screenshot. */
.hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  top: 213px;
  left: calc(50% + 273px);
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 31% 65%, #070c14 40%, rgba(10, 19, 32, .96) 62%, transparent 75%),
    radial-gradient(circle at 80% 23%, #e4f3ff 0%, #82b3d3 18%, #254561 42%, #0b1827 70%);
  box-shadow: 16px -10px 46px -27px rgba(172, 218, 255, .6), inset -1px 1px 2px rgba(208, 232, 255, .6);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; }
.eyebrow, .sec-label, .tile-date {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .23em;
  line-height: 1.7;
  text-transform: uppercase;
}
.eyebrow { display: inline-flex; align-items: center; gap: 13px; margin-bottom: 32px; color: var(--accent); }
.eyebrow::before { content: ''; width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; background: var(--warm); box-shadow: 0 0 14px rgba(217, 189, 140, .25); }
.hero h1 { max-width: 870px; margin-bottom: 30px; font-size: clamp(48px, 6.1vw, 86px); line-height: 1.05; letter-spacing: -.055em; }
.grad { color: var(--accent); }
.hero h1 .grad { background: linear-gradient(110deg, #e0edf8 5%, #9fc3e0 65%, #7194b8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { max-width: 550px; margin: 0 0 36px; color: var(--muted); font-size: clamp(16px, 1.5vw, 18px); line-height: 1.85; }
.hero-cta { display: flex; justify-content: flex-start; flex-wrap: wrap; gap: 12px; }
.hero-fade { position: absolute; z-index: 1; inset: 0; pointer-events: none; background: linear-gradient(0deg, var(--bg), transparent 22%), linear-gradient(90deg, rgba(6, 10, 16, .28), transparent 75%); }
.hero-fade::after { content: ''; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 38px; height: 5px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 20px); opacity: .5; }

/* ---------- Section rhythm ---------- */
.section { position: relative; padding-block: clamp(80px, 9vw, 128px); }
.section-alt { background: rgba(11, 18, 28, .82); border-block: 1px solid var(--line); }
.sec-label { display: block; margin-bottom: 20px; color: var(--accent); }
.sec-head { max-width: 770px; margin: 0 0 52px; text-align: left; }
.sec-head h2 { margin-bottom: 20px; font-size: clamp(32px, 3.8vw, 52px); letter-spacing: -.04em; }
.sec-sub { max-width: 540px; color: var(--muted); font-size: 17px; }

/* ---------- About / an illustrated specimen card ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: clamp(48px, 7vw, 100px); }
.about-copy h2 { max-width: 540px; margin-bottom: 26px; font-size: clamp(32px, 3.6vw, 48px); letter-spacing: -.04em; }
.about-copy p { margin-bottom: 18px; color: var(--muted); font-size: 16px; }
.about-copy p:last-child { margin-bottom: 0; }
.about-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 220px 30px 28px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    radial-gradient(1px 1px at 18% 14%, #a9d4f5 80%, transparent),
    radial-gradient(1px 1px at 78% 32%, #a9d4f5 80%, transparent),
    radial-gradient(1px 1px at 86% 10%, #a9d4f5 80%, transparent),
    linear-gradient(155deg, #101f30, #0a111b 62%);
  box-shadow: 0 24px 64px -32px rgba(0, 0, 0, .65);
}
.about-panel::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 22px;
  left: 10%;
  width: 80%;
  height: 175px;
  border-radius: 50%;
  background:
    radial-gradient(ellipse, rgba(255, 239, 208, .94) 0%, rgba(213, 203, 183, .6) 3%, rgba(126, 162, 193, .38) 11%, transparent 49%),
    repeating-radial-gradient(ellipse, transparent 0 12px, rgba(158, 185, 211, .14) 14px, transparent 19px 28px);
  transform: rotate(-24deg) scaleY(.6);
  box-shadow: 0 0 50px rgba(138, 181, 220, .05);
}
.about-panel::after { content: ''; position: absolute; z-index: -1; top: 36px; left: calc(50% - 78px); width: 156px; height: 156px; border: 1px solid rgba(169, 212, 245, .16); border-radius: 50%; background: linear-gradient(transparent calc(50% - .5px), var(--line) 50%, transparent calc(50% + .5px)), linear-gradient(90deg, transparent calc(50% - .5px), var(--line) 50%, transparent calc(50% + .5px)); }
.panel-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.panel-row .k { color: var(--muted); }
.panel-row .v { color: var(--text); text-align: right; }
.panel-row:first-child .v { color: var(--accent); font-weight: 500; }
.panel-bars { display: flex; gap: 6px; margin-top: 24px; }
.panel-bars i { flex: 1; height: 3px; background: var(--line); }
.panel-bars i.on { background: #9cbbd3; }

/* ---------- Features / asymmetric editorial grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 250px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(23, 39, 58, .55), rgba(10, 17, 27, .78));
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.feature:first-child { grid-column: span 2; }
.feature:last-child { grid-column: 1 / -1; min-height: 0; }
.feature:first-child { min-height: 280px; padding-right: 28%; }
.feature:first-child::after { content: ''; position: absolute; z-index: -1; width: 270px; height: 270px; top: 5px; right: -100px; border-radius: 50%; border: 1px solid var(--line); background: radial-gradient(circle at 50% 15%, var(--accent) 0 2px, transparent 3px), repeating-radial-gradient(circle, transparent 0 34px, rgba(169, 212, 245, .15) 35px, transparent 36px 57px); transform: rotate(20deg); }
.feature:last-child { background: radial-gradient(ellipse at 100% 100%, rgba(39, 75, 99, .24), transparent 75%), #0c1520; }
.feat-ico { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin-bottom: 28px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--accent); font-size: 21px; line-height: 1; }
.feature h3 { max-width: 400px; margin-bottom: 12px; font-size: 22px; letter-spacing: -.025em; }
.feature p { max-width: 460px; color: var(--muted); font-size: 15px; line-height: 1.8; }

/* ---------- Catalog / a single data strip, not four cards ---------- */
#catalog { background: linear-gradient(130deg, rgba(16, 29, 44, .3), transparent 65%); }
#catalog .sec-head { max-width: 760px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line-strong); }
.stat { position: relative; min-width: 0; padding: 42px 24px; border-right: 1px solid var(--line); }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat-num { color: var(--text); font-family: var(--font-display); font-weight: 400; font-size: clamp(32px, 3.5vw, 49px); font-variant-numeric: tabular-nums; letter-spacing: -.065em; line-height: 1.15; white-space: nowrap; }
.stat-lbl { max-width: 170px; margin-top: 14px; color: var(--muted); font-size: 13px; line-height: 1.6; }

/* ---------- Platforms / restrained availability panel ---------- */
#platforms { background: radial-gradient(ellipse at 50% 0%, rgba(57, 91, 122, .15), transparent 70%), #0a111b; }
#platforms .sec-head { max-width: 760px; margin-inline: auto; text-align: center; }
#platforms .sec-sub { margin-inline: auto; }
.platform-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.platform { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 208px; padding: 28px 18px; border: 1px solid var(--line); border-radius: 12px; background: rgba(6, 10, 16, .28); text-align: center; }
.pf-ico { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: #a8bed1; font-size: 31px; line-height: 1; filter: grayscale(1); }
.pf-name { font-family: var(--font-display); font-size: 17px; font-weight: 500; }
.pf-tag, .soon-badge { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-size: 10px; line-height: 1.6; letter-spacing: .05em; }
.pf-tag::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--warm); }

/* Активная (кликабельная) платформа — веб-версия */
a.platform-live { cursor: pointer; transition: transform .2s, border-color .2s, box-shadow .2s; }
a.platform-live:hover { transform: translateY(-4px); border-color: rgba(110, 168, 255, .45); box-shadow: 0 24px 50px -26px rgba(110, 168, 255, .35); }
a.platform-live .pf-ico { color: var(--accent, #6ea8ff); filter: none; }
.pf-tag-live { color: #cfe4ff; border-color: rgba(110, 168, 255, .4); }
.pf-tag-live::before { background: #6ea8ff; }

/* ---------- Inner pages ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: 100px 0 76px; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 80% 25%, rgba(53, 89, 125, .15), transparent 65%); }
.page-hero::after { content: ''; position: absolute; z-index: -1; top: -200px; right: -160px; width: 660px; height: 660px; border-radius: 50%; border: 1px solid var(--line); box-shadow: 0 0 0 64px rgba(169, 212, 245, .025), 0 0 0 65px rgba(169, 212, 245, .06), 0 0 0 145px rgba(169, 212, 245, .02); pointer-events: none; }
.page-hero h1 { max-width: 100%; margin-bottom: 26px; font-size: clamp(34px, 5.5vw, 72px); letter-spacing: -.05em; overflow-wrap: anywhere; }
.page-hero .lead { max-width: 610px; color: var(--muted); font-size: 18px; line-height: 1.85; }
.prose { max-width: 860px; }
.prose .sec-label { margin-top: 60px; padding-top: 36px; border-top: 1px solid var(--line); }
.prose .sec-label:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h2 { margin-bottom: 22px; font-size: clamp(27px, 3.2vw, 38px); letter-spacing: -.035em; }
.prose p, .prose ul { margin-bottom: 20px; color: var(--muted); font-size: 17px; line-height: 1.9; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 10px; }
.prose a, .tile p a { color: var(--accent); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 5px; overflow-wrap: anywhere; }
.tile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tile { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, #101c2a, #0a111b); transition: border-color .25s var(--ease); }
.tile .tile-date { margin-bottom: 32px; color: var(--warm); }
.tile h3 { margin-bottom: 14px; font-size: 24px; letter-spacing: -.025em; }
.tile p { color: var(--muted); font-size: 15px; line-height: 1.8; }
.soon-badge { margin-top: 22px; }
.notice { max-width: 760px; margin: 40px auto 0; padding: 22px 26px; border-left: 2px solid #8eaec8; color: var(--muted); background: rgba(169, 212, 245, .035); font-size: 14px; }

/* ---------- Footer ---------- */
.site-footer { padding: 72px 0 26px; border-top: 1px solid var(--line); background: rgba(6, 10, 16, .95); }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 64px; }
.footer-brand { display: flex; flex-direction: column; gap: 20px; }
.footer-brand p { max-width: 290px; color: var(--muted); font-size: 14px; line-height: 1.85; }
.footer-col h5 { margin-bottom: 20px; color: var(--text); font-family: var(--font-body); font-size: 10px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { display: inline-block; padding-block: 4px; color: var(--muted); font-size: 13px; transition: color .2s; }
.footer-col .soon { color: var(--dim); font-size: 13px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--dim); font-size: 11px; letter-spacing: .03em; }
.footer-note { color: var(--dim); }

/* Hover is an enhancement, never a prerequisite on touch screens. */
@media (hover: hover) {
  .btn-primary:hover { background: #e1f0fc; border-color: #e1f0fc; box-shadow: 0 8px 32px rgba(125, 187, 231, .15); transform: translateY(-2px); }
  .btn-primary:hover::after { transform: translateX(3px); }
  .btn-ghost:hover { background: rgba(169, 212, 245, .07); border-color: #829ab0; }
  #nav a:hover, .footer-col a:hover { color: var(--text); }
  #nav a:hover::after { transform: scaleX(1); }
  .feature:hover, .tile:hover { border-color: var(--line-strong); }
  .prose a:hover, .tile p a:hover { text-decoration-color: var(--accent); }
}

/* ---------- Responsive compositions ---------- */
@media (min-width: 1600px) {
  .hero::before { left: calc(50% + 110px); }
  .hero::after { left: calc(50% + 295px); }
}
@media (max-width: 1100px) {
  :root { --header-h: 76px; }
  .nav { gap: 16px; }
  #nav ul { gap: 18px; }
  #nav a { font-size: 12px; }
  .brand-text b { font-size: 17px; }
  .brand-text i { font-size: 7px; letter-spacing: 2px; }
  .btn-nav { gap: 10px; padding-inline: 12px; font-size: 12px; }
  .hero { min-height: 700px; }
  .hero::before { left: 56%; opacity: .7; }
  .hero::after { left: calc(56% + 185px); opacity: .8; }
  .feature { padding: 26px; }
  .feature:first-child { padding-right: 23%; }
  .tile { padding: 26px; }
  .footer-grid { gap: 26px; }
}
@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .nav { gap: 12px; }
  .brand-text b { font-size: 19px; }
  .brand-text i { font-size: 8px; letter-spacing: 2.4px; }
  #nav { margin-left: auto; }
  #nav ul { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; max-height: calc(100dvh - var(--header-h)); overflow-y: auto; flex-direction: column; gap: 0; padding: 14px var(--gutter) 22px; border-bottom: 1px solid var(--line-strong); background: #0a111b; box-shadow: 0 24px 40px rgba(0, 0, 0, .3); }
  #nav.open ul { display: flex; }
  #nav li + li { border-top: 1px solid var(--line); }
  #nav a { display: flex; padding-block: 16px; font-size: 16px; }
  #nav a::after { display: none; }
  .btn-nav { display: none; }
  .burger { display: flex; }
  .hero { min-height: 690px; padding-top: 112px; }
  .hero h1 { max-width: 690px; font-size: clamp(50px, 7.8vw, 70px); }
  .hero::before { left: 52%; opacity: .45; }
  .hero::after { left: calc(52% + 185px); opacity: .45; }
  .hero .lead { max-width: 510px; }
  .about-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .about-panel { padding-inline: 22px; }
  .panel-row { flex-wrap: wrap; gap: 4px 12px; }
  .panel-row .v { margin-left: auto; }
  .feature-grid, .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature:first-child, .feature:last-child { grid-column: auto; }
  .feature:first-child { min-height: 250px; padding-right: 26px; }
  .feature:first-child::after { opacity: .4; right: -190px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 30px; }
  .stat:first-child { padding-left: 30px; }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .stat-num { font-size: 46px; }
  .platform-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.4fr 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  .hero { min-height: auto; padding: 70px 0 246px; }
  .hero-inner { z-index: 2; }
  .hero h1 { max-width: 540px; margin-bottom: 24px; font-size: clamp(42px, 8.4vw, 54px); line-height: 1.1; letter-spacing: -.045em; }
  .eyebrow { margin-bottom: 26px; font-size: 9px; letter-spacing: .19em; }
  .hero .lead { max-width: 470px; margin-bottom: 28px; font-size: 15px; line-height: 1.85; }
  .hero-cta { gap: 10px; }
  .btn-lg { min-height: 52px; padding: 14px 20px; font-size: 14px; gap: 16px; }
  /* Move the illustration below the copy rather than behind it. */
  .hero::before { width: 420px; height: 420px; top: auto; bottom: -204px; left: calc(50% - 130px); opacity: .75; }
  .hero::after { width: 190px; height: 190px; top: auto; bottom: -80px; left: calc(50% - 15px); opacity: 1; }
  .hero-fade { background: linear-gradient(0deg, var(--bg), transparent 14%); }
  .hero-fade::after { bottom: 25px; }
  .section { padding-block: 72px; }
  .sec-head { margin-bottom: 34px; }
  .sec-head h2 { font-size: 34px; }
  .sec-label { margin-bottom: 16px; font-size: 9px; }
  .sec-sub { font-size: 15px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-copy h2 { font-size: 34px; }
  .about-copy p { font-size: 15px; }
  .about-panel { padding: 215px 24px 26px; }
  .feature-grid, .tile-grid { grid-template-columns: 1fr; gap: 12px; }
  .feature, .feature:first-child { min-height: 0; padding: 28px; }
  .feature:first-child::after { right: -150px; }
  .feat-ico { margin-bottom: 22px; }
  .feature h3 { font-size: 23px; }
  .feature p { font-size: 14px; }
  .stat, .stat:first-child { padding: 28px 18px; }
  .stat-num { font-size: clamp(29px, 7.5vw, 44px); }
  .stat-lbl { font-size: 12px; }
  .platform-grid { gap: 10px; }
  .platform { min-height: 188px; padding: 24px 12px; }
  .pf-name { font-size: 16px; }
  .pf-tag { font-size: 9px; }
  .page-hero { padding: 66px 0 52px; }
  .page-hero h1 { font-size: clamp(29px, 6.7vw, 44px); }
  .page-hero .lead { font-size: 16px; }
  .page-hero::after { right: -440px; opacity: .7; }
  .prose p, .prose ul { font-size: 16px; }
  .prose .sec-label { margin-top: 40px; padding-top: 28px; }
  .tile { padding: 28px; }
  .tile .tile-date { margin-bottom: 24px; }
  .notice { margin-top: 28px; padding: 18px 20px; font-size: 13px; }
  .site-footer { padding-top: 52px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 22px; margin-bottom: 40px; }
  .footer-brand { grid-column: 1 / -1; flex-direction: row; align-items: flex-start; gap: 18px; }
  .footer-brand .brand-mark { flex-shrink: 0; }
  .footer-brand p { max-width: 350px; font-size: 13px; }
  .footer-col h5 { margin-bottom: 12px; }
  .footer-col a { padding-block: 8px; }
  .footer-col li { margin-bottom: 4px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; font-size: 10px; }
}
@media (max-width: 359px) {
  .brand { gap: 8px; }
  .brand-text b { font-size: 17px; }
  .brand-text i { font-size: 7px; }
  .hero h1 { font-size: 39px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .platform { padding-inline: 8px; }
  .pf-tag { letter-spacing: 0; }
}

/* ---------- Accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
@media (forced-colors: active) {
  .hero h1 .grad { background: none; color: CanvasText; }
  .hero::before, .hero::after, .hero-fade, .about-panel::before, .about-panel::after, .page-hero::after, .feature::after { display: none; }
  .about-panel { padding-top: 28px; }
  .btn, .feature, .tile, .platform, .about-panel { border: 1px solid CanvasText; }
  .btn-primary::after { background: ButtonText; }
}