/* ==========================================================================
   The Hope Group · hopegroup.ai
   A chart-paper site with a night-harbor hero. Tokens first, then components.
   ========================================================================== */

:root {
  /* ground */
  --paper: #F4F5F1;
  --paper-2: #EAECE6;
  --card: #FBFBF8;
  --shoal: #DCE8EC;
  --shoal-2: #C7DAE1;
  /* ink */
  --ink: #17191C;
  --ink-2: #3D4248;
  --muted: #6B7178;
  --rule: #CFD4CD;
  --rule-strong: #A8AFA9;
  /* the light: nautical charts draw beacons in magenta */
  --beacon: #C41E5C;
  --beacon-deep: #9E1749;
  --beacon-tint: #F6DCE5;
  --lamp: #F5D58A;
  --gold: #A67C22;
  /* night harbor */
  --night: #0E1116;
  --night-2: #151A21;
  --night-rule: #2A313B;
  --night-text: #E9EBE6;
  --night-muted: #9AA3AD;

  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* in-page links land just below the sticky header; main.js keeps --header-h in step with the real header */
:root { --header-h: 70px; }
:root.has-banner { --header-h: 112px; }
[id] { scroll-margin-top: calc(var(--header-h) + 1.25rem); }
section[id] { scroll-margin-top: var(--header-h); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p, ul, ol, dl, figure, blockquote { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--beacon); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; border-radius: var(--radius); }
.skip:focus { top: 1rem; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
}

/* ---------- type ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 400;
  font-optical-sizing: auto;
  line-height: 1.06;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.15; }
.h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.h4 { font: 600 1rem/1.3 var(--font-body); }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.55; color: var(--ink-2); max-width: 62ch; text-wrap: pretty; }
.aside { font: italic 400 1.05rem/1.4 var(--font-display); color: var(--muted); }
.mt { margin-top: 1.5rem; }
.eyebrow {
  display: flex; align-items: center; gap: .6em;
  font: 500 .74rem/1.4 var(--font-mono);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-2);
}
.eyebrow::before { content: ""; flex: none; width: .55em; height: .55em; border-radius: 50%; background: var(--beacon); box-shadow: 0 0 0 3px var(--beacon-tint); }
.eyebrow--beacon { color: var(--beacon-deep); }
.eyebrow--night { color: var(--night-muted); }
.eyebrow--night::before { background: var(--lamp); box-shadow: 0 0 0 3px rgba(245, 213, 138, .18), 0 0 14px rgba(245, 213, 138, .55); }
.eyebrow--star::before { content: "✦"; width: auto; height: auto; background: none; box-shadow: none; color: var(--beacon); font-size: .95em; line-height: 1; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--paper2 { background: var(--paper-2); }
.section--shoal { background: var(--shoal); }
.sec-head { display: grid; gap: .9rem; max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.sec-head--row { max-width: none; grid-template-columns: 1fr auto; align-items: end; gap: 1.5rem; }
.sec-head--row > div { display: grid; gap: .9rem; }
@media (max-width: 600px) { .sec-head--row { grid-template-columns: minmax(0, 1fr); align-items: start; } }
.sec-head--row > .btn { justify-self: start; }
.two-col { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.two-col .sec-head { margin-bottom: 0; }
@media (max-width: 800px) { .two-col { grid-template-columns: minmax(0, 1fr); } }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4em;
  font: 600 .95rem var(--font-body); color: var(--ink); text-decoration: none;
  border-bottom: 1.5px solid var(--beacon); padding-bottom: .15em;
}
.link-arrow::after { content: "→"; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .85em 1.4em; border-radius: 999px;
  font: 600 .95rem/1 var(--font-body); text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent; background: none;
  transition: transform .15s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn:active { transform: translateY(1px); }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-primary { background: var(--beacon); color: #fff; }
.btn-primary:hover { background: var(--beacon-deep); }
.btn-ghost { border-color: var(--rule-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { border-color: rgba(255, 255, 255, .38); color: #fff; }
.btn-light:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.btn-sm { padding: .6em 1.1em; font-size: .86rem; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--rule-strong);
  background: var(--card); display: grid; place-items: center; font: 400 1.5rem/1 var(--font-display);
  transition: border-color .2s, background .2s;
}
.icon-btn:hover { border-color: var(--ink); background: #fff; }

/* ---------- header ---------- */
/* the banner and header stick together as one masthead */
.masthead { position: sticky; top: 0; z-index: 50; }
.site-header {
  position: relative; z-index: 1;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand .mark { width: 30px; height: 30px; flex: none; }
.brand__name { font: 500 1.2rem/1 var(--font-display); letter-spacing: -.01em; white-space: nowrap; }
.brand__sub { font: 500 .62rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-left: .4rem; padding-left: .8rem; border-left: 1px solid var(--rule-strong); white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 1.25rem; }
.nav a:not(.btn) { font: 500 .9rem var(--font-body); color: var(--ink-2); text-decoration: none; position: relative; padding: .4rem 0; white-space: nowrap; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--beacon); transform: scaleX(0); transform-origin: left; transition: transform .2s var(--ease); }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav .btn { margin-left: .5rem; }
.nav-toggle { display: none; align-items: center; gap: .6rem; background: none; border: 1px solid var(--rule-strong); border-radius: 999px; padding: .5rem .9rem .5rem .7rem; font: 600 .85rem var(--font-body); }
.nav-toggle__bars { display: grid; gap: 4px; width: 18px; }
.nav-toggle__bars i { display: block; height: 2px; background: var(--ink); transition: transform .25s var(--ease); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:first-child { transform: translateY(3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:last-child { transform: translateY(-3px) rotate(-45deg); }
.drawer { position: fixed; inset: 68px 0 0 0; background: var(--night); color: var(--night-text); z-index: 49; overflow: auto; }
.drawer__inner { padding-block: 2rem 3rem; display: grid; gap: 2rem; }
.drawer__list { list-style: none; padding: 0; margin: 0; display: grid; }
.drawer__list a { display: block; padding: .7rem 0; font: 400 2rem/1.1 var(--font-display); color: #fff; text-decoration: none; border-bottom: 1px solid var(--night-rule); }
.drawer__foot { font-size: .9rem; color: var(--night-muted); }
.drawer__foot a { color: var(--night-text); }
body.drawer-open { overflow: hidden; }
@media (max-width: 1320px) { .brand__sub { display: none; } }
@media (max-width: 1180px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- hero: Boston, connected ---------- */
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }
.hero3 { position: relative; min-height: min(760px, 78vh); display: grid; align-items: center; overflow: hidden; border-bottom: 1px solid var(--rule); background: var(--paper); }
.hero3__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; touch-action: pan-y; }
.hero3__inner { position: relative; display: grid; grid-template-columns: minmax(0, 580px) minmax(0, 1fr); align-items: center; gap: 2rem; padding-block: clamp(2.5rem, 5vw, 4rem) clamp(1.4rem, 3vw, 2.2rem); pointer-events: none; align-self: stretch; }
.hero3__text { display: grid; gap: 1.1rem; pointer-events: auto; }
.hero3__text h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1.02; letter-spacing: -.02em; max-width: 15ch; }
.hero3__lede { font-size: clamp(1.02rem, 1.4vw, 1.18rem); line-height: 1.55; color: var(--ink-2); max-width: 46ch; text-wrap: pretty; }
.js .hero3__text > * { animation: rise .5s var(--ease) both; }
.js .hero3__text > :nth-child(2) { animation-delay: .06s; }
.js .hero3__text > :nth-child(3) { animation-delay: .12s; }
.js .hero3__text > :nth-child(4) { animation-delay: .18s; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.hero3__subtitle {
  position: absolute; z-index: 1; left: var(--map-cx, 69%); top: var(--map-bottom, auto); transform: translateX(-50%);
  display: flex; align-items: center; gap: .8rem; margin: 0; white-space: nowrap; pointer-events: none;
  font: italic 400 clamp(1.05rem, 1.45vw, 1.28rem)/1.3 var(--font-display); color: var(--ink-2);
}
.hero3__subtitle::before, .hero3__subtitle::after { content: ""; width: 26px; height: 1px; background: var(--rule-strong); }
.hero3:not(.has-map) .hero3__subtitle { top: auto; bottom: 2.2rem; }
@media (max-width: 900px) {
  .hero3 { min-height: 0; display: block; }
  .hero3__canvas { position: relative; height: 54vh; min-height: 360px; }
  .hero3__inner { grid-template-columns: minmax(0, 1fr); padding-top: 1.6rem; gap: 1rem; }
  .hero3__subtitle { position: static; transform: none; justify-content: center; white-space: normal; padding: .1rem var(--gutter) 0; }
  }

/* ---------- featured project: a tray that slides out from under the hero ---------- */
.shelf { position: relative; overflow: hidden; padding-bottom: clamp(2rem, 4vw, 2.8rem); }
.tray {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .9rem 1.5rem;
  padding: 1.05rem clamp(1rem, 2.4vw, 1.6rem) 1.15rem;
  background: var(--card);
  border: 1px solid var(--rule); border-top: 0; border-bottom: 3px solid var(--rule);
  border-radius: 0 0 14px 14px;
  box-shadow: inset 0 16px 14px -16px rgba(23, 25, 28, .28), 0 22px 34px -30px rgba(23, 25, 28, .5);
}
.js .tray { animation: tray-out .85s var(--ease) .4s both; }
@keyframes tray-out { from { transform: translateY(-105%); } to { transform: none; } }
.tray__visual { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; background: var(--paper); border: 1px solid var(--rule); overflow: hidden; }
.tray__visual img { width: 100%; height: 100%; object-fit: cover; }
.tray__visual .glyph { width: 52px; height: 52px; color: var(--ink); }
.tray__text { display: grid; gap: .3rem; min-width: 0; }
.tray__eyebrow { flex-wrap: wrap; row-gap: .2rem; }
.tray__status { flex-basis: 100%; color: var(--muted); }
.tray__name { font-size: clamp(1.4rem, 2.2vw, 1.75rem); line-height: 1.1; }
.tray__name a { color: inherit; text-decoration: none; }
.tray__name a:hover, .tray__name a:focus-visible { text-decoration: underline; text-decoration-color: var(--beacon); text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.tray__line { font-size: .97rem; line-height: 1.45; color: var(--ink-2); max-width: 64ch; text-wrap: pretty; }
.tray__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.3rem; margin-top: .5rem; }
.mini-radar { width: 62px; height: 62px; overflow: visible; }
.mini-radar__grid { stroke: var(--rule-strong); stroke-width: 1; }
.mini-radar__grid line { stroke-opacity: .5; }
.mini-radar__sweep { transform-box: view-box; transform-origin: 50% 50%; animation: radar-sweep 6s linear infinite; }
.mini-radar__wedge { fill: var(--beacon); fill-opacity: .12; }
.mini-radar__edge { stroke: var(--beacon); stroke-opacity: .75; stroke-width: 1.2; }
.mini-radar__dot { fill: var(--ink); opacity: .45; transform-box: fill-box; transform-origin: center; animation: radar-ping 6s linear infinite; animation-delay: calc(var(--a) * 6s / 360 - 6s); }
.mini-radar__dot--hot { fill: var(--beacon); opacity: .9; }
.mini-radar__ring { fill: none; stroke: var(--beacon); stroke-width: 1; stroke-opacity: .7; }
.mini-radar__you { fill: var(--beacon); }
@keyframes radar-sweep { to { transform: rotate(360deg); } }
@keyframes radar-ping { 0% { opacity: 1; transform: scale(1.5); } 16% { opacity: .7; transform: scale(1); } 100% { opacity: .45; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .js .tray { animation: none; }
  .mini-radar__sweep { animation: none; opacity: .6; }
  .mini-radar__dot { animation: none; }
}
@media (max-width: 860px) {
  .tray { grid-template-columns: auto minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .tray { gap: .8rem 1rem; }
  .tray__visual { width: 58px; height: 58px; }
  .mini-radar { width: 48px; height: 48px; }
}

/* ---------- start here (work with us) ---------- */
.start { background: var(--shoal); border-block: 1px solid var(--shoal-2); }
.start__head { display: grid; gap: .9rem; max-width: 780px; margin-bottom: clamp(1.5rem, 3vw, 2.4rem); }
.start__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.start__card { display: grid; gap: .7rem; align-content: start; padding: 1.3rem 1.3rem 1.4rem; background: rgba(255, 255, 255, .58); border: 1px solid var(--shoal-2); text-decoration: none; color: inherit; transition: background .2s, border-color .2s, transform .2s var(--ease); }
a.start__card:hover { background: #fff; border-color: var(--ink); transform: translateY(-2px); }
.start__icon { display: block; margin-bottom: .2rem; }
.start__icon .glyph--wide { width: 84px; height: 56px; color: var(--ink); }
.start__t { font: 400 1.3rem/1.2 var(--font-display); text-wrap: pretty; }
.start__card .link-arrow { justify-self: start; margin-top: auto; font-size: .88rem; }
.start__card--note { position: relative; background: var(--card); border-color: var(--rule); border-top: 3px solid var(--beacon); background-image: radial-gradient(var(--rule) .8px, transparent 1.1px); background-size: 14px 14px; }
a.start__card--note:hover { background-color: #fff; }
.start__note-head { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.start__note-date { font: 500 .68rem/1.5 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.start__note-title { font: italic 400 1.35rem/1.2 var(--font-display); text-wrap: pretty; }
.start__note-summary { font-size: .88rem; line-height: 1.5; color: var(--ink-2); }
.start__note-meta { font: 500 .68rem/1.5 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 900px) { .start__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .start__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- beliefs + tradition ---------- */
.beliefs { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--rule-strong); max-width: 72ch; }
.belief { position: relative; display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: .6rem 1rem; padding-block: 1.5rem; border-bottom: 1px solid var(--rule); }
.belief::before { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--gold); transition: width 1s var(--ease); }
.belief.is-in::before, html.no-js .belief::before { width: 100%; }
.belief__n { font: 600 .9rem/2.1 var(--font-mono); color: var(--gold); }
.belief__body { display: grid; gap: .5rem; }
.belief__t { font-size: clamp(1.35rem, 2vw, 1.75rem); }
.belief__p { color: var(--ink-2); line-height: 1.6; max-width: 60ch; }
.tradition { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.tradition__text { display: grid; gap: 1rem; }
.tradition__constraint { font: 600 1.15rem/1.45 var(--font-body); max-width: 40ch; }
.tradition__line { font: italic 400 clamp(1.25rem, 2vw, 1.6rem)/1.35 var(--font-display); color: var(--gold); max-width: 32ch; }
.wheel { width: min(100%, 440px); margin-inline: auto; }
.wheel__spin { transform-origin: 210px 210px; animation: spin 120s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 800px) { .tradition { grid-template-columns: minmax(0, 1fr); } .wheel { width: min(100%, 320px); } }

/* ---------- inner page head ---------- */
.page-head {
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--rule);
  background-color: var(--paper);
  background-image: radial-gradient(var(--rule) .9px, transparent 1.2px);
  background-size: 22px 22px;
  background-position: center;
}
.page-head .wrap { display: grid; gap: 1rem; }
.page-head h1 { max-width: 18ch; }
.page-head .lede a { color: var(--beacon-deep); }
.page-head--slim { padding-block: 1.5rem; }
.page-head--post .wrap { max-width: 860px; margin-inline: auto; }
.page-head--post h1 { font-size: clamp(2.2rem, 4.2vw, 3.5rem); max-width: 22ch; }
.crumb { font: 500 .85rem var(--font-body); color: var(--ink-2); text-decoration: none; }
.crumb:hover { color: var(--ink); }
.post__meta { display: flex; flex-wrap: wrap; gap: .6em; font: 500 .78rem var(--font-mono); letter-spacing: .04em; color: var(--muted); }
.subnav { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .6rem; }
.subnav a { padding: .45em 1em; border: 1px solid var(--rule-strong); border-radius: 999px; font: 500 .84rem var(--font-body); text-decoration: none; color: var(--ink-2); background: var(--card); }
.subnav a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.subnav--page { margin-top: .4rem; }

/* ---------- vision ---------- */
.vision { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.vision__head { display: grid; gap: 1.2rem; position: sticky; top: calc(var(--header-h) + 1.3rem); }
@media (max-width: 800px) { .vision { grid-template-columns: minmax(0, 1fr); } .vision__head { position: static; } }
/* home: the short North Star text sits centered against the headline and quote */
.vision--compact { align-items: center; }
.vision--compact .vision__head { position: static; }
.pull { border-left: 3px solid var(--beacon); padding-left: 1.2rem; display: grid; gap: .6rem; }
.pull p { font: italic 400 clamp(1.35rem, 2.2vw, 1.8rem)/1.3 var(--font-display); text-wrap: pretty; }
.pull cite { font: 500 .74rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; font-style: normal; color: var(--muted); }
.pull--sm p { font-size: 1.2rem; }
.vision__closing { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.4; }
.values__closing { margin-top: clamp(2rem, 4vw, 3.5rem); font-family: var(--font-display); font-size: 1.35rem; line-height: 1.4; max-width: 60ch; }

/* ---------- prose ---------- */
.prose { max-width: 68ch; font-size: 1.08rem; line-height: 1.7; text-wrap: pretty; }
.prose--lg { font-size: 1.15rem; }
.prose > * + * { margin-top: 1.2em; }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); margin-top: 2.2em; }
.prose h3 { font-size: 1.35rem; margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose a { color: var(--beacon-deep); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose blockquote { border-left: 3px solid var(--beacon); padding-left: 1.2rem; font: italic 400 1.3rem/1.4 var(--font-display); }
.prose strong { font-weight: 600; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }
.prose img { border-radius: var(--radius); }

/* ---------- chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { display: inline-flex; align-items: center; font: 500 .74rem/1 var(--font-mono); letter-spacing: .03em; padding: .5em .75em; border: 1px solid var(--rule-strong); border-radius: 999px; color: var(--ink-2); background: var(--card); text-decoration: none; }
.chip--sm { font-size: .66rem; padding: .4em .6em; }
.chip--active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip--btn { cursor: pointer; }
.chips--filter .chip { cursor: pointer; }
.chips--filter .chip:hover:not(.chip--active) { border-color: var(--ink); }

/* ---------- values: posters on a wall ---------- */
.posters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.2rem, 2.6vw, 2.2rem); }
.poster-slot { perspective: 1600px; }
.poster {
  position: relative; width: 100%; aspect-ratio: 3 / 4; min-height: 380px;
  background: none; border: 0; padding: 0; text-align: left; color: inherit;
  transform-style: preserve-3d;
  transition: transform .75s var(--ease);
  transform: rotate(var(--tilt, 0deg));
}
.poster-slot:nth-child(6n+1), .values-preview li:nth-child(6n+1) { --tilt: -1.3deg; }
.poster-slot:nth-child(6n+2), .values-preview li:nth-child(6n+2) { --tilt: .9deg; }
.poster-slot:nth-child(6n+3), .values-preview li:nth-child(6n+3) { --tilt: -.5deg; }
.poster-slot:nth-child(6n+4), .values-preview li:nth-child(6n+4) { --tilt: 1.1deg; }
.poster-slot:nth-child(6n+5), .values-preview li:nth-child(6n+5) { --tilt: -.9deg; }
.poster-slot:nth-child(6n+6), .values-preview li:nth-child(6n+6) { --tilt: .6deg; }
.poster-slot.is-called .poster__front { box-shadow: 0 0 0 3px var(--beacon), 0 18px 40px -24px rgba(0, 0, 0, .45); transition: box-shadow .3s; }
.poster__face {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(1.1rem, 2.2vw, 1.6rem); border-radius: 3px;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 18px 40px -24px rgba(0, 0, 0, .45);
}
.poster__front { background: var(--card); border: 1px solid var(--rule); }
.poster__front::before { content: ""; position: absolute; top: -11px; left: 50%; width: 76px; height: 22px; transform: translateX(-50%) rotate(-2deg); background: rgba(228, 210, 156, .78); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.poster__back { background: var(--ink); color: var(--night-text); transform: rotateY(180deg); justify-content: flex-start; gap: 1rem; }
.poster.is-flipped { transform: rotate(0deg) rotateY(180deg); }
.poster__face { pointer-events: none; }
@media (hover: hover) { .poster-slot:hover .poster { transform: rotate(0deg) rotateY(180deg); } }
.poster__top { display: grid; gap: .6rem; }
.poster__index { font: 500 .62rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.poster__word { font: italic 400 clamp(2rem, 3.2vw, 2.9rem)/1 var(--font-display); letter-spacing: -.01em; }
.poster__word--sm { font-size: 1.25rem; font-style: normal; color: var(--lamp); }
.poster__bottom { display: grid; gap: .5rem; }
.poster__line { font: 400 clamp(1.35rem, 1.9vw, 1.8rem)/1.2 var(--font-display); text-wrap: balance; max-width: 12ch; }
.poster__statement { font-size: .84rem; line-height: 1.45; color: var(--ink-2); }
.poster__hint { justify-self: end; font: 500 .62rem var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--rule-strong); border-radius: 999px; padding: .35em .7em; margin-top: .25rem; }
.poster__dl { display: grid; gap: .25rem .8rem; }
.poster__dt { font: 500 .62rem/1.4 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--lamp); margin-top: .5rem; }
.poster__dd { font-size: .83rem; line-height: 1.45; color: var(--night-text); }
@media (prefers-reduced-motion: reduce) {
  .poster, .poster-slot:hover .poster, .poster.is-flipped { transform: none; }
  .poster__back { transform: none; opacity: 0; transition: opacity .2s; }
  .poster.is-flipped .poster__back, .poster-slot:hover .poster__back { opacity: 1; }
}
@media (max-width: 960px) { .posters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .posters { grid-template-columns: minmax(0, 1fr); max-width: 440px; } .poster { aspect-ratio: 1 / 1; min-height: 360px; } }

/* ---------- The Hope Standard ---------- */
.pillars { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-strong); }
.pillar { position: relative; display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: .5rem 1.2rem; padding: 1.6rem 0; border-bottom: 1px solid var(--rule); }
.pillar__n { font: 500 .95rem var(--font-mono); color: var(--beacon); padding-top: .45rem; }
.pillar__body { display: grid; gap: .4rem; }
.pillar__title { font-size: clamp(1.4rem, 2vw, 1.75rem); }
.pillar__statement { color: var(--ink-2); max-width: 60ch; }
.pillar__details { margin-top: .6rem; max-width: 66ch; }
.pillar__details summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: .5em; font: 600 .86rem var(--font-body); color: var(--ink); padding: .3rem 0; }
.pillar__details summary::-webkit-details-marker { display: none; }
.pillar__details summary::before { content: "+"; font: 500 1rem var(--font-mono); color: var(--beacon); width: 1.4em; height: 1.4em; display: grid; place-items: center; border: 1px solid var(--rule-strong); border-radius: 50%; }
.pillar__details[open] summary::before { content: "−"; }
.pillar__more { display: grid; gap: .6rem; padding-top: .6rem; font-size: .97rem; line-height: 1.55; color: var(--ink-2); }
.pillar__more b { font-weight: 600; color: var(--ink); }
.pillar::before { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--beacon); transition: width 1s var(--ease); }
.pillar.is-in::before, html.no-js .pillar::before { width: 100%; }
.pillar__n { transition: color .5s; }
.js .pillar:not(.is-in) .pillar__n { color: var(--muted); }
.standard__foot { margin-top: clamp(1.5rem, 3vw, 2.5rem); display: grid; gap: 1rem; }
.standard__closing { font: italic 400 clamp(1.2rem, 2vw, 1.55rem)/1.35 var(--font-display); max-width: 40ch; }
@media (max-width: 640px) { .pillar { grid-template-columns: 2.6rem minmax(0, 1fr); } }

.gates { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--shoal-2); border: 1px solid var(--shoal-2); }
.gate { background: var(--shoal); padding: 1.3rem 1.1rem; display: grid; gap: .4rem; align-content: start; }
.gate__n { font: 500 .8rem var(--font-mono); color: var(--beacon); }
.gate__t { font: 400 1.25rem/1.15 var(--font-display); }
.gate__s { font-size: .86rem; color: var(--ink-2); line-height: 1.45; }
@media (max-width: 900px) { .gates { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .gates { grid-template-columns: minmax(0, 1fr); } }

/* ---------- products ---------- */

.project-head { display: grid; gap: 1rem; }
.project-head--glyph { grid-template-columns: auto minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.project-head__glyph .glyph { width: clamp(90px, 12vw, 150px); height: auto; color: var(--ink); }
.project-head__text { display: grid; gap: 1rem; }
@media (max-width: 640px) { .project-head--glyph { grid-template-columns: minmax(0, 1fr); } }
.callout { background: var(--card); border: 1px solid var(--rule); border-top: 3px solid var(--beacon); padding: 1.3rem 1.4rem; display: grid; gap: .6rem; }
.callout p { font-size: .98rem; line-height: 1.55; }
.callout--funding { background: rgba(255, 255, 255, .55); }
.cap-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.cap-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cap { background: var(--card); border: 1px solid var(--rule); padding: 1.5rem; display: grid; gap: .6rem; align-content: start; }
.cap--plain { background: rgba(255, 255, 255, .5); }
.cap h3 { font-size: 1.35rem; }
.cap p { font-size: .97rem; line-height: 1.55; color: var(--ink-2); }
.plain-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; font-size: .93rem; color: var(--ink-2); }
.plain-list li { padding-left: 1.1em; position: relative; }
.plain-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--beacon); }
.plain-list a { color: var(--ink); }
@media (max-width: 900px) { .cap-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .cap-grid, .cap-grid--3 { grid-template-columns: minmax(0, 1fr); } }
.applied__list { display: grid; border-top: 1px solid var(--rule-strong); }
.applied__row { position: relative; display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 1rem; padding: 1.2rem 0; border-bottom: 1px solid var(--rule); align-items: start; }
.applied__row::before { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--beacon); transition: width 1s var(--ease); }
.applied__row.is-in::before, html.no-js .applied__row::before { width: 100%; }
.applied__pillar { font: 500 .78rem/1.6 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--beacon-deep); }
.applied__row p { color: var(--ink-2); max-width: 60ch; }
@media (max-width: 640px) { .applied__row { grid-template-columns: minmax(0, 1fr); } }

/* ---------- services teaser ---------- */
.services-teaser { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.services-teaser .sec-head { margin-bottom: 0; }
.services-teaser__side { display: grid; gap: 1.2rem; justify-items: start; }
@media (max-width: 800px) { .services-teaser { grid-template-columns: minmax(0, 1fr); } }
.hear { display: grid; border-top: 1px solid var(--rule-strong); }
.hear__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; padding-block: 1.5rem; border-bottom: 1px solid var(--rule); }
.hear__q { font: italic 400 clamp(1.2rem, 2vw, 1.55rem)/1.3 var(--font-display); }
.hear__a { display: grid; gap: .5rem; color: var(--ink-2); }
@media (max-width: 700px) { .hear__row { grid-template-columns: minmax(0, 1fr); gap: .8rem; } }
.steps { list-style: none; padding: 0; margin: 0 0 2.5rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; counter-reset: step; }
.step { display: grid; gap: .5rem; align-content: start; padding-top: 1rem; border-top: 2px solid var(--ink); }
.step__n { font: 500 .8rem var(--font-mono); color: var(--beacon); }
.step p { font-size: .97rem; color: var(--ink-2); }
.who { display: grid; gap: .8rem; }
@media (max-width: 700px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* ---------- proof ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.stat { background: var(--card); padding: 1.6rem 1.4rem; display: grid; gap: .5rem; align-content: start; }
.stat__n { font: 400 clamp(2.6rem, 4.6vw, 3.9rem)/1 var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat__l { font-size: .9rem; line-height: 1.45; color: var(--ink-2); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.badges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.6rem 1.4rem; }
.badge { display: grid; gap: .35rem; align-content: start; border-top: 2px solid var(--ink); padding-top: .9rem; }
.badge__org { font: 500 .7rem var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--beacon-deep); }
.badge__title { font: 400 1.25rem/1.15 var(--font-display); }
.badge__detail { font-size: .88rem; line-height: 1.5; color: var(--ink-2); }
@media (max-width: 900px) { .badges { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .badges { grid-template-columns: minmax(0, 1fr); } }

/* ---------- work tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 1.4rem; }
.tile { display: grid; grid-template-rows: auto 1fr; text-decoration: none; color: inherit; background: var(--card); border: 1px solid var(--rule); overflow: hidden; transition: border-color .2s, transform .25s var(--ease); }
.tile:hover { border-color: var(--ink); transform: translateY(-3px); }
.tile__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--shoal); display: grid; place-items: center; }
.tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.tile:hover .tile__media img { transform: scale(1.04); }
.tile__media--pattern { background-color: var(--shoal); background-image: radial-gradient(var(--shoal-2) 1px, transparent 1.4px); background-size: 14px 14px; padding: 1.5rem; }
.tile__glyph .glyph { width: 96px; height: 96px; color: var(--ink); }
.tile__client { font: italic 400 clamp(1.5rem, 2.4vw, 2rem)/1.05 var(--font-display); text-align: center; text-wrap: balance; color: var(--ink); }
.tile__body { padding: 1.2rem 1.3rem 1.4rem; display: grid; gap: .55rem; align-content: start; }
.tile__title { font: 400 1.3rem/1.15 var(--font-display); }
.tile__summary { font-size: .9rem; line-height: 1.5; color: var(--ink-2); }
.tile .link-arrow { justify-self: start; margin-top: .3rem; font-size: .88rem; }
.tile__status { font: 500 .68rem/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--beacon-deep); }
.tiles--gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .tiles--gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tiles--gallery { grid-template-columns: minmax(0, 1fr); } }
.notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.note-card { display: grid; grid-template-rows: auto 1fr auto; gap: 1rem; padding: 1.5rem; background: var(--card); border: 1px solid var(--rule); text-decoration: none; color: inherit; transition: border-color .2s, transform .25s var(--ease); }
.note-card:hover { border-color: var(--ink); transform: translateY(-3px); }
.note-card__body { display: grid; gap: .6rem; align-content: start; }
.note-card__title { font: 400 clamp(1.4rem, 2vw, 1.75rem)/1.15 var(--font-display); text-wrap: pretty; }
.note-card__summary { font-size: .93rem; line-height: 1.5; color: var(--ink-2); }
.note-card__meta { font: 500 .7rem/1.5 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 900px) { .notes { grid-template-columns: minmax(0, 1fr); } }
.news-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1rem 2rem; margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--rule); }
.news-strip a { text-decoration: none; color: inherit; display: grid; gap: .3rem; align-content: start; }
.news-strip a:hover .news-strip__t { text-decoration: underline; text-decoration-color: var(--beacon); text-underline-offset: 4px; }
.news-strip__t { font: 400 1.08rem/1.25 var(--font-display); }
.project__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.project__main { display: grid; gap: 2rem; }
.project__cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.project__summary { font: 400 1.3rem/1.45 var(--font-display); }
.project__side { display: grid; gap: 1.5rem; position: sticky; top: calc(var(--header-h) + 1.3rem); }
@media (max-width: 800px) { .project__grid { grid-template-columns: minmax(0, 1fr); } .project__side { position: static; } }

/* ---------- quotes ---------- */
.quote { background: var(--card); border: 1px solid var(--rule); padding: 1.6rem 1.6rem 1.5rem; display: grid; grid-template-rows: auto 1fr auto; gap: .9rem; }
.quote--side { flex: none; }
.quote__mark { font: 400 3.2rem/.5 var(--font-display); color: var(--beacon); height: 1.2rem; }
.quote__text { font: 400 1.12rem/1.5 var(--font-display); text-wrap: pretty; }
.quote__by { font-size: .86rem; line-height: 1.45; color: var(--ink-2); }
.quote__by b { display: block; font-weight: 600; color: var(--ink); }
.quotes__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.quotes__grid .quote { flex: none; }
.quote__org { display: block; font: 500 .7rem/1.6 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 960px) { .quotes__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .quotes__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- latest / lists ---------- */
.latest { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.latest .sec-head { margin-bottom: 1rem; }
.latest__press { margin-top: 1.5rem; }
.post-list { display: grid; }
.post-list--grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 0 2rem; }
.post-row { display: grid; gap: .4rem; align-content: start; padding-block: 1.2rem; border-top: 1px solid var(--rule); text-decoration: none; color: inherit; }
.post-row:hover .post-row__title { text-decoration: underline; text-decoration-color: var(--beacon); text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.post-row__meta { font: 500 .72rem/1.4 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.post-row__title { font: 400 1.45rem/1.15 var(--font-display); text-wrap: pretty; }
.post-row__title--sm { font-size: 1.15rem; }
.post-row__summary { display: block; font-size: .93rem; line-height: 1.5; color: var(--ink-2); }
.post-row--news { grid-template-columns: 10rem minmax(0, 1fr); gap: 1.5rem; align-items: baseline; }
.post-row--news > span:last-child { display: grid; gap: .4rem; }
@media (max-width: 800px) { .latest { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .post-row--news { grid-template-columns: minmax(0, 1fr); gap: .3rem; } }
.empty, .feed-note { color: var(--muted); font-size: .95rem; margin-top: 1.5rem; }
.feed-note a { color: var(--ink); }

/* ---------- post ---------- */
.post .section--tight { display: grid; gap: 2rem; }
.post .prose { margin-inline: auto; }
.post__cover { max-width: 68ch; margin-inline: auto; width: 100%; }
.post__link { max-width: 68ch; margin-inline: auto; width: 100%; }
.post__author { max-width: 68ch; margin-inline: auto; width: 100%; border-top: 1px solid var(--rule); padding-top: 1.5rem; }
.post__author-link { display: inline-flex; align-items: center; gap: 1rem; text-decoration: none; color: inherit; font-size: .95rem; line-height: 1.4; }
.post__author-link img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: top; }
.post__author-mark { width: 56px; height: 56px; border-radius: 50%; background: var(--paper-2); display: grid; place-items: center; }
.post__author-mark .mark { width: 30px; height: 30px; }
.post__author-link b { font-weight: 600; }

/* ---------- team ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 196px), 1fr)); gap: 1.8rem 1.4rem; }
.people--compact { grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); }
.person-card { display: grid; gap: .55rem; align-content: start; text-decoration: none; color: inherit; }
.person-card__photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--shoal); border: 1px solid var(--rule); }
.person-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; filter: saturate(.85); transition: transform .7s var(--ease), filter .4s; }
.person-card:hover .person-card__photo img { transform: scale(1.03); filter: saturate(1); }
.person-card__name { font: 400 1.45rem/1.1 var(--font-display); }
.person-card__short { font-size: .9rem; line-height: 1.5; color: var(--ink-2); }
.person__initials { display: grid; place-items: center; width: 100%; height: 100%; font: 400 3rem var(--font-display); color: var(--ink-2); }
.person { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.person__side { position: sticky; top: calc(var(--header-h) + 1.3rem); display: grid; gap: 1.4rem; }
.person__photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--shoal); border: 1px solid var(--rule); }
.person__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.person__contact { display: grid; gap: .3rem; font-size: .95rem; }
.person__contact a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rule-strong); }
.person__contact a:hover { text-decoration-color: var(--beacon); }
.person__creds { display: grid; gap: .6rem; }
.person__creds ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; font-size: .9rem; color: var(--ink-2); }
.person__creds li { padding-left: 1em; position: relative; }
.person__creds li::before { content: "✦"; position: absolute; left: 0; color: var(--beacon); font-size: .7em; top: .35em; }
.person__creds a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rule-strong); }
.person__main { display: grid; gap: 1.2rem; }
.person__short { font: italic 400 1.35rem/1.4 var(--font-display); color: var(--ink-2); }
.ask { border: 1px solid var(--rule); background: var(--card); padding: 1.3rem 1.4rem; display: grid; gap: .8rem; }
.ask__list { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; font: 400 1.15rem/1.35 var(--font-display); }
.ask__list li::before { content: "→ "; color: var(--beacon); }
@media (max-width: 800px) { .person { grid-template-columns: minmax(0, 1fr); } .person__side { position: static; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); align-items: start; } }
@media (max-width: 520px) { .person__side { grid-template-columns: minmax(0, 1fr); } }

.people-full { display: grid; }
.person-row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: clamp(1.5rem, 4vw, 4rem); padding-block: clamp(2rem, 4vw, 3.5rem); border-top: 1px solid var(--rule); align-items: start; }
.person-row:first-child { border-top: 0; }
.person-row__side { position: sticky; top: calc(var(--header-h) + 1.3rem); display: grid; gap: 1.2rem; }
.person-row__photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--shoal); border: 1px solid var(--rule); }
.person-row__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.person-row__main { display: grid; gap: 1.1rem; }
.person-row__name { font-size: clamp(2rem, 3.4vw, 2.8rem); }
.ask--inline { max-width: 60ch; }
@media (max-width: 800px) { .person-row { grid-template-columns: minmax(0, 1fr); } .person-row__side { position: static; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); } }
@media (max-width: 520px) { .person-row__side { grid-template-columns: minmax(0, 1fr); } }

/* ---------- project extras ---------- */
.stats--flush { margin-bottom: 0; }
.callout--facts .facts { grid-template-columns: 6.5rem minmax(0, 1fr); gap: .35rem .8rem; }
.facts--tight dd { margin: 0; }
.screens { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 1.4rem; }
.screen { margin: 0; display: grid; gap: .7rem; }
.screen img { width: 100%; border: 1px solid var(--rule); background: var(--card); }
.screen figcaption { font-size: .9rem; line-height: 1.5; color: var(--ink-2); }
@media (max-width: 700px) { .screens { grid-template-columns: minmax(0, 1fr); } }
.pipeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 1.4rem; counter-reset: p; }
.pipeline__step { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); gap: .8rem; padding-top: 1rem; border-top: 2px solid var(--ink); }
.pipeline__n { font: 500 .85rem/1.6 var(--font-mono); color: var(--beacon); }
.pipeline__t { font-size: 1.2rem; margin-bottom: .3rem; }
.pipeline__step p { font-size: .92rem; line-height: 1.5; color: var(--ink-2); }
.project__summary { font: 400 1.3rem/1.45 var(--font-display); }

/* ---------- sliders (projects, quotes) ---------- */
.slider { --per: 3; --gap: 1.4rem; --side: 0px; position: relative; }
.slider__track {
  list-style: none; display: flex; gap: var(--gap);
  margin: -6px; padding: 6px; scroll-padding: 6px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__slide { flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); min-width: 0; display: flex; scroll-snap-align: start; }
.slider__slide > * { flex: 1; min-width: 0; }
.slider__controls { display: flex; align-items: center; gap: .6rem; margin-top: 1.4rem; }
.slider__count { font: 500 .72rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums; margin-left: .4rem; white-space: nowrap; }
.slider__progress { position: relative; flex: 0 1 180px; min-width: 32px; height: 2px; margin-left: .4rem; background: var(--rule); overflow: hidden; }
.slider__progress i { position: absolute; inset: 0; background: var(--beacon); transform: scaleX(0); transform-origin: left center; }
.icon-btn { color: var(--ink); }
.icon-btn:disabled { opacity: .35; cursor: default; background: transparent; }
.slider__toggle .icon-play, .slider.is-paused .slider__toggle .icon-pause { display: none; }
.slider.is-paused .slider__toggle .icon-play { display: block; }
.slider--quotes .quote { height: 100%; }
@media (max-width: 960px) { .slider { --per: 2; } }
@media (max-width: 600px) { .slider { --per: 1.12; --gap: 1rem; } }

/* projects: the row runs to the section edges so the next cards peek in; padding keeps the cards on the content column */
.slider--bleed { --side: max(var(--gutter), calc((100% - var(--wrap)) / 2)); }
.slider--bleed .slider__track { margin-inline: 0; padding-inline: var(--side); scroll-padding-inline: var(--side); }
.slider__stage { position: relative; }
.slider__arrow {
  position: absolute; top: 34%; z-index: 2; transform: translateY(-50%);
  width: 58px; height: 58px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: var(--ink); color: #fff; cursor: pointer;
  box-shadow: 0 0 0 5px var(--paper-2), 0 14px 26px -12px rgba(23, 25, 28, .6);
  transition: opacity .25s, background .2s, transform .2s var(--ease);
}
.slider__arrow svg { width: 24px; height: 24px; }
.slider__arrow--prev { left: calc(var(--side) - 29px); }
.slider__arrow--next { right: calc(var(--side) - 29px); }
.slider__arrow:hover { background: var(--beacon); }
.slider__arrow--next:hover { transform: translateY(-50%) translateX(2px); }
.slider__arrow--prev:hover { transform: translateY(-50%) translateX(-2px); }
.slider__arrow:disabled { opacity: 0; pointer-events: none; }
.slider__meter { position: relative; flex: 0 1 260px; height: 3px; border-radius: 3px; background: var(--rule); overflow: hidden; }
.slider__meter i { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 3px; background: var(--ink); width: 27%; }
.slider__hint { font: 500 .72rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.slider.is-static .slider__arrow, .slider.is-static .slider__meter, .slider.is-static .slider__hint { display: none; }
@media (max-width: 700px) {
  .slider__arrow { width: 46px; height: 46px; top: 30%; }
  .slider__arrow svg { width: 20px; height: 20px; }
  .slider__arrow--prev { left: calc(var(--side) - 10px); }
  .slider__arrow--next { right: calc(var(--side) - 10px); }
}

/* ---------- values drawer (home) ---------- */
.values-preview { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(.8rem, 1.6vw, 1.4rem); }
.values-preview li { display: flex; }
.values-block.is-open .values-preview { display: none; }
@supports selector(:has(*)) { .values-block:has(.values-drawer[open]) .values-preview { display: none; } }
.mini-poster {
  position: relative; width: 100%; height: 100%; min-height: 150px; display: grid; align-content: space-between; gap: 1rem;
  padding: 1.35rem 1rem 1rem; text-align: left; color: inherit; cursor: pointer;
  background: var(--card); border: 1px solid var(--rule); border-radius: 3px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .03), 0 14px 26px -20px rgba(0, 0, 0, .5);
  transform: rotate(var(--tilt, 0deg)); transition: transform .3s var(--ease), box-shadow .3s;
}
.mini-poster::before { content: ""; position: absolute; top: -8px; left: 50%; width: 46px; height: 15px; transform: translateX(-50%) rotate(-2deg); background: rgba(228, 210, 156, .8); }
.mini-poster:hover, .mini-poster:focus-visible { transform: rotate(0deg) translateY(-4px); box-shadow: 0 1px 0 rgba(0, 0, 0, .03), 0 20px 30px -18px rgba(0, 0, 0, .5); }
.mini-poster__word { font: italic 400 clamp(1.2rem, 1.8vw, 1.55rem)/1.05 var(--font-display); letter-spacing: -.01em; }
.mini-poster__line { font: 400 .88rem/1.3 var(--font-display); color: var(--ink-2); text-wrap: balance; }
.values-drawer { margin-top: clamp(1.6rem, 3vw, 2.2rem); }
.values-drawer > summary { list-style: none; display: inline-flex; align-items: center; gap: .6rem; cursor: pointer; padding: .85em 1.35em; border: 1.5px solid var(--ink); border-radius: 999px; font: 600 .92rem/1 var(--font-body); transition: background .2s, color .2s; }
.values-drawer > summary::-webkit-details-marker { display: none; }
.values-drawer > summary:hover { background: var(--ink); color: #fff; }
.values-drawer .when-open, .values-drawer[open] .when-closed { display: none; }
.values-drawer[open] .when-open { display: inline; }
.values-drawer__chev { transition: transform .25s var(--ease); }
.values-drawer[open] .values-drawer__chev { transform: rotate(180deg); }
.values-drawer[open] > summary { margin-bottom: 1.2rem; }
.values-drawer .aside { margin-bottom: clamp(1.6rem, 3vw, 2.4rem); }
.values-drawer[open] .poster-slot { animation: rise .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
@media (max-width: 960px) { .values-preview { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .values-preview { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mini-poster { min-height: 130px; } }

/* ---------- lab notes: a page from the lab notebook ---------- */
.notebook-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.notebook-head { display: grid; gap: 1rem; position: sticky; top: calc(var(--header-h) + 2rem); }
.notebook-head__sub { color: var(--ink-2); max-width: 36ch; }
.notebook-head__links { display: flex; flex-wrap: wrap; gap: .7rem 1.4rem; margin-top: .4rem; }
.link-arrow--quiet { border-bottom-color: var(--rule-strong); }
.notebook {
  --line: 36px; --margin: 7.4rem; --margin-ink: rgba(196, 30, 92, .45);
  position: relative; padding: var(--line) clamp(1rem, 3vw, 2.2rem) calc(var(--line) * 1.5) 0;
  background-color: #FDFDFB;
  background-image:
    linear-gradient(to right, transparent calc(var(--margin) - 6px), var(--margin-ink) calc(var(--margin) - 6px), var(--margin-ink) calc(var(--margin) - 5px), transparent calc(var(--margin) - 5px), transparent calc(var(--margin) - 2px), var(--margin-ink) calc(var(--margin) - 2px), var(--margin-ink) var(--margin), transparent var(--margin)),
    repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--line) - 1px), var(--shoal-2) calc(var(--line) - 1px), var(--shoal-2) var(--line));
  background-position: 0 0, 0 -7px;
  border: 1px solid var(--rule); border-radius: 2px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .03), 0 26px 46px -32px rgba(23, 25, 28, .45);
}
.notebook__holes { position: absolute; left: 1.1rem; top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: space-around; pointer-events: none; }
.notebook__holes i { width: 15px; height: 15px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 2px 3px rgba(23, 25, 28, .28); }
.notebook__entries { list-style: none; margin: 0; padding: 0; }
.notebook__entries li + li { margin-top: var(--line); }
.nb-entry { display: grid; grid-template-columns: var(--margin) minmax(0, 1fr); text-decoration: none; color: inherit; }
.nb-entry__date { grid-row: 1 / span 2; padding-right: 1.1rem; text-align: right; font: 500 .72rem/var(--line) var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--beacon-deep); }
.nb-entry__title { grid-column: 2; padding-left: 1.1rem; font: italic 400 clamp(1.3rem, 2.1vw, 1.7rem)/var(--line) var(--font-display); text-wrap: pretty; }
.nb-entry__meta { grid-column: 2; padding-left: 1.1rem; font: 500 .7rem/var(--line) var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.nb-entry:hover .nb-entry__title, .nb-entry:focus-visible .nb-entry__title { text-decoration: underline; text-decoration-color: var(--beacon); text-decoration-thickness: 1.5px; text-underline-offset: 7px; }
@media (max-width: 860px) {
  .notebook-wrap { grid-template-columns: minmax(0, 1fr); }
  .notebook-head { position: static; }
}
@media (max-width: 560px) {
  .notebook { --margin: 4.6rem; }
  .notebook__holes { left: .6rem; }
  .notebook__holes i { width: 11px; height: 11px; }
  .nb-entry__date { font-size: .62rem; padding-right: .7rem; }
  .nb-entry__title { font-size: 1.2rem; padding-left: .8rem; }
  .nb-entry__meta { padding-left: .8rem; font-size: .62rem; }
}

/* ---------- proof: the numbers, after dark ---------- */
.proof {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  background-color: var(--night); color: var(--night-text);
  background-image: radial-gradient(var(--night-rule) 1px, transparent 1.4px); background-size: 22px 22px;
}
.proof__head { display: grid; gap: .9rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.proof__head h2 { color: #fff; }
.proof__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--night-rule); }
.proof__stat { display: grid; gap: .7rem; align-content: start; padding: 1.8rem 1.4rem 1.8rem 0; }
.proof__stat + .proof__stat { padding-left: 1.4rem; border-left: 1px solid var(--night-rule); }
.proof__n { font: 400 clamp(3rem, 6vw, 5.2rem)/.95 var(--font-display); letter-spacing: -.03em; color: #fff; font-variant-numeric: tabular-nums; }
.proof__n em { font-style: normal; color: var(--lamp); }
.proof__l { font-size: .88rem; line-height: 1.45; color: var(--night-muted); max-width: 26ch; }
@media (max-width: 860px) {
  .proof__stats,   .proof__stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .proof__stat:nth-child(n+3) { border-top: 1px solid var(--night-rule); }
}

/* ---------- announcement banner ---------- */
.banner { background: var(--ink); color: var(--night-text); font-size: .9rem; line-height: 1.4; }
.banner__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .35rem 1rem; min-height: 42px; padding-block: .45rem; text-align: center; }
.banner__pulse { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--lamp); animation: banner-pulse 2.4s ease-out infinite; }
@keyframes banner-pulse { 0% { box-shadow: 0 0 0 0 rgba(245, 213, 138, .55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(245, 213, 138, 0); } }
.banner__text { margin: 0; }
.banner__link { display: inline-flex; align-items: center; gap: .35rem; color: #fff; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--lamp); }
.banner__link:hover { color: var(--lamp); }
.banner :focus-visible { outline-color: var(--lamp); }
@media (prefers-reduced-motion: reduce) { .banner__pulse { animation: none; } }
@media (max-width: 640px) {
  .banner { font-size: .78rem; line-height: 1.35; }
  .banner__inner { display: block; min-height: 0; padding-block: .4rem; }
  .banner__pulse { display: inline-block; vertical-align: .08em; margin-right: .45rem; }
  .banner__text { display: inline; }
  .banner__link { margin-left: .4rem; }
}

/* ---------- tray: go-to-project icon + demo video ---------- */
.tray__go-icon { transition: transform .2s var(--ease); }
.btn:hover .tray__go-icon { transform: translate(2px, -2px); }
.tray__media { display: grid; gap: .45rem; justify-items: center; text-decoration: none; color: inherit; }
.tray__thumb { position: relative; display: block; width: clamp(180px, 16vw, 216px); aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--ink); border: 1px solid var(--rule); box-shadow: 0 14px 24px -18px rgba(23, 25, 28, .65); }
.tray__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
/* the play button sits on the empty band under the horizon, so the thumbnail's headline stays readable */
.tray__play { position: absolute; left: 50%; top: 81.5%; width: 15%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center; background: var(--beacon); color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .2), 0 6px 14px -6px rgba(0, 0, 0, .6); transition: transform .2s var(--ease); }
.tray__play svg { width: 45%; height: 45%; margin-left: 6%; }
.tray__media-cap { font: 500 .66rem/1.3 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.tray__media:hover .tray__thumb img { transform: scale(1.05); }
.tray__media:hover .tray__play { transform: translate(-50%, -50%) scale(1.08); }
.tray__media:hover .tray__media-cap { color: var(--beacon-deep); }
.tray__media:focus-visible { outline: none; }
.tray__media:focus-visible .tray__thumb { outline: 2px solid var(--beacon); outline-offset: 3px; }
/* narrow screens: the video card drops under the text column (kept after the base rules so it wins the cascade) */
@media (max-width: 860px) {
  .tray__media { grid-column: 2; justify-items: start; }
  .tray__thumb { width: min(100%, 240px); }
}

/* ---------- quotes: one at a time ---------- */
.slider--single { --per: 1; max-width: 900px; }
.slider--quotes .slider__arrow { top: 50%; }
.slider--single .quote { padding: clamp(1.6rem, 3.6vw, 2.6rem); gap: 1.1rem; }
.slider--single .quote__mark { font-size: 4.4rem; height: 1.7rem; }
.slider--single .quote__text { font-size: clamp(1.22rem, 2.1vw, 1.6rem); line-height: 1.45; }
.slider--single .quote__by { font-size: .92rem; }

/* ---------- proof: credentials as one compact row ---------- */
.proof__row { display: flex; flex-wrap: wrap; align-items: baseline; row-gap: .5rem; margin: clamp(1.4rem, 3vw, 2rem) 0 0; font: 500 .68rem/1.6 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--night-text); }
.proof__row .proof__org { white-space: nowrap; }
.proof__row .proof__org:not(:last-child)::after { content: "·"; margin: 0 .6rem; color: var(--lamp); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- press ---------- */
.press { display: grid; gap: 1.5rem; }
.press > .h3 { margin-top: 1.5rem; }
.press-list { display: grid; border-top: 1px solid var(--rule-strong); }
.press-item { display: grid; gap: .35rem; padding-block: 1.1rem; border-bottom: 1px solid var(--rule); text-decoration: none; color: inherit; }
a.press-item:hover .press-item__title { text-decoration: underline; text-decoration-color: var(--beacon); text-underline-offset: 4px; }
.press-item__title { font: 400 1.3rem/1.2 var(--font-display); }
.press-item__summary { font-size: .92rem; color: var(--ink-2); }
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 1.2rem; }
.video { position: relative; display: block; text-decoration: none; color: inherit; background: var(--night); overflow: hidden; border: 1px solid var(--rule); }
.video img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; opacity: .85; transition: opacity .3s, transform .7s var(--ease); }
.video:hover img { opacity: 1; transform: scale(1.03); }
.video__play { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); width: 60px; height: 60px; border-radius: 50%; background: var(--beacon); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6); }
.video__title { display: block; padding: .9rem 1rem 1rem; background: var(--card); font: 500 .92rem/1.35 var(--font-body); }
.video__note { display: block; font: 400 .74rem var(--font-mono); color: var(--muted); margin-top: .3rem; }
.kit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4rem); }
.kit__col { display: grid; gap: .8rem; align-content: start; font-size: .97rem; line-height: 1.6; }
.kit__col .btn { justify-self: start; }
.kit__copy { font: 400 1.2rem/1.45 var(--font-display); }
.facts { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: .5rem 1rem; font-size: .93rem; }
.facts dt { font: 500 .72rem/1.9 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.facts a { color: var(--ink); }
@media (max-width: 760px) { .kit { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .facts { grid-template-columns: minmax(0, 1fr); gap: .1rem 0; } .facts dd { margin: 0 0 .6rem; } }

/* ---------- stack layers ---------- */
.layers { display: grid; border-top: 1px solid var(--rule-strong); }
.layer { border-bottom: 1px solid var(--rule); }
.layer summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 15rem minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 1.3rem 0; }
.layer summary::-webkit-details-marker { display: none; }
.layer__title { font: 400 clamp(1.3rem, 2vw, 1.7rem)/1.15 var(--font-display); }
.layer__plus { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--rule-strong); position: relative; }
.layer__plus::before, .layer__plus::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--beacon); transform: translate(-50%, -50%); }
.layer__plus::before { width: 12px; height: 2px; }
.layer__plus::after { width: 2px; height: 12px; transition: transform .2s; }
.layer[open] .layer__plus::after { transform: translate(-50%, -50%) scaleY(0); }
.layer__body { display: grid; gap: 1rem; padding: 0 0 1.8rem 15rem; max-width: calc(15rem + 62ch); color: var(--ink-2); }
.layer__body ul { margin: 0; padding-left: 1.2em; display: grid; gap: .3rem; font-size: .95rem; }
@media (max-width: 760px) { .layer summary { grid-template-columns: minmax(0, 1fr) auto; } .layer__kicker { grid-column: 1 / -1; } .layer__body { padding-left: 0; } }

/* ---------- data path diagram ---------- */
.datapath { border: 1px solid var(--rule); background: var(--card); padding: clamp(1rem, 2.5vw, 2rem); display: grid; gap: 1.2rem; color: var(--ink); }
.datapath__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; }
.datapath__head > div { display: grid; gap: .4rem; }
.datapath__title { font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
.datapath__toggle { display: inline-flex; border: 1px solid var(--rule-strong); border-radius: 999px; padding: 3px; background: var(--paper-2); gap: 2px; }
.datapath__toggle button { border: 0; background: none; padding: .55em 1.1em; border-radius: 999px; font: 600 .86rem var(--font-body); color: var(--ink-2); transition: background .2s, color .2s; }
.datapath__toggle button[aria-selected="true"] { background: var(--ink); color: #fff; }
.datapath__scroller { overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.datapath__svg { width: 100%; height: auto; overflow: visible; display: block; }
.datapath__hint { display: none; font: 400 .74rem var(--font-mono); color: var(--muted); margin-top: -.6rem; }
.dp-typical, .dp-ours { transition: opacity .45s var(--ease); }
.datapath[data-mode="ours"] .dp-typical { opacity: 0; pointer-events: none; }
.datapath[data-mode="typical"] .dp-ours { opacity: 0; pointer-events: none; }
.dp-title { font: 500 15px var(--font-body); fill: var(--ink); }
.dp-title--sm { font-size: 13px; }
.dp-small { font: 400 12px var(--font-mono); fill: var(--ink-2); }
.dp-muted { fill: var(--muted); }
.dp-warn { fill: var(--beacon-deep); }
.dp-label { font: 500 11px var(--font-mono); letter-spacing: 2px; fill: var(--ink-2); }
.dp-label--beacon { fill: var(--beacon); }
.dp-packet { fill: var(--beacon); }
.dp-packet--out { fill: var(--ink-2); }
.dp-packet--min { fill: var(--beacon); opacity: .8; }
.datapath__caption { font-size: .95rem; line-height: 1.55; color: var(--ink-2); max-width: 66ch; }
@media (max-width: 760px) { .datapath__svg { min-width: 760px; } .datapath__hint { display: block; } .datapath__toggle { width: 100%; } .datapath__toggle button { flex: 1; } }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .35rem; }
.field label { font: 600 .86rem var(--font-body); }
.field input, .field select, .field textarea { width: 100%; padding: .8rem .9rem; border: 1px solid var(--rule-strong); border-radius: var(--radius); background: #fff; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--beacon-tint); }
.field textarea { resize: vertical; min-height: 120px; }
.form .btn { justify-self: start; }
.form__note { font-size: .86rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; }
.contact__side { display: grid; gap: 1.5rem; }
.contact__side .callout p { font-size: .95rem; }
.contact__side .callout a:not(.btn) { color: var(--ink); }
@media (max-width: 800px) { .contact { grid-template-columns: minmax(0, 1fr); } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--shoal); border-top: 1px solid var(--shoal-2); padding-block: clamp(3.5rem, 8vw, 7rem); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: auto -10% -40px -10%; height: 120px; background: repeating-linear-gradient(90deg, transparent 0 18px, var(--shoal-2) 18px 20px); opacity: .3; transform: skewY(-2deg); pointer-events: none; }
.cta-band__inner { display: grid; gap: 1.5rem; max-width: 760px; position: relative; }
.cta-band h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
.cta-band .hero__actions { margin-top: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--night); color: var(--night-text); padding-block: clamp(3rem, 6vw, 5rem) 1.6rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)); gap: 2.5rem 2rem; }
.footer-brand { display: grid; gap: 1rem; align-content: start; max-width: 380px; }
.brand--night { color: #fff; }
.footer-brand__line { font-size: .95rem; line-height: 1.55; color: var(--night-muted); }
.footer-brand__contact { font-size: .95rem; line-height: 1.6; }
.footer-brand__contact a { color: #fff; text-decoration: none; border-bottom: 1px solid var(--night-rule); }
.footer-col { display: grid; gap: .9rem; align-content: start; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.footer-col a { color: var(--night-text); text-decoration: none; font-size: .95rem; opacity: .88; }
.footer-col a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--lamp); }
.footer-certs { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid var(--night-rule); font: 500 .68rem var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--night-muted); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1.5rem; margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--night-rule); font-size: .8rem; color: var(--night-muted); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   Work with us (services): three ways in, then one band per service line.
   Kept last so these overrides of the shared card styles win the cascade.
   ========================================================================== */
.page-head--ways h1 { max-width: 20ch; }
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: clamp(1rem, 2.5vw, 1.8rem); }
.ways__card { grid-template-rows: auto 1fr; align-content: stretch; background: var(--card); border-color: var(--rule); }
a.ways__card:hover { background: #fff; }
.ways__text { display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; }
.ways__n { color: var(--beacon-deep); }
.ways__sum { font-size: .92rem; line-height: 1.5; color: var(--ink-2); }
.ways__card .link-arrow { margin-top: auto; }
.link-arrow--down::after { content: "↓"; }
.link-arrow--down:hover::after, a:hover > * > .link-arrow--down::after { transform: translateY(3px); }
@media (max-width: 860px) {
  .ways { grid-template-columns: minmax(0, 1fr); gap: .7rem; }
  .ways__card { grid-template-columns: 64px minmax(0, 1fr); grid-template-rows: auto; align-items: start; gap: 1rem; padding: 1rem 1.1rem 1.1rem; }
  .ways__card .start__icon { margin: .2rem 0 0; }
  .ways__card .start__icon .glyph--wide { width: 64px; height: 43px; }
  .ways__sum { display: none; }
}

.svc { border-top: 1px solid var(--rule); }
.svc__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5.5rem); align-items: start; }
.svc__head { display: grid; gap: 1rem; align-content: start; }
@media (min-width: 961px) and (min-height: 760px) { .svc__head { position: sticky; top: calc(var(--header-h) + 1.75rem); } }
.svc__mark { display: flex; align-items: center; gap: 1.1rem; margin-bottom: .2rem; }
.svc__num { font: 300 clamp(3.2rem, 6vw, 4.8rem)/.85 var(--font-display); color: var(--beacon); letter-spacing: -.03em; font-variant-numeric: lining-nums; }
.svc__icon .glyph--wide { display: block; width: 72px; height: 48px; color: var(--ink); }
.svc__head h2 { font-size: clamp(1.9rem, 3.1vw, 2.6rem); text-wrap: balance; }
.svc__head .lede { font-size: 1.05rem; }
.svc__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.4rem; margin-top: .5rem; }
.svc__note { margin-top: .3rem; padding: .1rem 0 .1rem .9rem; border-left: 2px solid var(--beacon); font-size: .9rem; line-height: 1.5; color: var(--ink-2); max-width: 46ch; }
.svc__note a { color: var(--beacon-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; white-space: nowrap; }
.svc__body { display: grid; gap: clamp(2.2rem, 4vw, 3.2rem); min-width: 0; }
.svc__prose { font-size: 1.05rem; }
.svc__h { font: 500 .72rem/1.4 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-bottom: .7rem; margin-bottom: 1rem; border-bottom: 1px solid var(--rule-strong); }
.svc__lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 2.4rem; }
.svc__lists--one { grid-template-columns: minmax(0, 1fr); }
.svc__lists--one .plain-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.4rem; }
.svc__list .plain-list { font-size: .97rem; line-height: 1.45; gap: .6rem; }

.svc-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 2.4rem; }
.svc-step { display: grid; grid-template-columns: 2.1rem minmax(0, 1fr); gap: .8rem; }
.svc-step__n { font: 500 .78rem/1.75 var(--font-mono); color: var(--beacon); }
.svc-step h4 { font: 600 1rem/1.4 var(--font-body); }
.svc-step p { margin-top: .25rem; font-size: .94rem; line-height: 1.55; color: var(--ink-2); }

.svc-people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: .7rem; }
.svc-person { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; justify-items: start; gap: .7rem; height: 100%; padding: 1rem 1rem 1.1rem; background: var(--card); border: 1px solid var(--rule); text-decoration: none; color: inherit; transition: border-color .2s, transform .2s var(--ease); }
.svc-person:hover { border-color: var(--ink); transform: translateY(-2px); }
.svc-person img, .svc-person__initials { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; object-position: 50% 22%; background: var(--shoal); }
.svc-person__initials { display: grid; place-items: center; font: 500 .9rem var(--font-mono); }
.svc-person b { display: block; font-weight: 600; font-size: .95rem; line-height: 1.3; }
.svc-person__role { display: block; margin-top: .15rem; font: 500 .64rem/1.45 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

.svc-examples { list-style: none; margin: 0; padding: 0; display: grid; }
.svc-example { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 1.1rem; align-items: center; padding-block: .85rem; border-bottom: 1px solid var(--rule); text-decoration: none; color: inherit; }
.svc-examples li:first-child .svc-example { padding-top: .2rem; }
.svc-example::after { content: "→"; font-weight: 600; transition: transform .2s var(--ease); }
.svc-example:hover::after { transform: translateX(4px); }
.svc-example__media { aspect-ratio: 16 / 10; overflow: hidden; display: grid; place-items: center; background: var(--shoal); border: 1px solid var(--rule); }
.svc-example__media img { width: 100%; height: 100%; object-fit: cover; }
.svc-example__client { padding: .3rem; font: italic 400 .85rem/1.1 var(--font-display); text-align: center; }
.svc-example__text { display: grid; gap: .25rem; }
.svc-example__kind { font: 500 .64rem/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.svc-example__t { font: 400 1.08rem/1.3 var(--font-display); text-wrap: pretty; transition: color .2s; }
.svc-example:hover .svc-example__t { color: var(--beacon-deep); }

.svc__products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.svc-product { display: grid; grid-template-rows: auto 1fr; background: var(--card); border: 1px solid var(--rule); overflow: hidden; }
.svc-product__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--night); }
.svc-product__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.svc-product:hover .svc-product__media img { transform: scale(1.03); }
.svc-product__body { display: flex; flex-direction: column; gap: .6rem; padding: 1.1rem 1.2rem 1.3rem; }
.svc-product__name { font-size: 1.45rem; }
.svc-product__name a { color: inherit; text-decoration: none; }
.svc-product__name a:hover { color: var(--beacon-deep); }
.svc-product__status { font: 500 .64rem/1.5 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--beacon-deep); }
.svc-product__summary { font-size: .93rem; line-height: 1.5; color: var(--ink-2); }
.svc-product__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1.1rem; margin-top: auto; padding-top: .5rem; }

.svc-models { display: grid; }
.svc-model { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: .4rem 1.6rem; padding-block: .9rem; border-bottom: 1px solid var(--rule); }
.svc-model:first-child { padding-top: .2rem; }
.svc-model h4 { font: 400 1.12rem/1.3 var(--font-display); }
.svc-model p { font-size: .93rem; line-height: 1.55; color: var(--ink-2); }

.who--after { margin-top: clamp(2rem, 4vw, 3rem); }

@media (max-width: 960px) {
  .svc__grid { grid-template-columns: minmax(0, 1fr); gap: 2.2rem; }
  .svc__head .lede { max-width: 60ch; }
}
@media (max-width: 700px) {
  .svc__lists, .svc__lists--one .plain-list, .svc-steps, .svc__products { grid-template-columns: minmax(0, 1fr); }
  .svc-model { grid-template-columns: minmax(0, 1fr); }
  .svc-example { grid-template-columns: 88px minmax(0, 1fr) auto; gap: .9rem; }
  .svc-person { grid-template-columns: 52px minmax(0, 1fr); align-items: center; justify-items: stretch; gap: .85rem; padding: .7rem .9rem .7rem .7rem; }
  .svc-person img, .svc-person__initials { width: 52px; height: 52px; }
}
/* the hero's second button is a true white pill, per the brief */
.hero3 .btn-ghost { background: #fff; }
