:root {
  --paper: #f7f9fc;
  --paper-2: #edf2f8;
  --ink: #0b1220;
  --ink-soft: #334155;
  --muted: #64748b;
  --accent: #165dff;
  --accent-deep: #070d1a;
  --accent-soft: #e8f0ff;
  --cyan: #00a6c8;
  --amber: #e97a1f;
  --line: rgba(11, 18, 32, .12);
  --line-strong: rgba(11, 18, 32, .28);
  --white: #ffffff;
  --focus: #0b63ce;
  --shadow: 0 24px 64px rgba(15, 35, 84, .10);
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", monospace;
  --wrap: 1180px;
  --radius: 2px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html[data-text="large"] { font-size: 112.5%; }
html[data-text="xlarge"] { font-size: 125%; }
body {
  margin: 0; color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(900px 520px at 82% -12%, rgba(22,93,255,.10), transparent 68%), linear-gradient(180deg, #ffffff 0, #f7f9fc 36%);
  font-family: var(--sans); font-size: 16px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 5.1vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3.2rem); }
h3 { font-size: 1.2rem; }
em { font-style: normal; color: var(--accent); }
strong { font-weight: 650; }
::selection { background: var(--accent); color: var(--white); }

.wrap { width: min(calc(100% - 48px), var(--wrap)); margin-inline: auto; }
.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; left: 16px; top: -80px; z-index: 1000;
  padding: .8rem 1rem; background: var(--ink); color: var(--white);
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 16px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 2rem; min-height: 82px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; flex: none; }
.brand-mark {
  display: grid; place-items: center; width: 42px; height: 42px;
  background: var(--accent); color: var(--white); font-family: var(--serif);
  font-size: 1.45rem; line-height: 1; border-radius: 12px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--serif); font-size: 1.05rem; letter-spacing: .06em; }
.brand-text small { font-family: var(--mono); font-size: .58rem; letter-spacing: .18em; color: var(--muted); margin-top: .25rem; }
.site-nav { display: flex; align-items: center; gap: 1.35rem; margin-left: auto; }
.site-nav a {
  font-size: .86rem; text-decoration: none; color: var(--ink-soft);
  padding: .4rem 0; border-bottom: 1px solid transparent; white-space: nowrap;
}
.site-nav a:hover, .site-nav a.is-current { color: var(--accent); border-color: var(--accent); }
.header-tools { display: flex; align-items: center; gap: .35rem; }
.tool {
  display: inline-grid; place-items: center; width: 38px; height: 38px;
  border: 1px solid var(--line); background: transparent; color: var(--ink);
  cursor: pointer; font-family: var(--sans); font-size: .9rem; border-radius: 50%;
}
.tool:hover { border-color: var(--accent); color: var(--accent); }
.tool[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--white); }
.menu-toggle { display: none; }

/* Type */
.eyebrow {
  display: flex; align-items: center; gap: .55rem;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 1.4rem;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); display: inline-block; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.8; color: var(--ink-soft); max-width: 34em; }
.hero-note { font-size: .8rem; color: var(--muted); margin-top: 1.8rem; }
section[id] { scroll-margin-top: 100px; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.3rem; text-decoration: none;
  font-size: .9rem; font-weight: 600; letter-spacing: .02em; border: 1px solid transparent;
  border-radius: var(--radius); transition: background .18s, color .18s, border-color .18s;
}
.button-primary { background: var(--accent); color: var(--white); }
.button-primary:hover { background: var(--accent-deep); }
.button-ghost { border-color: var(--line-strong); color: var(--ink); }
.button-ghost:hover { border-color: var(--accent); color: var(--accent); }
.text-link { display: inline-flex; gap: .5rem; align-items: center; font-weight: 600; color: var(--accent); text-decoration: none; font-size: .9rem; }
.text-link:hover { text-decoration: underline; }

/* Hero */
.hero { padding: clamp(3rem, 6vw, 7rem) 0 0; overflow: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); }
.hero h1 { margin-bottom: 1.4rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.hero-art { position: relative; min-height: 520px; }
.art-grid {
  position: absolute; inset: 6% 2% 4% 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at 55% 48%, #000 20%, transparent 74%);
}
.hero-art .route { position: absolute; inset: 0; width: 100%; height: 100%; }
.route-line { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 5 7; opacity: .55; }
.route-line--soft { stroke: var(--cyan); opacity: .35; }
.route-node { fill: var(--paper); stroke: var(--accent); stroke-width: 2; }
.art-card {
  position: absolute; display: flex; flex-direction: column; gap: .25rem;
  min-width: 190px; padding: 1rem 1.1rem; background: var(--white);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.art-card span { font-family: var(--mono); font-size: .62rem; color: var(--accent); letter-spacing: .14em; }
.art-card b { font-family: var(--serif); font-size: 1.05rem; }
.art-card small { color: var(--muted); font-size: .76rem; }
.art-card--nav { top: 9%; left: 2%; transform: rotate(-2deg); }
.art-card--reader { top: 42%; right: 0; transform: rotate(1.5deg); }
.art-card--exam { bottom: 4%; left: 13%; transform: rotate(-1deg); }
.art-caption {
  position: absolute; right: 2%; bottom: 11%;
  font-family: var(--mono); font-size: .62rem; letter-spacing: .14em;
  color: var(--muted); writing-mode: vertical-rl;
}

/* Stats */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: clamp(3rem, 6vw, 6rem); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-grid > div { padding: 1.6rem 0; display: flex; flex-direction: column; gap: .2rem; }
.stats-grid > div + div { border-left: 1px solid var(--line); padding-left: 1.6rem; }
.stats strong { font-family: var(--serif); font-size: clamp(2rem, 3vw, 2.9rem); font-weight: 500; line-height: 1; }
.stats sup { font-family: var(--sans); font-size: .9rem; color: var(--accent); }
.stats span { color: var(--muted); font-size: .78rem; letter-spacing: .04em; }

/* Sections */
.section { padding: clamp(4rem, 8vw, 8rem) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(2.4rem, 5vw, 4.5rem); }
.section-head--compact { margin-bottom: 2.5rem; }
.section-head p:last-child { color: var(--muted); max-width: 36em; }
.section-head h2 { margin-top: .4rem; }

/* Products */
.product-list { border-top: 1px solid var(--line); }
.product-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  gap: clamp(2rem, 6vw, 6rem); align-items: center;
  padding: clamp(2.5rem, 5vw, 4.5rem) 0; border-bottom: 1px solid var(--line);
}
.product-row:nth-child(even) .product-copy { order: 2; }
.product-row:nth-child(even) .product-visual { order: 1; }
.product-meta { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.product-meta > span:first-child { font-family: var(--mono); font-size: .64rem; letter-spacing: .14em; color: var(--muted); }
.pill {
  display: inline-flex; align-items: center; min-height: 26px; padding: .15rem .55rem;
  border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: .68rem; letter-spacing: .04em; color: var(--muted); white-space: nowrap;
}
.pill--warm { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 45%, transparent); }
.pill--accent { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.product-copy h3 { font-size: clamp(2rem, 3.2vw, 3rem); margin-bottom: .35rem; }
.product-copy h3 a { text-decoration: none; }
.product-copy h3 a:hover { color: var(--accent); }
.product-tagline { font-family: var(--serif); font-size: 1.25rem; color: var(--accent); margin-bottom: .8rem; }
.product-summary { color: var(--muted); max-width: 32em; }
.feature-inline { list-style: none; padding: 0; margin: 1.6rem 0 1.8rem; display: grid; gap: .7rem; }
.feature-inline li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding-top: .65rem; border-top: 1px solid var(--line); font-size: .84rem; }
.feature-inline b { font-weight: 600; color: var(--ink); }
.feature-inline span { color: var(--muted); }

/* Product visuals */
.product-visual { position: relative; min-height: 380px; display: grid; place-items: center; }
.product-visual::before {
  content: ""; position: absolute; inset: 7% 4%;
  background: radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 68%);
}
.product-visual--reader::before { background: radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--cyan) 18%, transparent), transparent 68%); }
.product-visual--exam::before { background: radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 68%); }
.product-visual--large { min-height: 460px; }

.map-ui, .reader-ui, .exam-ui { position: relative; z-index: 1; width: min(100%, 370px); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.map-ui { height: 330px; overflow: hidden; }
.map-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 38px 38px; transform: rotate(-8deg) scale(1.15); }
.map-route { position: absolute; left: 18%; top: 22%; width: 64%; height: 56%; border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent); border-radius: 0 0 0 42%; transform: skewY(-12deg); }
.map-route::after { content: ""; position: absolute; right: -6px; bottom: -6px; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); }
.map-pin { position: absolute; font-size: .62rem; letter-spacing: .08em; background: var(--paper); border: 1px solid var(--line); padding: .2rem .4rem; }
.map-pin--a { left: 7%; top: 18%; }
.map-pin--b { right: 7%; bottom: 12%; }
.map-voice { position: absolute; left: 8%; right: 8%; bottom: 9%; background: var(--accent); color: var(--white); padding: .7rem .8rem; font-size: .8rem; }

.reader-ui { padding: 1.2rem; }
.reader-bar { display: flex; gap: .3rem; margin-bottom: 1.3rem; }
.reader-bar span { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.reader-lines { display: grid; gap: .6rem; margin-bottom: 1.6rem; }
.reader-lines i { display: block; height: 7px; background: var(--line); border-radius: 9px; }
.reader-lines i:nth-child(2) { width: 86%; }
.reader-lines i:nth-child(3) { width: 94%; }
.reader-lines i.short { width: 52%; background: var(--accent); }
.reader-wave { display: flex; align-items: center; gap: 3px; height: 80px; padding: 0 .2rem; }
.reader-wave i { flex: 1; background: var(--cyan); opacity: .5; height: 18%; }
.reader-wave i:nth-child(3n) { height: 68%; opacity: .85; }
.reader-wave i:nth-child(4n) { height: 42%; }
.reader-wave i:nth-child(5n) { height: 88%; opacity: .95; }
.reader-status { margin-top: .9rem; padding-top: .7rem; border-top: 1px solid var(--line); font-family: var(--mono); font-size: .64rem; color: var(--muted); letter-spacing: .08em; }

.exam-ui { padding: 1.2rem; }
.exam-top { display: flex; justify-content: space-between; font-size: .7rem; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: .7rem; }
.exam-top b { font-family: var(--mono); color: var(--amber); }
.exam-q { display: flex; gap: .8rem; margin: 1.2rem 0; }
.q-no { display: grid; place-items: center; width: 30px; height: 30px; flex: none; background: var(--accent); color: var(--white); font-family: var(--mono); font-size: .7rem; }
.exam-q p { margin: 0; font-family: var(--serif); font-size: 1rem; line-height: 1.5; }
.exam-options { display: grid; gap: .4rem; }
.exam-options i { display: flex; align-items: center; padding: .45rem .6rem; border: 1px solid var(--line); font-style: normal; font-family: var(--mono); font-size: .7rem; color: var(--muted); }
.exam-options i.selected { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.exam-progress { height: 4px; background: var(--line); margin-top: 1.2rem; }
.exam-progress span { display: block; height: 100%; background: var(--accent); }
.exam-foot { margin-top: .5rem; font-size: .65rem; color: var(--muted); }

/* Principles */
.principles { background: radial-gradient(900px 420px at 18% 0%, rgba(22,93,255,.22), transparent 62%), var(--accent-deep); color: var(--white); }
.principles .eyebrow { color: rgba(255,255,255,.62); }
.principles h2 { color: var(--white); }
.principles h2 em { color: #9cc0ff; }
.principles-intro p:last-child { color: rgba(255,255,255,.68); max-width: 34em; }
.principles-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); }
.principle-list { border-top: 1px solid rgba(255,255,255,.22); }
.principle { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.3rem 0; border-bottom: 1px solid rgba(255,255,255,.22); }
.principle > span { font-family: var(--mono); font-size: .64rem; color: #9cc0ff; padding-top: .35rem; }
.principle h3 { color: var(--white); margin-bottom: .25rem; }
.principle p { color: rgba(255,255,255,.68); font-size: .86rem; margin: 0; }

/* Quote */
.quote-section { background: var(--paper-2); }
.quote-wrap { max-width: 900px; text-align: center; }
.quote-mark { font-family: var(--serif); font-size: 6rem; line-height: .5; color: var(--accent); margin-bottom: 1.2rem; }
blockquote { font-family: var(--serif); font-size: clamp(1.6rem, 3.4vw, 2.7rem); line-height: 1.55; margin: 0 0 1.4rem; }
.quote-by { color: var(--muted); font-size: .8rem; letter-spacing: .06em; }
.quote-actions { display: flex; justify-content: center; gap: .75rem; margin-top: 2rem; flex-wrap: wrap; }

/* Page hero */
.page-hero { padding: clamp(3rem, 6vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 12em; }
.page-hero .lead { margin-top: 1.4rem; }
.back-link { display: inline-flex; gap: .4rem; font-size: .8rem; color: var(--muted); text-decoration: none; margin-bottom: 2.2rem; }
.back-link:hover { color: var(--accent); }

/* Product hero */
.product-hero { padding: clamp(2rem, 4vw, 4rem) 0 clamp(3rem, 6vw, 6rem); }
.product-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.product-title-line { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.product-title-line h1 { margin-bottom: .3rem; }
.product-tagline--large { font-size: clamp(1.35rem, 2.4vw, 2rem); margin: .5rem 0 1.2rem; }
.product-hero .lead { max-width: 32em; }

/* Feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feature-grid--four { grid-template-columns: repeat(4, 1fr); }
.feature-cell { padding: 1.8rem 1.5rem 2rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-index { font-family: var(--mono); font-size: .62rem; color: var(--accent); letter-spacing: .12em; }
.feature-cell h3 { margin: 1.1rem 0 .5rem; font-size: 1.12rem; }
.feature-cell p { color: var(--muted); font-size: .86rem; margin: 0; }

/* Audience */
.audience-section { background: var(--paper-2); }
.audience-grid { display: grid; grid-template-columns: 1fr .9fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.audience-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.audience-list li { display: flex; gap: .8rem; padding: 1rem 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 1.15rem; }
.audience-list span { color: var(--accent); }

/* Next */
.next-section { border-top: 1px solid var(--line); }
.next-grid { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.next-grid h2 { margin-bottom: .4rem; }
.next-grid p:last-child { color: var(--muted); margin: 0; }

/* About */
.story-grid { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); }
.story-aside .eyebrow { position: sticky; top: 110px; }
.story-body { max-width: 760px; }
.story-body h2 { margin-bottom: 1.4rem; }
.story-body p { color: var(--ink-soft); font-size: 1.02rem; }
.values-section { background: var(--paper-2); }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.value-grid article { padding: 2rem 1.6rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.value-grid span { font-family: var(--mono); font-size: .62rem; color: var(--accent); }
.value-grid h3 { margin: 1.1rem 0 .5rem; font-size: 1.4rem; }
.value-grid p { color: var(--muted); font-size: .9rem; }
.principles-list { list-style: none; padding: 0; margin: 1.5rem 0 0; border-top: 1px solid var(--line); }
.principles-list li { display: grid; grid-template-columns: 7rem 1fr; gap: 1.2rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.principles-list b { font-weight: 600; }
.principles-list span { color: var(--muted); font-size: .9rem; }

/* Accessibility */
.statement-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1.5rem; }
.statement-card { border: 1px solid var(--line); padding: clamp(1.6rem, 3vw, 2.6rem); background: var(--white); }
.statement-card--soft { background: var(--paper-2); }
.statement-card h2 { font-size: clamp(1.4rem, 2.3vw, 2rem); }
.statement-card p:last-child { margin-bottom: 0; color: var(--ink-soft); }
.check-list { margin: 1rem 0 0; padding-left: 1.2rem; color: var(--ink-soft); }
.check-list li { margin-bottom: .55rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.contact-card { display: flex; flex-direction: column; min-height: 280px; padding: 1.7rem; border: 1px solid var(--line); background: var(--white); text-decoration: none; transition: transform .2s, border-color .2s; }
.contact-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.contact-index { font-family: var(--mono); font-size: .62rem; color: var(--accent); letter-spacing: .12em; }
.contact-card h2 { font-size: 1.35rem; margin: 1.5rem 0 .5rem; }
.contact-card p { color: var(--muted); font-size: .86rem; }
.contact-card strong { margin-top: auto; font-size: .85rem; color: var(--accent); word-break: break-all; }
.contact-card .text-link { margin-top: .7rem; }

/* Footer */
.site-footer { background: radial-gradient(800px 360px at 10% 100%, rgba(22,93,255,.18), transparent 65%), var(--accent-deep); color: rgba(255,255,255,.82); padding: 3.5rem 0 1.5rem; }
.site-footer .brand-mark { background: var(--white); color: var(--accent-deep); }
.site-footer .brand-text strong { color: var(--white); }
.site-footer .brand-text small { color: rgba(255,255,255,.5); }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.3fr; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.18); }
.footer-brand p { margin-top: 1.2rem; color: rgba(255,255,255,.6); font-size: .86rem; }
.site-footer h2 { font-family: var(--mono); font-size: .64rem; letter-spacing: .14em; color: rgba(255,255,255,.45); margin-bottom: 1rem; text-transform: uppercase; }
.site-footer a { display: block; color: rgba(255,255,255,.82); text-decoration: none; font-size: .86rem; margin-bottom: .55rem; }
.site-footer a:hover { color: #9cc0ff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.2rem; font-size: .7rem; color: rgba(255,255,255,.45); }
.footer-bottom p { margin: 0; }

/* High contrast */
html[data-contrast="high"] {
  --paper: #fff; --paper-2: #fff; --ink: #000; --ink-soft: #111; --muted: #222;
  --accent: #004d40; --accent-deep: #000; --line: #000; --line-strong: #000; --white: #fff;
  --amber: #7a3d00; --focus: #005fcc;
}
html[data-contrast="high"] .art-card,
html[data-contrast="high"] .product-visual,
html[data-contrast="high"] .statement-card { box-shadow: none; }
html[data-contrast="high"] .site-header { background: #fff; }
html[data-contrast="high"] .principles { background: #000; }
html[data-contrast="high"] .site-footer { background: #000; }

/* Motion */
.js.reveal-ready .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js.reveal-ready .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js.reveal-ready .reveal { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 980px) {
  .header-inner { gap: 1rem; }
  .site-nav { gap: 1rem; }
  .site-nav a { font-size: .8rem; }
  .hero-grid, .product-hero-grid, .principles-grid, .audience-grid, .statement-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 430px; margin-top: 2rem; }
  .product-row { gap: 2.5rem; }
  .feature-grid, .feature-grid--four { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .story-grid { grid-template-columns: 1fr; }
  .story-aside .eyebrow { position: static; }
}
@media (max-width: 720px) {
  .wrap { width: min(calc(100% - 32px), var(--wrap)); }
  .header-inner { min-height: 68px; }
  .menu-toggle {
    display: inline-grid; place-items: center; width: 38px; height: 38px;
    border: 1px solid var(--line); background: transparent; cursor: pointer; position: relative;
  }
  .menu-toggle span[aria-hidden]::before, .menu-toggle span[aria-hidden]::after {
    content: ""; display: block; width: 16px; height: 1px; background: var(--ink); margin: 4px 0;
  }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: .8rem 1.2rem 1.2rem; flex-direction: column; align-items: stretch; gap: 0;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
  .tool-text { display: none; }
  .hero { padding-top: 2.5rem; }
  .hero-art { min-height: 380px; }
  .art-card { min-width: 160px; padding: .8rem; }
  .art-card--nav { left: 0; }
  .art-card--reader { right: 0; }
  .art-card--exam { left: 6%; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid > div:nth-child(3) { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .stats-grid > div:nth-child(4) { border-top: 1px solid var(--line); }
  .product-row, .product-row:nth-child(even) { grid-template-columns: 1fr; }
  .product-row:nth-child(even) .product-copy, .product-row:nth-child(even) .product-visual { order: initial; }
  .product-visual { min-height: 320px; }
  .feature-inline li { grid-template-columns: 1fr; gap: .15rem; }
  .feature-grid, .feature-grid--four, .value-grid, .contact-grid { grid-template-columns: 1fr; }
  .contact-card { min-height: auto; }
  .next-grid { align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  h1 { font-size: clamp(2.1rem, 10vw, 3.2rem); }
  blockquote { font-size: 1.45rem; }
}
@media (max-width: 420px) {
  .header-tools .tool { width: 32px; height: 32px; }
  .hero-actions .button { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Overflow guards */
html, body { overflow-x: clip; }
.hero-grid > *, .product-row > *, .principles-grid > *, .audience-grid > *,
.story-grid > *, .statement-grid > *, .footer-grid > * { min-width: 0; }
.hero-copy, .product-copy, .product-summary, .lead { overflow-wrap: anywhere; }
@media (max-width: 720px) {
  .map-ui, .reader-ui, .exam-ui { width: 100%; max-width: 100%; }
  .product-visual { padding-inline: 6px; }
  .product-visual--large { min-height: 340px; }
  .art-card { max-width: 58%; }
  .art-card--reader { right: 4%; }
  .art-card small { white-space: normal; }
  .art-caption { display: none; }
}


/* Contact extras */
.contact-phone { margin: .35rem 0 0; color: var(--ink-soft); font-size: .8rem; }
.footer-note { display: block; color: rgba(255,255,255,.45); font-size: .7rem; margin-top: -.25rem; }
.footer-bottom a { display: inline; margin: 0; color: inherit; text-decoration: underline; text-underline-offset: .15em; }

/* Hero system map */
.hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0;
  pointer-events: none;
}
.hero-art .art-grid {
  z-index: 0;
  animation: grid-drift 28s linear infinite;
}
.hero-art .route { z-index: 1; pointer-events: none; }
.hero-art::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, transparent 0 44%, rgba(22,93,255,.075) 50%, transparent 56% 100%);
  transform: translateY(-120%);
  animation: hero-scan 7.5s cubic-bezier(.4,0,.2,1) infinite;
}
.art-card {
  z-index: 3; overflow: hidden;
  background: color-mix(in srgb, var(--white) 86%, transparent);
  border-color: color-mix(in srgb, var(--accent) 18%, var(--line));
  box-shadow: 0 18px 50px rgba(7,13,26,.10), 0 0 0 1px rgba(22,93,255,.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.art-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  opacity: .9;
}
.art-card-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: .8rem; margin-bottom: .5rem;
}
.art-card-top span {
  font-family: var(--mono); font-size: .58rem; letter-spacing: .14em;
  color: var(--accent);
}
.art-card b { font-size: 1.08rem; line-height: 1.2; }
.art-card small { margin-top: .2rem; font-size: .74rem; line-height: 1.4; }
.art-meter {
  height: 3px; margin-top: .75rem; overflow: hidden;
  background: color-mix(in srgb, var(--accent) 10%, var(--line));
}
.art-meter i {
  display: block; height: 100%; transform-origin: left;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  animation: meter-breathe 4.5s ease-in-out infinite alternate;
}
.live-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(0,166,200,.12), 0 0 12px rgba(0,166,200,.7);
  animation: live-pulse 2.2s ease-in-out infinite;
}
.hud {
  position: absolute; z-index: 4; display: flex; flex-direction: column; gap: .15rem;
  font-family: var(--mono); font-size: .52rem; letter-spacing: .13em;
  color: color-mix(in srgb, var(--ink) 45%, transparent);
  text-transform: uppercase; pointer-events: none;
}
.hud b { font-weight: 500; color: color-mix(in srgb, var(--accent) 75%, var(--ink)); }
.hud--tl { top: 0; left: 0; }
.hud--tr { top: 0; right: 0; flex-direction: row; align-items: center; gap: .45rem; }
.hud--bl { bottom: 0; left: 0; }
.art-caption { z-index: 4; bottom: 14%; }

@keyframes grid-drift { to { background-position: 52px 52px, 52px 52px; } }
@keyframes hero-scan {
  0% { transform: translateY(-120%); opacity: 0; }
  12% { opacity: 1; }
  55% { opacity: .9; }
  100% { transform: translateY(120%); opacity: 0; }
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .55; transform: scale(.8); }
}
@keyframes meter-breathe { from { transform: scaleX(.72); } to { transform: scaleX(1); } }
@keyframes route-dash { to { stroke-dashoffset: -240; } }

.route-line { animation: route-dash 9s linear infinite; }
.route-line--soft { animation-duration: 14s; animation-direction: reverse; }

@media (max-width: 720px) {
  .hud { display: none; }
  .hero-canvas { opacity: .72; }
  .art-card { width: 58%; min-width: 0; padding: .75rem .8rem; }
  .art-card b { font-size: .98rem; }
  .art-card small { font-size: .68rem; }
  .art-card-top span { font-size: .52rem; }
  .art-card--nav { top: 3%; left: 0; }
  .art-card--reader { top: 38%; right: 0; }
  .art-card--exam { bottom: 1%; left: 6%; }
  .art-caption { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-art .art-grid,
  .hero-art::after,
  .art-meter i,
  .live-dot,
  .route-line { animation: none !important; }
}
