/*
  Keystone Capital — site styles
  Layout concept: a calm porcelain page carrying a night-navy "arch" hero; content sits on a
  golden-ratio column; classical details (Greek key bands, Roman numerals, inscriptional caps)
  are line work in gold. Jade = the base, gold = the bets, cinnabar only for costs.
*/
:root {
  --bg: #F3F6F5;
  --surface: #FFFFFF;
  --ink: #12263A;
  --muted: #55656E;
  --line: #D6DFDB;
  --jade: #1C7A61;
  --jade-soft: #E2F0EB;
  --gold: #A87A1F;
  --gold-bright: #D2A446;
  --gold-soft: #F6EEDA;
  --cinnabar: #B0372B;
  --cinnabar-soft: #F7E4E1;
  --stone: #8E887D;         /* keystone logo stone */
  /* The hero band is night navy in both themes, by design. */
  --night: #0E1F2E;
  --night-2: #142B3E;
  --night-ink: #EEF2EF;
  --night-muted: #A9B8BF;

  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --font-inscription: "Cinzel", "Trajan Pro", Georgia, serif;
  --font-num: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --font-zh: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;

  /* Golden-ratio type scale (base 16px) */
  --t-sm: 0.875rem;
  --t-base: 1rem;
  --t-md: 1.272rem;
  --t-lg: 1.618rem;
  --t-xl: 2.618rem;
  --t-xxl: clamp(2.6rem, 6.5vw, 4.236rem);

  --measure: 64ch;
  --wide: 1160px;
  --radius: 14px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1620; --surface: #11202D; --ink: #E7EEEB; --muted: #94A6AD; --line: #22374A;
    --jade: #4FBF9A; --jade-soft: #153A33; --gold: #E1B65A; --gold-bright: #E9C46E; --gold-soft: #3A3020;
    --cinnabar: #E46B5D; --cinnabar-soft: #3D2120; --night: #08131C; --night-2: #0F2030; --stone: #CFC9BE;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B1620; --surface: #11202D; --ink: #E7EEEB; --muted: #94A6AD; --line: #22374A;
  --jade: #4FBF9A; --jade-soft: #153A33; --gold: #E1B65A; --gold-bright: #E9C46E; --gold-soft: #3A3020;
  --cinnabar: #E46B5D; --cinnabar-soft: #3D2120; --night: #08131C; --night-2: #0F2030; --stone: #CFC9BE;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: var(--t-base); line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--jade); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; margin: 0; }
h1 { font-size: var(--t-xxl); font-weight: 700; }
h2 { font-size: var(--t-xl); font-weight: 700; }
h3 { font-size: var(--t-md); font-weight: 600; }
p { margin: 0; }
.zh { font-family: var(--font-zh); font-weight: 500; letter-spacing: 0.04em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 16px; }

/* ---------- layout ---------- */
.wrap { max-width: var(--wide); margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.section { padding-block: clamp(56px, 9vw, 104px); }
.section + .section { padding-top: 0; }
.stack { display: grid; gap: 20px; }
.lede { font-size: var(--t-md); color: var(--muted); max-width: var(--measure); }
.prose { max-width: var(--measure); display: grid; gap: 14px; }
.prose p, .prose li { color: var(--ink); }
.eyebrow {
  font-family: var(--font-inscription); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold);
}
.section-head { display: grid; gap: 14px; margin-bottom: 40px; max-width: 760px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }
.grid-2 > *, .grid-3 > * { min-width: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; font: 600 0.95rem/1 var(--font-body);
  padding: 14px 22px; border-radius: 999px; text-decoration: none; border: 1.5px solid transparent;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn-primary { background: var(--gold-bright); color: #1A1406; }
.btn-primary:hover { background: var(--gold); color: #fff; }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { color: var(--gold-bright); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- preview ribbon ---------- */
.preview-ribbon {
  background: var(--gold-soft); color: var(--ink); font-size: 0.8rem; text-align: center;
  padding: 6px var(--gutter-r) 6px var(--gutter-l);
}

/* ---------- header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
.site-header .hbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand svg { width: 36px; height: 36px; flex: none; color: var(--stone); }
.brand .word { display: grid; justify-items: center; font-family: var(--font-inscription); text-transform: uppercase; line-height: 1; gap: 5px; }
.brand .w1 { font-weight: 500; font-size: 1.08rem; letter-spacing: 0.2em; margin-right: -0.2em; }
.brand .w2 { font-family: var(--font-body); font-weight: 500; font-size: 0.56rem; letter-spacing: 0.52em; margin-right: -0.52em; color: var(--muted); }
.site-footer .brand .w2 { color: var(--night-muted); }
.site-footer .brand svg { color: #CFC9BE; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--jade); }
.nav .btn { padding: 11px 18px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; color: var(--ink); font: 600 0.9rem var(--font-body); cursor: pointer; }
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
         background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px var(--gutter-r) 16px var(--gutter-l); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; justify-content: center; border-bottom: 0; }
}

/* ---------- hero (night band) ---------- */
.hero { background: radial-gradient(120% 90% at 75% 20%, var(--night-2), var(--night) 60%); color: var(--night-ink); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 32px; align-items: center; padding-block: clamp(48px, 8vw, 96px); }
.hero h1 { color: var(--night-ink); }
.hero h1 .bets { color: var(--gold-bright); display: inline-block; }
.hero .lede { color: var(--night-muted); }
.hero .eyebrow { color: var(--gold-bright); }
.hero-copy { display: grid; gap: 22px; }
.hero-art { position: relative; aspect-ratio: 1 / 0.9; width: 100%; max-width: 100%; }
.hero-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-art { order: -1; max-width: 420px; justify-self: center; aspect-ratio: 1 / 0.75; }
}
.hero.compact .wrap { grid-template-columns: minmax(0, 1fr); padding-block: clamp(40px, 6vw, 72px); }
.hero.compact .hero-copy { max-width: 820px; }

/* Kinetic type: "Back the bets." breathes in weight (variable font). */
@keyframes breathe { 0%, 100% { font-variation-settings: "wght" 600; letter-spacing: -0.01em; } 50% { font-variation-settings: "wght" 800; letter-spacing: 0.005em; } }
@media (prefers-reduced-motion: no-preference) { .hero h1 .bets { animation: breathe 5s ease-in-out infinite; } }

/* ---------- Greek key band ---------- */
.meander {
  height: 14px; background: var(--gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='14' viewBox='0 0 24 14'%3E%3Cpath d='M0 12.5h4.5V1.5h13v8h-8v-4h4' fill='none' stroke='black' stroke-width='1.5'/%3E%3Cpath d='M4.5 12.5H24' fill='none' stroke='black' stroke-width='1.5'/%3E%3C/svg%3E") repeat-x left center / 24px 14px;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='14' viewBox='0 0 24 14'%3E%3Cpath d='M0 12.5h4.5V1.5h13v8h-8v-4h4' fill='none' stroke='black' stroke-width='1.5'/%3E%3Cpath d='M4.5 12.5H24' fill='none' stroke='black' stroke-width='1.5'/%3E%3C/svg%3E") repeat-x left center / 24px 14px;
  opacity: .7;
}
.meander.short { max-width: 168px; }

/* ---------- problem ---------- */
.problem { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.618fr); gap: 40px; align-items: start; }
@media (max-width: 820px) { .problem { grid-template-columns: minmax(0, 1fr); } }
.problem p { font-size: var(--t-md); color: var(--muted); }

/* ---------- two sides ---------- */
.sides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
@media (max-width: 720px) { .sides { grid-template-columns: minmax(0, 1fr); } }
.side { padding: clamp(24px, 4vw, 44px); display: grid; gap: 14px; align-content: start; min-width: 0; position: relative; }
.side + .side { border-left: 1px solid var(--line); }
@media (max-width: 720px) { .side + .side { border-left: 0; border-top: 1px solid var(--line); } }
.side .tag { font-family: var(--font-inscription); letter-spacing: 0.2em; font-size: 0.75rem; text-transform: uppercase; font-weight: 600; }
.side.base .tag { color: var(--jade); }
.side.bets .tag { color: var(--gold); }
.side h3 { font-size: var(--t-lg); }
.side p { color: var(--muted); }
.side.base { background: linear-gradient(180deg, var(--jade-soft), transparent 70%); }
.side.bets { background: linear-gradient(180deg, var(--gold-soft), transparent 70%); }
.fluting { position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background: repeating-linear-gradient(90deg, transparent 0 11px, var(--line) 11px 12px); -webkit-mask: linear-gradient(180deg, #000, transparent 40%); mask: linear-gradient(180deg, #000, transparent 40%); }
.joiner { text-align: center; font-family: var(--font-display); font-size: var(--t-md); margin-top: 22px; color: var(--ink); }

/* ---------- mix ---------- */
.mix { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 48px); }
@media (max-width: 820px) { .mix { grid-template-columns: minmax(0, 1fr); } }
.mix-art { aspect-ratio: 1; width: 100%; max-width: 380px; justify-self: center; position: relative; }
.mix-art canvas { width: 100%; height: 100%; display: block; }
.mix-control { display: grid; gap: 10px; }
.mix-control .ends { display: flex; justify-content: space-between; font-family: var(--font-inscription); font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; }
.mix-control .ends span:first-child { color: var(--jade); }
.mix-control .ends span:last-child { color: var(--gold); }
input[type=range] { width: 100%; accent-color: var(--jade); height: 26px; }
.mix-readout { font-family: var(--font-display); font-size: var(--t-lg); font-weight: 700; }
.mix-readout + p { color: var(--muted); }

/* ---------- principles (foundation stones) ---------- */
.stones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: none; }
@media (max-width: 900px) { .stones { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .stones { grid-template-columns: minmax(0, 1fr); } }
.stone { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 24px; display: grid; gap: 10px; align-content: start; min-width: 0;
  transition: transform .7s cubic-bezier(.2,.8,.2,1), box-shadow .7s; box-shadow: 0 1px 0 var(--line); }
.stone .num { font-family: var(--font-inscription); font-weight: 600; color: var(--gold); font-size: var(--t-md); letter-spacing: 0.08em; }
.stone h3 { font-size: 1.15rem; }
.stone p { color: var(--muted); font-size: 0.97rem; }
html.enhance .stone:not(.in) { transform: translateY(18px); box-shadow: none; }
@media (prefers-reduced-motion: reduce) { html.enhance .stone:not(.in) { transform: none; } .stone { transition: none; } }
.stones.compact .stone p { display: none; }

/* ---------- team ---------- */
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 720px) { .team { grid-template-columns: minmax(0, 1fr); } }
.person { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; align-content: start; min-width: 0; }
.portrait { aspect-ratio: 1 / 1; background: var(--night); position: relative; display: grid; place-items: center; color: var(--night-muted); overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; display: block; }
.portrait .placeholder { font-family: var(--font-inscription); letter-spacing: 0.2em; font-size: 0.75rem; text-transform: uppercase; }
.portrait .lens { position: absolute; inset: auto 0 0 0; padding: 18px 20px; background: linear-gradient(0deg, rgba(8,19,28,.92), transparent); color: var(--night-ink);
  font-family: var(--font-display); font-size: var(--t-md); transform: translateY(100%); transition: transform .35s ease; }
.person:hover .portrait .lens, .person:focus-within .portrait .lens { transform: none; }
@media (hover: none) { .portrait .lens { transform: none; } }
.person .info { padding: 22px 24px 26px; display: grid; gap: 6px; }
.person .side-tag { font-family: var(--font-inscription); letter-spacing: 0.2em; font-size: 0.72rem; text-transform: uppercase; font-weight: 600; }
.person.chen .side-tag { color: var(--gold); } .person.max .side-tag { color: var(--jade); }
.person h3 { font-size: var(--t-lg); }
.person .title { color: var(--muted); }
.person .bio { color: var(--ink); margin-top: 8px; }
.person .contact { margin-top: 10px; font-size: 0.92rem; color: var(--muted); display: grid; gap: 2px; }

/* ---------- learn ---------- */
.learn-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .learn-grid { grid-template-columns: minmax(0, 1fr); } }
.learn-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-decoration: none; color: var(--ink); display: grid; gap: 8px; transition: border-color .2s, transform .2s; }
.learn-card:hover { border-color: var(--gold); transform: translateY(-2px); color: var(--ink); }
.learn-card span { color: var(--jade); font-weight: 600; font-size: 0.9rem; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; }
.toc a { font-size: 0.88rem; text-decoration: none; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: var(--surface); }
.toc a:hover { border-color: var(--jade); color: var(--jade); }
.faq-group { display: grid; gap: 10px; }
.faq-group > h2 { font-size: var(--t-lg); margin: 24px 0 6px; display: flex; align-items: center; gap: 12px; }
details.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
details.faq summary { cursor: pointer; padding: 18px 20px; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--gold); font-size: 1.4rem; line-height: 1; }
details.faq[open] summary::after { content: "–"; }
details.faq .answer { padding: 0 20px 20px; display: grid; gap: 12px; max-width: 72ch; }
details.faq .answer ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; }

/* ---------- calculator ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 880px) { .calc { grid-template-columns: minmax(0, 1fr); } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 18px; min-width: 0; }
.field { display: grid; gap: 6px; }
.field-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.field label, .label { font-size: 0.85rem; font-weight: 600; }
.val { font-family: var(--font-num); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.hint { font-size: 0.78rem; color: var(--muted); }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 3px; }
.seg button { font: 600 0.85rem/1.25 var(--font-body); color: var(--muted); background: transparent; border: 0; border-radius: 8px; padding: 8px 6px; cursor: pointer; }
.seg button small { display: block; font-weight: 400; font-size: 0.7rem; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.14); }
.switch { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { flex: none; width: 36px; height: 20px; border-radius: 999px; background: var(--line); position: relative; transition: background .15s; margin-top: 1px; }
.switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); transition: transform .15s; }
.switch input:checked + .track { background: var(--jade); }
.switch input:checked + .track::after { transform: translateX(16px); }
.switch input:focus-visible + .track { outline: 2px solid var(--gold-bright); outline-offset: 2px; }
.switch .txt { display: grid; font-size: 0.85rem; font-weight: 600; }
.switch .txt small { font-weight: 400; color: var(--muted); font-size: 0.76rem; }
.rate { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 12px; }
.result .k { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.big { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 1; font-variant-numeric: tabular-nums; display: block; margin-top: 4px; }
.big.pos { color: var(--jade); } .big.neg { color: var(--cinnabar); }
.sentence { margin-top: 8px; max-width: 60ch; }
.fall { display: grid; gap: 6px; }
.frow { display: grid; grid-template-columns: minmax(0, 170px) minmax(0, 1fr) 96px; gap: 12px; align-items: center; font-size: 0.82rem; }
@media (max-width: 520px) { .frow { grid-template-columns: minmax(0, 1fr) 88px; } .frow .track2 { grid-column: 1 / -1; grid-row: 2; } }
.frow .name small { display: block; color: var(--muted); font-size: 0.7rem; }
.frow .amt { font-family: var(--font-num); text-align: right; font-variant-numeric: tabular-nums; }
.track2 { position: relative; height: 18px; background: linear-gradient(to right, transparent calc(var(--zero) - 0.5px), var(--line) calc(var(--zero) - 0.5px), var(--line) calc(var(--zero) + 0.5px), transparent calc(var(--zero) + 0.5px)); }
.bar { position: absolute; top: 2px; bottom: 2px; border-radius: 3px; transition: left .25s, width .25s; }
.bar.up { background: var(--jade); } .bar.down { background: var(--cinnabar); } .bar.total { background: var(--gold); }
.frow.total { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; font-weight: 600; }
.frow.muted { opacity: .45; }
.tablewrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table.routes { border-collapse: collapse; width: 100%; min-width: 600px; font-size: 0.9rem; }
.routes th, .routes td { padding: 11px 14px; text-align: right; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.routes th:first-child, .routes td:first-child { text-align: left; }
.routes td { font-family: var(--font-num); font-size: 0.82rem; }
.routes td:first-child { font-family: var(--font-body); font-size: 0.9rem; }
.routes thead th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; vertical-align: bottom; }
.routes thead th span { display: block; font-size: 0.85rem; text-transform: none; letter-spacing: 0; color: var(--ink); }
.routes tr:last-child td { border-bottom: 0; font-weight: 600; }
.routes .sel { background: var(--jade-soft); }
.neg-t { color: var(--cinnabar); } .pos-t { color: var(--jade); }
@media (prefers-reduced-motion: reduce) { .bar, .switch .track, .switch .track::after, .portrait .lens { transition: none; } }

/* ---------- quiz ---------- */
.quiz { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 32px; align-items: center; }
@media (max-width: 820px) { .quiz { grid-template-columns: minmax(0, 1fr); } .quiz .mix-art { order: -1; max-width: 260px; } }
.progress { height: 4px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--gold); transition: width .3s; }
.q { display: grid; gap: 16px; }
.q h2 { font-size: var(--t-lg); }
.options { display: grid; gap: 10px; }
.options button { text-align: left; font: 500 1rem/1.4 var(--font-body); padding: 16px 18px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s; }
.options button:hover { border-color: var(--jade); }
.options button[aria-pressed="true"] { border-color: var(--jade); background: var(--jade-soft); }
.quiz-nav { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.linkish { background: none; border: 0; color: var(--muted); font: 500 0.9rem var(--font-body); cursor: pointer; padding: 8px 0; }
.result-card { display: grid; gap: 14px; }
.result-card .note { font-size: 0.85rem; color: var(--muted); }

/* ---------- forms ---------- */
.form { display: grid; gap: 16px; }
.form .row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 600px) { .form .row2 { grid-template-columns: minmax(0, 1fr); } }
.form label { font-size: 0.85rem; font-weight: 600; display: grid; gap: 6px; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form select, .form textarea {
  font: 400 1rem var(--font-body); padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--jade); outline: none; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); }
.form .check input { margin-top: 4px; accent-color: var(--jade); }
.notice { padding: 16px 18px; border-radius: 12px; background: var(--jade-soft); color: var(--ink); }
.booking-slot { border: 1.5px dashed var(--gold); border-radius: var(--radius); padding: 28px; display: grid; gap: 10px; background: var(--gold-soft); }

/* ---------- cards / callouts ---------- */
.familiar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 820px) { .familiar { grid-template-columns: minmax(0, 1fr); } }
.quote-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; font-family: var(--font-display); font-size: 1.12rem; line-height: 1.35; position: relative; }
.quote-card::before { content: "“"; color: var(--gold); font-size: 2.4rem; line-height: 0; position: relative; top: 14px; margin-right: 4px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.step { padding: 22px 22px 22px 0; display: grid; gap: 6px; }
.step .num { font-family: var(--font-inscription); color: var(--gold); font-weight: 600; letter-spacing: 0.1em; }
.cta-band { background: var(--night); color: var(--night-ink); border-radius: var(--radius); padding: clamp(28px, 5vw, 56px); display: grid; gap: 16px; position: relative; overflow: hidden; }
.cta-band h2 { color: var(--night-ink); }
.cta-band p { color: var(--night-muted); max-width: 56ch; }
.cta-band .meander { position: absolute; left: 0; right: 0; bottom: 0; }
.disclosures { display: grid; gap: 8px; font-size: 0.92rem; }
.disclosures a { word-break: break-word; }
.small-print { font-size: 0.8rem; color: var(--muted); max-width: 90ch; }

/* ---------- footer ---------- */
.site-footer { margin-top: 40px; background: var(--night); color: var(--night-muted); font-size: 0.9rem; }
.site-footer .meander { background: var(--gold-bright); opacity: .55; }
.site-footer .wrap { padding-block: 44px; display: grid; gap: 28px; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
@media (max-width: 820px) { .footer-top { grid-template-columns: minmax(0, 1fr); } }
.site-footer .brand { color: var(--night-ink); }
.site-footer h4 { margin: 0 0 8px; color: var(--night-ink); font-family: var(--font-inscription); letter-spacing: 0.16em; font-size: 0.78rem; text-transform: uppercase; }
.site-footer a { color: var(--night-ink); }
.site-footer a:hover { color: var(--gold-bright); }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; font-size: 0.78rem; display: grid; gap: 8px; }
.cipf { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--night-ink); }

/* Jump links land below the sticky header. */
[id] { scroll-margin-top: 110px; }
