/* Quiet by default: one typeface, off-white ground, ink lines, a single accent at a time.
   The logo cube appears as a small section mark; the Africa map is the only large graphic. */
:root {
  color-scheme: light;
  --ground: #F3F4F3;
  --ink: #1E1F26;
  --muted: #5B5D68;
  --line: #1E1F26;
  --teal: #5ECDCB;
  --copper: #A86C48;
  --copper-ink: #8C5534;
  --wordmark: #46454F;
  --cube-right: #393A47;
  --on-ink: #FFFFFF;
  --panel: #1E1F26;
  --on-panel: #FFFFFF;
  --panel-muted: #D5D7DB;
  --hover-muted: #D5D7DB;
  --hair: #CFD1D2;
  --tile: #E8EAE9;
  --tile-hover: #D9EFEE;
  --field: #FFFFFF;
  --body: #33353E;
  --map-right: #393A47;
  --map-line: #1E1F26;
  --show-moon: block;
  --show-sun: none;
  --font: "Open Sans", "Segoe UI", Arial, sans-serif;
  --gl: max(20px, env(safe-area-inset-left, 0px));
  --gr: max(20px, env(safe-area-inset-right, 0px));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@view-transition { navigation: auto; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .ticker div { animation: none !important; } }

/* Type */
h1, h2, h3, p { margin: 0; }
.big { font-weight: 800; letter-spacing: -.02em; line-height: 1.12; text-wrap: balance; }
.big i { font-style: normal; font-weight: 400; }
h1.big { font-size: clamp(2.4rem, 5vw, 4rem); }
h2.big { font-size: clamp(1.9rem, 3.3vw, 2.7rem); }
.tag, .caps { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; line-height: 1.5; }
.lead { color: var(--muted); max-width: 36em; }

/* Layout */
.frame { width: 100%; max-width: 1000px; margin-inline: auto; }
.sheet { padding-left: var(--gl); padding-right: var(--gr); padding-block: 4.5rem; }
.sheet > .frame { display: grid; gap: 2.4rem; }
.head, .builds-head { display: grid; gap: .7rem; justify-items: center; text-align: center; max-width: 680px; margin-inline: auto; }
.head p, .builds-head p { color: var(--muted); }
.mark { width: 26px; height: 30px; display: block; }
.body { display: grid; gap: 1.5rem; justify-items: center; text-align: center; min-width: 0; }
.body > p { max-width: 38em; }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; }
.logo svg { width: 22px; height: 26px; flex: none; }
.wordmark { font-family: var(--font); font-size: 1.05rem; letter-spacing: -.01em; color: var(--wordmark); line-height: 1; }
.wordmark b { font-weight: 800; } .wordmark span { font-weight: 400; }
.cube-t { fill: #5ECDCB; } .cube-l { fill: #A86C48; } .cube-r { fill: var(--cube-right); }

/* Nav */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: var(--ground); padding-left: var(--gl); padding-right: var(--gr); }
.nav-bar { max-width: 1000px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .85rem; }
.nav-links { display: flex; gap: 1.5rem; font-size: .84rem; font-weight: 600; }
.nav-links a { text-decoration: none; } .nav-links a:hover, .nav-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }
.nav-right { display: flex; align-items: center; gap: .5rem; }
.nav-cta, .menu-btn { font: 600 .84rem var(--font); border: 1.5px solid var(--line); background: none; color: var(--ink); padding: .45em 1em; text-decoration: none; cursor: pointer; }
.nav-cta:hover { background: var(--ink); color: var(--on-ink); }
.menu-btn { display: none; }
.menu { max-width: 1000px; margin: 0 auto; display: grid; padding-bottom: .8rem; }
.menu a { font-weight: 700; font-size: 1.1rem; text-decoration: none; padding-block: .55rem; border-top: 1px solid var(--hair); }
@media (max-width: 860px) { .nav-links { display: none; } .menu-btn { display: block; } }
@media (min-width: 861px) { .menu { display: none; } }

/* Buttons */
.slab { display: inline-block; font-weight: 600; font-size: .92rem; line-height: 1; text-decoration: none; padding: .95em 1.4em; background: var(--ink); color: var(--on-ink); border: 1.5px solid var(--ink); transition: background-color .15s ease, color .15s ease; }
.slab:hover { background: transparent; color: var(--ink); }
.slab.ghost, .slab.t.ghost { background: transparent; color: var(--ink); }
.slab.ghost:hover { background: var(--ink); color: var(--on-ink); }
.pair { display: flex; flex-wrap: wrap; }
.pair .slab + .slab { border-left: 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: center; }
.more, .line-link { font-weight: 600; font-size: .92rem; text-underline-offset: 4px; }

/* Home hero */
.hero { padding-left: var(--gl); padding-right: var(--gr); padding-block: 2rem 3.5rem; }
.hero .frame { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.hero-copy { display: grid; gap: 1.4rem; justify-items: start; min-width: 0; }
.hero h1 { text-transform: uppercase; font-size: clamp(2.2rem, 4.5vw, 3.5rem); line-height: 1.1; }
.glyph { display: inline-block; width: .72em; height: .84em; vertical-align: -.06em; margin-inline: .04em; }
.strip { display: flex; flex-wrap: wrap; gap: .3rem .8rem; align-items: center; font-weight: 700; font-size: .84rem; letter-spacing: .04em; text-transform: uppercase; }
.strip svg { width: 11px; height: 13px; }
.africa { width: 100%; max-width: 480px; justify-self: end; min-width: 0; }
#field { display: block; width: 100%; aspect-ratio: 1; }

/* Ticker */
.ticker-wrap { overflow: hidden; padding-block: 1.6rem; }
.ticker { background: var(--panel); color: var(--on-panel); transform: rotate(-2deg) scale(1.04); overflow: hidden; }
.ticker div { display: flex; width: max-content; animation: run 60s linear infinite; }
.ticker span { display: inline-flex; align-items: center; gap: 1.6rem; padding: .85rem 0 .85rem 1.6rem; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.ticker span::after { content: ""; width: 7px; height: 7px; background: var(--teal); transform: rotate(45deg); }
@keyframes run { to { transform: translateX(-50%); } }

/* Intro */
.intro { display: grid; grid-template-columns: .85fr 1.15fr; gap: 3rem; align-items: start; max-width: 840px; margin-inline: auto; }
.intro > div { display: grid; gap: 1rem; min-width: 0; }
.intro .tag { color: var(--copper-ink); }
.intro .say { font-size: 1.2rem; font-weight: 700; line-height: 1.4; }
.intro p + p { color: var(--muted); }
.mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: .4rem; }
.mini b { display: block; font-weight: 700; font-size: .95rem; line-height: 1.3; }
.mini .caps { color: var(--copper-ink); font-size: .64rem; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1.5px solid var(--line); max-width: 840px; margin-inline: auto; width: 100%; }
.stats > div { padding: 1.5rem 1rem; text-align: center; display: grid; gap: .3rem; }
.stats > div + div { border-left: 1.5px solid var(--line); }
.stats b { font-size: clamp(1.4rem, 2.8vw, 2.1rem); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.stats .on { background: var(--panel); color: var(--on-panel); }

/* Features: one photo, one idea */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; max-width: 840px; margin-inline: auto; width: 100%; }
.feature + .feature { margin-top: 1.6rem; }
.feature:nth-of-type(even) .pic { order: 2; }
.feature > div { display: grid; gap: .9rem; justify-items: start; min-width: 0; }
.feature .pic { display: block; }
.feature img, .plate { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.feature img, .orb img { filter: grayscale(1) contrast(1.04); }
.chip { background: var(--copper); color: #FFF; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .35em .7em; }
.feature h3 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.feature p { color: var(--muted); }
.plate { background: var(--panel); color: var(--on-panel); display: grid; align-content: center; justify-items: center; gap: .3rem; text-align: center; padding: 1rem; }
.plate b { font-size: clamp(2.6rem, 6vw, 4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.plate span { color: var(--teal); font-size: clamp(1.1rem, 2.4vw, 1.5rem); font-weight: 400; }

/* Boxed rows */
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; width: 100%; max-width: 840px; margin-inline: auto; text-align: left; }
.row { display: grid; grid-template-columns: 1fr auto; gap: .3rem 2rem; align-items: center; padding: 1.05rem 1.25rem; border: 1.5px solid var(--line); text-decoration: none; color: inherit; transition: background-color .15s ease, color .15s ease; }
a.row:hover { background: var(--ink); color: var(--on-ink); }
.row > span { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-align: right; }
.row h3 { font-size: 1.08rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
.row small { display: block; font-size: .9rem; font-weight: 400; letter-spacing: 0; margin-top: .15rem; line-height: 1.45; opacity: .78; max-width: 38em; }

/* Steps: real sequences only */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; width: 100%; max-width: 840px; text-align: left; }
.steps li { display: grid; grid-template-columns: 2.3rem 1fr; gap: 1.1rem; padding: 1.05rem 1.25rem; border: 1.5px solid var(--line); align-items: start; }
.steps .n { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; background: var(--copper); color: #FFF; font-size: .85rem; font-weight: 700; }
.steps h3 { font-size: 1.08rem; font-weight: 700; line-height: 1.3; margin-bottom: .15rem; letter-spacing: -.01em; }
.steps p { font-size: .95rem; color: var(--muted); }

/* Definitions */
.defs { margin: 0; width: 100%; max-width: 840px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .7rem; text-align: left; }
.defs:has(> div:nth-child(4)) { grid-template-columns: repeat(2, 1fr); }
.defs > div { border: 1.5px solid var(--line); padding: 1.25rem; }
.defs dt { font-weight: 700; font-size: 1.08rem; margin-bottom: .25rem; line-height: 1.3; letter-spacing: -.01em; }
.defs dd { margin: 0; font-size: .95rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.chips li { font-size: .78rem; font-weight: 600; border: 1.5px solid var(--line); padding: .3em .7em; }

/* People */
.community .frame { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; max-width: 840px; }
.community .copy { display: grid; gap: 1rem; min-width: 0; }
.community .copy p { color: var(--muted); }
.who { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1.5px solid var(--line); }
.who li { display: grid; grid-template-columns: 6.5rem 1fr; gap: .8rem; align-items: baseline; padding-block: .6rem; border-bottom: 1.5px solid var(--line); font-size: .95rem; }
.who b { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--copper-ink); }
.orb { position: relative; margin: 0; width: min(100%, 360px); aspect-ratio: 1; justify-self: center; }
.orb svg { position: absolute; width: 74%; height: 86%; left: -14%; top: -8%; }
.orb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 12%; border-radius: 50%; border: 8px solid var(--ground); }

/* Inner page opener */
.pagehero { padding-left: var(--gl); padding-right: var(--gr); padding-block: 3.5rem 2rem; }
.pagehero .frame { display: grid; gap: 1rem; justify-items: center; text-align: center; max-width: 760px; }
.pagehero p { color: var(--muted); max-width: 34em; }
.crumb { display: flex; flex-wrap: wrap; justify-content: center; gap: .1rem .45rem; font-size: .74rem; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.crumb a { text-underline-offset: 3px; }
.crumb span::before { content: "/ "; }

/* Closing */
.final > .frame { background: var(--teal); color: #14282B; padding: clamp(2.6rem, 7vw, 4.6rem) 1.5rem; justify-items: center; text-align: center; max-width: 840px; gap: 1.1rem; }
.final h2.big { font-size: clamp(2.4rem, 6vw, 4.2rem); }
.final p { max-width: 32em; }
.next { display: block; text-align: center; text-decoration: none; padding: 3rem var(--gr) 3rem var(--gl); border-top: 1.5px solid var(--line); margin-top: 2rem; transition: background-color .15s ease, color .15s ease; }
.next:hover { background: var(--ink); color: var(--on-ink); }
.inner-next { display: grid; gap: .3rem; justify-items: center; }
.next b { font-size: clamp(1.9rem, 4.4vw, 3rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.pager { display: grid; grid-template-columns: 1fr 1fr; max-width: 840px; margin: 1rem auto 0; width: calc(100% - var(--gl) - var(--gr)); border: 1.5px solid var(--line); }
.pager a { display: grid; gap: .2rem; padding: 1.1rem 1.25rem; text-decoration: none; min-width: 0; }
.pager a + a { border-left: 1.5px solid var(--line); text-align: right; }
.pager a:hover { background: var(--ink); color: var(--on-ink); }
.pager b { font-weight: 700; font-size: 1rem; line-height: 1.3; }

/* Footer */
footer { padding-left: var(--gl); padding-right: var(--gr); padding-block: 2.5rem .6rem; margin-top: 2rem; overflow: hidden; }
.sitemap, .foot-links, .ncs-mark { max-width: 1000px; margin-inline: auto; }
.sitemap { display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: 1.4rem; padding-block: 2rem; border-top: 1.5px solid var(--line); }
.sitemap div { display: grid; gap: .25rem; align-content: start; }
.sitemap b { font-size: .9rem; font-weight: 700; }
.sitemap a { font-size: .86rem; text-decoration: none; color: var(--muted); }
.sitemap b a { font-size: inherit; color: var(--ink); }
.sitemap a:hover { text-decoration: underline; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; font-size: .78rem; color: var(--muted); padding-bottom: 1rem; }
.ncs-mark { font-weight: 800; color: var(--wordmark); font-size: clamp(6rem, 25vw, 21rem); line-height: .8; letter-spacing: -.04em; text-align: center; padding-block: .06em; user-select: none; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .sheet { padding-block: 3.2rem; }
  .hero .frame, .intro, .feature, .community .frame { grid-template-columns: 1fr; gap: 1.8rem; }
  .hero { padding-bottom: 1.5rem; }
  .africa { justify-self: center; max-width: 340px; }
  .feature:nth-of-type(even) .pic { order: 0; }
  .feature + .feature { margin-top: .8rem; }
  .mini { grid-template-columns: 1fr 1fr; }
  .defs:has(> div:nth-child(4)) { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stats > div + div { border-left: 0; border-top: 1.5px solid var(--line); }
  .row { grid-template-columns: 1fr; }
  .row > span { text-align: left; }
  .orb { width: min(82%, 300px); }
  .pager { grid-template-columns: 1fr; }
  .pager a + a { border-left: 0; border-top: 1.5px solid var(--line); text-align: left; }
}

/* ---------- Headline voice: condensed Open Sans in the logo's heavy/light contrast, with mono labels ---------- */
:root { --mono: "DM Mono", ui-monospace, Consolas, monospace; }
.big, .feature h3, .row h3, .steps h3, .defs dt, .stats b, .plate b, .next b, .pager b, .menu a, .slab, .nav-cta {
  font-family: var(--font); font-stretch: 75%; font-weight: 800; text-transform: uppercase; letter-spacing: -.012em;
}
.big { line-height: .95; }
.big i { font-weight: 300; }
.wordmark, .ncs-mark { font-stretch: 100%; }
.tag, .caps, .chip, .crumb, .strip, .row > span, .who b, .chips li, .foot-links, .more, .line-link, .nav-links, .menu-btn { font-family: var(--mono); font-weight: 500; }
.nav-links { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.slab { font-size: 1.15rem; padding: .85em 1.25em; letter-spacing: 0; }
.nav-cta { font-size: 1rem; }
.more, .line-link { font-size: .84rem; }
h1.big { font-size: clamp(3rem, 6.6vw, 5.8rem); }
h2.big { font-size: clamp(2.5rem, 5vw, 4.4rem); }
.hero h1 { font-size: clamp(3.4rem, 8vw, 7.2rem); line-height: .92; }
.feature h3 { font-size: clamp(2rem, 3.6vw, 3.2rem); line-height: .98; }
.row h3, .steps h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.05; letter-spacing: -.005em; }
.row small { font-family: var(--font); font-stretch: 100%; text-transform: none; }
.defs dt { font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.05; }
.stats b { font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1; letter-spacing: -.015em; }
.plate b { font-size: clamp(3.4rem, 8vw, 6rem); }
.next b { font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1; }
.pager b { font-size: 1.4rem; line-height: 1.05; }
.menu a { font-size: 1.6rem; line-height: 1.1; }
.final h2.big { font-size: clamp(3.2rem, 9vw, 7rem); }
.ticker span { font-family: var(--font); font-stretch: 75%; font-weight: 800; font-size: clamp(1.1rem, 1.8vw, 1.5rem); letter-spacing: .01em; padding-block: .6rem; }

/* ---------- Tighter: fuller column, less air between things ---------- */
.frame, .nav-bar, .menu, .sitemap, .foot-links, .ncs-mark { max-width: 1180px; }
.intro, .stats, .feature, .rows, .steps, .defs, .community .frame, .pager, .final > .frame { max-width: none; }
.pager { max-width: 1180px; }
.sheet { padding-block: 2.5rem; }
.sheet > .frame { gap: 1.6rem; }
.hero { padding-block: .5rem 1rem; }
.hero .frame { grid-template-columns: 1.05fr 1fr; gap: 1rem; }
.africa { max-width: 600px; }
.ticker-wrap { padding-block: 1.1rem; }
.intro { gap: 2rem; grid-template-columns: 1fr 1fr; }
.intro .say { font-size: 1.35rem; }
.feature { gap: 2rem; }
.feature + .feature { margin-top: .4rem; }
.feature img, .plate { aspect-ratio: 16 / 10; }
.feature:nth-of-type(even) > div { padding-left: 0; }
.head, .builds-head { max-width: 860px; gap: .5rem; }
.body { gap: 1.2rem; }
.community .frame { gap: 2rem; }
.orb { width: min(100%, 440px); }
.pagehero { padding-block: 1.6rem .6rem; }
.pagehero .frame { max-width: 960px; gap: .8rem; }
.next { padding-block: 2rem; margin-top: 1rem; }
.pager { margin-top: .5rem; }
.final > .frame { padding-block: clamp(2rem, 5vw, 3.4rem); }
footer { margin-top: 1rem; padding-block: 1rem .6rem; }
.sitemap { padding-block: 1.4rem; gap: 1rem; }
.ncs-mark { font-size: clamp(6rem, 29vw, 27rem); }

@media (max-width: 760px) {
  .hero .frame, .intro, .feature, .community .frame { grid-template-columns: 1fr; gap: 1.2rem; }
  .hero h1 { font-size: 17vw; }
  h1.big { font-size: 14vw; }
  h2.big { font-size: 12vw; }
  .sheet { padding-block: 1.8rem; }
  .africa { max-width: 100%; }
}

/* Keep the people section and closing box on the same column as everything else */
.community .frame, .final > .frame { max-width: 1180px; }

/* Countdown to the next cohort */
.countdown { display: grid; gap: .5rem; width: 100%; justify-items: center; }
.countdown .tag { color: var(--copper-ink); }
.clock { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; max-width: 620px; border: 1.5px solid var(--line); }
.clock > div { display: grid; gap: .15rem; justify-items: center; padding: .7rem .3rem; min-width: 0; }
.clock > div + div { border-left: 1.5px solid var(--line); }
.clock > div:first-child { background: var(--panel); color: var(--on-panel); }
.clock b { font-family: var(--font); font-stretch: 75%; font-weight: 800; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1; font-variant-numeric: tabular-nums; }
.clock .caps { font-family: var(--mono); font-weight: 500; font-size: .66rem; }
.feature .countdown { justify-items: start; }
.feature .clock b { font-size: clamp(1.7rem, 3vw, 2.5rem); }
.pagehero .countdown { margin-block: .4rem .3rem; }

/* Merch shop */
.tile { display: block; background: var(--tile); aspect-ratio: 1; overflow: hidden; }
.mock { display: block; width: 100%; height: 100%; }
.shop-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem .9rem; }
.product { display: grid; gap: .25rem; text-decoration: none; color: inherit; min-width: 0; }
.product .tile { margin-bottom: .4rem; transition: background-color .15s ease; }
.product:hover .tile { background: var(--tile-hover); }
.pname { font-family: var(--font); font-stretch: 75%; font-weight: 800; font-size: 1.25rem; line-height: 1.1; text-transform: uppercase; }
.pprice { font-family: var(--mono); font-weight: 500; font-size: .88rem; color: var(--muted); }
.cartlink { white-space: nowrap; }
.buy > .frame { gap: 1rem; }
.buy .crumb { justify-content: flex-start; }
.buy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.buy-grid > * { min-width: 0; }
.buy-form { display: grid; gap: .95rem; justify-items: start; }
.buy-form h1.big { font-size: clamp(2.6rem, 5vw, 4.4rem); }
.big-price { font-size: 1.25rem; color: var(--ink); margin: 0; }
.opt { display: grid; gap: .35rem; border: 0; margin: 0; padding: 0; min-width: 0; width: 100%; }
.opt legend { padding: 0; margin-bottom: .35rem; }
.swatches { display: flex; flex-wrap: wrap; gap: .5rem; }
.swatch { display: inline-flex; align-items: center; gap: .45rem; border: 1.5px solid var(--line); padding: .35rem .7rem .35rem .45rem; font-size: .88rem; font-weight: 600; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.swatch i { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); }
.swatch:has(input:checked) { background: var(--ink); color: var(--on-ink); }
.swatch:has(input:checked) i { box-shadow: 0 0 0 1.5px var(--on-ink); }
.swatch:has(input:focus-visible) { outline: 2px solid var(--copper); outline-offset: 2px; }
.opt select, .opt input, .opt textarea, #orderText { font: 400 1rem var(--font); color: var(--ink); background: var(--field); border: 1.5px solid var(--line); border-radius: 0; padding: .6rem .7rem; width: 100%; }
.buy-form .opt select, .buy-form .opt input { max-width: 180px; }
.buy-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
button.slab { cursor: pointer; }
button.slab:disabled { opacity: .4; cursor: not-allowed; }
.added { font-weight: 600; color: var(--copper-ink); margin: 0; }
.cart-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 2rem; align-items: start; }
.cart-grid > * { min-width: 0; }
.cart-lines { display: grid; gap: .7rem; }
.cart-line { display: grid; grid-template-columns: 1fr auto auto; gap: .5rem 1rem; align-items: center; border: 1.5px solid var(--line); padding: .9rem 1rem; }
.cart-line a { font-family: var(--font); font-stretch: 75%; font-weight: 800; font-size: 1.25rem; text-transform: uppercase; text-decoration: none; line-height: 1.1; display: block; }
.cart-line small { color: var(--muted); }
.cart-line b { font-family: var(--mono); font-weight: 500; font-size: .92rem; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); }
.stepper button { width: 2rem; height: 2rem; border: 0; background: none; font-size: 1rem; cursor: pointer; color: var(--ink); }
.stepper button:hover { background: var(--ink); color: var(--on-ink); }
.stepper span { min-width: 1.7rem; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.rm { grid-column: 1 / -1; justify-self: start; background: none; border: 0; padding: 0; font: 500 .76rem var(--mono); text-decoration: underline; cursor: pointer; color: var(--muted); }
.cart-empty { display: grid; gap: 1rem; justify-items: center; text-align: center; border: 1.5px solid var(--line); padding: 2.4rem 1rem; }
.cart-empty p { margin: 0; }
.cart-form { display: grid; gap: .85rem; border: 1.5px solid var(--line); padding: 1.2rem; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; }
.cart-total b { font-family: var(--font); font-stretch: 75%; font-weight: 800; font-size: 2.2rem; line-height: 1; }
.note { font-size: .88rem; color: var(--muted); margin: 0; }
.order-result { display: grid; gap: .7rem; border-top: 1.5px solid var(--line); padding-top: .85rem; }
.order-result p { margin: 0; font-weight: 600; }
#orderText { font-family: var(--mono); font-size: .8rem; }
@media (max-width: 860px) { .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cart-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .buy-grid { grid-template-columns: 1fr; gap: 1.2rem; } }

/* Blog */
.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.post { display: grid; gap: .55rem; align-content: start; justify-items: start; padding: 1.3rem; border: 1.5px solid var(--line); text-decoration: none; color: inherit; transition: background-color .15s ease, color .15s ease; min-width: 0; }
.post h3 { font-family: var(--font); font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.02; letter-spacing: -.008em; }
.post p { color: var(--muted); font-size: .96rem; margin: 0; }
.post:hover { background: var(--ink); color: var(--on-ink); }
.post:hover p, .post:hover .post-meta { color: var(--hover-muted); }
.post-meta { font-family: var(--mono); font-weight: 500; font-size: .76rem; color: var(--muted); }
.post-page .pagehero h1.big { font-size: clamp(2.5rem, 5.2vw, 4.6rem); }
.post-page .pagehero p { font-size: 1.12rem; }
.prose { max-width: 720px; margin-inline: auto; padding-left: var(--gl); padding-right: var(--gr); padding-block: 1rem 2rem; box-sizing: content-box; font-size: 1.06rem; line-height: 1.7; }
.prose > p, .prose li { color: var(--body); }
.prose p { margin: 0 0 1.05em; }
.prose h2 { font-family: var(--font); font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.05; letter-spacing: -.008em; margin: 1.5em 0 .5em; }
.prose ul, .prose ol { margin: 0 0 1.15em; padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose b { color: var(--ink); }
.sources { border-top: 1.5px solid var(--line); margin-top: 2rem; padding-top: .9rem; display: grid; gap: .4rem; }
.sources ul { margin: 0; padding-left: 1.1em; font-size: .92rem; }
.sources li { margin-bottom: .2em; }
.post-cta { display: grid; gap: .35rem; justify-items: start; margin-top: 1.8rem; padding: 1.4rem; background: var(--teal); color: #14282B; }
.post-cta b { font-family: var(--font); font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: 1.7rem; line-height: 1.05; color: inherit; }
.post-cta .slab { margin-top: .5rem; }
@media (max-width: 760px) { .post-grid { grid-template-columns: 1fr; } .prose { font-size: 1rem; } }

/* YouTube band */
.yt { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem 2rem; background: var(--panel); color: var(--on-panel); padding: clamp(1.5rem, 4vw, 2.6rem); }
.yt > div { display: grid; gap: .5rem; min-width: 0; flex: 1 1 320px; }
.yt .tag { color: var(--teal); }
.yt p { margin: 0; color: var(--panel-muted); max-width: 34em; }
.yt .slab { background: var(--teal); border-color: var(--teal); color: #14282B; }
.yt .slab:hover { background: transparent; color: var(--teal); }

/* Social icons */
.foot-links { align-items: center; }
.socials { display: flex; align-items: center; gap: .85rem; color: var(--ink); }
.socials a { display: block; line-height: 0; color: inherit; transition: color .15s ease; }
.socials a:hover { color: var(--copper); }
.socials svg { width: 19px; height: 19px; display: block; }

/* The giant NCS text has an invisible box taller than its line, which covered the footer links above it */
.ncs-mark { pointer-events: none; }
.sitemap, .foot-links { position: relative; z-index: 1; }

@media (max-width: 430px) { .pair { flex-wrap: nowrap; } .pair .slab { font-size: 1.02rem; padding-inline: .85em; white-space: nowrap; } }

/* Ticker runs straight across the page */
.ticker { transform: none; }
.ticker-wrap { padding-block: 0; margin-block: 1rem; }

/* ---------- Dark mode, taken from the dark logo: slate ground, white wordmark, white cube side ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  --ground: #393A47;
  --ink: #FFFFFF;
  --muted: #C4C6CF;
  --line: rgba(255, 255, 255, .62);
  --copper-ink: #E3A680;
  --wordmark: #FFFFFF;
  --cube-right: #FFFFFF;
  --on-ink: #2A2B35;
  --panel: #2A2B35;
  --on-panel: #FFFFFF;
  --panel-muted: #C9CBD3;
  --hover-muted: #4A4B57;
  --hair: rgba(255, 255, 255, .2);
  --tile: #474856;
  --tile-hover: #4B6068;
  --field: #2F303B;
  --body: #E6E7EB;
  --map-right: #FFFFFF;
  --map-line: #FFFFFF;
  --show-moon: none;
  --show-sun: block;
  color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #393A47;
  --ink: #FFFFFF;
  --muted: #C4C6CF;
  --line: rgba(255, 255, 255, .62);
  --copper-ink: #E3A680;
  --wordmark: #FFFFFF;
  --cube-right: #FFFFFF;
  --on-ink: #2A2B35;
  --panel: #2A2B35;
  --on-panel: #FFFFFF;
  --panel-muted: #C9CBD3;
  --hover-muted: #4A4B57;
  --hair: rgba(255, 255, 255, .2);
  --tile: #474856;
  --tile-hover: #4B6068;
  --field: #2F303B;
  --body: #E6E7EB;
  --map-right: #FFFFFF;
  --map-line: #FFFFFF;
  --show-moon: none;
  --show-sun: block;
  color-scheme: dark;
}
/* Teal boxes look the same in both modes, so their buttons stay dark */
.final .slab, .post-cta .slab { background: #1E1F26; border-color: #1E1F26; color: #FFF; }
.final .slab:hover, .post-cta .slab:hover { background: transparent; color: #14282B; }
.theme-btn { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; padding: 0; background: none; border: 1.5px solid var(--line); color: var(--ink); cursor: pointer; }
.theme-btn:hover { background: var(--ink); color: var(--on-ink); }
.theme-btn svg { width: 16px; height: 16px; }
.theme-btn .moon { display: var(--show-moon); }
.theme-btn .sun { display: var(--show-sun); }

.pic { text-decoration: none; color: inherit; }

/* Application form, embedded on the page */
.apply-sheet { padding-top: 1rem; }
.apply-sheet .defs { max-width: 860px; margin-inline: auto; }
.form-panel { width: 100%; max-width: 860px; margin-inline: auto; padding: clamp(1.1rem, 3vw, 2.2rem); }
.form-panel iframe { display: block; width: 100%; border: 0; }
.form-fallback { text-align: center; font-size: .9rem; color: var(--muted); margin: 0; }

/* The Tally form has a dark theme and a see-through background, so it always sits on a dark panel */
.form-panel { background: #1E1F26; color-scheme: dark; }

/* Keep the embedded form inside the page width on phones */
.apply-sheet > .frame { grid-template-columns: minmax(0, 1fr); }
.apply-sheet .form-panel, .apply-sheet .defs { min-width: 0; }
.form-panel iframe { max-width: 100%; min-width: 0; }

/* Phone header: logo, mode switch, Menu and Apply all fit on one line */
@media (max-width: 430px) {
  .nav-bar { gap: .4rem; }
  .nav-right { gap: .3rem; }
  .logo { gap: .3rem; }
  .logo svg { width: 18px; height: 21px; }
  .wordmark { font-size: .9rem; }
  .theme-btn { width: 1.9rem; height: 1.9rem; }
  .menu-btn, .nav-cta { padding: .4em .6em; font-size: .78rem; }
}

/* Show and Tell videos */
.videos { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; width: 100%; }
.video { display: grid; gap: .4rem; flex: 1 1 320px; max-width: 520px; min-width: 0; padding: .8rem; border: 1.5px solid var(--line); text-align: left; text-decoration: none; color: inherit; transition: background-color .15s ease; }
.video:hover { background: var(--tile); }
.thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--panel); overflow: hidden; margin-bottom: .3rem; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb i { position: absolute; left: 50%; top: 50%; width: 58px; height: 42px; transform: translate(-50%, -50%); background: rgba(30, 31, 38, .88); border-radius: 10px; }
.thumb i::after { content: ""; position: absolute; left: 23px; top: 12px; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #FFF; }
.thumb em { position: absolute; right: .4rem; bottom: .4rem; background: rgba(30, 31, 38, .9); color: #FFF; font: 500 .72rem var(--mono); font-style: normal; padding: .15em .4em; }
.video b { font-family: var(--font); font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.05; }
.video-desc { color: var(--muted); font-size: .95rem; }
.video .tag { color: var(--copper-ink); }
.video .more { text-decoration: underline; text-underline-offset: 4px; margin-top: .2rem; }

/* Keep the play badge off the title printed on video thumbnails */
.thumb i { left: .6rem; top: auto; bottom: .6rem; transform: none; width: 46px; height: 32px; border-radius: 8px; }
.thumb i::after { left: 18px; top: 8px; border-width: 8px 0 8px 13px; }

/* Tool logos in the band: one colour, matching the text in both modes */
.ticker span { gap: .55rem; padding-left: 0; padding-right: 2.6rem; }
.ticker span::after { content: none; }
.ticker svg { width: 1.15em; height: 1.15em; flex: none; fill: currentColor; }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.quote { margin: 0; display: grid; gap: 1rem; align-content: space-between; justify-items: start; padding: 1.4rem; border: 1.5px solid var(--line); min-width: 0; }
.quote blockquote { margin: 0; font-size: 1.08rem; line-height: 1.5; }
.quote figcaption { display: grid; gap: .1rem; }
.quote figcaption b { font-family: var(--font); font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: 1.3rem; line-height: 1.1; }
.quote figcaption span { font-size: .88rem; color: var(--muted); }
.quote.empty { border-style: dashed; }
.quote.empty blockquote, .quote.empty figcaption b { color: var(--muted); }
.quote.empty .tag { color: var(--copper-ink); }
@media (max-width: 860px) { .quotes { grid-template-columns: 1fr; } }

.who li { grid-template-columns: 8.6rem 1fr; }
.who b { white-space: nowrap; }

/* Member stories: large card on the homepage, full page of its own */
.story-card { margin: 0; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); border: 1.5px solid var(--line); text-align: left; }
.story-photo { display: block; min-height: 100%; overflow: hidden; }
.story-photo img { width: 100%; height: 100%; min-height: 420px; max-height: 520px; object-fit: cover; object-position: 50% 30%; display: block; }
.story-text { display: grid; gap: 1.2rem; align-content: center; justify-items: start; padding: clamp(1.4rem, 4vw, 3rem); min-width: 0; }
.story-text blockquote { margin: 0; display: grid; gap: .8rem; font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.4; }
.story-text blockquote p { margin: 0; }
.story-text figcaption { display: grid; gap: .1rem; }
.story-text figcaption b, .story-sign b { font-family: var(--font); font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: 1.5rem; line-height: 1.1; }
.story-text figcaption span, .story-sign span { font-size: .92rem; color: var(--muted); }
.story-card + .quotes { margin-top: .8rem; }
.story { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(1.4rem, 4vw, 3rem); align-items: start; text-align: left; }
.story > img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 30%; display: block; position: sticky; top: 5.5rem; }
.story-body { display: grid; gap: 1.1rem; font-size: 1.1rem; line-height: 1.6; min-width: 0; }
.story-body p { margin: 0; max-width: none; }
.story-sign { display: grid; gap: .1rem; padding-top: 1.1rem; border-top: 1.5px solid var(--line); }
@media (max-width: 760px) {
  .story-card, .story { grid-template-columns: minmax(0, 1fr); }
  .story-photo img { min-height: 0; max-height: none; aspect-ratio: 4 / 4.4; }
  .story > img { position: static; aspect-ratio: 4 / 4.4; }
}

/* Member photos match the other black and white images */
.story-photo img, .story > img { filter: grayscale(1) contrast(1.04); }

/* Several member stories: stacked, with the photo swapping sides */
.story-card + .story-card { margin-top: .8rem; }
.story-card:nth-of-type(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.story-card:nth-of-type(even) .story-photo { order: 2; }
@media (max-width: 760px) {
  .story-card:nth-of-type(even) { grid-template-columns: minmax(0, 1fr); }
  .story-card:nth-of-type(even) .story-photo { order: 0; }
}

/* Homepage hero sentence */
.hero-lead { margin: 0; max-width: 34rem; font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.45; text-align: left; }
.hero-lead a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* Meet your instructors */
.instructors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; text-align: left; }
.instructor { display: grid; grid-template-rows: auto 1fr; border: 1.5px solid var(--line); min-width: 0; }
.instructor > img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 30%; display: block; filter: grayscale(1) contrast(1.04); }
.instructor-text { display: grid; align-content: start; justify-items: start; gap: .5rem; padding: 1.4rem; min-width: 0; }
.instructor h2 { margin: 0; font-family: var(--font); font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: clamp(1.7rem, 3vw, 2.2rem); line-height: 1.05; }
.instructor-role { font-size: .92rem; color: var(--muted); }
.instructor p { margin: .4rem 0 .6rem; max-width: none; font-size: 1rem; line-height: 1.5; }
.chips { list-style: none; margin: 0 0 .6rem; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.chips li { display: inline-flex; align-items: center; gap: .45rem; padding: .35em .7em; border: 1.5px solid var(--line); font: 500 .85rem var(--mono); }
.chips svg { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }
.chips li.empty { border-style: dashed; color: var(--muted); }
@media (max-width: 760px) { .instructors { grid-template-columns: minmax(0, 1fr); } }

/* Meet your instructors: one full-width row each, so five people leave no gap */
.instructors { grid-template-columns: minmax(0, 1fr); }
.instructor { grid-template-rows: none; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
.instructor > img { aspect-ratio: auto; height: 100%; min-height: 380px; max-height: 620px; }
.instructor-text { gap: .45rem; padding: clamp(1.3rem, 3vw, 2.2rem); }
.instructor-facts { margin: 0; width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; padding-top: 1rem; border-top: 1.5px solid var(--line); }
.instructor-facts > div { display: grid; gap: .45rem; align-content: start; justify-items: start; min-width: 0; }
.instructor-facts .wide { grid-column: 1 / -1; }
.instructor-facts dd { margin: 0; }
.instructor-facts .chips { margin: 0; }
.instructor-facts dd:not(.advice) { font-weight: 600; }
.instructor-facts .advice { font-family: var(--font); font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: clamp(1.2rem, 2.2vw, 1.5rem); line-height: 1.15; }
.instructor .more { margin-top: .6rem; }
@media (max-width: 760px) {
  .instructor { grid-template-columns: minmax(0, 1fr); }
  .instructor > img { height: auto; min-height: 0; max-height: none; aspect-ratio: 1; }
}

/* Testimonial headlines */
.story-head { margin: 0; font-family: var(--font); font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.02; }
/* Try us first, on the cohort page */
.try-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin-top: 1.4rem; text-align: left; }
.try { display: grid; gap: .5rem; align-content: start; justify-items: start; padding: 1.3rem; border: 1.5px solid var(--line); color: inherit; text-decoration: none; min-width: 0; transition: background-color .15s ease; }
.try:hover { background: var(--tile); }
.try b { font-family: var(--font); font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: 1.7rem; line-height: 1.05; }
.try > span:not(.tag):not(.more) { color: var(--muted); font-size: .98rem; }
.try .more { margin-top: .3rem; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 860px) { .try-grid { grid-template-columns: minmax(0, 1fr); } }

/* Homepage hero: fills the first screen, with the tools strip just below it. Text and map grow together to close the gap between them. */
@media (min-width: 761px) {
  .hero { padding-block: .25rem .75rem; min-height: calc(100vh - 66px); min-height: calc(100svh - 66px); display: grid; align-items: center; }
  .hero .frame { width: 100%; gap: .5rem; }
  .hero-copy { gap: clamp(.7rem, 2.2vh, 1.3rem); position: relative; z-index: 1; }
  .hero h1 { font-size: clamp(3rem, min(8.1vw, 17.5vh), 7rem); }
  .hero-lead { font-size: clamp(1rem, min(1.45vw, 2.6vh), 1.25rem); line-height: 1.4; }
  .hero .slab { font-size: clamp(1.05rem, 2vh, 1.2rem); padding: .75em 1.15em; }
  .africa { max-width: none; width: min(calc(100vh - 6rem), 106%); justify-self: end; }
}

/* The open water beside the map holds an invitation, so the space between text and map has a purpose */
.africa { position: relative; container-type: inline-size; }
.map-note { position: absolute; left: 3%; width: 41%; top: 78%; display: flex; align-items: center; gap: .5em; color: var(--ink); text-decoration: none; font-family: var(--font); font-stretch: 75%; font-weight: 800; font-size: clamp(.95rem, 2.9cqw, 1.3rem); text-transform: uppercase; line-height: 1; white-space: nowrap; }
.map-note span { text-underline-offset: 3px; }
.map-note:hover span { text-decoration: underline; }
.map-note i { flex: 1; min-width: 1rem; height: 0; border-top: 1.5px dashed var(--copper-ink); position: relative; }
.map-note i::after { content: ""; position: absolute; right: -2px; top: -6.5px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--copper-ink); background: var(--ground); box-sizing: border-box; }

/* Cohort fee currency switch */
.cur-tabs { display: inline-flex; justify-self: center; margin-top: .5rem; border: 1.5px solid var(--line); }
.cur-tabs button { font: 500 .78rem var(--mono); padding: .45em .8em; background: none; color: var(--ink); border: 0; cursor: pointer; }
.cur-tabs button + button { border-left: 1.5px solid var(--line); }
.cur-tabs button:hover { background: var(--tile); }
.cur-tabs button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.cur-tabs button:focus-visible { outline: 2px solid var(--copper-ink); outline-offset: 2px; }
dd[data-fee-switch] { display: grid; justify-items: start; }
dd[data-fee-switch] .cur-tabs { justify-self: start; }

/* Hero map: what the cursor is on, defined */
.map-card { position: absolute; left: 0; top: 0; z-index: 2; width: min(280px, 82%); box-sizing: border-box; display: grid; gap: .3rem; padding: .85rem 1rem .95rem; background: var(--panel); color: var(--on-panel); pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .12s ease, visibility .12s; }
.map-card.on { opacity: 1; visibility: visible; }
.map-card .tag { font: 500 .72rem var(--mono); opacity: .8; }
.map-card b { font-family: var(--font); font-stretch: 75%; font-weight: 800; font-size: 1.5rem; line-height: 1.05; text-transform: uppercase; }
.map-card p { margin: 0; font-size: .92rem; line-height: 1.38; }
.map-keys button { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Merch photos */
img.mock { object-fit: cover; }
.gallery { display: grid; gap: .6rem; min-width: 0; }
.thumbs { display: flex; flex-wrap: wrap; gap: .6rem; }
.thumbs:empty { display: none; }
.thumbs button { width: 76px; height: 76px; padding: 0; border: 1.5px solid transparent; background: var(--tile); cursor: pointer; overflow: hidden; }
.thumbs button[aria-pressed="true"] { border-color: var(--line); }
.thumbs button:focus-visible { outline: 2px solid var(--copper-ink); outline-offset: 2px; }
.thumbs img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Currency tabs in the shop */
.cart-form .cur-tabs { justify-self: start; margin-top: 0; }
.buy-form .cur-tabs { margin-top: -.3rem; }
.product-link { display: grid; gap: .25rem; min-width: 0; color: inherit; text-decoration: none; }
.product .cur-tabs { justify-self: start; margin-top: .35rem; }
.product .cur-tabs button { font-size: .72rem; padding: .35em .7em; }

/* About page: one long story, in the same reading layout as the blog */
.about-story { padding-block: 1rem 4rem; }
.about-story h2 { scroll-margin-top: 90px; }
.about-story h3 { font-family: var(--font); font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.1; margin: 1.5em 0 .35em; }
.about-story a:not(.slab) { color: inherit; text-underline-offset: 3px; }
.about-cta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .5rem; }
.about-cta .slab { margin-top: 0; }

/* Human or Machine switch */
.mode-switch { display: inline-flex; border: 1.5px solid var(--line); }
.mode-switch button { font: 500 .72rem var(--mono); letter-spacing: .04em; text-transform: uppercase; padding: 0 .65em; height: calc(2.2rem - 3px); background: none; color: var(--ink); border: 0; cursor: pointer; }
.mode-switch button + button { border-left: 1.5px solid var(--line); }
.mode-switch button:hover { background: var(--tile); }
.mode-switch button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.mode-switch button:focus-visible { outline: 2px solid var(--copper-ink); outline-offset: 2px; }
.mode-switch.in-menu { justify-self: start; margin-block: .2rem .6rem; }
.mode-switch.in-menu button { height: 2.4rem; padding: 0 1em; }
.mode-switch.in-menu { display: none; }
@media (max-width: 520px) {
  .mode-switch.in-bar { display: none; }
  .mode-switch.in-menu { display: inline-flex; }
}
.agent-link { color: inherit; }

/* Machine view: the page as an AI agent reads it */
.is-machine main, .is-machine body > footer, .is-machine .ticker-wrap { display: none !important; }
.machine-view { background: var(--panel); color: var(--on-panel); min-height: calc(100vh - 66px); padding: 2rem var(--gr) 4rem var(--gl); }
.machine-inner { max-width: 820px; margin-inline: auto; display: grid; gap: 1.2rem; }
.machine-bar { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; align-items: center; }
.machine-copy { font: 500 .78rem var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: .85em 1.3em; background: none; color: inherit; border: 1.5px solid rgba(255,255,255,.45); cursor: pointer; }
.machine-copy:hover { background: var(--on-panel); color: var(--panel); }
.machine-raw { font: 500 .78rem var(--mono); color: inherit; opacity: .75; text-underline-offset: 3px; }
.machine-raw:hover { opacity: 1; }
.machine-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 400 .9rem/1.75 var(--mono); }
.machine-text:focus-visible { outline: 2px solid var(--teal); outline-offset: 6px; }

/* The giant NCS at the foot of every page: outlined in a fine grid instead of solid, and cut off by the bottom edge */
:root { --mark-fill: #FFFFFF; --mark-grid: rgba(37,99,235,.55); }
:root[data-theme="dark"] { --mark-fill: rgba(255,255,255,.1); --mark-grid: rgba(255,255,255,.42); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --mark-fill: rgba(255,255,255,.1); --mark-grid: rgba(255,255,255,.42); } }
.ncs-mark { color: transparent; padding-block: .06em 0; margin-bottom: -.2em;
  background-image: linear-gradient(var(--mark-grid) 1px, transparent 1px), linear-gradient(90deg, var(--mark-grid) 1px, transparent 1px), linear-gradient(var(--mark-fill), var(--mark-fill));
  background-size: 10px 10px, 10px 10px, auto; -webkit-background-clip: text; background-clip: text; }
footer:has(.ncs-mark) { padding-bottom: 0; }

/* Testimonial cards: smaller text */
.story-text { gap: 1rem; }
.story-text .story-head { font-size: clamp(1.35rem, 2.3vw, 1.8rem); }
.story-text blockquote { font-size: clamp(.98rem, 1.3vw, 1.08rem); line-height: 1.55; gap: .7rem; }
.story-text figcaption b { font-size: 1.2rem; }
.story-text figcaption span { font-size: .86rem; }
.story-photo img { min-height: 360px; max-height: 460px; }

/* Footer NCS: solid, no grid. The logo's teal in light mode, white in dark mode */
:root { --mark-solid: #393A47; }
:root[data-theme="dark"] { --mark-solid: #FFFFFF; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --mark-solid: #FFFFFF; } }
.ncs-mark { color: var(--mark-solid); background: none; -webkit-background-clip: border-box; background-clip: border-box; }

/* Footer NCS: solid colour with a fine grid on top. Dark blue with a white grid in light mode, white with a dark grid in dark mode */
:root { --mark-lines: rgba(255,255,255,.35); }
:root[data-theme="dark"] { --mark-lines: rgba(30,31,38,.3); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --mark-lines: rgba(30,31,38,.3); } }
.ncs-mark { color: transparent;
  background-image: linear-gradient(var(--mark-lines) 1px, transparent 1px), linear-gradient(90deg, var(--mark-lines) 1px, transparent 1px), linear-gradient(var(--mark-solid), var(--mark-solid));
  background-size: 10px 10px, 10px 10px, auto; -webkit-background-clip: text; background-clip: text; }

/* Map card: member share and one AI/automation figure per city */
.map-card .members { justify-self: start; font: 500 .74rem var(--mono); padding: .15rem .45rem; background: var(--teal); color: #16171C; }
.map-card .stat { font-family: var(--font); font-stretch: 75%; font-weight: 800; font-size: 2rem; line-height: 1; color: var(--teal); margin-top: .2rem; }
.map-card [hidden] { display: none; }

/* Map card: 1 to 3 AI/automation points per city */
.map-card { width: min(320px, 86%); }
.map-card ul { margin: .15rem 0 0; padding: 0; list-style: none; display: grid; gap: .4rem; }
.map-card li { position: relative; padding-left: .95rem; font-size: .86rem; line-height: 1.36; }
.map-card li::before { content: ""; position: absolute; left: 0; top: .5em; width: .4rem; height: .4rem; background: var(--teal); }

@media (max-width: 600px) {
  .map-card { padding: .6rem .75rem .7rem; gap: .2rem; }
  .map-card b { font-size: 1.15rem; }
  .map-card .stat { font-size: 1.45rem; margin-top: 0; }
  .map-card ul { gap: .25rem; }
  .map-card li { font-size: .76rem; line-height: 1.3; }
}

/* Footer NCS: solid, no grid (dark blue in light mode, white in dark mode) */
.ncs-mark { background-image: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--mark-solid); }

/* Newsletter sign-up at the top of the footer */
.newsletter { max-width: 1000px; margin: 0 auto 1.5rem; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1.5rem clamp(1.5rem, 4vw, 3.5rem); align-items: end; padding: clamp(1.4rem, 3vw, 2.2rem); border: 1.5px solid var(--line); }
.nl-kicker { margin: 0 0 .5rem; font: 500 .74rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.newsletter h2 { margin: 0 0 .6rem; font-size: clamp(1.35rem, 2.6vw, 1.85rem); line-height: 1.15; }
.newsletter h2 i { color: var(--teal); }
.nl-copy > p:last-child { margin: 0; color: var(--muted); font-size: .95rem; max-width: 46ch; }
.nl-form label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: .4rem; }
.nl-row { display: flex; border: 1.5px solid var(--line); }
.nl-row input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 400 1rem var(--font); padding: .8em .9em; }
.nl-row input::placeholder { color: var(--muted); opacity: .8; }
.nl-row input:focus { outline: none; }
.nl-row:focus-within { outline: 2px solid var(--teal); outline-offset: 2px; }
.nl-row button { border: 0; border-left: 1.5px solid var(--line); background: var(--ink); color: var(--on-ink); font: 600 .92rem var(--font); padding: 0 1.3em; cursor: pointer; }
.nl-row button:hover { background: var(--teal); color: #16171C; }
.nl-row button[disabled] { opacity: .6; cursor: wait; }
.nl-msg { margin: .5rem 0 0; font-size: .86rem; min-height: 1.2em; }
.nl-msg.ok { color: var(--ink); font-weight: 600; }
.nl-msg.err { color: #C2410C; }
:root[data-theme="dark"] .nl-msg.err { color: #FDBA74; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .nl-msg.err { color: #FDBA74; } }
.nl-note { margin: .15rem 0 0; font-size: .76rem; color: var(--muted); }
@media (max-width: 720px) {
  .newsletter { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .nl-row { flex-direction: column; }
  .nl-row button { border-left: 0; border-top: 1.5px solid var(--line); padding: .85em; }
}


/* Newsletter: a full-width band edge to edge, content still lined up with the footer */
.newsletter { max-width: none; margin-left: calc(-1 * var(--gl)); margin-right: calc(-1 * var(--gr)); margin-top: -1rem; border-left: 0; border-right: 0;
  padding-block: clamp(2rem, 4vw, 3rem); padding-left: max(var(--gl), calc((100vw - 1000px) / 2)); padding-right: max(var(--gr), calc((100vw - 1000px) / 2));
  background: color-mix(in srgb, var(--teal) 9%, transparent); }

/* No second rule under the newsletter band */
.newsletter + .sitemap { border-top: 0; }

/* Blog cover image set in the admin */
.post-cover { display: block; width: 100%; height: auto; max-height: 460px; object-fit: cover; margin: 0 0 1.6rem; border: 1.5px solid var(--line); }

/* ---------- gallery ---------- */
.gal-sheet .frame { display: block; }
.gal-year { margin: 2rem 0 1rem; }
.gal-year:first-child { margin-top: 0; }
.photo-wall { columns: 3 260px; column-gap: 1.1rem; }
.gal-item { break-inside: avoid; margin: 0 0 1.4rem; }
.gal-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gal-open img { display: block; width: 100%; height: auto; transition: opacity .2s; }
.gal-open:hover img, .gal-open:focus-visible img { opacity: .88; }
.gal-item figcaption { display: grid; gap: .1rem; padding-top: .55rem; font-size: .92rem; line-height: 1.35; }
.gal-item figcaption span, .gal-box span { color: var(--muted); font-size: .84rem; }
.gal-empty { padding: 1rem 0 2rem; max-width: 34rem; }
.gal-box { padding: 0; border: 0; background: transparent; max-width: min(94vw, 1200px); max-height: 94vh; overflow: visible; }
.gal-box::backdrop { background: rgba(14, 15, 19, .9); }
.gal-box img { display: block; max-width: 100%; max-height: 82vh; margin: 0 auto; }
.gal-box p { display: grid; gap: .15rem; color: #fff; text-align: center; padding-top: .7rem; }
.gal-box span { color: #C9CBD1; }
.gal-close { position: absolute; top: -2.6rem; right: 0; width: 2.2rem; height: 2.2rem; border: 0; background: none; color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; }

/* ---------- footer links: all groups on one line on wide screens ---------- */
@media (min-width: 900px) {
  .sitemap { display: flex; justify-content: space-between; gap: .9rem; }
  .sitemap > div { min-width: 0; }
  .sitemap b { font-size: .86rem; }
  .sitemap a { font-size: .8rem; line-height: 1.35; overflow-wrap: anywhere; }
}
@media (min-width: 761px) and (max-width: 899px) {
  .sitemap { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- cohort ticker (top of every page) ---------- */
/* Light mode: the logo's dark slate with teal accents. Dark mode: teal (the page itself is slate there). */
:root { --bar-bg: #393A47; --bar-fg: #FFFFFF; --bar-dot: #5ECDCB; }
:root[data-theme="dark"] { --bar-bg: #5ECDCB; --bar-fg: #1E1F26; --bar-dot: #1E1F26; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bar-bg: #5ECDCB; --bar-fg: #1E1F26; --bar-dot: #1E1F26; } }
.cohort-bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 31; background: var(--bar-bg); color: var(--bar-fg); overflow: hidden; }
.cohort-bar[hidden] { display: none; }
.cohort-bar a { display: block; color: inherit; text-decoration: none; padding-right: 2.6rem; }
.cohort-run { display: flex; width: max-content; animation: run 40s linear infinite; }
.cohort-bar a:hover .cohort-run, .cohort-bar a:focus-visible .cohort-run { animation-play-state: paused; }
.cohort-run > div { display: flex; }
.cohort-run span { display: inline-flex; align-items: center; gap: 1.4rem; padding: .55rem 0 .55rem 1.4rem; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.cohort-run span::after { content: ""; width: 6px; height: 6px; background: var(--bar-dot); transform: rotate(45deg); }
.cohort-x { position: absolute; top: 0; right: 0; bottom: 0; width: 2.6rem; border: 0; background: var(--bar-bg); color: var(--bar-fg); font-size: 1.3rem; line-height: 1; cursor: pointer; box-shadow: -10px 0 12px var(--bar-bg); }
@media (prefers-reduced-motion: reduce) { .cohort-run { animation: none; } }

/* ---------- news ---------- */
.news-sheet .frame { display: block; }
.news-list { max-width: 820px; }
.news-item { display: grid; grid-template-columns: 10rem 1fr; gap: 1.5rem; padding-block: 1.8rem; border-top: 1.5px solid var(--line); }
.news-item:first-child { border-top: 0; padding-top: 0; }
.news-item time { font-family: "DM Mono", monospace; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: .35rem; }
.news-body h2 { font-size: 1.45rem; line-height: 1.2; margin: 0 0 .6rem; }
.news-body p { margin: 0 0 .8rem; line-height: 1.6; }
.news-body img { display: block; width: 100%; height: auto; margin: .2rem 0 1rem; }
@media (max-width: 640px) { .news-item { grid-template-columns: 1fr; gap: .4rem; } }

/* the menu sits just below the cohort ticker while it is showing */
.nav { top: calc(env(safe-area-inset-top, 0px) + var(--bar-h, 0px)); }

/* ---------- jobs ---------- */
.jobs-sheet .frame { display: block; }
.jobs-list { display: grid; gap: 1.2rem; max-width: 880px; }
.job { border: 1.5px solid var(--line); padding: 1.5rem 1.6rem; display: grid; gap: .9rem; }
.job-head h2 { font-size: 1.4rem; line-height: 1.2; margin: 0; }
.job-co { margin: .25rem 0 0; font-weight: 700; }
.job-facts { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .7rem; }
.job-facts span { font-family: "DM Mono", monospace; font-size: .74rem; letter-spacing: .05em; text-transform: uppercase; border: 1.5px solid var(--line); padding: .25rem .55rem; }
.job-desc p { margin: 0 0 .7rem; line-height: 1.6; }
.job-desc ul { margin: 0 0 .7rem; padding-left: 1.2rem; line-height: 1.6; }
.job-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; padding-top: .9rem; border-top: 1.5px solid var(--line); }
.job-date { font-size: .84rem; color: var(--muted); }
.jobs-empty { max-width: 34rem; padding: .5rem 0 1.5rem; }
.jobs-empty[hidden] { display: none; }
.jobs-empty p { margin: 0 0 1rem; line-height: 1.6; }
