/* Spare Mind AI site styles. Hand-edited; the build never writes this file.
   Tokens follow 10 Brand & Design/Design System/tokens.json.
   Layout rule: padding longhands only on shared classes, so two classes on one element never cancel each other out. */

@font-face { font-family: "Geist"; src: url("/assets/fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --surface: #ffffff; --surface-raised: #ffffff; --surface-sunken: #f5f5f3;
  --line: #e5e5e1; --line-control: #80848b;
  --ink: #0e0f11; --ink-muted: #5b5f66; --on-ink: #ffffff;
  --signal: #f2551d; --signal-ink: #c2410c; --signal-soft: #fff0ea; --on-signal: #0e0f11;
  --steel: #2d5b86; --ok: #1d7a4b; --danger: #b42318; --focus: var(--signal);
  /* The one dark band per page (the home hero, the services layers band) uses the dark-theme values. */
  --dark-surface: #0b0c0e; --dark-raised: #15171a; --dark-line: #26292d; --dark-ink: #f4f4f1; --dark-ink-muted: #a2a7ae;
  --font-sans: "Geist", -apple-system, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px;
  --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px; --space-10: 144px;
  --radius-xs: 4px; --radius-sm: 8px; --radius-md: 14px; --radius-lg: 24px; --radius-pill: 999px;
  --shadow-1: 0 1px 2px rgba(14,15,17,0.06), 0 1px 1px rgba(14,15,17,0.04);
  --shadow-2: 0 16px 40px rgba(14,15,17,0.10), 0 2px 6px rgba(14,15,17,0.06);
  --page-max: 1200px; --measure: 680px; --header-height: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-sans); font-size: 16px; line-height: 26px; background: var(--surface); color: var(--ink); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
figure { margin: 0; }

.wrap { max-width: var(--page-max); margin-left: auto; margin-right: auto; padding-left: var(--space-5); padding-right: var(--space-5); }
.wrap.narrow { max-width: calc(var(--measure) + 2 * var(--space-5)); }
@media (max-width: 640px) { .wrap { padding-left: var(--space-4); padding-right: var(--space-4); } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--space-4); top: var(--space-4); background: var(--surface); padding: var(--space-2) var(--space-3); z-index: 50; }

/* ---- Type ------------------------------------------------------------------ */
h1, h2, h3 { font-weight: 600; margin-top: 0; margin-bottom: var(--space-4); text-wrap: balance; }
h1 { font-size: 56px; line-height: 60px; letter-spacing: -0.035em; max-width: 18ch; }
h2 { font-size: 36px; line-height: 42px; letter-spacing: -0.025em; max-width: 24ch; }
h3 { font-size: 20px; line-height: 26px; letter-spacing: -0.015em; }
p, ul, ol, dl { margin-top: 0; margin-bottom: var(--space-4); }
p, li { max-width: var(--measure); }
.lead { font-size: 20px; line-height: 30px; color: var(--ink-muted); max-width: 640px; }
h2 + .lead, h1 + .lead { margin-bottom: var(--space-7); }
.eyebrow { font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: var(--space-3); }
.eyebrow a { color: inherit; text-decoration: none; }
.small, .meta { font-size: 14px; line-height: 22px; color: var(--ink-muted); }
@media (max-width: 640px) {
  h1 { font-size: 40px; line-height: 44px; }
  h2 { font-size: 28px; line-height: 34px; }
  .lead { font-size: 18px; line-height: 28px; }
}

/* ---- Header and footer --------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,0.92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: var(--space-5); height: var(--header-height); }
.site-header nav { margin-left: auto; }
.site-header nav ul { display: flex; gap: var(--space-5); list-style: none; margin: 0; padding: 0; }
.site-header nav a { color: var(--ink-muted); text-decoration: none; font-size: 14px; font-weight: 500; }
.site-header nav a[aria-current="page"], .site-header nav a:hover { color: var(--ink); }
.brand { display: inline-flex; flex: none; }
@media (max-width: 860px) { .site-header nav { display: none; } .site-header .sm-btn { margin-left: auto; } }
@media (max-width: 400px) { .brand img { width: 138px; height: auto; } }

.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-6); padding-top: var(--space-8); padding-bottom: var(--space-8); font-size: 14px; line-height: 24px; color: var(--ink-muted); }
.footer-grid img { margin-bottom: var(--space-4); }
.footer-grid a { color: var(--ink-muted); text-decoration: none; }
.footer-grid a:hover { color: var(--ink); text-decoration: underline; }
.footer-head { color: var(--ink); font-weight: 500; margin-bottom: var(--space-2); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

/* ---- Sections ------------------------------------------------------------- */
.band { padding-top: var(--space-9); padding-bottom: var(--space-9); }
.band-sunken { background: var(--surface-sunken); }
.page-head { padding-top: var(--space-9); padding-bottom: var(--space-7); }
.page-head + .band { padding-top: var(--space-7); }
.band-dark { background: var(--dark-surface); color: var(--dark-ink); }
.band-dark h2, .band-dark h3 { color: var(--dark-ink); }
.band-dark .lead, .band-dark .eyebrow, .band-dark p { color: var(--dark-ink-muted); }
.band-dark .card { background: var(--dark-raised); border-color: var(--dark-line); }
.band-dark .layer-tech { color: var(--signal); }
@media (max-width: 640px) {
  .band { padding-top: var(--space-8); padding-bottom: var(--space-8); }
  .page-head { padding-top: var(--space-8); padding-bottom: var(--space-6); }
}

.strip img { width: 100%; height: clamp(120px, 18vw, 240px); object-fit: cover; }

/* ---- Grids and cards ------------------------------------------------------ */
.grid { list-style: none; padding: 0; margin: 0 0 var(--space-6); display: grid; gap: var(--space-5); }
.grid > li { max-width: none; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1080px) { .grid-4, .grid-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) { .grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; } }

.card { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-5); }
.band-sunken .card { border-color: var(--line); }
.card h3 { margin-bottom: var(--space-2); }
.card p { color: var(--ink-muted); font-size: 15px; line-height: 24px; margin-bottom: 0; }
.card-art img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: var(--space-4); background: #fff; }
.card-wide img { aspect-ratio: 1080 / 725; }
.card-offer img { width: 72px; height: 72px; aspect-ratio: 1; margin-bottom: var(--space-4); }
.card-offer .price { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 500; color: var(--ink); font-size: 15px; margin-bottom: var(--space-2); }
.card-link { margin-top: var(--space-3); }
.card-link a { font-weight: 500; }
.layer-tech { font-family: var(--font-mono); font-size: 12px; line-height: 16px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: var(--space-2); }

.numbered { counter-reset: step; }
.numbered > li { counter-increment: step; position: relative; }
.numbered > li h3::before { content: counter(step, decimal-leading-zero) "  "; font-family: var(--font-mono); font-weight: 500; color: var(--ink-muted); }

.plain-list { list-style: none; padding: 0; gap: var(--space-6) var(--space-7); }
.plain-list > li, .plain-list > div { border-top: 1px solid var(--line); padding-top: var(--space-4); }
.plain-list p { color: var(--ink-muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: center; }
.split-photo { grid-template-columns: minmax(240px, 360px) 1fr; }
@media (max-width: 860px) { .split, .split-photo { grid-template-columns: 1fr; gap: var(--space-6); } }

.portrait img { border-radius: var(--radius-lg); width: 100%; }
.portrait { max-width: 360px; }
.portrait-lg { max-width: 420px; }

.callout { background: var(--signal-soft); border-radius: var(--radius-md); padding: var(--space-6); margin-top: var(--space-6); }
.callout h3 { margin-bottom: var(--space-2); }
.callout p:last-child { margin-bottom: 0; }

.results-note { border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-6); background: var(--surface-raised); }
.results-note p { color: var(--ink-muted); margin-bottom: 0; }

.cta-panel { background: var(--surface-sunken); border-radius: var(--radius-lg); padding: var(--space-8) var(--space-7); }
.cta-panel .actions { margin-top: var(--space-5); }
.band-sunken .cta-panel { background: var(--surface); }
@media (max-width: 640px) { .cta-panel { padding: var(--space-7) var(--space-5); } }

.layer-figure img { border-radius: var(--radius-lg); }
@media (max-width: 560px) { .grid.layer-cards { grid-template-columns: 1fr 1fr; gap: var(--space-3); } .layer-cards .card { padding: var(--space-4); } .layer-cards .card p:not(.layer-tech) { display: none; } }

/* Facts, tables, results */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5) var(--space-7); margin-bottom: var(--space-6); }
.facts > div { border-top: 1px solid var(--line); padding-top: var(--space-4); }
.facts dt { font-size: 14px; font-weight: 500; color: var(--ink-muted); margin-bottom: var(--space-1); }
.facts dd { margin: 0; font-size: 17px; line-height: 27px; }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr; } }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 23px; }
th, td { text-align: left; vertical-align: top; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line); }
th { font-size: 13px; font-weight: 500; color: var(--ink-muted); background: var(--surface-sunken); }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 500; white-space: nowrap; }
@media (max-width: 640px) { table { min-width: 620px; } }

.results-log { border-top: 1px solid var(--line); }
.results-log dt { font-family: var(--font-mono); font-size: 13px; color: var(--ink-muted); padding-top: var(--space-4); }
.results-log dd { margin: 0; padding-bottom: var(--space-4); border-bottom: 1px solid var(--line); max-width: var(--measure); }

.ticks { list-style: none; padding: 0; margin-bottom: var(--space-6); }
.ticks li { position: relative; padding-left: var(--space-6); margin-bottom: var(--space-2); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 12px; height: 12px; border: 2px solid var(--ink); border-radius: 50%; }

/* FAQ */
.faq details { border-top: 1px solid var(--line); max-width: 820px; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: var(--space-4) var(--space-7) var(--space-4) 0; font-weight: 500; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: var(--space-2); top: var(--space-4); font-family: var(--font-mono); color: var(--ink-muted); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--ink-muted); padding-bottom: var(--space-4); margin: 0; }

/* Prose (legal pages and posts) */
.prose { max-width: var(--measure); }
.prose h2 { font-size: 24px; line-height: 30px; letter-spacing: -0.015em; margin-top: var(--space-7); }
.prose h3 { margin-top: var(--space-6); }
.prose ul, .prose ol { padding-left: var(--space-5); }
.prose li { margin-bottom: var(--space-2); }
.prose blockquote { margin: var(--space-6) 0; padding-left: var(--space-5); border-left: 2px solid var(--ink); font-size: 18px; line-height: 28px; }
.prose code { font-family: var(--font-mono); font-size: 0.9em; background: var(--surface-sunken); padding: 1px 6px; border-radius: var(--radius-xs); }

/* Blog */
.post-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-7) var(--space-6); }
.post-card { max-width: none; }
.post-card a { text-decoration: none; display: block; }
.post-card img { border-radius: var(--radius-md); border: 1px solid var(--line); margin-bottom: var(--space-4); width: 100%; }
.post-card h2 { font-size: 24px; line-height: 30px; letter-spacing: -0.015em; margin-bottom: var(--space-2); }
.post-card a:hover h2 { text-decoration: underline; text-decoration-thickness: 1px; }
.post-card p { color: var(--ink-muted); }
.post-card .meta { margin-bottom: var(--space-2); }
@media (max-width: 760px) { .post-list { grid-template-columns: 1fr; } }
.post { padding-top: var(--space-9); padding-bottom: var(--space-9); }
.post h1 { font-size: 48px; line-height: 54px; }
.post .banner { margin: var(--space-6) 0; }
.post .banner img { border-radius: var(--radius-lg); border: 1px solid var(--line); width: 100%; }
.post-cta { margin-top: var(--space-8); padding: var(--space-6); border-radius: var(--radius-md); background: var(--surface-sunken); }
.post-cta p:first-child { font-weight: 500; font-size: 18px; }
.post-cta p:last-child { margin-bottom: 0; display: flex; flex-wrap: wrap; gap: var(--space-3); }
@media (max-width: 640px) { .post { padding-top: var(--space-8); } .post h1 { font-size: 36px; line-height: 42px; } }

/* Booking */
.cal-wrap { min-height: 560px; }
.cal-inline { min-height: 520px; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; background: var(--surface); }
.cal-inline.is-loading:empty { display: grid; place-items: center; color: var(--ink-muted); font-size: 14px; }
.cal-inline.is-loading:empty::before { content: "Loading the calendar"; }
.cal-fallback { margin-top: var(--space-3); }
.page-head .split { align-items: start; }

.notfound img { width: 72px; height: 72px; margin-bottom: var(--space-6); }

/* ---- Buttons (the design system's Button component) ----------------------- */
.sm-btn { font: inherit; font-size: 14px; line-height: 20px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); border-radius: var(--radius-pill); border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background-color 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease); }
.sm-btn:hover { text-decoration: none; }
.sm-btn { height: 44px; padding-left: var(--space-5); padding-right: var(--space-5); }
.sm-btn-sm { height: 36px; padding-left: var(--space-4); padding-right: var(--space-4); }
.sm-btn-lg { height: 52px; padding-left: var(--space-6); padding-right: var(--space-6); font-size: 16px; }
.sm-btn-primary { background: var(--ink); color: var(--on-ink); }
.sm-btn-primary:hover { background: #2a2c30; }
.sm-btn-secondary { background: transparent; color: var(--ink); border-color: var(--line-control); }
.sm-btn-secondary:hover { background: var(--surface-sunken); }
.sm-btn-light { background: var(--dark-ink); color: var(--ink); }
.sm-btn-light:hover { background: #ffffff; }
.sm-btn-ghost-light { background: transparent; color: var(--dark-ink); border-color: #6c7178; }
.sm-btn-ghost-light:hover { background: rgba(255,255,255,0.08); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); max-width: none; }
@media (max-width: 420px) { .actions .sm-btn-lg { width: 100%; } }

/* ---- Home hero ------------------------------------------------------------
   Without 3D (no JavaScript, no WebGL, or reduced motion) it is a plain dark band:
   the assembled ring beside the headline, then the exploded ring and the five layers.
   With 3D (.is-3d) the stage pins for the height of the section and hero.js sets
   --p (scroll progress 0..1) and --open (how far apart the ring is). */
.hero-3d { position: relative; background: var(--dark-surface); color: var(--dark-ink); overflow: clip; }
.hero-stage { position: relative; }
.hero-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-3d h1, .hero-3d h2, .hero-3d h3 { color: var(--dark-ink); }
.hero-3d .eyebrow { color: var(--dark-ink-muted); }
.hero-3d .lead { color: var(--dark-ink-muted); }
.hero-canvas, .hero-lines { display: none; }

/* Static layout: the poster and the headline share the first grid row; the rest follows below. */
.hero-3d:not(.is-3d) .hero-stage { display: grid; grid-template-columns: minmax(0, 1fr); }
.hero-3d:not(.is-3d) .hero-poster, .hero-3d:not(.is-3d) .hero-copy { grid-row: 1; grid-column: 1; }
.hero-poster { position: relative; z-index: 1; }
.hero-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-copy { position: relative; z-index: 2; min-height: min(860px, calc(100svh - var(--header-height))); display: flex; align-items: center; padding-top: var(--space-9); padding-bottom: var(--space-9); }
.hero-copy .wrap { width: 100%; }
.hero-copy h1 { font-size: 80px; line-height: 80px; letter-spacing: -0.04em; max-width: 9.5ch; }
.hero-copy .lead { max-width: 520px; margin-bottom: var(--space-6); }
.hero-scroll { display: none; }
.hero-explain { position: relative; z-index: 2; background: var(--dark-surface); padding-top: var(--space-9); }
.hero-explain h2 { margin-bottom: var(--space-6); }
.hero-static { position: relative; z-index: 2; background: var(--dark-surface); }
.hero-static img { width: 100%; max-width: 1200px; margin-left: auto; margin-right: auto; }
.hero-labels { position: relative; z-index: 2; background: var(--dark-surface); list-style: none; margin: 0; padding: var(--space-6) max(var(--space-5), calc((100% - var(--page-max)) / 2 + var(--space-5))) var(--space-8); display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-5); }
.hero-labels .layer { border-top: 1px solid var(--dark-line); padding-top: var(--space-4); max-width: none; }
.hero-labels h3 { font-size: 17px; line-height: 23px; margin-bottom: var(--space-2); }
.hero-labels p { color: var(--dark-ink-muted); font-size: 14px; line-height: 22px; margin-bottom: 0; }
.hero-labels .layer-tech { color: var(--signal); font-size: 11px; }
.hero-close { position: relative; z-index: 2; background: var(--dark-surface); padding-bottom: var(--space-9); }
.hero-close .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-5); border-top: 1px solid var(--dark-line); padding-top: var(--space-7); }
.hero-close p { font-size: 28px; line-height: 34px; font-weight: 600; letter-spacing: -0.02em; margin: 0; max-width: 22ch; }
@media (max-width: 1080px) { .hero-labels { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 759px) {
  .hero-copy { align-items: flex-start; padding-top: var(--space-8); min-height: 0; padding-bottom: 104vw; }
  .hero-copy h1 { font-size: 46px; line-height: 48px; }
  .hero-poster img { object-fit: contain; object-position: 50% 100%; }
  .hero-labels { grid-template-columns: 1fr 1fr; }
  .hero-explain { padding-top: var(--space-8); }
}
@media (max-width: 480px) { .hero-labels { grid-template-columns: 1fr; } }

/* 3D layout: a pinned stage that the page scrolls past */
.hero-3d.is-3d { height: 420vh; }
.is-3d .hero-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.is-3d .hero-canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.is-3d .hero-lines { display: block; position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; overflow: visible; }
.is-3d .hero-lines line { stroke: var(--dark-ink-muted); stroke-width: 1; }
.is-3d .hero-lines circle { fill: var(--dark-ink); }
.is-3d.is-live .hero-poster { display: none; }
.is-3d .hero-static { display: none; }
.is-3d .hero-copy { position: absolute; inset: 0; min-height: 0; padding-top: var(--header-height); padding-bottom: 0; z-index: 3;
  opacity: clamp(0, calc(1 - (var(--p, 0) - 0.04) * 9), 1); transform: translateY(calc(var(--p, 0) * -120px)); }
.is-3d .hero-copy .lead { max-width: 480px; }
.is-3d .hero-scroll { display: block; position: absolute; left: 0; right: 0; bottom: var(--space-6); text-align: center; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dark-ink-muted); margin: 0; max-width: none; }
.is-3d .hero-scroll::after { content: ""; display: block; width: 1px; height: 28px; margin: var(--space-2) auto 0; background: var(--dark-ink-muted); }
.is-3d .hero-explain { position: absolute; left: 0; right: 0; top: 0; background: none; padding-top: calc(var(--header-height) + var(--space-5)); z-index: 3; pointer-events: none;
  opacity: clamp(0, calc((var(--open, 0) - 0.3) * 3), 1); }
.is-3d .hero-explain h2 { max-width: 15ch; }
.is-3d .hero-labels { position: absolute; inset: 0; display: block; padding: 0; background: none; z-index: 3; pointer-events: none; }
.is-3d .hero-labels .layer { position: absolute; left: 0; top: 0; width: min(25%, 340px); border-top: 0; padding-top: 0; opacity: 0; will-change: transform, opacity; }
.is-3d .hero-labels .layer p:not(.layer-tech) { font-size: 13px; line-height: 20px; }
@media (max-width: 1199px), (max-height: 819px) { .is-3d .hero-labels .layer p:not(.layer-tech) { display: none; } }
.is-3d .hero-close { position: absolute; inset: 0; display: flex; align-items: center; background: none; padding-top: var(--header-height); padding-bottom: 0; z-index: 3;
  opacity: clamp(0, calc((var(--p, 0) - 0.88) * 9), 1); pointer-events: none; }
.is-3d .hero-close .wrap { width: 100%; border-top: 0; padding-top: 0; flex-direction: column; align-items: flex-start; justify-content: center; }
.is-3d .hero-close p { font-size: 56px; line-height: 60px; letter-spacing: -0.035em; max-width: 11ch; }
.is-3d .hero-close .sm-btn { pointer-events: auto; }
@media (max-width: 759px) {
  .is-3d .hero-copy { padding-top: calc(var(--header-height) - var(--space-4)); }
  .is-3d .hero-copy .wrap { padding-top: var(--space-5); }
  .is-3d .hero-copy h1 { font-size: 40px; line-height: 42px; }
  .is-3d .hero-copy .lead { font-size: 16px; line-height: 24px; margin-bottom: var(--space-5); }
  .is-3d .hero-copy .sm-btn-ghost-light, .is-3d .hero-scroll { display: none; }
  .is-3d .hero-explain { padding-top: var(--space-6); }
  .is-3d .hero-explain h2 { font-size: 26px; line-height: 31px; }
  .is-3d .hero-labels { top: auto; bottom: 0; padding: 0 var(--space-4) var(--space-6); display: grid; grid-template-columns: 1fr; gap: var(--space-2); }
  .is-3d .hero-labels .layer { position: static; width: auto; display: flex; gap: var(--space-3); align-items: baseline; }
  .is-3d .hero-labels .layer h3 { font-size: 15px; line-height: 20px; margin: 0; }
  .is-3d .hero-labels .layer p:not(.layer-tech) { display: none; }
  .is-3d .hero-labels .layer-tech { flex: none; width: 92px; margin: 0; }
  .is-3d .hero-close { align-items: flex-start; padding-top: calc(var(--header-height) + var(--space-5)); }
  .is-3d .hero-close p { font-size: 36px; line-height: 40px; }
}

/* ---- Scorecard ------------------------------------------------------------ */
.scorecard { max-width: 760px; }
.sc-q { border: 0; border-top: 1px solid var(--line); margin: 0; padding: var(--space-5) 0; }
.sc-q legend { font-weight: 500; font-size: 17px; line-height: 26px; padding: 0; margin-bottom: var(--space-3); max-width: var(--measure); }
.sc-q legend span { font-family: var(--font-mono); color: var(--ink-muted); margin-right: var(--space-2); font-weight: 400; }
.sc-opts { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.sc-opts label { display: inline-flex; align-items: center; gap: var(--space-2); border: 1px solid var(--line-control); border-radius: var(--radius-pill); padding: var(--space-2) var(--space-4); cursor: pointer; font-size: 15px; transition: background-color 180ms var(--ease), border-color 180ms var(--ease); }
.sc-opts input { accent-color: var(--ink); margin: 0; }
.sc-opts label:has(input:checked) { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.sc-opts label:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.sc-error { color: var(--danger); font-size: 14px; }
.scorecard-result { max-width: 760px; }
.scorecard, .scorecard-result, .sc-q, [id] { scroll-margin-top: calc(var(--header-height) + var(--space-5)); }
.sc-score { display: flex; align-items: baseline; gap: var(--space-3); margin-bottom: var(--space-3); }
.sc-score strong { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 64px; line-height: 64px; font-weight: 500; letter-spacing: -0.03em; }
.sc-bar { height: 8px; border-radius: var(--radius-pill); background: var(--line); overflow: hidden; margin-bottom: var(--space-6); max-width: 520px; }
.sc-bar span { display: block; height: 100%; background: var(--signal); }
.sc-band { font-size: 24px; line-height: 30px; font-weight: 600; letter-spacing: -0.015em; }
.sc-send { margin-top: var(--space-7); padding: var(--space-6); background: var(--surface-sunken); border-radius: var(--radius-md); }
.field { display: grid; gap: var(--space-1); margin-bottom: var(--space-4); max-width: 420px; }
.field label { font-size: 14px; font-weight: 500; }
.field input { font: inherit; height: 44px; padding: 0 var(--space-3); border: 1px solid var(--line-control); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Analytics notice ----------------------------------------------------- */
.consent { position: fixed; left: var(--space-4); right: var(--space-4); bottom: var(--space-4); z-index: 40; max-width: 560px; margin-left: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-2); padding: var(--space-4) var(--space-5); font-size: 14px; line-height: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.consent p { margin: 0; flex: 1 1 260px; color: var(--ink-muted); }
.consent .sm-btn { height: 36px; padding-left: var(--space-4); padding-right: var(--space-4); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
