/* Evolyra Therapeutics, site v3, in the Earth and sky
   palette. Rules for this file: one lockup pattern per section, flat cards, generous space, and the bitmap texture in
   two places only (the home hero mark and the closing band). Headlines use --display. */

:root {
  --clay: #5A3A28;
  --blue: #3D7BFF;
  --blush: #EDE2DA;
  --flax: #F1EDE9;
  --sky: #C9DAFF;
  --citron: #DDE65A;
  --citron-pale: #F1F5C6;
  --citron-deep: #C3CE34;
  --paper: #F8F6F3;
  --white: #FFFFFF;
  --ink: #1D130D;
  --ink-2: #2B1A10;
  --mute: #776A61;
  --line: rgba(29, 19, 13, .16);
  --display: "IBM Plex Sans", system-ui, sans-serif;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --edge: clamp(20px, 3.4vw, 56px);
  --r: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; -webkit-text-size-adjust: 100%; }
body { background: var(--white); color: var(--ink); font: 400 18px/1.7 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
ul { list-style: none; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: -.03em; text-wrap: balance; }
h1 { font-size: clamp(34px, 4.6vw, 80px); line-height: 1.12; }
h2 { font-size: clamp(32px, 3.35vw, 48px); line-height: 1.18; }
h3 { font-size: clamp(24px, 2.1vw, 30px); line-height: 1.2; }
h4 { font: 500 21px/1.3 var(--sans); letter-spacing: -.01em; }
p { text-wrap: pretty; }
.lead { font-size: 20px; line-height: 1.7; }
.mono { font: 400 14px/1.5 var(--mono); letter-spacing: .02em; }
.kicker { font: 400 13px/1.4 var(--mono); letter-spacing: .04em; color: var(--mute); display: block; margin-bottom: 22px; }
.bg-clay .kicker { color: rgba(248, 246, 243, .7); }
.bg-blue .kicker { color: rgba(29, 19, 13, .7); }
.muted { color: var(--mute); }

.wrap { max-width: 1720px; margin-inline: auto; padding-inline: var(--edge); }
.sec { padding-block: clamp(72px, 9vw, 130px); display: flow-root; }
.sec.snug { padding-block: clamp(56px, 6vw, 88px); }
.bg-paper { background: var(--paper); }
.bg-flax { background: var(--flax); }
.bg-blush { background: var(--blush); }
.bg-clay { background: var(--clay); color: var(--paper); }
.bg-blue { background: var(--blue); }
.center { text-align: center; }
.center h2 { max-width: 20ch; margin-inline: auto; }
.center .lead { max-width: 46ch; margin: 22px auto 0; }

/* buttons: a compact mono button with Evolyra's small square marker */
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 13px 20px 13px 16px; border-radius: 6px; background: var(--ink); color: var(--paper); font: 400 15px/1.2 var(--mono); letter-spacing: .03em; white-space: nowrap; transition: background .2s, color .2s; }
.btn::before { content: ""; width: 8px; height: 8px; background: var(--blue); flex: none; transition: transform .3s; }
.btn:hover { background: var(--clay); }
.btn:hover::before { transform: rotate(90deg); }
.btn.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; }
.btn.ghost::before { background: currentColor; }
.btn.ghost:hover { background: var(--ink); color: var(--paper); box-shadow: none; }
.btn.light { background: var(--paper); color: var(--ink); }
.btn.light::before { background: var(--clay); }
.btn.light:hover { background: var(--white); }
.more { font: 400 14px/1 var(--mono); letter-spacing: .03em; display: inline-block; padding-bottom: 7px; border-bottom: 1px solid currentColor; transition: opacity .2s; }
.more:hover { opacity: .6; }
.row-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 36px; }

/* nav: two white bars floating over the page */
.nav { position: fixed; top: 16px; left: 0; right: 0; z-index: 50; pointer-events: none; }
.nav .wrap { display: flex; justify-content: space-between; gap: 12px; position: relative; }
.nav .nbar { pointer-events: auto; background: var(--white); border-radius: 8px; height: 60px; display: flex; align-items: center; padding: 0 8px 0 18px; box-shadow: 0 1px 0 rgba(29,19,13,.06), 0 8px 30px rgba(29,19,13,.05); }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 500 22px/1 var(--sans); letter-spacing: -.02em; margin-right: 30px; }
.mark { display: inline-block; width: 1em; height: 1em; background: currentColor; -webkit-mask: url(img/mark.svg) center/contain no-repeat; mask: url(img/mark.svg) center/contain no-repeat; flex: none; }
.brand .mark { font-size: 26px; }
.nav .links { display: flex; }
.nav .links a { font: 400 14.5px/1 var(--mono); letter-spacing: .02em; padding: 14px 15px; border-radius: 6px; }
.nav .links a:hover, .nav .links a[aria-current] { background: var(--flax); }
.nav .nbar.right { padding: 0 8px; gap: 4px; }
.nav .btn { padding: 12px 16px 12px 14px; font-size: 14.5px; }
.nav .btn span { margin-left: -3px; }
.nav .menu { display: none; font: 400 14.5px/1 var(--mono); padding: 14px 15px; }

/* home hero */
.hero { background: var(--paper); position: relative; overflow: hidden; min-height: min(900px, 100vh); display: flex; align-items: center; }
.hero .wrap { width: 100%; position: relative; z-index: 2; padding-block: 150px 110px; }
.hero h1 { max-width: 18ch; }
.nb { white-space: nowrap; }
.hero .lead { max-width: 25em; margin-top: 26px; }
.hero-art { position: absolute; right: -9vw; bottom: -17vw; width: min(64vw, 940px); aspect-ratio: 1; z-index: 1; }
.hero-art canvas { width: 100%; height: 100%; image-rendering: pixelated; display: block; }
.tag { position: absolute; z-index: 3; background: var(--ink); color: var(--paper); font: 400 13.5px/1 var(--mono); letter-spacing: .03em; padding: 12px 16px 12px 13px; display: inline-flex; gap: 11px; align-items: center; border-radius: 4px; }
.tag::before { content: ""; width: 8px; height: 8px; background: var(--paper); }
.tag.t1 { right: 31%; top: 46%; }
.tag.t2 { right: 8%; top: 67%; }

/* a quiet row of names */
.names { display: grid; grid-template-columns: repeat(5, auto); justify-content: space-between; align-items: center; gap: 24px 40px; margin-top: 54px; }
.names span { font: 500 19px/1.2 var(--sans); letter-spacing: -.01em; color: var(--ink-2); opacity: .78; }
.names-head { font: 500 24px/1.2 var(--sans); letter-spacing: -.01em; text-align: right; }

/* the band: one drawing on the left, one statement on the right */
.band { padding-block: clamp(80px, 10vw, 150px); }
.band .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: clamp(40px, 9vw, 150px); align-items: center; }
.band .art { display: flex; justify-content: center; }
.band h2 { margin-bottom: 26px; }
.band p + .more, .band p + .row-btns { margin-top: 34px; }
.band p + p { margin-top: 18px; }

.sheet { background: var(--white); color: var(--ink); border-radius: 16px; padding: 30px 30px 26px; width: min(100%, 560px); }
.sheet .cap { font: 400 12.5px/1.4 var(--mono); letter-spacing: .03em; color: var(--mute); display: flex; justify-content: space-between; margin-bottom: 26px; }
.sheet svg { width: 100%; height: auto; }

/* targeting drawing */
.route { display: grid; grid-template-columns: auto 56px auto; align-items: center; width: min(100%, 560px); }
.route .src { background: var(--white); color: var(--ink); border-radius: 16px; padding: 26px 26px 24px; width: 230px; }
.route .src .mark { font-size: 46px; color: var(--clay); margin-bottom: 44px; }
.route .src b { display: block; font: 500 19px/1.25 var(--sans); }
.route .src span { font: 400 12.5px/1.4 var(--mono); color: var(--mute); display: block; margin-top: 6px; }
.route .wire { height: 132px; border: 2px dotted var(--blue); border-right: 0; position: relative; }
.route .wire::before { content: ""; position: absolute; left: -7px; top: 50%; width: 12px; height: 12px; margin-top: -6px; background: var(--blue); }
.route .ends { display: grid; gap: 86px; }
.pill { display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; padding: 11px 20px 11px 16px; font: 500 16px/1 var(--sans); white-space: nowrap; }
.pill.yes { background: var(--blue); color: var(--ink); }
.pill.yes::before { content: "✓"; font-size: 14px; }
.pill.no { box-shadow: inset 0 0 0 1px rgba(248,246,243,.55); color: rgba(248,246,243,.8); }

/* platform drawing: three sheets, stepping back */
.stack { width: min(100%, 560px); display: grid; gap: 10px; }
.stack .card { background: var(--white); color: var(--ink); border-radius: 14px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; padding: 22px 26px; }
.stack .card b { font: 500 21px/1.2 var(--sans); }
.stack .card span { font: 400 13px/1.2 var(--mono); color: var(--mute); }
.stack .card:nth-child(2) { width: 86%; justify-self: center; padding-block: 19px; }
.stack .card:nth-child(2) b { font-size: 19px; }
.stack .card:nth-child(3) { width: 70%; justify-self: center; padding-block: 16px; }
.stack .card:nth-child(3) b { font-size: 17px; }
.stack .next { justify-self: center; font: 400 13px/1 var(--mono); letter-spacing: .03em; margin-top: 16px; display: inline-flex; align-items: center; gap: 12px; }
.stack .next::before { content: ""; width: 60px; border-top: 2px dotted currentColor; }

/* pipeline rows */
.pipe-head, .prog summary { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.2fr) minmax(0, 2fr) 132px; gap: 28px; align-items: center; }
.pipe-head { font: 400 12.5px/1 var(--mono); letter-spacing: .04em; color: var(--mute); padding-bottom: 16px; border-bottom: 1px solid var(--ink); margin-top: 56px; text-align: left; }
.stages { display: grid; grid-template-columns: repeat(4, 1fr); }
.prog { border-bottom: 1px solid var(--line); text-align: left; }
.prog summary { list-style: none; cursor: pointer; padding: 30px 0; }
.prog summary::-webkit-details-marker { display: none; }
.prog h3 { font-size: 30px; }
.prog .sub { font: 400 13px/1.4 var(--mono); color: var(--mute); margin-top: 6px; }
.prog .ind { font-size: 17px; line-height: 1.45; }
.prog .now { font: 500 15px/1 var(--sans); margin-bottom: 14px; }
.prog .toggle { justify-self: end; font: 400 13.5px/1 var(--mono); letter-spacing: .03em; border: 1px solid var(--ink); border-radius: 6px; padding: 12px 14px; display: inline-flex; gap: 10px; }
.prog .toggle::after { content: "+"; }
.prog[open] .toggle { background: var(--ink); color: var(--paper); }
.prog[open] .toggle::after { content: "−"; }
.prog .body { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 3.2fr) 132px; gap: 28px; padding: 0 0 38px; }
.prog .body p { max-width: 58ch; font-size: 17px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.facts dt { font: 400 12.5px/1.4 var(--mono); letter-spacing: .03em; color: var(--mute); margin-bottom: 6px; }
.facts dd { font-size: 16px; line-height: 1.45; }
.fine { font: 400 13px/1.6 var(--mono); color: var(--mute); margin-top: 26px; max-width: 76ch; text-align: left; }

/* numbers */
.nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 60px; }
.num { background: var(--paper); border-radius: var(--r); padding: 34px 32px 30px; min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end; gap: 18px; text-align: left; }
.num b { font: 400 clamp(72px, 9.4vw, 136px)/.9 var(--sans); letter-spacing: -.05em; color: var(--clay); }
.num:nth-child(2) b { color: var(--blue); }
.num:nth-child(3) b { color: var(--ink); }
.num span { align-self: flex-start; background: var(--white); border-radius: 999px; padding: 9px 16px; font: 500 14px/1.3 var(--sans); }

/* cards in a row */
.grid { display: grid; gap: 20px; margin-top: 56px; }
.g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
.tile { background: var(--paper); border-radius: var(--r); padding: 28px 28px 32px; min-height: 380px; display: flex; flex-direction: column; text-align: left; }
.bg-paper .tile, .bg-flax .tile { background: var(--white); }
.tile .n { font: 400 13px/1 var(--mono); letter-spacing: .04em; color: var(--clay); margin-bottom: auto; }
.tile h3 { margin: 70px 0 12px; }
.tile p { font-size: 16.5px; line-height: 1.6; }

/* photo cards */
.pcard { display: flex; flex-direction: column; }
.pcard .ph { aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r); background: var(--flax); }
.pcard .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.pcard:hover .ph img { transform: scale(1.03); }
.pcard h4 { margin-top: 26px; }
.pcard h3 { margin: 8px 0 12px; }
.pcard p { font-size: 16.5px; line-height: 1.6; max-width: 36ch; }
.pcard .more { margin-top: 22px; align-self: stretch; }

/* a list of rows: news, questions */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 7vw, 110px); align-items: start; }
.split .lead, .split > div > p { margin-top: 20px; max-width: 30em; }
.rows > * { display: grid; grid-template-columns: 130px minmax(0, 1fr) 20px; gap: 22px; align-items: baseline; padding: 24px 0; border-bottom: 1px solid var(--line); }
.rows > *:first-child { border-top: 1px solid var(--ink); }
.rows .d { font: 400 13px/1.5 var(--mono); letter-spacing: .03em; color: var(--mute); }
.rows .t { font: 400 22px/1.3 var(--display); letter-spacing: -.015em; }
.rows .a { font-family: var(--mono); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--ink); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 24px 0; font: 500 18px/1.4 var(--sans); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 20px/1.2 var(--mono); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 60px 26px 0; font-size: 17px; max-width: 60ch; }

/* quote, in a ruled box */
.quote { border: 1px solid var(--ink); padding: clamp(36px, 5vw, 72px); max-width: 1000px; margin-inline: auto; }
.quote p { font: 400 clamp(26px, 2.9vw, 40px)/1.3 var(--display); letter-spacing: -.02em; }
.quote cite { display: block; font-style: normal; margin-top: 40px; }
.quote cite b { display: block; font: 400 22px/1.2 var(--display); color: var(--clay); }
.quote cite span { font-size: 14.5px; }

/* inner page hero */
.phero { padding-block: clamp(150px, 15vw, 210px) clamp(64px, 7vw, 100px); }
.phero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.phero h1 { font-size: clamp(33px, 3.9vw, 56px); max-width: 20ch; }
.phero .lead { margin-top: 24px; max-width: 28em; }
.phero .ph { border-radius: var(--r); overflow: hidden; aspect-ratio: 5 / 4; }
.phero .ph img { width: 100%; height: 100%; object-fit: cover; }
.phero .side { align-self: end; }

/* steps with one dotted line */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 60px; position: relative; text-align: left; }
.steps.five { grid-template-columns: repeat(5, 1fr); }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; border-top: 2px dotted var(--clay); opacity: .6; }
.step { position: relative; padding-top: 38px; padding-right: 20px; }
.step::before { content: ""; position: absolute; left: 0; top: 0; width: 14px; height: 14px; background: var(--clay); }
.step.next::before { background: var(--white); box-shadow: inset 0 0 0 2px var(--clay); }
.bg-paper .step.next::before { background: var(--paper); }
.step .d { font: 400 13px/1.4 var(--mono); letter-spacing: .03em; color: var(--mute); }
.step h4 { margin: 8px 0 8px; }
.step p { font-size: 16px; line-height: 1.55; max-width: 30ch; }

/* people */
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; }
.person .ph { aspect-ratio: 4 / 4.6; border-radius: var(--r); overflow: hidden; background: var(--blush); }
.person .ph img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; filter: grayscale(1) contrast(1.04); mix-blend-mode: multiply; }
.person { display: grid; grid-template-rows: subgrid; grid-row: span 5; row-gap: 0; align-content: start; }
.person h4 { margin-top: 20px; }
.person .role { font: 400 13px/1.4 var(--mono); letter-spacing: .03em; color: var(--mute); margin: 5px 0 12px; }
.person p { font-size: 15.5px; line-height: 1.55; }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 60px; margin-top: 56px; }
.cols h4 { font: 400 13px/1.4 var(--mono); letter-spacing: .04em; color: var(--mute); padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.cols li { padding: 14px 0; border-bottom: 1px solid var(--line); font: 500 18px/1.3 var(--sans); }

/* form */
.formcard { background: var(--white); border-radius: 16px; padding: clamp(24px, 3vw, 40px); }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
label { display: grid; gap: 8px; font: 400 12.5px/1.2 var(--mono); letter-spacing: .03em; color: var(--mute); }
label.full { grid-column: 1 / -1; }
form label[hidden] { display: none; }
input, select, textarea { font: 400 17px/1.3 var(--sans); color: var(--ink); background: var(--paper); border: 1px solid transparent; border-radius: 6px; padding: 14px 15px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); background: var(--white); }
form .btn { justify-self: start; margin-top: 8px; }
form .note { grid-column: 1 / -1; font-size: 14.5px; color: var(--mute); }

/* closing band */
.closing { padding: 20px clamp(12px, 1.6vw, 24px) 0; }
.closing .box { background: var(--flax); border-radius: 16px; position: relative; overflow: hidden; text-align: center; padding: clamp(80px, 9vw, 130px) 24px clamp(190px, 19vw, 270px); }
.closing h2 { max-width: 18ch; margin: 0 auto 36px; }
.closing canvas { position: absolute; left: 0; bottom: 0; width: 100%; height: clamp(120px, 14vw, 190px); image-rendering: pixelated; display: block; }

/* footer */
footer { padding-block: 70px 30px; }
.fcols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.7fr); gap: 30px; }
.fcols h5 { font: 400 14px/1 var(--mono); letter-spacing: .03em; margin-bottom: 22px; }
.fcols li { margin-bottom: 12px; font-size: 16.5px; line-height: 1.4; }
.fcols a:hover { color: var(--clay); }
.fcols .legal { font-size: 13.5px; line-height: 1.6; color: var(--mute); max-width: 44ch; justify-self: end; }
.fbig { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); margin-top: clamp(60px, 8vw, 120px); font: 500 clamp(64px, 13vw, 200px)/.9 var(--sans); letter-spacing: -.045em; }
.fbig .mark { font-size: .8em; }
.fbase { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 34px; color: var(--mute); }

/* ---- v2.1 additions ---- */

/* the scrolling science section: a drawing that stays put while the words move, and a ground that changes with it */
.story { --bg: var(--flax); --fg: var(--ink); --soft: var(--mute); --hi: var(--clay); background: var(--bg); color: var(--fg); transition: background .7s ease, color .7s ease; }
.story[data-tone="clay"] { --bg: var(--clay); --fg: var(--paper); --soft: rgba(248,246,243,.72); --hi: #9DBDFF; }
.story[data-tone="blue"] { --bg: var(--sky); --fg: var(--ink); --soft: rgba(29,19,13,.68); --hi: var(--blue); }
.story[data-tone="blush"] { --bg: var(--blush); }
.story .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: clamp(40px, 8vw, 130px); }
.s-stage { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; justify-content: center; }
.s-figs { position: relative; width: min(100%, 600px); aspect-ratio: 6 / 5; }
.s-fig { position: absolute; inset: 0; opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.s-fig.on { opacity: 1; transform: none; }
.s-fig svg { width: 100%; height: 100%; overflow: visible; }
.s-fig text { font-family: var(--mono); font-size: 13px; fill: currentColor; letter-spacing: .02em; }
.s-fig .soft { fill: var(--soft); }
.s-fig .ln { stroke: currentColor; fill: none; stroke-width: 1.5; }
.s-fig .dot { stroke: currentColor; fill: none; stroke-width: 2; stroke-dasharray: 2 6; stroke-linecap: square; }
.s-fig .hi { fill: var(--hi); }
.s-fig .ink { fill: currentColor; }
.s-fig .ghost { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-dasharray: 5 5; opacity: .6; }
.s-step { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; opacity: .28; transition: opacity .6s; }
.s-step.on { opacity: 1; }
.s-step .kicker { color: var(--soft); }
.s-step h2 { margin-bottom: 26px; }
.s-step p + p { margin-top: 18px; }
.s-step .more { margin-top: 34px; align-self: flex-start; }

/* four-up with small drawn icons */
.tile .ico { width: 50px; height: 50px; margin-bottom: auto; color: var(--clay); }
.tile:nth-child(2) .ico { color: var(--blue); }
.tile:nth-child(3) .ico { color: var(--ink); }
.tile .ico svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: square; }

/* who it is for: photography first, at size */
.aud { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: 1fr 1fr; gap: 20px; margin-top: 56px; height: clamp(560px, 62vw, 860px); }
.aud a { position: relative; overflow: hidden; border-radius: var(--r); color: var(--paper); display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(22px, 2.6vw, 38px); background: var(--clay); }
.aud a:first-child { grid-row: 1 / 3; }
.aud img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.aud a::after { content: ""; position: absolute; inset: 40% 0 0 0; background: linear-gradient(180deg, rgba(29,19,13,0), rgba(29,19,13,.72)); }
.aud a:hover img { transform: scale(1.035); }
.aud .tx { position: relative; z-index: 2; display: grid; gap: 8px; max-width: 30em; }
.aud .k { font: 400 13px/1.4 var(--mono); letter-spacing: .04em; opacity: .85; }
.aud h3 { font-size: clamp(26px, 2.6vw, 38px); }
.aud a:not(:first-child) h3 { font-size: clamp(22px, 2vw, 28px); }
.aud .more { justify-self: start; margin-top: 12px; }

/* news cards, each with its own picture */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.ncard { background: var(--paper); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.bg-paper .ncard { background: var(--white); }
.ncard .pic { aspect-ratio: 3 / 2; position: relative; background: var(--blush); }
.ncard .pic.blue { background: #BFD3FF; } .ncard .pic.clay { background: var(--clay); } .ncard .pic.flax { background: #E4DCD3; } .ncard .pic.sky { background: var(--blue); }
.ncard canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; display: block; }
.ncard .tx { padding: 28px 30px 36px; display: flex; flex-direction: column; gap: 20px; flex: 1; }
.ncard .meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 15px; }
.ncard .meta span:last-child { background: var(--white); border-radius: 999px; padding: 7px 14px; font: 500 13.5px/1.2 var(--sans); }
.bg-paper .ncard .meta span:last-child { background: var(--paper); }
.ncard h3 { font-size: clamp(22px, 1.9vw, 27px); line-height: 1.25; }
.head-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }

@media (max-width: 1000px) {
  .story .wrap { grid-template-columns: 1fr; }
  .s-stage { position: relative; height: auto; display: none; }
  .s-step { min-height: 0; opacity: 1; padding-block: 56px; }
  .s-step .inline-fig { display: block; }
  .aud { grid-template-columns: 1fr; grid-template-rows: none; height: auto; }
  .aud a { min-height: 340px; } .aud a:first-child { grid-row: auto; min-height: 440px; }
  .news-grid { grid-template-columns: 1fr; }
}

.s-fig.inline-fig { display: none; position: relative; inset: auto; opacity: 1; transform: none; aspect-ratio: 6 / 5; max-width: 520px; margin-bottom: 30px; }
.phero .wrap.solo { grid-template-columns: 1fr; }
.sidefacts { border-top: 1px solid currentColor; }
.sidefacts div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 15px 0; border-bottom: 1px solid rgba(248,246,243,.28); }
.sidefacts dt { font: 400 13px/1.6 var(--mono); letter-spacing: .03em; opacity: .75; }
.sidefacts dd { font: 500 18px/1.4 var(--sans); }
.asks { margin: 6px 0 30px; border-top: 1px solid var(--ink); }
.asks li { padding: 15px 0; border-bottom: 1px solid var(--line); font: 500 18px/1.3 var(--sans); display: flex; gap: 16px; }
.asks li span { font: 400 13px/1.7 var(--mono); color: var(--mute); width: 28px; }
.prose p { font-size: 20px; line-height: 1.7; max-width: 34em; }
.prose p + p { margin-top: 22px; }
.band.dark-art .route .src { background: var(--paper); }
@media (max-width: 1000px) { .s-step .s-fig.inline-fig { display: block; } }

.band { --soft: var(--mute); --hi: var(--clay); }
.band.bg-clay { --soft: rgba(248,246,243,.72); --hi: #9DBDFF; }
.s-fig.static { position: relative; inset: auto; width: min(100%, 560px); aspect-ratio: 6 / 5; }

/* gentle reveal */
.rv { opacity: 0; transform: translateY(16px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.rv.in { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  .nav .links { display: none; }
  .nav .menu { display: inline-block; }
  .nav.open .links { display: grid; position: absolute; top: 68px; left: var(--edge); right: var(--edge); background: var(--white); border-radius: 8px; padding: 10px; box-shadow: 0 8px 30px rgba(29,19,13,.08); pointer-events: auto; }
  .nav.open .links a { padding: 16px 14px; font-size: 16px; }
  .band .wrap, .split, .phero .wrap { grid-template-columns: 1fr; }
  .band .art { justify-content: flex-start; }
  .g4, .people { grid-template-columns: repeat(2, 1fr); }
  .g3, .nums, .cols { grid-template-columns: 1fr; }
  .names { grid-template-columns: repeat(2, auto); justify-content: start; }
  .names-head { text-align: left; }
  .pipe-head { display: none; }
  .prog:first-of-type { border-top: 1px solid var(--ink); margin-top: 48px; }
  .prog summary { grid-template-columns: 1fr auto; gap: 14px 20px; }
  .prog summary > :nth-child(2), .prog summary > :nth-child(3) { grid-column: 1 / -1; }
  .prog summary > :nth-child(4) { grid-row: 1; grid-column: 2; }
  .prog .body { grid-template-columns: 1fr; }
  .prog .body > :first-child, .prog .body > :last-child { display: none; }
  .steps, .steps.five { grid-template-columns: 1fr; gap: 26px; }
  .steps::before { left: 6px; right: auto; top: 0; bottom: 0; border-top: 0; border-left: 2px dotted var(--clay); }
  .step { padding: 0 0 0 38px; }
  .hero-art { width: 96vw; right: -34vw; bottom: -30vw; opacity: .55; }
  .tag { display: none; }
  .fcols { grid-template-columns: 1fr 1fr; }
  .fcols .legal { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 680px) {
  body { font-size: 17px; }
  .lead { font-size: 18px; }
  .g2, .g4, .people, .facts { grid-template-columns: 1fr; }
  .tile { min-height: 0; } .tile h3 { margin-top: 44px; }
  .num { min-height: 220px; }
  .rows > * { grid-template-columns: 1fr 20px; gap: 6px 14px; }
  .rows .d { grid-column: 1 / -1; }
  .route { grid-template-columns: 1fr; gap: 18px; } .route .wire { display: none; } .route .ends { gap: 12px; justify-items: start; }
  .nav .nbar { height: 54px; padding-left: 14px; } .brand { margin-right: 6px; font-size: 20px; }
  .nav .btn span { display: none; }
  form { grid-template-columns: 1fr; }
  .hero .wrap { padding-block: 130px 300px; }
  .hero { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
}


/* ================= v2.2 ================= */
.bg-sky { background: var(--sky); } .bg-citron { background: var(--citron); } .bg-citron-pale { background: var(--citron-pale); }
.bg-sky .kicker, .bg-citron .kicker, .bg-blush .kicker { color: rgba(29,19,13,.66); }

/* nav: no shadow at rest, a soft one once the page has moved */
.nav .nbar { box-shadow: none; transition: box-shadow .35s; }
.nav.scrolled .nbar { box-shadow: 0 1px 0 rgba(29,19,13,.06), 0 12px 36px rgba(29,19,13,.09); }
.nav .quiet { font: 400 14.5px/1 var(--mono); letter-spacing: .02em; padding: 14px 15px; border-radius: 6px; }
.nav .quiet:hover, .nav .quiet[aria-current] { background: var(--flax); }
.only-m { display: none; }
@media (min-width: 1001px) {
  .nav { top: 20px; }
  .nav .nbar { height: 70px; padding-left: 24px; }
  .nav .nbar.right { padding: 0 10px 0 8px; gap: 6px; }
  .brand { font-size: 25px; margin-right: 34px; } .brand .mark { font-size: 30px; }
  .nav .links a, .nav .quiet { font-size: 15.5px; padding: 16px 17px; }
  .nav .btn { padding: 15px 20px 15px 17px; font-size: 15.5px; }
}
@media (max-width: 1000px) { .nav .quiet { display: none; } .nav.open .links .only-m { display: block; } }

/* pipeline bars: solid run, dithered tip, marker; drawn on when they come into view */
@property --q { syntax: "<percentage>"; inherits: true; initial-value: 0%; }
.bar { --c: var(--clay); --q: 0%; height: 8px; background: rgba(29,19,13,.1); position: relative; transition: --q 1.6s cubic-bezier(.2,.7,.2,1) .2s; }
.bar.in { --q: var(--p); }
.bar i { position: absolute; top: 0; bottom: 0; transition: opacity .4s .2s; }
.bar .f { left: 0; width: max(0px, calc(var(--q) - 20px)); background: var(--c); }
.bar .t { left: max(0px, calc(var(--q) - 20px)); width: 16px; background: repeating-conic-gradient(var(--c) 0 25%, transparent 0 50%) 0 0 / 4px 4px; }
.bar .k { left: calc(var(--q) - 4px); width: 9px; top: -5px; bottom: -5px; background: var(--ink); }
.bar:not(.in) .t, .bar:not(.in) .k { opacity: 0; }
.prog:nth-of-type(2) .bar { --c: var(--blue); }
.prog:nth-of-type(3) .bar { --c: var(--citron-deep); }
.prog .now { margin-bottom: 16px; }

/* numbers */
.nums { margin-top: 56px; }
.nums .num { min-height: 330px; padding: 34px; gap: 22px; }
.nums .num b { font: 300 clamp(60px, 7.4vw, 128px)/.95 var(--sans); letter-spacing: -.045em; color: var(--ink); }
.nums .num span { background: none; padding: 0; border-radius: 0; font: 400 17px/1.45 var(--sans); max-width: 26ch; }
.nums .num:nth-child(1) { background: var(--blush); }
.nums .num:nth-child(2) { background: var(--sky); }
.nums .num:nth-child(3) { background: var(--citron-pale); }

/* bitmap icons in the four-up */
.tile .ico { width: 60px; height: 60px; }
.tile .ico[data-px] svg { fill: currentColor; stroke: none; }
.tile:nth-child(4) .ico { color: var(--citron-deep); }

/* news pictures: every card on its own ground */
.ncard .pic.sky { background: var(--sky); } .ncard .pic.clay { background: var(--clay); } .ncard .pic.citron { background: var(--citron); }
.ncard .pic.blush { background: var(--blush); } .ncard .pic.ink { background: var(--ink-2); } .ncard .pic.blue { background: var(--blue); }

/* inner page hero: the color runs the full height of the screen */
.phero { min-height: 100vh; display: flex; align-items: flex-end; padding-block: 150px clamp(48px, 5vw, 84px); }
.phero.short { min-height: 0; }
.phero .wrap { width: 100%; align-items: end; }
.phero h1 { font-size: clamp(34px, 4.4vw, 76px); max-width: 18ch; }
.phero .lead { max-width: 30em; }
.phero .ph { aspect-ratio: auto; height: min(72vh, 780px); }
.phero .side .s-fig.static { width: 100%; }
@media (max-width: 1000px) { .phero { min-height: 0; padding-top: 130px; } .phero .ph { height: auto; aspect-ratio: 5 / 4; } }

/* a news article */
.art-hero { padding: 0; }
.art-hero .pic { position: relative; height: clamp(360px, 62vh, 640px); }
.art-hero canvas { position: absolute; inset: 96px 0 24px 0; width: 100%; height: calc(100% - 120px); image-rendering: pixelated; display: block; }
.narrow { max-width: 860px; }
.article .meta { display: flex; gap: 14px; align-items: center; margin: 34px 0 22px; font-size: 15px; }
.article .meta span:last-child { background: var(--paper); border-radius: 999px; padding: 7px 14px; font: 500 13.5px/1.2 var(--sans); }
.article h1 { font-size: clamp(34px, 3.9vw, 60px); margin-bottom: 36px; }
.article .prose p { max-width: 36em; }
.article .prose .more { margin-top: 30px; }

/* moving between pages: the old page lifts away, the new one settles in, the nav stays put */
@view-transition { navigation: auto; }
.nav { view-transition-name: site-nav; }
::view-transition-old(root) { animation: vt-out .26s cubic-bezier(.4,0,.6,1) both; }
::view-transition-new(root) { animation: vt-in .6s cubic-bezier(.2,.7,.2,1) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(22px); } }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none; } .bar { transition: none; } }


/* ================= v2.3: plates, new icons, closing tones, news list ================= */

/* a plate: the ground an illustration sits on, with the drawing on a clean sheet */
.plate { position: relative; width: min(100%, 700px); aspect-ratio: 7 / 6; border-radius: var(--r); overflow: hidden; background: var(--blush); transition: background .7s ease; }
.plate[data-tone="clay"], .story[data-tone="clay"] .s-plate { background: var(--clay); }
.plate[data-tone="sky"], .story[data-tone="blue"] .s-plate { background: var(--sky); }
.plate[data-tone="blue"] { background: var(--blue); }
.plate[data-tone="citron"] { background: var(--citron); }
.plate-tx { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; mix-blend-mode: multiply; opacity: .17; }
.plate[data-tone="clay"] .plate-tx, .story[data-tone="clay"] .plate-tx { mix-blend-mode: screen; filter: invert(1); opacity: .17; }
.plate .sheet { position: absolute; inset: 9% 8%; background: var(--white); border-radius: 8px; color: var(--ink); --soft: var(--mute); }
.sheet .s-fig, .sheet .s-fig.static { position: absolute; inset: clamp(16px, 2.2vw, 32px); width: auto; aspect-ratio: auto; display: flex; flex-direction: column; }
.sheet .s-fig::before { content: attr(data-cap); font: 400 12px/1.4 var(--mono); letter-spacing: .04em; color: var(--mute); margin-bottom: 10px; }
.sheet .s-fig svg { flex: 1; min-height: 0; width: 100%; height: auto; }
.s-fig .ghost { stroke-dasharray: 6 6; }
.story, .story[data-tone] { --bg: var(--white); --fg: var(--ink); --soft: var(--mute); }
.s-plate { width: min(100%, 720px); }
.band .art .plate { width: min(100%, 660px); }
.phero .side .plate { width: 100%; }
.s-fig.inline-fig { background: var(--paper); border-radius: 8px; padding: 18px; aspect-ratio: auto; }
.s-fig.inline-fig::before { content: attr(data-cap); display: block; font: 400 12px/1.4 var(--mono); color: var(--mute); margin-bottom: 8px; }

/* four-up icons */
canvas.ico { width: 84px; height: 84px; image-rendering: pixelated; margin-bottom: auto; display: block; }
.tile canvas.ico { color: var(--clay); }
.tile:nth-child(2) canvas.ico { color: var(--blue); }
.tile:nth-child(3) canvas.ico { color: var(--ink); }
.tile:nth-child(4) canvas.ico { color: var(--citron-deep); }

/* closing band: takes the color of the page it ends */
.closing .box[data-tone="sky"] { background: var(--sky); }
.closing .box[data-tone="blush"] { background: var(--blush); }
.closing .box[data-tone="citron"] { background: var(--citron); }
.closing .box[data-tone="clay"] { background: var(--clay); color: var(--paper); }
.closing h2 { margin-bottom: 26px; max-width: 20ch; }
.closing .sub { max-width: 32em; margin: -8px auto 30px; font-size: 19px; }
.closing .row-btns { justify-content: center; margin-top: 0; position: relative; z-index: 2; }

/* news as a list, on every page (decided at the review, 11/20): picture left, words right */
.news-grid.news-grid { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--ink); }
.news-grid .ncard { flex-direction: row; align-items: center; gap: clamp(24px, 4vw, 64px); background: none; border-radius: 0; border-bottom: 1px solid var(--line); padding: 22px 0; }
.news-grid .ncard .pic { width: clamp(200px, 26vw, 400px); flex: none; border-radius: var(--r); overflow: hidden; }
.news-grid .ncard .tx { padding: 0; flex-direction: row; align-items: center; gap: clamp(20px, 4vw, 64px); }
.news-grid .ncard .meta { flex-direction: column; align-items: flex-start; gap: 12px; width: 170px; flex: none; }
.news-grid .ncard .meta span:last-child { background: var(--flax); }
.news-grid .ncard h3 { font-size: clamp(24px, 2.5vw, 38px); flex: 1; max-width: 22ch; }
.news-grid .ncard::after { content: "→"; font: 400 22px/1 var(--mono); padding-right: 6px; transition: transform .25s; }
.news-grid .ncard:hover::after { transform: translateX(6px); }
@media (max-width: 760px) {
  .news-grid .ncard { align-items: flex-start; gap: 16px; }
  .news-grid .ncard .pic { width: 120px; }
  .news-grid .ncard .tx { flex-direction: column; align-items: flex-start; gap: 10px; }
  .news-grid .ncard .meta { flex-direction: row; width: auto; }
  .news-grid .ncard::after { display: none; }
}



/* ================= v2.4 ================= */
/* hero tags: one per program, marked in its pipeline color; they drift at rest and shift with the pointer and the scroll */
.tag { transform: translate3d(calc(var(--mx, 0) * var(--d, 0) * 1px), calc((var(--my, 0) * var(--d, 0) + var(--sy, 0) * var(--d, 0) * 2.2) * 1px), 0); transition: transform .5s cubic-bezier(.2,.7,.2,1); animation: drift 7s ease-in-out infinite alternate; will-change: transform; }
.tag.t1::before { background: var(--clay); box-shadow: 0 0 0 1px rgba(248,246,243,.5); }
.tag.t2::before { background: var(--blue); }
.tag.t3::before { background: var(--citron); }
.tag.t2 { animation-duration: 9s; animation-delay: -3s; }
.tag.t3 { right: 21%; top: 84%; animation-duration: 8s; animation-delay: -5s; }
@keyframes drift { from { translate: 0 -5px; } to { translate: 0 6px; } }
@media (prefers-reduced-motion: reduce) { .tag { animation: none; transition: none; } }

/* the sheet sits in the middle of its plate */
.plate .sheet { width: auto; padding: 0; }

/* about: the dark of our buttons */
.bg-ink { background: var(--ink); color: var(--paper); }
.bg-ink .kicker { color: rgba(248,246,243,.62); }


/* ================= v2.5: phone pass ================= */
@media (max-width: 1000px) {
  /* scroll figures: each one on its own small plate, in the step's color */
  .s-step .s-fig.inline-fig { background: var(--blush); padding: 14px; border-radius: var(--r); max-width: 560px; }
  .s-step[data-tone="clay"] .s-fig.inline-fig { background: var(--clay); }
  .s-step[data-tone="blue"] .s-fig.inline-fig { background: var(--sky); }
  .s-step .s-fig.inline-fig::before { display: none; }
  .s-step .s-fig.inline-fig svg { background: var(--white); border-radius: 6px; padding: 14px 12px; color: var(--ink); --soft: var(--mute); height: auto; }
}
@media (max-width: 680px) {
  .s-fig text { font-size: 17px; }
  .plate { aspect-ratio: 1 / 1; }
  .plate .sheet { inset: 6% 5%; }
  .sheet .s-fig, .sheet .s-fig.static { inset: 12px; }
  .sheet .s-fig::before { font-size: 11px; margin-bottom: 4px; }
  .nums .num { min-height: 200px; padding: 26px; }
  .tile { padding: 24px; }
  .news-grid .ncard { gap: 14px; padding: 18px 0; }
  .news-grid .ncard .pic { width: 104px; }
  .news-grid .ncard .tx { gap: 8px; }
  .news-grid .ncard .meta { gap: 10px; font-size: 13.5px; flex-wrap: wrap; }
  .news-grid .ncard .meta span:last-child { padding: 5px 10px; font-size: 12px; }
  .news-grid .ncard h3 { font-size: 20px; line-height: 1.25; }
  .art-hero .pic { height: 340px; }
  .closing .box { padding-bottom: 150px; }
  .quote p { font-size: 24px; }
  .phero { padding-bottom: 40px; }
}


/* ---------- v2.6 partner logos, centered and scrolling ---------- */
.names-head { text-align: center; font-size: 20px; color: var(--ink-2); }
.marq { margin-top: 44px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marq-track { display: flex; width: max-content; margin-inline: auto; background: var(--flax); }
.marq-set { display: flex; align-items: center; gap: clamp(56px, 6vw, 104px); padding: 0 clamp(28px, 3vw, 52px); margin: 0; list-style: none; flex: none; }
.marq-set li { display: flex; align-items: center; gap: 12px; flex: none; }
.marq-set img { height: var(--h, 48px); width: auto; display: block; filter: grayscale(1) contrast(1.08); mix-blend-mode: multiply; opacity: .72; transition: filter .3s ease, opacity .3s ease; }
.marq-set img.dk { filter: grayscale(1) brightness(.62) contrast(1.5); }
.marq-set li:hover img { filter: none; opacity: 1; }
.marq-set .pair span { font: 500 21px/1 var(--sans); letter-spacing: -.01em; color: var(--ink-2); opacity: .78; }
.marq.on .marq-track { margin-inline: 0; animation: marq 48s linear infinite; }
.marq.on:hover .marq-track { animation-play-state: paused; }
@keyframes marq { to { transform: translateX(-25%); } }
@media (max-width: 1000px) {
  .names-head { text-align: center; font-size: 17px; max-width: 26ch; margin-inline: auto; }
  .marq { margin-top: 30px; }
  .marq-set img { height: calc(var(--h, 48px) * .78); }
  .marq-set .pair span { font-size: 17px; }
  .marq.on .marq-track { animation-duration: 34s; }
}
@media (prefers-reduced-motion: reduce) {
  .marq { -webkit-mask-image: none; mask-image: none; }
  .marq-track { width: auto; }
  .marq-set { flex-wrap: wrap; justify-content: center; row-gap: 28px; }
}


/* ---------- v2.7 partner logos as one-color vectors, in brown ---------- */
:root { --logo: var(--clay); }
.marq-set .lg { display: block; height: var(--h, 48px); background: var(--logo); -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-position: center; mask-position: center; transition: background-color .4s ease; }
.marq-set .pair span { color: var(--logo); opacity: 1; transition: color .4s ease; }
@media (max-width: 1000px) { .marq-set .lg { height: calc(var(--h, 48px) * .78); } }

/* ================= v2.4: the symbol dither (the color version was chosen at the review) ================= */
.aud canvas.gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; }
/* hover dither (11/19): the photo shows at rest; while the dither covers it, the caption sits in a dark box. The box
   is always there, clear at rest, so the words never move */
.aud .tx { --tp: clamp(16px, 1.6vw, 24px); padding: var(--tp); margin: calc(-1 * var(--tp)); border-radius: 8px; transition: background-color .35s ease; }
.aud a.dz .tx { background: var(--ink); }
.ncard .pic canvas, .art-hero canvas { image-rendering: auto; }
/* plates: color shows the ladder at strength behind the sheet, brown keeps the faint print */
html[data-dither="color"] .plate-tx, html[data-dither="color"] .plate[data-tone="clay"] .plate-tx, html[data-dither="color"] .story[data-tone="clay"] .plate-tx { mix-blend-mode: normal; filter: none; opacity: .85; }
html[data-dither="brown"] .plate-tx { opacity: .28; }
/* no lone last words in the short tile and pipeline paragraphs, or the footer note (copy pass, 11/19) */
p, .tile p, .prog .body p, .fcols .legal, .rows span, .links-list span { text-wrap: balance; }

/* ================= v2.5: Fig. 2 as one cell pattern at two sizes, its plate solid, the home lockup tighter ================= */
.f2v .fb { fill: var(--hi); stroke: var(--hi); stroke-width: 8; stroke-linejoin: round; }
.f2v .fb.on { fill: var(--citron); stroke: var(--citron); }
.f2v .nu { fill: var(--ink); opacity: .82; }
.f2v .lc { fill: #4B423D; stroke: #4B423D; stroke-width: 3; stroke-linejoin: round; }
.f2v .lc.hit { stroke: var(--citron); }
.f2v .ln2 { fill: #8D8782; }
/* the brown plate carries no texture, in any dither version, so the drawing is the only pattern in the lockup */
.plate-tx { transition: opacity .5s ease; }
html .plate[data-tone="clay"] .plate-tx, html .story[data-tone="clay"] .plate-tx { opacity: 0 !important; }
/* home: the plate fills its column and sits against the words, so the pair reads as one lockup */

/* Figs. 1 and 3: the carrier is a container you can see, the gene is a strip that goes in it */
.s-fig .car { fill: none; stroke: currentColor; stroke-width: 3; }
.s-fig .car.more { stroke-width: 2; stroke-dasharray: 7 7; opacity: .5; }
.s-fig .cut { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-dasharray: 5 5; opacity: .6; }
.s-fig .gene { transform-box: fill-box; transform-origin: left center; }
@media (prefers-reduced-motion: no-preference) {
  .s-fig.on.seen .gene { animation: geneIn .55s steps(6, end) both; animation-delay: var(--gd, 0s); }
  .s-fig.on.seen .cut, .s-fig.on.seen .late { animation: popIn .01s steps(1) backwards; animation-delay: .7s; }
}
@keyframes geneIn { from { transform: scaleX(0); } }
@keyframes popIn { from { opacity: 0; } }
.f2v[data-v="tissues"] text { font-size: 16px; }

/* ================= v2.6: the pipeline track. Stages are steps, not a time scale. IND is a filing the FDA reviews in
   about a month, so it is drawn as a narrow gate, and the preclinical work that leads up to it gets the room. ================= */
.stages { grid-template-columns: 46% 10% 22% 22%; }
.bar::before { content: ""; position: absolute; top: -5px; bottom: -5px; left: 46%; width: 10%; border-inline: 1px solid rgba(29,19,13,.4); background: repeating-linear-gradient(135deg, rgba(29,19,13,.16) 0 1.5px, transparent 1.5px 5px); }
.bar::after { content: ""; position: absolute; top: -5px; bottom: -5px; left: 78%; width: 1px; background: rgba(29,19,13,.28); }
.s-fig .car { stroke-width: 2.5; }
.s-fig .car.quiet { stroke-width: 1.5; opacity: .55; }
.s-fig .car.more { stroke-width: 1.5; }
/* Figs. 1 and 3 as lab diagrams: hairlines and square corners */
.s-fig .fr { fill: none; stroke: currentColor; stroke-width: 1.25; }
.s-fig .fr.dash { stroke-dasharray: 5 5; opacity: .55; }
.s-fig .cap { fill: currentColor; opacity: .28; }
.s-fig .ln.thin { stroke-width: 1.25; }
.s-fig .cut { stroke-width: 1.25; }


/* ================= v3 (2026-11-20, after the brand review): one lockup, the hero words lifted, tablet and phone ================= */

/* One lockup on every page: the plate on the left, the words on the right, and the pair centered, so the space left
   over sits outside it. Home and science share these sizes (Kevin, 11/20: the science lockup sat too far right). */
:root { --lock-t: clamp(340px, 34vw, 520px); --lock-g: clamp(40px, 5.5vw, 100px); }
.story .wrap, .band .wrap { gap: var(--lock-g); }
@media (min-width: 1001px) {
  .story .wrap, .band .wrap { grid-template-columns: auto minmax(0, var(--lock-t)); justify-content: center; }
  .s-plate, .band .art .plate { width: min(960px, calc((100vh - 240px) * 7 / 6), calc(100vw - 2 * var(--edge) - var(--lock-t) - var(--lock-g))); }
  /* inner page heroes: the words sit level with the middle of the picture, not on the bottom edge */
  .phero { align-items: center; padding-block: 130px clamp(48px, 5vw, 84px); }
  .phero .wrap, .phero .side { align-items: center; align-self: center; }
}

/* pipeline: on phone and tablet the header row is hidden, so each bar carries its own stage names */
.stages.under { display: none; }
.f2v text.note { fill: var(--soft); }

@media (max-width: 1000px) {
  h1, .phero h1 { font-size: clamp(34px, 6vw, 52px); }
  h2 { font-size: clamp(28px, 4.2vw, 36px); }
  /* home hero: the words on top, the mark below them, nothing overlapping */
  .hero { align-items: flex-start; min-height: 0; }
  .hero .wrap { padding-block: 132px 60vw; }
  .hero-art { width: 92vw; right: -30vw; bottom: -29vw; opacity: 1; }
  .s-step { padding-block: 44px; }
  .s-step .s-fig.inline-fig { max-width: 640px; margin-bottom: 26px; }
  .stages.under { display: grid; margin-top: 12px; font: 400 10.5px/1.2 var(--mono); letter-spacing: .02em; color: var(--mute); }
  .prog summary { padding: 26px 0; }
  .aud a { min-height: 300px; } .aud a:first-child { min-height: 380px; }
  .phero .lead { max-width: 34em; }
  .s-step p, .band p { max-width: 34em; }
}
.faq summary { text-wrap: balance; }
/* the drawing in an inner page hero keeps the sheet's margin on both sides */
.phero .side .sheet .s-fig.static { width: auto; }
/* photo tiles: a deeper shade behind the words where there is no hover to darken them */
@media (hover: none), (max-width: 1000px) { .aud a::after { inset: 25% 0 0 0; background: linear-gradient(180deg, rgba(29,19,13,0), rgba(29,19,13,.8)); } }
@media (min-width: 681px) and (max-width: 1000px) {
  .nums { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .nums .num { min-height: 230px; padding: 24px; gap: 16px; }
  .nums .num b { font-size: clamp(44px, 6.6vw, 66px); }
  .nums .num span { font-size: 15.5px; }
  .g3 { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .g3 .tile { min-height: 290px; padding: 22px; }
  .g3 .tile h3 { font-size: 22px; margin-top: 40px; }
  .g3 .tile p { font-size: 15.5px; }
  .g4 .tile { min-height: 300px; }
  .cols { grid-template-columns: repeat(3, 1fr); gap: 20px 28px; }
  .cols li { font-size: 16px; }
  .aud { grid-template-columns: 1fr 1fr; }
  .aud a:first-child { grid-column: 1 / -1; min-height: 420px; }
  .steps:not(.five) { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .steps:not(.five)::before { left: 0; right: 0; top: 6px; bottom: auto; border-left: 0; border-top: 2px dotted var(--clay); }
  .steps:not(.five) .step { padding: 38px 20px 0 0; }
  .split { gap: 40px; }
}
@media (max-width: 680px) {
  h3 { font-size: 22px; }
  .sec { padding-block: 64px; }
  .grid, .nums, .people, .cols, .steps, .aud, .news-grid { margin-top: 36px; }
  /* drawings: less frame, larger labels */
  .s-step .s-fig.inline-fig { padding: 10px; }
  .s-step .s-fig.inline-fig svg { padding: 12px 8px; }
  .s-fig svg.f13 text { font-size: 15px; }
  .f2v[data-v="tissues"] text { font-size: 24px; }
  .f2v[data-v="tissues"] text.soft { transform: translateY(6px); }
  /* the team: a small portrait beside each name, so four people do not take four screens */
  .people { gap: 0; border-top: 1px solid var(--ink); }
  .person { display: grid; grid-template-columns: 92px minmax(0, 1fr); grid-template-rows: none; grid-row: auto; column-gap: 16px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--line); }
  .person .bio { grid-column: 1 / -1; }
  .person .ph { grid-row: 1 / span 2; }
  .person h4 { margin-top: 0; font-size: 18px; align-self: end; }
  .person .role { margin: 4px 0 0; align-self: start; }
  .person p:not(.role) { grid-column: 1 / -1; font-size: 15.5px; margin-top: 14px; }
  .cols { gap: 28px; }
  .head-row { align-items: start; flex-direction: column; gap: 16px; }
  .closing .sub { font-size: 17px; }
  .faq details p { padding-right: 0; }
  .formcard { padding: 20px; }
  .fcols { gap: 26px 20px; }
}

/* small laptops and a tablet on its side: the nav fits, and the hero mark stays clear of the words */
@media (min-width: 1001px) and (max-width: 1180px) {
  .nav .nbar { padding-left: 18px; }
  .brand { margin-right: 16px; }
  .nav .links a, .nav .quiet { padding: 16px 10px; font-size: 15px; }
  .nav .btn { padding: 15px 16px 15px 14px; font-size: 15px; }
  .hero-art { width: 56vw; right: -14vw; bottom: -15vw; }
  .hero .lead { max-width: 21em; }
  .tag.t1 { right: 24%; } .tag.t3 { right: 14%; }
}

/* home step three: a photograph in place of a drawing, filling the whole plate */
.plate > .s-fig.photo { position: absolute; inset: 0; z-index: 2; }
.s-fig.photo img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r); display: block; }
.s-step .s-fig.photo.inline-fig { padding: 0; background: none; aspect-ratio: 7 / 6; overflow: hidden; }

/* ================= v3.1 (2026-11-21): section headlines wrap, card titles line up, news dates centered ================= */
/* a section headline runs two balanced lines, not one line across the whole page */
.sec > .wrap > h2, .head-row h2, .sec > .wrap.split > h2 { max-width: 34ch; }
/* cards in a row: icon at the top, title and text at the bottom, with every title on the same line across the row */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 1001px) { .grid.g4 { grid-template-rows: minmax(190px, 1fr) auto auto; } .g4 > .tile { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 12px; } }
  @media (min-width: 681px) { .grid.g3 { grid-template-rows: minmax(150px, 1fr) auto auto; } .g3 > .tile { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 12px; } }
  @media (min-width: 681px) { .g3 > .tile > :first-child, .g3 > .tile h3, .g3 > .tile p { margin: 0; } .g3 > .tile h3 { align-self: end; } }
  @media (min-width: 1001px) { .g4 > .tile > :first-child, .g4 > .tile h3, .g4 > .tile p { margin: 0; } .g4 > .tile h3 { align-self: end; } }
}
/* news list: the date and its tag sit centered on each other */
@media (min-width: 761px) { .news-grid .ncard .meta { align-items: center; text-align: center; } }

/* 2026-11-30: places held on the About page for the three regulatory consultants (names and photos to come) */
.person .ph.tbd { background: repeating-linear-gradient(135deg, var(--flax) 0 10px, var(--paper) 10px 20px); border: 1px dashed rgba(29, 19, 13, .3); }
.sub-head { margin-top: clamp(64px, 7vw, 104px); font-size: clamp(24px, 2.1vw, 30px); }
.sub-head + .people { margin-top: 32px; }

/* 2026-11-30: the full bio opens with a click under each founder (Kevin Passarello asked for bios behind a click) */
.person .bio-more { margin-top: 10px; }
.person .bio-more[hidden] { display: none; }
.person .bio-btn { margin-top: 16px; cursor: pointer; display: inline-flex; gap: 10px; font: 400 13px/1 var(--mono); letter-spacing: .03em; color: var(--ink); background: none; border: 1px solid var(--ink); border-radius: 6px; padding: 10px 12px; }
.person .bio-btn::after { content: "+"; }
.person .bio-btn[aria-expanded="true"]::after { content: "−"; }
.person .bio-btn:hover { background: var(--ink); color: var(--paper); }

/* 2026-11-30: under 400 px the two nav bars ran past the page gutter */
@media (max-width: 400px) { .nav .wrap { gap: 8px; } .nav .nbar .menu { padding: 14px 10px; } .nav .nbar .btn { padding: 12px; gap: 8px; } .nav .brand { font-size: 18px; } }

/* 2026-12-01: the executive team. Same cards as the founders. The photos arrived as small round crops and were extended
   to full portraits (tools/face-back.mjs keeps the original face pixels). Their full bio is a short list. */
.person ul.bio-more { margin-top: 10px; padding-left: 18px; list-style: disc; font-size: 15.5px; line-height: 1.5; }
.person ul.bio-more li + li { margin-top: 6px; }
@media (max-width: 680px) { .person ul.bio-more { grid-column: 1 / -1; } }

/* 2026-12-01: the contact card holds an address and a button until the secure form is set up */
.mailcard .k { font: 400 13px/1.4 var(--mono); letter-spacing: .03em; color: var(--mute); }
.mailcard .addr { display: block; margin: 10px 0 30px; padding-bottom: 22px; border-bottom: 1px solid var(--line); font: 500 clamp(18px, 1.7vw, 24px)/1.3 var(--sans); overflow-wrap: anywhere; }

/* 2026-12-01, phone pass */
@media (max-width: 680px) { .hero .wrap { padding-bottom: 72vw; } }  /* the hero drawing came up into the "For patients and families" link */
@media (max-width: 760px) { .news-grid .ncard { align-items: center; } }  /* news rows: the picture sits level with the middle of the words, as on desktop */
.mailcard p.addr { font-weight: 400; }

/* ---- 2026-12-02: one spacing rule on phones. Before this only .sec had the 64px rule; the Science bands kept 80,
   hero bottoms had 40 and the Home story steps 44, so the gaps between sections did not match.
   Rule: every section has 64px above and below its content. Where two sections in a row share a background, the
   second starts at 32px, so the gap between them is 96px instead of 128px. Steps inside the Home story sit 64px apart. ---- */
@media (max-width: 680px) {
  .band { padding-block: 64px; }
  .phero { padding-bottom: 64px; }
  .phero.short { padding-bottom: 0; }
  .story { padding-block: 32px; }
  .s-step { padding-block: 32px; }
  :is(.sec, .band, .story):not([class*="bg-"]) + :is(.sec, .band):not([class*="bg-"]),
  :is(.sec, .band).bg-paper + :is(.sec, .band).bg-paper { padding-top: 32px; }
}

/* ---- 2026-12-02: the 01 to 04 numbers are off the tiles. A tile is now a plain card: the title at the top and the
   text right under it. (The old layout kept a tall empty row for the number and lined rows up across the cards.) ---- */
.tile, .g3 .tile, .g4 .tile { min-height: 0; }
.grid.g3, .grid.g4 { grid-template-rows: none; }
.g3 > .tile, .g4 > .tile { display: flex; flex-direction: column; grid-row: auto; row-gap: 0; }
.g3 > .tile > h3:first-child, .g4 > .tile > h3:first-child, .tile > h3:first-child { margin: 0 0 12px; align-self: auto; }
.asks li { gap: 0; }

/* a reprinted article inside a news story (the LGMD News profile, carried over from the old site, 2026-12-02) */
.article .prose .art-title { font-size: clamp(24px, 2.3vw, 32px); line-height: 1.2; max-width: 22em; margin: 56px 0 14px; text-wrap: balance; }
.article .prose .byline { font: 500 16px/1.5 var(--sans); margin: 0 0 30px; }
.article .prose .src { font-size: 16px; line-height: 1.6; margin-top: 34px; padding-top: 22px; border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
.article .prose .src a { text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 1001px) { .fcols .legal { grid-column: 5; } }
