:root {
  --paper: #f3efe6;
  --ink: #1f221c;
  --mute: #4b4e44;
  --dim: #6b6d62;
  --green: #2e6a4a;
  --rule: rgba(31, 34, 28, .2);
  --pad: 4vw;
  --sans: 'Schibsted Grotesk', system-ui, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --mono: 'Geist Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--sans); }
h1, h2, h3, p, dl, dd, ol { margin: 0; padding: 0; }
ol { list-style: none; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.mono { font-family: var(--mono); }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }

h1 { font-size: clamp(44px, 5.2vw, 84px); line-height: 1; font-weight: 500; letter-spacing: -.04em; text-wrap: balance; }
h2 { font-size: clamp(30px, 3.2vw, 48px); line-height: 1.05; font-weight: 500; letter-spacing: -.03em; text-wrap: balance; }
h2.sm { font-size: clamp(28px, 2.8vw, 40px); }
h2.lg { font-size: clamp(32px, 3.4vw, 52px); line-height: 1.02; letter-spacing: -.035em; }
h2.xl { font-size: clamp(40px, 5vw, 76px); line-height: .98; letter-spacing: -.04em; }
h2.xxl { font-size: clamp(40px, 5.6vw, 92px); line-height: .98; letter-spacing: -.045em; max-width: 1200px; }
.eyebrow { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.lede { font-size: 18px; color: var(--mute); max-width: 520px; text-wrap: pretty; }
.body { color: var(--mute); text-wrap: pretty; }
.body.sm { font-size: 16px; }

.btn { display: inline-block; border: 1px solid var(--ink); padding: 14px 22px; font: 500 15px/1.2 var(--sans); cursor: pointer; border-radius: 0; }
.btn.dark { background: var(--ink); color: var(--paper); }
.btn.green { background: var(--green); border-color: var(--green); color: #fff; font-size: 16px; padding: 16px 26px; }
.btn.small { padding: 10px 18px; font-size: 14px; }
.btn.dark:hover { background: var(--green); border-color: var(--green); }
.btn.green:hover { background: var(--ink); border-color: var(--ink); }
.text-link { align-self: flex-start; border-bottom: 1px solid var(--ink); padding-bottom: 3px; font-weight: 500; font-size: 15px; }

.nav { position: fixed; inset: 0 0 auto 0; z-index: 30; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 16px var(--pad); background: rgba(243, 239, 230, .86); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(31, 34, 28, .1); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 20px; letter-spacing: -.02em; }
.brand img { display: block; height: 30px; width: auto; }
.nav-links { display: flex; gap: 32px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.nav-links a:hover { color: var(--green); }
.nav-actions { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
/* Sign in / Dashboard: set apart from the page's buttons, as the door into the app. */
.app-link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; margin-left: 8px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--green); background: rgba(46, 106, 74, .08); border: 1px solid rgba(46, 106, 74, .35); border-radius: 999px; transition: background-color .2s, color .2s; }
.app-link svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; transition: transform .2s; }
.app-link:hover { background: var(--green); color: #fff; }
.app-link:hover svg { transform: translate(1px, -1px); }
.app-link .dot { display: none; width: 7px; height: 7px; border-radius: 50%; background: #3fa06b; box-shadow: 0 0 0 3px rgba(63, 160, 107, .2); }
.app-link.in .dot { display: block; }
.nav-actions .app-link { position: relative; }
.nav-actions .app-link::after { content: ''; position: absolute; left: -10px; top: 6px; bottom: 6px; width: 1px; background: var(--rule); }

/* The pinned drawing. stage.js sets the frame's left and width per chapter. */
.story { position: relative; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; z-index: 0; }
.frame { position: absolute; top: 0; bottom: 0; left: 44%; width: 56%; }
.frame > svg { position: absolute; left: 0; top: 72px; width: 100%; height: calc(100% - 96px); overflow: visible; }
.fig { position: absolute; top: 92px; left: 28px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #5d5f55; }
.metrics { position: absolute; bottom: 40px; left: 28px; max-width: calc(100% - 28px - var(--pad)); display: flex; gap: 6px 20px; flex-wrap: wrap; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; background: #faf8f2; border: 1px solid rgba(31, 34, 28, .18); padding: 10px 14px; }
.metrics i { font-style: normal; color: var(--dim); }
.metrics .rank { color: var(--green); }
.metrics .key { display: inline-flex; align-items: center; gap: 5px; }
.metrics .key b { width: 9px; height: 9px; margin-left: 5px; }
/* Wind rose, shown in the breeze chapter. stage.js fills the petals and the caption. */
.rose { position: absolute; bottom: 40px; left: 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #4d7391; opacity: 0; pointer-events: none; }
.rose svg { width: 84px; height: 84px; overflow: visible; }

.chapters { position: relative; z-index: 1; margin-top: -100vh; margin-top: -100svh; }
.ch { min-height: 120vh; display: flex; align-items: center; padding: 0 var(--pad); }
.ch.hero { min-height: 100vh; min-height: 100svh; padding: 96px var(--pad) 64px; }
.ch.tall110 { min-height: 110vh; }
.ch.tall130 { min-height: 130vh; }
.ch.right { justify-content: flex-end; }
.ch.bottom { align-items: flex-end; padding-bottom: 10vh; }
.ch.top { align-items: flex-start; padding-top: 16vh; }
.col { display: flex; flex-direction: column; gap: 22px; }
.hero .col { gap: 28px; }
.w42 { width: min(42%, 600px); }
.w38 { width: min(38%, 520px); }
.w36 { width: min(36%, 480px); }
.w440 { width: min(440px, 90%); }
.w420 { width: min(420px, 90%); }
.card { gap: 18px; background: var(--paper); border: 1px solid var(--rule); padding: 28px; }

.problems { counter-reset: p; font-size: 16px; line-height: 1.45; }
.problems li { counter-increment: p; display: grid; grid-template-columns: 40px 1fr; padding: 12px 0; border-top: 1px solid var(--rule); }
.problems li:last-child { border-bottom: 1px solid var(--rule); }
.problems li::before { content: counter(p, decimal-leading-zero); font: 400 12px/1 var(--mono); color: var(--dim); padding-top: 5px; }

.stats { display: grid; gap: 16px 24px; font-size: 12px; text-transform: uppercase; border-top: 1px solid var(--rule); padding-top: 14px; }
.stats.three { grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stats.two { grid-template-columns: 1fr 1fr; }
.stats dt { color: var(--dim); margin-bottom: 4px; }
.stats dd { font-size: 15px; text-transform: none; }
.stats small { font-size: 11px; color: var(--dim); }
.scale { display: flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.scale i { width: 120px; height: 8px; background: linear-gradient(90deg, #d9d7cf, #e9cf9d 55%, #e2a95c); }
.scores { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.scores > div { display: grid; grid-template-columns: 84px 1fr; align-items: center; gap: 10px; }
.scores dt { color: var(--dim); }
.scores dd { height: 6px; background: rgba(31, 34, 28, .1); position: relative; }
.scores b { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--green); transition: width .6s cubic-bezier(.3, .7, .2, 1); }
.inline-stats { display: flex; gap: 6px 24px; flex-wrap: wrap; font-size: 12px; text-transform: uppercase; }
.inline-stats i { font-style: normal; color: var(--dim); }

.rows { font-size: 15px; }
.rows > div { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 0; border-top: 1px solid var(--rule); }
.rows > div:last-child { border-bottom: 1px solid var(--rule); }
.rows dd { font-size: 13px; display: flex; gap: 10px; align-items: center; text-align: right; }
.tag { font-size: 10px; text-transform: uppercase; border: 1px solid var(--green); color: var(--green); padding: 2px 6px; }
.ledger { font-size: 13px; text-transform: uppercase; }
.ledger dt { display: flex; gap: 10px; align-items: center; }
.ledger dd { text-transform: none; }
.ledger .less { color: var(--mute); }
.ledger .less { transition: color .25s, background-color .25s; }
.ledger .less.on { color: var(--ink); background: rgba(31, 34, 28, .06); }
.ledger .total { border-top-color: var(--ink); border-bottom: 0; padding: 12px 0; font-weight: 500; font-size: 15px; }
.ledger .total dd { color: var(--green); font-size: 15px; }
.chip { width: 10px; height: 10px; flex: none; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; font-size: 11px; text-transform: uppercase; }
.chips span { border: 1px solid rgba(31, 34, 28, .3); padding: 5px 8px; }

/* Waitlist forms */
.waitlist { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; max-width: 480px; }
.waitlist.wide { max-width: 760px; }
.waitlist input, .waitlist select { font: 400 15px/1.2 var(--sans); padding: 14px 16px; border: 1px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink); min-width: 0; }
.waitlist input { flex: 1 1 200px; }
.waitlist select { flex: 0 1 230px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.waitlist input::placeholder { color: var(--dim); }
.waitlist button:disabled { opacity: .6; cursor: default; }
.form-msg { flex-basis: 100%; font-size: 14px; min-height: 1.5em; color: var(--green); }
.form-msg.err { color: #a13a22; }

/* In every scheme */
.whole { position: relative; z-index: 2; background: var(--paper); padding: 140px var(--pad) 120px; border-top: 1px solid rgba(31, 34, 28, .15); display: flex; flex-direction: column; gap: 64px; }
.whole-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 48px; align-items: end; }
.whole-head .eyebrow { grid-column: 1 / -1; }
.whole-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.whole-grid > div { padding: 32px 28px 36px 0; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 12px; }
.whole-grid > div:not(:nth-child(4n + 1)) { padding-left: 28px; border-left: 1px solid var(--rule); }
.whole-grid h3 { font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
.whole-grid p { font-size: 15px; color: var(--mute); text-wrap: pretty; }
.w-icon { width: 56px; height: 56px; margin-bottom: 8px; fill: none; stroke: var(--ink); stroke-width: 1.3; stroke-linejoin: round; stroke-linecap: round; }
.w-icon .dim { stroke: #8f9187; stroke-width: 1; }
.w-icon .acc { stroke: var(--green); stroke-width: 1.8; animation: who-pulse 3.6s ease-in-out infinite; }
.whole-grid > div:nth-child(2n) .acc { animation-delay: .9s; } .whole-grid > div:nth-child(3n) .acc { animation-delay: 1.8s; } .whole-grid > div:nth-child(4n) .acc { animation-delay: 2.7s; }

/* Why Xylem */
.why { padding: 140px var(--pad) 120px; border-top: 1px solid rgba(31, 34, 28, .15); display: flex; flex-direction: column; gap: 72px; position: relative; z-index: 2; background: var(--paper); }
.why-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.ripple { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: -40px; }
.ripple svg { display: block; width: min(100%, 220px); margin: 0 auto; overflow: visible; }
.chain { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding-top: 28px; }
.chain .track { position: absolute; left: 10%; right: 10%; top: 34px; height: 1px; background: var(--ink); }
.pulse { position: absolute; top: -4px; left: 0; width: 9px; height: 9px; margin-left: -4px; background: var(--green); }
.chain li:not(.track) { display: flex; flex-direction: column; align-items: center; gap: 16px; position: relative; text-align: center; font-size: 14px; color: var(--mute); }
.chain b { font-weight: 400; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.node { width: 13px; height: 13px; border: 1px solid var(--ink); background: var(--paper); }
.reasons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; border-top: 1px solid var(--rule); padding-top: 36px; }
.reasons h3 { font-size: 22px; font-weight: 500; letter-spacing: -.02em; margin-bottom: 10px; }
.reasons p { font-size: 16px; color: var(--mute); }

/* Who it's for */
.who { padding: 120px var(--pad); background: var(--ink); color: var(--paper); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; }
.who .eyebrow { color: #9cc4ab; margin-bottom: 16px; }
.who dl > div { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: 24px 0; border-top: 1px solid rgba(243, 239, 230, .2); }
.who dl > div:last-child { border-bottom: 1px solid rgba(243, 239, 230, .2); }
.who dt { font-size: 24px; font-weight: 500; letter-spacing: -.02em; line-height: 1.2; }
.who-icon { width: 56px; height: 56px; fill: none; stroke: #e9e6dc; stroke-width: 1.3; stroke-linejoin: round; stroke-linecap: round; }
.who-icon .acc { stroke: #9cc4ab; stroke-width: 1.8; animation: who-pulse 3.6s ease-in-out infinite; }
.who-icon .dim { stroke: #8f9187; stroke-width: 1; }
.who dl > div:nth-child(2) .acc { animation-delay: .9s; } .who dl > div:nth-child(3) .acc { animation-delay: 1.8s; } .who dl > div:nth-child(4) .acc { animation-delay: 2.7s; }
@keyframes who-pulse { 0%, 100% { opacity: .35; } 35%, 60% { opacity: 1; } }
.who dd { font-size: 16px; line-height: 1.5; color: #c9c8bb; }

/* Join */
.join { position: relative; padding: 140px var(--pad) 72px; display: flex; flex-direction: column; gap: 40px; }
.yours { position: absolute; right: var(--pad); top: 110px; width: min(30vw, 420px); }
.notes { margin-top: 64px; }
.notes > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 32px; padding: 20px 0; border-top: 1px solid var(--rule); }
.notes dt { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.notes dd { font-size: 14px; line-height: 1.6; color: var(--mute); max-width: 720px; }

.foot { display: flex; justify-content: space-between; gap: 16px; padding: 20px var(--pad); border-top: 1px solid rgba(31, 34, 28, .15); font-size: 12px; text-transform: uppercase; color: #5d5f55; }
.foot a:hover { color: var(--green); }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand img { display: block; height: 20px; width: auto; }

/* Phones and narrow windows: the drawing stays pinned across the top and the text scrolls beneath it. */
@media (max-width: 860px) {
  :root { --pad: 20px; }
  .nav { padding: 12px var(--pad); }
  .brand img { height: 26px; }
  .nav-actions { gap: 6px; }
  .nav-actions .btn.small { padding: 9px 12px; font-size: 13px; }
  .app-link { padding: 8px 11px; margin-left: 6px; font-size: 11px; }
  .nav-actions:has(.app-link.in) .btn, .nav-actions .app-link.in::after { display: none; }   /* a signed-in visitor doesn't need the waitlist up here */
  .nav-links { display: none; }
  .stage { height: 46svh; z-index: 5; background: var(--paper); border-bottom: 1px solid var(--rule); }
  .frame { left: 0 !important; width: 100% !important; }
  .frame > svg { top: 58px; height: calc(100% - 66px); }
  .fig { top: 64px; left: var(--pad); font-size: 10px; }
  .metrics { bottom: 8px; left: var(--pad); right: var(--pad); gap: 4px 12px; font-size: 10px; padding: 6px 10px; }
  .chapters { margin-top: 0; }
  .ch, .ch.hero, .ch.tall110, .ch.tall130, .ch.bottom, .ch.top { min-height: 60svh; align-items: flex-start; justify-content: flex-start; padding: 40px var(--pad); }
  .w42, .w38, .w36, .w440, .w420 { width: 100%; }
  .card { border: 0; padding: 0; }
  .stats.three { grid-template-columns: 1fr 1fr; }
  .why, .join { padding: 80px var(--pad) 56px; gap: 44px; }
  .why-head, .who, .notes > div { grid-template-columns: 1fr; gap: 12px; }
  .who dl > div { grid-template-columns: 44px 1fr; gap: 6px 16px; align-items: start; }
  .who-icon { width: 44px; height: 44px; grid-row: span 2; }
  .ripple { display: none; }
  .rose { bottom: 8px; left: auto; right: var(--pad); align-items: flex-end; font-size: 10px; gap: 4px; }
  .rose svg { width: 44px; height: 44px; }
  .whole { padding: 80px var(--pad) 56px; gap: 36px; }
  .whole-head { grid-template-columns: 1fr; }
  .whole-grid { grid-template-columns: 1fr 1fr; }
  .whole-grid > div, .whole-grid > div:not(:nth-child(4n + 1)) { padding: 24px 16px 24px 0; border-left: 0; }
  .whole-grid > div:nth-child(2n) { padding-left: 16px; border-left: 1px solid var(--rule); }
  .scores > div { grid-template-columns: 72px 1fr; }
  .who { padding: 72px var(--pad); gap: 32px; }
  .chain { grid-template-columns: 1fr; padding-top: 0; gap: 0; }
  .chain .track { display: none; }
  .chain li:not(.track) { flex-direction: row; align-items: baseline; text-align: left; gap: 12px; padding: 12px 0; border-top: 1px solid var(--rule); }
  .chain li br { display: none; }
  .chain b { min-width: 84px; }
  .reasons { grid-template-columns: 1fr; gap: 28px; }
  .notes { margin-top: 24px; }
  .yours { position: static; width: min(70vw, 300px); order: -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .who-icon .acc, .w-icon .acc { animation: none; }
  .scores b { transition: none; }
}

@media (max-width: 520px) {
  .whole-grid { grid-template-columns: 1fr; }
  .whole-grid > div:nth-child(2n) { padding-left: 0; border-left: 0; }
  .scores { grid-template-columns: 1fr; }
}
