/* 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: 13px; line-height: 18px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: var(--space-3); }
.eyebrow a { color: inherit; text-decoration: none; }
.small, .meta { font-size: 15px; line-height: 24px; 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; }
}
/* Big screens: a wider column and a step up in body size. */
@media (min-width: 1680px) { :root { --page-max: 1280px; } body { font-size: 17px; line-height: 27px; } .site-header nav a { font-size: 16px; } }
@media (min-width: 2200px) { :root { --page-max: 1360px; --header-height: 72px; } body { font-size: 18px; line-height: 28px; } .lead { font-size: 22px; line-height: 33px; max-width: 700px; }
  .site-header nav a { font-size: 17px; } .site-header .sm-btn-sm { height: 42px; font-size: 16px; } .brand img { width: 190px; height: auto; } }

/* ---- 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: 15px; font-weight: 500; }
.site-header nav a[aria-current="page"], .site-header nav a:hover { color: var(--ink); }
.brand { display: inline-flex; flex: none; }
.menu-btn { display: none; font: inherit; font-size: 15px; font-weight: 500; height: 36px; padding-left: var(--space-4); padding-right: var(--space-4); border: 1px solid var(--line-control); border-radius: var(--radius-pill); background: transparent; color: var(--ink); cursor: pointer; }
@media (max-width: 1180px) {
  .site-header nav { display: none; }
  .site-header .sm-btn { margin-left: auto; }
  .menu-btn { display: inline-flex; align-items: center; }
  .site-header.menu-open nav { display: block; position: absolute; left: 0; right: 0; top: var(--header-height); background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-2); }
  .site-header.menu-open nav ul { flex-direction: column; gap: 0; max-width: var(--page-max); margin: 0 auto; padding: var(--space-2) var(--space-5) var(--space-4); }
  .site-header.menu-open nav a { display: block; padding-top: var(--space-3); padding-bottom: var(--space-3); font-size: 18px; border-bottom: 1px solid var(--line); }
  .site-header.menu-open nav li:last-child a { border-bottom: 0; }
}
@media (max-width: 400px) { .brand img { width: 128px; height: auto; } .site-header .wrap { gap: var(--space-3); } .site-header .sm-btn { padding-left: var(--space-3); padding-right: var(--space-3); } }

.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: 15px; line-height: 26px; 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 .card p:not(.layer-tech) { color: #b9bdc3; }   /* .card p comes later and would otherwise set dark grey on the dark card */
.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); }
}

/* The strip image is taller than its frame so it can drift (parallax) without showing an edge. */
.strip { height: clamp(120px, 18vw, 240px); overflow: hidden; }
.strip img { width: 100%; height: calc(100% + 80px); margin-top: -40px; object-fit: cover; }

/* A large, faint ring cropped off the right edge of a white band, drifting slower than the page. */
.has-ring { position: relative; overflow: hidden; isolation: isolate; }
.has-ring > .wrap { position: relative; }
.has-ring .bg-ring { position: absolute; z-index: -1; width: min(900px, 70vw); height: auto; right: max(-360px, -28vw); top: -40px; pointer-events: none; }
.has-ring > .wrap > :not(.bg-ring) { position: relative; z-index: 1; }
@media (max-width: 759px) { .has-ring .bg-ring { display: none; } }

/* Home: what we build, as a two-column list with a small picture beside each line. */
.solution-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5) var(--space-8); }
.solution-list li { display: grid; grid-template-columns: 88px 1fr; gap: var(--space-5); align-items: start; max-width: none; border-top: 1px solid var(--line); padding-top: var(--space-5); }
.solution-list img { width: 88px; height: 88px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff; }
.solution-list h3 { margin-bottom: var(--space-1); }
.solution-list p { color: var(--ink-muted); margin: 0; }
@media (max-width: 760px) { .solution-list { grid-template-columns: 1fr; } .solution-list li { grid-template-columns: 64px 1fr; gap: var(--space-4); } .solution-list img { width: 64px; height: 64px; } }

/* Home: the four industries in one row of square crops. */
.industries .art { aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-sm); margin-bottom: var(--space-4); }
.industries .art img { width: 100%; height: calc(100% + 32px); margin: -16px 0 0; aspect-ratio: auto; object-fit: cover; border-radius: 0; }

/* ---- 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: 16px; line-height: 26px; 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-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: 16px; 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: 13px; line-height: 18px; 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 picture { display: block; }   /* a measurable box for the portrait's parallax */
.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: 15px; 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: 16px; line-height: 25px; }
th, td { text-align: left; vertical-align: top; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line); }
th { font-size: 14px; 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; } }

/* Stat rows: a big mono figure over a short line. .hot is the one figure in orange. */
.stats { list-style: none; padding: 0; margin: 0 0 var(--space-7); display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.stats li { border-top: 1px solid var(--line); padding-top: var(--space-4); max-width: none; }
.stats strong { display: block; font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 500; font-size: 56px; line-height: 60px; letter-spacing: -0.03em; margin-bottom: var(--space-2); }
.stats strong.hot { color: var(--signal-ink); }
.stats span { color: var(--ink-muted); }
.stats-stack { grid-template-columns: 1fr; gap: var(--space-4); margin-bottom: var(--space-5); }
.stats-stack li:first-child { border-top: 0; padding-top: 0; }
.stats-stack strong { font-size: 44px; line-height: 48px; margin-bottom: var(--space-1); }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; } .stats strong { font-size: 44px; line-height: 48px; } }

/* The case-study chart */
.chart { margin: 0 0 var(--space-4); }
.chart-scroll { overflow-x: auto; }
.chart-svg { display: block; width: 100%; min-width: 640px; height: auto; font-family: var(--font-sans); }
.chart-legend { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); font-size: 15px; color: var(--ink-muted); margin-bottom: var(--space-3); max-width: none; }
.chart-legend .key { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: -8px; vertical-align: -1px; }
.key-rel { background: var(--ink); }
.key-sch { background: #a9adb3; }
.ch-rel { fill: var(--ink); }
.ch-sch { fill: #a9adb3; }
.ch-window { fill: var(--surface-sunken); }
.ch-axis { stroke: var(--line-control); stroke-width: 1; }
.ch-target { stroke: var(--signal); stroke-width: 1.5; stroke-dasharray: 5 5; }
.ch-bracket { fill: none; stroke: var(--line-control); stroke-width: 1; }
.ch-value { font-family: var(--font-mono); font-size: 16px; font-weight: 500; fill: var(--ink); stroke: var(--surface); stroke-width: 5px; paint-order: stroke; stroke-linejoin: round; }
.ch-month { font-size: 15px; fill: var(--ink-muted); }
.ch-year { font-size: 13px; fill: var(--ink-muted); }
.ch-note { font-size: 14px; fill: var(--ink-muted); }
.ch-col:hover rect { opacity: 0.82; }
.chart-hint { display: none; margin-bottom: var(--space-2); }
/* Phones: the chart scrolls sideways, so say so, fade the edge, and size the SVG text up (it scales down with the chart). */
@media (max-width: 700px) {
  .chart-hint { display: block; }
  .chart-scroll { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .ch-month, .ch-note { font-size: 18px; }
  .ch-year { font-size: 16px; }
  .ch-value { font-size: 19px; }
}
/* Columns grow in when the chart first comes into view (site.js adds .will-grow, then .is-in). */
.chart.will-grow .ch-col rect { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); transition: transform 700ms var(--ease); transition-delay: calc(var(--i) * 50ms); }
.chart.will-grow .ch-value { opacity: 0; transition: opacity 300ms var(--ease); transition-delay: calc(var(--i) * 50ms + 500ms); }
.chart.will-grow.is-in .ch-col rect { transform: scaleY(1); }
.chart.will-grow.is-in .ch-value { opacity: 1; }
.chart-table { margin-top: var(--space-3); }
.chart-table summary { cursor: pointer; font-size: 15px; color: var(--ink-muted); }
.chart-table .table-wrap { margin-top: var(--space-3); max-width: 520px; }
.chart-caption { max-width: 760px; margin-bottom: var(--space-8); }

/* The case study's headline result: hours to make one video. Dark beside the case study's title, light in the home Proof box.
   site.js adds .will-grow, then .is-in, as for the chart: May's bar draws in, September's shrinks from full to --to and turns orange,
   the number counts down to match, then the old figure is struck through. Selectors carry .hours so .results-note p can't override them. */
.hours { --h-bg: var(--dark-surface); --h-ink: var(--dark-ink); --h-muted: var(--dark-ink-muted); --h-track: var(--dark-line); --h-old: #5d636b;
  position: relative; overflow: hidden; isolation: isolate; background: var(--h-bg); color: var(--h-ink); border-radius: var(--radius-lg); padding: var(--space-7); }
.hours::before { content: ""; position: absolute; z-index: -1; width: 460px; height: 460px; right: -170px; top: -200px; border-radius: 50%; background: radial-gradient(closest-side, rgba(242,85,29,0.30), transparent); pointer-events: none; }
.hours p { max-width: none; }
.hours .hours-eyebrow { font-size: 13px; line-height: 18px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--signal); margin-bottom: var(--space-4); }
.hours .hours-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2) var(--space-5); margin-bottom: var(--space-6); color: var(--h-ink); }
.hours-was { font-family: var(--font-mono); font-size: 28px; line-height: 32px; color: var(--h-muted); white-space: nowrap; }
.hours-was s { text-decoration: none; position: relative; }
.hours-was s::after { content: ""; position: absolute; left: -4px; right: -4px; top: 50%; height: 3px; margin-top: -1px; border-radius: 2px; background: var(--signal); }
.hours-now { font-family: var(--font-mono); font-size: 28px; line-height: 1; white-space: nowrap; }
.hours-now small { font-family: var(--font-sans); font-size: 17px; color: var(--h-muted); }
.hours-now b { font-weight: 500; font-size: 128px; line-height: 0.85; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; }
.hours-bars { display: grid; gap: var(--space-3); margin-bottom: var(--space-5); }
.hours-row { display: grid; grid-template-columns: 72px 1fr 72px; align-items: center; gap: var(--space-3); font-size: 14px; line-height: 20px; color: var(--h-muted); }
.hours-val { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--h-ink); text-align: right; white-space: nowrap; }
.hours-track { height: 14px; border-radius: var(--radius-pill); background: var(--h-track); overflow: hidden; }
.hours-track i { display: block; width: 100%; height: 100%; border-radius: inherit; background: var(--h-old); }
.hours-sep .hours-track i { width: calc(var(--to) * 100%); background: var(--signal); }
.hours figcaption { font-size: 15px; line-height: 24px; color: var(--h-muted); }
.hours.will-grow .hours-may i { width: 0; transition: width 700ms var(--ease); }
.hours.will-grow .hours-sep i { width: 100%; background: var(--h-old); transition: width 1600ms var(--ease) 800ms, background-color 500ms var(--ease) 1900ms; }
.hours.will-grow .hours-was s::after { transform: scaleX(0); transform-origin: 0 50%; transition: transform 450ms var(--ease) 2400ms; }
.hours.will-grow .hours-sep .hours-val, .hours.will-grow .hours-now small, .hours.will-grow figcaption { opacity: 0; transition: opacity 400ms var(--ease) 2400ms; }
.hours.will-grow.is-in .hours-may i { width: 100%; }
.hours.will-grow.is-in .hours-sep i { width: calc(var(--to) * 100%); background: var(--signal); }
.hours.will-grow.is-in .hours-was s::after { transform: scaleX(1); }
.hours.will-grow.is-in .hours-sep .hours-val, .hours.will-grow.is-in .hours-now small, .hours.will-grow.is-in figcaption { opacity: 1; }
.page-head .hours-split { grid-template-columns: 1.1fr 1fr; align-items: center; }
@media (max-width: 860px) { .page-head .hours-split { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .hours { padding: var(--space-6) var(--space-5); }
  .hours-now b { font-size: 104px; }
  .hours-was, .hours-now { font-size: 24px; }
}
/* Light and smaller in the home page's Proof box, above the three stats. */
.hours-compact { --h-bg: transparent; --h-ink: var(--ink); --h-muted: var(--ink-muted); --h-track: var(--surface-sunken); --h-old: #a9adb3;
  border-radius: 0; padding: 0 0 var(--space-5); margin-bottom: var(--space-5); border-bottom: 1px solid var(--line); }
.hours-compact::before { display: none; }
.hours-compact .hours-eyebrow { color: var(--signal-ink); margin-bottom: var(--space-3); }
.hours-compact .hours-head { margin-bottom: var(--space-5); }
.hours-compact .hours-now b { font-size: 96px; }
.hours-compact .hours-was { font-size: 22px; }
.stats-row { gap: var(--space-4); margin-bottom: var(--space-5); }
.stats-row li { border-top: 0; padding-top: 0; }
.stats-row strong { font-size: 36px; line-height: 40px; margin-bottom: var(--space-1); }
.stats-row span { display: block; font-size: 14px; line-height: 20px; }
.results-head { margin-top: var(--space-4); }

/* Qualifications on About */
.creds { margin-bottom: var(--space-8); }
.creds li { border-top: 2px solid var(--ink); padding-top: var(--space-4); }
.creds .layer-tech { text-transform: none; letter-spacing: 0.02em; }   /* keeps "CEng, IChemE" as written */
.creds h3 { margin-bottom: var(--space-1); }
.creds p:not(.layer-tech) { color: var(--ink-muted); margin: 0; }
@media (max-width: 1080px) { .grid-4.creds { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-4.creds { grid-template-columns: 1fr; } }

.results-log { border-top: 1px solid var(--line); }
.results-log dt { font-family: var(--font-mono); font-size: 14px; 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; }
.faq h3 { margin-top: var(--space-6); margin-bottom: var(--space-3); max-width: 820px; }
.faq h2 + h3 { margin-top: var(--space-5); }
.faq details:has(+ h3) { border-bottom: 1px solid var(--line); }

/* 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: 15px; 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: 17px; }
.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; }
/* On the lit hero backdrop: a dark glass fill and a light border, so it reads as a button, not a gap. */
.sm-btn-ghost-light { background: rgba(11,12,14,0.45); color: var(--dark-ink); border-color: rgba(244,244,241,0.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sm-btn-ghost-light:hover { background: rgba(244,244,241,0.14); border-color: var(--dark-ink); }
.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); }
/* The backdrop is lit to about #3a3b3d behind the copy, so the hero's quiet text is lighter than the dark band's usual muted grey. */
.hero-3d .eyebrow { color: #d7d9d4; font-size: clamp(14px, 0.8vw, 18px); line-height: 1.4; }
.hero-3d .lead { color: #c9ccd0; }
.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: clamp(72px, 4.6vw, 112px); line-height: 1; letter-spacing: -0.04em; max-width: 9.5ch; }
.hero-copy .lead { font-size: clamp(20px, 1.2vw, 28px); line-height: 1.45; max-width: 30em; 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); font-size: clamp(36px, 2.4vw, 56px); line-height: 1.15; }
.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: clamp(18px, 1.1vw, 26px); line-height: 1.25; margin-bottom: var(--space-2); }
.hero-labels p { color: #c9ccd0; font-size: clamp(15px, 0.85vw, 20px); line-height: 1.45; margin-bottom: 0; }
.hero-labels .layer-tech { color: var(--signal); font-size: clamp(14px, 0.75vw, 17px); }
.is-3d .hero-labels .layer-tech, .is-3d .hero-labels h3 { text-shadow: 0 1px 8px rgba(0,0,0,0.6); }   /* holds contrast where the backdrop is lit */
.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-copy .lead { font-size: 18px; }
  .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.js sets --p (scroll progress),
   --open (how far apart the ring is), and the opacities --copy, --head and --end. */
.hero-3d.is-3d { height: 280vh; }
.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 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: var(--copy, 1); transform: translateY(calc((1 - var(--copy, 1)) * -80px)); }
.is-3d.is-past-copy .hero-copy { visibility: hidden; }
/* Scroll rail: a thin track at the bottom centre that fills as the section is scrolled, so it is clear the page carries on. */
.is-3d .hero-scroll { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); position: absolute; left: 50%; bottom: var(--space-5); transform: translateX(-50%); z-index: 4; margin: 0; max-width: none; pointer-events: none;
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: #d7d9d4; opacity: calc(1 - var(--end, 0)); }
.hero-scroll .rail { display: block; width: 2px; height: 64px; background: var(--dark-line); border-radius: 1px; overflow: hidden; }
.hero-scroll .rail::after { content: ""; display: block; width: 100%; height: 100%; background: var(--dark-ink); transform-origin: top; transform: scaleY(var(--p, 0)); }
.is-3d .hero-explain { position: absolute; left: 0; right: 0; top: 0; background: none; padding-top: calc(var(--header-height) + var(--space-6)); z-index: 3; pointer-events: none; opacity: var(--head, 0); }
.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: clamp(320px, 23vw, 480px); border-top: 0; padding-top: 0; opacity: 0; will-change: transform, opacity; }
@media (max-width: 1199px) { .is-3d .hero-labels .layer p:not(.layer-tech) { display: none; } }
.is-3d.is-tight .hero-labels .layer p:not(.layer-tech) { display: none; }   /* set by hero.js when five full labels won't fit */
.is-3d .hero-lines path { fill: none; stroke: var(--dark-ink-muted); stroke-width: 1; }
.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: var(--end, 0); 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: clamp(56px, 3.6vw, 88px); line-height: 1.05; letter-spacing: -0.035em; max-width: 11ch; }
.is-3d.is-at-end .hero-close .sm-btn { pointer-events: auto; }
.is-3d:not(.is-at-end) .hero-close { visibility: hidden; }   /* keeps its button out of the tab order until it shows */
@media (max-width: 759px) {
  .hero-3d.is-3d { height: 240vh; }
  .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: 17px; line-height: 25px; margin-bottom: var(--space-5); }
  .is-3d .hero-copy .actions { gap: var(--space-2); }
  .is-3d .hero-copy .sm-btn-lg { height: 46px; font-size: 16px; }
  .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: var(--consent-h, 0px); 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: 108px; margin: 0; white-space: nowrap; font-size: 13px; }
  .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 ------------------------------------------------------------ */
/* The home-page teaser: a dark panel with question 1 answerable on the spot. */
.band-tight { padding-top: var(--space-7); padding-bottom: var(--space-7); }
.sc-teaser { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: center; background: var(--dark-surface); color: var(--dark-ink); border-radius: var(--radius-lg); padding: var(--space-8); position: relative; overflow: hidden; }
.sc-teaser h2 { color: var(--dark-ink); }
.sc-teaser .eyebrow { color: var(--signal); }
.sc-teaser .lead { color: #c9ccd0; margin-bottom: var(--space-6); }
.sc-teaser .actions { margin-bottom: 0; }
.sc-start { background: var(--dark-raised); border: 1px solid var(--dark-line); border-radius: var(--radius-md); padding: var(--space-6); }
.sc-start .eyebrow { color: var(--dark-ink-muted); font-family: var(--font-mono); letter-spacing: 0.06em; }
.sc-start-q { font-size: 20px; line-height: 29px; font-weight: 500; color: var(--dark-ink); margin-bottom: var(--space-5); }
.sc-start-opts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.sc-start-opts a { display: inline-flex; align-items: center; min-height: 44px; padding: var(--space-2) var(--space-4); border: 1px solid #5d6168; border-radius: var(--radius-pill); color: var(--dark-ink); text-decoration: none; font-size: 16px; transition: background-color 180ms var(--ease), border-color 180ms var(--ease); }
.sc-start-opts a:hover { background: rgba(244,244,241,0.1); border-color: var(--dark-ink); }
@media (max-width: 860px) { .sc-teaser { grid-template-columns: 1fr; gap: var(--space-6); padding: var(--space-7) var(--space-5); } .sc-start { padding: var(--space-5); } }
.nudge { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4) var(--space-6); }
.nudge p { margin: 0; font-size: 20px; line-height: 29px; font-weight: 500; max-width: 40ch; }
.ticks-row { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); margin-bottom: 0; }
.ticks-row li { margin-bottom: 0; }
.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: 640px; margin-right: 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: 15px; line-height: 23px; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.consent p { margin: 0; flex: 1 1 300px; color: var(--ink-muted); }
@media (min-width: 760px) { .consent { flex-wrap: nowrap; padding-top: var(--space-3); padding-bottom: var(--space-3); } }
.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; } }
