/* ==========================================================================
   The Best or Only Scorecard: styles
   Design system: launch manual, section 8.2 ($2 Bill Brand tokens, DM Serif
   Display, DM Sans). Mobile first.

   Motion lives in one block at the end of this file, behind both the html.js
   class and prefers-reduced-motion. Without either, every page is complete
   and still.
   ========================================================================== */

:root {
  /* $2 Bill Brand colour tokens. Do not add colours outside this set. */
  --cream: #F2EDE4;         /* main light background, light text on dark */
  --cream-raised: #F7F3EC;  /* form surfaces and light cards */
  --ink: #1E2B2E;           /* main text and dark sections */
  --ink-deep: #172122;      /* footer and hero depth */
  --slate: #2C3A38;         /* secondary dark surfaces */
  --muted: #54615E;         /* supporting copy */
  --gold: #C9A961;          /* buttons, small highlights, rules */
  --gold-ink: #7E6417;      /* gold text on light backgrounds */
  --sage: #47705A;          /* keyboard focus and checks */
  --line: #E0D8CB;          /* dividers */

  --on-dark: rgba(242, 237, 228, .84);
  --on-dark-soft: rgba(242, 237, 228, .64);
  --line-dark: rgba(242, 237, 228, .18);
  --gold-line: rgba(201, 169, 97, .34);
  --edge: rgba(84, 97, 94, .72);   /* option card borders: 3.6:1 on cream */

  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Type scale: the 390px size and the desktop size from section 8.2. */
  --h1: clamp(2.375rem, 1.83rem + 2.22vw, 3.5rem);       /* 38 to 56 */
  --h2: clamp(1.75rem, 1.53rem + .9vw, 2.25rem);         /* 28 to 36 */
  --h3: clamp(1.3125rem, 1.23rem + .34vw, 1.5rem);       /* 21 to 24 */
  --body: clamp(1.0625rem, 1.01rem + .22vw, 1.1875rem);  /* 17 to 19 */
  --small: clamp(.875rem, .85rem + .1vw, .9375rem);      /* 14 to 15 */
  --eyebrow: .8125rem;                                   /* 13, uppercase */

  --wrap: 1120px;
  --gutter: clamp(1.5rem, 5vw, 3rem);                    /* 24px on mobile */
  --section: clamp(3.5rem, 2.1rem + 5.8vw, 6rem);        /* 56 to 96 */
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --top-h: 64px;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--sans); font-size: var(--body); line-height: 1.62;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; letter-spacing: -.005em; margin: 0; text-wrap: balance; }
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }

/* One focus treatment that reads on cream and on ink. */
:focus-visible { outline: 2px solid var(--cream); outline-offset: 2px; box-shadow: 0 0 0 5px var(--sage); }
[tabindex="-1"]:focus-visible { outline: none; box-shadow: none; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--gold); color: var(--ink-deep); padding: .8rem 1.2rem; font-weight: 600; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap--hero { max-width: 760px; }
.wrap--narrow { max-width: 680px; }
.center { text-align: center; }

/* ----------------------------------------------------------- preview bar */
.preview-bar {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .15rem 1.25rem;
  background: var(--gold); color: var(--ink-deep);
  font: 600 .78rem/1.35 var(--sans); letter-spacing: .02em; text-align: center;
  padding: .5rem var(--gutter);
}
.preview-bar__note { font-weight: 400; }

/* --------------------------------------------------------------- buttons */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  min-height: 52px; padding: .85rem 1.55rem;
  font: 600 1rem/1.2 var(--sans); letter-spacing: .01em; text-decoration: none; text-align: center;
  border: 1px solid transparent; border-radius: var(--radius); cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn > * { position: relative; z-index: 1; }
.btn .arrow, .text-cta .arrow { display: inline-block; transition: transform .3s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.985); }
.btn:hover .arrow--right, .text-cta:hover .arrow { transform: translateX(5px); }
.btn:hover .arrow--left { transform: translateX(-5px); }
.btn:hover .arrow--down { transform: translateY(4px); }
.btn:hover .arrow--up { transform: translateY(-4px); }

.btn--gold { background: var(--gold); color: var(--ink-deep); }
.btn--gold:hover { box-shadow: 0 16px 30px -16px rgba(201, 169, 97, .7); }
/* A band of light that crosses a gold button once on hover. */
.btn--gold::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(105deg, transparent 34%, rgba(247, 243, 236, .6) 50%, transparent 66%);
  transform: translateX(-125%);
}
.btn--gold:hover::after { transform: translateX(125%); transition: transform .95s var(--ease); }

.btn--ink { background: var(--ink); color: var(--cream); }
.btn--ink:hover { background: var(--ink-deep); box-shadow: 0 16px 30px -18px rgba(23, 33, 34, .7); }
.btn--quiet { background: transparent; color: var(--ink); border-color: var(--edge); }
.btn--quiet:hover { border-color: var(--ink); }
.btn--line { background: transparent; color: var(--cream); border-color: rgba(242, 237, 228, .42); }
.btn--line:hover { border-color: var(--gold); color: var(--gold); }
.btn--lg { min-height: 58px; padding: 1rem 1.9rem; font-size: 1.06rem; }
.btn[disabled], .btn.is-busy { opacity: .6; cursor: progress; transform: none; box-shadow: none; }
.btn.is-busy .arrow { visibility: hidden; }

.text-cta {
  display: inline-flex; align-items: center; gap: .55rem; min-height: 44px;
  font-weight: 600; text-decoration: none; color: var(--ink);
  background: linear-gradient(var(--gold), var(--gold)) 0 calc(100% - 9px) / 100% 1px no-repeat;
  transition: background-size .4s var(--ease);
}
.text-cta:hover { background-size: 0 1px; background-position: 100% calc(100% - 9px); }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: 2.2rem; }
.cta-row--center { justify-content: center; }
/* 15.1: on a phone the main buttons run full width. */
@media (max-width: 520px) { .cta-row .btn, .outro__share .btn { width: 100%; } }

/* ------------------------------------------------------- shared elements */
.eyebrow {
  display: flex; align-items: center; gap: .9rem; margin: 0;
  font: 600 var(--eyebrow)/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink);
  text-wrap: balance;
}
.eyebrow::before { content: ""; flex: none; width: 40px; height: 1px; background: var(--gold); }
.eyebrow--light { color: var(--gold); }
.eyebrow--center { justify-content: center; text-align: center; }
.eyebrow--center::after { content: ""; flex: none; width: 40px; height: 1px; background: var(--gold); }
/* Narrower than the 390px reference phone, the headline scales with the screen. */
@media (max-width: 389px) { :root { --h1: 9.74vw; } }
@media (max-width: 480px) {
  .eyebrow { letter-spacing: .16em; }
  .eyebrow::before { width: 22px; }
  /* Centred eyebrows drop their side rules so the line fits a phone. */
  .eyebrow--center::before, .eyebrow--center::after { display: none; }
}

.rule { display: block; width: 56px; height: 2px; background: var(--gold); margin: 0 0 1.6rem; transform-origin: left center; }
.center .rule { margin-inline: auto; transform-origin: center; }

.lead { color: var(--muted); }
.lead--ink { color: var(--ink); font-size: 1.14em; line-height: 1.55; }
h2 + .lead, .eyebrow + h2 { margin-top: 1.1rem; }
h2 + .lead { margin-top: 1.3rem; }

.prose { margin-top: 1.7rem; }
/* 8.2: body copy stays at 640px or less, inside the 680px reading container. */
.prose > p, .wrap--narrow > p, .wrap--narrow > .statement { max-width: 640px; }
.prose--flush { margin-top: 0; }
.statement { font-family: var(--serif); font-size: clamp(1.3125rem, 1.18rem + .6vw, 1.625rem); line-height: 1.4; margin: 1.3rem 0 0; }

.ph { background: rgba(201, 169, 97, .3); outline: 1px dashed var(--gold-ink); padding: 0 .3em; font-weight: 600; }
.foot .ph { color: var(--cream); }

/* ---------------------------------------------------------------- header */
.top { position: relative; z-index: 3; background: var(--ink-deep); color: var(--cream); }
.top::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: rgba(201, 169, 97, .2); }
.top__inner { display: flex; align-items: center; min-height: var(--top-h); }
.brand { display: inline-flex; align-items: center; gap: .7rem; min-height: 44px; text-decoration: none; color: var(--cream); }
.brand__mark { flex: none; color: var(--gold); transition: transform .6s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-8deg); }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--serif); font-size: 1.22rem; }
.brand__sub { margin-top: .32rem; font: 600 .6875rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-soft); }

/* ------------------------------------------------------------------ hero */
.hero, .close {
  position: relative; isolation: isolate; overflow: hidden;
  background: radial-gradient(ellipse 95% 75% at 50% 38%, var(--ink) 0%, var(--ink-deep) 72%);
  color: var(--cream); text-align: center;
}
.hero { display: grid; align-items: center; min-height: min(calc(100svh - var(--top-h)), 860px); }
/* On a phone the read starts near the top of the screen, not centred in it. */
@media (max-width: 600px) { .hero--read { min-height: 0; } }
.hero__inner { padding-block: clamp(4.25rem, 10vw, 6.5rem); }
@media (max-width: 600px) { .hero__inner { padding-inline: .5rem; } }

.hero__title { margin: 1.5rem 0 1.4rem; line-height: 1.06; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.hero__title .line > span { display: block; }
.hero__title em { font-style: italic; background: linear-gradient(var(--gold), var(--gold)) 0 93% / 100% 2px no-repeat; }
.hero__sub { font-size: 1.1em; line-height: 1.55; color: var(--cream); max-width: 640px; margin-inline: auto; }
.hero__body { color: var(--on-dark); max-width: 640px; margin-inline: auto; }
.hero__micro { margin: 1.5rem auto 0; font-size: var(--small); color: var(--on-dark-soft); max-width: 34em; }
.hero__micro--support { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dark); }
.hero__cta + .hero__micro--support { margin-top: 2.4rem; }

/* Engraved rosette behind the copy. The veil keeps the centre quiet so the
   lines read as a halo around the text rather than through it. */
.art {
  position: absolute; left: 50%; top: 50%; z-index: -2; pointer-events: none;
  width: min(230vw, 1100px); aspect-ratio: 1; translate: -50% -50%;
}
.art svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--gold); stroke-width: .9; }
.art__a { stroke-opacity: .44; }
.art__b { stroke-opacity: .3; }
.art::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle closest-side, rgba(23, 33, 34, .97) 0%, rgba(23, 33, 34, .93) 34%, rgba(23, 33, 34, .55) 64%, rgba(23, 33, 34, 0) 90%);
}
/* On a phone the copy fills the frame, so the engraving sits further back. */
@media (max-width: 600px) {
  .art__a { stroke-opacity: .3; }
  .art__b { stroke-opacity: .2; }
  .art::after { background: radial-gradient(circle closest-side, rgba(23, 33, 34, .97) 0%, rgba(23, 33, 34, .9) 48%, rgba(23, 33, 34, .6) 74%, rgba(23, 33, 34, .15) 100%); }
}
.hero__veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(23, 33, 34, .5), transparent 22%, transparent 78%, rgba(23, 33, 34, .6)); }

/* A banknote border: two keylines and four corner studs. */
.hero__frame { position: absolute; inset: 10px; z-index: -1; border: 1px solid var(--gold-line); pointer-events: none; }
.hero__frame::before { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(201, 169, 97, .15); }
.hero__frame i { position: absolute; width: 9px; height: 9px; background: var(--ink-deep); border: 1px solid var(--gold); transform: rotate(45deg); }
.hero__frame i:nth-child(1) { left: -5px; top: -5px; }
.hero__frame i:nth-child(2) { right: -5px; top: -5px; }
.hero__frame i:nth-child(3) { right: -5px; bottom: -5px; }
.hero__frame i:nth-child(4) { left: -5px; bottom: -5px; }
@media (min-width: 760px) { .hero__frame { inset: 20px; } }

/* ------------------------------------------------- result and next heroes */
.read__honesty { margin: 1.1rem auto 0; max-width: 33em; font-size: var(--small); line-height: 1.6; color: var(--on-dark-soft); }
.plate {
  position: relative; width: fit-content; max-width: 100%; margin: 2.2rem auto 0; padding: .85rem 1.6rem;
  border: 1px solid var(--gold-line); background: rgba(23, 33, 34, .55);
}
.plate::before { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(201, 169, 97, .16); pointer-events: none; }
.plate__text {
  display: block; text-wrap: balance; font-family: var(--serif); font-size: clamp(1.15rem, .98rem + .9vw, 1.6rem); line-height: 1.35;
  letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-right: -.2em;
}
.plate__word { display: inline-block; white-space: nowrap; }
.plate__word span { display: inline-block; }
/* Wider than the start page hero so each sentence of the headline keeps a line. */
.hero--read .wrap--hero { max-width: 920px; }
.hero__title--read { margin: 1.8rem 0 0; }
.hero__title--next { margin-bottom: 1.5rem; }
.seal--next { display: block; margin: 0 auto 1.8rem; }

/* The "$2" seal. */
.seal { color: var(--gold-ink); --seal-bg: var(--cream); fill: none; stroke: currentColor; stroke-width: .8; overflow: visible; }
.hero .seal { color: var(--gold); --seal-bg: var(--ink-deep); }
.seal__petal { stroke-opacity: .5; }
.seal__dots { stroke-width: 1.1; stroke-dasharray: .1 3.4; stroke-linecap: round; }
.seal__disc { fill: var(--seal-bg); }
.seal__num { fill: currentColor; stroke: none; font-family: var(--serif); font-size: 20px; }

/* -------------------------------------------------------------- sections */
.section { padding-block: var(--section); position: relative; }
.section--raised { background: var(--cream-raised); }
.section--ink { background: var(--ink); color: var(--cream); }
.section--deep { background: var(--ink-deep); color: var(--cream); }
.section--ink .prose > p, .section--deep .prose > p { color: var(--on-dark); }
.section__head { margin-bottom: clamp(2.2rem, 5vw, 3.5rem); }

.split { display: grid; gap: clamp(2.5rem, 6vw, 5rem); }
@media (min-width: 960px) {
  .split--media { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); align-items: center; }
  .split--text { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; }
  .split--text .split__head { position: sticky; top: 3rem; }
}

/* Photo in an offset gold keyline. */
.frame { position: relative; margin: 0 14px 14px 0; width: min(100%, 400px); justify-self: center; }
.frame picture { display: block; position: relative; z-index: 1; overflow: hidden; background: var(--slate); aspect-ratio: 4 / 5; }
.frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; }
.frame::before { content: ""; position: absolute; inset: 0; z-index: 0; border: 1px solid var(--gold); transform: translate(14px, 14px); }

/* ------------------------------------------------------- credential strip */
.strip-band { background: var(--slate); color: var(--cream); padding-block: clamp(2.75rem, 6vw, 4.25rem); }
.strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.2rem; }
.strip__item { display: flex; flex-direction: column; align-items: center; text-align: center; padding-inline: .75rem; border-left: 1px solid var(--gold-line); }
.strip__item:nth-child(2n + 1) { border-left-color: transparent; }
.strip__pre { min-height: 1.3em; font: 600 .75rem/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-soft); }
.strip__figure { font-family: var(--serif); font-size: clamp(2rem, 1.5rem + 2.2vw, 3rem); line-height: 1.1; color: var(--gold); font-variant-numeric: tabular-nums; }
.strip__caption { margin-top: .5rem; font-size: var(--small); line-height: 1.4; color: var(--on-dark); max-width: 15em; }
@media (min-width: 760px) {
  .strip { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2.8rem; }
  .strip__item:nth-child(2n + 1) { border-left-color: var(--gold-line); }
  .strip__item:nth-child(3n + 1) { border-left-color: transparent; }
}

/* ----------------------------------------------------------------- cards */
.cards { display: grid; gap: 1.25rem; counter-reset: none; }
.card {
  position: relative; background: var(--cream-raised); border: 1px solid var(--line);
  padding: clamp(1.6rem, 4vw, 2.2rem);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s ease;
}
.card::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 2px; background: var(--gold); transform-origin: left; }
.card:hover { transform: translateY(-5px); border-color: var(--edge); box-shadow: 0 26px 44px -30px rgba(23, 33, 34, .5); }
.card__n { display: block; margin-bottom: 1.1rem; font-family: var(--serif); font-size: 1.1rem; letter-spacing: .1em; color: var(--gold-ink); }
.card__t { margin-bottom: .7rem; }
.card p { color: var(--muted); }
@media (min-width: 860px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; } }

/* ------------------------------------------------------------------- faq */
.faq { margin-top: 1.6rem; border-bottom: 1px solid var(--line); }
.faq__item { border-top: 1px solid var(--line); }
.faq__item summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: 44px; padding: 1.25rem 0; cursor: pointer;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__q { transition: color .2s ease; }
.faq__item summary:hover .faq__q { color: var(--gold-ink); }
.faq__icon { position: relative; flex: none; width: 34px; height: 34px; border: 1px solid var(--edge); border-radius: 50%; transition: transform .45s var(--ease), background-color .3s ease, border-color .3s ease; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: var(--ink); transition: transform .45s var(--ease), background-color .3s ease; }
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon { background: var(--ink); border-color: var(--ink); transform: rotate(180deg); }
.faq__item[open] .faq__icon::before, .faq__item[open] .faq__icon::after { background: var(--cream); }
.faq__item[open] .faq__icon::after { transform: rotate(0deg); }
.faq__a { overflow: hidden; }
.faq__a p { padding: 0 3.2rem 1.5rem 0; color: var(--muted); max-width: 640px; }

/* ------------------------------------------------------------------ quiz */
.section--quiz { display: grid; align-items: center; min-height: min(100svh, 820px); border-top: 1px solid var(--line); scroll-margin-top: 0; }
.quiz { position: relative; }
.quiz__progress { margin-bottom: clamp(1.8rem, 5vw, 2.6rem); }
.quiz__count { margin: 0 0 .7rem; text-align: center; font: 600 var(--small)/1.2 var(--sans); letter-spacing: .08em; color: var(--muted); font-variant-numeric: tabular-nums; }
.quiz__bar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.quiz__bar span { position: relative; height: 3px; background: var(--line); overflow: hidden; }
.quiz__bar span::after { content: ""; position: absolute; inset: 0; background: var(--gold-ink); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.quiz__bar span.is-done::after { transform: scaleX(1); }
.quiz__bar span.is-now::after { transform: scaleX(.5); }

.slide--intro, .slide--reading { text-align: center; }
.quiz__headline { font-size: clamp(2.1rem, 1.6rem + 2.2vw, 3rem); margin: 1.4rem 0 1.2rem; }
.quiz__body { max-width: 31em; margin: 0 auto 2rem; color: var(--muted); }
.quiz__small { margin: 1.1rem 0 0; font-size: var(--small); color: var(--muted); }
.quiz__q { font-size: clamp(1.5rem, 1.25rem + 1.2vw, 2rem); line-height: 1.22; text-align: center; margin: 0 0 clamp(1.5rem, 4vw, 2.1rem); }
.quiz__q:focus { outline: none; }

.options { display: grid; gap: .75rem; }
.option { position: relative; display: block; cursor: pointer; }
.option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.option__box {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 1rem; min-height: 66px; padding: .95rem 1.2rem;
  background: var(--cream-raised); border: 1px solid var(--edge); border-radius: var(--radius); text-align: left;
  transition: transform .3s var(--ease), border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.option__box::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--gold); transform: scaleY(0); transform-origin: bottom; transition: transform .4s var(--ease); }
.option__mark {
  flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid var(--muted); transition: background-color .25s ease, border-color .25s ease, transform .4s var(--ease-out);
}
.option__mark svg, .check__mark svg { width: 15px; height: 15px; fill: none; stroke: var(--cream-raised); stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1.05; stroke-dashoffset: 1.05; transition: stroke-dashoffset .32s var(--ease) .08s; }
.option__text { font-weight: 500; line-height: 1.4; }
.option:hover .option__box { border-color: var(--ink); transform: translateX(4px); }
.option:active .option__box { transform: translateX(4px) scale(.992); }
.option input:checked + .option__box { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.option input:checked + .option__box::before { transform: scaleY(1); }
.option input:checked + .option__box .option__mark { background: var(--sage); border-color: var(--sage); transform: scale(1.06); }
.option input:checked + .option__box svg, .check input:checked + label svg { stroke-dashoffset: 0; }
.option input:focus-visible + .option__box { outline: 2px solid var(--cream); outline-offset: 2px; box-shadow: 0 0 0 5px var(--sage); }
.options--compact { gap: .55rem; }
.options--compact .option__box { min-height: 54px; padding: .7rem 1rem; gap: .85rem; background: var(--cream); }
.options--compact .option__mark { width: 22px; height: 22px; }
.options--compact .option__mark svg { width: 13px; height: 13px; }
.options--compact .option__text { font-weight: 400; }

.quiz__error { margin: 1.1rem 0 0; text-align: center; font-size: var(--small); font-weight: 600; }
.quiz__nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: clamp(1.5rem, 4vw, 2.1rem); }
.quiz__nav [data-next] { flex: 1 1 auto; max-width: 22rem; margin-left: auto; }
/* On a phone both buttons run full width, Next on top (15.1). */
@media (max-width: 520px) {
  .quiz__nav { flex-direction: column-reverse; gap: .75rem; }
  .quiz__nav [data-next] { max-width: none; margin-left: 0; }
}
.slide--reading { padding-block: 1.5rem; }
.slide--intro .seal, .slide--reading .seal { display: block; margin: 0 auto 1.6rem; }

.form-note { margin: 0; padding: 1rem 1.2rem; background: var(--cream-raised); border-left: 3px solid var(--gold-ink); font-size: var(--small); }
.form-note--alert { background: var(--cream); }

/* ---------------------------------------------------------- result pages */
.section--truth p + p { margin-top: 1.2em; }
.tonight { position: relative; margin-top: clamp(2.5rem, 6vw, 3.5rem); padding: clamp(2rem, 6vw, 3rem); background: var(--ink); color: var(--cream); }
.tonight__text { margin: 1.1rem 0 0; font-size: 1.1em; line-height: 1.6; }
/* Four corner ticks, like the registration marks on a printed sheet. */
.tonight i { position: absolute; width: 16px; height: 16px; border: solid var(--gold); border-width: 1px 0 0 1px; }
.tonight i:nth-child(1) { left: 10px; top: 10px; }
.tonight i:nth-child(2) { right: 10px; top: 10px; transform: rotate(90deg); }
.tonight i:nth-child(3) { right: 10px; bottom: 10px; transform: rotate(180deg); }
.tonight i:nth-child(4) { left: 10px; bottom: 10px; transform: rotate(270deg); }

.outro__grid { display: grid; gap: 3rem; }
.outro__title { margin-top: 1.1rem; max-width: 16em; }
.outro__share { padding-top: 2.4rem; border-top: 1px solid var(--line-dark); }
.outro__share p { color: var(--on-dark); margin-bottom: 1.5rem; max-width: 26em; }
@media (min-width: 900px) {
  .outro__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 4.5rem; align-items: end; }
  .outro__share { padding: .4rem 0 .2rem 3.5rem; border-top: 0; border-left: 1px solid var(--line-dark); }
}

/* --------------------------------------------------- private route review */
.review { display: grid; gap: clamp(2rem, 5vw, 2.6rem); margin-top: 2.4rem; padding: clamp(1.35rem, 5vw, 2.75rem); background: var(--cream-raised); border: 1px solid var(--line); }
.q__label { display: flex; align-items: baseline; gap: .8rem; margin: 0 0 1rem; font-weight: 600; line-height: 1.4; }
.q__n { flex: none; min-width: 1.1em; font-family: var(--serif); font-weight: 400; font-size: 1.25em; line-height: 1; color: var(--gold-ink); }
.field label, .field .q__label { display: flex; }
.field > label:not(.q__label) { display: block; margin-bottom: .45rem; font-weight: 600; }
.hint { margin: -.3rem 0 .7rem; font-size: var(--small); line-height: 1.5; color: var(--muted); }
.q .hint { margin-top: -.5rem; }
.review input[type="text"], .review input[type="email"], .review input[type="tel"], .review textarea {
  display: block; width: 100%; min-height: 54px; padding: .85rem 1rem;
  font: inherit; color: var(--ink); background: var(--cream);
  border: 1px solid var(--muted); border-radius: var(--radius);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.review textarea { min-height: 150px; line-height: 1.55; resize: vertical; }
.review input:hover, .review textarea:hover { border-color: var(--ink); }
.review input:focus-visible, .review textarea:focus-visible { outline: 2px solid var(--cream); outline-offset: 2px; border-color: var(--ink); box-shadow: 0 0 0 5px var(--sage); }
.contact { display: grid; gap: 1.4rem; padding-top: clamp(2rem, 5vw, 2.6rem); border-top: 1px solid var(--line); }
.field-row { display: grid; gap: 1.4rem; }
@media (min-width: 620px) { .field-row { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.check { position: relative; margin-top: -1rem; }
.check:first-of-type, .hp + .check { margin-top: 0; }
.check input { position: absolute; left: 0; top: .55rem; width: 26px; height: 26px; margin: 0; opacity: 0; cursor: pointer; }
.check label { display: flex; align-items: flex-start; gap: .9rem; min-height: 44px; padding: .5rem 0; font-size: var(--small); line-height: 1.55; cursor: pointer; }
.check__mark { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border: 1.5px solid var(--muted); border-radius: var(--radius); background: var(--cream); transition: background-color .25s ease, border-color .25s ease; }
.check input:checked + label .check__mark { background: var(--sage); border-color: var(--sage); }
.check input:focus-visible + label .check__mark { outline: 2px solid var(--cream); outline-offset: 2px; box-shadow: 0 0 0 5px var(--sage); }
.check a { color: var(--ink); text-decoration-color: var(--gold-ink); text-underline-offset: .2em; font-weight: 600; }

.review__send .btn { width: 100%; }
.review__under { margin: 1rem 0 0; font-size: var(--small); color: var(--muted); }
@media (min-width: 620px) { .review__send .btn { width: auto; min-width: 16rem; } }

/* Errors: said in words beside the field, never by colour alone. */
.errors { padding: 1rem 1.2rem; background: var(--cream); border-left: 3px solid var(--gold-ink); font-weight: 600; }
.errors:focus { outline: none; }
.errors ul { margin: .5rem 0 0; padding-left: 1.15rem; list-style: disc; font-weight: 400; }
.errors a { text-decoration-color: var(--gold-ink); text-underline-offset: .2em; }
.field__error { display: flex; align-items: baseline; gap: .55rem; margin: .6rem 0 0; font-size: var(--small); font-weight: 600; line-height: 1.45; }
.field__error::before { content: "!"; flex: none; display: inline-grid; place-items: center; width: 1.25em; height: 1.25em; border-radius: 50%; background: var(--ink); color: var(--cream); font-size: .85em; line-height: 1; }
.is-error input[type="text"], .is-error input[type="email"], .is-error textarea, .is-error .check__mark { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

/* ----------------------------------------------------------- final close */
.close__inner { padding-block: clamp(4.5rem, 11vw, 7.5rem); }
.close__title { font-size: var(--h1); line-height: 1.08; }
.close__body { margin: 1.6rem auto 0; max-width: 640px; color: var(--on-dark); }
.close__line { margin: 2.6rem 0 0; font-family: var(--serif); font-style: italic; font-size: var(--h3); color: var(--gold); }

/* ------------------------------------------------------------ plain pages */
.page { padding-block: var(--section); min-height: 62vh; }
.page__title { margin-bottom: 1.6rem; }
.page__back { margin-top: 2.6rem; }
.draft { margin-top: 1.5rem; padding: 1.5rem; background: var(--cream-raised); border: 1px dashed var(--gold-ink); font-size: var(--small); }
.draft ul { margin: .4rem 0 0; padding-left: 1.2rem; list-style: disc; }
.draft li + li { margin-top: .5rem; }
.video__player { width: min(100%, 360px); margin: 2.2rem auto 0; aspect-ratio: 9 / 16; background: var(--ink); border: 1px solid var(--gold-line); }

/* ---------------------------------------------------------------- footer */
.foot { position: relative; background: var(--ink-deep); color: var(--on-dark); padding-block: clamp(2.75rem, 6vw, 4rem) 2rem; font-size: var(--small); }
.foot::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: var(--gold-line); }
.foot__top { display: grid; gap: 2rem; padding-bottom: 2.2rem; border-bottom: 1px solid var(--line-dark); }
.foot__brand .brand__mark { color: var(--gold); margin-bottom: 1rem; }
.foot__name { margin: 0 0 .25rem; font-family: var(--serif); font-size: 1.25rem; color: var(--cream); }
.foot__close { margin: 0; color: var(--on-dark-soft); }
.foot__links { display: flex; flex-direction: column; gap: .1rem; }
.foot__links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; background: linear-gradient(var(--gold), var(--gold)) 0 calc(100% - 11px) / 0 1px no-repeat; transition: background-size .4s var(--ease), color .2s ease; }
.foot__links a:hover { color: var(--cream); background-size: 100% 1px; }
.foot__copy { margin: 1.6rem 0 0; color: var(--on-dark-soft); }
@media (min-width: 760px) {
  .foot__top { grid-template-columns: 1fr auto; align-items: end; }
  .foot__links { flex-direction: row; gap: 2rem; }
}

/* ----------------------------------------------------------------- toast */
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 60; translate: -50% 0;
  padding: .8rem 1.3rem; background: var(--ink-deep); color: var(--cream); border: 1px solid var(--gold-line);
  font-size: var(--small); font-weight: 600; box-shadow: 0 18px 36px -18px rgba(23, 33, 34, .8);
}

/* ==========================================================================
   Motion
   Everything below is decoration on top of a finished page. It runs only
   with JavaScript on and only for visitors who have not asked for reduced
   motion. Nothing here is a ticker, carousel, countdown or autoplaying video.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* A soft cross-fade between pages, where the browser supports it. */
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-out .26s ease both; }
  ::view-transition-new(root) { animation: vt-in .55s var(--ease) both; }

  /* Scroll reveals. Children of [data-stagger] follow one another. */
  html.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .95s var(--ease), transform .95s var(--ease); transition-delay: calc(var(--i, 0) * 95ms); }
  html.js .reveal.in { opacity: 1; transform: none; }
  html.js .rule.reveal { opacity: 1; transform: scaleX(0); transition: transform 1s var(--ease) .1s; }
  html.js .rule.reveal.in { transform: scaleX(1); }

  /* Photo: wipes up while the gold keyline slides out from behind it. */
  html.js .frame.reveal { opacity: 1; transform: none; }
  html.js .frame.reveal picture { clip-path: inset(0 0 100% 0); transition: clip-path 1.25s var(--ease); }
  html.js .frame.reveal img { transform: scale(1.1); transition: transform 1.8s var(--ease); }
  html.js .frame.reveal::before { opacity: 0; transform: translate(0, 0); transition: transform 1s var(--ease) .55s, opacity .6s ease .55s; }
  html.js .frame.reveal.in picture { clip-path: inset(0 0 0 0); }
  html.js .frame.reveal.in img { transform: none; }
  html.js .frame.reveal.in::before { opacity: 1; transform: translate(14px, 14px); }

  /* Cards: the gold line draws across the top as each card arrives. */
  html.js .card::before { transform: scaleX(0); transition: transform 1.15s var(--ease) calc(var(--i, 0) * 140ms + .25s); }
  html.js .card.in::before { transform: scaleX(1); }
  html.js .card.reveal { transition: opacity .95s var(--ease) calc(var(--i, 0) * 140ms), transform .95s var(--ease) calc(var(--i, 0) * 140ms), box-shadow .45s var(--ease), border-color .3s ease; }
  html.js .card.reveal.in:hover { transition-delay: 0s; transform: translateY(-5px); }

  /* Engraving: every line draws itself, then the two layers turn slowly
     against each other. Off screen, the turning pauses. */
  html.js .art path { stroke-dasharray: 1.02; stroke-dashoffset: 1.02; }
  html.js .art.in path { animation: draw 2.4s var(--ease-out) forwards; animation-delay: calc(var(--i) * 30ms + .15s); }
  html.js .art.in .art__a { animation: turn 280s linear infinite; }
  html.js .art.in .art__b { animation: turn 360s linear infinite reverse; }
  html.js .art.is-paused svg { animation-play-state: paused; }

  /* Opening sequence shared by the dark bands. */
  html.js .hero__frame { animation: frame-in 1.7s var(--ease) .1s both; }
  html.js .hero .eyebrow { animation: fade-up .9s var(--ease) .1s both; }
  html.js .hero__title .line > span { animation: rise 1.1s var(--ease) .25s both; }
  html.js .hero__title .line:nth-child(2) > span { animation-delay: .38s; }
  html.js .hero__title em { animation: underline 1s var(--ease) 1.25s both; }
  html.js .hero__sub { animation: fade-up .9s var(--ease) .6s both; }
  html.js .hero__body { animation: fade-up .9s var(--ease) .72s both; }
  html.js .hero__cta { animation: fade-up .9s var(--ease) .84s both; }
  html.js .hero__micro { animation: fade-up .9s var(--ease) .96s both; }
  html.js .hero__cta .arrow--down { animation: bob 2s ease-in-out 2.2s infinite; }

  /* Result page: the read is revealed in stages. Eyebrow, honesty line, the
     plate opens, the name is lettered in, then the headline rises. */
  html.js .read__honesty { animation: fade-up .9s var(--ease) .35s both; }
  html.js .plate { animation: plate-in 1s var(--ease) .8s both; }
  html.js .plate__word span { animation: letter-in .55s var(--ease-out) both; animation-delay: calc(1.15s + var(--i) * 45ms); }
  html.js .hero--read .hero__title .line > span { animation-delay: 2.05s; }
  html.js .hero--read .hero__title .line:nth-child(2) > span { animation-delay: 2.3s; }

  /* The seal draws itself: on the next-step pages and while the read loads. */
  html.js .seal path { stroke-dasharray: 1.02; stroke-dashoffset: 1.02; animation: draw 1.15s var(--ease-out) forwards; animation-delay: calc(var(--i) * 45ms); }
  html.js .seal__dots, html.js .seal__disc, html.js .seal__num { animation: fade-in .7s ease .65s both; }
  html.js .slide--reading .eyebrow { animation: fade-up .7s var(--ease) .5s both; }
  /* The seal above the first question waits until the quiz scrolls into view. */
  html.js .slide--intro:not(.in) .seal * { animation-play-state: paused; }

  /* The current step of the progress bar breathes. */
  html.js .quiz__bar span.is-now::after { animation: breathe 1.8s ease-in-out infinite; }

  /* A form error nudges once so it is noticed. */
  html.js .is-error > .field__error { animation: nudge .45s var(--ease); }
  html.js .toast { animation: toast-in .45s var(--ease) both; }
  html.js .preview-bar { animation: fade-in .6s ease both; }

  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes turn { to { rotate: 360deg; } }
  @keyframes rise { from { transform: translateY(108%); } to { transform: none; } }
  @keyframes fade-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
  @keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
  @keyframes underline { from { background-size: 0 2px; } to { background-size: 100% 2px; } }
  @keyframes frame-in { from { opacity: 0; clip-path: inset(48% 48% 48% 48%); } to { opacity: 1; clip-path: inset(-12px); } }
  @keyframes plate-in { from { opacity: 0; clip-path: inset(0 50% 0 50%); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
  @keyframes letter-in { from { opacity: 0; transform: translateY(.5em); } to { opacity: 1; transform: none; } }
  @keyframes bob { 0%, 100% { transform: none; } 50% { transform: translateY(4px); } }
  @keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
  @keyframes nudge { 0% { transform: translateX(-6px); opacity: 0; } 100% { transform: none; opacity: 1; } }
  @keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
  @keyframes vt-out { to { opacity: 0; } }
  @keyframes vt-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}
