/* =====================================================================
   Shortlist site styles — v4
   Source of truth: shortlist_brand_template.md (sections 6-11).
   Bone canvas, white cards, phthalo gradient accents, slow paint motion.
   Headlines Montserrat 600, body Lato 400. Fonts are self-hosted (no
   external requests). No brand name appears in any class name.
   v4: every inline style moved into classes so the strict CSP
   (style-src 'self') holds in production; new ask-strip and score-parts
   sections; CSS-only hero entrance; full band labels.
   ===================================================================== */

/* ---------- Self-hosted fonts (latin subsets, ~44KB total) ---------- */
@font-face {
  font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/montserrat-600.woff2") format("woff2");
}
@font-face {
  font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/lato-400.woff2") format("woff2");
}
@font-face {
  font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/lato-700.woff2") format("woff2");
}

:root {
  /* Brand palette (extracted from the phthalo reference; see template §6) */
  --ink: #041513;
  --deep: #06231F;
  --core: #0F4D43;
  --bright: #095A4B;
  --glow: #12836E;
  --bone: #F4F2EE;
  --stone: #E8E5E1;
  --taupe: #ABA196;      /* decorative captions only, never functional text */
  --card: #FFFFFF;
  --grad-brand: linear-gradient(135deg, #06231F 0%, #0F4D43 55%, #095A4B 100%);

  /* Derived, for accessibility (template contrast rule: text is Ink or Core
     on Bone; Taupe never carries body text). This darkened taupe carries
     functional secondary text at AA. */
  --muted-text: #5A564D;
  --bone-on-dark: #F4F2EE;
  --muted-on-dark: #A8BDB6;
  --line-on-dark: #12362F;

  --maxw: 1100px;
  --radius: 10px;
  --radius-sm: 6px;
  --head: "Montserrat", "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  --body: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --shadow: 0 1px 2px rgba(4, 21, 19, .05), 0 14px 40px rgba(4, 21, 19, .07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: var(--head); font-weight: 600; letter-spacing: -0.01em; color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); line-height: 1.08; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.15; text-wrap: balance; }
h3 { font-size: 1.25rem; line-height: 1.3; }
p { margin: 0 0 1rem; }
a { color: var(--core); text-underline-offset: 3px; }
strong { font-weight: 700; }
img { max-width: 100%; display: block; }
::selection { background: rgba(15, 77, 67, .18); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }
.band { padding: 92px 0; }
.band--tight { padding: 60px 0; }
.band--slim { padding: 56px 0; }
.band--dark { background: var(--deep); color: var(--bone-on-dark); }
.band--dark h1, .band--dark h2, .band--dark h3 { color: var(--bone-on-dark); }
.band--dark a { color: var(--muted-on-dark); }
.measure { max-width: 620px; }
.center { text-align: center; }
.center .measure { margin-inline: auto; }
.section-head { margin-bottom: 44px; }

/* Anchored sections clear the sticky header on native jumps. */
#score, #how, #faq, #proof, #write { scroll-margin-top: 84px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--head); font-size: .78rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--core);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 30px; height: 2px; background: var(--grad-brand); border-radius: 2px; }
.center .eyebrow { justify-content: center; }
.band--dark .eyebrow { color: var(--muted-on-dark); }
.band--dark .eyebrow::before { background: var(--glow); }

.lead { font-size: 1.2rem; line-height: 1.6; }
.band--dark .lead { color: var(--muted-on-dark); }
.muted { color: var(--muted-text); }
.band--dark .muted { color: var(--muted-on-dark); }
.small { font-size: .86rem; }

/* Gradient text (wordmark, the Score numeral) */
.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--core);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--head); font-weight: 600; font-size: .98rem; line-height: 1;
  padding: 16px 28px; border-radius: var(--radius-sm); border: 1px solid transparent;
  cursor: pointer; text-decoration: none; letter-spacing: .01em;
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .12s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--core); color: #fff; }
.btn-solid:hover { background: var(--bright); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--stone); }
.btn-line:hover { border-color: var(--core); color: var(--core); }
.band--dark .btn-line { color: var(--bone-on-dark); border-color: var(--line-on-dark); }
.band--dark .btn-line:hover { border-color: var(--glow); color: var(--bone-on-dark); }
.btn-lg { padding: 17px 30px; font-size: 1.02rem; }

/* ---------- Header / nav (light) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 242, 238, .88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--stone);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 14px; }
.brand {
  display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none;
  font-family: var(--head); font-weight: 600; font-size: 1.35rem; letter-spacing: -.01em;
}
.brand .word {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--core);
}
.brand .tag { font-family: var(--body); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-text); font-weight: 700; }
@media (max-width: 700px) { .brand .tag { display: none; } }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 400; font-family: var(--body); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--core); font-weight: 700; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .btn { padding: 12px 20px; font-size: .9rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav-toggle svg { display: block; }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav[data-open="true"] .nav-links {
    display: flex; position: absolute; left: 0; right: 0; top: 70px;
    flex-direction: column; align-items: flex-start; gap: 2px;
    background: var(--bone); border-bottom: 1px solid var(--stone);
    padding: 12px 26px 24px; box-shadow: var(--shadow);
  }
  .nav[data-open="true"] .nav-links a { padding: 11px 0; width: 100%; font-size: 1.05rem; }
}
@media (max-width: 520px) {
  .container { padding-inline: 20px; }
  .brand { font-size: 1.2rem; }
  .nav-cta .btn { padding: 10px 14px; font-size: .84rem; }
  .nav { gap: 8px; }
}

/* ---------- The paint field (template §7: pigment settling in water) ---------- */
.paint {
  /* Oversized so the slight scroll parallax never exposes an edge seam. */
  position: absolute; inset: -28px; overflow: hidden; z-index: 0;
  background: var(--deep);
  will-change: transform;
}
.paint::before, .paint::after {
  content: ""; position: absolute; inset: -30%;
  background:
    radial-gradient(42% 55% at 22% 30%, rgba(15, 77, 67, .9), transparent 68%),
    radial-gradient(38% 48% at 74% 22%, rgba(9, 90, 75, .75), transparent 70%),
    radial-gradient(50% 60% at 60% 78%, rgba(6, 35, 31, .95), transparent 72%),
    radial-gradient(24% 30% at 84% 62%, rgba(18, 131, 110, .35), transparent 70%);
  animation: paint-drift 52s ease-in-out infinite alternate;
  will-change: transform;
}
.paint::after {
  background:
    radial-gradient(36% 44% at 68% 70%, rgba(15, 77, 67, .65), transparent 70%),
    radial-gradient(30% 40% at 18% 74%, rgba(18, 131, 110, .22), transparent 65%),
    radial-gradient(44% 52% at 40% 16%, rgba(6, 35, 31, .85), transparent 74%);
  animation-duration: 64s; animation-delay: -18s;
}
@keyframes paint-drift {
  0%   { transform: translate3d(-2.5%, -2%, 0) rotate(0.001deg) scale(1); }
  50%  { transform: translate3d(2%, 1.5%, 0) scale(1.06); }
  100% { transform: translate3d(-1%, 2.5%, 0) scale(1.02); }
}
@media (prefers-reduced-motion: reduce) {
  .paint::before, .paint::after { animation: none; }
}

/* ---------- Hero (paint behind a Bone panel) ---------- */
.hero { position: relative; padding: 108px 0 116px; overflow: hidden; }
.hero .container { position: relative; z-index: 1; }
.hero-panel {
  background: var(--bone); border-radius: 14px; box-shadow: var(--shadow);
  padding: clamp(36px, 5.5vw, 64px);
  max-width: 780px;
}
.hero-panel h1 { max-width: 17ch; }
.hero-action {
  font-family: var(--head); font-weight: 600; font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  color: var(--core); margin: 18px 0 0;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-note { margin-top: 22px; font-size: .84rem; color: var(--muted-text); max-width: 56ch; }
.hero-sub { margin-top: 14px; max-width: 52ch; color: var(--muted-text); }

/* Subpage hero variants (about, contact, thanks, 404) */
.hero--sub { padding: 88px 0 96px; }
.hero--center { padding: 120px 0; }
.hero-panel--narrow { max-width: 720px; }
.hero-panel--narrow h1 { max-width: 16ch; }
.hero-panel--narrow .hero-sub { max-width: 48ch; }
.hero-panel--center { max-width: 640px; margin-inline: auto; }
.hero-panel--center .hero-sub { margin-inline: auto; }
.hero-panel--center .hero-cta { justify-content: center; }

/* CSS-only hero entrance: runs at first paint, no library dependency, and the
   panel (the LCP element) animates transform only so paint is never delayed.
   No JS = no .js class = fully static. */
@media (prefers-reduced-motion: no-preference) {
  html.js body[data-motion="rich"] .hero-panel {
    animation: rise-in .8s cubic-bezier(.2, .8, .2, 1) both;
  }
  html.js body[data-motion="rich"] .chat-card {
    animation: fade-rise .9s .18s cubic-bezier(.2, .8, .2, 1) both;
  }
}
@keyframes rise-in { from { transform: translateY(26px); } to { transform: none; } }
@keyframes fade-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* ---------- The shift (three short lines) ---------- */
.shift-lines { list-style: none; margin: 0; padding: 0; max-width: 760px; }
.shift-lines li {
  font-family: var(--head); font-weight: 600; font-size: clamp(1.3rem, 2.8vw, 1.9rem);
  line-height: 1.3; padding: 26px 0; border-top: 1px solid var(--stone);
  display: grid; grid-template-columns: 58px 1fr; gap: 18px; align-items: baseline;
}
.shift-lines li:last-child { border-bottom: 1px solid var(--stone); }
.shift-lines .n { font-size: 1rem; color: var(--taupe); font-weight: 600; }
.shift-lines em { font-style: normal; color: var(--core); }

/* ---------- What planners ask (the question strip) ---------- */
.ask-list { list-style: none; margin: 0 auto; padding: 0; max-width: 820px; display: grid; gap: 14px; }
.ask-list li {
  justify-self: start; max-width: 92%;
  background: var(--stone); color: var(--ink);
  padding: 14px 20px; border-radius: 16px; border-bottom-left-radius: 5px;
  font-size: 1.02rem; line-height: 1.5;
}
.ask-list li:nth-child(2) { justify-self: end; border-bottom-left-radius: 16px; border-bottom-right-radius: 5px; }
.ask-bridge { max-width: 56ch; margin: 30px auto 0; font-size: 1.12rem; }
.ask-bridge strong { color: var(--core); }

/* ---------- The Score ---------- */
.band--score { padding-bottom: 92px; }
.score-wrap { display: grid; grid-template-columns: auto 1fr; gap: 64px; align-items: center; }
@media (max-width: 880px) { .score-wrap { grid-template-columns: 1fr; gap: 36px; } }
.score-figure { text-align: center; background: var(--card); border: 1px solid var(--stone); border-radius: var(--radius); padding: 44px 52px; box-shadow: var(--shadow); }
.score-figure .big {
  font-family: var(--head); font-weight: 600; font-size: clamp(5.4rem, 11vw, 8.2rem);
  line-height: 1; letter-spacing: -.02em;
}
.score-figure .big .denom { font-size: .42em; }
.score-figure .of { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-text); font-weight: 700; margin-top: 8px; font-family: var(--head); }
.bands-scale { display: flex; margin-top: 24px; border: 1px solid var(--stone); border-radius: var(--radius-sm); overflow: hidden; }
.bands-scale span { flex: 1; display: grid; place-items: center; min-height: 40px; padding: 7px 4px; font-size: .58rem; line-height: 1.25; letter-spacing: .05em; text-transform: uppercase; font-weight: 700; color: var(--muted-text); background: var(--bone); }
.bands-scale span + span { border-left: 1px solid var(--stone); }
.score-copy .lead { max-width: 46ch; }

/* How the score works: three parts, weight bars, no methodology. */
.score-parts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 64px; }
@media (max-width: 820px) { .score-parts { grid-template-columns: 1fr; } }
.part { background: var(--card); border: 1px solid var(--stone); border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow); }
.part h3 { margin: 14px 0 8px; }
.part p { margin: 0; color: var(--muted-text); }
.part-w { font-family: var(--head); font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--core); }
.part-bar { display: block; height: 4px; background: var(--stone); border-radius: 2px; margin-top: 10px; overflow: hidden; }
.part-bar i { display: block; height: 100%; background: var(--grad-brand); border-radius: 2px; }
.part-bar .w-50 { width: 50%; }
.part-bar .w-35 { width: 35%; }
.part-bar .w-15 { width: 15%; }
.score-note { max-width: 60ch; margin: 34px auto 0; text-align: center; color: var(--muted-text); }

/* ---------- How it works (dark, three steps) ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 820px) { .steps-grid { grid-template-columns: 1fr; } }
.step {
  background: rgba(244, 242, 238, .045); border: 1px solid var(--line-on-dark);
  border-radius: var(--radius); padding: 36px 30px;
  transition: border-color .2s ease, background .2s ease;
}
.step:hover { border-color: var(--glow); background: rgba(244, 242, 238, .07); }
.step .sn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--grad-brand); color: var(--bone-on-dark);
  font-family: var(--head); font-weight: 600; font-size: 1.05rem;
  border: 1px solid rgba(18, 131, 110, .5);
}
.step h3 { margin-top: 18px; }
.step p { color: var(--muted-on-dark); margin: 0; }

/* ---------- Callout (one client per category) ---------- */
.callout {
  display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--stone); border-left: 4px solid var(--core);
  border-radius: var(--radius); padding: 34px 38px; box-shadow: var(--shadow);
}
.callout h2 { margin: 0 0 6px; font-size: 1.25rem; line-height: 1.3; }
.callout p { margin: 0; color: var(--muted-text); max-width: 58ch; }

/* ---------- Proof ---------- */
.band--proof { padding-top: 36px; }
.quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 820px) { .quote-grid { grid-template-columns: 1fr; } }
.quote { background: var(--card); border: 1px solid var(--stone); border-radius: var(--radius); padding: 34px 32px; box-shadow: var(--shadow); }
.quote .q { font-family: var(--head); font-weight: 600; font-size: 1.1rem; line-height: 1.5; color: var(--ink); margin: 0; }
.quote .muted { margin: 8px 0 0; }
.quote .stamp {
  display: inline-block; margin-bottom: 14px;
  font-family: var(--head); font-size: .68rem; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase; color: var(--core);
  border: 1px solid var(--stone); border-radius: 999px; padding: 6px 12px;
  background: var(--bone);
}

/* ---------- FAQ ---------- */
.band--faq { padding-top: 64px; }
.faq { max-width: 780px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--stone); }
.faq summary {
  cursor: pointer; list-style: none; font-family: var(--head); font-weight: 600;
  color: var(--ink); font-size: 1.1rem; padding: 20px 44px 20px 0; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-weight: 400; font-size: 1.5rem; color: var(--core); }
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 0 20px; max-width: 68ch; color: var(--muted-text); }

/* ---------- Final CTA (paint again) ---------- */
.cta-final { position: relative; padding: 110px 0; text-align: center; overflow: hidden; }
.cta-final .container { position: relative; z-index: 1; }
.cta-final h2 { color: var(--bone-on-dark); max-width: 20ch; margin-inline: auto; }
.cta-final p { color: var(--muted-on-dark); max-width: 50ch; margin: 16px auto 0; }
.cta-final .btn-solid { background: var(--bone); color: var(--core); margin-top: 30px; }
.cta-final .btn-solid:hover { background: #fff; }

/* ---------- Forms (contact) ---------- */
.form { display: grid; gap: 16px; max-width: 540px; margin-top: 26px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; color: var(--ink); font-size: .9rem; }
.field input, .field textarea {
  font: inherit; color: var(--ink); padding: 13px 14px; border: 1px solid var(--stone);
  border-radius: var(--radius-sm); background: var(--card); width: 100%;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--core); box-shadow: 0 0 0 3px rgba(15, 77, 67, .14); }
.field textarea { min-height: 130px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.contact-grid { display: grid; grid-template-columns: 1fr 360px; gap: 60px; align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; gap: 38px; } }
.contact-grid h2 { max-width: 18ch; }
.contact-grid .intro { max-width: 52ch; }
.contact-aside { background: var(--card); border: 1px solid var(--stone); border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow); }
.contact-aside h3 { margin-top: 0; }
.contact-aside a { font-weight: 700; }
.aside-rule { border: none; border-top: 1px solid var(--stone); margin: 24px 0; }
.band--contact { padding-top: 72px; }

/* ---------- About ---------- */
.prose { max-width: 660px; }
.prose p { font-size: 1.12rem; line-height: 1.75; color: var(--ink); }
.prose h2 { margin-top: 52px; }
.about-grid { display: grid; grid-template-columns: 1fr 340px; gap: 64px; align-items: start; }
@media (max-width: 920px) { .about-grid { grid-template-columns: 1fr; } }
.portrait {
  margin: 0;
  background: var(--card); border: 1px solid var(--stone); border-radius: var(--radius);
  padding: 14px; box-shadow: var(--shadow); position: sticky; top: 96px;
}
.portrait img { border-radius: var(--radius-sm); }
.portrait figcaption { padding: 12px 6px 4px; font-size: .85rem; color: var(--muted-text); }
.principles { list-style: none; margin: 24px 0 0; padding: 0; }
.principles li { display: grid; grid-template-columns: 28px 1fr; gap: 13px; padding: 16px 0; border-top: 1px solid var(--stone); }
.principles li:last-child { border-bottom: 1px solid var(--stone); }
.principles .tick { color: var(--core); font-weight: 800; }
.principles strong { color: var(--ink); }

/* ---------- Footer (deep) ---------- */
.site-footer { background: var(--deep); color: var(--muted-on-dark); padding: 64px 0 36px; }
.site-footer a { color: var(--bone-on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .brand .word {
  background: linear-gradient(135deg, #9fd8cb 0%, #d9efe9 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--bone-on-dark);
}
.site-footer--min { padding: 36px 0; }
.site-footer--min .footer-bottom { border: none; margin: 0; padding: 0; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand { max-width: 360px; }
.footer-brand p { color: var(--muted-on-dark); margin-top: 14px; font-size: .95rem; }
.footer-brand .small { margin-top: 10px; color: var(--muted-on-dark); }
.footer-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.foot-label { color: var(--bone-on-dark); margin: 0 0 14px; font-family: var(--head); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .95rem; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-on-dark); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .84rem; }

/* ---------- Scroll reveals for SUBPAGES (JS adds .is-in; no-JS stays visible).
   The homepage sets body[data-motion="rich"] and hands reveals to GSAP, so this
   CSS path must never hide anything there. ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js body:not([data-motion="rich"]) [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s cubic-bezier(.2, .8, .2, 1); }
  html.js body:not([data-motion="rich"]) [data-reveal].is-in { opacity: 1; transform: none; }
  html.js body:not([data-motion="rich"]) [data-reveal="2"] { transition-delay: .1s; }
}

/* utilities */
:focus-visible { outline: 3px solid var(--glow); outline-offset: 2px; }
.faq summary:focus-visible { outline: 3px solid var(--glow); outline-offset: -3px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--core); color: #fff; padding: 10px 16px; z-index: 100; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

/* =====================================================================
   MOTION LAYER (homepage, body[data-motion="rich"]). Self-hosted GSAP +
   ScrollTrigger + Lenis in assets/vendor/, no CDN. Everything degrades:
   no JS = full static page.
   ===================================================================== */

/* ---------- Lenis smooth scrolling (recommended base styles) ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- Hero grid: panel beside the answer demo ---------- */
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px; align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 28px; } }
.hero-grid .hero-panel { max-width: none; }

/* ---------- Living paint: canvas + grain over the CSS fallback ---------- */
.paint-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.paint-grain {
  position: absolute; inset: 0; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27180%27%20height%3D%27180%27%3E%3Cfilter%20id%3D%27n%27%3E%3CfeTurbulence%20type%3D%27fractalNoise%27%20baseFrequency%3D%270.82%27%20numOctaves%3D%272%27%20stitchTiles%3D%27stitch%27%2F%3E%3CfeColorMatrix%20type%3D%27saturate%27%20values%3D%270%27%2F%3E%3C%2Ffilter%3E%3Crect%20width%3D%27100%25%27%20height%3D%27100%25%27%20filter%3D%27url(%23n)%27%2F%3E%3C%2Fsvg%3E");
  background-size: 180px 180px;
}
/* When the canvas is live, quiet the CSS-gradient fallback underneath it. */
.paint.canvas-live::before, .paint.canvas-live::after { animation: none; opacity: 0; }

/* ---------- The answer demo (chat card) ---------- */
.chat-card {
  background: var(--card); border: 1px solid var(--stone); border-radius: 14px;
  box-shadow: 0 2px 6px rgba(4, 21, 19, .14), 0 30px 70px rgba(4, 21, 19, .38);
  padding: 22px 22px 16px; max-width: 460px; justify-self: end; width: 100%;
}
@media (max-width: 980px) { .chat-card { justify-self: start; } }
.chat-head {
  display: flex; align-items: center; gap: 8px; padding-bottom: 14px; margin-bottom: 16px;
  border-bottom: 1px solid var(--stone);
  font-family: var(--head); font-weight: 600; font-size: .72rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted-text);
}
.chat-head .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--stone); }
.chat-head .dot:first-child { background: var(--glow); }
.chat-body { min-height: 218px; display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 520px) { .chat-body { min-height: 246px; } }
.msg { max-width: 88%; padding: 12px 15px; border-radius: 14px; font-size: .95rem; line-height: 1.5; }
.msg-planner { align-self: flex-end; background: var(--stone); color: var(--ink); border-bottom-right-radius: 4px; }
.msg-ai { align-self: flex-start; background: var(--bone); border: 1px solid var(--stone); color: var(--ink); border-bottom-left-radius: 4px; }
.msg-ai .ln { display: block; }
.msg-ai .ln + .ln { margin-top: 6px; }
.msg-ai .hl {
  font-family: var(--head); font-weight: 600;
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--core);
  filter: drop-shadow(0 0 14px rgba(18, 131, 110, .55));
}
.typing { display: inline-flex; gap: 5px; align-self: flex-start; padding: 13px 15px; background: var(--bone); border: 1px solid var(--stone); border-radius: 14px; border-bottom-left-radius: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--taupe); animation: typing-b 1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .16s; }
.typing i:nth-child(3) { animation-delay: .32s; }
@keyframes typing-b { 0%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-4px); opacity: 1; } }
.chat-caret { display: inline-block; width: 2px; height: 1em; background: var(--core); vertical-align: text-bottom; margin-left: 1px; animation: caret-b .9s steps(1) infinite; }
@keyframes caret-b { 50% { opacity: 0; } }
.chat-note { margin: 14px 0 2px; font-size: .72rem; color: var(--muted-text); letter-spacing: .04em; }
@media (prefers-reduced-motion: reduce) {
  .typing { display: none; }
  .chat-caret { display: none; }
}

/* ---------- Score reveal: gradient ring + band sweep ---------- */
.score-figure { position: relative; }
.score-ring { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.score-ring rect { fill: none; stroke: url(#ringGrad); stroke-width: 2.5; }
.bands-scale span { transition: background .45s ease, color .45s ease; }
.bands-scale span.on { background: var(--grad-brand); color: var(--bone-on-dark); }

/* ---------- Flowing ink dividers ---------- */
.divider { display: block; line-height: 0; }
.divider--deep { background: var(--deep); }
.divider svg { display: block; width: 100%; height: clamp(44px, 8vw, 104px); }
.wave-overlay { position: absolute; left: 0; right: 0; z-index: 1; line-height: 0; pointer-events: none; }
.wave-overlay svg { display: block; width: 100%; height: clamp(38px, 6.5vw, 88px); }
.wave-overlay.at-bottom { bottom: -1px; }
.wave-overlay.at-top { top: -1px; transform: scaleY(-1); }

/* ---------- Microinteractions ---------- */
.btn { position: relative; overflow: hidden; }
.btn-solid::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 60%;
  background: linear-gradient(105deg, transparent 20%, rgba(244, 242, 238, .28) 50%, transparent 80%);
  transform: translateX(-160%) skewX(-14deg); pointer-events: none;
}
.btn-solid:hover::after { transition: transform .7s cubic-bezier(.3, .7, .3, 1); transform: translateX(280%) skewX(-14deg); }
.btn:hover { transform: translateY(-1.5px); }
.btn:active { transform: translateY(1px); }
.quote, .callout, .score-figure, .contact-aside, .part {
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.quote:hover, .callout:hover, .contact-aside:hover, .part:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 6px rgba(4, 21, 19, .05), 0 20px 52px rgba(15, 77, 67, .16);
  border-color: rgba(15, 77, 67, .35);
}
.step { transition: transform .22s ease, border-color .2s ease, background .2s ease, box-shadow .22s ease; }
.step:hover { transform: translateY(-2px); box-shadow: 0 16px 44px rgba(2, 12, 10, .45); }
.nav-links a { position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--grad-brand); border-radius: 2px;
  transform: scaleX(0); transform-origin: left center; transition: transform .28s cubic-bezier(.2, .8, .2, 1);
}
.nav-links a:hover::after, .nav-links a:focus-visible::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  .btn:hover, .quote:hover, .callout:hover, .step:hover, .contact-aside:hover, .part:hover { transform: none; }
  .btn-solid::after { display: none; }
  .nav-links a::after { transition: none; }
}

/* ---------- Shortlist glyph (five list lines, one makes the list) ---------- */
.glyph { display: block; margin: 0 auto 18px; width: 96px; height: 66px; }
.glyph line { stroke: var(--line-on-dark); stroke-width: 5; stroke-linecap: round; }
.glyph line.hl-base { stroke: rgba(18, 131, 110, .25); }
.glyph line.hl-line { stroke: url(#glyphGrad); }

/* ---------- The shift scene (search fades, chat takes over) ---------- */
#shift .container { position: relative; }
.shift-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
@media (max-width: 880px) { .shift-grid { grid-template-columns: 1fr; gap: 36px; } }
.shift-scene { position: relative; min-height: 190px; }
.scene-search, .scene-chat { position: absolute; inset: auto 0; top: 50%; transform: translateY(-50%); }
.scene-search {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--stone); border-radius: 999px;
  padding: 16px 22px; box-shadow: var(--shadow);
  color: var(--muted-text); font-size: 1rem;
}
.scene-search svg { flex: 0 0 auto; }
.scene-chat {
  background: var(--card); border: 1px solid var(--stone); border-radius: 16px;
  border-bottom-left-radius: 5px; padding: 18px 22px; box-shadow: var(--shadow);
  display: flex; gap: 12px; align-items: flex-start;
}
.scene-chat .ai-dot {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  background: var(--grad-brand); display: grid; place-items: center;
  color: var(--bone-on-dark); font-family: var(--head); font-weight: 600; font-size: .7rem;
}
.scene-chat p { margin: 0; font-family: var(--head); font-weight: 600; color: var(--ink); font-size: 1.02rem; line-height: 1.4; }
/* Static/no-GSAP default: show the destination state (chat), hide the search. */
.shift-scene .scene-search { opacity: 0; visibility: hidden; }
.shift-scene .scene-chat { opacity: 1; }
body[data-motion="rich"].gsap-on .shift-scene .scene-search { visibility: visible; }

/* Grid blowout guard: grid/flex items default to min-width auto, which lets
   long content push columns past the viewport on small screens. */
.hero-grid > *, .shift-grid > *, .score-wrap > * { min-width: 0; }
.chat-card, .msg { overflow-wrap: break-word; }
