/* ==========================================================================
   RLPlayer for macOS — official site
   Apple White system: porcelain, cloud gray, glacial glass, bento.
   No frameworks. No remote assets. Light scheme only.
   ========================================================================== */

/* 1. Tokens ----------------------------------------------------------------- */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --bg-soft-2: #fbfbfd;
  --ink: #1d1d1f;
  --ink-2: #3a3a3c;
  --muted: #6e6e73;
  --muted-2: #75757a;
  --hairline: rgba(0, 0, 0, 0.09);
  --hairline-strong: rgba(0, 0, 0, 0.14);
  --accent: #18181b;
  --accent-hover: #27272a;
  --accent-ink: #18181b;
  --accent-soft: rgba(24, 24, 27, 0.06);
  --glacier: #ececef;
  --glacier-2: #f5f5f7;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px -16px rgba(20, 30, 50, 0.18);
  --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.04), 0 24px 60px -28px rgba(20, 30, 50, 0.28);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.05), 0 48px 120px -40px rgba(20, 30, 50, 0.32);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "SF Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --header-h: 52px;
  --wrap: 1180px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. Reset / base ------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

h1, h2, h3, h4, p, figure, blockquote { margin: 0; }

h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { max-width: 100%; }
img { height: auto; }

a {
  color: var(--accent-ink);
  text-decoration: none;
}

a:hover { text-decoration: underline; text-underline-offset: 2px; }

button { font: inherit; color: inherit; }

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 5px;
  padding: 0.1em 0.36em;
}

::selection { background: rgba(217, 45, 62, 0.16); }

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

section { scroll-margin-top: calc(var(--header-h) + 18px); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 32px);
}

.section { padding-block: clamp(84px, 10vw, 148px); position: relative; }

.mono { font-family: var(--mono); }

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease-out);
}
.skip-link:focus { transform: translateY(0); text-decoration: none; }

/* 3. Scroll progress --------------------------------------------------------- */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 300;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, #18181b, #d92d3e);
}

/* 4. Buttons ----------------------------------------------------------------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 22px;
  border: 1px solid var(--btn-border);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s var(--ease-out),
    box-shadow 0.25s ease, border-color 0.25s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }

.btn--primary {
  --btn-bg: var(--accent);
  --btn-fg: #fff;
  box-shadow: 0 1px 2px rgba(0, 80, 180, 0.18), 0 10px 26px -12px rgba(24, 24, 27, 0.55);
}
.btn--primary:hover { --btn-bg: var(--accent-hover); }

.btn--ghost {
  --btn-border: var(--hairline-strong);
  --btn-fg: var(--ink);
  --btn-bg: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn--ghost:hover { --btn-bg: #fff; border-color: rgba(0, 0, 0, 0.22); }

.btn--large { min-height: 52px; padding: 13px 28px; font-size: 17px; }
.btn--compact { min-height: 32px; padding: 5px 14px; font-size: 13px; }

.btn__version {
  font-family: var(--mono);
  font-size: 0.82em;
  font-weight: 600;
  opacity: 0.78;
}

.btn__meta {
  font-family: var(--mono);
  font-size: 0.76em;
  font-weight: 500;
  opacity: 0.78;
  padding-left: 2px;
}

.btn__meta::before { content: "·"; margin-right: 6px; opacity: 0.6; }

/* 5. Header / navigation ----------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.86);
  border-bottom-color: var(--hairline);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

.header-inner {
  max-width: var(--wrap);
  margin-inline: auto;
  height: var(--header-h);
  padding-inline: clamp(16px, 3vw, 28px);
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  flex: 0 0 auto;
}
.brand:hover { text-decoration: none; }
.brand__logo {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: block;
}
.brand__name { font-weight: 600; font-size: 15px; letter-spacing: -0.02em; }
.brand__sub {
  font-size: 11px;
  color: var(--muted-2);
  font-weight: 500;
  letter-spacing: 0.01em;
  transform: translateY(1px);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.8vw, 26px);
  margin-inline: auto;
}
.site-nav__link {
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  padding: 6px 0;
  position: relative;
  transition: color 0.2s ease;
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: 50% 50%;
  transition: transform 0.3s var(--ease-out);
}
.site-nav__link:hover { color: var(--ink); text-decoration: none; }
.site-nav__link:hover::after,
.site-nav__link.is-active::after { transform: scaleX(1); }
.site-nav__link.is-active { color: var(--ink); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.ghost-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-2);
  padding: 6px 8px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}
.ghost-link:hover { color: var(--ink); background: rgba(0, 0, 0, 0.04); text-decoration: none; }
.ghost-link .icon { opacity: 0.8; }

.icon { display: block; fill: currentColor; }

.nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle:hover { background: rgba(0, 0, 0, 0.05); }

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 17px;
  height: 11px;
}
.nav-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease-out), top 0.3s var(--ease-out), opacity 0.2s ease;
}
.nav-toggle__bars span:first-child { top: 0; }
.nav-toggle__bars span:last-child { top: 9.5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:first-child {
  top: 4.75px;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:last-child {
  top: 4.75px;
  transform: rotate(-45deg);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  padding: 12px 20px 32px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid var(--hairline);
  box-shadow: 0 30px 60px -30px rgba(20, 30, 50, 0.3);
}
.mobile-nav[hidden] { display: none; }
@starting-style {
  .mobile-nav { opacity: 0; transform: translateY(-8px); }
}
.mobile-nav { transition: opacity 0.24s ease, transform 0.24s var(--ease-out); }

.mobile-nav nav { display: grid; }
.mobile-nav nav a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 15px 2px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  border-bottom: 1px solid var(--hairline);
}
.mobile-nav nav a:hover { text-decoration: none; color: var(--accent); }
.mobile-nav nav a span {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--muted-2);
}
.mobile-nav__secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 18px 2px 20px;
}
.mobile-nav__secondary a { font-size: 13px; color: var(--muted); }
.mobile-nav__download { width: 100%; }

/* 6. Typography blocks ------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 18px;
}
.eyebrow--hero { color: var(--muted); text-transform: none; letter-spacing: 0.01em; font-weight: 500; }
.eyebrow--now { color: var(--muted); text-transform: none; letter-spacing: 0.02em; }
.eyebrow--vision { color: #a35b00; }

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34c759;
  box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.16);
  flex: 0 0 auto;
  animation: dotPulse 2.6s ease-in-out infinite;
}
.status-dot--now { background: var(--accent); box-shadow: 0 0 0 3px rgba(24, 24, 27, 0.14); }

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.16); }
  50% { box-shadow: 0 0 0 6px rgba(52, 199, 89, 0.05); }
}

.section-head { max-width: 860px; margin: 0 auto clamp(44px, 6vw, 72px); text-align: center; }
.section-head--left { margin-inline: 0; text-align: left; max-width: 780px; }

.section-head h2 {
  font-size: clamp(2.1rem, 4.6vw, 3.55rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 600;
}

.section-lede {
  margin-top: 18px;
  font-size: clamp(1.02rem, 1.35vw, 1.18rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 64ch;
}
.section-head:not(.section-head--left) .section-lede { margin-inline: auto; }

/* 7. Hero -------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(64px, 9vw, 118px));
  padding-bottom: clamp(48px, 7vw, 88px);
  overflow: clip;
  background:
    radial-gradient(120% 80% at 50% -10%, #ffffff 0%, #fbfdff 38%, #f6f9fc 66%, #ffffff 100%);
}

.hero__glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 780px;
  pointer-events: none;
  background:
    radial-gradient(38% 42% at 28% 18%, rgba(161, 161, 170, 0.28), transparent 65%),
    radial-gradient(34% 38% at 74% 10%, rgba(24, 24, 27, 0.14), transparent 68%),
    radial-gradient(30% 30% at 50% 46%, rgba(255, 255, 255, 0.9), transparent 70%);
  filter: blur(24px);
  animation: glowDrift 22s ease-in-out infinite alternate;
}

@keyframes glowDrift {
  from { transform: translate3d(-1.5%, 0, 0) scale(1); }
  to { transform: translate3d(1.5%, 2%, 0) scale(1.05); }
}

.hero__inner {
  position: relative;
  text-align: center;
  padding-inline: clamp(20px, 4vw, 32px);
}

.hero__title {
  font-size: clamp(2.35rem, 7.6vw, 6.1rem);
  line-height: 0.99;
  letter-spacing: -0.045em;
  font-weight: 650;
  margin-inline: auto;
  max-width: 14ch;
}

.hero__title-accent {
  background: linear-gradient(180deg, #1d1d1f 10%, #4b4b52 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lede {
  margin: clamp(24px, 3vw, 34px) auto 0;
  max-width: 62ch;
  font-size: clamp(1.06rem, 1.6vw, 1.32rem);
  line-height: 1.6;
  color: var(--muted);
  letter-spacing: -0.012em;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: clamp(30px, 3.4vw, 42px);
}

.hero__specs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 0;
  margin-top: 26px;
  color: var(--muted-2);
  font-size: 13px;
}
.hero__specs li {
  display: inline-flex;
  align-items: center;
}
.hero__specs li + li::before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
  margin: 0 14px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 760px;
  margin: 34px auto 0;
  padding-top: 26px;
  border-top: 1px solid var(--hairline);
}
.hero__stats > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}
.hero__stats dd {
  margin: 0;
  order: 1;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}
.hero__stats dd span {
  font-size: 0.55em;
  font-weight: 600;
  color: var(--muted-2);
  letter-spacing: 0;
}
.hero__stats dt {
  order: 2;
  font-size: 11.5px;
  color: var(--muted-2);
  letter-spacing: 0.01em;
}

.hero-shot {
  position: relative;
  margin: clamp(46px, 6vw, 78px) auto 0;
  max-width: calc(var(--wrap) + 40px);
  padding-inline: clamp(20px, 4vw, 32px);
  text-align: center;
}

.hero-shot img {
  display: block;
  width: 100%;
  border-radius: clamp(16px, 2vw, 26px);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-lg);
  background: transparent;
}

.hero-shot figcaption,
.shot figcaption,
.card__shot figcaption {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.01em;
  color: var(--muted-2);
}

[data-shot-frame].is-missing { display: none !important; }

.hero__scroll {
  position: relative;
  margin: clamp(40px, 5vw, 64px) auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.hero__scroll-line {
  width: 1px;
  height: 46px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 14px;
  background: linear-gradient(180deg, var(--accent), transparent);
  animation: scrollCue 2.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes scrollCue {
  0% { transform: translateY(-16px); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(48px); opacity: 0; }
}

/* 8. Metrics ----------------------------------------------------------------- */
.metrics {
  background: var(--bg-soft);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.metrics__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.metric {
  grid-column: span 1;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 2.6vw, 32px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s ease, border-color 0.4s ease;
}
.metric:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 0, 0, 0.12);
}
.metric--wide { grid-column: span 2; }
.metric--quiet {
  grid-column: span 4;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(228, 228, 231, 0.65), transparent 60%),
    #fff;
}

.metric__num {
  font-size: clamp(2.5rem, 4vw, 3.85rem);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.metric__unit {
  font-size: 0.32em;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted-2);
}
.metric__num--small { font-size: clamp(1.5rem, 2.2vw, 2rem); letter-spacing: -0.03em; }
.metric__num--small .metric__unit { font-size: 0.6em; }

.metric__label {
  margin-top: 14px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.metric__note {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}

.metric__aside { border-left: 1px solid var(--hairline); padding-left: 32px; }
.metric__aside-num {
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
}
.metric__aside-label {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.metrics__more {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 18px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.68);
  overflow: hidden;
}
.metrics__more > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 22px;
  border-left: 1px solid var(--hairline);
}
.metrics__more > div:first-child { border-left: 0; }
.metrics__more span { font-size: 11px; color: var(--muted-2); letter-spacing: 0.02em; }
.metrics__more strong {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.metrics__foot {
  margin-top: 26px;
  font-size: 12.5px;
  color: var(--muted-2);
  text-align: center;
}

/* 9. Signal chain ------------------------------------------------------------ */
.chain { background: var(--bg); }

.chain__layout {
  display: grid;
  grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
  gap: clamp(36px, 5.5vw, 88px);
  align-items: start;
}

.chain__sticky {
  position: sticky;
  top: calc(var(--header-h) + 26px);
}

.chain-panel {
  position: relative;
  padding: 18px 18px 14px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.7);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(250, 252, 255, 0.72));
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 30px 80px -40px rgba(20, 40, 70, 0.35),
    0 1px 2px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}
.chain-panel::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto -20%;
  height: 300px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(161, 161, 170, 0.22), transparent 70%);
  pointer-events: none;
}

.chain-panel__head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 6px 12px;
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.04em;
}
.chain-panel__state {
  font-family: var(--mono);
  color: var(--accent-ink);
  font-size: 11px;
}

.chain-svg { display: block; width: 100%; height: auto; position: relative; }

.chain-svg__grid line { stroke: rgba(20, 30, 50, 0.055); stroke-width: 1; }

.chain-edge path {
  fill: none;
  stroke: url(#edgeStroke);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 3 7;
  animation: edgeFlow 9s linear infinite;
}
@keyframes edgeFlow {
  to { stroke-dashoffset: -100; }
}

.chain-node rect {
  fill: rgba(255, 255, 255, 0.78);
  stroke: rgba(20, 30, 50, 0.12);
  stroke-width: 1;
  transition: fill 0.45s ease, stroke 0.45s ease, filter 0.45s ease;
}
.chain-node--chip rect {
  fill: rgba(255, 255, 255, 0.52);
  stroke: rgba(20, 30, 50, 0.1);
}
.chain-node__title {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  fill: var(--ink);
  letter-spacing: -0.01em;
  transition: fill 0.35s ease;
}
.chain-node__sub {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 400;
  fill: var(--muted);
  transition: fill 0.35s ease;
}
.chain-node__sub--dim { fill: var(--muted-2); }
.chain-node__chip {
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 500;
  fill: var(--ink-2);
  transition: fill 0.35s ease;
}
.chain-lane {
  font-family: var(--font);
  font-size: 10.5px;
  font-weight: 500;
  fill: var(--muted-2);
  letter-spacing: 0.03em;
}

.chain-node.is-active rect {
  fill: rgba(24, 24, 27, 0.09);
  stroke: rgba(24, 24, 27, 0.42);
  filter: drop-shadow(0 10px 18px rgba(24, 24, 27, 0.16));
}
.chain-node.is-active .chain-node__title { fill: var(--accent-ink); }
.chain-node.is-active .chain-node__chip { fill: var(--accent-ink); }

.chain-edge.is-active path {
  stroke: rgba(24, 24, 27, 0.55);
  stroke-width: 2;
}

.chain-progress {
  margin: 8px 6px 0;
  height: 2px;
  border-radius: 2px;
  background: rgba(20, 30, 50, 0.08);
  overflow: hidden;
}
.chain-progress__fill {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, #18181b, #d92d3e);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.chain { view-timeline-name: --chainTimeline; view-timeline-axis: block; }

@supports (animation-timeline: view()) {
  .chain-progress__fill {
    animation: chainFill linear both;
    animation-timeline: --chainTimeline;
    animation-range: cover 16% cover 84%;
  }
  @keyframes chainFill {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
  }
}

.chain-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 12px 6px 4px;
  font-size: 10.5px;
  color: var(--muted-2);
}
.chain-legend li { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted-2); }
.legend-dot--a { background: #a1a1aa; }
.legend-dot--b { background: #d92d3e; }
.legend-dot--c { background: #18181b; }

.chain__stages { min-width: 0; }

.chain-stage {
  min-height: 64vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(40px, 7vw, 80px);
  border-top: 1px solid var(--hairline);
}
.chain-stage:first-child { border-top: 0; padding-top: 0; }
.chain-stage:last-child { padding-bottom: 0; }

.chain-stage__index {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent-ink);
  margin-bottom: 14px;
}

.chain-stage.is-current .chain-stage__index { color: var(--accent); }
.chain-stage.is-current h3 { color: var(--ink); }
.chain-stage h3 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 600;
  max-width: 22ch;
}
.chain-stage > p {
  margin-top: 18px;
  max-width: 58ch;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}
.chain-stage > p code { color: var(--ink-2); }

.ticks { margin-top: 20px; display: grid; gap: 10px; max-width: 60ch; }
.ticks li {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.52em;
  width: 8px;
  height: 4px;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg) translateY(-1px);
  border-radius: 1px;
}
.ticks li code { font-size: 0.86em; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 22px;
}
.chips li {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-2);
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid transparent;
}

.callout {
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-2);
}
.callout p + p { margin-top: 8px; }
.callout--inline {
  background: var(--accent-soft);
  border: 1px solid rgba(24, 24, 27, 0.16);
}
.callout--warn {
  background: rgba(255, 159, 10, 0.07);
  border: 1px solid rgba(255, 149, 0, 0.22);
}

.shot {
  margin: clamp(60px, 8vw, 110px) auto 0;
  text-align: center;
  max-width: 1040px;
}
.shot img {
  display: block;
  width: 100%;
  border-radius: clamp(14px, 1.8vw, 22px);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-md);
}

/* 10. Bento / Available now -------------------------------------------------- */
.now {
  background: linear-gradient(180deg, #f5f5f7 0%, #f3f4f6 100%);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(24px, 2.8vw, 36px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 62%, #fdfdfe 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 1px 2px rgba(20, 30, 50, 0.03),
    0 26px 60px -40px rgba(20, 40, 70, 0.25);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 2px 6px rgba(20, 30, 50, 0.04),
    0 36px 80px -40px rgba(20, 40, 70, 0.32);
}

.card--a { grid-column: span 7; }
.card--b { grid-column: span 5; }
.card--c { grid-column: span 5; }
.card--d { grid-column: span 7; }
.card--e { grid-column: span 6; }
.card--f { grid-column: span 6; }
.card--g { grid-column: span 7; }
.card--h { grid-column: span 5; }

.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card__kicker {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--muted-2);
  text-align: right;
}

.pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.pill--now { background: rgba(24, 24, 27, 0.09); color: var(--accent-ink); }
.pill--future { background: rgba(255, 149, 0, 0.12); color: #9a5300; }

.card h3 {
  font-size: clamp(1.35rem, 2.1vw, 1.85rem);
  line-height: 1.18;
  letter-spacing: -0.028em;
  font-weight: 600;
  max-width: 24ch;
}
.card > p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 60ch;
}
.card .ticks { margin-top: 2px; gap: 8px; }
.card .ticks li { font-size: 13px; }

.card__stat {
  font-size: 15px;
  color: var(--ink-2) !important;
}
.card__stat span {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  margin-right: 6px;
}

.bitstream {
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--hairline);
  background:
    repeating-linear-gradient(90deg,
      rgba(24, 24, 27, 0.62) 0 2px,
      transparent 2px 4px,
      rgba(24, 24, 27, 0.28) 4px 6px,
      transparent 6px 9px,
      rgba(24, 24, 27, 0.5) 9px 12px,
      transparent 12px 15px,
      rgba(24, 24, 27, 0.16) 15px 17px,
      transparent 17px 22px),
    linear-gradient(180deg, rgba(24, 24, 27, 0.05), rgba(161, 161, 170, 0.08));
  background-size: 220px 100%, 100% 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  animation: bitDrift 14s linear infinite;
}
@keyframes bitDrift {
  to { background-position: 220px 0, 0 0; }
}

.topology { width: 100%; height: auto; margin-top: 2px; }
.topology__lines path {
  fill: none;
  stroke: rgba(24, 24, 27, 0.35);
  stroke-width: 1.4;
  stroke-dasharray: 3 6;
  stroke-linecap: round;
}
.topology__node rect {
  fill: rgba(255, 255, 255, 0.8);
  stroke: rgba(20, 30, 50, 0.12);
}
.topology__node--accent rect {
  fill: rgba(24, 24, 27, 0.06);
  stroke: rgba(24, 24, 27, 0.28);
}
.topology__node text {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
  fill: var(--ink-2);
}
.topology__node--accent text { fill: var(--accent-ink); }
.topology__dot { fill: var(--accent); }

.card__foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  font-size: 10.5px;
  letter-spacing: 0.01em;
  color: var(--muted-2);
}

.card__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 6px;
}
.card__facts > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft-2);
  border: 1px solid var(--hairline);
}
.card__fact-num {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.card__fact-label { font-size: 11px; line-height: 1.45; color: var(--muted); }

.card__shot {
  margin: auto -6px -6px;
  padding-top: 8px;
}
.card__shot img {
  display: block;
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-sm);
}
.card__shot figcaption { text-align: center; }

/* 11. Why -------------------------------------------------------------------- */
.why { background: var(--bg); }

.why__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 40px);
  border-top: 1px solid var(--hairline);
  padding-top: clamp(34px, 4vw, 52px);
}
.why__item { max-width: 40ch; }
.why__index {
  font-size: 11px;
  color: var(--accent-ink);
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}
.why__item h3 {
  font-size: clamp(1.2rem, 1.7vw, 1.45rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin-bottom: 12px;
}
.why__item p { font-size: 14.5px; line-height: 1.65; color: var(--muted); }

.why__quote {
  margin: clamp(60px, 8vw, 110px) auto 0;
  text-align: center;
  max-width: 900px;
}
.why__quote p {
  font-size: clamp(1.9rem, 4.6vw, 3.4rem);
  line-height: 1.18;
  letter-spacing: -0.04em;
  font-weight: 600;
  background: linear-gradient(180deg, #1d1d1f 0%, #6b6b72 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.why__quote cite {
  display: block;
  margin-top: 18px;
  font-style: normal;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted-2);
  text-transform: uppercase;
}

/* 12. Limits ---------------------------------------------------------------- */
.limits {
  background: var(--bg-soft);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.limits__table {
  border-top: 1px solid var(--hairline-strong);
  max-width: 960px;
  margin-inline: auto;
}

.limits__row {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 28px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--hairline);
}
.limits__row > span:first-child {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.limits__row > span:last-child {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
.limits__row--head { padding-block: 12px; }
.limits__row--head > span {
  font-family: var(--mono);
  font-size: 10.5px !important;
  font-weight: 500 !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2) !important;
}

/* 13. Vision ---------------------------------------------------------------- */
.vision {
  background:
    radial-gradient(90% 60% at 100% 0%, rgba(255, 214, 160, 0.16), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #fbfbfd 100%);
}

.vision__banner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 18px;
  margin-bottom: clamp(34px, 4vw, 52px);
  padding: 18px 22px;
  border-radius: var(--radius-md);
  background: rgba(255, 149, 0, 0.07);
  border: 1px solid rgba(255, 149, 0, 0.2);
}
.vision__banner strong { font-size: 14px; color: #8a4a00; letter-spacing: -0.01em; }
.vision__banner span { font-size: 13px; color: #8a6231; }

.vision__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.vcard {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(24px, 2.6vw, 32px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s ease;
}
.vcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.vcard--wide { grid-column: span 2; }

.vcard__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.vcard__tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--muted-2);
}
.vcard h3 {
  font-size: clamp(1.3rem, 1.9vw, 1.65rem);
  line-height: 1.24;
  letter-spacing: -0.025em;
  font-weight: 600;
}
.vcard > p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 68ch;
}
.vcard .ticks { margin-top: 0; }
.vcard .ticks li { font-size: 13px; }
.vcard__why {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
  font-size: 13px !important;
  color: var(--ink-2) !important;
}

/* 14. Download -------------------------------------------------------------- */
.download {
  background: linear-gradient(180deg, #f5f5f7 0%, #eef0f3 100%);
  border-top: 1px solid var(--hairline);
}

.download__panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-lg);
}

.download__main {
  padding: clamp(26px, 3.4vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.download__version-num {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}
.download__meta {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.download__notes {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted-2);
  max-width: 52ch;
}
.download__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.download__req {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
}
.download__req li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13.5px;
  color: var(--ink-2);
}
.download__req span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.download__verify {
  padding: clamp(26px, 3.4vw, 40px);
  background: var(--bg-soft-2);
  border-left: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.verify-block { display: flex; flex-direction: column; gap: 10px; }
.verify-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.verify-block__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink-2);
}
.verify-block__hint {
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--muted-2);
}
.verify-block__hint code { background: rgba(0, 0, 0, 0.045); }

.code {
  display: block;
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--hairline);
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  user-select: all;
}
.code--hash { font-size: 11.5px; word-break: break-all; }

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--hairline-strong);
  background: #fff;
  color: var(--ink-2);
  font-size: 11.5px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.copy-btn:hover { color: var(--accent-ink); border-color: rgba(24, 24, 27, 0.35); background: rgba(24, 24, 27, 0.04); }
.copy-btn:active { transform: scale(0.97); }
.copy-btn.is-copied {
  color: #1d7a3a;
  border-color: rgba(52, 199, 89, 0.4);
  background: rgba(52, 199, 89, 0.08);
}

.verify-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
}
.verify-links a { font-size: 12.5px; }

.download__foot {
  margin-top: 22px;
  text-align: center;
  font-size: 12px;
  color: var(--muted-2);
}

/* 15. Footer ---------------------------------------------------------------- */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--hairline);
  padding-block: clamp(48px, 6vw, 72px) 36px;
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.5fr);
  gap: clamp(32px, 5vw, 72px);
  padding-bottom: clamp(32px, 4vw, 48px);
  border-bottom: 1px solid var(--hairline);
}

.footer__brand .brand { margin-bottom: 14px; }
.footer__brand p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 40ch;
}

.footer__nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.footer__nav h3 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 12px;
}
.footer__nav a {
  display: block;
  padding: 4px 0;
  font-size: 12.5px;
  color: var(--ink-2);
}
.footer__nav a:hover { color: var(--accent-ink); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 24px;
  font-size: 11.5px;
  color: var(--muted-2);
}

/* 16. Reveal / motion ------------------------------------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
  .chain-progress__fill { transform: scaleX(1); }
}

/* 17. Responsive ------------------------------------------------------------ */
@media (max-width: 1080px) {
  .metrics__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric--wide { grid-column: span 2; }
  .metric--quiet { grid-column: span 2; grid-template-columns: 1fr; }
  .metric__aside { border-left: 0; padding-left: 0; border-top: 1px solid var(--hairline); padding-top: 18px; }

  .metrics__more { grid-template-columns: 1fr 1fr; }
  .metrics__more > div { border-left: 0; }
  .metrics__more > div:nth-child(even) { border-left: 1px solid var(--hairline); }
  .metrics__more > div:nth-child(n+3) { border-top: 1px solid var(--hairline); }

  .chain__layout { grid-template-columns: minmax(280px, 350px) minmax(0, 1fr); gap: 36px; }

  .card--a, .card--b, .card--c, .card--d,
  .card--e, .card--f, .card--g, .card--h { grid-column: span 12; }
  .card h3 { max-width: 30ch; }

  .download__panel { grid-template-columns: 1fr; }
  .download__verify { border-left: 0; border-top: 1px solid var(--hairline); }
}

@media (max-width: 920px) {
  .site-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-nav { display: block; }
  .ghost-link { display: none; }
  .header-actions { margin-left: auto; }
}

@media (max-width: 860px) {
  .chain__layout { grid-template-columns: 1fr; gap: 26px; }
  .chain__sticky { position: static; }
  .chain-panel { max-width: 460px; margin-inline: auto; }
  .chain-stage { min-height: 0; padding-block: 44px; }
  .chain-stage h3 { max-width: none; }

  .why__grid { grid-template-columns: 1fr; gap: 30px; }
  .why__quote { margin-top: 60px; }

  .vision__grid { grid-template-columns: 1fr; }
  .vcard--wide { grid-column: span 1; }

  .footer__top { grid-template-columns: 1fr; }
  .footer__nav { gap: 20px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero__specs { font-size: 12px; }
  .hero__specs li + li::before { margin: 0 10px; }
  .hero__stats { gap: 10px; padding-top: 22px; margin-top: 28px; }
  .hero__stats dd { font-size: 1.05rem; }
  .hero__stats dt { font-size: 10.5px; }
  .hero__cta .btn { width: 100%; }
  .hero__cta { gap: 10px; }

  .metrics__grid { grid-template-columns: 1fr; gap: 14px; }
  .metrics__more { grid-template-columns: 1fr 1fr; }
  .metrics__more > div { border-left: 0; }
  .metrics__more > div:nth-child(even) { border-left: 1px solid var(--hairline); }
  .metrics__more > div:nth-child(n+3) { border-top: 1px solid var(--hairline); }
  .metric, .metric--wide, .metric--quiet { grid-column: span 1; }
  .metric { padding: 22px; }

  .section-head h2 { font-size: clamp(1.85rem, 8vw, 2.5rem); }
  .chain-stage h3 { font-size: clamp(1.5rem, 6vw, 1.9rem); }
  .card { padding: 22px; border-radius: 24px; }
  .card__facts { grid-template-columns: 1fr 1fr; }
  .card__facts > div:last-child { grid-column: span 2; }

  .limits__row { grid-template-columns: 1fr; gap: 6px; padding: 16px 2px; }
  .limits__row--head { display: none; }

  .download__main, .download__verify { padding: 22px; }
  .download__req { grid-template-columns: 1fr; }
  .download__actions .btn { width: 100%; }
  .code--hash { font-size: 10.5px; }

  .footer__nav { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; }
}

@media (max-width: 400px) {
  .brand__sub { display: none; }
  .hero__stats dd { font-size: 0.95rem; }
  .hero__stats dt { font-size: 10px; }
}

/* 18. Hover-capable refinements --------------------------------------------- */
@media (hover: none) {
  .metric:hover,
  .card:hover,
  .vcard:hover { transform: none; box-shadow: var(--shadow-sm); }
}
