/* Discordia USA
   True black and warm cream. No accent colour: the only colour on the page is the flag and the badge.
   One family (Inter) with two voices: heavy upright for names, light italic for the quiet half of a line.
   The torn flag parts like a curtain as you scroll; the five questions light up one by one; the eight chapters read from a pinned stage. */

:root {
  --vh: 100svh;
  --gutter: clamp(20px, 4.5vw, 64px);
  --max: 1280px;
  --mast-h: 112px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  /* From the badge: night black, the canton's navy, the stripes' off-white, the fire ring's amber. Amber is the one accent. */
  --paper: #070708; --paper-2: #0f0f11; --chip: #18181b;
  --ink: #efeee8; --ink-soft: #c9c8c0; --ink-faint: #9b9a93;
  --red: #d94a44; --on-red: #ffffff;
  --amber: var(--red); --on-amber: var(--on-red);
  --cream: var(--ink); --on-cream: #0b0b0a; --on-cream-soft: #4a4840;
  --ember: var(--amber);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--mast-h); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-variation-settings: var(--text-opsz); font-size: 1rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
p, h1, h2, h3, ol, ul, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

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

/* ---------- Type ----------
   .title: a heading in two voices. The <i> is the quiet half: light, italic. */
.kicker { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); }
.title { font-variation-settings: var(--display-opsz); font-weight: 700; letter-spacing: -0.03em; line-height: 0.98; }

/* ---------- Masthead ---------- */
.masthead { position: sticky; top: 0; z-index: 100; padding-top: env(safe-area-inset-top, 0px); background: transparent; transition: background-color 320ms var(--ease-out); }
.masthead.is-scrolled { background: rgba(7, 7, 8, 0.94); }
/* no backdrop-filter while the sheet is open: it would turn the masthead into the containing block of the fixed sheet */
.masthead.is-open { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
.bar {
  position: relative; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; height: 68px; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; color: var(--ink); }
.brand img { width: 34px; height: 34px; }
.brand span { font-variation-settings: var(--display-opsz); font-weight: 700; font-size: 1.0625rem; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }
.links { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); }
.links a, .links .link-btn { min-height: 44px; display: inline-flex; align-items: center; font-size: 0.875rem; font-weight: 500; text-decoration: none; color: var(--ink-soft); transition: color 180ms ease; }
@media (hover: hover) and (pointer: fine) { .links a:hover, .links .link-btn:hover { color: var(--ink); } }
.link-btn { font: inherit; }
.links .pill { padding: 0 18px; border-radius: 999px; color: var(--on-amber); background: var(--amber); transition: opacity 200ms ease; }
@media (hover: hover) and (pointer: fine) { .links .pill:hover { opacity: 0.88; color: var(--on-amber); } }

.menu-toggle { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--chip); color: var(--ink); font-size: 0.8125rem; font-weight: 500; }
.menu-icon { position: relative; width: 16px; height: 10px; }
.menu-icon span { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform 240ms var(--ease-out), top 240ms var(--ease-out); }
.menu-icon span:first-child { top: 0; }
.menu-icon span:last-child { top: 8px; }
.menu-toggle[aria-expanded="true"] .menu-icon span:first-child { top: 4px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon span:last-child { top: 4px; transform: rotate(-45deg); }

/* the strip: the eight chapters as one quiet row of words */
.strip { position: relative; }
.tab-row { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); display: flex; justify-content: space-between; gap: 14px; overflow-x: auto; scrollbar-width: none; }
.tab-row::-webkit-scrollbar { display: none; }
.tab-item { flex: none; }
.tab { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; font-size: 0.8125rem; font-weight: 500; color: var(--ink-soft); transition: color 180ms ease; }
@media (hover: hover) and (pointer: fine) { .tab:hover { color: var(--ink); } }
.tab[aria-expanded="true"] { color: var(--ink); }

/* chapter panel */
.leaf {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 2;
  max-height: calc(var(--vh) - var(--mast-h) - 12px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--paper-2); transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
}
@starting-style { .leaf:not([hidden]) { opacity: 0; transform: translateY(-8px); } }
.leaf-inner { position: relative; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 44px var(--gutter) 52px; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.leaf-title { font-size: clamp(1.75rem, 3.2vw, 2.75rem); }
.leaf-text { display: grid; gap: 14px; max-width: 60ch; font-size: 1.0625rem; line-height: 1.6; color: var(--ink-soft); }
.leaf-text p:first-child { color: var(--ink); }
.leaf-close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--ink-soft); transition: background-color 160ms ease; }
.leaf-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
@media (hover: hover) and (pointer: fine) { .leaf-close:hover { background: var(--chip); } }

/* ---------- Opening: the torn flag, then the curtain parts on scroll to reveal the welcome ---------- */
.opening { position: relative; margin-top: calc(var(--mast-h) * -1); background: var(--paper); }
.opening { min-height: var(--vh); }
.stage { position: relative; min-height: var(--vh); overflow: hidden; isolation: isolate; display: grid; place-items: center; padding: calc(var(--mast-h) + 16px) var(--gutter) 24px; }
.flag { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; padding: var(--mast-h) 0 0; pointer-events: none; }
.flag-frame { position: relative; width: min(108%, calc((var(--vh) - var(--mast-h) + 32px) * 1.507)); aspect-ratio: 1290 / 856; }
.flag-half { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; will-change: transform;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 13%, #000 87%, transparent), linear-gradient(to bottom, transparent, #000 11%, #000 89%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 13%, #000 87%, transparent), linear-gradient(to bottom, transparent, #000 11%, #000 89%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
/* each half travels more than half the viewport plus its own width, so it is fully off screen at the end on any screen */
.flag-half { opacity: clamp(0, calc((0.72 - var(--p, 0)) / 0.32), 1); }
.flag-half.is-left { clip-path: polygon(var(--tear-left)); transform: translate3d(calc(var(--p, 0) * (-60vw - 50%)), 0, 0); }
.flag-half.is-right { clip-path: polygon(var(--tear-right)); transform: translate3d(calc(var(--p, 0) * (60vw + 50%)), 0, 0); }
.js .flag-half { animation: flag-in 1.6s var(--ease-out) backwards; }
@keyframes flag-in { from { opacity: 0; } to { opacity: 1; } }

.welcome { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: clamp(14px, 2.2vh, 24px); }
/* once the curtain is past halfway, the welcome arrives in order: a word, the badge, the name, the values, the button */
.js .welcome [data-stage] { opacity: 0; transform: translateY(14px); filter: blur(6px); transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out), filter 800ms var(--ease-out); }
.js .welcome.is-live [data-stage] { opacity: 1; transform: none; filter: blur(0); }
.js .welcome.is-live [data-stage]:nth-child(2) { transition-delay: 120ms; }
.js .welcome.is-live [data-stage]:nth-child(3) { transition-delay: 260ms; }
.js .welcome.is-live [data-stage]:nth-child(4) { transition-delay: 380ms; }
.js .welcome.is-live [data-stage]:nth-child(5) { transition-delay: 460ms; }
.welcome-kicker, .wordmark { font-variation-settings: var(--display-opsz); line-height: 0.95; font-size: clamp(2.25rem, 6vw, 4.5rem); white-space: nowrap; }
.welcome-kicker { font-weight: 500; letter-spacing: -0.02em; color: var(--ink-soft); }
.wordmark { font-weight: 800; letter-spacing: -0.02em; text-transform: uppercase; }
.badge { position: relative; width: min(290px, 56vw, calc((var(--vh) - var(--mast-h) - 2 * clamp(2.25rem, 6vw, 4.5rem) - 260px) * 0.888)); min-width: 180px; }
.badge::before { content: ""; position: absolute; inset: -22%; border-radius: 50%; background: radial-gradient(closest-side, rgba(233, 162, 75, 0.2), transparent 70%); z-index: -1; }
.badge img { width: 100%; }
.values { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px clamp(22px, 3vw, 40px); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }

/* buttons: a quiet outline pill, and a solid cream one */
.btn {
  display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 26px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(239, 238, 232, 0.28); color: var(--ink);
  font-size: 0.9375rem; font-weight: 500; text-decoration: none;
  transition: background-color 260ms var(--ease-out), color 260ms var(--ease-out), transform 200ms var(--ease-out);
}
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 320ms var(--ease-out); }
.btn:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--amber); color: var(--on-amber); box-shadow: none; }
  .btn:hover svg { transform: translateY(2px); }
}
.btn-solid { background: var(--amber); color: var(--on-amber); box-shadow: none; font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .btn-solid:hover { background: #e4584f; } }

/* ---------- Reveal: things settle in once as they arrive ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-group] [data-reveal]:nth-child(2) { transition-delay: 90ms; }
.js [data-group] [data-reveal]:nth-child(3) { transition-delay: 180ms; }
.js [data-group] [data-reveal]:nth-child(4) { transition-delay: 270ms; }
.js [data-group] [data-reveal]:nth-child(5) { transition-delay: 360ms; }
.js [data-group] [data-reveal]:nth-child(6) { transition-delay: 450ms; }
.js [data-group] [data-reveal]:nth-child(7) { transition-delay: 540ms; }
.js [data-group] [data-reveal]:nth-child(8) { transition-delay: 630ms; }

/* ---------- Questions: a sequence of panels. Each carries one line and a piece of the flag's cloth behind it. ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.questions { position: relative; background: var(--paper); }
.panels { display: grid; }
.panel { position: relative; min-height: clamp(420px, calc(var(--vh) * 0.66), 760px); display: grid; align-items: center; padding: clamp(56px, 8vw, 112px) var(--gutter); overflow: hidden; isolation: isolate; }
.panel-media { position: absolute; inset: 0; z-index: -1; }
.panel-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transform: scale(1.08); transition: transform 1.6s var(--ease-out); }
.panel-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 7, 8, 0.9) 0%, rgba(7, 7, 8, 0.7) 40%, rgba(7, 7, 8, 0.25) 75%, rgba(7, 7, 8, 0.1) 100%); }
.panel.is-right .panel-media::after { background: linear-gradient(270deg, rgba(7, 7, 8, 0.9) 0%, rgba(7, 7, 8, 0.7) 40%, rgba(7, 7, 8, 0.25) 75%, rgba(7, 7, 8, 0.1) 100%); }
.panel-media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, var(--paper) 0%, transparent 30%, transparent 70%, var(--paper) 100%); }
.panel.is-in .panel-media img { transform: scale(1.04); }
.panel-copy { position: relative; z-index: 1; max-width: var(--max); width: 100%; margin: 0 auto; display: grid; gap: 14px; }
.panel.is-right .panel-copy { justify-items: end; text-align: right; }
.panel-label { font-size: 0.9375rem; font-weight: 600; color: var(--red); }
.panel-text { max-width: 22ch; text-wrap: balance; font-variation-settings: var(--display-opsz); font-weight: 700; letter-spacing: -0.03em; font-size: clamp(1.75rem, 3.4vw, 3rem); line-height: 1.08; color: var(--ink); }
.panel.is-quote .panel-text { font-weight: 600; max-width: 24ch; font-size: clamp(1.5rem, 3vw, 2.75rem); }
.panel.is-cta .panel-text { color: var(--red); max-width: 22ch; }
.panel.is-plain { min-height: 0; padding-top: clamp(72px, 10vw, 140px); padding-bottom: clamp(72px, 10vw, 140px); }
.panel-text b { font-weight: 700; color: inherit; }
.panel-cite { font-size: 0.9375rem; font-weight: 500; color: var(--ink-soft); }
.quote-note { color: var(--ink-faint); margin-left: 8px; }

/* ---------- Inside: eight chapters as rows that open in place ---------- */
.inside { position: relative; padding: clamp(80px, 11vw, 160px) var(--gutter); background: var(--paper); }
.inside-title { max-width: var(--max); margin: 0 auto clamp(32px, 4.6vw, 64px); font-size: clamp(2rem, 4.6vw, 3.75rem); }
.rows { max-width: var(--max); margin: 0 auto; display: grid; }
.row-d { border-top: 1px solid var(--line); }
.row:last-child .row-d { border-bottom: 1px solid var(--line); }
.row-head { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; padding: 18px 0; }
.row-head::-webkit-details-marker { display: none; }
.row-head:active .row-mark { transform: scale(0.92); }
.row-title { font-variation-settings: var(--display-opsz); font-weight: 700; letter-spacing: -0.03em; font-size: clamp(1.5rem, 3vw, 2.75rem); line-height: 1; color: var(--ink); transition: color 200ms ease, transform 420ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .row-head:hover .row-title { transform: translateX(10px); } }
.row-mark { position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--chip); transition: background-color 200ms ease, transform 320ms var(--ease-out); }
.row-mark::before, .row-mark::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; background: var(--ink); transform: translate(-50%, -50%); transition: transform 320ms var(--ease-out); }
.row-mark::after { transform: translate(-50%, -50%) rotate(90deg); }
.row-d[open] .row-mark { background: var(--red); }
.row-d[open] .row-mark::before, .row-d[open] .row-mark::after { background: var(--on-red); }
.row-d[open] .row-mark::after { transform: translate(-50%, -50%) rotate(0deg); }
.row-d[open] .row-title { color: var(--red); }
.row-body { display: grid; grid-template-columns: repeat(12, 1fr); padding: 4px 0 40px; overflow: hidden; }
.row-body p { grid-column: 5 / span 7; font-size: clamp(1.0625rem, 1.3vw, 1.25rem); line-height: 1.55; color: var(--ink-soft); }
.row-body p + p { margin-top: 14px; }
.row-body p:first-child { color: var(--ink); font-weight: 500; }

/* ---------- Mission: the thesis first, the reasoning beneath, the six pillars beside it ---------- */
.mission { position: relative; padding: clamp(88px, 12vw, 170px) var(--gutter); background: var(--paper); }
.mission-title { max-width: var(--max); margin: 0 auto; font-size: clamp(2rem, 4.6vw, 3.75rem); }
.thesis { max-width: var(--max); margin: clamp(24px, 3vw, 40px) auto 0; font-variation-settings: var(--display-opsz); font-weight: 600; letter-spacing: -0.03em; font-size: clamp(1.75rem, 3.8vw, 3.5rem); line-height: 1.06; color: var(--red); }
.mission > * { margin-left: auto; margin-right: auto; }
.thesis { max-width: var(--max); }
.thesis { text-wrap: balance; }
@media (min-width: 901px) { .thesis { padding-right: 20%; } }
.mission-grid { max-width: var(--max); margin: clamp(48px, 7vw, 96px) auto 0; display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.mission-body { grid-column: 1 / span 7; display: grid; gap: 22px; }
.mission-body p { font-size: clamp(1.125rem, 1.5vw, 1.375rem); line-height: 1.5; color: var(--ink-soft); }
.mission-body p:first-child { color: var(--ink); font-weight: 500; }
.pillars { grid-column: 9 / span 4; display: grid; }
.pillars li { font-variation-settings: var(--display-opsz); font-weight: 700; letter-spacing: -0.03em; text-transform: uppercase; font-size: clamp(1.75rem, 2.8vw, 2.5rem); line-height: 1.1; color: var(--ink); }
.pillars li:nth-child(n+4) { color: var(--ink-faint); }

/* ---------- Notify ---------- */
.notify { position: relative; padding: clamp(88px, 13vw, 180px) var(--gutter); background: var(--paper); }
.notify-inner { max-width: 46rem; margin: 0 auto; text-align: center; display: grid; justify-items: center; gap: 24px; }
.notify-title { font-size: clamp(2.5rem, 6.4vw, 5.5rem); }
.notify-text { max-width: 36ch; font-size: 1.0625rem; color: var(--ink-soft); }
.form { margin-top: 8px; width: min(100%, 30rem); display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: var(--chip); }
.form input { flex: 1 1 auto; min-width: 0; height: 48px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); }
.form input::placeholder { color: var(--ink-faint); }
.form input:focus-visible { outline: none; box-shadow: inset 0 0 0 1px var(--ink-soft); }
.form .btn-solid { min-height: 48px; flex: none; }
.form-note { display: none; }
.form.is-done input, .form.is-done button { display: none; }
.form-thanks { display: none; flex: 1; align-items: center; justify-content: center; min-height: 48px; font-weight: 500; }
.form.is-done .form-thanks { display: flex; }
.hp { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
.footer { padding: clamp(56px, 8vw, 110px) var(--gutter) max(40px, env(safe-area-inset-bottom, 0px) + 32px); display: flex; flex-direction: column; align-items: center; text-align: center; }
.footer-badge { width: 88px; }
.footer-name { margin-top: 16px; font-variation-settings: var(--display-opsz); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 1.0625rem; }
.footer .values { margin-top: 20px; font-size: 0.6875rem; gap: 6px clamp(16px, 2vw, 28px); }
.footer-copy { margin-top: 28px; font-size: 0.8125rem; color: var(--ink-faint); }

/* ---------- The masthead settles in after the flag has painted ---------- */
.js .masthead .bar, .js .masthead .strip { opacity: 0; animation: fade-in 800ms var(--ease-out) 1.2s both; }
@keyframes fade-in { to { opacity: 1; } }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  :root { --mast-h: 64px; }
  .menu-toggle { display: inline-flex; position: relative; z-index: 2; }
  .links { display: none; }
  .bar { height: 64px; z-index: 2; }
  .brand { position: relative; z-index: 2; }
  .brand span { font-size: 0.9375rem; }
  .strip {
    display: none; position: fixed; inset: 0; z-index: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    background: var(--paper); padding: calc(var(--mast-h) + 12px) var(--gutter) calc(48px + env(safe-area-inset-bottom, 0px));
    opacity: 1; transform: none; transition: opacity 280ms var(--ease-out), transform 320ms var(--ease-out);
  }
  .masthead.is-open .strip { display: block; }
  .js .masthead .strip { animation: none; opacity: 1; }
  @starting-style { .masthead.is-open .strip { opacity: 0; transform: translateY(-10px); } }
  .tab-row { display: block; padding: 0; }
  .tab { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 58px; font-variation-settings: var(--display-opsz); font-weight: 700; letter-spacing: -0.025em; font-size: 1.375rem; color: var(--ink); }
  .tab span { flex: 1; text-align: left; }
  .tab::after { content: ""; width: 9px; height: 9px; margin-right: 6px; border-right: 1.5px solid var(--ink-faint); border-bottom: 1.5px solid var(--ink-faint); transform: rotate(45deg); transition: transform 240ms var(--ease-out), border-color 240ms ease; }
  .tab[aria-expanded="true"]::after { transform: rotate(-135deg); border-color: var(--ink); }
  .leaf { position: static; max-height: none; background: none; }
  .leaf-inner { grid-template-columns: 1fr; padding: 0 0 28px; gap: 12px; }
  .leaf-head { display: none; }
  .leaf-text { font-size: 1rem; }
  .leaf-close { display: none; }
  .sheet-links { display: grid; gap: 6px; margin-top: 32px; }
  .sheet-links a, .sheet-links .link-btn { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; font-size: 1rem; font-weight: 500; color: var(--ink-soft); text-decoration: none; }
  .sheet-close { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; margin-top: 28px; border-radius: 999px; background: var(--chip); color: var(--ink); font-size: 0.9375rem; font-weight: 500; }
  .menu-toggle { background: var(--chip); }
  .masthead.is-open .menu-toggle { background: var(--ink); color: var(--paper); }
}
@media (min-width: 1181px) { .sheet-links, .sheet-close { display: none; } }

@media (max-width: 900px) {
  .panel { min-height: clamp(420px, calc(var(--vh) * 0.72), 680px); align-items: end; padding: clamp(140px, calc(var(--vh) * 0.3), 260px) var(--gutter) 56px; }
  .panel.is-plain { min-height: 0; padding: 64px var(--gutter); }
  .panel-media img { opacity: 0.8; }
  .panel-copy { gap: 10px; }
  .panel-label { font-size: 0.875rem; }
  .panel-media::after, .panel.is-right .panel-media::after { background: linear-gradient(180deg, rgba(7, 7, 8, 0.15) 0%, rgba(7, 7, 8, 0.5) 50%, rgba(7, 7, 8, 0.92) 100%); }
  .panel.is-right .panel-copy { justify-items: start; text-align: left; }
  .row-body p { grid-column: 1 / -1; }
  .row-head { min-height: 64px; padding: 14px 0; }
  .mission-body, .pillars { grid-column: 1 / -1; }
  .pillars { display: flex; flex-wrap: wrap; gap: 6px 18px; }
}

@media (max-width: 700px) {
  .welcome-kicker, .wordmark { font-size: clamp(2rem, 10vw, 3rem); }
  .flag-frame { width: min(178%, calc((var(--vh) - var(--mast-h) + 32px) * 1.507)); }
  .badge { width: min(58vw, calc((var(--vh) - var(--mast-h) - 300px) * 0.888)); }
  .values { font-size: 0.6875rem; letter-spacing: 0.18em; gap: 6px 18px; }
  .panel-text, .panel.is-quote .panel-text { font-size: clamp(1.5rem, 7vw, 2rem); max-width: 100%; }
  .thesis { font-size: clamp(1.625rem, 7.5vw, 2.25rem); }
  .ask-label { font-size: 0.625rem; }
  .form { flex-direction: column; border-radius: 22px; }
  .form .btn-solid { width: 100%; justify-content: center; }
  .form.is-done { flex-direction: row; }
}

@media (prefers-reduced-motion: reduce) {
  .js .masthead .bar, .js .masthead .strip { animation: none; opacity: 1; }
  .js [data-reveal], .js .welcome [data-stage] { opacity: 1; transform: none; filter: none; transition: none; }
  .leaf, .row-title, .row-mark { transition: none; }
  .intro [data-line] { transform: none !important; filter: none !important; }
  .intro .flag-half { transform: none !important; }
}


/* ---------- Timed intro: flag, quotes, five questions, closing quotes ---------- */
.intro { display: none; }
.js.intro-on, .js.intro-on body { overflow: hidden; }
.js.intro-on .intro { display: block; }
.intro {
  position: fixed; inset: 0; z-index: 300; height: var(--vh); background: var(--paper); color: var(--ink);
  cursor: pointer; -webkit-tap-highlight-color: transparent; transition: opacity 900ms var(--ease-out);
}
.intro.is-leaving { opacity: 0; pointer-events: none; }
.intro-flag { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; overflow: hidden; }
.intro .flag-frame { width: min(112%, calc(var(--vh) * 0.86 * 1.507)); }
.intro .flag-half { animation: none; transition: opacity 900ms var(--ease-out); }
.intro:not(.is-flag) .flag-half { opacity: 0; }
.intro.is-flag:not(.is-ready) .flag-half { opacity: 0; }
.intro.is-gone .intro-flag { visibility: hidden; }

.scene { position: absolute; inset: 0; display: grid; place-items: center; padding: clamp(72px, 12vh, 140px) var(--gutter); visibility: hidden; pointer-events: none; }
.scene.is-on, .scene.is-out { visibility: visible; }
.scene-inner { width: 100%; max-width: 1080px; display: grid; justify-items: center; text-align: center; gap: clamp(32px, 6vh, 64px); }

.intro [data-line] {
  display: inline-block; opacity: 0; transform: translate3d(0, 22px, 0); filter: blur(5px);
  transition: opacity 900ms var(--ease-out), transform 1100ms var(--ease-out), filter 900ms var(--ease-out);
  transition-delay: 0ms;
}
.scene.is-on [data-line] { opacity: 1; transform: none; filter: blur(0); transition-delay: var(--d, 0ms); }
.scene.is-out [data-line] { opacity: 0; transform: translate3d(0, -12px, 0); filter: blur(4px); transition-duration: 520ms; transition-delay: 0ms; }

.iq { display: grid; justify-items: center; gap: 16px; }
.iq figcaption { font-size: 0.875rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); }
.iq-big { font-variation-settings: var(--display-opsz); font-weight: 700; letter-spacing: -0.025em; line-height: 1.08; font-size: clamp(2rem, 4.4vw, 4rem); max-width: 22ch; text-wrap: balance; }
.iq-mid { font-variation-settings: var(--display-opsz); font-weight: 500; letter-spacing: -0.015em; line-height: 1.3; font-size: clamp(1.25rem, 2.1vw, 1.875rem); max-width: 34ch; color: var(--ink-soft); text-wrap: balance; }
.is-irreverent .scene-inner { gap: clamp(40px, 8vh, 80px); }
.is-irreverent .iq-big { font-size: clamp(1.75rem, 3.4vw, 3.25rem); max-width: 26ch; }
.iq-big.is-red { color: var(--red); }

.iq-label { font-size: 0.875rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); }
.iq-ask { font-variation-settings: var(--display-opsz); font-weight: 700; letter-spacing: -0.03em; line-height: 1.06; font-size: clamp(2.25rem, 5vw, 4.5rem); max-width: 19ch; text-wrap: balance; }
.iq-ask [data-line] { display: inline; }
.intro .iq-ask [data-line] { display: inline-block; }
.iq-lead { color: var(--ink-faint); font-weight: 600; }

.intro-skip {
  position: absolute; right: var(--gutter); bottom: max(24px, calc(env(safe-area-inset-bottom, 0px) + 16px)); z-index: 2;
  min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--chip); color: var(--ink-soft);
  font-size: 0.875rem; font-weight: 500; opacity: 0; transition: opacity 600ms var(--ease-out) 1200ms, color 180ms ease, transform 160ms var(--ease-out);
}
.intro.is-running .intro-skip { opacity: 1; }
.intro-skip:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .intro-skip:hover { color: var(--ink); } }

@media (max-width: 700px) {
  .intro .flag-frame { width: min(178%, calc(var(--vh) * 0.8 * 1.507)); }
  .scene { padding: 72px var(--gutter) 112px; }
  .iq-big { font-size: clamp(1.75rem, 8.4vw, 2.5rem); }
  .iq-mid { font-size: clamp(1.125rem, 5vw, 1.375rem); }
  .is-irreverent .iq-big { font-size: clamp(1.5rem, 7vw, 2.125rem); }
  .iq-ask { font-size: clamp(1.875rem, 8.8vw, 2.75rem); max-width: 16ch; }
  .iq figcaption { font-size: 0.6875rem; }
  .intro-skip { left: 50%; right: auto; transform: translateX(-50%); }
  .intro-skip:active { transform: translateX(-50%) scale(0.97); }
}
.intro.is-splitting .flag-half { transition: none; }

/* Values line flips between the core values and the outcome */
.values-flip { display: grid; perspective: 700px; }
.flip-face { grid-area: 1 / 1; backface-visibility: hidden; -webkit-backface-visibility: hidden; transform-origin: 50% 50% -0.6em;
  transition: transform 760ms cubic-bezier(0.77, 0, 0.175, 1), opacity 520ms ease; }
.flip-face.is-back { transform: rotateX(-90deg); opacity: 0; }
.values-flip.is-flipped .flip-face { transform: rotateX(90deg); opacity: 0; }
.values-flip.is-flipped .flip-face.is-back { transform: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .flip-face, .flip-face.is-back, .values-flip.is-flipped .flip-face { transform: none; } }
