/* ==========================================================================
   David Loebenstein — personal site
   Plain HTML/CSS. Black, cream and burnt orange. Editorial, warm, restrained.
   ========================================================================== */

/* Self-hosted fonts (SIL Open Font License) */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/montserrat-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/montserrat-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/montserrat-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/montserrat-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/newsreader-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/newsreader-latin-500-normal.woff2") format("woff2"); }

:root {
  --ink: #18222f;
  --ink-soft: #46505c;
  --muted: #5d6773;
  --cream: #f5f7f9;
  --cream-deep: #eaeff3;
  --paper: #ffffff;
  --line: #d5dde5;
  /* Accent roles (WCAG 2.2 AA):
     --orange      decorative only: rules, borders, large display text (>=24px)
     --orange-deep button fills + text on white/paper (white on it = 5.5:1)
     --orange-text small text on any light surface, incl. cream + tints (>=4.9:1)
     --orange-dark-bg small text on dark bands (7.3:1 on night) */
  --orange: #c8642b;
  --orange-deep: #a94f1e;
  --orange-text: #97441a;
  --orange-dark-bg: #e98a52;
  --tap: 44px;
  --night: #121212;
  --night-2: #1d1c1a;
  --surface: #ffffff;
  --on-ink: #ffffff;
  --on-night: #f4efe8;
  --on-night-soft: #c3ccd6;
  --on-night-muted: #9aa7b5;
  --night-line: #22385a;
  --night-line-strong: #4a443d;
  --wash-rgb: 248,240,229;
  --leaf: #91c363;
  --leaf-text: #3e6b1f;
  color-scheme: light;

  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --serif: "Newsreader", "Georgia", serif;

  --max: 1320px;
  --gutter: clamp(16px, 4vw, 64px);
  --header-h: 100px;
}


/* ==========================================================================
   THEMES: light (default) / dark, toggled by [data-theme] on <html>,
   falling back to the OS preference. Two-tone: personal pages use the
   black/cream/burnt-orange palette; Flow pages (body.flow) use the Flow
   logo palette: charcoal, sunrise #fcb041, leaf #91c363 on deep navy.
   Every text pairing below is >= 4.5:1 (checked with axe in both modes).
   ========================================================================== */
:root[data-theme="dark"] {
  --ink: #f2ece3; --ink-soft: #c3ccd6; --muted: #9aa7b5;
  --paper: #0b1726; --cream: #18222f; --cream-deep: #11233a; --line: #22385a;
  --surface: #11233a; --on-ink: #0b1726;
  --orange-text: #e98a52; --orange-deep: #a94f1e;
  --night: #0a0908; --night-2: #18222f;
  --wash-rgb: 18,17,16; --leaf-text: #a7d274;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #f2ece3; --ink-soft: #c3ccd6; --muted: #9aa7b5;
    --paper: #0b1726; --cream: #18222f; --cream-deep: #11233a; --line: #22385a;
    --surface: #11233a; --on-ink: #0b1726;
    --orange-text: #e98a52; --orange-deep: #a94f1e;
    --night: #0a0908; --night-2: #18222f;
    --wash-rgb: 18,17,16; --leaf-text: #a7d274;
    color-scheme: dark;
  }
}

/* ---------- Flow Foundation palette (from the original logo) ---------- */
body.flow {
  --ink: #18222f; --ink-soft: #46505c; --muted: #5d6773;
  --paper: #ffffff; --cream: #f5f7f9; --cream-deep: #eaeff3; --line: #d5dde5; --surface: #ffffff; --on-ink: #ffffff;
  --orange: #fcb041; --orange-text: #8f5600; --orange-dark-bg: #fcb041; --orange-deep: #0e2a47;
  --night: #0b1726; --night-2: #11233a;
  --on-night: #eef2f6; --on-night-soft: #c3ccd6; --on-night-muted: #9aa7b5; --night-line: #22385a; --night-line-strong: #3a5478;
  --sun: #fcb041; --navy: #0b1726; --leaf: #91c363; --leaf-text: #3e6b1f;
  --wash-rgb: 255,255,255;
}
:root[data-theme="dark"] body.flow {
  --ink: #eef2f6; --ink-soft: #c3ccd6; --muted: #9aa7b5;
  --paper: #0b1726; --cream: #0f1e33; --cream-deep: #172d48; --line: #22385a; --surface: #11233a; --on-ink: #0b1726;
  --orange-text: #fcb041; --orange-deep: #fcb041;
  --night: #060f1a; --night-2: #0f1e33; --leaf-text: #a7d274; --wash-rgb: 11,23,38;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body.flow {
    --ink: #eef2f6; --ink-soft: #c3ccd6; --muted: #9aa7b5;
    --paper: #0b1726; --cream: #0f1e33; --cream-deep: #172d48; --line: #22385a; --surface: #11233a; --on-ink: #0b1726;
    --orange-text: #fcb041; --orange-deep: #fcb041;
    --night: #060f1a; --night-2: #0f1e33; --leaf-text: #a7d274; --wash-rgb: 11,23,38;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.1; }
p { margin: 0 0 1em; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--on-ink); padding: 10px 16px; text-decoration: none;
}
.skip-link:focus { top: 16px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Shared type helpers ---------- */
.kicker {
  font-size: 12px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase;
  color: var(--orange-text); margin: 0 0 18px;
}
.kicker.on-dark { color: var(--orange-dark-bg); }
.rule { display: block; width: 200px; height: 2px; background: linear-gradient(90deg, var(--orange), rgba(200,100,43,.15)); }
.serif-display { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; }
.lede { font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-soft); max-width: 46ch; }

/* ---------- Header ---------- */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
  height: var(--header-h);
  display: flex; align-items: center; gap: 32px;
  padding: 0 clamp(16px, 3.2vw, 48px);
}
.site-header.solid { position: relative; background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header.dark { color: #fff; }

.identity { display: flex; align-items: center; gap: 26px; text-decoration: none; flex-shrink: 0; }
.monogram {
  font-family: var(--serif); font-size: 44px; line-height: 1; font-weight: 400; letter-spacing: -.12em;
  display: inline-flex; align-items: flex-end;
}
.monogram span:last-child { transform: translateY(8px); }
.identity-divider { width: 1px; height: 44px; background: currentColor; opacity: .55; }
.identity-name { font-size: 15px; letter-spacing: .2em; text-transform: uppercase; font-weight: 400; }

.primary-nav { display: flex; gap: clamp(18px, 2.4vw, 36px); margin: 0 auto; }
.primary-nav a {
  position: relative; text-decoration: none; font-size: 13px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; padding: 8px 0;
}
.primary-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.social { display: flex; gap: 6px; align-items: center; }
.social a, .social .pending { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; }
.social a:hover { background: rgba(127,127,127,.12); }
.social svg { width: 20px; height: 20px; fill: currentColor; }
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid currentColor; border-radius: 999px;
  padding: 12px 26px; min-height: var(--tap); font-size: 13px; font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; text-decoration: none; white-space: nowrap;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-outline:hover { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.dark .btn-outline:hover, .btn-outline.light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-solid {
  display: inline-flex; align-items: center; gap: 10px; border: 0; cursor: pointer;
  background: var(--orange-deep); color: #fff; border-radius: 999px; padding: 14px 28px; min-height: var(--tap);
  font: 500 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
}
.btn-solid:hover { background: #7e3a15; }

.menu-button {
  display: none; align-items: center; margin-left: auto; min-height: var(--tap); background: none; border: 1.5px solid currentColor; color: inherit;
  border-radius: 999px; padding: 9px 18px; font: 500 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; cursor: pointer;
}

/* ---------- Home hero (from the approved mockup) ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; overflow: hidden; background: var(--cream);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 30%; }
.hero-wash {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(var(--wash-rgb),.97) 0%, rgba(var(--wash-rgb),.93) 26%, rgba(var(--wash-rgb),.62) 40%, rgba(var(--wash-rgb),0) 54%),
    linear-gradient(180deg, rgba(var(--wash-rgb),.55) 0%, rgba(var(--wash-rgb),0) 22%);
}
.hero-copy {
  position: relative; z-index: 2;
  padding: calc(var(--header-h) + 24px) clamp(16px, 4.3vw, 66px) 64px;
  max-width: 760px;
}
.hero-name { margin: 0; line-height: .86; }
.hero-name strong {
  display: block; font-weight: 800; letter-spacing: -.035em;
  font-size: clamp(76px, 12.4vw, 190px);
}
.hero-name span {
  display: block; font-weight: 300; letter-spacing: -.02em; text-transform: uppercase;
  font-size: clamp(42px, 6.9vw, 106px); margin-top: .12em;
}
.role-line {
  margin: 26px 0 30px; font-size: clamp(12px, 1.15vw, 17px); letter-spacing: .38em; text-transform: uppercase; font-weight: 400;
}
.hero-tagline {
  font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 3.6vw, 52px);
  line-height: 1.08; letter-spacing: -.01em; margin: 34px 0 22px;
}
.hero-intro { font-size: clamp(16px, 1.25vw, 19px); line-height: 1.5; max-width: 36ch; margin-bottom: 30px; }
.story-link { display: inline-flex; align-items: center; gap: 18px; text-decoration: none; }
.play {
  width: 50px; height: 50px; border-radius: 50%; background: var(--ink); color: var(--on-ink);
  display: grid; place-items: center; transition: background .2s ease;
}
.play svg { width: 16px; height: 16px; fill: currentColor; margin-left: 3px; }
.story-link:hover .play { background: var(--orange); }
.story-link span:last-child { font-size: 12px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 9vw, 128px) 0; }
.section.cream { background: var(--cream); }
.section.night { background: var(--night); color: var(--on-night); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }
.section-title { font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 3.6vw, 52px); letter-spacing: -.01em; max-width: 20ch; }
.text-link {
  font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  border-bottom: 2px solid var(--orange); padding-bottom: 6px;
}

/* ---------- Placeholders ---------- */
.ph {
  position: relative; display: grid; place-items: center; text-align: center; color: var(--ink-soft);
  min-height: 220px; padding: 24px; border: 1.5px dashed #c9bba8; border-radius: 4px;
  background: repeating-linear-gradient(135deg, rgba(200,100,43,.05) 0 12px, rgba(200,100,43,0) 12px 24px), var(--cream-deep);
  color: var(--muted); font-size: 13px; letter-spacing: .04em;
}
.ph strong { display: block; color: var(--ink-soft); font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; margin-bottom: 6px; }
.night .ph, .ph.dark { background: repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 12px, rgba(255,255,255,0) 12px 24px), #22201d; border-color: var(--night-line-strong); color: var(--on-night-muted); }
.night .ph strong, .ph.dark strong { color: var(--on-night-soft); }
.tag {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; background: rgba(200,100,43,.12); color: var(--orange-text);
}
.tag.neutral { background: rgba(20,20,20,.07); color: var(--ink-soft); }
.night .tag.neutral { background: rgba(255,255,255,.1); color: var(--on-night-soft); }

/* ---------- Page heroes (each inner page has its own layout) ---------- */
.page-hero { padding: clamp(56px, 8vw, 110px) 0 clamp(56px, 7vw, 96px); }
.page-hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(44px, 6vw, 88px); letter-spacing: -.02em; line-height: 1; }
.page-hero .lede { margin-top: 28px; }

/* Journey: split with portrait */
.hero-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.hero-split .ph { min-height: 460px; }

/* Hello Brand: dark, oversized word */
.hero-dark { background: var(--night); color: var(--on-night); position: relative; overflow: hidden; }
.hero-dark .giant {
  font-family: var(--sans); font-weight: 800; letter-spacing: -.04em; text-transform: uppercase;
  font-size: clamp(64px, 13vw, 210px); line-height: .85; color: var(--on-night);
}
.hero-dark .giant em { font-style: normal; color: var(--orange); }
.hero-dark .lede { color: var(--on-night-soft); }
.hero-dark-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 56px; align-items: end; }

/* Flow: centred, warm */
.hero-centre { text-align: center; background: var(--cream); }
.hero-centre .lede { margin-left: auto; margin-right: auto; }
.hero-centre .rule { margin: 30px auto 0; }

/* Impact: banner image with overlay */
.hero-banner { position: relative; min-height: 62vh; display: flex; align-items: end; color: #fff; }
.hero-banner .ph { position: absolute; inset: 0; border: 0; border-radius: 0; min-height: 0; }
.hero-banner .ph span { position: absolute; top: 28px; right: 28px; }
.hero-banner .wrap { position: relative; padding-bottom: clamp(48px, 7vw, 96px); }
.hero-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(18,18,18,.88), rgba(18,18,18,.15) 70%); pointer-events: none; }
.hero-banner .wrap { z-index: 2; }
.hero-banner .lede { color: var(--on-night-soft); }

/* Insights: editorial masthead */
/* padding-block only: a padding shorthand here would wipe the .wrap side gutter on phones.
   The rule under the masthead is drawn inside the gutter so it lines up with the content. */
.masthead {
  padding-block: clamp(48px, 6vw, 80px) 28px;
  background: linear-gradient(var(--ink), var(--ink)) center bottom / calc(100% - 2 * var(--gutter)) 1px no-repeat;
}
.masthead-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.masthead h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(56px, 9vw, 136px); letter-spacing: -.03em; line-height: .9; }
.masthead-meta { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); text-align: right; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.filters button {
  font: 500 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; cursor: pointer;
  background: transparent; color: var(--ink); border: 1.5px solid #b9ad9c; border-radius: 999px; padding: 11px 18px; min-height: var(--tap);
}
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }

/* Connect: two-column */
.hero-connect { background: var(--cream); }

/* ---------- Journey timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 120px 1fr 1fr; gap: clamp(20px, 4vw, 64px); padding: 48px 0; border-bottom: 1px solid var(--line); align-items: start; }
.timeline .num { font-family: var(--serif); font-size: 56px; line-height: 1; color: var(--orange); }
.timeline h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 2.4vw, 34px); margin-bottom: 14px; }
.timeline .ph { min-height: 200px; }

.video-ph { aspect-ratio: 16 / 9; min-height: 0; }
.video-ph .play { margin: 0 auto 16px; }

/* ---------- Cards & grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.night .card { background: var(--night-2); border-color: var(--night-line); }
.card h3 { font-family: var(--serif); font-weight: 500; font-size: 26px; }
.card p { color: var(--muted); margin: 0; }
.night .card p { color: var(--on-night-muted); }

.pillar { text-align: center; padding: 36px 16px; border-top: 3px solid var(--orange); background: var(--surface); }
.pillar .ph { min-height: 120px; margin-bottom: 18px; }
.pillar h3 { font-size: 15px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.quote { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 3.4vw, 50px); line-height: 1.12; letter-spacing: -.01em; }

/* Blog cards */
.post-card { display: flex; flex-direction: column; gap: 14px; text-decoration: none; }
.post-card .ph { min-height: 0; aspect-ratio: 4 / 3; }
.post-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.post-card h3 { font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.15; }
.post-card:hover h3 { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 5px; }
.post-card p { color: var(--muted); margin: 0; }
.night .post-card p, .night .post-meta { color: var(--on-night-muted); }
.feature { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; padding: 48px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.feature .ph { min-height: 0; aspect-ratio: 16 / 10; }
.feature h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 3.6vw, 54px); letter-spacing: -.01em; margin: 14px 0 18px; }
.feature:hover h2 { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 8px; }
.post-card[hidden] { display: none; }

/* Article template */
.article { max-width: 720px; margin: 0 auto; }
.article h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 5vw, 68px); letter-spacing: -.02em; line-height: 1.04; margin: 18px 0 24px; }
.article .body p { font-family: var(--serif); font-size: 21px; line-height: 1.6; color: var(--ink-soft); }
.article .body h2 { font-family: var(--serif); font-weight: 500; font-size: 32px; margin: 48px 0 16px; }
.article blockquote { margin: 40px 0; padding-left: 28px; border-left: 3px solid var(--orange); font-family: var(--serif); font-size: 28px; line-height: 1.3; }
.byline { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--muted); }
.byline .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--on-ink); display: grid; place-items: center; font-family: var(--serif); font-size: 18px; }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--night); color: var(--on-night); }
.newsletter-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.newsletter h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 3.8vw, 56px); letter-spacing: -.01em; }
.newsletter p { color: var(--on-night-soft); }
.signup { display: flex; gap: 10px; flex-wrap: wrap; }
.signup label { flex-basis: 100%; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--on-night-muted); }
.signup input {
  flex: 1 1 240px; min-width: 0; min-height: var(--tap); padding: 15px 22px; border-radius: 999px; border: 1.5px solid #8a8277;
  background: transparent; color: #fff; font: 400 16px/1.2 var(--sans);
}
.signup input::placeholder { color: var(--on-night-muted); }
.signup-note { flex-basis: 100%; font-size: 13px; color: var(--on-night-muted); margin: 4px 0 0; }
.signup-status { flex-basis: 100%; font-size: 14px; color: var(--orange-dark-bg); margin: 0; min-height: 1.4em; }

/* ---------- Forms (contact) ---------- */
.form { display: grid; gap: 18px; }
.form label { display: grid; gap: 8px; font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.form input, .form textarea, .form select {
  font: 400 16px/1.4 var(--sans); padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink);
  text-transform: none; letter-spacing: 0;
}
.form textarea { min-height: 150px; resize: vertical; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--on-night-soft); padding: 64px 0 32px; border-top: 1px solid var(--night-line); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--night-line); }
.footer-top h2 { font-family: var(--serif); font-weight: 500; font-size: 32px; color: #fff; margin-bottom: 14px; }
.footer-top h3 { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #fff; margin-bottom: 16px; font-weight: 600; }
.footer-top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-top a { text-decoration: none; color: var(--on-night-muted); }
.footer-top a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 28px; font-size: 13px; color: var(--on-night-muted); flex-wrap: wrap; }
.preview-note { color: var(--orange-dark-bg); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .identity-name, .identity-divider { display: none; }
  .social { display: none; }
}
@media (max-width: 980px) {
  :root { --header-h: 76px; }
  .menu-button { display: inline-flex; }
  .header-actions { display: none; }
  .primary-nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--paper); color: var(--ink);
    padding: 8px 16px 20px; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(0,0,0,.08);
  }
  .primary-nav.open { display: flex; }
  .primary-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 14px; }
  .primary-nav a::after { display: none; }
  .primary-nav a[aria-current="page"] { color: var(--orange-text); }
  .monogram { font-size: 36px; }

  .hero { flex-direction: column; align-items: stretch; min-height: 0; }
  .hero-media { position: relative; height: 58vh; min-height: 340px; order: 1; }
  .hero-media img { object-position: 74% 25%; }
  .hero-wash { background: linear-gradient(180deg, rgba(var(--wash-rgb),.6) 0%, rgba(var(--wash-rgb),0) 30%); height: 58vh; min-height: 340px; }
  .hero-copy { order: 2; padding: 40px 16px 56px; max-width: none; background: var(--cream); }
  .hero-media + .hero-wash + .hero-copy { margin-top: 0; }

  .hero-split, .split, .newsletter-inner, .feature, .hero-dark-grid { grid-template-columns: 1fr; }
  .hero-split .ph { min-height: 300px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .timeline li { grid-template-columns: 1fr; gap: 18px; padding: 36px 0; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > div:first-child { grid-column: 1 / -1; }
  .masthead-meta { text-align: left; }
}
@media (max-width: 620px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .grid-5 { grid-template-columns: 1fr 1fr; }
  .role-line { letter-spacing: .26em; }
  .card { padding: 24px; }
  .footer-top { grid-template-columns: 1fr; }
}

/* ---------- Social links ---------- */
.social .pending { opacity: .3; cursor: help; }
.social .pending svg { width: 100%; height: 100%; fill: currentColor; }
.social.inline { color: var(--ink); }
.footer-social h3 { margin: 18px 0 10px; }
.footer-social h3:first-child { margin-top: 0; }
.footer-social .social { display: flex; gap: 6px; color: var(--on-night-soft); }
.footer-social .social a:hover { color: var(--orange); }
.soc-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.soc-link { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 15px; }
a.soc-link:hover { color: var(--orange); }
.soc-link .ico { display: inline-flex; width: 20px; height: 20px; flex-shrink: 0; }
.soc-link .ico svg { width: 100%; height: 100%; fill: currentColor; }
.pending-text { color: var(--muted); }
.pending-text em { font-style: normal; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; margin-left: 6px; color: var(--orange-deep); }
.night .soc-link { border-color: var(--night-line); }
.night .pending-text { color: var(--on-night-muted); }
.follow { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.follow .soc-list { grid-template-columns: 1fr 1fr; column-gap: 32px; }

/* ---------- Flow highlights ---------- */
.stat { font-family: var(--serif); font-size: 64px; line-height: 1; color: var(--orange); }
.stat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.stat-list li { display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--night-line); color: var(--on-night-soft); }
.stat-list li:first-child { border-top: 1px solid var(--night-line); }
.stat-list .stat { font-size: 52px; color: var(--orange-dark-bg); }
.highlight { gap: 10px; }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 20px; margin-top: 28px; }
.gallery .ph { min-height: 260px; }
.phase { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--orange); padding: 32px; }
.phase h3 { font-family: var(--serif); font-weight: 500; font-size: 26px; margin: 14px 0 12px; }
.phase ul { margin: 0; padding-left: 18px; color: var(--muted); display: grid; gap: 8px; }
.pillar p { font-size: 14px; color: var(--muted); margin: 10px 0 0; line-height: 1.5; }
.pillar-link { color: inherit; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.pillar-link > span { display: inline-block; margin-top: 14px; color: var(--orange-text); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pillar-link:hover, .pillar-link:focus-visible { transform: translateY(-4px); box-shadow: 0 18px 34px rgba(11,23,38,.12); }
.future { position: relative; padding-top: 40px; }
.num-sm { font-family: var(--serif); font-size: 18px; color: var(--orange-text); border-bottom: 2px solid var(--orange); padding-bottom: 4px; align-self: flex-start; }

@media (max-width: 980px) {
  .follow, .gallery { grid-template-columns: 1fr; }
  .stat-list li { grid-template-columns: 90px 1fr; }
}
@media (max-width: 620px) {
  .follow .soc-list { grid-template-columns: 1fr; }
}
.card .tag, .phase .tag { align-self: flex-start; }

/* ---------- Connect page ---------- */
.connect-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 40px; }
.contact-tile {
  display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center;
  padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; text-decoration: none;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.contact-tile:hover { border-color: var(--orange); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(20,20,20,.06); }
.ct-ico { grid-row: 1 / 3; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--on-ink); display: grid; place-items: center; transition: background .2s ease; }
.contact-tile:hover .ct-ico { background: var(--orange); }
.ct-ico svg { width: 20px; height: 20px; fill: currentColor; }
.ct-label { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.ct-value { font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }
.contact-meta { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; margin-top: 28px; }
.cm-item { display: inline-flex; gap: 8px; align-items: center; color: var(--ink-soft); }
.cm-item svg { width: 18px; height: 18px; fill: var(--orange); }

.message-form { padding: clamp(24px, 3vw, 40px); gap: 20px; box-shadow: 0 24px 60px rgba(20,20,20,.06); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.topic-chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.topic-chips legend { font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 10px; padding: 0; }
.topic-chips label { display: inline-flex; position: relative; cursor: pointer; font-size: 13px; letter-spacing: 0; text-transform: none; font-weight: 500; }
.topic-chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.topic-chips span { padding: 10px 16px; border: 1.5px solid var(--line); border-radius: 999px; transition: all .15s ease; }
.topic-chips input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.topic-chips input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.message-form .btn-solid { justify-content: center; }
.message-form .signup-status { color: var(--orange-deep); }
.form-note { font-size: 13px; color: var(--muted); margin: 0; }

@media (max-width: 980px) { .connect-grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .contact-tiles, .form-row { grid-template-columns: 1fr; } }
.contact-tile:first-child { grid-column: 1 / -1; }
.ct-value { overflow-wrap: normal; }
.newsletter h2 { margin-bottom: 18px; }
.contact-tile:last-child { grid-column: 1 / -1; }

/* ---------- Photos & case studies (from portfolio deck) ---------- */
picture { display: block; }
picture img { width: 100%; height: 100%; object-fit: cover; }
picture.cutout img { object-fit: contain; object-position: bottom center; }
.portrait-frame {
  position: relative; aspect-ratio: 4 / 4.2; border-radius: 4px; overflow: hidden;
  background: radial-gradient(circle at 50% 38%, #f3d9c3 0, #ead8c4 38%, var(--cream-deep) 70%);
}
.portrait-frame::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--orange); }
.portrait-frame picture { position: absolute; inset: 6% 0 0 0; }
.tl-when { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--orange-text); margin-bottom: 8px; }
.tl-img { aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; background: var(--night); }
.tl-img.cutout { background: var(--cream-deep); }
.tl-img.cutout img { padding-top: 12px; }

.skills-wrap { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(32px, 5vw, 80px); align-items: end; }
.skills-photo { align-self: stretch; min-height: 420px; position: relative; }
.skills-photo picture { position: absolute; inset: 0; }
.skills { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 40px; }
.skills div { border-top: 1px solid var(--night-line); padding-top: 16px; }
.skills dt { font-family: var(--serif); font-size: 22px; color: #fff; margin-bottom: 6px; }
.skills dd { margin: 0; color: var(--on-night-muted); font-size: 15px; }

.edu-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.edu-list li { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.edu-when { font-family: var(--serif); font-size: 24px; color: var(--orange); }
.edu-list strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 22px; }
.edu-list em { font-style: normal; color: var(--muted); font-size: 14px; }

.endorse { margin: 0; justify-content: space-between; }
.endorse blockquote { margin: 0; font-family: var(--serif); font-size: 22px; line-height: 1.35; }
.endorse figcaption { border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 2px; }
.endorse figcaption span { font-size: 13px; color: var(--muted); }

.hero-shot { border-radius: 4px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.how h3 { margin-top: 6px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 10px 18px; border: 1.5px solid var(--night-line-strong); border-radius: 999px; font-size: 14px; color: var(--on-night-soft); }
.chips.light li { border-color: var(--line); color: var(--ink-soft); background: var(--surface); }
.case-card .case-img { aspect-ratio: 16 / 10; border-radius: 4px; overflow: hidden; background: var(--night); }
.info-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.info-list li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.info-list span { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.info-list a { text-decoration: none; font-weight: 500; }
.info-list a:hover { color: var(--orange); }

.hero-banner .banner-img { position: absolute; inset: 0; }
.figures { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.figures .stat { font-size: clamp(40px, 4vw, 60px); }
.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.case-grid.flip > picture { order: 2; }
.case-grid > picture { border-radius: 4px; overflow: hidden; box-shadow: 0 24px 60px rgba(20,20,20,.18); max-height: 640px; }
.case-grid > picture img { object-fit: cover; }
.case-facts { margin: 24px 0; display: grid; gap: 14px; }
.case-facts dt { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--orange-text); }
.case-facts dd { margin: 4px 0 0; color: var(--ink-soft); }
.case-stats { list-style: none; margin: 14px 0 6px; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 28px; }
.case-stats li { display: grid; gap: 2px; min-width: 96px; }
.case-stats .stat { font-size: 40px; }
.case-stats li span:last-child { font-size: 13px; color: var(--muted); }
.night .case-stats li span:last-child { color: var(--on-night-muted); }
.night .case-stats .stat { color: var(--orange-dark-bg); }
.case-sub { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 22px 0 0; }
.case-takeaway { margin-top: 22px; padding-left: 18px; border-left: 3px solid var(--orange); color: var(--on-night-soft); font-family: var(--serif); font-size: 20px; }

@media (max-width: 980px) {
  .skills-wrap, .case-grid { grid-template-columns: 1fr; }
  .case-grid.flip > picture { order: 0; }
  .skills-photo { min-height: 360px; }
  .figures { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .skills { grid-template-columns: 1fr; }
  .edu-list li, .info-list li { grid-template-columns: 1fr; gap: 4px; }
}
.figures { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .figures .card { padding: 20px; } .figures .stat { font-size: 32px; } .case-stats .stat { font-size: 32px; } }

/* ---------- Flow imagery & Invest pages ---------- */
.post-img { display: block; aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; background: var(--cream-deep); }
.feature .post-img { aspect-ratio: 16 / 10; }
.article-hero { aspect-ratio: 16 / 9; }
.pillar-img { aspect-ratio: 4 / 3; border-radius: 3px; overflow: hidden; margin-bottom: 18px; background: var(--surface); }
.pillar-img.contain img { object-fit: contain; }
.pillar .ph { aspect-ratio: 4 / 3; min-height: 0; }
.gallery figure { margin: 0; display: grid; gap: 8px; }
.gallery figcaption { font-size: 13px; color: var(--muted); }
.gal-img { border-radius: 4px; overflow: hidden; height: 300px; background: var(--cream-deep); }
.gallery.g4 { grid-template-columns: repeat(4, 1fr); }
.gallery.g3 { grid-template-columns: 2fr 1fr 1fr; }
.why-img { border-radius: 4px; overflow: hidden; aspect-ratio: 4 / 3; background: #d6d0c0; }
.flow-hero .flow-logo { width: 220px; margin: 0 auto 26px; }
.flow-hero .flow-logo img { object-fit: contain; mix-blend-mode: multiply; }
.model-list { list-style: none; margin: 0; padding: 0; counter-reset: none; border-top: 1px solid var(--line); }
.model-list li { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
.model-list li span { font-family: var(--serif); color: var(--orange-text); font-size: 20px; }
.invest-hero { min-height: 72vh; }
.partner h3 { font-size: 30px; }
.partner ul { margin: 6px 0 0; padding-left: 18px; color: var(--ink-soft); display: grid; gap: 6px; }
.partner-get { border-top: 1px solid var(--line); padding-top: 14px; font-size: 14px; }
.proj-card { background: var(--night-2); border: 1px solid var(--night-line); border-radius: 4px; padding: 16px 16px 22px; }
.proj-card h3 { color: #fff; }
.proj-card .text-link { color: #fff; }
.give-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.give .stat { font-size: 44px; }
.plain { font-weight: 500; }
.proj-hero { padding: clamp(48px, 7vw, 96px) 0; background: var(--cream); }
.proj-hero-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.proj-hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 5vw, 72px); letter-spacing: -.02em; line-height: 1.02; margin-bottom: 22px; }
.proj-hero-img { border-radius: 4px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface); box-shadow: 0 30px 70px rgba(20,20,20,.12); }
.proj-facts { display: flex; gap: 36px; margin: 28px 0 0; flex-wrap: wrap; }
.proj-facts dt { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.proj-facts dd { margin: 4px 0 0; font-family: var(--serif); font-size: 26px; color: var(--orange-deep); }
.proof { margin-top: 18px; padding: 18px 20px; background: var(--cream); border-left: 3px solid var(--orange); }
.roadmap { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.roadmap li { border-top: 2px solid var(--night-line); padding-top: 18px; }
.roadmap h3 { font-family: var(--serif); font-weight: 500; font-size: 26px; color: #fff; margin: 12px 0 6px; }
.roadmap p { color: var(--on-night-muted); margin: 0; }
.info-list strong { font-family: var(--serif); font-weight: 500; font-size: 20px; }
.role p:last-child { color: var(--ink-soft); }
.next-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 40px; }
.next-proj { text-decoration: none; text-align: right; display: grid; gap: 4px; }
.next-proj strong { font-family: var(--serif); font-size: 26px; font-weight: 500; }
.next-proj:hover strong { color: var(--orange); }

@media (max-width: 1180px) { .primary-nav { gap: 18px; } .primary-nav a { font-size: 12px; } }
@media (max-width: 980px) {
  .gallery.g4, .gallery.g3 { grid-template-columns: 1fr 1fr; }
  .proj-hero-grid { grid-template-columns: 1fr; }
  .roadmap, .give-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .gallery.g4, .gallery.g3, .roadmap, .give-grid { grid-template-columns: 1fr; }
  .gal-img { height: 240px; }
  .next-proj { text-align: left; }
}
.primary-nav a { white-space: nowrap; }
.primary-nav { gap: clamp(14px, 1.7vw, 30px); }
@media (max-width: 1480px) { .identity-name, .identity-divider { display: none; } }
.info-list li { grid-template-columns: minmax(110px, 180px) 1fr; }

/* ---------- Accessibility & Insights states (audit 13 Oct 2026) ---------- */
.signup input:focus-visible, .form input:focus-visible, .form textarea:focus-visible, .form select:focus-visible { outline: 2px solid var(--orange-dark-bg); outline-offset: 2px; }
.form input:focus-visible, .form textarea:focus-visible, .form select:focus-visible { outline-color: var(--orange-deep); }
[aria-invalid="true"] { border-color: #b3261e !important; }
.form input, .form select { min-height: var(--tap); }
.soon-label { color: var(--ink-soft); font-weight: 600; }
.post-card.soon { cursor: default; }
.post-card.soon:hover h3 { text-decoration: none; }
.feature.soon:hover h2 { text-decoration: none; }
.cutout-thumb { background: radial-gradient(circle at 50% 40%, #f3d9c3 0, var(--cream-deep) 70%); }
.cutout-thumb img { object-fit: contain; object-position: bottom center; padding-top: 8px; }
.list-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.list-head .kicker { margin: 0; }
.filter-status { margin: 0; font-size: 14px; color: var(--ink-soft); }
.filter-empty { margin: 8px 0 0; padding: 28px; border: 1.5px dashed #c9bba8; border-radius: 4px; background: var(--cream); color: var(--ink-soft); }
.timeline .num, .stat, .edu-when { font-variant-numeric: lining-nums; }
/* Accent text on dark surfaces */
.night .num-sm, .roadmap .num-sm { color: var(--orange-dark-bg); border-color: var(--orange-dark-bg); }
.night .tag:not(.neutral), .proj-card .tag:not(.neutral) { background: rgba(233,138,82,.16); color: var(--orange-dark-bg); }
.text-link { display: inline-block; padding-top: 6px; }

/* ---------- Project pages: layers, pathway, pipeline, notes (Oct 2026) ---------- */
.proj-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.gal-note { margin: 14px 0 0; font-size: 13px; color: var(--ink-soft); font-style: italic; }
.disclosure { margin-top: 14px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 4px; font-size: 14px; color: var(--ink-soft); }
.model-list li > span:last-child strong { color: var(--ink); }
.layers-foot { margin: 32px 0 0; color: var(--on-night-soft); max-width: 60ch; }
.layers-foot strong { color: #fff; font-weight: 600; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.steps-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.steps-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.steps li { display: grid; gap: 8px; align-content: start; }
.step-img { aspect-ratio: 3 / 4; border-radius: 4px; overflow: hidden; background: var(--night-2); }
.steps-5 .step-img { aspect-ratio: 9 / 8; }
.steps h3 { font-family: var(--serif); font-weight: 500; font-size: 22px; color: #fff; margin: 4px 0 0; }
.steps p { margin: 0; color: var(--on-night-muted); font-size: 15px; }
.steps.light h3 { color: var(--ink); }
.steps.light p { color: var(--ink-soft); }
.steps .num-sm { margin-top: 6px; }
@media (max-width: 1180px) { .steps-7 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 980px) { .proj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .steps-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) { .proj-grid, .steps-7, .steps-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .proj-grid { grid-template-columns: 1fr; } .steps h3 { font-size: 19px; } }
.model-list li > span + span { font-family: var(--sans); color: var(--ink-soft); font-size: inherit; }

/* ---------- Theme toggle ---------- */
.theme-toggle {
  display: inline-grid; place-items: center; width: var(--tap); height: var(--tap); flex-shrink: 0;
  border-radius: 50%; border: 1.5px solid currentColor; background: transparent; color: inherit; cursor: pointer; padding: 0;
}
.theme-toggle svg { width: 20px; height: 20px; fill: currentColor; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}
.site-header .theme-toggle { margin-left: 4px; }
@media (max-width: 980px) { .site-header .theme-toggle { margin-left: auto; } .site-header .menu-button { margin-left: 10px; } }
img, picture { color-scheme: normal; }
/* theme-aware images */
.logo-dark { display: none !important; }
:root[data-theme="dark"] .logo-light { display: none !important; }
:root[data-theme="dark"] .logo-dark { display: block !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none !important; }
  :root:not([data-theme="light"]) .logo-dark { display: block !important; }
}

/* ---------- Flow Foundation: corporate look ---------- */
body.flow { font-size: 17px; }
.flow :is(h1, .section-title, .quote, .serif-display, .page-hero h1, .proj-hero h1, .feature h2) { font-family: var(--sans); font-weight: 700; letter-spacing: -0.025em; }
.flow :is(.card h3, .phase h3, .roadmap h3, .steps h3, .partner h3, .next-proj strong, .pillar h3) { font-family: var(--sans); font-weight: 700; letter-spacing: -0.01em; }
.flow :is(.stat, .num-sm, .proj-facts dd) { font-family: var(--sans); font-weight: 800; letter-spacing: -0.03em; }
.flow .btn-solid { background: var(--sun); color: var(--navy); font-weight: 600; }
.flow .btn-solid:hover { background: #ffc566; }
.flow .rule { background: linear-gradient(90deg, var(--sun), var(--leaf)); height: 3px; }
.flow .tag { background: rgba(252,176,65,.16); color: var(--orange-text); }
.flow .night .tag:not(.neutral), .flow .proj-card .tag:not(.neutral) { background: rgba(252,176,65,.16); color: var(--sun); }
.flow .text-link { border-bottom-color: var(--sun); }
.flow .card, .flow .phase { border-radius: 10px; }
.flow .phase { border-top-color: var(--sun); }
.flow .pillar { border-top-color: var(--leaf); border-radius: 0 0 10px 10px; }
.flow .stat { color: var(--orange-text); }
.flow .night .stat, .flow .night .num-sm { color: var(--sun); border-color: var(--sun); }

.flow-subnav { position: sticky; top: 0; z-index: 15; background: var(--night); color: var(--on-night); border-bottom: 1px solid var(--night-line); }
.flow-subnav .wrap { display: flex; align-items: center; gap: 22px; min-height: 60px; overflow-x: auto; scrollbar-width: none; }
.flow-subnav .wrap::-webkit-scrollbar { display: none; }
.flow-subnav .brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; text-decoration: none; font-weight: 700; letter-spacing: .02em; }
.flow-subnav .brand img { width: 30px; height: 30px; }
.flow-subnav nav { display: flex; gap: 4px; flex: 1; }
.flow-subnav nav a { padding: 10px 12px; border-radius: 6px; font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; color: var(--on-night-soft); min-height: var(--tap); display: inline-flex; align-items: center; }
.flow-subnav nav a:hover, .flow-subnav nav a[aria-current="page"] { color: var(--on-night); background: rgba(255,255,255,.08); }
.flow-subnav .btn-solid { padding: 10px 20px; flex-shrink: 0; }
@media (max-width: 760px) { .flow-subnav .btn-solid { display: none; } }

.flow-hero2 { background: var(--night); color: var(--on-night); position: relative; overflow: hidden; }
.flow-hero2 .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 96px); }
.flow-hero2 h1 { font-size: clamp(40px, 5.2vw, 76px); line-height: 1.02; margin: 18px 0 22px; color: var(--on-night); }
.flow-hero2 h1 em { font-style: normal; color: var(--sun); }
.flow-hero2 .lede { color: var(--on-night-soft); max-width: 52ch; }
.flow-hero2 .hero-logo { width: 162px; margin-bottom: 8px; }
.flow-hero2 .hero-logo img { width: 100%; height: auto; }
.flow-hero2 .hero-img { border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 11; box-shadow: 0 40px 90px rgba(0,0,0,.45); }
.flow-hero2 .cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.flow-hero2::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--sun), var(--leaf)); }

.impact-strip { background: var(--cream); border-bottom: 1px solid var(--line); }
.impact-strip ul { list-style: none; margin: 0; padding: 28px 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.impact-strip li { display: grid; gap: 2px; }
.impact-strip .stat { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; }
.impact-strip span:last-child { font-size: 14px; color: var(--ink-soft); }

.timeline-flow { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 0; }
.timeline-flow li { display: grid; grid-template-columns: 140px 1fr 1fr; gap: clamp(20px, 3vw, 48px); padding: 32px 0; border-top: 1px solid var(--line); align-items: start; }
.timeline-flow .yr { font-weight: 800; font-size: 26px; color: var(--orange-text); letter-spacing: -0.02em; }
.timeline-flow h3 { font-size: 22px; margin-bottom: 8px; }
.timeline-flow p { margin: 0; color: var(--ink-soft); }
.timeline-flow .t-img { border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--cream-deep); }
.timeline-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.timeline-gallery a { position: relative; display: block; min-width: 0; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 8px; background: var(--cream-deep); color: #fff; text-decoration: none; }
.timeline-gallery picture { display: contents; }
.timeline-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.timeline-gallery a::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(5, 15, 32, .78)); pointer-events: none; }
.timeline-gallery span { position: absolute; z-index: 1; left: 9px; bottom: 7px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.timeline-gallery a:hover img, .timeline-gallery a:focus-visible img { transform: scale(1.05); }
.timeline-gallery a:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }

.prog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.prog-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.prog-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(11,23,38,.12); }
.prog-card .post-img { border-radius: 0; aspect-ratio: 16 / 10; }
.prog-card .pc-body { padding: 22px 24px 26px; display: grid; gap: 10px; }
.prog-card h3 { font-size: 21px; line-height: 1.2; }
.prog-card p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.prog-card .pc-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--muted); }

.programme-intro { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; margin: -8px 0 54px; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.programme-intro > p { margin: 0; max-width: 760px; color: var(--ink-soft); font-size: clamp(17px, 1.5vw, 21px); }
.investment-key { display: grid; gap: 10px; }
.investment-key span { display: grid; grid-template-columns: 90px 1fr; gap: 12px; color: var(--ink-soft); font-size: 14px; }
.investment-key b { color: var(--orange-text); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.programme-showcase { display: grid; gap: clamp(64px, 9vw, 120px); }
.investment-program { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 6vw, 82px); align-items: center; }
.investment-program.reverse .programme-media { order: 2; }
.investment-program.reverse .programme-copy { order: 1; }
.programme-media { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 10px; min-width: 0; }
.programme-main-image { position: relative; display: block; min-height: 500px; overflow: hidden; border-radius: 14px; background: var(--cream-deep); }
.programme-main-image picture { height: 100%; }
.programme-main-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.programme-main-image:hover img, .programme-main-image:focus-visible img { transform: scale(1.025); }
.programme-main-image::after { content: ""; position: absolute; inset: 68% 0 0; background: linear-gradient(transparent, rgba(3,13,26,.82)); pointer-events: none; }
.programme-main-image > span { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 16px; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.programme-thumbs { display: grid; grid-template-rows: repeat(2, 1fr); gap: 10px; }
.programme-thumbs picture { height: 100%; }
.programme-thumbs img { width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: 10px; background: var(--cream-deep); }
.programme-copy .pc-meta { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.programme-copy h3 { margin: 18px 0 14px; font-size: clamp(34px, 4vw, 58px); line-height: 1; letter-spacing: -.035em; }
.programme-lede { margin: 0 0 26px; color: var(--ink-soft); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; }
.programme-value { display: grid; border-top: 1px solid var(--line); }
.programme-value > div { display: grid; grid-template-columns: 145px 1fr; gap: 18px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.programme-value h4 { margin: 2px 0 0; color: var(--orange-text); font-size: 11px; line-height: 1.35; letter-spacing: .1em; text-transform: uppercase; }
.programme-value p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.55; }
.programme-cta { display: inline-flex; justify-content: space-between; gap: 24px; width: 100%; margin-top: 24px; padding: 15px 18px; color: var(--on-night); background: var(--night); border-radius: 6px; font-size: 12px; font-weight: 800; letter-spacing: .07em; text-decoration: none; text-transform: uppercase; transition: background .2s, transform .2s; }
.programme-cta:hover, .programme-cta:focus-visible { background: var(--orange-deep); transform: translateY(-2px); }
.programme-disclosure { max-width: 920px; margin: 68px 0 0; padding-left: 18px; border-left: 3px solid var(--sun); color: var(--muted); font-size: 13px; }

.partner-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.partner-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 22px 24px; display: grid; gap: 6px; align-content: start; }
.partner-tile strong { font-size: 18px; font-weight: 700; }
.partner-tile span { font-size: 14px; color: var(--ink-soft); }
.partner-tile em { font-style: normal; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--leaf-text); }
.partner-tile.pending { border-style: dashed; }
.partner-tile.pending em { color: var(--orange-text); }
/* Logo tiles: the logo fills the tile; the details slide up on hover, focus or tap. */
.partner-tile.has-logo { position: relative; overflow: hidden; padding: 0; min-height: 190px; display: block; cursor: default; }
.partner-tile.pt-light { background: #fff; border-color: #d5dde5; }
.partner-tile.pt-dark { background: #0b1726; border-color: #22385a; }
.partner-tile.has-logo .partner-logo { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: contain; padding: 26px 30px; box-sizing: border-box; transition: transform .35s ease, filter .35s ease; }
.partner-tile.has-logo picture.partner-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.partner-tile.pt-photo .partner-logo { padding: 0; }
.partner-tile.pt-photo picture.partner-logo img { object-fit: cover; }
.partner-label { position: absolute; left: 10px; bottom: 10px; padding: 4px 9px; border-radius: 999px; background: rgba(11,23,38,.78); color: #fff !important; font-size: 12px !important; font-weight: 600; transition: opacity .25s ease; }
.partner-info { position: absolute; inset: 0; display: grid; gap: 6px; align-content: end; padding: 22px 24px; background: linear-gradient(180deg, rgba(11,23,38,.55), rgba(11,23,38,.94) 55%); color: #fff; opacity: 0; transform: translateY(14px); transition: opacity .3s ease, transform .3s ease; }
.partner-info strong { font-size: 18px; font-weight: 700; color: #fff; }
.partner-info span { color: #dbe4ee !important; }
.partner-info em { color: #a7d274 !important; }
.partner-info a { color: #fcb041; font-weight: 600; }
.partner-tile.has-logo:hover .partner-info, .partner-tile.has-logo:focus-within .partner-info, .partner-tile.has-logo:focus .partner-info { opacity: 1; transform: none; }
.partner-tile.has-logo:hover .partner-logo, .partner-tile.has-logo:focus .partner-logo, .partner-tile.has-logo:focus-within .partner-logo { transform: scale(1.04); filter: blur(1px); }
.partner-tile.has-logo:hover .partner-label, .partner-tile.has-logo:focus .partner-label { opacity: 0; }
.partner-tile.has-logo:focus-visible { outline: 3px solid var(--sun, #fcb041); outline-offset: 3px; }
.partner-tile.pending { min-height: 190px; }
@media (prefers-reduced-motion: reduce) { .partner-info, .partner-tile.has-logo .partner-logo { transition: none; } .partner-tile.has-logo:hover .partner-logo { transform: none; } }

.gov-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.gov-item { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.gov-item .gi { width: 44px; height: 44px; border-radius: 10px; background: rgba(145,195,99,.18); color: var(--leaf-text); display: grid; place-items: center; font-weight: 800; }
.gov-item h3 { font-size: 18px; margin-bottom: 4px; }
.gov-item p { margin: 0; font-size: 15px; color: var(--ink-soft); }

.cta-band { background: linear-gradient(120deg, var(--night) 0%, var(--night-2) 100%); color: var(--on-night); border-radius: 16px; padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.cta-band h2 { color: var(--on-night); }
.cta-band p { color: var(--on-night-soft); margin: 14px 0 0; }
.cta-band .cta-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }

@media (max-width: 1100px) { .impact-strip ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 980px) {
  .flow-hero2 .wrap, .cta-band { grid-template-columns: 1fr; }
  .cta-band .cta-row { justify-content: flex-start; }
  .prog-grid, .partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline-flow li { grid-template-columns: 1fr; gap: 12px; }
  .programme-intro, .investment-program { grid-template-columns: 1fr; }
  .investment-program.reverse .programme-media, .investment-program.reverse .programme-copy { order: initial; }
}
@media (max-width: 620px) {
  .impact-strip ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prog-grid, .partner-grid, .gov-grid { grid-template-columns: 1fr; }
  .programme-media { grid-template-columns: 1fr; }
  .programme-main-image { min-height: 390px; }
  .programme-thumbs { grid-template-columns: repeat(2, 1fr); grid-template-rows: none; }
  .programme-thumbs img { aspect-ratio: 4 / 3; }
  .programme-value > div { grid-template-columns: 1fr; gap: 7px; }
  .investment-key span { grid-template-columns: 76px 1fr; }
}

/* Impact strip figures: readable brand colour in both themes */
.impact-strip .stat { font-family: var(--sans); font-weight: 800; color: var(--orange-text); letter-spacing: -0.02em; }

/* Header: make room for the theme toggle; the social row stays in the footer and Connect page */
@media (max-width: 1640px) { .site-header .social { display: none; } }
@media (max-width: 1180px) and (min-width: 981px) { .site-header .header-actions { display: none; } }
.cta-band > * { min-width: 0; }
@media (max-width: 420px) { .cta-band { padding: 28px 20px; } .cta-band .section-title { font-size: 28px; } }
.split > *, .info-list li > * { min-width: 0; }
.info-list a { overflow-wrap: anywhere; }
.connect-grid > *, .form > *, .form fieldset { min-width: 0; }
.form select, .form input, .form textarea { max-width: 100%; }
.cta-band { border: 1px solid var(--night-line-strong); }
/* Flow banner heroes: navy scrim so kicker and lede stay legible over bright photos */
.flow .hero-banner::after { background: linear-gradient(90deg, rgba(11,23,38,.94) 0%, rgba(11,23,38,.82) 45%, rgba(11,23,38,.35) 100%), linear-gradient(0deg, rgba(11,23,38,.7), rgba(11,23,38,0) 60%); }
.flow .hero-banner h1 { line-height: 1.04 !important; margin: 12px 0 18px; max-width: 16ch; }
.flow .proj-hero h1 { font-size: clamp(34px, 3.9vw, 56px); line-height: 1.06; }

/* ---------- Hello Brand detail pages + Journey imagery (13 Oct 2026) ---------- */
/* Linked "how it works" cards */
a.how-link { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; transition: border-color .2s ease, transform .2s ease; }
a.how-link p { flex: 1; }
a.how-link .text-link { align-self: flex-start; }
a.how-link:hover { border-color: var(--orange); transform: translateY(-2px); }
a.how-link:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { a.how-link, a.how-link:hover { transform: none; transition: none; } }

/* Screen frame: screen-campaign imagery shown whole, like a screen on the wall */
.screen, .screen-shot { background: #141414; padding: clamp(6px, .8vw, 12px); border-radius: 10px; box-shadow: 0 24px 60px rgba(0,0,0,.28); }
.tl-img.screen { aspect-ratio: auto; align-self: center; }
.screen img, .screen-shot img { width: 100%; height: auto; object-fit: contain; border-radius: 3px; display: block; }

/* Before / after pair */
.tl-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tl-pair figure { margin: 0; display: grid; gap: 8px; }
.tl-pair .tl-img { aspect-ratio: 3 / 4; }
.tl-pair .pair-before img { object-position: 20% 50%; }
.tl-pair figcaption { font-size: 13px; color: var(--muted); }

/* Detail-page components */
.hero-dark .hb-sub-title { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 5.2vw, 76px); line-height: 1.04; max-width: 18ch; color: var(--on-night); margin-top: 10px; }
.proof h3 { font-family: var(--serif); font-weight: 500; font-size: 30px; }
.proof .proof-when { color: var(--on-night-muted); margin: 6px 0 4px; font-size: 15px; }
.mech-grid .card h3 { margin-bottom: 6px; }
.tick-list { list-style: none; margin: 18px 0 8px; padding: 0; display: grid; gap: 8px; }
.tick-list li { padding-left: 26px; position: relative; }
.tick-list li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 7px; border-left: 2px solid var(--orange-text); border-bottom: 2px solid var(--orange-text); transform: rotate(-45deg); }
.tall-shot { border-radius: 6px; overflow: hidden; max-width: 440px; }
.tall-shot img { width: 100%; height: auto; display: block; }
.nowrap { white-space: nowrap; }

/* ---------- Hello Brand main page v2 ---------- */
.hero-dark .hb-giant { font-size: clamp(48px, 7.4vw, 118px); line-height: .98; letter-spacing: -.02em; max-width: 14ch; }
.hb-tagline { margin-top: 18px; font-family: var(--serif); font-size: 22px; color: var(--orange-dark-bg); }
.hb-hero .hero-dark-grid { align-items: center; }

.aud { gap: 8px; }
.aud h3 { font-family: var(--serif); font-weight: 500; font-size: 28px; margin-bottom: 8px; }
.aud .aud-label { margin: 10px 0 0; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.aud .aud-label.win { color: var(--orange-text); padding-top: 14px; border-top: 1px solid var(--line); margin-top: 14px; }
.aud .aud-win { color: var(--ink); font-weight: 500; }

.eco-lede { color: var(--on-night-soft); max-width: 62ch; margin: -8px 0 40px; }
.eco-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--night-line-strong); border-left: 1px solid var(--night-line-strong); }
.eco-grid li { border-right: 1px solid var(--night-line-strong); border-bottom: 1px solid var(--night-line-strong); }
.eco-grid a { display: grid; gap: 8px; align-content: start; min-height: 168px; padding: 24px; text-decoration: none; color: var(--on-night); transition: background .2s ease; }
.eco-grid a:hover { background: rgba(255,255,255,.05); }
.eco-grid a:hover strong { color: var(--orange-dark-bg); }
.eco-grid .eco-n { font-family: var(--serif); font-size: 18px; color: var(--orange-dark-bg); }
.eco-grid strong { font-family: var(--serif); font-weight: 500; font-size: 22px; line-height: 1.2; }
.eco-grid span:last-child { font-size: 15px; color: var(--on-night-muted); }
@media (max-width: 980px) { .eco-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .eco-grid { grid-template-columns: 1fr; } .eco-grid a { min-height: 0; } }

.outcomes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.outcomes li { display: grid; gap: 6px; padding: 28px 24px 28px 0; border-bottom: 1px solid var(--line); }
.outcomes .o-goal { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.outcomes .stat { font-size: clamp(40px, 4.2vw, 60px); color: var(--orange-text); }
.outcomes .o-proof { font-size: 15px; color: var(--ink-soft); max-width: 30ch; }
@media (max-width: 980px) { .outcomes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .outcomes { grid-template-columns: 1fr; } }

.hb-vision .quote { color: var(--on-night); max-width: 26ch; }
.hb-sign { margin-top: 28px; color: var(--on-night-muted); font-size: 15px; }
@media (max-width: 620px) { .hero-dark .hb-giant { font-size: clamp(28px, 9.2vw, 48px); } }

/* ---------- Journey v2: career bar, facts, lessons (13 Oct 2026) ---------- */
.career { margin: 0 0 56px; }
.career-bar { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.career-bar li { flex: 0 0 calc(var(--w) - 3px); min-width: 0; }
.career-bar a { display: grid; gap: 6px; min-height: 76px; padding: 12px 14px; text-decoration: none; background: var(--cream-deep); color: var(--ink); border-radius: 4px; transition: background .2s ease; }
.career-bar li:last-child a { background: var(--orange-deep); color: #fff; }
.career-bar a:hover { background: var(--ink); color: var(--on-ink); }
.cb-year { font-family: var(--serif); font-size: 15px; font-variant-numeric: lining-nums; opacity: .85; }
.cb-name { font-size: 13px; font-weight: 600; letter-spacing: .02em; line-height: 1.25; }
.career-flow { display: flex; gap: 12px; align-items: baseline; margin-left: 70%; margin-top: 6px; padding: 8px 14px; border: 1.5px dashed var(--orange-text); border-radius: 4px; text-decoration: none; color: var(--orange-text); min-height: 44px; align-items: center; }
.career-flow:hover { background: var(--cream); }
@media (max-width: 760px) {
  .career-bar { flex-direction: column; gap: 6px; }
  .career-bar li { flex: none; }
  .career-bar a { min-height: 48px; grid-template-columns: 56px 1fr; align-items: center; position: relative; overflow: hidden; }
  .career-flow { margin-left: 0; }
}

.tl-role { color: var(--muted); font-weight: 500; letter-spacing: .14em; margin-left: 10px; }
.tl-facts { list-style: none; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 14px 32px; }
.tl-facts li { display: grid; gap: 2px; max-width: 16ch; }
.tl-facts strong { font-family: var(--serif); font-weight: 500; font-size: 30px; line-height: 1.05; color: var(--orange-text); font-variant-numeric: lining-nums; }
.tl-facts span { font-size: 13px; color: var(--muted); line-height: 1.35; }
.tl-lesson { margin: 24px 0 0; padding-left: 18px; border-left: 3px solid var(--orange); font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.35; color: var(--ink); }
.tl-lesson span { display: block; font-family: var(--sans); font-style: normal; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.tl-link { margin: 20px 0 0; }

/* Chapter 2: typographic panel instead of a photo placeholder */
.tl-type { aspect-ratio: 4 / 3; border-radius: 4px; background: var(--night); color: var(--on-night); padding: clamp(24px, 3vw, 40px); display: grid; align-content: space-between; }
.tt-big { font-family: var(--serif); font-size: clamp(96px, 11vw, 160px); line-height: .85; color: var(--orange-dark-bg); font-variant-numeric: lining-nums; }
.tt-label { font-family: var(--serif); font-size: clamp(20px, 2vw, 26px); line-height: 1.25; max-width: 16ch; }
.tt-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tt-row span { font-size: 13px; padding: 6px 12px; border: 1px solid var(--night-line-strong); border-radius: 999px; color: var(--on-night-soft); }
.timeline .tl-facts li { display: grid; grid-template-columns: none; gap: 2px; padding: 0; border: 0; align-items: start; }
.night .tl-type, :root[data-theme="dark"] .tl-type { border: 1px solid var(--night-line-strong); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tl-type { border: 1px solid var(--night-line-strong); } }
/* Promo Connection brand portals: two across, landscape */
.tl-portals { grid-column: 1 / -1; margin-top: 8px; }
.tl-portals-head { max-width: 70ch; margin: 0 0 20px; color: var(--ink-soft); }
.tl-portals-head strong { color: var(--ink); }
.tl-portals ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.timeline .tl-portals li { display: block; padding: 0; border: 0; }
.tl-portals figure { margin: 0; display: grid; gap: 10px; }
.portal-img { aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--night); box-shadow: 0 18px 44px rgba(0,0,0,.18); }
.portal-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tl-portals figcaption { font-size: 14px; color: var(--muted); }
.tl-portals figcaption strong { color: var(--ink); font-weight: 600; margin-right: 4px; }
@media (max-width: 620px) { .tl-portals ul { grid-template-columns: 1fr; gap: 18px; } }
.career-bar li:last-child .cb-year { opacity: 1; }

/* Three-figure row (invest.html track record, 24 Oct 2026) */
.figures.figures--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .figures.figures--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .figures.figures--3 { grid-template-columns: 1fr; } }

/* 28 Oct 2026, Claude: long button labels wrap on phones instead of pushing the page sideways (invest.html "Sponsor a pillar" overflowed 48px at 375px). */
@media (max-width: 520px) {
  .btn-outline, .btn-solid { white-space: normal; text-align: center; max-width: 100%; }
}
