/* Jhunjhunwala Advisors: public landing page.
   Content is fully visible without JavaScript. landing.js adds the
   `reveal-ready` and `story-ready` classes on <html> to switch on the
   scroll-linked motion, and both are skipped for prefers-reduced-motion. */

:root {
  --blue: #00509e;          /* JA logo blue (CMYK 100/70/0/0) */
  --blue-deep: #003f7d;
  --blue-night: #062a52;
  --blue-tint: #e9f0f8;
  --blue-soft: #c9dbee;
  --paper: #f7f8fa;
  --white: #ffffff;
  --ink: #0e1b2c;
  --ink-soft: #4b5768;
  --ink-faint: #6b7484;
  --red: #b5453a;           /* muted red accent from the flyer */
  --red-tint: #f6e4e1;
  --red-on-blue: #f4c0b6;
  --rule: rgba(14, 27, 44, 0.12);
  --rule-strong: rgba(14, 27, 44, 0.24);

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --header-h: 80px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p, figure, dl, dd, blockquote { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.manifesto :focus-visible,
.contact :focus-visible,
.site-footer :focus-visible { outline-color: var(--white); }
.contact .form-card :focus-visible { outline-color: var(--blue); }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -48px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
  border-radius: 8px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.section { padding: clamp(80px, 11vw, 152px) 0; }

.section-title {
  font-family: var(--serif);
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.024em;
  text-wrap: balance;
}

.section-lede {
  margin-top: 20px;
  max-width: 34em;
  font-size: 19px;
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 248, 250, 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--rule); background: rgba(247, 248, 250, 0.94); }

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand { display: flex; align-items: center; flex: none; text-decoration: none; }
.brand-logo { display: block; width: auto; height: 52px; }

.nav { display: flex; align-items: center; gap: 30px; font-size: 15px; }
.nav-link { text-decoration: none; color: var(--ink-soft); transition: color 0.15s ease; }
.nav-link:hover { color: var(--ink); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 500 16px/1 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-deep); }
.btn-ghost { border-color: var(--rule-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: var(--white); color: var(--blue); }
.btn-light:hover { background: var(--blue-tint); }
.btn .icon { width: 17px; height: 17px; }
.btn .icon-arrow { transition: transform 0.2s var(--ease-out); }
.btn:hover .icon-arrow { transform: translateX(3px); }

/* ---------- Story: hero + "what I read for" ---------- */

.story { padding: clamp(40px, 7vw, 96px) 0 clamp(72px, 9vw, 120px); }

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.story-copy { display: flex; flex-direction: column; gap: 72px; }

.hero-title {
  font-family: var(--serif);
  font-size: clamp(42px, 5.6vw, 80px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 380;
  text-wrap: balance;
}
.hero-title .accent { display: block; color: var(--blue); }

.hero-sub {
  margin-top: 28px;
  max-width: 31em;
  font-size: clamp(17px, 1.5vw, 19px);
  color: var(--ink-soft);
  text-wrap: pretty;
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.steps-title {
  font-family: var(--serif);
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.steps { margin-top: 28px; border-top: 1px solid var(--rule); }
.step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 4px 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  transition: opacity 0.4s var(--ease-out);
}
.step-num { font-family: var(--mono); font-size: 13px; color: var(--red); line-height: 1.9; }
.step h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.005em; }
.step-kind { display: block; margin-bottom: 2px; font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
.step p { grid-column: 2; color: var(--ink-soft); font-size: 16px; text-wrap: pretty; }

/* The policy schedule illustration */

.story-doc { position: relative; }
.sheet + .sheet { display: none; }

.schedule {
  position: relative;
  max-width: 480px;
  margin-left: auto;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 26px 26px 20px;
  font-size: 14.5px;
  box-shadow:
    0 1px 2px rgba(14, 27, 44, 0.04),
    0 30px 60px -30px rgba(0, 63, 125, 0.35);
  transform-origin: 50% 80%;
}
.schedule::before,
.schedule::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--white);
  border: 1px solid var(--rule);
}
.schedule::before { transform: translate(10px, 10px) rotate(2.2deg); background: #f1f4f8; }
.schedule::after { transform: translate(-8px, 14px) rotate(-1.6deg); background: #e9eef5; z-index: -2; }

.schedule-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1.5px solid var(--ink);
}
.schedule-title { font-family: var(--serif); font-size: 22px; line-height: 1.1; letter-spacing: -0.01em; }
.schedule-meta { margin-top: 6px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-faint); letter-spacing: 0.04em; }
.schedule-logo { width: 34px; flex: none; }

.clause {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  font-variant-numeric: tabular-nums;
}
.clause dt { color: var(--ink-soft); }
.clause .value { text-align: right; font-weight: 500; }
.clause.is-flag .value {
  background-image: linear-gradient(var(--red), var(--red));
  background-repeat: no-repeat;
  background-position: 100% 100%;
  background-size: 100% 1.5px;
  padding-bottom: 2px;
  transition: background-size 0.6s var(--ease-out);
}
.clause .ok { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); }
.clause .ok .icon { width: 15px; height: 15px; stroke-width: 2.4; }

.note {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding: 8px 10px 8px 12px;
  border-left: 2px solid var(--red);
  background: var(--red-tint);
  border-radius: 0 6px 6px 0;
  color: #8f3128;
  font-size: 13.5px;
  line-height: 1.45;
  overflow: hidden;
}

.schedule-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: var(--ink-faint);
}

.stamp {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 12px 5px;
  border: 2px solid var(--red);
  border-radius: 5px;
  color: var(--red);
  transform: rotate(-6deg);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.35;
  text-transform: uppercase;
  mix-blend-mode: multiply;
}
.stamp b { font-size: 14px; letter-spacing: 0.2em; }

/* ---------- Manifesto + figures ---------- */

.manifesto { background: var(--blue); color: var(--white); overflow: hidden; }
.manifesto .wrap { padding-top: clamp(96px, 13vw, 176px); padding-bottom: clamp(72px, 9vw, 120px); }

.manifesto-quote {
  max-width: 21em;
  font-family: var(--serif);
  font-size: clamp(34px, 4.8vw, 66px);
  line-height: 1.1;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.manifesto-quote .w { transition: opacity 0.35s ease; }
.manifesto-quote .soft { color: var(--blue-soft); }

.signature { display: flex; align-items: center; gap: 14px; margin-top: 40px; }
.signature-rule { width: 32px; height: 2px; flex: none; align-self: flex-start; margin-top: 12px; background: var(--red-on-blue); }
.signature-name { font-weight: 600; }
.signature-role { font-size: 15px; color: rgba(255, 255, 255, 0.72); }

.figures {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(72px, 10vw, 128px);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.figure { padding: 32px 24px 0 0; }
.figure + .figure { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, 0.22); }
.figure-num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(44px, 5.4vw, 76px);
  line-height: 1;
  letter-spacing: -0.035em;
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
}
.figure-num .plus { color: var(--red-on-blue); }
.figure-label { display: block; margin-top: 14px; font-size: 15px; color: rgba(255, 255, 255, 0.78); }

/* ---------- Approach ---------- */

.approach-head { max-width: 760px; }

.stages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: clamp(48px, 7vw, 88px);
}

.stage {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 16px;
  overflow: hidden;
}
.stage-copy { padding: 28px 28px 24px; }
.stage-copy .label { color: var(--red); }
.stage-copy h3 {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: clamp(25px, 2.3vw, 30px);
  line-height: 1.12;
  letter-spacing: -0.015em;
}
.stage-copy p:not(.label) { margin-top: 12px; color: var(--ink-soft); font-size: 16px; text-wrap: pretty; }

.stage-ui {
  margin-top: auto;
  padding: 20px;
  background: var(--blue-tint);
  border-top: 1px solid var(--rule);
  font-size: 13.5px;
}
.ui-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 14px 14px 12px;
  box-shadow: 0 10px 24px -18px rgba(0, 63, 125, 0.45);
}
.ui-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.ui-tag {
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--rule);
  font-size: 10px;
}

/* Stage 1: legalese to plain words */
.legal {
  font-family: var(--serif);
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--ink-soft);
}
.legal mark {
  background: linear-gradient(transparent 60%, rgba(181, 69, 58, 0.22) 60%);
  color: inherit;
}
.plain {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--blue);
  color: var(--white);
  font-weight: 500;
  line-height: 1.4;
}
.plain .icon { width: 16px; height: 16px; margin-top: 2px; }

/* Stage 2: daily checks */
.checks li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--rule);
}
.checks li:last-child { border-bottom: 0; }
.tick {
  display: grid;
  place-items: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  flex: none;
}
.tick .icon { width: 11px; height: 11px; stroke-width: 3; }
.checks .pending .tick { background: var(--red); }
.checks .pending .tick .icon { stroke-width: 2.6; }
.checks .pill {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--red-tint);
  color: #8f3128;
  font-size: 11.5px;
  white-space: nowrap;
}

/* Stage 3: claim timeline */
.timeline { padding-left: 22px; }
.timeline li { position: relative; display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; }
/* Dot, centred on the first line of text */
.timeline li::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: -20px; top: 11px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--blue);
}
/* Connector from this dot's centre to the next dot's centre, drawn behind both */
.timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: -16px; top: 16px;
  width: 2px;
  height: 100%;
  background: var(--blue);
  transform-origin: top;
}
.timeline li:last-child::before { background: var(--blue); }
.timeline .day { font-family: var(--mono); font-size: 11.5px; color: var(--ink-faint); white-space: nowrap; }
.timeline .done-line { font-weight: 600; color: var(--blue); }

/* ---------- Coverage ---------- */

.coverage { background: var(--white); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }

.coverage-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
}
.coverage-top .section-title { max-width: 15em; }

.tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--rule);
}
.tab {
  min-height: 42px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--blue); color: var(--white); }
.tab .count { margin-left: 6px; font-family: var(--mono); font-size: 12px; opacity: 0.7; }

.tabs { display: none; }
.tabs-ready .tabs { display: inline-flex; }

.panels { margin-top: clamp(40px, 5vw, 64px); }
.panel + .panel { margin-top: 48px; }
.tabs-ready .panel + .panel { margin-top: 0; }
.panel-title { margin-bottom: 8px; }
.tabs-ready .panel-title { display: none; }
.panel[hidden] { display: none; }
.panel.is-entering { animation: panel-in 0.45s var(--ease-out); }

.covers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(32px, 5vw, 72px);
}
.cover {
  display: grid;
  grid-template-columns: minmax(0, 10em) minmax(0, 1fr);
  gap: 6px 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}
.cover h3 { font-family: var(--serif); font-size: 26px; line-height: 1.15; letter-spacing: -0.015em; }
.cover p { color: var(--ink-soft); font-size: 16px; }

.cover-more { margin-top: 32px; font-size: 17px; color: var(--ink-soft); }
.cover-more a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
  color: var(--blue);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.cover-more a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cover-more .icon { width: 16px; height: 16px; transition: transform 0.2s var(--ease-out); }
.cover-more a:hover .icon { transform: translateX(3px); }

@keyframes panel-in {
  from { opacity: 0; transform: translateY(10px); }
}

/* ---------- Moments ---------- */

.moments-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
}
.moments-head { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
.moments-list { border-top: 1.5px solid var(--ink); }
.moment {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 6px 16px;
  padding: 26px 0;
  border-bottom: 1px solid var(--rule);
}
.moment .label { line-height: 2.3; color: var(--red); }
.moment h3 { font-family: var(--serif); font-size: clamp(23px, 2.2vw, 28px); line-height: 1.2; letter-spacing: -0.012em; }
.moment p { grid-column: 2; color: var(--ink-soft); }

/* ---------- FAQ ---------- */

.faq { background: var(--blue-tint); }
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
}
.faq-list { border-top: 1.5px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--rule-strong); }
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: clamp(21px, 2vw, 25px);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--rule-strong);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.3s var(--ease-out);
}
.faq-toggle .icon { width: 14px; height: 14px; stroke-width: 2.2; }
.faq-item[open] .faq-toggle { transform: rotate(45deg); background: var(--blue); border-color: var(--blue); color: var(--white); }
.faq-answer { padding: 0 56px 26px 0; color: var(--ink-soft); }
.faq-answer p { max-width: 38em; text-wrap: pretty; }

@supports (interpolate-size: allow-keywords) {
  .faq-list { interpolate-size: allow-keywords; }
  .faq-item::details-content {
    block-size: 0;
    overflow: clip;
    transition: block-size 0.35s var(--ease-out), content-visibility 0.35s allow-discrete;
  }
  .faq-item[open]::details-content { block-size: auto; }
}

/* ---------- Directory ---------- */

.directory-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.directory-head p { max-width: 26em; color: var(--ink-soft); }
.people {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 48px;
}
.person {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 14px;
}
.person .label { color: var(--ink-faint); }
.person-name { margin-top: 16px; font-family: var(--serif); font-size: 24px; letter-spacing: -0.01em; }
.person a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  color: var(--blue);
  font-weight: 500;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.person a:hover { text-decoration: underline; text-underline-offset: 3px; }
.person a .icon { width: 15px; height: 15px; }

.escalation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px 24px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding: 20px 22px;
  border-radius: 14px;
  border: 1px dashed var(--rule-strong);
}
.escalation p { color: var(--ink-soft); }
.escalation strong { color: var(--ink); font-weight: 600; }

/* ---------- Contact ---------- */

.contact { background: var(--blue); color: var(--white); }
.contact .wrap { padding-top: clamp(88px, 11vw, 152px); padding-bottom: clamp(88px, 11vw, 152px); }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(48px, 7vw, 112px);
  align-items: start;
}
.contact-title {
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.026em;
  text-wrap: balance;
}
.contact-title .soft { color: var(--blue-soft); }
.contact-sub { margin-top: 24px; max-width: 30em; font-size: 19px; color: rgba(255, 255, 255, 0.82); }
.contact .actions .btn-ghost { border-color: rgba(255, 255, 255, 0.4); color: var(--white); }
.contact .actions .btn-ghost:hover { border-color: var(--white); }

.contact-details { margin-top: 56px; border-top: 1px solid rgba(255, 255, 255, 0.22); }
.contact-details div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}
.contact-details dt { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.66); line-height: 2.1; }
.contact-details dd { min-width: 0; overflow-wrap: break-word; }
.contact-details dd a { text-decoration: none; }
.contact-details dd a:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact-details .map-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 15px; color: var(--red-on-blue); }
.contact-details .map-link .icon { width: 15px; height: 15px; }

.form-card {
  padding: clamp(24px, 3vw, 36px);
  background: var(--white);
  color: var(--ink);
  border-radius: 18px;
  box-shadow: 0 40px 80px -40px rgba(6, 42, 82, 0.6);
}
.form-card h3 { font-family: var(--serif); font-size: 30px; letter-spacing: -0.015em; line-height: 1.1; }
.form-card > p { margin-top: 8px; color: var(--ink-soft); font-size: 15.5px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.field label { font-size: 14px; font-weight: 500; }
.field input,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--rule-strong);
  border-radius: 10px;
  background: var(--paper);
  font: 16px/1.4 var(--sans);
  color: var(--ink);
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 3px rgba(0, 80, 158, 0.16); }
.captcha { margin-top: 20px; min-height: 78px; }
.form-error { margin-top: 10px; color: var(--red); font-size: 14.5px; }
.form-error[hidden] { display: none; }
.form-card .btn { width: 100%; margin-top: 20px; }

.form-status {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 20px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 15px;
}
.form-status[hidden] { display: none; }
.form-status.is-ok { background: var(--blue-tint); color: var(--blue-deep); }
.form-status.is-error { background: var(--red-tint); color: #8f3128; }
.form-status .icon { margin-top: 2px; }
.form-status.is-ok .icon-error,
.form-status.is-error .icon-ok { display: none; }

/* ---------- Footer ---------- */

.site-footer { background: var(--blue-night); color: rgba(255, 255, 255, 0.78); }
.site-footer .wrap { padding-top: clamp(72px, 9vw, 120px); padding-bottom: 40px; }
.footer-motto {
  font-family: var(--serif);
  font-size: clamp(44px, 8vw, 116px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--white);
}
.footer-motto span { display: block; color: var(--blue-soft); }
.footer-cols {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 3fr) minmax(0, 3fr);
  gap: 32px;
  margin-top: clamp(56px, 8vw, 104px);
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 15px;
}
.footer-brand img { width: 272px; max-width: 100%; height: auto; }
.footer-brand p { margin-top: 14px; }
.footer-cols h4 { margin-bottom: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
.footer-cols a { text-decoration: none; overflow-wrap: break-word; }
.footer-cols a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.footer-cols li + li { margin-top: 6px; }
.footer-legal {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px 48px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.56);
}
.footer-legal p:last-child { max-width: 72em; }

/* ======================================================================
   Motion
   ====================================================================== */

/* Hero entrance (CSS only; runs even if landing.js fails) */
.motion .hero-copy > * {
  animation: rise 0.9s var(--ease-out) backwards;
  animation-delay: calc(var(--d, 0) * 90ms + 80ms);
}
.motion .story-doc { animation: doc-in 1.1s var(--ease-out) 0.3s backwards; }

@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
}
@keyframes doc-in {
  from { opacity: 0; transform: translateY(48px) rotate(-4deg); }
}

/* Scroll reveals: hidden only once landing.js is watching for them */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.reveal-ready [data-reveal].is-in { opacity: 1; transform: none; }

/* Stage mini-UIs animate once their card is in view */
.reveal-ready .stage .legal { transition: opacity 0.6s ease 0.5s; }
.reveal-ready .stage .plain { opacity: 0; transform: translateY(8px); transition: opacity 0.5s var(--ease-out) 0.9s, transform 0.5s var(--ease-out) 0.9s; }
.reveal-ready .stage.is-in .plain { opacity: 1; transform: none; }
.reveal-ready .stage.is-in .legal { opacity: 0.55; }

.reveal-ready .checks li { opacity: 0; transform: translateX(-6px); transition: opacity 0.4s ease, transform 0.4s var(--ease-out); transition-delay: calc(0.45s + var(--i, 0) * 0.22s); }
.reveal-ready .stage.is-in .checks li { opacity: 1; transform: none; }

.reveal-ready .timeline li::after { transform: scaleY(0); transition: transform 0.35s var(--ease-in-out); transition-delay: calc(0.65s + var(--i, 0) * 0.32s); }
.reveal-ready .stage.is-in .timeline li::after { transform: scaleY(1); }
.reveal-ready .timeline li { opacity: 0.25; transition: opacity 0.4s ease; transition-delay: calc(0.5s + var(--i, 0) * 0.32s); }
.reveal-ready .stage.is-in .timeline li { opacity: 1; }

/* Manifesto words light up with scroll */
.story-ready .manifesto-quote .w { opacity: 0.22; }
.story-ready .manifesto-quote .w.lit { opacity: 1; }

/* Pinned story (desktop and mobile). --enter (0..1) moves from the hero to
   the annotated policy; classes s1..s5 mark steps reached, c1..c5 the
   current step. Both are set by landing.js. */
.story-ready .story { --enter: 0; height: 500vh; height: 500svh; padding: 0; }
.story-ready .story-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: clip;
}
.story-ready .story-copy { display: grid; }
.story-ready .hero-copy,
.story-ready .steps-wrap { grid-area: 1 / 1; align-self: center; }
.story-ready .hero-copy {
  opacity: clamp(0, calc(1 - var(--enter) * 2.2), 1);
  transform: translate3d(0, calc(var(--enter) * -56px), 0);
}
.story-ready .steps-wrap {
  opacity: clamp(0, calc(var(--enter) * 2.2 - 1.2), 1);
  transform: translate3d(0, calc((1 - var(--enter)) * 56px), 0);
}
.story-ready .story:not(.is-entered) .steps-wrap,
.story-ready .story.is-entered .hero-copy { pointer-events: none; }
.story-ready .hero-copy,
.story-ready .steps-wrap,
.story-ready .policy-stack { will-change: transform, opacity; }

/* Policy stack: landing.js gives each sheet a data-pos for the current step
   (front, back1-3, gone, fan1-3). */
.story-ready .policy-stack {
  display: grid;
  transform:
    translate3d(0, calc((1 - var(--enter)) * 28px), 0)
    rotate(calc((1 - var(--enter)) * -3deg))
    scale(calc(0.95 + var(--enter) * 0.05));
  transform-origin: 50% 80%;
}
.story-ready .sheet,
.story-ready .sheet + .sheet {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  transition: transform 0.6s var(--ease-out), opacity 0.4s ease;
  will-change: transform, opacity;
}
.story-ready .sheet::before,
.story-ready .sheet::after { display: none; }
.story-ready .sheet .schedule-foot { margin-top: auto; }

.story-ready .sheet[data-pos="front"] { z-index: 3; transform: none; }
.story-ready .sheet[data-pos="back1"] { z-index: 2; transform: translate(14px, 14px) rotate(2.2deg) scale(0.98); box-shadow: 0 1px 2px rgba(14, 27, 44, 0.05); }
.story-ready .sheet[data-pos="back2"] { z-index: 1; transform: translate(-10px, 22px) rotate(-1.8deg) scale(0.96); box-shadow: 0 1px 2px rgba(14, 27, 44, 0.05); }
.story-ready .sheet[data-pos="back3"] { z-index: 0; opacity: 0; transform: translate(-10px, 22px) rotate(-1.8deg) scale(0.96); }
.story-ready .sheet[data-pos="gone"] { z-index: 4; opacity: 0; transform: translate(-38%, -28px) rotate(-10deg); pointer-events: none; }
.story-ready .sheet[data-pos="fan1"] { z-index: 2; transform: translate(-28px, 8px) rotate(-3.5deg); }
.story-ready .sheet[data-pos="fan2"] { z-index: 1; transform: translate(-56px, 16px) rotate(-7deg); }
.story-ready .sheet[data-pos="fan3"] { z-index: 0; transform: translate(-84px, 24px) rotate(-10.5deg); }

.story-ready .step { position: relative; opacity: 0.34; }
.story-ready .step:not(.is-active):hover { opacity: 0.7; }
.step-jump {
  position: absolute;
  inset: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}
.step-jump:focus-visible { outline-offset: 2px; }
.story-ready .step.is-done { opacity: 0.62; }
.story-ready .step.is-active { opacity: 1; }
.story-ready .step-num { transition: color 0.3s ease; }

/* Flagged clause: underline draws in once its sheet has been read */
.story-ready .clause.is-flag .value { background-size: 0% 1.5px; }
.story-ready .story.s1 .sheet:not([data-pos^="back"]) .clause.is-flag .value { background-size: 100% 1.5px; }

.story-ready .note {
  max-height: 0;
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  transform: translateY(-4px);
  transition: max-height 0.5s var(--ease-out), margin 0.5s var(--ease-out), padding 0.5s var(--ease-out), opacity 0.35s ease, transform 0.35s var(--ease-out);
}
/* Once the story is entered the notes keep their space, so the sheets don't
   change height from one step to the next and nothing around them jumps.
   Notes then only fade and slide in. */
.story-ready .story.is-entered .note { max-height: 120px; margin-top: 8px; padding-top: 8px; padding-bottom: 8px; }
.story-ready .story.s1 .sheet[data-pos="front"] .clause.is-flag .note,
.story-ready .story.s5 .sheet[data-pos="front"] .clause.is-check .note { opacity: 1; transform: none; }
/* Only the flagged note reserves space. At the last step the check note takes
   over that slot on the front sheet, so the sheet keeps the same height. */
.story-ready .story.is-entered .clause.is-check .note { max-height: 0; margin-top: 0; padding-top: 0; padding-bottom: 0; }
.story-ready .story.s5 .sheet[data-pos="front"] .clause.is-check .note { max-height: 120px; margin-top: 8px; padding-top: 8px; padding-bottom: 8px; }
.story-ready .story.s5 .sheet[data-pos="front"] .clause.is-flag .note { max-height: 0; margin-top: 0; padding-top: 0; padding-bottom: 0; opacity: 0; }

.story-ready .clause .ok { opacity: 0; transition: opacity 0.3s ease 0.2s; }
.story-ready .story.s5 .clause .ok { opacity: 1; }

.story-ready .stamp {
  opacity: 0;
  transform: rotate(-6deg) scale(1.6);
  transition: opacity 0.18s ease 0.35s, transform 0.32s cubic-bezier(0.3, 1.2, 0.4, 1) 0.35s;
}
.story-ready .story.s5 .sheet[data-pos="front"] .stamp { opacity: 1; transform: rotate(-6deg) scale(1); }

/* Short laptop screens: only the active step keeps its description */
@media (min-width: 761px) and (max-height: 880px) {
  .story-ready .step { padding: 14px 0; }
  .story-ready .step p {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.45s var(--ease-out), opacity 0.3s ease;
  }
  .story-ready .step.is-active p { max-height: 120px; opacity: 1; }
  .story-ready .steps { margin-top: 20px; }
}

/* ======================================================================
   Responsive
   ====================================================================== */

@media (max-width: 1240px) {
  .nav-link { display: none; }
}

@media (max-width: 1080px) {
  .nav { gap: 22px; }
  .stages { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .covers { grid-template-columns: minmax(0, 1fr); }
  .moments-grid,
  .faq-grid,
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .moments-head { position: static; }
}

@media (max-width: 900px) {
  .story-grid { grid-template-columns: minmax(0, 1fr); }
  .schedule { margin: 0 auto; }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figure:nth-child(3) { padding-left: 0; border-left: 0; }
  .figure:nth-child(n + 3) { margin-top: 32px; }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .site-header,
  .site-header.is-scrolled { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(247, 248, 250, 0.97); }
  .story-ready .story-doc { will-change: transform; }
  body { font-size: 16px; }
  .brand-logo { height: 30px; }
  .cover { grid-template-columns: minmax(0, 1fr); }
  .section-lede, .contact-sub { font-size: 17px; }
  .schedule { padding: 20px 18px 16px; font-size: 14px; }
  .schedule-title { font-size: 20px; }
  .clause { padding: 10px 0; }
  .faq-answer { padding-right: 0; }
  .footer-legal { grid-template-columns: minmax(0, 1fr); }
  .contact-details div { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; }
  .schedule::before,
  .story-ready .schedule::before { transform: translate(calc(var(--enter, 1) * 5px), calc(var(--enter, 1) * 7px)) rotate(calc(var(--enter, 1) * 1.2deg)); }
  .schedule::after { display: none; }

  /* Pinned story, phone layout: copy on top, policy slides up beneath it */
  .story-ready .story { height: 470vh; height: 470svh; }
  .story-ready .story-pin { align-items: stretch; padding-top: calc(var(--header-h) + 8px); padding-bottom: 12px; }
  .story-ready .story-grid { display: block; position: relative; height: 100%; }
  .story-ready .story-copy { position: absolute; inset: 0 var(--gutter); display: block; }
  .story-ready .hero-copy { position: absolute; top: 12px; left: 0; right: 0; }
  .story-ready .steps-wrap {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 2;
    padding: 14px 16px;
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: 14px;
    box-shadow: 0 -12px 32px -24px rgba(14, 27, 44, 0.35);
  }
  .story-ready .steps-title { display: none; }
  .story-ready .steps { margin: 0; border: 0; }
  .story-ready .step { display: none; padding: 0; border: 0; }
  .story-ready .step.is-active { display: grid; }
  .story-ready .story:not(.c1):not(.c2):not(.c3):not(.c4):not(.c5) .step:first-child { display: grid; }
  .story-ready .story-doc {
    position: absolute;
    left: var(--gutter); right: var(--gutter); top: 0;
    transform: translate3d(0, calc((1 - var(--enter)) * (var(--copy-h, 60svh) + 28px)), 0);
  }
  .story-ready .schedule { max-width: 440px; }
  .story-ready .sheet[data-pos="fan1"] { transform: translate(-6px, 5px) rotate(-2deg); }
  .story-ready .sheet[data-pos="fan2"] { transform: translate(-12px, 10px) rotate(-4deg); }
  .story-ready .sheet[data-pos="fan3"] { transform: translate(-18px, 15px) rotate(-6deg); }
  .story-ready .sheet[data-pos="back1"] { transform: translate(6px, 8px) rotate(1.5deg) scale(0.98); }
  .story-ready .sheet[data-pos="back2"],
  .story-ready .sheet[data-pos="back3"] { transform: translate(-6px, 14px) rotate(-1.2deg) scale(0.96); }
}

@media (max-width: 560px) {
  .header-call { width: 42px; padding: 0; }
  .header-call-text { display: none; }
}

@media (max-width: 420px) {
  .brand-logo { height: 26px; }
  .actions .btn { flex: 1 1 100%; }
  .people { grid-template-columns: minmax(0, 1fr); }
  .footer-cols { grid-template-columns: minmax(0, 1fr); }
  .tab { padding: 0 14px; }
  .tab .count { display: none; }
  .form-card { padding: 22px 18px; }
}

/* reCAPTCHA's widget is a fixed 304px; shrink it on the narrowest phones */
@media (max-width: 350px) {
  .captcha { transform: scale(0.88); transform-origin: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
