/* The Nobel Rooms — Video Scorecard v3 (quiz.html), Priestley scorecard.
   Standalone stylesheet: shares tokens with css/style.css but does not depend on it.
   The parked adaptive v2 lives in css/quiz-adaptive.css. */

@font-face {
  font-family: "Fredoka";
  src: url("../assets/fonts/Fredoka-var.woff2") format("woff2-variations"),
       url("../assets/fonts/Fredoka-var.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../assets/fonts/PlusJakartaSans-var.woff2") format("woff2-variations"),
       url("../assets/fonts/PlusJakartaSans-var.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --cream: #F6F3EB;
  --cream-2: #ECE6D8;
  --cream-3: #E2DAC8;
  --paper: #FBF9F4;
  --ink: #25231F;
  --ink-2: #1C1B18;
  --ink-3: #322F2A;
  --ink-4: #3D3A34;
  --gray: #8C8880;
  --muted: #5D5951;
  --muted-dark: #B9B3A8;
  --red: #C9362F;
  --red-text: #B22E28;
  --coral: #FF975C;
  --coral-mid: #EC6244;
  --grad: linear-gradient(115deg, var(--coral-mid) 0%, var(--coral) 100%);
  --grad-sig: linear-gradient(45deg, var(--red), var(--coral));
  --line: rgba(37, 35, 31, .14);
  --line-2: rgba(37, 35, 31, .22);
  --line-dark: rgba(246, 243, 235, .14);

  --display: "Fredoka", "Plus Jakarta Sans", ui-rounded, system-ui, sans-serif;
  --body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 136px);
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --shadow-lg: 0 30px 60px -24px rgba(37, 35, 31, .35), 0 8px 18px -8px rgba(37, 35, 31, .18);
  --shadow-md: 0 14px 30px -16px rgba(37, 35, 31, .35);
  --circ: 326.73;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.6;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  font-variant-numeric: tabular-nums;
}
img, video, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; text-underline-offset: .2em; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 600; line-height: 1.04; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }

::selection { background: var(--coral); color: var(--ink); }
:focus-visible { outline: 3px solid var(--coral-mid); outline-offset: 3px; border-radius: 10px; }
::placeholder { color: #807B72; opacity: 1; }
html { scrollbar-color: var(--ink) var(--cream-2); }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--cream-2); }
::-webkit-scrollbar-thumb { background: var(--ink); border-radius: 99px; border: 3px solid var(--cream-2); }
input, textarea { caret-color: var(--coral-mid); }

.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 12px; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.h2 { font-size: clamp(2.2rem, 1.4rem + 3.2vw, 4.2rem); }
.h3 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem); }
.lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); color: var(--muted); max-width: 46ch; line-height: 1.55; }

/* ---------- Buttons ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: var(--h); padding: 0 24px; border-radius: 999px;
  font-family: var(--display); font-weight: 600; font-size: 1.125rem; letter-spacing: 0;
  text-decoration: none; white-space: nowrap; border: 0; cursor: pointer;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), background-color .3s, color .3s, opacity .3s;
  position: relative; isolation: isolate;
}
.btn__icon { width: 20px; height: 20px; transition: transform .45s var(--ease-out); flex: none; }
.btn:hover .btn__icon { transform: translateX(3px); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--primary { background: var(--grad); color: var(--ink); box-shadow: 0 12px 24px -12px rgba(37, 35, 31, .45); }
.btn--primary:hover { box-shadow: 0 18px 32px -14px rgba(37, 35, 31, .5); }
.btn__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink); transition: transform .45s var(--ease-out); flex: none; }
.btn--primary:hover .btn__dot { transform: scale(1.5); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); }
.btn--ghost-light { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 2px var(--cream); }
.btn--ghost-light:hover { background: var(--cream); color: var(--ink); }
.btn--ink, .btn--dark { background: var(--ink); color: var(--cream); }
.btn--ink:hover, .btn--dark:hover { box-shadow: var(--shadow-md); }
.btn--cream { background: var(--cream); color: var(--ink); }
.btn--md { --h: 50px; padding: 0 22px; font-size: 1.05rem; }
.btn--lg { --h: 58px; padding: 0 28px; }
.btn--xl { --h: 68px; padding: 0 36px; font-size: 1.3rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .32; cursor: not-allowed; transform: none; box-shadow: none; }
.btn[disabled]:hover .btn__icon { transform: none; }

.linkbtn { background: none; border: 0; padding: 8px 4px; cursor: pointer; font-weight: 650; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .3em; text-decoration-color: var(--coral-mid); }
.linkbtn:hover { color: var(--red-text); }

/* ---------- Brand + top bar ---------- */
.brand { display: inline-flex; align-items: flex-start; gap: 4px; text-decoration: none; flex: none; }
.brand__the { font-family: var(--display); font-weight: 600; font-size: .82rem; line-height: 1; margin-top: 1px; color: var(--ink); letter-spacing: .01em; }
.brand__mark { height: 34px; width: auto; }
.brand--light .brand__the { color: var(--cream); }
@media (min-width: 820px) { .brand__mark { height: 38px; } }

.top { position: absolute; inset: 0 0 auto; z-index: 20; }
.top__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 76px; }
.top__back { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 650; font-size: .95rem; padding: 10px 14px; border-radius: 999px; transition: background-color .2s; }
.top__back svg { width: 18px; height: 18px; transition: transform .4s var(--ease-out); }
.top__back:hover { background: var(--cream-2); }
.top__back:hover svg { transform: translateX(-3px); }
@media (max-width: 480px) { .top__back span { display: none; } .top__back { width: 44px; height: 44px; justify-content: center; padding: 0; background: var(--cream-2); } }
/* ============================ LANDING ============================ */
.hero { padding-top: clamp(104px, 12vw, 148px); padding-bottom: clamp(64px, 9vw, 120px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; width: min(70vw, 820px); aspect-ratio: 1; right: -18vw; top: -12vw; z-index: -1;
  background: radial-gradient(closest-side, rgba(255, 151, 92, .26), rgba(255, 151, 92, 0));
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(48px, 6vw, 72px); align-items: center; }
@media (min-width: 980px) { .hero__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr); } }
.hero__title { font-size: clamp(3rem, 1.4rem + 6.4vw, 6rem); line-height: .95; letter-spacing: -.035em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.hero__title .line > span { display: inline-block; }
.line--accent > span { color: var(--red); }
.hero__sub { margin-top: 28px; font-size: clamp(1.08rem, 1rem + .45vw, 1.32rem); max-width: 40ch; color: var(--muted); line-height: 1.55; }
.hero__cta { margin-top: 36px; display: grid; gap: 22px; justify-items: start; }
.promise { display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 650; font-size: .95rem; }
.promise li { display: inline-flex; align-items: center; gap: 8px; }
.promise svg { width: 20px; height: 20px; color: var(--red); }
/* Credibility */
.cred { padding-block: var(--section); }
.cred__grid { display: grid; gap: clamp(36px, 6vw, 80px); align-items: center; }
@media (min-width: 900px) { .cred__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }
.cred__photo { position: relative; max-width: 440px; width: 100%; justify-self: center; }
.cred__photo img { border-radius: var(--r-lg); aspect-ratio: 1075 / 1280; object-fit: cover; width: 100%; height: auto; box-shadow: var(--shadow-lg); }
.cred__photo::before, .cred__photo::after { content: ""; position: absolute; width: 46px; height: 46px; border: 5px solid var(--cream); z-index: 2; }
.cred__photo::before { top: 16px; left: 16px; border-right: 0; border-bottom: 0; border-top-left-radius: 14px; }
.cred__photo::after { bottom: 16px; right: 16px; border-left: 0; border-top: 0; border-bottom-right-radius: 14px; }
.cred__copy { display: grid; gap: 20px; max-width: 60ch; }
.cred__copy .h2 { max-width: 15ch; margin-bottom: 6px; }
.cred__big { font-family: var(--display); font-weight: 500; font-size: clamp(1.25rem, 1.05rem + .8vw, 1.65rem); line-height: 1.3; }
.cred__copy > p:not(.cred__big) { color: var(--muted); font-size: 1.08rem; }
.cred__clients { margin-top: 10px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.cred__clients p { font-size: .9rem; font-weight: 650; color: var(--muted); }
.cred__clients ul { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.cred__clients li { font-family: var(--display); font-weight: 600; font-size: clamp(1.1rem, 1rem + .4vw, 1.35rem); }

/* Final CTA */
.go { background: var(--grad); padding-block: clamp(80px, 11vw, 140px); position: relative; overflow: hidden; }
.go__inner { display: grid; justify-items: center; text-align: center; gap: 22px; }
.go__title { font-size: clamp(2.4rem, 1.4rem + 4.4vw, 5.2rem); max-width: 14ch; letter-spacing: -.03em; }
.go__sub { max-width: 46ch; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--ink-3); font-weight: 500; }
.go .btn { margin-top: 10px; }
@media (max-width: 420px) { .go .btn--xl { --h: 60px; padding: 0 26px; font-size: 1.15rem; } }

/* ============================ VISUALS (inline SVG library) ============================ */
.vis { background: var(--ink); color: var(--cream); border-radius: var(--r-lg); padding: clamp(14px, 2.4vw, 28px); display: grid; place-items: center; overflow: hidden; position: relative; }
.vis svg, .opt__pic svg, .good__pic svg, .room__vis svg { width: 100%; height: auto; overflow: visible; }
.v * { transform-box: fill-box; transform-origin: center; }
.v-scr { fill: #3B3832; }
.v-edge { fill: none; stroke: rgba(246, 243, 235, .3); stroke-width: 1.5; }
.v-edge--phone { stroke: rgba(246, 243, 235, .5); stroke-width: 2.5; }
.v-ink { fill: var(--cream); }
.v-ink-o { fill: rgba(246, 243, 235, .55); }
.v-dim { fill: rgba(246, 243, 235, .14); }
.v-dark { fill: #1C1B18; }
.v-paper { fill: var(--cream); }
.v-acc { fill: var(--coral); }
.v-acc-o { fill: rgba(255, 151, 92, .35); }
.v-area { fill: rgba(255, 151, 92, .2); }
.v-bub { fill: var(--cream); }
.v-dimbub { fill: rgba(246, 243, 235, .14); }
.v-window { fill: var(--cream); opacity: .92; }
.v-blur { fill: rgba(246, 243, 235, .06); }
.v-door { fill: rgba(246, 243, 235, .1); stroke: rgba(246, 243, 235, .35); stroke-width: 2; }
.v-hatch { fill: rgba(255, 151, 92, .55); }
.v-ln { fill: rgba(37, 35, 31, .26); }
.v-ln-dot { fill: rgba(37, 35, 31, .5); }
.v-ln-s { fill: none; stroke: rgba(37, 35, 31, .45); stroke-width: 1.5; }
.v-ln-d { fill: none; stroke: #1C1B18; stroke-width: 2; stroke-linecap: round; }
.v-s, .v-s-r { fill: none; stroke: var(--cream); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.v-as { fill: none; stroke: var(--coral); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.v-fs { fill: none; stroke: rgba(246, 243, 235, .25); stroke-width: 2; stroke-linecap: round; }
.v-dash { fill: none; stroke: rgba(246, 243, 235, .45); stroke-width: 1.6; stroke-dasharray: 4 4; }
.v-dashed { stroke-dasharray: 3 3; }
.v-thick { stroke-width: 4; }
.v-hi { stroke: var(--coral); stroke-width: 2.5; }
.v-arm { fill: none; stroke: rgba(246, 243, 235, .55); stroke-width: 12; stroke-linecap: round; }
.v-ck { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.v-cursor { fill: var(--cream); stroke: var(--ink); stroke-width: 1.2; }
.v text { font-family: var(--body); font-weight: 700; letter-spacing: .01em; }
.v-t { fill: var(--cream); }
.v-tm { fill: var(--muted-dark); font-weight: 650 !important; }
.v-ta { fill: var(--coral); }
.v-tk { fill: var(--ink); font-weight: 800 !important; }
.v .v-tbig { font-family: var(--display); font-weight: 700; fill: var(--cream); letter-spacing: -.01em; paint-order: stroke; stroke: var(--ink); stroke-width: 3px; }
.v .v-tbig--acc { fill: var(--coral); }

/* Motion: every loop starts from a visible default, so no-animation (print, reduced motion) still reads. */
.a-pop { animation: vPop 4.2s var(--ease-out) var(--d, 0s) infinite both; }
.a-blink { animation: vBlink 1.8s ease-in-out var(--d, 0s) infinite; }
.a-draw { stroke-dasharray: 100; animation: vDraw 4.2s cubic-bezier(.65, 0, .35, 1) var(--d, 0s) infinite both; }
.v-dashed.a-draw { stroke-dasharray: 3 3; animation: vMarch 1.4s linear infinite; }
.a-grow { transform-origin: left center; animation: vGrow 4.2s var(--ease-out) var(--d, 0s) infinite both; }
.a-rise { transform-origin: center bottom; animation: vRise 4.2s var(--ease-out) var(--d, 0s) infinite both; }
.a-zoom { animation: vZoom 4.2s cubic-bezier(.65, 0, .35, 1) infinite; }
.a-scan { animation: vScan 4.5s linear infinite; }
.a-scan--short { animation-name: vScanS; }
.a-spin { animation: vSpin 9s linear infinite; }
.a-spin--slow { animation-duration: 14s; }
.a-pulse { animation: vPulse 2.4s ease-in-out infinite; }
.a-hl { animation: vHl 2.4s ease-in-out infinite; }
.a-hl2 { animation: vPulse 2.4s ease-in-out infinite; }
.a-dart { animation: vDart 4.2s var(--ease-out) infinite both; }
.a-fade { animation: vFade 4.2s ease-in-out infinite; opacity: 0; }
.a-float { animation: vFloat 3.6s ease-in-out infinite; }
.a-wave { transform-origin: left center; animation: vWave 2.4s ease-in-out infinite; }
.a-glow { animation: vGlow 2.4s ease-in-out infinite; }
@keyframes vPop { 0% { opacity: 0; transform: scale(.3); } 10% { opacity: 1; transform: scale(1.08); } 16%, 100% { opacity: 1; transform: scale(1); } }
@keyframes vBlink { 50% { opacity: .25; } }
@keyframes vDraw { 0% { stroke-dashoffset: 100; } 40%, 100% { stroke-dashoffset: 0; } }
@keyframes vMarch { to { stroke-dashoffset: -12; } }
@keyframes vGrow { 0% { transform: scaleX(0); } 28%, 100% { transform: scaleX(1); } }
@keyframes vRise { 0% { transform: scaleY(0); } 26%, 100% { transform: scaleY(1); } }
@keyframes vZoom { 0%, 30% { transform: scale(1); } 45%, 80% { transform: scale(1.14); } 100% { transform: scale(1); } }
@keyframes vScan { from { transform: translateX(0); } to { transform: translateX(190px); } }
@keyframes vScanS { from { transform: translateX(0); } to { transform: translateX(160px); } }
@keyframes vSpin { to { transform: rotate(360deg); } }
@keyframes vPulse { 50% { transform: scale(1.06); } }
@keyframes vHl { 50% { opacity: .55; } }
@keyframes vDart { 0% { transform: translate(40px, -26px); opacity: 0; } 18%, 100% { transform: translate(0, 0); opacity: 1; } }
@keyframes vFade { 0%, 45% { opacity: 0; } 75%, 92% { opacity: .82; } 100% { opacity: 0; } }
@keyframes vFloat { 50% { transform: translateY(-6px); } }
@keyframes vWave { 50% { transform: skewY(6deg); } }
@keyframes vGlow { 50% { opacity: .75; } }
/* Picture answers sit still (in their finished state) and only move on hover, focus or when chosen */
.opt:not(:hover):not(:focus-visible):not([aria-pressed="true"]) .opt__pic .v * { animation: none; }
/* ============================ QUIZ ============================ */
.is-quizzing .top, .is-quizzing .footer { display: none; }
.quiz { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--cream); }

.qbar { position: sticky; top: 0; z-index: 10; background: rgba(246, 243, 235, .96); border-bottom: 1px solid var(--line); }
.qbar__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "meta exit" "tl tl"; align-items: center; gap: 10px 16px; padding-block: 12px 14px; }
.qbar__meta { grid-area: meta; display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 12px; min-width: 0; }
.qbar__section { font-family: var(--display); font-weight: 600; font-size: 1.1rem; white-space: nowrap; }
.qbar__count { font-size: .86rem; font-weight: 650; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qbar__exit { grid-area: exit; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--cream-2); display: grid; place-items: center; cursor: pointer; transition: background-color .2s, transform .3s var(--ease-out); }
.qbar__exit:hover { background: var(--cream-3); transform: rotate(90deg); }
.qbar__exit svg { width: 20px; height: 20px; }
@media (min-width: 960px) {
  .qbar__inner { grid-template-columns: minmax(230px, auto) minmax(0, 1fr) auto; grid-template-areas: "meta tl exit"; gap: 28px; padding-block: 16px; }
  .qbar__meta { flex-direction: column; gap: 0; }
}

.qtl { grid-area: tl; display: flex; gap: 4px; }
.qtl__seg { flex: var(--n) 1 0; display: grid; gap: 6px; min-width: 14px; }
@media (min-width: 960px) { .qtl__seg { min-width: 48px; } }
.qtl__bar { height: 8px; border-radius: 4px; background: var(--cream-3); overflow: hidden; }
.qtl__fill { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(var(--f, 0)); transition: transform .6s var(--ease-out); }
.qtl__seg.is-current .qtl__fill { background: var(--grad-sig); }
.qtl__label { display: none; font-size: .72rem; font-weight: 650; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qtl__seg.is-current .qtl__label { color: var(--ink); }
@media (min-width: 960px) { .qtl__label { display: block; } .qtl__bar { height: 10px; } }
/* Contact form */
.form { display: grid; gap: 16px; max-width: 620px; }
.form__row { display: grid; gap: 16px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; align-content: start; }
.field label { font-weight: 650; font-size: .95rem; }
.field label small { font-weight: 500; color: var(--muted); font-size: .88rem; }
.input { width: 100%; height: 56px; padding: 0 18px; border-radius: var(--r-sm); border: 2px solid var(--line-2); background: var(--paper); font-size: 1.06rem; transition: border-color .2s, box-shadow .2s; }
textarea.input { height: auto; min-height: 140px; padding: 16px 18px; resize: vertical; line-height: 1.5; }
.input:hover { border-color: var(--gray); }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(236, 98, 68, .28); }
.input[aria-invalid="true"] { border-color: var(--red); }
.field__err { color: var(--red-text); font-size: .9rem; font-weight: 600; }
.field__err:empty { display: none; }

/* Bottom nav */
.qnav { position: sticky; bottom: 0; z-index: 10; background: rgba(246, 243, 235, .96); border-top: 1px solid var(--line); }
.qnav__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; padding-bottom: max(10px, env(safe-area-inset-bottom)); }
.qnav__back { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; cursor: pointer; font-weight: 650; padding: 12px 10px; min-height: 44px; border-radius: 999px; transition: background-color .2s, opacity .2s; }
.qnav__back svg { width: 18px; height: 18px; }
.qnav__back:hover { background: var(--cream-2); }
.qnav__back[disabled] { opacity: 0; pointer-events: none; }
.qnav__hint { display: none; color: var(--muted); font-size: .88rem; font-weight: 550; }
.qnav__hint kbd { font: inherit; font-weight: 700; font-size: .8rem; background: var(--paper); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; padding: 1px 7px; margin-inline: 2px; color: var(--ink); }
@media (min-width: 820px) { .qnav__hint { display: block; } }
/* Footer */
.footer { background: var(--ink); color: var(--cream); padding: 56px 0 40px; }
.footer__inner { display: grid; gap: 22px; align-items: center; }
@media (min-width: 860px) { .footer__inner { grid-template-columns: auto 1fr auto; grid-template-areas: "brand tag links" "copy copy copy"; } .footer .brand { grid-area: brand; } .footer__tag { grid-area: tag; } .footer__links { grid-area: links; } .footer__copy { grid-area: copy; } }
.footer__tag { color: var(--muted-dark); }
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer__links a { text-decoration: none; font-weight: 600; padding-block: 6px; }
.footer__links a:hover { color: var(--coral); }
.footer__copy { color: var(--muted-dark); font-size: .88rem; padding-top: 22px; border-top: 1px solid var(--line-dark); }

html:not(.js) [data-start] { display: none; }

/* =====================================================================
   v3 additions: Priestley scorecard (landing, Yes/No, Big 5, results)
   ===================================================================== */

/* ---------- Landing: hook ---------- */
.hero__title--q { font-size: clamp(2.5rem, 1.3rem + 4.4vw, 4.9rem); line-height: 1; letter-spacing: -.03em; max-width: 15ch; }
.hero__title--q .accent { color: var(--red); }
.hero__sub strong { color: var(--ink); font-weight: 700; }

/* Example result card (hero) */
.sample { position: relative; justify-self: center; width: min(100%, 440px); }
.sample::before, .sample::after { content: ""; position: absolute; width: 56px; height: 56px; border: 6px solid var(--ink); pointer-events: none; z-index: 2; }
.sample::before { top: -22px; left: -22px; border-right: 0; border-bottom: 0; border-top-left-radius: 18px; }
.sample::after { bottom: -22px; right: -22px; border-left: 0; border-top: 0; border-bottom-right-radius: 18px; }
@media (max-width: 520px) { .sample::before { left: -8px; top: -14px; } .sample::after { right: -8px; bottom: -14px; } .sample::before, .sample::after { width: 40px; height: 40px; border-width: 5px; } }
.sample__card { background: var(--ink); color: var(--cream); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 30px); box-shadow: var(--shadow-lg); transform: rotate(-1.5deg); display: grid; gap: 16px; }
.sample__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .85rem; font-weight: 650; }
.sample__tag { background: var(--ink-4); padding: 5px 12px; border-radius: 999px; }
.sample__rec { display: inline-flex; align-items: center; gap: 8px; color: var(--muted-dark); }
.rec-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--grad-sig); }
.sample .gauge { max-width: 280px; justify-self: center; width: 100%; }
.sample__line { font-family: var(--display); font-weight: 600; font-size: 1.25rem; text-align: center; line-height: 1.2; }

/* ---------- Landing: value proposition (3 areas) ---------- */
.value { padding-block: var(--section); background: var(--cream-2); }
.value__head { display: grid; gap: 16px; margin-bottom: clamp(36px, 5vw, 56px); max-width: 30ch; }
.value__head .h2 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.6rem); }
.areas3 { display: grid; gap: clamp(14px, 2vw, 22px); counter-reset: area; }
@media (min-width: 820px) { .areas3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.area3 { display: grid; gap: 14px; align-content: start; }
.area3 .vis { aspect-ratio: 1.6; padding: clamp(14px, 2vw, 22px); border-radius: var(--r-md); }
.area3__name { display: flex; align-items: center; gap: 10px; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.area3__name svg { width: 28px; height: 28px; color: var(--red); flex: none; }
.area3 p { color: var(--muted); font-size: 1.05rem; max-width: 34ch; }
.area3__n { font-family: var(--body); font-size: .85rem; font-weight: 700; color: var(--muted); margin-left: auto; white-space: nowrap; letter-spacing: 0; }
@media (max-width: 819px) {
  .area3 { grid-template-columns: 132px minmax(0, 1fr); column-gap: 16px; row-gap: 4px; align-items: center; }
  .area3 .vis { grid-row: span 2; padding: 10px; border-radius: var(--r-sm); }
  .area3__name { font-size: 1.4rem; }
  .area3 p { font-size: .98rem; }
}

/* ---------- Quiz screens ---------- */
.qstage { flex: 1; display: grid; align-items: center; padding-block: clamp(16px, 4vh, 48px); }
.screen { width: 100%; max-width: 1080px; margin-inline: auto; display: grid; gap: clamp(16px, 3vw, 28px); align-items: center; }
.screen.is-in { animation: screenIn .55s var(--ease-out) both; }
.screen.is-in-back { animation: screenInBack .55s var(--ease-out) both; }
@keyframes screenIn { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes screenInBack { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
.screen__main { display: grid; gap: 0; align-content: center; min-width: 0; }
.screen__chip { display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--cream-2); font-weight: 700; font-size: .85rem; margin-bottom: 14px; }
.screen__chip svg { width: 20px; height: 20px; color: var(--red); }
.screen__title { font-size: clamp(1.7rem, 1.15rem + 2.2vw, 3rem); line-height: 1.06; letter-spacing: -.025em; max-width: 20ch; }
.screen__title:focus { outline: none; }
.screen__help { margin-top: 12px; color: var(--muted); font-size: clamp(.98rem, .95rem + .2vw, 1.1rem); max-width: 50ch; }
.screen__body { margin-top: clamp(20px, 3vw, 32px); }
.screen .vis { width: 100%; aspect-ratio: 1.6; padding: clamp(12px, 2.4vw, 32px); }
@media (max-width: 959px) {
  .screen .vis { max-height: min(34vh, 240px); aspect-ratio: auto; }
  .screen .vis svg { height: 100%; max-height: calc(min(34vh, 240px) - 24px); width: auto; max-width: 100%; }
  .screen--q .vis { order: -1; }
}
@media (min-width: 960px) {
  .screen--q, .screen--pick, .screen--contact { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(40px, 5vw, 80px); }
  .screen--pick .screen__title, .screen--contact .screen__title { font-size: clamp(1.8rem, 1rem + 1.6vw, 2.6rem); }
  .screen--contact .vis, .screen--pick .vis { aspect-ratio: 1.25; }
}

/* Yes / No */
.yn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 520px; }
.yn__btn {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 18px;
  min-height: clamp(96px, 14vh, 132px); padding: 16px 18px; border-radius: var(--r-md); cursor: pointer; text-align: left;
  background: var(--paper); border: 2px solid var(--line-2); color: var(--ink);
  font-family: var(--display); font-weight: 600; font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); line-height: 1; letter-spacing: -.01em;
  transition: transform .35s var(--ease-out), border-color .2s, background-color .25s, color .25s, box-shadow .35s var(--ease-out);
}
.yn__btn:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.yn__btn:active { transform: translateY(0) scale(.98); }
.yn__key { font-family: var(--body); font-size: .78rem; font-weight: 700; color: var(--muted); background: var(--cream-2); border-radius: 7px; padding: 3px 8px; letter-spacing: 0; }
.yn__mark { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--cream-2); color: var(--ink); transition: background-color .25s, transform .4s var(--ease-out); }
.yn__mark svg { width: 17px; height: 17px; }
.yn__btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.yn__btn[aria-pressed="true"] .yn__key { background: var(--ink-4); color: var(--cream); }
.yn__btn[aria-pressed="true"] .yn__mark { background: var(--grad-sig); transform: scale(1.12); }
@media (max-width: 480px) { .yn__key { display: none; } }

/* Pick list (Big 5) */
.opts { display: grid; gap: 10px; max-width: 620px; }
.opt {
  position: relative; display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 12px 16px; min-height: 58px; border-radius: var(--r-md); cursor: pointer;
  background: var(--paper); border: 2px solid var(--line-2); color: var(--ink);
  font-weight: 600; font-size: 1.04rem; line-height: 1.3;
  transition: transform .35s var(--ease-out), border-color .2s, background-color .25s, color .25s, box-shadow .35s var(--ease-out);
}
.opt:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.opt:active { transform: translateY(0) scale(.99); }
.opt__key { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: .82rem; font-weight: 700; background: var(--cream-2); transition: background-color .25s, color .25s; }
.opt__label { flex: 1; min-width: 0; }
.opt__check { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-sig); color: var(--ink); transform: scale(0); transition: transform .4s var(--ease-out); }
.opt__check svg { width: 16px; height: 16px; }
.opt[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.opt[aria-pressed="true"] .opt__key { background: var(--ink-4); color: var(--cream); }
.opt[aria-pressed="true"] .opt__check { transform: scale(1); }
.form__note { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .92rem; font-weight: 550; }
.form__note svg { width: 18px; height: 18px; color: var(--red); flex: none; }
.form__go { justify-self: start; margin-top: 4px; }
@media (max-width: 480px) { .form__go { width: 100%; } }
.skipbtn { background: none; border: 0; cursor: pointer; font-weight: 650; color: var(--muted); padding: 12px 10px; min-height: 44px; border-radius: 999px; }
.skipbtn:hover { color: var(--ink); background: var(--cream-2); }
.qnav__right { display: flex; align-items: center; gap: 8px; }

/* ---------- Gauge (speedometer) ---------- */
.gauge { position: relative; display: grid; justify-items: center; }
.gauge svg { width: 100%; height: auto; overflow: visible; }
.g-track { fill: none; stroke: var(--ink-4); stroke-width: 18; stroke-linecap: round; }
.g-fill { fill: none; stroke: url(#gGrad); stroke-width: 18; stroke-linecap: round; transition: stroke-dashoffset 1.6s var(--ease-out); }
.g-tick { stroke: var(--cream); stroke-width: 2.5; stroke-linecap: round; opacity: .5; }
.g-lbl { fill: var(--muted-dark); font: 700 10px var(--body); }
.g-needle { transform-origin: 110px 112px; transform-box: view-box; transition: transform 1.6s var(--ease-out); }
.g-needle path { fill: var(--cream); }
.g-hub { fill: var(--cream); }
.g-hub2 { fill: var(--ink); }
.gauge__num { position: relative; margin-top: -4px; text-align: center; font-family: var(--display); font-weight: 600; line-height: 1; letter-spacing: -.04em; font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); }
.gauge__num small { font-size: .45em; color: var(--muted-dark); letter-spacing: 0; margin-left: 2px; }
.gauge--sm .gauge__num { font-size: 2.4rem; }

/* ---------- Results (one screen) ---------- */
.results { padding-top: 92px; padding-bottom: clamp(28px, 4vw, 48px); }
.rs-grid { display: grid; gap: clamp(16px, 2vw, 24px); }
@media (min-width: 1000px) { .rs-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: stretch; } }

.rs-score { background: var(--ink); color: var(--cream); border-radius: var(--r-lg); padding: clamp(20px, 2.6vw, 32px); display: grid; gap: 18px; align-content: start; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.rs-score::before { content: ""; position: absolute; width: 90%; aspect-ratio: 1; left: 5%; top: -50%; background: radial-gradient(closest-side, rgba(255, 151, 92, .16), transparent); pointer-events: none; }
.rs-score .gauge { width: min(100%, 300px); justify-self: center; }
.rs-head { text-align: center; display: grid; gap: 8px; justify-items: center; }
.rs-title { font-size: clamp(1.55rem, 1.2rem + 1.3vw, 2.2rem); letter-spacing: -.02em; max-width: 18ch; }
.rs-title:focus { outline: none; }
.rs-sub { color: var(--muted-dark); max-width: 40ch; font-size: 1rem; }
.bars3 { display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line-dark); }
.bar3 { display: grid; grid-template-columns: 7.2em minmax(0, 1fr) 2.6em; align-items: center; gap: 12px; font-weight: 650; font-size: .95rem; }
.bar3__name { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.bar3__name svg { width: 18px; height: 18px; color: var(--coral); flex: none; }
.bar3__track { height: 10px; border-radius: 99px; background: var(--ink-4); overflow: hidden; }
.bar3__fill { display: block; height: 100%; width: calc(var(--p) * 1%); border-radius: 99px; background: var(--grad-sig); transform-origin: left; animation: barIn 1.2s var(--ease-out) .3s both; }
.bar3__fill.is-low { background: var(--red); }
.bar3__val { text-align: right; color: var(--muted-dark); font-variant-numeric: tabular-nums; }
@keyframes barIn { from { transform: scaleX(0); } }

.rs-right { display: grid; gap: clamp(16px, 2vw, 24px); align-content: start; }
.rs-h { font-size: clamp(1.3rem, 1.1rem + .7vw, 1.7rem); letter-spacing: -.015em; }
.ins3 { display: grid; gap: 12px; }
@media (min-width: 700px) and (max-width: 999px) { .ins3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ins { grid-template-columns: 1fr !important; } .ins .vis { aspect-ratio: 1.6 !important; width: 100% !important; } }
.ins { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px; box-shadow: 0 6px 18px -14px rgba(37, 35, 31, .4); }
@media (min-width: 1000px) { .ins { grid-template-columns: 150px minmax(0, 1fr); padding: 12px 18px 12px 12px; } }
.ins .vis { border-radius: var(--r-sm); padding: 8px; aspect-ratio: 1.35; width: 100%; }
.ins__tag { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; color: var(--red-text); }
.ins__tag svg { width: 15px; height: 15px; }
.ins__tag--keep { color: #2F6B3A; }
.ins h3 { font-size: clamp(1.12rem, 1rem + .4vw, 1.3rem); letter-spacing: -.01em; margin-top: 2px; line-height: 1.15; }
.ins p { color: var(--muted); font-size: .93rem; line-height: 1.45; margin-top: 4px; }

.next { border-radius: var(--r-lg); padding: clamp(20px, 2.4vw, 28px); display: grid; gap: 14px; position: relative; overflow: hidden; }
.next--call { background: var(--grad); color: var(--ink); }
.next--guided { background: var(--ink); color: var(--cream); }
.next--content { background: var(--cream-2); color: var(--ink); }
.next__row { display: grid; gap: 16px; align-items: center; }
@media (min-width: 640px) { .next__row { grid-template-columns: 96px minmax(0, 1fr); } }
.next__vis { border-radius: var(--r-sm); aspect-ratio: 1; padding: 8px; }
@media (max-width: 639px) { .next__vis { display: none; } }
.next--guided .next__vis { background: #2E2B27; }
.next__title { font-size: clamp(1.4rem, 1.15rem + .9vw, 1.9rem); letter-spacing: -.02em; }
.next__text { margin-top: 6px; font-size: .98rem; line-height: 1.5; max-width: 56ch; }
.next--call .next__text { color: var(--ink-3); }
.next--guided .next__text { color: var(--muted-dark); }
.next--content .next__text { color: var(--muted); }
.next__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.next__link { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .3em; text-decoration-color: currentColor; padding-block: 8px; }
.next--call .next__link { text-decoration-color: var(--ink); }
.next--guided .next__link { color: var(--cream); text-decoration-color: var(--coral); }
.next--content .next__link { text-decoration-color: var(--coral-mid); }
.next__small { font-size: .9rem; font-weight: 550; }
.next--content .next__small { color: var(--muted); }
.next__small a { font-weight: 700; }
@media (max-width: 480px) { .next__btns .btn { width: 100%; } }

.rs-foot { margin-top: clamp(18px, 2vw, 24px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .92rem; }
.rs-tools { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; }
.rs-tools button, .rs-tools a { display: inline-flex; align-items: center; gap: 7px; background: none; border: 0; cursor: pointer; font-weight: 650; padding: 8px 0; text-decoration: none; color: var(--ink); }
.rs-tools svg { width: 17px; height: 17px; color: var(--red); }
.rs-tools button:hover, .rs-tools a:hover { color: var(--red-text); }
.rs-status { color: var(--muted); font-weight: 550; }
.rs-status:empty { display: none; }
.rs-contact { display: flex; flex-wrap: wrap; gap: 4px 18px; color: var(--muted); }
.rs-contact a { color: var(--ink); font-weight: 650; text-decoration: none; padding-block: 8px; }
.rs-contact a:hover { color: var(--red-text); }
.rs-shared { background: var(--cream-2); border-radius: var(--r-md); padding: 12px 16px; margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .v * { animation: none !important; }
  .a-fade { opacity: 0 !important; }
}

/* ---------- Print / Save as PDF: results only ---------- */
@media print {
  @page { margin: 12mm; }
  html, body { background: #fff !important; }
  .top, .footer, .skip, .landing, .quiz, .no-print { display: none !important; }
  .results { padding: 0; display: block !important; }
  .rs-score, .vis, .next, .bar3__fill, .bar3__track { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .rs-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .ins { break-inside: avoid; box-shadow: none; }
  .v * { animation: none !important; }
  .a-fade { opacity: 0 !important; }
}

/* ---------- Review fixes (round 1) ---------- */
.value__head { max-width: none; }
.value__head .h2 { max-width: 22ch; }
.rs-score { align-content: center; }
@media (max-width: 959px) {
  .screen--contact .vis { display: none; }
  .screen--pick .vis { order: -1; max-height: 112px; padding: 8px; border-radius: var(--r-md); }
  .screen--pick .vis svg { max-height: 96px; }
}
