/* New Ground. Layout concept: left-anchored editorial pages on a navy/paper rhythm,
   a live topographic contour field as the one recurring image, one gold ground line as the only ornament. */
:root {
  --navy: #011c5b;
  --navy-deep: #00113a;
  --gold: #d8b459;
  --paper: #f6f7fa;
  --tone: #e7eaf2;
  --ink: #0a1536;
  --ink-soft: #46516f;
  --ink-faint: #8c94ac;
  --on-navy: #f2f4f9;
  --on-navy-soft: #a9b3cd;
  --btn-bg: #011c5b;
  --btn-fg: #f6f7fa;
  --focus: #b8901f;
  --selection: #d8b459;

  --serif: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --t-display: clamp(2.75rem, 1.4rem + 5.2vw, 6rem);
  --t-h2: clamp(2rem, 1.3rem + 2.6vw, 3.4rem);
  --t-lead: clamp(1.35rem, 1.05rem + 1.1vw, 2rem);
  --t-body: 1.125rem;
  --t-small: 0.9375rem;

  --gutter: clamp(20px, 5vw, 64px);
  --max: 1240px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  color-scheme: light;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
[hidden] { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #061131;
    --tone: #0c1a45;
    --ink: #eef1f8;
    --ink-soft: #aab3ca;
    --ink-faint: #4e5a7c;
    --btn-bg: #d8b459;
    --btn-fg: #00113a;
    --focus: #d8b459;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #061131;
  --tone: #0c1a45;
  --ink: #eef1f8;
  --ink-soft: #aab3ca;
  --ink-faint: #4e5a7c;
  --btn-bg: #d8b459;
  --btn-fg: #00113a;
  --focus: #d8b459;
  color-scheme: dark;
}

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 260ms var(--ease-io) both vt-out; }
::view-transition-new(root) { animation: 520ms var(--ease-out) both vt-in; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.6;
  font-feature-settings: "ss01";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--navy);
}
::selection { background: var(--selection); color: #00113a; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
img { max-width: 100%; }
a { color: inherit; }

/* language */
html[data-lang="nl"] .en, html:not([data-lang="nl"]) .nl { display: none !important; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-optical-sizing: auto;
  letter-spacing: -0.022em;
  line-height: 1.04;
  text-wrap: balance;
  margin: 0;
}
h3 { font-size: 1.6rem; line-height: 1.15; letter-spacing: -0.012em; }
p { margin: 0; text-wrap: pretty; }

.wrap {
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  box-sizing: border-box;
}
.band { position: relative; }
.band--navy { background: var(--navy); color: var(--on-navy); }
.band--deep { background: var(--navy-deep); color: var(--on-navy); }
.band--tone { background: var(--tone); }
.section { padding-block: clamp(5rem, 3rem + 7vw, 9.5rem); }
.section--tight { padding-block: clamp(3.5rem, 2rem + 5vw, 6rem); }

.lead { font-size: var(--t-lead); line-height: 1.35; font-family: var(--serif); letter-spacing: -0.01em; }
.muted { color: var(--ink-soft); }
.band--navy .muted, .band--deep .muted { color: var(--on-navy-soft); }
.measure { max-width: 62ch; }

/* header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--navy); color: var(--on-navy);
  transition: box-shadow .3s ease;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(0, 10, 40, .55); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; }
.brand-mark { display: block; width: 44px; height: 36px; flex: none; }
.brand-word { font-family: var(--sans); font-size: .9rem; letter-spacing: .32em; font-weight: 400; white-space: nowrap; color: var(--on-navy); }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.4rem); }
.nav a {
  text-decoration: none; font-size: var(--t-small); font-weight: 500; position: relative; padding-block: .4rem;
  color: var(--on-navy-soft); transition: color .25s ease;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--on-navy); }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.lang { display: inline-flex; gap: 2px; font-size: .8125rem; font-weight: 600; }
.lang button {
  font: inherit; color: var(--on-navy-soft); background: transparent; border: 0; cursor: pointer;
  padding: .45rem .55rem; min-width: 40px; min-height: 40px; transition: color .2s ease, background .2s ease;
}
.lang button[aria-pressed="true"] { color: var(--navy); background: var(--gold); }
.lang button:not([aria-pressed="true"]):hover { color: var(--on-navy); }
.menu-btn { display: none; }

@media (max-width: 1020px) {
  .menu-btn {
    display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
    background: transparent; border: 0; color: var(--on-navy); cursor: pointer; padding: 0;
  }
  .menu-btn span { display: block; width: 22px; height: 2px; background: currentColor; position: relative; transition: background .2s; }
  .menu-btn span::before, .menu-btn span::after {
    content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: currentColor; transition: transform .35s var(--ease-out);
  }
  .menu-btn span::before { top: -7px; } .menu-btn span::after { top: 7px; }
  .site-header.menu-open .menu-btn span { background: transparent; }
  .site-header.menu-open .menu-btn span::before { transform: translateY(7px) rotate(45deg); }
  .site-header.menu-open .menu-btn span::after { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    position: fixed; inset: calc(76px + env(safe-area-inset-top, 0px)) 0 0 0; background: var(--navy);
    flex-direction: column; align-items: flex-start; gap: .25rem;
    padding: 2rem max(var(--gutter), env(safe-area-inset-right, 0px)) 3rem max(var(--gutter), env(safe-area-inset-left, 0px));
    clip-path: inset(0 0 100% 0); transition: clip-path .55s var(--ease-out); visibility: hidden;
  }
  .site-header.menu-open .nav { clip-path: inset(0 0 0 0); visibility: visible; }
  .nav a { font-family: var(--serif); font-size: 2.2rem; color: var(--on-navy); font-weight: 500; letter-spacing: -.02em; }
  .nav .lang { margin-top: 1.5rem; }
  .header-tools { display: flex; align-items: center; gap: .5rem; }
}

/* buttons and links */
.btn {
  display: inline-flex; align-items: center; gap: .7rem; text-decoration: none;
  background: var(--btn-bg); color: var(--btn-fg); font-weight: 600; font-size: 1rem;
  padding: 1rem 1.4rem; min-height: 52px; box-sizing: border-box; border: 0; cursor: pointer; font-family: inherit;
  transition: transform .2s ease, background .3s ease;
}
.btn:active { transform: scale(.97); }
.btn .arrow { transition: transform .4s var(--ease-out); }
.btn:hover .arrow { transform: translateX(5px); }
.band--navy .btn, .band--deep .btn { background: var(--gold); color: var(--navy-deep); }
.band--navy .btn:hover, .band--deep .btn:hover { background: #e4c672; }
.link {
  text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: .5rem;
  background-image: linear-gradient(currentColor, currentColor); background-size: 100% 2px; background-position: 0 100%;
  background-repeat: no-repeat; padding-bottom: 3px; transition: background-size .45s var(--ease-out);
}
.link:hover { background-size: 0 2px; background-position: 100% 100%; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; }

/* hero */
.hero { overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; padding-block: clamp(5rem, 3rem + 9vw, 11rem) clamp(4.5rem, 3rem + 6vw, 8rem); }
.hero h1 { font-size: var(--t-display); max-width: 12ch; }
.hero .lead { margin-top: 2rem; max-width: 34ch; color: var(--on-navy-soft); font-family: var(--sans); font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); line-height: 1.5; letter-spacing: 0; }
.hero .actions { margin-top: 2.75rem; }
.hero--page .wrap { padding-block: clamp(4rem, 2.5rem + 7vw, 8.5rem) clamp(3.5rem, 2.5rem + 4vw, 6rem); }
.hero--page h1 { font-size: clamp(2.5rem, 1.4rem + 4.4vw, 5.2rem); max-width: 14ch; }

.terrain { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(100deg, rgba(0,0,0,.18) 18%, #000 62%);
          mask-image: linear-gradient(100deg, rgba(0,0,0,.18) 18%, #000 62%); }
.terrain canvas { width: 100%; height: 100%; display: block; }
.band--deep .terrain { -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.12), #000 75%); mask-image: linear-gradient(90deg, rgba(0,0,0,.12), #000 75%); }

/* headline line rise on load */
.rise .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.rise .line > span { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .rise .line > span { animation: rise 1.05s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 110ms + 80ms); }
  .rise-after { animation: fade-up .9s var(--ease-out) both; animation-delay: var(--d, 420ms); }
}
@keyframes rise { from { transform: translateY(105%); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } }

/* scroll reveals: only elements below the fold at load are held back */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal].pending { opacity: 0; transform: translateY(26px); }
  .js [data-reveal] { transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0ms); }
  .js [data-reveal="mask"].pending { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); }
  .js [data-reveal="mask"] { transition: clip-path 1.2s var(--ease-out); clip-path: inset(0 0 0 0); }
  .js [data-reveal="row"].pending { opacity: 0; transform: translateX(-22px); }
}

/* statement with scroll ink fill */
.statement p { font-family: var(--serif); font-size: clamp(1.75rem, 1.1rem + 2.4vw, 3rem); line-height: 1.22; letter-spacing: -0.018em; max-width: 28ch; }
.statement .w { transition: color .35s ease; }
.statement.inking .w { color: var(--ink-faint); }
.statement.inking .w.on { color: var(--ink); }
.statement .gold-mark { color: inherit; background: linear-gradient(transparent 62%, rgba(216,180,89,.55) 62%); }

/* split layout */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 6vw, 7rem); align-items: start; }
.split > * { min-width: 0; }
.split .sticky { position: sticky; top: calc(110px + env(safe-area-inset-top, 0px)); }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } .split .sticky { position: static; } }

h2.big { font-size: var(--t-h2); }
.intro-text { margin-top: 1.5rem; max-width: 42ch; color: var(--ink-soft); }

/* stage rows (scan, build, run) */
.stages { display: grid; gap: 0; }
.stage {
  display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 1.25rem 2.5rem;
  padding-block: 2.4rem; position: relative; text-decoration: none;
}
.stage + .stage { box-shadow: inset 0 3px 0 0 var(--tone); }
.band--tone .stage + .stage { box-shadow: inset 0 3px 0 0 var(--paper); }
.stage::before {
  content: ""; position: absolute; top: 0; left: 0; height: 3px; width: 100%; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease-out); z-index: 1;
}
.stage:hover::before { transform: scaleX(1); }
.stage-name { font-family: var(--serif); font-size: clamp(2.2rem, 1.6rem + 1.8vw, 3.2rem); line-height: 1; letter-spacing: -.025em; transition: transform .5s var(--ease-out); }
.stage:hover .stage-name { transform: translateX(8px); }
.stage-body p { color: var(--ink-soft); max-width: 46ch; }
.stage-body .meta { margin-top: 1rem; font-size: var(--t-small); color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .stage { grid-template-columns: minmax(0, 1fr); } }

/* independence */
.contrast { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: end; }
.contrast > * { min-width: 0; }
.contrast h2 { font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4.6rem); }
.contrast .text { display: grid; gap: 1.25rem; color: var(--ink-soft); }
.contrast .text strong { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) { .contrast { grid-template-columns: minmax(0, 1fr); } }

/* venture list */
.venture-list { list-style: none; margin: 3.5rem 0 0; padding: 0; }
.venture-list li { position: relative; }
.venture-list li + li { box-shadow: inset 0 2px 0 0 rgba(169, 179, 205, .14); }
.venture-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); align-items: baseline; gap: .75rem 2rem;
  padding-block: 1.6rem; text-decoration: none; color: var(--on-navy);
}
.venture-row .vname { font-family: var(--serif); font-size: clamp(2.2rem, 1.2rem + 4vw, 4.8rem); line-height: 1; letter-spacing: -.03em; transition: transform .6s var(--ease-out), color .3s ease; }
.venture-row .vline { color: var(--on-navy-soft); font-size: 1rem; transition: color .3s ease; }
.venture-row:hover .vname { transform: translateX(14px); color: var(--gold); }
.venture-row:hover .vline { color: var(--on-navy); }
@media (max-width: 700px) { .venture-row { grid-template-columns: minmax(0, 1fr); } }

/* essay list */
.essays { list-style: none; margin: 0; padding: 0; }
.essays a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem 2rem; align-items: baseline;
  padding-block: 1.75rem; text-decoration: none;
}
.essays li + li { box-shadow: inset 0 2px 0 0 var(--tone); }
.essays .etitle { font-family: var(--serif); font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2.1rem); line-height: 1.15; letter-spacing: -.015em; transition: transform .5s var(--ease-out); }
.essays .edate { color: var(--ink-soft); font-size: var(--t-small); font-variant-numeric: tabular-nums; white-space: nowrap; }
.essays .edek { grid-column: 1 / -1; color: var(--ink-soft); max-width: 60ch; }
.essays a:hover .etitle { transform: translateX(8px); }
@media (max-width: 560px) { .essays a { grid-template-columns: minmax(0, 1fr); } }

/* closing band */
.closing .wrap { position: relative; z-index: 1; }
.closing h2 { font-size: clamp(2.6rem, 1.4rem + 4.6vw, 5.6rem); max-width: 13ch; }
.closing p { margin-top: 1.5rem; max-width: 44ch; color: var(--on-navy-soft); }
.closing .actions { margin-top: 2.5rem; }

/* footer */
.site-footer { background: var(--navy-deep); color: var(--on-navy-soft); font-size: var(--t-small); }
.site-footer .wrap { padding-block: 4.5rem 2.5rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 2.5rem; }
.footer-grid > * { min-width: 0; }
.site-footer .brand { color: var(--on-navy); }
.site-footer p { margin-top: 1.25rem; max-width: 34ch; line-height: 1.6; }
.site-footer p.tagline { margin-top: 1.1rem; font-family: var(--serif); font-size: 1.35rem; line-height: 1.25; letter-spacing: -.01em; color: var(--on-navy); }
.site-footer p.tagline + p { margin-top: .75rem; }
.site-footer nav { display: grid; gap: .55rem; align-content: start; }
.site-footer nav a, .site-footer .mail { color: var(--on-navy); text-decoration: none; }
.site-footer nav a:hover, .site-footer .mail:hover { color: var(--gold); }
.footer-head { color: var(--on-navy); font-weight: 600; margin-bottom: .4rem; }
.legal { margin-top: 4rem; display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; color: #7f89a6; font-size: .8125rem; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* approach page: stage scene */
.scene { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 6vw, 7rem); }
.scene > * { min-width: 0; }
.scene-pin { position: sticky; top: calc(120px + env(safe-area-inset-top, 0px)); height: max-content; }
.scene-word { position: relative; height: 1.05em; overflow: hidden; font-family: var(--serif); font-size: clamp(3.4rem, 2rem + 6vw, 7.5rem); line-height: 1; letter-spacing: -.035em; }
.scene-word span { position: absolute; left: 0; top: 0; transition: transform .8s var(--ease-out), opacity .5s ease; transform: translateY(110%); opacity: 0; }
.scene-word span.on { transform: translateY(0); opacity: 1; }
.scene-word span.past { transform: translateY(-110%); opacity: 0; }
.scene-bar { margin-top: 2rem; height: 4px; background: var(--tone); position: relative; max-width: 22rem; }
.scene-bar i { position: absolute; inset: 0; background: var(--gold); transform-origin: left; transform: scaleX(var(--p, .33)); transition: transform .6s var(--ease-out); }
.scene-note { margin-top: 1.25rem; color: var(--ink-soft); font-size: var(--t-small); font-variant-numeric: tabular-nums; }
.scene-steps { display: grid; gap: clamp(5rem, 10vw, 9rem); padding-block: 1rem 3rem; }
.step h3 { font-size: clamp(1.9rem, 1.3rem + 1.8vw, 2.8rem); letter-spacing: -.02em; }
.step .step-mobile { display: none; }
.step p { margin-top: 1.25rem; color: var(--ink-soft); max-width: 52ch; }
.facts { margin: 2rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 1.5rem 2.5rem; }
.facts div { min-width: 0; }
.facts dt { font-size: var(--t-small); color: var(--ink-soft); }
.facts dd { margin: .3rem 0 0; font-weight: 600; font-size: 1.05rem; }
.deliver { margin: 1.75rem 0 0; padding: 0; list-style: none; display: grid; gap: .65rem; }
.deliver li { padding-left: 1.9rem; position: relative; }
.deliver li::before {
  content: ""; position: absolute; left: .2rem; top: .18em; width: .42em; height: .78em;
  border-right: 3px solid var(--gold); border-bottom: 3px solid var(--gold); transform: rotate(45deg);
}
@media (max-width: 900px) {
  .scene { grid-template-columns: minmax(0, 1fr); }
  .scene-pin { display: none; }
  .step .step-mobile { display: block; font-family: var(--serif); font-size: 3.2rem; letter-spacing: -.03em; line-height: 1; margin-bottom: 1rem; color: var(--navy); }
}
@media (max-width: 900px) and (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .step .step-mobile { color: var(--gold); } }
@media (max-width: 900px) { :root[data-theme="dark"] .step .step-mobile { color: var(--gold); } }

/* capability index */
.caps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem clamp(2rem, 6vw, 6rem); }
.caps li { min-width: 0; }
.caps h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.caps p { margin-top: .75rem; color: var(--ink-soft); max-width: 44ch; }
@media (max-width: 700px) { .caps { grid-template-columns: minmax(0, 1fr); } }

/* principles */
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(3rem, 6vw, 5rem) clamp(2rem, 6vw, 6rem); margin-top: 4rem; }
.principles > div { min-width: 0; }
.principles h3 { font-size: clamp(1.6rem, 1.2rem + 1.3vw, 2.3rem); color: var(--on-navy); }
.principles p { margin-top: 1rem; color: var(--on-navy-soft); max-width: 42ch; }
.principles .bar { display: block; width: 3rem; height: 4px; background: var(--gold); margin-bottom: 1.5rem; transform-origin: left; }
@media (max-width: 700px) { .principles { grid-template-columns: minmax(0, 1fr); } }

/* ventures page */
.model { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 4rem; position: relative; }
.model > div { min-width: 0; padding-right: 2rem; padding-top: 2.25rem; position: relative; }
.model > div::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--tone); }
.model > div::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease-out); transition-delay: var(--d, 0ms); }
.model.drawn > div::after { transform: scaleX(1); }
.model h3 { font-size: 1.55rem; }
.model p { margin-top: .8rem; color: var(--ink-soft); max-width: 32ch; }
@media (max-width: 760px) { .model { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; } }

.venture { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.venture > * { min-width: 0; }
.venture + .venture { margin-top: clamp(5rem, 9vw, 8rem); }
.venture h2 { font-size: clamp(3rem, 1.6rem + 5.5vw, 6rem); letter-spacing: -.035em; }
.venture .status { margin-top: 1.25rem; display: inline-flex; align-items: center; gap: .6rem; font-size: var(--t-small); font-weight: 600; }
.venture .status i { width: 10px; height: 10px; background: var(--gold); display: inline-block; }
.venture .vlead { font-family: var(--serif); font-size: var(--t-lead); line-height: 1.3; letter-spacing: -.01em; }
.venture .vtext { margin-top: 1.25rem; color: var(--ink-soft); max-width: 50ch; }
@media (max-width: 800px) { .venture { grid-template-columns: minmax(0, 1fr); } }

/* thinking page */
.reading { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2.5rem, 6vw, 7rem); }
.reading > * { min-width: 0; }
.toc { position: sticky; top: calc(120px + env(safe-area-inset-top, 0px)); display: grid; gap: .25rem; align-content: start; }
.toc a { text-decoration: none; color: var(--ink-soft); padding: .55rem 0 .55rem 1.1rem; position: relative; font-size: var(--t-small); line-height: 1.4; transition: color .25s; }
.toc a::before { content: ""; position: absolute; left: 0; top: .55rem; bottom: .55rem; width: 3px; background: var(--tone); transition: background .3s; }
.toc a.active { color: var(--ink); }
.toc a.active::before { background: var(--gold); }
.article + .article { margin-top: clamp(5rem, 9vw, 8rem); }
.article h2 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.2rem); max-width: 18ch; scroll-margin-top: 120px; }
.article .byline { margin-top: 1rem; color: var(--ink-soft); font-size: var(--t-small); font-variant-numeric: tabular-nums; }
.article .body { margin-top: 2rem; display: grid; gap: 1.25rem; max-width: 64ch; font-size: 1.1875rem; line-height: 1.7; }
.article .body p:first-child::first-line { font-weight: 600; }
.pull { font-family: var(--serif); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.3; letter-spacing: -.012em; padding-block: .75rem; color: var(--ink); max-width: 30ch; }
@media (max-width: 900px) { .reading { grid-template-columns: minmax(0, 1fr); } .toc { position: static; } }

/* contact page */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(3rem, 7vw, 7rem); }
.contact-grid > * { min-width: 0; }
.mail-big { font-family: var(--serif); font-size: clamp(1.5rem, .9rem + 2.6vw, 3rem); letter-spacing: -.02em; line-height: 1.1; word-break: break-all; user-select: all; color: var(--ink); }
.copy-row { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; }
.copy-state { font-size: var(--t-small); color: var(--ink-soft); min-height: 1.5em; }
.next { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 2rem; counter-reset: s; }
.next li { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 1rem; }
.next li::before { counter-increment: s; content: counter(s); font-family: var(--serif); font-size: 1.6rem; line-height: 1.1; color: var(--ink); }
.next h3 { font-size: 1.3rem; }
.next p { margin-top: .4rem; color: var(--ink-soft); }
.details { display: grid; gap: 1.5rem; font-size: 1rem; align-content: start; }
.details dt { font-size: var(--t-small); color: var(--ink-soft); }
.details dd { margin: .25rem 0 0; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

.mt-l { margin-top: clamp(3rem, 6vw, 5rem); }
.mt-m { margin-top: 2rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* work cases: each carries a touch of its own brand */
.case { padding-block: clamp(5rem, 3rem + 6vw, 8.5rem); }
.case-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 2rem 3rem; }
.case-head > div { min-width: 0; }
.case-name { font-size: clamp(3.2rem, 1.6rem + 6vw, 6.4rem); letter-spacing: -.035em; line-height: .95; }
.case-line { margin-top: 1.5rem; font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem); line-height: 1.3; max-width: 30ch; }
.case-note { margin-top: .6rem; font-size: var(--t-small); }
.case-meta { display: grid; gap: 1rem; justify-items: start; }
.case-tag { display: inline-flex; align-items: center; gap: .6rem; font-size: var(--t-small); font-weight: 600; }
.case-tag i { width: 10px; height: 10px; display: inline-block; }
.case-grid { margin: clamp(3rem, 6vw, 5rem) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem clamp(2rem, 4vw, 4rem); }
.case-grid > div { min-width: 0; padding-top: 1.5rem; position: relative; }
.case-grid > div::before { content: ""; position: absolute; top: 0; left: 0; width: 2.5rem; height: 4px; }
.case-grid dt { font-weight: 600; font-size: 1.05rem; }
.case-grid dd { margin: .75rem 0 0; line-height: 1.65; }
@media (max-width: 860px) { .case-grid { grid-template-columns: minmax(0, 1fr); } }

/* Craftwise: its own ground, orange, C mark and Sora (fixed look in both themes) */
.case-id { display: flex; align-items: center; gap: clamp(.9rem, 2vw, 1.5rem); }
.case-logo { width: clamp(44px, 5vw, 64px); height: auto; flex: none; }
.case--craftwise { background: #faf9f7; color: #1c1c1c; }
.case--craftwise .case-name { font-family: "Sora", var(--sans); font-weight: 700; letter-spacing: -.045em; }
.case--craftwise .case-line { font-family: "Sora", var(--sans); font-weight: 700; letter-spacing: -.03em; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.3rem); line-height: 1.12; max-width: 20ch; }
.case--craftwise .case-note, .case--craftwise dd { color: #57514b; }
.case--craftwise .case-tag i, .case--craftwise .case-grid > div::before { background: #d26c3c; }
.case--craftwise .link { color: #1c1c1c; }
.case--craftwise ::selection { background: #d26c3c; color: #fff; }

/* Bushlink: its slate night, safari yellow and orange, paw badge and heavy Roboto */
.case--bushlink { background: #192535; color: #fff; }
.case--bushlink .case-name { font-family: "Roboto", var(--sans); font-weight: 900; letter-spacing: -.03em; }
.case--bushlink .case-line { font-family: "Roboto", var(--sans); font-weight: 900; letter-spacing: -.02em; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.3rem); line-height: 1.12; max-width: 22ch; }
.case--bushlink .case-line .hl { color: #f8c900; }
.case--bushlink .case-note, .case--bushlink dd { color: #c3cad6; }
.case--bushlink .case-tag i { background: #fe6903; }
.case--bushlink .case-grid > div::before { background: #f8c900; }
.case--bushlink .link { color: #fff; }
.case--bushlink ::selection { background: #f8c900; color: #192535; }

/* small venture logos in the home list */
.venture-row .vname { display: inline-flex; align-items: center; gap: .32em; }
.vlogo { width: .72em; height: auto; flex: none; }

/* sections reached by a link land below the sticky header */
section[id], article[id] { scroll-margin-top: calc(76px + env(safe-area-inset-top, 0px)); }

/* article pages */
.hero--post h1 { font-size: clamp(2.3rem, 1.4rem + 3.2vw, 4.2rem); max-width: 20ch; }
.crumb { margin-bottom: 1.5rem; font-size: var(--t-small); font-weight: 600; }
.crumb a { color: var(--gold); text-decoration: none; }
.crumb a:hover { text-decoration: underline; text-underline-offset: 4px; }
.post-byline { margin-top: 1.75rem; color: var(--on-navy-soft); font-size: var(--t-small); font-variant-numeric: tabular-nums; }
.post { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.post > * { min-width: 0; }
.post-body .body { display: grid; gap: 1.35rem; max-width: 64ch; font-size: 1.1875rem; line-height: 1.72; }
.post-body .body p:first-child { font-size: 1.3rem; line-height: 1.6; color: var(--ink); }
.post-body .pull { position: relative; padding-top: 1.4rem; margin-block: 1rem; }
.post-body .pull::before { content: ""; position: absolute; top: 0; left: 0; width: 3rem; height: 4px; background: var(--gold); }
.sources { margin-top: 3.5rem; max-width: 64ch; }
.sources h2 { font-family: var(--sans); font-size: 1rem; font-weight: 600; letter-spacing: 0; }
.sources ul { margin: .75rem 0 0; padding-left: 1.1rem; display: grid; gap: .4rem; font-size: var(--t-small); color: var(--ink-soft); }
.sources a { color: var(--ink-soft); text-underline-offset: 3px; }
.sources a:hover { color: var(--ink); }
.post-aside { position: sticky; top: calc(110px + env(safe-area-inset-top, 0px)); display: grid; gap: 1.25rem; justify-items: start; }
.post-aside h2 { font-family: var(--sans); font-size: 1rem; font-weight: 600; letter-spacing: 0; }
.post-aside ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; width: 100%; }
.post-aside li a { display: block; padding: .8rem 0; text-decoration: none; font-family: var(--serif); font-size: 1.2rem; line-height: 1.3; box-shadow: inset 0 -2px 0 0 var(--tone); transition: color .25s ease, padding-left .4s var(--ease-out); }
.post-aside li a:hover { padding-left: .5rem; color: var(--ink-soft); }
.post-aside .btn { margin-top: .75rem; }
@media (max-width: 900px) { .post { grid-template-columns: minmax(0, 1fr); } .post-aside { position: static; } }

.closing--cta h2 { max-width: 20ch; font-size: clamp(2.2rem, 1.3rem + 3.4vw, 4.4rem); }

/* clients carousel */
.clients-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem 2rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.clients-head > div:first-child { min-width: 0; }
.carousel-nav { display: flex; gap: .5rem; }
.cnav { width: 48px; height: 48px; display: inline-grid; place-items: center; border: 0; cursor: pointer; background: var(--tone); color: var(--ink); transition: background .25s ease, color .25s ease, opacity .25s ease; }
.cnav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cnav:hover:not(:disabled) { background: var(--btn-bg); color: var(--btn-fg); }
.cnav:disabled { opacity: .35; cursor: default; }
.track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc(40% - .75rem); gap: 1.25rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain;
}
.track::-webkit-scrollbar { display: none; }
.tile {
  scroll-snap-align: start; position: relative; overflow: hidden; aspect-ratio: 4 / 3; max-width: 100%;
  background: var(--tone); color: var(--ink); display: grid; place-items: center; text-decoration: none;
}
.logo-word { font-family: var(--serif); font-size: clamp(1.7rem, 1.1rem + 2vw, 2.7rem); letter-spacing: -.02em; text-align: center; padding-inline: 1.5rem; line-height: 1.1; }
.tile-note { position: absolute; left: 1.25rem; bottom: 1.1rem; font-size: var(--t-small); color: var(--ink-soft); }
.tile--ghost { background: var(--navy); color: var(--on-navy); place-items: end start; }
.tile--ghost .terrain { -webkit-mask-image: linear-gradient(160deg, #000 10%, rgba(0,0,0,.25) 70%); mask-image: linear-gradient(160deg, #000 10%, rgba(0,0,0,.25) 70%); }
.ghost-text { position: relative; z-index: 1; display: grid; gap: .6rem; padding: clamp(1.25rem, 3vw, 1.9rem); }
.ghost-title { font-family: var(--serif); font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2.2rem); line-height: 1.1; letter-spacing: -.02em; max-width: 14ch; }
.ghost-sub { color: var(--on-navy-soft); font-size: var(--t-small); max-width: 32ch; }
.ghost-cta { margin-top: .4rem; display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--gold); }
.ghost-cta .arrow { transition: transform .4s var(--ease-out); }
.tile--ghost:hover .ghost-cta .arrow { transform: translateX(6px); }
.tile--ghost::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 3px var(--gold); opacity: 0; transition: opacity .35s ease; }
.tile--ghost:hover::after, .tile--ghost:focus-visible::after { opacity: 1; }
@media (max-width: 700px) { .track { grid-auto-columns: 84%; } }
/* client tiles: the logo is the whole story */
.tile--ganda { background: #142b62; }
.tile--ganda::before {
  content: ""; position: absolute; inset: -25%; transform: rotate(9deg);
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'><g fill='none' stroke='%23a9bfe6' stroke-opacity='.42' stroke-width='1.4' stroke-linecap='round'><path d='M-4 36 C 12 30, 20 6, 36 -4'/><path d='M28 68 C 44 60, 52 36, 68 28'/><path d='M-4 28 C 6 44, 30 50, 36 68'/><path d='M28 -4 C 38 14, 62 20, 68 36'/></g><g fill='%23a9bfe6' fill-opacity='.45'><circle cx='16' cy='16' r='1.9'/><circle cx='48' cy='48' r='1.9'/><circle cx='16' cy='48' r='1.9'/><circle cx='48' cy='16' r='1.9'/></g></svg>") center / 96px 96px;
}
.tile--ganda::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(85% 75% at 50% 48%, rgba(12, 30, 72, .55) 0%, rgba(12, 30, 72, 0) 38%, rgba(3, 10, 30, .78) 100%);
}
.tile--ganda .client-logo { position: relative; z-index: 1; }
.tile--ganda .client-logo { width: clamp(120px, 11vw, 150px); height: auto; filter: drop-shadow(0 14px 22px rgba(0, 6, 22, .55)); transition: transform .6s var(--ease-out); }
.tile--ganda:hover .client-logo { transform: scale(1.04); }
.tile--photo { background: #bfc0c4; }
.client-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.tile--photo:hover .client-photo { transform: scale(1.03); }

.post--single { grid-template-columns: minmax(0, 1fr); }

/* portrait: the founder photo under a navy overlay */
.portrait { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; max-width: 100%; background: var(--navy); }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; filter: saturate(.55) contrast(1.04); transition: transform 1.2s var(--ease-out); }
.portrait::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(1, 28, 91, .6) 0%, rgba(1, 28, 91, .34) 40%, rgba(1, 28, 91, .3) 100%);
}
a.portrait:hover img, .about-photo:hover .portrait img { transform: scale(1.03); }

/* about page */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.about > * { min-width: 0; }
.about-photo { margin: 0; position: sticky; top: calc(110px + env(safe-area-inset-top, 0px)); }
.about-photo figcaption { margin-top: 1.1rem; display: grid; gap: .15rem; color: var(--ink-soft); font-size: var(--t-small); }
.about-photo figcaption strong { color: var(--ink); font-size: 1.05rem; font-weight: 600; }
.about-text .lead { max-width: 30ch; }
.about-body { margin-top: 2rem; display: grid; gap: 1.25rem; max-width: 60ch; color: var(--ink-soft); font-size: 1.125rem; line-height: 1.7; }
@media (max-width: 860px) {
  .about { grid-template-columns: minmax(0, 1fr); }
  .about-photo { position: static; max-width: 420px; }
}

/* contact page portrait */
.contact-side { display: grid; gap: 1.25rem; align-content: start; }
.portrait--small { width: min(100%, 260px); }
.portrait-caption { font-size: var(--t-small); color: var(--ink-soft); margin-bottom: 1rem; }
.portrait-caption strong { color: var(--ink); font-size: 1.05rem; font-weight: 600; }

.hero--page h1 .line > span { max-width: 18ch; }
