/* CHERRYCHAT LTD company site — shared styles (2026-11 redesign). No framework, no external requests. */

@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/instrument-serif.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/instrument-serif-italic.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("../fonts/geist.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("../fonts/geist-mono.woff2") format("woff2"); }

:root {
  --bg: #f6f4f1;
  --bg-deep: #efebe6;
  --surface: #ffffff;
  --shell: rgba(26, 22, 20, 0.035);
  --ring: rgba(26, 22, 20, 0.08);
  --line: rgba(26, 22, 20, 0.1);
  --ink: #1b1715;
  --ink-2: #4a443f;
  --ink-3: #6a635d;
  --accent: #b3133d;
  --accent-hover: #9c0f34;
  --accent-ink: #ffffff;
  --accent-soft: rgba(179, 19, 61, 0.08);
  --shadow: 0 1px 1px rgba(60, 30, 20, 0.04), 0 12px 32px -12px rgba(60, 30, 20, 0.16);
  --shadow-lg: 0 2px 2px rgba(60, 30, 20, 0.04), 0 32px 64px -24px rgba(60, 30, 20, 0.28);
  --inner-hi: inset 0 1px 0 rgba(255, 255, 255, 0.7);

  --serif: "Instrument Serif", "Songti SC", "Noto Serif SC", Georgia, serif;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "PingFang SC", "Microsoft YaHei", monospace;

  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --gutter: max(16px, 4vw);
  --max: 1200px;
  --r-lg: 26px;
  --r-md: 18px;
  --r-sm: 12px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131110;
    --bg-deep: #0e0c0b;
    --surface: #1c1917;
    --shell: rgba(255, 245, 235, 0.035);
    --ring: rgba(255, 245, 235, 0.08);
    --line: rgba(255, 245, 235, 0.1);
    --ink: #f3eee8;
    --ink-2: #c9c1b8;
    --ink-3: #a1988f;
    --accent: #f27391;
    --accent-hover: #f68ea6;
    --accent-ink: #1b0f12;
    --accent-soft: rgba(242, 115, 145, 0.1);
    --shadow: 0 1px 1px rgba(0, 0, 0, 0.3), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 2px 2px rgba(0, 0, 0, 0.3), 0 32px 64px -24px rgba(0, 0, 0, 0.8);
    --inner-hi: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; transition: color 200ms var(--ease), text-decoration-color 200ms var(--ease); }
a:hover { color: var(--accent); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--accent-ink); }
h1, h2, h3, h4 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

/* grain: one fixed layer, never on scrolling content */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.page { position: relative; z-index: 1; overflow-x: clip; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 30; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 500; text-decoration: none; }
.skip:focus { top: 16px; color: var(--bg); }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--ink-3);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.display { font-family: var(--serif); font-size: clamp(44px, 7.4vw, 96px); line-height: 0.98; letter-spacing: -0.015em; }
.display em, .h2 em { font-style: italic; color: var(--accent); }
.h2 { font-family: var(--serif); font-size: clamp(36px, 4.8vw, 60px); line-height: 1.02; letter-spacing: -0.01em; }
.h3 { font-family: var(--sans); font-size: 22px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
.lede { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--ink-3); }
.cjk { font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", var(--sans); font-weight: 500; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 14px; left: 50%; z-index: 20;
  transform: translateX(-50%);
  width: min(calc(100% - 2 * var(--gutter)), 1120px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 8px 8px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  backdrop-filter: saturate(1.4) blur(18px);
  box-shadow: 0 0 0 1px var(--ring), var(--shadow);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand:hover { color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav-links a { display: block; padding: 8px 14px; border-radius: 999px; font-size: 14.5px; color: var(--ink-2); text-decoration: none; transition: background 250ms var(--ease), color 250ms var(--ease); }
.nav-links a:hover { background: var(--shell); color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); background: var(--shell); }
.nav-cta { display: inline-flex; align-items: center; padding: 9px 16px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 14.5px; font-weight: 500; text-decoration: none; transition: transform 250ms var(--ease), background 250ms var(--ease); }
.nav-cta:hover { color: var(--bg); background: var(--accent); }
.nav-cta:active { transform: scale(0.97); }
.menu-btn { display: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--shell); color: var(--ink); cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform 350ms var(--ease), top 350ms var(--ease); }
.menu-btn span:nth-child(1) { top: 16px; }
.menu-btn span:nth-child(2) { top: 23px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { top: 19.5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { top: 19.5px; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .nav { border-radius: 26px; flex-wrap: wrap; }
  .menu-btn { display: block; }
  .nav-cta { display: none; }
  .nav-links { order: 3; display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding: 6px 0 4px; }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 12px 10px; font-size: 16px; }
  .nav.open .nav-links li { animation: rise 500ms var(--ease) both; }
  .nav.open .nav-links li:nth-child(2) { animation-delay: 40ms; }
  .nav.open .nav-links li:nth-child(3) { animation-delay: 80ms; }
  .nav.open .nav-links li:nth-child(4) { animation-delay: 120ms; }
  .nav.open .nav-links li:nth-child(5) { animation-delay: 160ms; }
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 7px 7px 7px 22px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 500; font-size: 15.5px; text-decoration: none;
  box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--accent) 70%, transparent);
  transition: transform 300ms var(--ease), background 300ms var(--ease);
}
.btn:hover { color: var(--accent-ink); background: var(--accent-hover); }
.btn:active { transform: scale(0.98); }
.btn .ico { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.18); transition: transform 300ms var(--ease); }
.btn:hover .ico { transform: translate(2px, -1px) scale(1.05); }
.btn.ghost { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--ring); }
.btn.ghost .ico { background: var(--shell); }
.btn.ghost:hover { color: var(--ink); background: var(--surface); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; text-decoration: none; color: var(--ink); }
.link-arrow svg { transition: transform 300ms var(--ease); }
.link-arrow:hover svg { transform: translate(2px, -2px); }
.link-arrow.sub { color: var(--ink-3); font-weight: 400; }

/* ---------- double-bezel frame ---------- */
.bezel { padding: 6px; border-radius: var(--r-lg); background: var(--shell); box-shadow: 0 0 0 1px var(--ring); }
.bezel > .core { border-radius: calc(var(--r-lg) - 6px); overflow: hidden; background: var(--surface); box-shadow: var(--inner-hi), var(--shadow); }
.shot { position: relative; aspect-ratio: 16 / 10; background: var(--bg-deep); }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.shot .bar { position: absolute; inset: 0 0 auto; height: 26px; display: flex; align-items: center; gap: 6px; padding-left: 12px; background: linear-gradient(to bottom, color-mix(in srgb, var(--surface) 92%, transparent), transparent); }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(128px, 16vw, 176px) 0 clamp(64px, 8vw, 104px); }
.hero::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 900px; height: 900px; right: -260px; top: -220px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%);
  filter: blur(10px);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero .display { margin-top: 22px; }
.hero .lede { margin-top: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 36px; }
.stack { position: relative; aspect-ratio: 1 / 0.86; }
.stack .bezel { position: absolute; width: 78%; transition: transform 900ms var(--ease); }
.stack .s1 { left: 0; top: 2%; transform: rotate(-4deg); z-index: 1; }
.stack .s2 { right: 0; top: 14%; transform: rotate(3deg); z-index: 2; }
.stack .s3 { left: 12%; bottom: 0; transform: rotate(-1deg); z-index: 3; box-shadow: 0 0 0 1px var(--ring), var(--shadow-lg); }
.stack:hover .s1 { transform: rotate(-6deg) translate(-8px, -6px); }
.stack:hover .s2 { transform: rotate(5deg) translate(8px, -4px); }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: clamp(56px, 7vw, 88px); border-top: 1px solid var(--line); }
.facts > div { padding: 18px 20px 0 0; }
.facts dt { font-family: var(--mono); font-size: 12px; color: var(--ink-3); letter-spacing: 0.04em; }
.facts dd { margin: 6px 0 0; font-size: 15.5px; font-weight: 500; }
.facts dd a { text-decoration: none; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- sections ---------- */
.section { padding: clamp(80px, 10vw, 136px) 0 clamp(88px, 11vw, 148px); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head .eyebrow { grid-column: 1 / -1; }
.band { background: var(--bg-deep); border-block: 1px solid var(--line); }

/* flagship */
.flagship { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.p-head { display: flex; align-items: center; gap: 14px; }
.p-head img { width: 48px; height: 48px; border-radius: 12px; box-shadow: 0 0 0 1px var(--ring); }
.p-kicker { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--ink-3); }
.p-name { font-size: 22px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
.p-name .cjk { font-size: 0.82em; color: var(--ink-2); font-weight: 500; }
.flagship .p-body { margin-top: 22px; color: var(--ink-2); font-size: 16.5px; }
.ticks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: baseline; }
.ticks li::before { content: ""; width: 7px; height: 7px; margin-left: 4px; border-radius: 2px; background: var(--accent); transform: translateY(-2px) rotate(45deg); }
.p-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tag { font-size: 13px; padding: 5px 10px; border-radius: 8px; background: var(--shell); box-shadow: 0 0 0 1px var(--ring); color: var(--ink-2); }
.p-links { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; margin-top: 28px; }

/* product grid */
.pgrid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 28px); margin-top: clamp(48px, 6vw, 80px); }
.pcard { display: flex; flex-direction: column; }
.pcard.w7 { grid-column: span 7; }
.pcard.w5 { grid-column: span 5; }
.pcard .core { display: flex; flex-direction: column; height: 100%; }
.pcard .shot { border-bottom: 1px solid var(--line); }
.pcard .body { display: flex; flex-direction: column; flex: 1; padding: 24px 26px 26px; }
.pcard .p-head img { width: 40px; height: 40px; border-radius: 10px; }
.pcard p { margin-top: 16px; color: var(--ink-2); }
.pcard .p-links { margin-top: auto; padding-top: 22px; }
.pcard .shot img { transition: transform 1000ms var(--ease); }
.pcard:hover .shot img { transform: scale(1.025); }

.note { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; margin-top: clamp(40px, 5vw, 56px); padding: 18px 20px; border-radius: var(--r-md); background: var(--surface); box-shadow: 0 0 0 1px var(--ring); color: var(--ink-2); font-size: 15px; }
.note svg { color: var(--accent); margin-top: 3px; }

/* company */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); }
.split .lede + .lede { margin-top: 18px; }
.ledger { margin: 0; border-top: 1px solid var(--line); }
.ledger > div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ledger dt { color: var(--ink-3); font-size: 14.5px; }
.ledger dd { margin: 0; font-weight: 500; }
.ledger dd .muted { font-weight: 400; }

/* billing */
.billing { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.descriptor { font-family: var(--mono); font-size: clamp(22px, 3vw, 30px); letter-spacing: 0.02em; padding: 22px 24px; border-radius: calc(var(--r-lg) - 6px); background: var(--surface); box-shadow: var(--inner-hi), var(--shadow); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.descriptor small { font-size: 13px; color: var(--ink-3); letter-spacing: 0; font-family: var(--sans); }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 18px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 14px; color: var(--ink-2); }
.steps li::before { content: counter(s); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 13px; color: var(--ink); background: var(--surface); box-shadow: 0 0 0 1px var(--ring); }
.steps strong { color: var(--ink); font-weight: 600; }

/* contact */
.contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.cbox { grid-column: span 4; }
.cbox.wide { grid-column: span 8; }
.cbox .core { padding: 24px 26px; height: 100%; display: flex; flex-direction: column; gap: 6px; }
.cbox .label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--ink-3); }
.cbox .val { font-size: clamp(18px, 2vw, 22px); font-weight: 500; letter-spacing: -0.01em; word-break: break-word; }
.cbox .val a { text-decoration: none; }
.cbox p { color: var(--ink-3); font-size: 14.5px; margin-top: auto; padding-top: 12px; }
.social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.social a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--shell); box-shadow: 0 0 0 1px var(--ring); text-decoration: none; font-size: 15px; font-weight: 500; }

/* policies */
.plist { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.plist a { display: flex; flex-direction: column; gap: 8px; padding: 22px 22px 26px 0; text-decoration: none; border-bottom: 1px solid var(--line); }
.plist a + a { padding-left: 22px; border-left: 1px solid var(--line); }
.plist .t { font-family: var(--serif); font-size: 28px; line-height: 1.05; color: var(--ink); transition: color 250ms var(--ease); }
.plist .d { font-size: 14.5px; color: var(--ink-3); }
.plist a:hover .t { color: var(--accent); }

/* footer */
.footer { padding: 56px 0 40px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 14px; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 40px; align-items: flex-start; }
.footer .brand { color: var(--ink); }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer nav a { text-decoration: none; }
.footer .legal { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

/* ---------- policy pages ---------- */
.doc-hero { padding: clamp(128px, 15vw, 168px) 0 clamp(40px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.doc-hero .display { font-size: clamp(44px, 6.4vw, 80px); margin-top: 20px; }
.doc-hero .lede { margin-top: 20px; }
.crumb { font-size: 14px; color: var(--ink-3); }
.crumb a { text-decoration: none; }
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); padding-top: clamp(48px, 6vw, 72px); padding-bottom: clamp(80px, 10vw, 120px); }
.toc { position: sticky; top: 104px; align-self: start; font-size: 14px; }
.toc p { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--ink-3); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 1px solid transparent; color: var(--ink-3); text-decoration: none; }
.toc a:hover { color: var(--ink); border-left-color: var(--accent); }
.prose { max-width: 68ch; color: var(--ink-2); font-size: 16.5px; line-height: 1.7; }
.prose h2 { font-family: var(--serif); font-size: clamp(28px, 3.2vw, 36px); line-height: 1.1; color: var(--ink); margin: 56px 0 16px; scroll-margin-top: 104px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 16.5px; font-weight: 600; color: var(--ink); margin: 26px 0 8px; }
.prose p + p { margin-top: 14px; }
.prose ul { margin: 12px 0 0; padding-left: 1.2em; }
.prose li { margin: 6px 0; padding-left: 4px; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--ink); }
.prose a:hover { color: var(--accent); }
.prose .callout { margin: 22px 0 0; padding: 16px 18px; border-radius: var(--r-sm); background: var(--accent-soft); }
.doc-foot { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 28px; }

/* 404 */
.lost { min-height: 100dvh; display: grid; place-items: center; text-align: center; padding: 120px var(--gutter); }
.lost .display { font-size: clamp(56px, 10vw, 120px); }
.lost .lede { margin: 18px auto 0; }
.lost .hero-actions { justify-content: center; }

/* ---------- reveal (only when JS is on; content is visible without it) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity 900ms var(--ease), transform 900ms var(--ease), filter 900ms var(--ease); }
.js .reveal.in { opacity: 1; transform: none; filter: none; }
.js .reveal.d1 { transition-delay: 80ms; }
.js .reveal.d2 { transition-delay: 160ms; }
.js .reveal.d3 { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; filter: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid, .flagship, .split, .billing { grid-template-columns: minmax(0, 1fr); }
  .stack { max-width: 640px; }
  .section-head { grid-template-columns: minmax(0, 1fr); }
  .pcard.w7, .pcard.w5 { grid-column: span 6; }
  .plist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plist a:nth-child(3) { padding-left: 0; border-left: 0; }
  .cbox, .cbox.wide { grid-column: span 6; }
}
@media (max-width: 760px) {
  .stack { display: none; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts > div { padding-bottom: 14px; }
  .pgrid { grid-template-columns: minmax(0, 1fr); }
  .pcard.w7, .pcard.w5 { grid-column: auto; }
  .pcard .body { padding: 20px 20px 22px; }
  .ledger > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .cbox, .cbox.wide { grid-column: auto; }
  .plist { grid-template-columns: minmax(0, 1fr); }
  .plist a, .plist a + a { padding-left: 0; border-left: 0; }
  .doc { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
  .descriptor { flex-direction: column; align-items: flex-start; }
}
