/* ============================================================================
   The light system.

   One design system, two heroes. Paper white, fine rules, a single deep-green
   accent, and enough air that nothing has to shout. The 3D is furniture, not
   decoration: it sits in the page rather than behind it.
   ========================================================================== */

:root {
  --paper:   #fcfbf8;
  --paper-2: #f5f3ed;
  --paper-3: #efece3;
  --ink:     #0e1613;
  --ink-2:   #47554f;
  --ink-3:   #8b968f;
  --line:    #e6e3da;
  --line-2:  #f0ede5;
  --accent:  #0c6d59;
  --accent-2: #12a184;
  --mint:    #97fce4;

  --shell:   min(1200px, 90vw);
  --f-display:'Newsreader', Georgia, serif;
  --f-body:  'Instrument Sans', -apple-system, 'Segoe UI', sans-serif;
  --f-mono:  'JetBrains Mono', ui-monospace, Menlo, monospace;
  --ease:    cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.62;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.shell { width: var(--shell); margin-inline: auto; }

h1, h2, h3 {
  margin: 0; font-family: var(--f-display); font-weight: 300;
  letter-spacing: -0.022em;
}
h1 { font-size: clamp(40px, 5.6vw, 76px); line-height: 1.02; }
h2 { font-size: clamp(28px, 3.6vw, 48px); line-height: 1.08; }
h3 { font-family: var(--f-body); font-weight: 500; font-size: 17px; line-height: 1.35; letter-spacing: -0.012em; }

em { font-style: normal; color: var(--accent); }

.eyebrow {
  font-family: var(--f-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 18px;
  display: inline-flex; align-items: center; gap: 11px;
}
.eyebrow::before { content: ''; width: 20px; height: 1px; background: currentColor; opacity: .55; }

.lede { font-size: clamp(16.5px, 1.3vw, 19px); line-height: 1.6; color: var(--ink-2); max-width: 56ch; }
.sm { font-size: 15px; line-height: 1.62; color: var(--ink-2); }
.xs { font-family: var(--f-mono); font-size: 11px; line-height: 1.75; color: var(--ink-3); letter-spacing: .02em; }

/* --- the pill nav, kept from the dark version and taken to light --------- */

.nav {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
  z-index: 60;
  display: flex; align-items: center; gap: 4px;
  padding: 5px 6px; border-radius: 999px;
  background: rgba(252, 251, 248, .78);
  border: 1px solid var(--line);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: 0 1px 2px rgba(14,22,19,.03), 0 12px 34px -20px rgba(14,22,19,.28);
  white-space: nowrap;
  transition: box-shadow .3s var(--ease);
}
.nav .mark { display: flex; align-items: center; gap: 9px; padding: 6px 13px 6px 9px; }
.nav .mark svg { display: block; }
.nav .mark b { font-weight: 500; font-size: 13px; letter-spacing: -0.012em; }
.nav a {
  padding: 7px 13px; border-radius: 999px; font-size: 12.5px;
  color: var(--ink-2); text-decoration: none;
  transition: color .18s ease-out, background .18s ease-out;
}
.nav a:hover { color: var(--ink); background: var(--paper-2); }
.nav .cta { background: var(--ink); color: var(--paper); font-weight: 500; padding: 7px 15px; }
.nav .cta:hover { background: #1d2b25; color: var(--paper); }
.nav .sep { width: 1px; height: 17px; background: var(--line); margin: 0 4px; }

/* Learn stands apart from the section links, in green type with a book mark:
   it is the one door into the hub. */
.nav .nav-learn { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 500; }
.nav .nav-learn:hover { color: var(--accent); background: rgba(12,109,89,.08); }
.nav-learn .ico { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* The links sit inline in the pill on desktop and drop down under it on a phone. */
.nav-links { display: contents; }
.nav-toggle { display: none; }

@media (max-width: 780px) {
  .nav-toggle {
    display: grid; place-content: center; gap: 4px;
    width: 34px; height: 34px; padding: 0; border: 0; border-radius: 999px;
    background: transparent; cursor: pointer;
    transition: background .18s ease-out;
  }
  .nav-toggle:hover { background: var(--paper-2); }
  .nav-toggle span {
    display: block; width: 15px; height: 1.5px; border-radius: 1px; background: var(--ink);
    transition: transform .22s var(--ease);
  }
  .nav.open .nav-toggle span:first-child { transform: translateY(2.75px) rotate(45deg); }
  .nav.open .nav-toggle span:last-child { transform: translateY(-2.75px) rotate(-45deg); }

  .nav-links {
    display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    flex-direction: column; gap: 2px; padding: 6px; border-radius: 20px;
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: 0 1px 2px rgba(14,22,19,.03), 0 18px 40px -22px rgba(14,22,19,.34);
  }
  .nav.open .nav-links { display: flex; }
  .nav .nav-links a { padding: 12px 14px; border-radius: 14px; font-size: 15px; color: var(--ink); }
  .nav .cta { padding: 4px 14px; }
  .nav .nav-links .nav-learn { gap: 9px; color: var(--accent); }
  .nav .nav-links .nav-learn .ico { width: 16px; height: 16px; }
}

/* --- contact dialog, opened from the nav's Contact ------------------------ */

.contact {
  width: min(440px, calc(100vw - 32px)); padding: 0; margin: auto;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--paper); color: var(--ink);
  box-shadow: 0 1px 2px rgba(14,22,19,.04), 0 30px 70px -28px rgba(14,22,19,.42);
}
.contact[open] { animation: contact-in .5s cubic-bezier(0.16, 1, 0.3, 1); }
.contact::backdrop { background: rgba(14,22,19,.34); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
@keyframes contact-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.contact-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px 24px 20px; }
.contact-k { display: block; font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.contact-head h2 { font-size: clamp(26px, 3vw, 32px); line-height: 1.1; }
.contact-close {
  flex: none; display: grid; place-items: center; width: 34px; height: 34px; margin: -6px -8px 0 0;
  border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); cursor: pointer;
  transition: background .18s ease-out, color .18s ease-out;
}
.contact-close:hover { background: var(--paper-2); color: var(--ink); }
.contact:focus { outline: none; }
.contact-close:focus-visible, .contact-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.contact-list { border-top: 1px solid var(--line); }
.contact-row {
  display: grid; grid-template-columns: 40px minmax(0,1fr) auto; align-items: center; gap: 14px;
  padding: 16px 24px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit;
  transition: background .18s ease-out;
}
.contact-row:last-child { border-bottom: 0; border-radius: 0 0 13px 13px; }
.contact-row:hover { background: var(--paper-2); }
.contact-row svg { display: block; width: 40px; height: 40px; }
.contact-row .l { display: block; font-size: 13px; color: var(--ink-3); margin-bottom: 2px; }
.contact-row .v { display: block; font-size: 16px; font-weight: 500; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.contact-row .a { font-family: var(--f-mono); font-size: 14px; color: var(--ink-3); transition: color .18s ease-out; }
.contact-row:hover .a { color: var(--accent); }

/* one mark over several handles: the handles are the links, not the row */
.contact-group { grid-template-columns: 40px minmax(0,1fr); align-items: start; padding-bottom: 12px; }
.contact-group:hover { background: none; }
.contact-group:hover .a { color: var(--ink-3); }
.contact-group svg { margin-top: 2px; }
.contact-group .l { margin-bottom: -2px; }
.contact-link {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin: 0 -10px; padding: 4px 10px; border-radius: 8px;
  text-decoration: none; color: inherit; transition: background .18s ease-out;
}
.contact-link:hover { background: var(--paper-2); }
.contact-link:hover .a { color: var(--accent); }
.contact-link:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

/* --- buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 21px; border-radius: 999px;
  font-size: 14px; font-weight: 500; text-decoration: none;
  background: var(--ink); color: var(--paper);
  transition: transform .18s var(--ease), background .18s ease-out;
}
.btn:hover { transform: translateY(-1px); background: #1d2b25; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--paper-2); border-color: var(--ink-3); }
.btn.accent { background: var(--accent); }
.btn.accent:hover { background: #0a5747; }
.btn::after { content: ''; }
.btn.arrow::after { content: '\2192'; font-family: var(--f-mono); font-size: 13px; }

.btn-row { display: flex; gap: 11px; flex-wrap: wrap; }

/* --- sections ------------------------------------------------------------- */

section.band { padding-block: clamp(64px, 8.5vw, 118px); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* stat strip */
.stats { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); border-block: 1px solid var(--line); }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stats > div { padding: clamp(22px, 2.8vw, 34px) clamp(12px, 1.6vw, 22px); border-right: 1px solid var(--line-2); }
.stats > div:last-child { border-right: 0; }
@media (max-width: 900px) {
  .stats > div:nth-child(2n) { border-right: 0; }
  .stats > div { border-bottom: 1px solid var(--line-2); }
}
.stats .v { font-family: var(--f-mono); font-variant-numeric: tabular-nums; font-size: clamp(23px, 2.6vw, 33px); letter-spacing: -0.04em; display: block; line-height: 1; }
.stats .k { font-size: 12.5px; color: var(--ink-3); margin-top: 11px; display: block; line-height: 1.4; }

/* three up */
.three { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(20px, 2.8vw, 40px); }
@media (max-width: 900px) { .three { grid-template-columns: 1fr; } }
.col .n { font-family: var(--f-mono); font-size: 10px; letter-spacing: .2em; color: var(--accent); display: block; margin-bottom: 14px; }
.col h3 { margin-bottom: 9px; }
.col p { font-size: 14.5px; line-height: 1.62; color: var(--ink-2); margin: 0; }

/* question grid */
.qs { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
@media (max-width: 820px) { .qs { grid-template-columns: 1fr; } }
.q { background: var(--paper); padding: clamp(22px, 2.6vw, 32px); transition: background .22s var(--ease); }
.q:hover { background: var(--paper-2); }
.q .i { font-family: var(--f-mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); display: block; margin-bottom: 12px; }
.q h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(18px, 1.6vw, 22px); letter-spacing: -0.018em; margin-bottom: 9px; }
.q p { font-size: 14px; line-height: 1.58; color: var(--ink-2); margin: 0; }

/* ladder */
.ladder { border-top: 1px solid var(--line); }
.tier { display: grid; grid-template-columns: 88px minmax(0,1.2fr) minmax(0,1fr) 130px; gap: clamp(16px, 2.4vw, 38px); padding: clamp(20px, 2.3vw, 28px) 0; border-bottom: 1px solid var(--line-2); align-items: start; }
@media (max-width: 900px) { .tier { grid-template-columns: 1fr; gap: 8px; } }
.tier .lvl { font-family: var(--f-mono); font-size: 10px; letter-spacing: .19em; text-transform: uppercase; color: var(--accent); padding-top: 4px; }
.tier h3 { font-family: var(--f-display); font-weight: 400; font-size: 22px; margin-bottom: 7px; }
.tier p { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); margin: 0; }
.tier .ask { font-family: var(--f-mono); font-size: 11.5px; line-height: 1.7; color: var(--ink-3); }
.tier .yes b { display: block; color: var(--ink-3); font-weight: 400; }
.tier .yes { font-family: var(--f-mono); font-size: 11.5px; line-height: 1.7; color: var(--ink-2); }

/* plates */
.plates { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: clamp(12px, 1.4vw, 18px); }
@media (max-width: 940px) { .plates { grid-template-columns: repeat(2, 1fr); } }
.plate {
  aspect-ratio: 16/10; border: 1px dashed var(--line); border-radius: 4px;
  display: grid; place-items: center;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: #b9c1bb; transition: border-color .25s var(--ease), color .25s var(--ease);
}
.plate:hover { border-color: var(--accent); color: var(--accent); }

/* papers */
.papers { border-top: 1px solid var(--line); }
.paper { display: grid; grid-template-columns: 92px minmax(0,1fr) auto; gap: clamp(12px, 2vw, 32px); align-items: baseline; padding: 17px 0; border-bottom: 1px solid var(--line-2); text-decoration: none; transition: background .2s var(--ease), padding-left .2s var(--ease); }
.paper:hover { background: var(--paper-2); padding-left: 10px; }
.paper .d { font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); }
.paper .t { font-family: var(--f-display); font-size: clamp(17px, 1.5vw, 20px); letter-spacing: -0.015em; }
.paper .w { font-family: var(--f-mono); font-size: 10.5px; color: var(--ink-3); white-space: nowrap; }
@media (max-width: 700px) { .paper { grid-template-columns: 80px 1fr; } .paper .w { display: none; } }

/* closing */
.apply { border: 1px solid var(--line); border-radius: 4px; padding: clamp(30px, 4.2vw, 58px); background: var(--paper-2); display: grid; grid-template-columns: minmax(0,1fr) auto; gap: clamp(26px, 4vw, 56px); align-items: center; }
@media (max-width: 880px) { .apply { grid-template-columns: 1fr; } }

/* footer */
footer { border-top: 1px solid var(--line); padding-block: clamp(44px, 5.4vw, 66px) 38px; }
.fgrid { display: grid; grid-template-columns: minmax(0,1.5fr) repeat(3, minmax(0,1fr)); gap: clamp(22px, 3vw, 44px); }
@media (max-width: 820px) { .fgrid { grid-template-columns: 1fr 1fr; } }
.fgrid h4 { font-family: var(--f-mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); font-weight: 400; margin: 0 0 13px; }
.fgrid ul { list-style: none; margin: 0; padding: 0; }
.fgrid li { margin-bottom: 8px; }
.fgrid a { font-size: 14px; color: var(--ink-2); text-decoration: none; transition: color .18s ease-out; }
.fgrid a:hover { color: var(--accent); }
.fbot { margin-top: clamp(30px, 4vw, 46px); padding-top: 18px; border-top: 1px solid var(--line-2); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* reveal */
[data-r] { opacity: 0; transform: translateY(14px); transition: opacity .62s var(--ease), transform .62s var(--ease); }
[data-r].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-r] { opacity: 1; transform: none; } html { scroll-behavior: auto; } }

/* the FPS readout only exists while these are concepts */
.devmeta { position: fixed; left: 18px; bottom: 14px; z-index: 70; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.switch { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 70; display: flex; flex-direction: column; gap: 7px; }
.switch a { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; text-decoration: none; font-family: var(--f-mono); font-size: 10.5px; color: var(--ink-3); background: rgba(252,251,248,.7); border: 1px solid var(--line); backdrop-filter: blur(12px); transition: color .18s, border-color .18s; }
.switch a:hover { color: var(--ink); border-color: var(--ink-3); }
.switch a[aria-current] { color: var(--paper); background: var(--ink); border-color: var(--ink); }
@media (max-width: 900px) { .switch { display: none; } }

/* ============================================================================
   Structure. The first pass was a stack of paragraphs on beige. These are the
   pieces that give the page a spine: an indexed margin, one dark band for
   contrast, and figures at a size that means something.
   ========================================================================== */

/* --- a numbered section head, with the index in the margin -------------- */
.sec-head {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  gap: clamp(16px, 3vw, 48px);
  padding-top: 22px;
  border-top: 1px solid var(--ink);
}
@media (max-width: 760px) { .sec-head { grid-template-columns: 1fr; gap: 14px; } }
.sec-head .ix {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-3); padding-top: 6px;
}
.sec-head h2 { max-width: 22ch; }
.sec-head .lede { margin-top: 20px; }

/* --- figures, at the size a figure deserves ------------------------------ */
.figures { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); }
@media (max-width: 980px) { .figures { grid-template-columns: repeat(2, 1fr); } }
.figures > div { padding: clamp(26px,3.2vw,44px) clamp(14px,1.8vw,26px) clamp(22px,2.6vw,34px) 0; border-top: 1px solid var(--line); }
.figures .v {
  font-family: var(--f-display); font-weight: 200;
  font-size: clamp(38px, 5vw, 68px); line-height: .95; letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums; display: block; color: var(--ink);
}
.figures .k {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-3); margin-top: 16px; display: block; line-height: 1.6;
}

/* --- the dark band: one moment of contrast in the whole page ------------- */
.band-dark {
  background: #0d1a16; color: #e8f0ec;
  padding-block: clamp(74px, 10vw, 140px);
  position: relative; overflow: hidden;
}
.band-dark .eyebrow { color: var(--mint); }
.band-dark h2, .band-dark blockquote { color: #f2f7f5; }
.band-dark em { color: var(--mint); }
.band-dark .lede, .band-dark p { color: rgba(232,240,236,.66); }
.band-dark .sec-head { border-top-color: rgba(232,240,236,.35); }
.band-dark .sec-head .ix { color: rgba(232,240,236,.42); }
blockquote {
  margin: 0; font-family: var(--f-display); font-weight: 200;
  font-size: clamp(27px, 3.5vw, 48px); line-height: 1.16; letter-spacing: -0.022em;
  max-width: 26ch;
}
.attrib {
  margin-top: clamp(26px,3vw,40px); font-family: var(--f-mono); font-size: 11px;
  letter-spacing: .1em; line-height: 1.8; color: rgba(232,240,236,.5);
}
.attrib b { color: rgba(232,240,236,.86); font-weight: 400; display: block; }

/* --- questions as a ruled list, not boxes -------------------------------- */
.qlist { border-top: 1px solid var(--line); }
.qrow {
  display: grid; grid-template-columns: 136px minmax(0,1.05fr) minmax(0,1fr);
  gap: clamp(16px,3vw,48px);
  padding: clamp(24px,2.8vw,36px) 0; border-bottom: 1px solid var(--line);
  transition: background .22s var(--ease);
}
@media (max-width: 900px) { .qrow { grid-template-columns: 1fr; gap: 10px; } }
.qrow:hover { background: var(--paper-2); }
.qrow .ix { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); padding-top: 7px; }
.qrow h3 { font-family: var(--f-display); font-weight: 300; font-size: clamp(21px,2.1vw,29px); line-height: 1.14; letter-spacing: -0.02em; }
.qrow p { margin: 0; font-size: 14.5px; line-height: 1.62; color: var(--ink-2); }

/* --- plate wall with the mark ghosted in --------------------------------- */
.plate { position: relative; overflow: hidden; }
.plate svg { position: absolute; width: 46%; opacity: .05; }
.plate span { position: relative; }
