/* Project GOAT (Green Our Air Together) — site styles
   Palette (named):
   meadow     #B8E8C0  light green page ground
   deep green #2C7549  tone-on-tone type (3.9:1 on meadow)
   cloud      #FFFFFF  cards, cloud banks, white sections
   ink        #0B2A1C  text
   daylight   #FFD84A  the one accent
   forest     #0E2F22  footer
   Status colours (good / fair / poor) appear only on the tracker, where they mean something.
*/
:root {
  --sky: #B8E8C0;
  --sky-deep: #2C7549;
  --mist: #E2F5E5;
  --cloud: #FFFFFF;
  --ink: #0B2A1C;
  --ink-soft: #1D4632;
  --sun: #FFD84A;
  --night: #0E2F22;
  --night-2: #1A4A36;
  --sky-pale: #D5F2DA;
  --screen: #04110B;
  --good: #2FA36B;
  --fair: #F2B01E;
  --poor: #E5533D;

  --display: "Bricolage Grotesque", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --text: "Source Serif 4", "Iowan Old Style", Georgia, serif;

  --gutter: clamp(1.25rem, 5vw, 5rem);
  --radius: 20px;
  --float: 0 14px 0 -6px rgba(11, 42, 28, .12), 0 18px 36px -18px rgba(11, 42, 28, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; font-weight: 800; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.on-night :focus-visible { outline-color: var(--sun); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 50;
  background: var(--ink); color: #fff; padding: .7rem 1rem; border-radius: 10px;
  font-family: var(--display); font-weight: 600;
}
.skip:focus { top: 1rem; }

.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- cloud banks ---------- */
/* Three scallop layers with unrelated periods read as an irregular cloud edge. */
.bank { position: relative; height: 96px; pointer-events: none; overflow: hidden; --c: var(--cloud); --shade: var(--mist); }
.bank::before, .bank::after { content: ""; position: absolute; inset: 0 -60px; }
.bank::after {
  background:
    radial-gradient(circle 92px at 115px -24px, var(--c) 98.5%, transparent) 0 0 / 293px 96px repeat-x,
    radial-gradient(circle 60px at 75px -6px, var(--c) 98.5%, transparent) 61px 0 / 181px 96px repeat-x,
    radial-gradient(circle 41px at 49px 2px, var(--c) 98.5%, transparent) 17px 0 / 113px 96px repeat-x,
    radial-gradient(circle 27px at 31px 6px, var(--c) 98.5%, transparent) 40px 0 / 71px 96px repeat-x;
}
.bank::before {
  transform: translate(47px, 0);
  background:
    radial-gradient(circle 92px at 115px -8px, var(--shade) 98.5%, transparent) 0 0 / 293px 96px repeat-x,
    radial-gradient(circle 60px at 75px 8px, var(--shade) 98.5%, transparent) 61px 0 / 181px 96px repeat-x,
    radial-gradient(circle 41px at 49px 18px, var(--shade) 98.5%, transparent) 17px 0 / 113px 96px repeat-x;
}
.bank--up { transform: scaleY(-1); }
.bank--night { --c: var(--night); --shade: var(--night-2); }

/* ---------- loose clouds ---------- */
.cloud { position: absolute; width: var(--w, 160px); z-index: 0; pointer-events: none; will-change: transform; }
.cloud svg { width: 100%; height: auto; overflow: visible; animation: drift 14s ease-in-out infinite alternate; }
.cloud:nth-of-type(even) svg { animation-duration: 19s; animation-direction: alternate-reverse; }
@keyframes drift { from { transform: translateX(-10px); } to { transform: translateX(14px); } }

/* ---------- header (sits on the cloud ceiling) ---------- */
.ceiling { background: var(--cloud); position: relative; z-index: 20; }
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem var(--gutter) .25rem;
  font-family: var(--display);
}
.wordmark { font-weight: 800; font-size: 1.35rem; letter-spacing: -.03em; text-decoration: none; line-height: 1; padding: .7rem 0; display: inline-flex; align-items: center; gap: .55rem; }
.wordmark svg { width: 2rem; height: 2rem; flex: none; }
.wordmark b { font-weight: 800; }
.nav-links { display: flex; align-items: center; gap: clamp(.5rem, 2vw, 2rem); font-weight: 600; font-size: 1rem; }
.nav-links a { text-decoration: none; padding: .7rem .35rem; display: inline-block; white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .35em; }
.nav-toggle {
  display: none; font: inherit; font-weight: 700; background: var(--ink); color: #fff; border: 0;
  min-height: 44px; padding: 0 1.1rem; border-radius: 999px; cursor: pointer;
}
@media (max-width: 1100px) {
  .nav-toggle { display: inline-block; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cloud); padding: .25rem var(--gutter) 1.25rem; z-index: 30;
    border-bottom: 3px solid var(--ink);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: .9rem 0; font-size: 1.35rem; border-top: 1px dashed rgba(11, 42, 28, .3); }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; min-height: 48px; padding: .55rem 1.4rem;
  font-family: var(--display); font-weight: 700; font-size: 1.05rem; text-decoration: none;
  background: var(--ink); color: #fff; border-radius: 999px; border: 2px solid var(--ink);
  transition: transform .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--sun { background: var(--sun); color: var(--ink); }
.soon { font-family: var(--display); font-weight: 600; font-size: 1rem; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(2rem, 7vh, 6rem) var(--gutter) clamp(4rem, 12vh, 9rem); min-height: min(92svh, 60rem); display: flex; flex-direction: column; justify-content: center; }
.hero-inner { position: relative; z-index: 2; max-width: 84rem; }
.hero h1 {
  font-size: clamp(4.2rem, 17.5vw, 14rem);
  line-height: .82; letter-spacing: -.035em; font-weight: 800;
}
.hero h1 span { display: block; }
.hero-row { display: flex; align-items: flex-end; gap: clamp(1rem, 2.5vw, 2.5rem); flex-wrap: wrap; }
.bubble {
  position: relative; background: var(--cloud); color: var(--ink);
  border-radius: 18px; padding: 1rem 1.2rem; max-width: 21rem;
  font-family: var(--display); font-weight: 600; font-size: 1.06rem; line-height: 1.3;
  box-shadow: var(--float); transform: rotate(-2.5deg); margin-bottom: clamp(.5rem, 2.4vw, 2.2rem);
}
.bubble::before {
  content: ""; position: absolute; left: -9px; bottom: 22px; width: 20px; height: 20px;
  background: var(--cloud); transform: rotate(45deg); border-radius: 4px;
}
.hero-sub { margin-top: clamp(2rem, 5vh, 3.5rem); max-width: 34rem; font-size: 1.2rem; color: var(--ink-soft); }
.hero-sub strong { font-weight: 600; color: var(--ink); }
.hero-sub a { font-family: var(--display); font-weight: 700; color: var(--ink); display: inline-block; padding: .55rem 0; }

@media (max-width: 1349px) {
  .hero-row { flex-direction: column; align-items: flex-start; }
  .bubble { transform: rotate(-1.5deg); margin-top: 1.5rem; }
  .bubble::before { left: 28px; top: -8px; bottom: auto; }
}

/* page-load: the one orchestrated moment */
@media (prefers-reduced-motion: no-preference) {
  .js .hero h1 span { animation: rise .9s cubic-bezier(.2, .9, .2, 1) both; }
  .js .hero h1 span:nth-child(2) { animation-delay: .09s; }
  .js .hero .bubble { animation: pop .55s cubic-bezier(.3, 1.5, .5, 1) .55s both; }
  .js .ceiling-bank { animation: settle 1.1s cubic-bezier(.2, .9, .2, 1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(.35em); } to { opacity: 1; transform: none; } }
  @keyframes pop { from { opacity: 0; scale: .7; } to { opacity: 1; scale: 1; } }
  @keyframes settle { from { transform: translateY(-60px); } to { transform: none; } }
}

/* ---------- sections ---------- */
.sec, .hero { overflow-x: clip; }
.sec { position: relative; padding: clamp(4rem, 10vw, 9rem) var(--gutter); }
.sec > :not(.cloud) { position: relative; z-index: 1; }
.sec--tight { padding-top: clamp(2rem, 5vw, 4rem); }
.rule { border: 0; border-top: 3px dashed rgba(11, 42, 28, .22); margin: 0; }
.wrap { max-width: 84rem; margin-inline: auto; }

.white { background: var(--cloud); }
.night { background: var(--night); color: var(--sky); }

/* scroll-read paragraphs */
.read {
  font-family: var(--display); font-weight: 700; letter-spacing: -.02em;
  font-size: clamp(1.7rem, 3.5vw, 3rem); line-height: 1.18;
  max-width: 24em; margin: 0 0 0 clamp(0rem, 14vw, 16rem);
}
.read .w { color: var(--sky-deep); transition: color .25s linear; }
.read .w.on { color: var(--ink); }
.read .chip {
  display: inline-block; background: var(--cloud); color: var(--ink);
  padding: .02em .4em .08em; border-radius: .45em; margin-right: .08em; transform: rotate(-2deg);
}
.read + .read { margin-top: 1.4em; }

.giant {
  font-size: clamp(3.2rem, 12vw, 10.5rem); line-height: .88; letter-spacing: -.032em;
  color: var(--sky-deep); text-wrap: balance;
}
.white .giant { color: var(--ink); }
.split .giant { font-size: clamp(2.8rem, 6.6vw, 6rem); }
.lede a { font-family: var(--display); font-weight: 700; }
.lede { font-size: clamp(1.15rem, 1.6vw, 1.35rem); max-width: 36rem; color: var(--ink-soft); }
.h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.05; letter-spacing: -.022em; }
.cite { font-size: .9rem; color: var(--ink-soft); font-style: italic; }

/* ---------- research: pinned notes ---------- */
.notes { display: grid; gap: 1.5rem; grid-template-columns: 1fr; margin-top: clamp(2rem, 4vw, 3.5rem); }
.note {
  position: relative; background: var(--cloud); border-radius: var(--radius);
  padding: 1.7rem 1.4rem 1.3rem; box-shadow: var(--float);
}
.note::before {
  content: ""; position: absolute; top: -9px; left: 50%; width: 18px; height: 18px; margin-left: -9px;
  border-radius: 50%; background: var(--sun); border: 3px solid var(--ink);
}
.note h3 { font-size: 1.2rem; letter-spacing: -.02em; line-height: 1.15; padding-bottom: .7rem; border-bottom: 1px dashed rgba(11, 42, 28, .35); margin-bottom: .8rem; }
.note p { font-size: 1.02rem; line-height: 1.5; margin-bottom: .9rem; }
.note b { font-family: var(--display); font-weight: 800; letter-spacing: -.01em; }
.weight { display: flex; align-items: center; gap: .5rem; font-family: var(--display); font-weight: 600; font-size: .92rem; margin-bottom: .2rem; }
.dots { display: inline-flex; gap: 3px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--ink); }
.dots i.f { background: var(--ink); }
@media (min-width: 700px) { .notes { grid-template-columns: repeat(2, 1fr); } .note:nth-child(even) { transform: translateY(2.2rem); } .notes { padding-bottom: 2.2rem; } }
@media (min-width: 1100px) {
  .notes { grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 1.5rem; padding-bottom: 5rem; }
  .note:nth-child(even) { transform: none; }
  .note:nth-child(3n+1) { transform: translateY(3.2rem) rotate(-.8deg); }
  .note:nth-child(3n+2) { transform: translateY(.4rem) rotate(.5deg); }
  .note:nth-child(3n) { transform: translateY(4.6rem) rotate(-.3deg); }
}
.caution { margin-top: clamp(2.5rem, 5vw, 4rem); max-width: 40rem; margin-left: auto; font-size: 1.1rem; }
.caution strong { font-family: var(--display); font-weight: 700; }

/* ---------- the gap ---------- */
.split { display: grid; gap: clamp(2rem, 5vw, 5rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr .95fr; } .split--flip { grid-template-columns: .9fr 1.1fr; } }
.facts li { padding: 1.1rem 0; border-top: 1px dashed rgba(11, 42, 28, .4); }
.facts li:last-child { border-bottom: 1px dashed rgba(11, 42, 28, .4); }
.facts b { font-family: var(--display); font-weight: 700; }
.standard { display: flex; gap: 1rem; align-items: center; margin: 2rem 0 0; flex-wrap: wrap; font-family: var(--display); font-weight: 700; }
.standard span { padding: .5rem 1rem; border-radius: 999px; border: 2px solid var(--ink); line-height: 1.2; }
.standard span:first-child { background: var(--sun); }
.standard span:last-child { border-style: dashed; }

/* ---------- the work (a real order) ---------- */
.parts { counter-reset: part; margin-top: clamp(2rem, 4vw, 3rem); }
.parts li {
  counter-increment: part; display: grid; grid-template-columns: 3.2rem 1fr; gap: .2rem 1rem;
  padding: 1.6rem 0; border-top: 3px dashed rgba(11, 42, 28, .22);
}
.parts li::before { content: counter(part); font-family: var(--display); font-weight: 800; font-size: 3rem; line-height: .9; letter-spacing: -.02em; }
.parts h3 { grid-column: 2; }
.parts p { grid-column: 2; margin: .3rem 0 0; max-width: 38rem; color: var(--ink-soft); }
@media (min-width: 900px) {
  .parts li { grid-template-columns: 6rem minmax(12rem, 22rem) 1fr; align-items: baseline; }
  .parts li::before { font-size: 5rem; }
  .parts h3 { grid-column: 2; }
  .parts p { grid-column: 3; margin: 0; }
}

/* ---------- the tracker demo ---------- */
.kit { display: grid; gap: clamp(2rem, 4vw, 4rem); grid-template-columns: 1fr; align-items: start; margin-top: clamp(2rem, 4vw, 3.5rem); }
@media (min-width: 960px) { .kit { grid-template-columns: minmax(20rem, 26rem) 1fr; } .device-col { position: sticky; top: 2rem; } }
.device {
  background: var(--ink); color: var(--sky-pale); border-radius: 28px; padding: 1.25rem; box-shadow: var(--float);
  font-family: var(--display); max-width: 26rem;
}
.device-top { display: flex; align-items: center; justify-content: space-between; font-size: .85rem; font-weight: 600; color: #93BFA5; margin-bottom: .8rem; }
.led { width: 18px; height: 18px; border-radius: 50%; background: var(--fair); box-shadow: 0 0 0 5px rgba(255, 255, 255, .08); transition: background .2s; }
.led[data-band="good"] { background: var(--good); }
.led[data-band="fair"] { background: var(--fair); }
.led[data-band="poor"] { background: var(--poor); }
.screen { background: var(--screen); border-radius: 14px; padding: 1.1rem 1.1rem 1.2rem; border: 1px solid #1F4A38; }
.score-row { display: flex; align-items: baseline; gap: .7rem; }
.score { font-size: 5.4rem; font-weight: 800; line-height: .85; letter-spacing: -.03em; color: #fff; font-variant-numeric: tabular-nums; }
.band { font-size: 1.35rem; font-weight: 700; }
.cats { margin: 1rem 0; display: grid; gap: .45rem; font-size: .9rem; font-weight: 600; }
.cats li { display: grid; grid-template-columns: 5.2rem 1fr 2.2rem; align-items: center; gap: .6rem; }
.cats .bar { height: 8px; background: #163A2B; border-radius: 99px; overflow: hidden; }
.cats .bar i { display: block; height: 100%; width: 50%; background: var(--sky-pale); border-radius: 99px; transition: width .25s ease; }
.cats li.weakest .bar i { background: var(--sun); }
.cats li.weakest { color: var(--sun); }
.cats .val { text-align: right; font-variant-numeric: tabular-nums; }
.msg { font-size: 1.05rem; font-weight: 600; line-height: 1.3; color: #fff; min-height: 2.7em; margin: 0; }
.alert82 { margin: .7rem 0 0; font-weight: 700; color: var(--sun); font-size: .95rem; }
.device-note { font-family: var(--text); font-size: .9rem; margin-top: 1rem; color: var(--ink-soft); max-width: 26rem; }

.readings { display: grid; gap: .4rem; }
.reading { display: grid; grid-template-columns: 1fr auto; gap: 0 1rem; align-items: baseline; padding: .7rem 0 .2rem; border-top: 1px dashed rgba(11, 42, 28, .35); }
.reading label { font-family: var(--display); font-weight: 700; font-size: 1.1rem; }
.reading output { font-family: var(--display); font-weight: 700; font-variant-numeric: tabular-nums; }
.reading input { grid-column: 1 / -1; width: 100%; height: 44px; margin: 0; accent-color: var(--ink); cursor: pointer; background: transparent; }
.reading small { grid-column: 1 / -1; font-size: .88rem; color: var(--ink-soft); line-height: 1.4; }
.reset { margin-top: 1.2rem; font: inherit; font-family: var(--display); font-weight: 700; background: transparent; border: 2px solid var(--ink); color: var(--ink); min-height: 44px; padding: 0 1.1rem; border-radius: 999px; cursor: pointer; }
.reset:hover { background: var(--ink); color: #fff; }

/* ---------- the air cleaner ---------- */
.box-art { max-width: 22rem; margin-inline: auto; }
.yesno { display: grid; gap: 1.5rem; margin-top: 1.5rem; }
@media (min-width: 620px) { .yesno { grid-template-columns: 1fr 1fr; } }
.yesno h3 { font-size: 1.15rem; letter-spacing: -.02em; margin-bottom: .5rem; }
.yesno li { padding: .55rem 0; border-top: 1px dashed rgba(11, 42, 28, .35); font-size: 1.02rem; line-height: 1.45; }
.cost { width: 100%; border-collapse: collapse; margin-top: 2rem; font-size: 1.02rem; }
.cost caption { text-align: left; font-family: var(--display); font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; padding-bottom: .6rem; }
.cost th, .cost td { text-align: left; padding: .7rem .6rem .7rem 0; border-top: 1px dashed rgba(11, 42, 28, .4); vertical-align: top; font-weight: 400; }
.cost thead th { font-family: var(--display); font-weight: 700; border-top: 0; font-size: .95rem; }
.cost tbody tr:last-child th, .cost tbody tr:last-child td { font-family: var(--display); font-weight: 800; border-top: 3px solid var(--ink); }

/* ---------- the asks: sheets of paper ---------- */
.asks { display: grid; gap: 1.75rem; margin-top: clamp(2rem, 4vw, 3.5rem); }
@media (min-width: 900px) { .asks { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.sheet {
  background: var(--cloud); padding: 1.8rem 1.5rem 1.6rem; border-radius: 6px;
}
.sheet:nth-child(1) { transform: rotate(-1.1deg); }
.sheet:nth-child(2) { transform: rotate(.7deg); }
.sheet:nth-child(3) { transform: rotate(-.4deg); }
.sheet .re { font-family: var(--display); font-weight: 600; font-size: .95rem; color: var(--sky-deep); margin-bottom: .2rem; }
.sheet h3 { font-size: 1.5rem; line-height: 1.08; letter-spacing: -.03em; margin-bottom: .9rem; }
.sheet p { font-size: 1.02rem; line-height: 1.55; margin: 0; }
.fineprint { margin-top: 2.5rem; max-width: 42rem; }

/* ---------- timeline ---------- */
.steps { display: grid; gap: 0; margin-top: 2.5rem; }
.steps li { position: relative; padding: 0 0 1.8rem 2rem; border-left: 3px dashed rgba(11, 42, 28, .3); }
.steps li::before { content: ""; position: absolute; left: -11px; top: .2rem; width: 19px; height: 19px; border-radius: 50%; background: var(--sky); border: 3px solid var(--ink); }
.steps li.now::before { background: var(--sun); }
.steps time, .steps .when { font-family: var(--display); font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; display: block; }
.steps .here { display: inline-block; background: var(--sun); border-radius: 999px; padding: 0 .6rem; font-family: var(--display); font-weight: 700; font-size: .85rem; margin-left: .4rem; vertical-align: .15em; }
.steps p { margin: .3rem 0 0; font-size: 1.02rem; line-height: 1.45; color: var(--ink-soft); }
@media (min-width: 1000px) {
  .steps { grid-template-columns: repeat(4, 1fr); row-gap: 2.75rem; }
  .steps li { border-left: 0; border-top: 3px dashed rgba(11, 42, 28, .3); padding: 1.6rem 1.5rem 0 0; }
  .steps li::before { left: 0; top: -11px; }
}

/* ---------- get involved ---------- */
.ways { display: grid; gap: 0 3rem; margin-top: 2rem; }
@media (min-width: 800px) { .ways { grid-template-columns: 1fr 1fr; } }
.ways li { padding: 1.5rem 0; border-top: 1px dashed rgba(11, 42, 28, .4); }
.ways h3 { margin-bottom: .4rem; }
.ways p { margin: 0; color: var(--ink-soft); max-width: 34rem; }
.promise { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; }
.promise p { margin: 0; font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: -.01em; max-width: 30rem; line-height: 1.25; }

/* ---------- footer ---------- */
.foot { position: relative; background: var(--night); color: var(--sky); padding: clamp(2rem, 6vw, 5rem) var(--gutter) 2.5rem; overflow: hidden; }
.foot h2 { font-size: clamp(3rem, 10.5vw, 9.5rem); line-height: .88; letter-spacing: -.032em; max-width: 6.6em; }
.foot .tag { margin-top: 1.5rem; max-width: 32rem; color: var(--sky-pale); }
.foot-grid { display: grid; gap: 2rem; margin-top: clamp(3rem, 6vw, 5rem); padding-top: 2rem; border-top: 3px dashed rgba(184, 232, 192, .3); font-size: .98rem; line-height: 1.5; color: var(--sky-pale); }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 1.1fr 1fr 1fr; gap: 3rem; } }
.foot-grid h3 { font-size: 1.05rem; color: var(--sky); margin-bottom: .45rem; letter-spacing: -.01em; }
.foot-grid p { margin: 0 0 .7em; }
.foot-grid a[href^="tel:"] { display: inline-block; padding: .7rem .5rem; margin: -.7rem -.1rem; font-family: var(--display); font-weight: 700; }
.foot-nav { display: flex; flex-wrap: wrap; gap: .2rem 1.5rem; margin-top: 2.5rem; font-family: var(--display); font-weight: 600; }
.foot-nav a { padding: .7rem 0; display: inline-block; }

/* ---------- team page ---------- */
.hero--team { min-height: 0; padding-bottom: clamp(3rem, 7vw, 6rem); }
.founders { display: grid; gap: clamp(3.5rem, 8vw, 7rem); }
.founder { display: grid; gap: 1.5rem clamp(2rem, 5vw, 5rem); grid-template-columns: 1fr; align-items: center; }
.portrait { position: relative; max-width: 26rem; width: 100%; margin-bottom: 1.25rem; }
.portrait img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 34px; border: 8px solid var(--cloud); box-shadow: var(--float); background: var(--mist); }
.founder:nth-child(odd) .portrait img { transform: rotate(-1.6deg); }
.founder:nth-child(even) .portrait img { transform: rotate(1.4deg); }
.role-chip { position: absolute; left: 1rem; bottom: -1rem; background: var(--sun); color: var(--ink); border: 3px solid var(--ink); border-radius: 999px; padding: .25rem 1rem; font-family: var(--display); font-weight: 800; font-size: 1.05rem; transform: rotate(-3deg); }
.founder h2 { font-size: clamp(2.6rem, 6.5vw, 5.6rem); line-height: .9; letter-spacing: -.032em; }
.founder .title { font-family: var(--display); font-weight: 700; font-size: clamp(1.2rem, 2vw, 1.6rem); letter-spacing: -.02em; margin: .9rem 0 1.1rem; line-height: 1.15; }
.founder .bio { max-width: 34rem; color: var(--ink-soft); }
.owns { margin-top: 1.2rem; max-width: 36rem; }
.owns h3 { font-size: 1.05rem; letter-spacing: -.01em; margin-bottom: .2rem; }
.owns li { padding: .5rem 0; border-top: 1px dashed rgba(11, 42, 28, .35); font-size: 1.02rem; line-height: 1.4; }
@media (min-width: 860px) {
  .founder { grid-template-columns: minmax(16rem, 26rem) 1fr; }
  .founder:nth-child(even) { grid-template-columns: 1fr minmax(16rem, 26rem); }
  .founder:nth-child(even) .portrait { order: 2; justify-self: end; }
}
.shared { margin-top: clamp(3rem, 6vw, 5rem); background: var(--cloud); border-radius: var(--radius); padding: 1.5rem; max-width: 46rem; margin-left: auto; transform: rotate(.5deg); }
.shared h3 { font-size: 1.3rem; letter-spacing: -.02em; margin-bottom: .3rem; }
.shared p { margin: 0; }

.roles { width: 100%; border-collapse: collapse; margin-top: 2rem; font-size: 1.02rem; line-height: 1.45; }
.roles th, .roles td { text-align: left; padding: 1rem 1rem 1rem 0; border-top: 1px dashed rgba(11, 42, 28, .4); vertical-align: top; font-weight: 400; }
.roles thead th { font-family: var(--display); font-weight: 700; font-size: .95rem; border-top: 0; padding-bottom: .5rem; }
.roles tbody th { font-family: var(--display); font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; line-height: 1.15; }
.roles td:last-child { white-space: nowrap; }
@media (max-width: 760px) {
  .roles thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .roles, .roles tbody, .roles tr, .roles th, .roles td { display: block; }
  .roles tr { padding: 1.1rem 0; border-top: 1px dashed rgba(11, 42, 28, .4); }
  .roles th, .roles td { border: 0; padding: .1rem 0; }
  .roles td::before { content: attr(data-l) ": "; font-family: var(--display); font-weight: 700; }
}

/* ---------- founder profile pages ---------- */
.profile { padding-top: clamp(2.5rem, 6vw, 5rem); }
.profile-name { font-size: clamp(2.8rem, 7.5vw, 6.4rem); line-height: .9; letter-spacing: -.032em; }
.founder .bio { max-width: 36rem; color: var(--ink-soft); }
.owns h2 { font-size: 1.05rem; line-height: 1.6; letter-spacing: -.01em; margin-bottom: .2rem; }
.steps a { font-family: var(--display); font-weight: 700; }
.founder h2 a { text-decoration: none; }
.founder h2 a:hover { text-decoration: underline; text-decoration-thickness: .06em; }
.more { margin-top: clamp(2.5rem, 5vw, 4rem); font-size: 1.1rem; }
.more a, .chapter a, .facts + p a { font-family: var(--display); font-weight: 700; }
h2.when { font-family: var(--display); }

.emails { margin-top: 1.75rem; }
.emails li { padding: 1rem 0; border-top: 1px dashed rgba(11, 42, 28, .4); }
.emails li:last-child { border-bottom: 1px dashed rgba(11, 42, 28, .4); }
.emails span { display: block; font-size: 1rem; color: var(--ink-soft); }
.emails a { font-family: var(--display); font-weight: 800; font-size: clamp(1.25rem, 2.4vw, 1.7rem); letter-spacing: -.02em; display: inline-block; padding: .35rem 0; overflow-wrap: anywhere; }

/* ---------- Phil, the mascot ---------- */
.phil-says { display: flex; align-items: flex-end; gap: 1rem; margin-bottom: clamp(.5rem, 2.4vw, 2.2rem); }
.phil-says .bubble { margin: 0 0 1.4rem; }
.phil { width: clamp(4.5rem, 8vw, 6.5rem); height: auto; flex: none; background: var(--sun); border: 5px solid var(--cloud); border-radius: 26px; box-shadow: var(--float); padding: .35rem; transform: rotate(-4deg); }
.foot-phil { display: block; width: clamp(4rem, 7vw, 6rem); height: auto; margin-bottom: 1rem; background: var(--sun); border-radius: 22px; padding: .35rem; }
.phil-card { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: center; margin-top: clamp(3rem, 6vw, 5rem); max-width: 40rem; }
.phil-card .phil { transform: rotate(3deg); }
.phil-card h3 { font-size: 1.5rem; letter-spacing: -.02em; }
.phil-card p { margin: .2rem 0 0; }
@media (max-width: 1349px) { .phil-says { margin-top: 1.5rem; } .phil-says .bubble { margin-top: 0; } .phil-says .bubble::before { left: -9px; top: auto; bottom: 22px; } }

/* ---------- story page ---------- */
.chapters { display: grid; gap: clamp(3rem, 7vw, 6rem); }
.chapter { display: grid; gap: .8rem clamp(2rem, 5vw, 5rem); grid-template-columns: 1fr; align-items: start; }
.chapter .when { font-family: var(--display); font-weight: 800; font-size: clamp(1.3rem, 2.2vw, 1.9rem); line-height: 1.05; letter-spacing: -.02em; color: var(--sky-deep); margin: 0; }
.chapter-title { font-size: clamp(2rem, 4.6vw, 3.8rem); line-height: .95; letter-spacing: -.03em; margin-bottom: 1.2rem; max-width: 14em; text-wrap: balance; }
.chapter p:not(.when) { max-width: 38rem; }
.chapter strong { font-family: var(--display); font-weight: 800; }
@media (min-width: 900px) { .chapter { grid-template-columns: 15rem 1fr; } .chapter .when { position: sticky; top: 2rem; padding-top: .5rem; } }

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .read .w { color: var(--ink); }
}
