/* The Mindset Project 2026 — shared wireframe styles
   Layout concept: full-bleed colour bands, each with a two-column "statement | detail" grid,
   hairline navy rules between rows, oversized Archivo display type. Single light theme by design
   (matches the approved screenshots). */
:root {
  --navy: #15215a;
  --navy-2: #1f2d6e;
  --sky: #72aadf;
  --mist: #e6eef8;
  --fog: #b7bdc8;
  --sun: #f2bf4c;
  --paper: #ffffff;
  --ink: #15215a;
  --ink-soft: #4a5384;
  --rule: rgba(21, 33, 90, .9);
  --rule-soft: rgba(21, 33, 90, .18);

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --s-hero: clamp(3.1rem, 10.4vw, 9.6rem);
  --s-stat: clamp(5rem, 15vw, 12rem);
  --s-h2: clamp(2rem, 4.4vw, 3.75rem);
  --s-h3: clamp(1.45rem, 2.5vw, 2.15rem);
  --s-lead: clamp(1.2rem, 1.8vw, 1.6rem);
  --s-body: 1.0625rem;
  --s-small: .875rem;

  --gutter: clamp(16px, 2.6vw, 40px);
  --header-h: 84px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 80px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--s-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--paper); }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; letter-spacing: -.035em; line-height: 1.02; margin: 0; text-wrap: balance; }
p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }

/* Width wrapper used inside every band */
.wrap {
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.site-header .bar { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.logo { font-size: 1.6rem; letter-spacing: -.03em; text-decoration: none; white-space: nowrap; margin-right: auto; }
.nav { display: flex; gap: clamp(20px, 4vw, 72px); align-items: center; }
.nav a { text-decoration: none; font-size: 1.05rem; padding-block: 6px; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.menu-btn { display: none; background: none; border: 1px solid var(--rule); color: var(--ink); font: inherit; padding: 8px 14px; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  background: var(--navy); color: var(--paper);
  text-decoration: none; font-size: 1.05rem; line-height: 1.2;
  padding: 18px 26px; border: 1px solid var(--navy);
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.btn::after { content: "→"; transition: transform .2s; }

.btn:hover::after { transform: translateX(4px); }
.btn--sun { background: var(--sun); border-color: var(--sun); color: var(--navy); }

.btn--ghost { background: transparent; color: var(--navy); }

.btn--line-light { background: transparent; color: var(--paper); border-color: var(--paper); }

.text-link { text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.text-link::after { content: " →"; }

@media (max-width: 860px) {
  :root { --header-h: 68px; }
  .logo { font-size: 1.3rem; }
  .menu-btn { display: inline-block; }
  .site-header .header-cta { display: none; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
  }
  .nav.open { display: flex; }
  .nav a { padding: 18px max(var(--gutter), env(safe-area-inset-left, 0px)); border-top: 1px solid var(--rule-soft); font-size: 1.25rem; }
  .nav .nav-cta { display: block; margin: 16px var(--gutter) 20px; text-align: center; color: var(--paper); border: 0; }
}
@media (min-width: 861px) { .nav .nav-cta { display: none; } }

/* ---------- Page bar (secondary sticky row, from screenshots) ---------- */
.page-bar { border-bottom: 1px solid var(--rule); background: var(--paper); }
.page-bar .row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; flex-wrap: wrap; }
.page-bar h2 { font-size: clamp(1.5rem, 2.6vw, 2.5rem); letter-spacing: -.02em; }
.page-bar .btn { padding: 16px 24px; }

/* ---------- Sections ---------- */
.band { padding-block: clamp(64px, 9vw, 140px); }
.band--tight { padding-block: clamp(48px, 6vw, 96px); }
.band--navy { background: var(--navy); color: var(--paper); }
.band--sky { background: var(--sky); color: var(--navy); }
.band--fog { background: var(--fog); color: var(--navy); }
.band--mist { background: var(--mist); color: var(--navy); }
.band--sun { background: var(--sun); color: var(--navy); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); gap: clamp(28px, 6vw, 120px); align-items: start; }
.split > * { min-width: 0; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

.eyebrow { font-size: var(--s-small); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 22px; display: block; }
.h2 { font-size: var(--s-h2); }
.lead { font-size: var(--s-lead); line-height: 1.35; letter-spacing: -.012em; max-width: 34em; }
.lead + .lead { margin-top: 1.1em; }
.prose { max-width: 40em; display: grid; gap: 1.1em; color: var(--ink-soft); }
.band--navy .prose { color: rgba(255,255,255,.82); }
.stack { display: grid; gap: 28px; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(36px, 4.5vw, 72px) clamp(32px, 4vw, 64px); }
.hero h1 { font-size: var(--s-hero); letter-spacing: -.045em; line-height: .95; }
.hero h1 .yr { color: var(--sun); }
.hero-foot { display: flex; justify-content: space-between; align-items: end; gap: 28px 48px; margin-top: clamp(32px, 4vw, 56px); flex-wrap: wrap; }
.hero-foot p { font-size: var(--s-lead); line-height: 1.35; max-width: 30em; letter-spacing: -.01em; }
.hero-actions { display: flex; gap: 12px 20px; align-items: center; flex-wrap: wrap; }
.hero-meta { font-size: var(--s-small); color: var(--ink-soft); }
.photo {
  width: 100%; aspect-ratio: 21 / 9; max-width: 100%; min-height: 280px; max-height: 78vh;
  background: var(--sky) url("hero.jpg") center 45% / cover no-repeat;
}

/* ---------- Statistic rows (oversized number | sentence) ---------- */
.stat-row .split { align-items: start; }
.stat-num { font-family: var(--display); font-size: var(--s-stat); line-height: .85; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.stat-num sup, .stat-num .unit { font-size: .55em; vertical-align: .45em; letter-spacing: -.02em; }
.stat-say { font-size: clamp(1.7rem, 3.5vw, 3.1rem); line-height: 1.08; letter-spacing: -.035em; }
.stat-note { margin-top: 18px; font-size: 1.05rem; max-width: 38em; opacity: .82; }
.band--navy .stat-num { color: var(--paper); }
.band--navy .stat-num .accent, .stat-num .accent { color: var(--sun); }

/* ---------- Context figures (Why It Matters) ---------- */
.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); margin-top: clamp(48px, 6vw, 88px); }
.figure { padding: 28px 28px 8px 0; border-right: 1px solid var(--rule); }
.figure + .figure { padding-left: 28px; }
.figure:last-child { border-right: 0; }
.figure b { display: block; font-weight: 400; font-size: clamp(2.6rem, 5vw, 4.4rem); letter-spacing: -.045em; line-height: 1; margin-bottom: 14px; }
.figure p { color: var(--ink-soft); max-width: 22em; }
.source { font-size: var(--s-small); color: var(--ink-soft); margin-top: 22px; }
@media (max-width: 760px) {
  .figures { grid-template-columns: 1fr; }
  .figure, .figure + .figure { padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--rule); }
}

/* ---------- Timeline (Why 2026) ---------- */
.timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(40px, 5vw, 72px); border-top: 1px solid rgba(255,255,255,.5); }
.tl { padding: 26px 24px 0 0; position: relative; }
.tl::before { content: ""; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--paper); }
.tl.now::before { background: var(--sun); width: 15px; height: 15px; top: -8px; }
.tl .yr { font-size: clamp(2.4rem, 5vw, 4.2rem); letter-spacing: -.045em; line-height: 1; }
.tl.now .yr { color: var(--sun); }
.tl p { margin-top: 10px; color: rgba(255,255,255,.78); max-width: 20em; }
@media (max-width: 640px) { .timeline { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid rgba(255,255,255,.5); } .tl { padding: 0 0 32px 26px; } .tl::before { left: -6px; top: 10px; } .tl.now::before { left: -8px; top: 8px; } }

.questions { list-style: none; padding: 0; margin: 0; border-top: 1px solid rgba(255,255,255,.3); }
.questions li { padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.3); font-size: var(--s-h3); letter-spacing: -.025em; line-height: 1.2; }

/* ---------- About Ralli ---------- */
.ralli-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.ralli-list li { padding: 20px 20px 20px 0; border-bottom: 1px solid var(--rule-soft); }
.ralli-list li b { display: block; font-weight: 500; margin-bottom: 4px; }
.ralli-list li span { color: var(--ink-soft); font-size: .98rem; }
@media (max-width: 560px) { .ralli-list { grid-template-columns: 1fr; } }

/* ---------- Final CTA + marquee ---------- */
.cta-photo {
  position: relative; color: var(--paper); text-align: center; overflow: hidden;
  background: var(--sky);
  isolation: isolate;
  padding-block: clamp(80px, 11vw, 150px) 0;
}
.cta-photo h2 { font-size: clamp(2.4rem, 5.4vw, 4.8rem); text-shadow: 0 2px 30px rgba(21,33,90,.25); }
.cta-photo p { font-size: var(--s-lead); margin: 20px auto 0; max-width: 28em; line-height: 1.3; }
.marquee {
  display: block; margin-top: clamp(48px, 6vw, 80px); text-decoration: none; color: var(--navy);
  background: rgba(255,255,255,.42); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  overflow: hidden; white-space: nowrap; padding-block: 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: inline-flex; gap: 64px; animation: slide 28s linear infinite; font-size: clamp(1.4rem, 2.4vw, 2.1rem); letter-spacing: -.02em; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee:hover { background: rgba(255,255,255,.7); }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }
.cta-photo .spacer { height: clamp(60px, 9vw, 120px); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--paper); overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(40px, 8vw, 176px); padding-block: clamp(64px, 8vw, 110px) 40px; }
.foot-grid > * { min-width: 0; }
.foot-grid h2 { font-size: clamp(2rem, 3.6vw, 3.4rem); padding-bottom: 14px; border-bottom: 1px solid var(--paper); margin-bottom: 36px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
.form { display: grid; gap: 26px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { .form .two { grid-template-columns: 1fr; } }
.field label { display: block; font-size: .98rem; margin-bottom: 6px; }
.field label small { color: rgba(255,255,255,.6); font-size: .9em; margin-left: 6px; }
.field input {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.55);
  color: var(--paper); font: inherit; padding: 10px 0; border-radius: 0;
}
.field input:focus { outline: none; border-bottom-color: var(--sun); }
.field input[aria-invalid="true"] { border-bottom-color: #ff9c8a; }
.field .err { color: #ffb4a6; font-size: .85rem; margin-top: 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: rgba(255,255,255,.78); }
.check { cursor: pointer; }
/* Custom checkbox: white outline with a clear centre; a small white tick previews on hover; yellow when ticked */
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin: 1px 0 0; cursor: pointer;
  border: 1px solid rgba(255,255,255,.55); border-radius: 0; background: transparent no-repeat center / 12px 12px; transition: background-color .2s, border-color .2s; }
.check input:hover, .check:hover input, .check input:focus-visible {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.2l2.6 2.6L10 3.4' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='square'/%3E%3C/svg%3E"); }
.check input:checked, .check:hover input:checked {
  background-color: var(--sun); border-color: var(--sun);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.2l2.6 2.6L10 3.4' fill='none' stroke='%2315215a' stroke-width='1.8' stroke-linecap='square'/%3E%3C/svg%3E"); }
.check input[aria-invalid="true"] { border-color: #ff9c8a; }
.submit { justify-self: start; background: transparent; color: var(--sun); border: 1px solid var(--sun); font: inherit; padding: 16px 28px; cursor: pointer; }

.form-done { border: 1px solid var(--sun); padding: 24px; color: var(--paper); }
.form-done b { color: var(--sun); font-weight: 500; }
.contact dl { margin: 0; display: grid; gap: 22px; }
.contact dt { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 4px; }
.contact dd { margin: 0; font-size: 1.1rem; }
.contact a { color: var(--sun); text-decoration: none; border-bottom: 1px solid currentColor; }
.byline { margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.25); color: rgba(255,255,255,.75); font-size: .98rem; max-width: 30em; }
.byline a { color: var(--paper); }
.wordmark { font-family: var(--display); font-size: clamp(2.6rem, 11.4vw, 12rem); letter-spacing: -.05em; line-height: .8; white-space: nowrap; margin-top: 40px; margin-bottom: -.12em; color: var(--paper); }
.legal { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem; color: rgba(255,255,255,.6); padding-block: 18px; border-top: 1px solid rgba(255,255,255,.2); position: relative; background: var(--navy); }

/* ---------- Toast for placeholder links ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px);
  background: var(--navy); color: var(--paper); border: 1px solid var(--sun);
  padding: 14px 20px; font-size: .95rem; max-width: calc(100vw - 32px); z-index: 90;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast code { color: var(--sun); font-family: inherit; }

/* ---------- Squarespace build notes overlay ---------- */
.notes-toggle {
  position: fixed; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 80;
  background: var(--paper); color: var(--navy); border: 1px solid var(--navy); font: inherit; font-size: .85rem;
  padding: 10px 14px; cursor: pointer; box-shadow: 0 6px 20px rgba(21,33,90,.15);
}
.notes-toggle[aria-pressed="true"] { background: var(--sun); border-color: var(--sun); }
[data-sq]:not(.site-header):not(.page-bar):not(.stat-row):not(.stack-card) { position: relative; }
body.show-notes [data-sq] { outline: 1px dashed rgba(242,191,76,.95); outline-offset: -1px; }
body.show-notes [data-sq]::before {
  content: "Squarespace · " attr(data-sq);
  position: absolute; top: 8px; left: 8px; z-index: 40;
  background: var(--sun); color: var(--navy); font-size: 11px; line-height: 1.3; letter-spacing: .02em;
  padding: 4px 8px; max-width: calc(100% - 16px); font-family: var(--body); text-transform: none; font-weight: 500;
}

/* =================== 2024 Insights microsite =================== */
.page-bar { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--header-h)); z-index: 45; }
.theme-nav { border-bottom: 1px solid var(--rule-soft); background: var(--paper); }
.theme-nav ol { list-style: none; margin: 0; padding-block: 12px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; scroll-padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)); }
.theme-nav ol::-webkit-scrollbar { display: none; }
.theme-nav a { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; gap: 10px; align-items: baseline; white-space: nowrap; text-decoration: none; padding: 9px 16px; border: 1px solid var(--rule-soft); font-size: .95rem; color: var(--navy); transition: border-color .3s cubic-bezier(.65,0,.35,1); }
.theme-nav a span { font-size: .78em; color: var(--navy); letter-spacing: .06em; }
/* Same bottom-up fill as the other buttons, in light blue with navy text */
.theme-nav a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--mist);
  transform: scaleY(0); transform-origin: 50% 100%; transition: transform .3s cubic-bezier(.65,0,.35,1); }
.theme-nav a:hover::before, .theme-nav a:focus-visible::before, .theme-nav a[aria-current="true"]::before { transform: scaleY(1); }
.theme-nav a:hover, .theme-nav a:focus-visible, .theme-nav a[aria-current="true"] { border-color: var(--navy); }
@media (prefers-reduced-motion: reduce) { .theme-nav a::before { transition: none; } }
@media (max-width: 860px) { .page-bar { position: static; } }

.ins-hero h1 { font-size: clamp(2.6rem, 7vw, 6.6rem); letter-spacing: -.045em; line-height: .98; max-width: 13em; }
.ins-hero h1 em { font-style: normal; color: var(--sun); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; border-top: 1px solid var(--rule); margin-top: clamp(40px, 5vw, 72px); }
.facts div { padding-top: 20px; min-width: 0; }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } .facts div { padding-top: 16px; } }
.facts dt { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.facts dd { margin: 6px 0 0; font-size: 1.35rem; letter-spacing: -.02em; }

.theme-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); gap: clamp(28px, 6vw, 120px); align-items: end; padding-bottom: clamp(36px, 4vw, 56px); border-bottom: 1px solid currentColor; }
.theme-head > * { min-width: 0; }
.theme-head .idx { font-size: var(--s-small); letter-spacing: .14em; text-transform: uppercase; display: block; margin-bottom: 18px; }
.theme-head h2 { font-size: clamp(2.4rem, 5.6vw, 5rem); letter-spacing: -.045em; }
@media (max-width: 760px) { .theme-head { grid-template-columns: 1fr; } }

/* Big stat + interpretation, ruled rows */
.rows { display: grid; }
.r { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); gap: clamp(20px, 6vw, 120px); padding-block: clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--rule-soft); align-items: start; }
.band--navy .r { border-bottom-color: rgba(255,255,255,.18); }
.r > * { min-width: 0; }
.r .big { font-size: clamp(4rem, 10vw, 8.4rem); line-height: .85; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.r .big small { font-size: .5em; vertical-align: .72em; letter-spacing: -.02em; }
@supports (vertical-align: 1cap) { .r .big small { vertical-align: 1cap; } } /* top of % level with the top of the digits */
.r h3 { font-size: var(--s-h3); margin-bottom: 14px; }
.r p { max-width: 38em; color: var(--ink-soft); }
.band--navy .r p { color: rgba(255,255,255,.78); }
.band--navy .big small { color: var(--sun); }
.r .avg { display: inline-block; margin-top: 14px; font-size: .85rem; letter-spacing: .04em; border: 1px solid currentColor; padding: 4px 10px; }
@media (max-width: 760px) { .r { grid-template-columns: 1fr; } }

/* Chart card */
.chart { padding-block: clamp(36px, 5vw, 64px); border-bottom: 1px solid var(--rule-soft); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); gap: clamp(20px, 6vw, 120px); }
.band--navy .chart { border-bottom-color: rgba(255,255,255,.18); }
.chart > * { min-width: 0; }
.chart h3 { font-size: var(--s-h3); }
.chart .cap { margin-top: 12px; color: var(--ink-soft); max-width: 26em; }
.band--navy .chart .cap { color: rgba(255,255,255,.72); }
@media (max-width: 760px) { .chart { grid-template-columns: 1fr; } }

/* Horizontal bars, 0–100 scale */
.hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.hbar { display: grid; grid-template-columns: minmax(0, 1fr) 4.2em; gap: 6px 16px; align-items: end; }
.hbar .lbl { font-size: 1.02rem; }
.hbar .val { text-align: right; font-size: 1.5rem; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.hbar .track { grid-column: 1 / -1; height: 14px; background: var(--mist); position: relative; }
.hbar .fill { position: absolute; inset: 0 auto 0 0; background: var(--navy); width: var(--w); }
.hbar.hi .fill { background: var(--sun); }
.band--navy .hbar .track { background: rgba(255,255,255,.14); }
.band--navy .hbar .fill { background: var(--sky); }
.band--navy .hbar.hi .fill { background: var(--sun); }
.axis { display: flex; justify-content: space-between; font-size: .78rem; color: var(--ink-soft); margin-top: 10px; font-variant-numeric: tabular-nums; }
.band--navy .axis { color: rgba(255,255,255,.55); }

/* 100% stacked bar */
.stack100 { display: flex; height: 76px; width: 100%; }
.stack100 > div { display: flex; align-items: flex-end; padding: 10px 12px; font-size: 1.4rem; letter-spacing: -.03em; min-width: 0; }
.seg-yes { background: var(--sun); color: var(--navy); }
.seg-unsure { background: var(--sky); color: var(--navy); }
.seg-no { background: var(--navy); color: var(--paper); }
.legend { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 16px; font-size: .95rem; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 12px; height: 12px; display: inline-block; }

/* Sentiment scale -5..+5 */
.scale { position: relative; margin-top: 36px; }
.scale .line { height: 14px; background: linear-gradient(90deg, var(--navy), var(--sky) 50%, var(--sun)); }
.scale .ticks { display: flex; justify-content: space-between; font-size: .82rem; margin-top: 10px; font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.scale .pin { position: absolute; top: -34px; left: var(--x); transform: translateX(-50%); text-align: center; font-size: 1.05rem; white-space: nowrap; }
.scale .pin::after { content: ""; display: block; width: 2px; height: 34px; background: var(--navy); margin: 4px auto 0; }

/* Tabs (support chart) */
.tabs { display: flex; gap: 8px; margin-bottom: 26px; flex-wrap: wrap; }
.tabs button { font: inherit; font-size: .95rem; padding: 9px 16px; background: transparent; color: var(--navy); border: 1px solid var(--rule-soft); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--navy); color: var(--paper); border-color: var(--navy); }

/* Quote */
.quote { padding-block: clamp(64px, 9vw, 140px); }
.quote blockquote { margin: 0; font-size: clamp(2rem, 4.6vw, 4.2rem); letter-spacing: -.04em; line-height: 1.06; max-width: 18em; text-wrap: balance; }
.quote blockquote::before { content: "“"; color: var(--sun); display: block; font-size: 1.6em; line-height: .6; margin-bottom: .1em; }
.quote cite { display: block; margin-top: 28px; font-style: normal; font-size: var(--s-small); letter-spacing: .12em; text-transform: uppercase; }

/* Actions accordion */
.acc { border-top: 1px solid var(--rule); }
.acc details { border-bottom: 1px solid var(--rule); }
.acc summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 3rem minmax(0, 1fr) 2rem; gap: 12px; align-items: baseline; padding-block: 26px; font-size: var(--s-h3); letter-spacing: -.025em; line-height: 1.15; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .n { font-size: .55em; letter-spacing: .06em; color: var(--ink-soft); }
.acc summary::after { content: "+"; justify-self: end; font-size: 1.1em; transition: transform .2s; }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc .body { padding: 0 2rem 30px 3.75rem; max-width: 46em; color: var(--ink-soft); }
@media (max-width: 560px) { .acc summary { grid-template-columns: 2.2rem minmax(0,1fr) 1.5rem; } .acc .body { padding-left: 2.95rem; padding-right: 0; } }

/* Report download */
.report-cta { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.report-cta > * { min-width: 0; }
.cover {
  aspect-ratio: 3 / 4; max-width: 340px; width: 100%; justify-self: end;
  background: linear-gradient(160deg, rgba(21,33,90,.0), rgba(21,33,90,.35)), url("hero.jpg") 42% 50% / cover;
  color: var(--paper); padding: 28px; display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 30px 60px -30px rgba(21,33,90,.5);
}
.cover b { font-weight: 400; font-size: 1.9rem; letter-spacing: -.035em; line-height: 1.02; }
.cover span { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
@media (max-width: 760px) { .report-cta { grid-template-columns: 1fr; } .cover { justify-self: start; max-width: 240px; } }
.cta-row { display: flex; gap: 14px 18px; flex-wrap: wrap; margin-top: 32px; }
.method { font-size: .92rem; color: var(--ink-soft); max-width: 60em; }

/* ---------- Stacking stat bands (homepage) ----------
   Each band sticks under the header; the next one slides up over it.
   Pure CSS (position: sticky), no JavaScript. */
.stat-stack .stat-row {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + var(--header-h));
  min-height: clamp(340px, 62vh, 620px);
  display: flex; align-items: center;
}
.stat-stack .stat-row > .wrap { width: 100%; }

/* Sticky chapter bars (About the project / 2024 Report Insights), matching the Squarespace build */
:root { --bar-h: 84px; }
.chapter-bar { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--header-h)); z-index: 45; }
.chapter-bar .row { min-height: var(--bar-h); padding-block: 10px; flex-wrap: nowrap; }
.chapter-bar .row h2 { min-width: 0; }
.stat-stack .stat-row { top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + var(--bar-h)); }
/* % set at full size, as in the Squarespace build */
.stat-stack .stat-num .unit { font-size: 1em; vertical-align: baseline; letter-spacing: -.05em; }
@media (max-width: 860px) {
  :root { --bar-h: 64px; }
  .chapter-bar { position: sticky; }
  .chapter-bar .row { padding-block: 8px; gap: 12px; }
  .chapter-bar .row h2 { font-size: 1.15rem; }
  .chapter-bar .btn { padding: 12px 14px; font-size: .85rem; white-space: normal; text-align: left; }
}

/* ---------- Wavy parallax photos (wave.js) ---------- */
.wave-media { position: relative; overflow: hidden; }
.wave-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cta-bg { position: absolute; inset: 0; z-index: -2; background: var(--sky) url("crowd.jpg") 50% 55% / cover no-repeat; }
.cta-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(21,33,90,.28), rgba(21,33,90,.06) 55%, rgba(21,33,90,.38)); }

/* ---------- Button hover: colour fills from the bottom up (matches the Squarespace build) ----------
   On hover the fill rises from the bottom edge; on leave it drops away, so the
   original colour returns from the top down. */
.btn, .submit { position: relative; isolation: isolate; overflow: hidden;
  --fill: var(--paper); --fill-ink: var(--navy); --fill-line: var(--navy);
  transition: color .3s cubic-bezier(.65,0,.35,1), border-color .3s cubic-bezier(.65,0,.35,1); }
.btn::before, .submit::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fill);
  transform: scaleY(0); transform-origin: 50% 100%;
  transition: transform .3s cubic-bezier(.65,0,.35,1);
}
.btn:hover::before, .btn:focus-visible::before, .submit:hover::before, .submit:focus-visible::before { transform: scaleY(1); }
.btn:hover, .btn:focus-visible, .submit:hover, .submit:focus-visible { color: var(--fill-ink); border-color: var(--fill-line); }
.btn--sun { --fill: var(--navy); --fill-ink: var(--sun); --fill-line: var(--sun); }
.btn--ghost { --fill: var(--navy); --fill-ink: var(--paper); --fill-line: var(--navy); }
.btn--line-light { --fill: var(--paper); --fill-ink: var(--navy); --fill-line: var(--paper); }
.submit { --fill: var(--sun); --fill-ink: var(--navy); --fill-line: var(--sun); }
@media (prefers-reduced-motion: reduce) { .btn::before, .submit::before { transition: none; } }

/* ---------- Stat bands: content pinned to the top of each band ---------- */
.stat-stack .stat-row { align-items: flex-start; padding-block: clamp(48px, 6vw, 88px); }
/* 44%: whole number in yellow */
.band .stat-num.stat-num--sun, .band .stat-num.stat-num--sun .unit { color: var(--sun); }

/* ---------- Timeline: dot travels along the line as you scroll ---------- */
.timeline { position: relative; }
.tl-track { position: absolute; left: 0; top: -1px; height: 1px; width: 100%; pointer-events: none; }
.tl-fill { position: absolute; left: 0; top: 0; height: 2px; margin-top: -.5px; width: var(--tl-pos, 0px); background: var(--sun); }
.tl-dot { position: absolute; top: -12px; left: var(--tl-pos, 0px); width: 25px; height: 25px; margin-left: -7px; border-radius: 50%;
  background: var(--sun); opacity: 0; transition: opacity .3s; z-index: 2; }
.timeline.tl-live .tl-dot { opacity: 1; }
.timeline.tl-live .tl::before { background: rgba(255,255,255,.45); transition: background .3s; }
.timeline.tl-live .tl.on::before { background: var(--sun); }
.timeline.tl-live .tl .yr { color: rgba(255,255,255,.45); transition: color .4s; }
.timeline.tl-live .tl.on .yr { color: var(--paper); }
.timeline.tl-live .tl.now.on .yr { color: var(--sun); }
@media (max-width: 640px) {
  .tl-track { top: 0; left: -1px; width: 1px; height: 100%; }
  .tl-fill { width: 2px; height: var(--tl-pos, 0px); margin: 0 0 0 -.5px; }
  .tl-dot { left: -12px; top: var(--tl-pos, 0px); margin: -7px 0 0 0; }
}

/* ---------- Scroll reveal (What we hope to learn) ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(44px); transition: opacity .9s ease, transform 1s cubic-bezier(.2,.7,.2,1); }
.js-reveal .reveal.shown { opacity: 1; transform: none; }
.js-reveal .btn.reveal, .js-reveal .submit.reveal { transition: opacity .9s ease, transform 1s cubic-bezier(.2,.7,.2,1), color .3s cubic-bezier(.65,0,.35,1), border-color .3s cubic-bezier(.65,0,.35,1); }

/* ---------- Who built the Mindset Project ---------- */
.who-head { margin-bottom: clamp(36px, 5vw, 64px); }
.who-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.who { padding: clamp(28px, 3.5vw, 48px) clamp(24px, 4vw, 64px) 0 0; display: grid; gap: 22px; align-content: start; min-width: 0; }
.who + .who { border-left: 1px solid var(--rule-soft); padding-left: clamp(24px, 4vw, 64px); padding-right: 0; }
.who-role { font-size: var(--s-small); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.who h3 { font-size: clamp(2rem, 3.6vw, 3rem); letter-spacing: -.035em; margin-top: -10px; }
.who-body { color: var(--ink-soft); max-width: 36em; }
.who-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.who-list li { padding: 14px 0; border-bottom: 1px solid var(--rule-soft); font-size: 1.1rem; }
@media (max-width: 760px) {
  .who-grid { grid-template-columns: 1fr; }
  .who, .who + .who { padding: 32px 0; border-left: 0; }
  .who + .who { border-top: 1px solid var(--rule); }
}

/* ---------- Data animations (animate.js adds .anim-ready, then .in per chart) ---------- */
.anim-ready .hbar .fill { width: 0; transition: width 1.3s cubic-bezier(.2,.7,.2,1); }
.anim-ready .hbars.in .hbar .fill { width: var(--w); }
.anim-ready .stack100 { clip-path: inset(0 100% 0 0); transition: clip-path 1.4s cubic-bezier(.65,0,.35,1); }
.anim-ready .stack100.in { clip-path: inset(0 0 0 0); }
.scale .pin { transition: left 1.6s cubic-bezier(.2,.7,.2,1); }
.anim-ready .scale:not(.in) .pin { left: 50%; }

/* ---------- Rolling numbers (animate.js) ---------- */
.odo { white-space: nowrap; }
.odo-c { position: relative; display: inline-block; color: transparent; }
.odo-win { --odo-x: .35em; position: absolute; left: calc(var(--odo-x) * -1); right: calc(var(--odo-x) * -1); top: var(--odo-t, 0px); height: var(--odo-h, 100%); overflow: hidden; color: var(--odo-color); }
.odo-strip { display: block; will-change: transform; }
.odo-strip > span { display: block; height: var(--odo-h, 1em); overflow: hidden; }
.odo-strip > span > span { display: block; position: relative; top: calc(var(--odo-t, 0px) * -1); line-height: var(--odo-lh); padding-left: var(--odo-x); }

/* ---------- Questions block ---------- */
.questions-col { display: grid; gap: 40px; justify-items: start; }
.questions-col .questions { width: 100%; }

/* ---------- About chapter: "Why it matters" slides up over the intro card ---------- */
.card-stack > .band { position: relative; }
.card-stack > .stack-card { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + var(--bar-h)); }

/* ---------- One survey button at a time: header button steps aside while a
   section bar with its own survey button sits under the header ---------- */
.site-header .header-cta { transition: opacity .3s ease, transform .3s ease, visibility 0s linear 0s; }
.site-header.cta-hidden .header-cta { opacity: 0; transform: translateY(-10px); visibility: hidden; pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s; }

/* ---------- 2024 page headline: line one rises in, then "quietly struggling" flips up ---------- */
.flip-head em { font-style: normal; }
.flip-head .fh-w { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .flip-head .fh-line:first-child { display: inline-block; animation: fh-rise .9s cubic-bezier(.2,.7,.2,1) .15s both; }
  .flip-head .fh-line2 { display: inline-block; animation: fh-fade .6s ease .55s both; perspective: 900px; }
  .flip-head .fh-w { transform-origin: 50% 100%; backface-visibility: hidden;
    animation: fh-flip .9s cubic-bezier(.3,1.25,.4,1) both; }
  .flip-head .fh-w:first-child { animation-delay: 1.05s; }
  .flip-head .fh-w:last-child { animation-delay: 1.2s; }
}
@keyframes fh-rise { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
@keyframes fh-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fh-flip { 0% { opacity: 0; transform: rotateX(-95deg) translateY(.25em); } 40% { opacity: 1; } 100% { opacity: 1; transform: none; } }

/* ---------- Phones and tablets: the survey button docks to the bottom of the screen ---------- */
@media (max-width: 860px) {
  .dock-cta {
    position: fixed; z-index: 70; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%); width: min(calc(100% - 32px), 440px); justify-content: center;
    padding: 18px 24px !important; box-shadow: 0 10px 30px -12px rgba(21,33,90,.45);
    transition: color .3s cubic-bezier(.65,0,.35,1), border-color .3s cubic-bezier(.65,0,.35,1), background-color .3s ease;
  }
  .page-bar .row:has(.dock-cta) { padding-block: 14px; }
  body:has(.dock-cta) .legal { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}

/* Homepage: stand-alone docked button (phones/tablets only). It waits until the hero's own
   survey button has scrolled away, and the About bar drops its duplicate button. */
.dock-solo { display: none; }
@media (max-width: 860px) {
  .dock-solo { display: inline-flex; }
  .dock-solo.dock-wait { opacity: 0; pointer-events: none; transform: translate(-50%, 16px); }
  .dock-solo { transition: opacity .3s ease, transform .3s ease, color .3s, border-color .3s, background-color .3s; }
  body:has(.dock-solo) .chapter-bar .btn[href*="typeform"] { display: none; }
}
