/* ============================================================
   The Bidak Group
   Dark research-lab system. Notes: _notes/design-system.md
   Type: Inter (300 / 400 / 500) + JetBrains Mono (labels)
   One accent: orange. Everything else is ink and bone.
   ============================================================ */

:root {
  --bg: #0a0a0a;                             /* ink */
  --bg-raised: #101010;                      /* cards, form */
  --text: #f5f3ee;                           /* bone */
  --muted: rgba(245, 243, 238, .64);         /* body copy */
  --dim: rgba(245, 243, 238, .5);            /* labels, meta */
  --line: rgba(255, 255, 255, .1);           /* hairlines */
  --line-strong: rgba(255, 255, 255, .18);
  --accent: #e7620f;                         /* the one orange */
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --max-w: 1440px;
  --gutter: clamp(20px, 6vw, 87px);
  --header-h: 88px;
  --section-y: clamp(72px, 9vw, 128px);
  --radius: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--muted);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 300;
  color: var(--text);
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.4vw, 4.25rem); line-height: 1.12; letter-spacing: -.02em; }
h2 { font-size: clamp(2rem, 4vw, 3.125rem); line-height: 1.2; letter-spacing: -.014em; }
h3 { font-size: clamp(1.625rem, 3vw, 2.3125rem); line-height: 1.19; letter-spacing: -.009em; }
h4 { font-size: clamp(1.25rem, 2vw, 1.6875rem); line-height: 1.22; letter-spacing: -.004em; }

p { margin: 0; text-wrap: pretty; }
p + p { margin-top: 1em; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure, blockquote { margin: 0; }
button { font: inherit; color: inherit; }
strong { font-weight: 500; color: var(--text); }

::selection { background: var(--accent); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  color: var(--bg);
  background: var(--text);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
}
.skip-link:focus { top: 16px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }
.section--tight { padding-block: calc(var(--section-y) * .6); }
.section--flush-top { padding-top: 0; }
.rule { height: 1px; border: 0; margin: 0; background: var(--line); }

.measure { max-width: 34em; }
.measure-wide { max-width: 44em; }
.center { text-align: center; }
.center .measure, .center .measure-wide { margin-inline: auto; }

.stack > * + * { margin-top: 20px; }
.stack-lg > * + * { margin-top: 32px; }

/* ---------- Small type ---------- */
.label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
}
.label--accent { color: var(--accent); }
.label .mark { width: 34px; flex: none; color: var(--muted); }

.kicker { font-size: 14px; color: var(--dim); }

.lede {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  font-weight: 300;
  line-height: 1.6;
  color: var(--muted);
}
.bright { color: var(--text); }

.text-link {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 4px;
  transition: text-decoration-color .2s;
}
.text-link:hover { text-decoration-color: var(--accent); }

.mark { display: block; height: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 9px 17px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--bg);
  background: var(--text);
  border: 1px solid var(--text);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn:hover { background: #fff; border-color: #fff; }
.btn svg { width: 14px; height: 14px; flex: none; }

.btn--outline { color: var(--text); background: transparent; border-color: var(--line-strong); }
.btn--outline:hover { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .34); }

.btn--accent { color: var(--bg); background: var(--accent); border-color: var(--accent); }
.btn--accent:hover { background: #f47a2c; border-color: #f47a2c; }

.btn--lg { min-height: 46px; padding: 12px 22px; font-size: 15px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.center .btn-row { justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  background: linear-gradient(to bottom, rgba(10, 10, 10, .9), rgba(10, 10, 10, 0));
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s;
}
.site-header.is-solid {
  background: rgba(10, 10, 10, .8);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}
.header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding-inline: clamp(20px, 3vw, 44px);
}
.wordmark {
  justify-self: start;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .42em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text);
}
.main-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 18px;
}
.nav-group { display: flex; align-items: center; gap: 4px; }
.nav-group:first-child { justify-content: flex-end; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--muted);
  background: none;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: color .2s;
}
.nav-link:hover,
.nav-link[aria-current="page"],
.nav-drop.is-open > .nav-link { color: var(--text); }
.nav-link svg { width: 9px; height: 9px; opacity: .7; transition: transform .2s; }

.nav-drop { position: relative; }
.nav-menu a { display: block; }
.nav-menu-title { display: block; font-weight: 500; line-height: 1.3; color: var(--text); }
.nav-menu-sub { display: block; line-height: 1.45; color: var(--dim); }

.nav-mark {
  display: grid;
  place-items: center;
  width: 76px;
  height: 52px;
  color: var(--text);
}
.nav-mark .mark { width: 50px; }

.header-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; }

/* Desktop menu: dropdown panels */
@media (min-width: 1021px) {
  .nav-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    min-width: 330px;
    padding: 8px;
    background: #111;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: 0 42px 90px -50px rgba(0, 0, 0, .8);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 6px);
    transition: opacity .18s, transform .18s, visibility .18s;
  }
  /* invisible bridge so the panel stays open while the pointer crosses the gap */
  .nav-menu::before { content: ""; position: absolute; inset: -12px 0 auto 0; height: 12px; }
  .nav-drop:hover > .nav-menu,
  .nav-drop:focus-within > .nav-menu,
  .nav-drop.is-open > .nav-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
  }
  .nav-drop:hover > .nav-link svg,
  .nav-drop.is-open > .nav-link svg { transform: rotate(180deg); }
  .nav-menu a { padding: 12px 14px; border-radius: 10px; transition: background-color .15s; }
  .nav-menu a:hover,
  .nav-menu a[aria-current="page"] { background: rgba(255, 255, 255, .05); }
  .nav-menu-title { font-size: 14px; }
  .nav-menu-sub { margin-top: 3px; font-size: 13px; }
}

/* Phone and tablet menu: one full-screen panel */
@media (max-width: 1020px) {
  :root { --header-h: 68px; }
  .header-inner { display: flex; gap: 10px; }
  .wordmark { margin-right: auto; font-size: 12px; letter-spacing: .36em; }
  .header-actions .nav-link { display: none; }

  .nav-toggle {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    cursor: pointer;
  }
  .nav-toggle span {
    position: absolute;
    width: 15px;
    height: 1.5px;
    background: var(--text);
    transition: transform .25s;
  }
  .nav-toggle span:first-child { transform: translateY(-3.5px); }
  .nav-toggle span:last-child { transform: translateY(3.5px); }
  .menu-open .nav-toggle span:first-child { transform: rotate(45deg); }
  .menu-open .nav-toggle span:last-child { transform: rotate(-45deg); }

  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    display: none;
    padding: 20px var(--gutter) 56px;
    background: var(--bg);
    border-top: 1px solid var(--line);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .menu-open .main-nav { display: block; }
  .menu-open .site-header { background: var(--bg); }
  body.menu-open { overflow: hidden; }

  .nav-mark { display: none; }
  .nav-group { display: block; }
  .nav-link {
    display: flex;
    width: 100%;
    padding: 12px 0;
    font-size: 26px;
    font-weight: 300;
    letter-spacing: -.01em;
    color: var(--text);
    border-radius: 0;
  }
  .nav-drop > .nav-link {
    padding: 28px 0 6px;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--dim);
    cursor: default;
    pointer-events: none;
  }
  .nav-drop > .nav-link svg { display: none; }
  .nav-menu a { padding: 11px 0; }
  .nav-menu-title { font-size: 26px; font-weight: 300; letter-spacing: -.01em; }
  .nav-menu-sub { margin-top: 2px; font-size: 14px; }
}
@media (max-width: 420px) {
  .header-actions .btn { padding-inline: 13px; font-size: 13px; }
}

/* ---------- Heroes ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(48px, 7.5vw, 104px));
  overflow: hidden;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 2; }

/* Home: centered headline over the field */
.hero--home {
  min-height: clamp(620px, 52vw, 760px);
  padding-bottom: clamp(300px, 30vw, 420px);
  text-align: center;
}
.hero--home h1 { font-size: clamp(2.625rem, 6.1vw, 4.5rem); line-height: 1.08; }
.hero--home .lede { max-width: 36em; margin: 18px auto 0; }
.hero--home::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 120px;
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0), var(--bg));
  pointer-events: none;
}

/* Inner pages: left-aligned headline, optional visual on the right */
.hero--page { padding-bottom: clamp(64px, 8vw, 112px); border-bottom: 1px solid var(--line); }
.hero--page .hero-copy { max-width: 620px; }
.hero--page .lede { max-width: 30em; }
.hero-copy .kicker + h1, .hero-copy .label + h1, .hero-copy .featured-meta + h1 { margin-top: 18px; }
.hero-copy h1 + .lede { margin-top: 22px; }
.hero-copy .btn-row { margin-top: 30px; }
.hero--page .hero-canvas {
  left: auto;
  width: 62%;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 38%), linear-gradient(to bottom, transparent 6%, #000 30%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 38%), linear-gradient(to bottom, transparent 6%, #000 30%);
  mask-composite: intersect;
}
.hero--plain { border-bottom: 0; padding-bottom: clamp(40px, 5vw, 64px); }

.hero-photo {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-raised);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.88); }
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
@media (max-width: 860px) {
  .hero--page .hero-canvas {
    width: 100%;
    height: 56%;
    top: auto;
    opacity: .38;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 45%);
    -webkit-mask-composite: source-over;
    mask-image: linear-gradient(to bottom, transparent, #000 45%);
    mask-composite: add;
  }
  .hero-split { grid-template-columns: 1fr; }
}

/* One quiet entrance for the hero copy. Pure CSS, so nothing is hidden if scripts fail. */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-copy > *:nth-child(2) { animation-delay: .08s; }
  .hero-copy > *:nth-child(3) { animation-delay: .16s; }
  .hero-copy > *:nth-child(4) { animation-delay: .24s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
  }
}

/* ---------- Intro block under the home hero ---------- */
.intro { position: relative; z-index: 2; margin-top: -56px; text-align: center; }
.intro h2 { font-size: clamp(1.75rem, 3vw, 2.3125rem); line-height: 1.19; letter-spacing: -.009em; }
.intro p { max-width: 34em; margin: 16px auto 0; }
.intro .btn-row { margin-top: 26px; }

/* ---------- Feature bands: visual on the left, words on the right ---------- */
.feature {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(560px, 50vw, 740px);
  overflow: hidden;
}
.feature-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
}
.feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, rgba(10, 10, 10, .94) 0, rgba(10, 10, 10, .82) 26%, rgba(10, 10, 10, 0) 58%);
  pointer-events: none;
}
.feature .container { position: relative; z-index: 2; display: flex; justify-content: flex-end; }
.feature-text { width: min(400px, 100%); padding-block: 48px; }
.feature-text h2 { margin-top: 30px; font-size: clamp(1.625rem, 3vw, 2.3125rem); line-height: 1.19; letter-spacing: -.009em; }
.feature-text p { margin-top: 20px; }
.feature-text .btn-row { margin-top: 30px; }
.feature--warm { background: radial-gradient(90% 80% at 34% 50%, rgba(231, 98, 15, .06), transparent 70%); }

@media (max-width: 860px) {
  .feature { display: block; min-height: 0; }
  .feature-canvas { position: relative; display: block; height: 300px; }
  .feature::after { display: none; }
  .feature .container { display: block; }
  .feature-text { width: 100%; padding-block: 8px 64px; }
  .feature-text h2 { margin-top: 22px; }
}

/* ---------- Name row ("kind words from people at") ---------- */
.name-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.name-row li {
  padding: 26px 12px;
  text-align: center;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 300;
  color: var(--muted);
}
.name-row li + li { border-left: 1px solid var(--line); }
@media (max-width: 860px) {
  .name-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .name-row li:nth-child(4) { border-left: 0; }
  .name-row li:nth-child(n + 4) { border-top: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .name-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .name-row li { padding: 20px 8px; }
  .name-row li:nth-child(n) { border-left: 0; border-top: 0; }
  .name-row li:nth-child(even) { border-left: 1px solid var(--line); }
  .name-row li:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* ---------- Big quote ---------- */
.quote-feature { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); }
.quote-feature blockquote { margin: 0; max-width: 21em; font-size: clamp(1.375rem, 2.5vw, 2rem); font-weight: 300; line-height: 1.32; letter-spacing: -.008em; color: var(--text); text-wrap: pretty; }
.quote-feature figcaption { align-self: start; padding-top: 10px; }
.quote-source { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; line-height: 1.6; color: var(--dim); }
.quote-source b { font-weight: 400; color: var(--accent); }
@media (max-width: 860px) { .quote-feature { grid-template-columns: 1fr; } }

/* ---------- Section head with a link on the right ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head h2 + p, .section-head .label + h2 { margin-top: 14px; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 960px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .card-grid, .card-grid--2 { grid-template-columns: 1fr; } }

.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .015);
  overflow: hidden;
  transition: border-color .2s;
}
a.card:hover { border-color: var(--line-strong); }
.card-thumb { position: relative; aspect-ratio: 16 / 9; border-bottom: 1px solid var(--line); background: var(--bg); }
.card-thumb canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: clamp(24px, 2.6vw, 36px); }
.card-body h3, .card-body h4 { font-size: clamp(1.25rem, 1.7vw, 1.4375rem); font-weight: 400; line-height: 1.25; letter-spacing: -.005em; }
.card-body p { margin-top: 14px; }
.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 32px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--dim);
}
.card-meta .tag { color: var(--accent); }

/* Option cards: a short title and one line, used for "what I hire for" */
.option-card {
  display: flex;
  flex-direction: column;
  min-height: 200px;
  padding: clamp(22px, 2.4vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, 0) 60%);
  transition: border-color .2s;
}
a.option-card:hover { border-color: var(--line-strong); }
.option-card h3 { font-size: clamp(1.375rem, 2vw, 1.6875rem); line-height: 1.2; }
.option-card p { margin-top: 12px; font-size: 15px; line-height: 1.6; }
.option-card .option-foot { margin-top: auto; padding-top: 28px; font-size: 14px; color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
a.option-card:hover .option-foot { text-decoration-color: var(--accent); }

/* ---------- Featured article ---------- */
.featured { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(28px, 4.5vw, 64px); align-items: center; }
.featured-visual { position: relative; aspect-ratio: 16 / 10; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; background: var(--bg); }
.featured-visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.featured-meta { display: flex; gap: 14px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.featured-meta .tag { color: var(--accent); }
.featured h2, .featured h3 { margin-top: 18px; font-size: clamp(1.625rem, 3vw, 2.3125rem); line-height: 1.19; letter-spacing: -.009em; }
.featured h2 a:hover, .featured h3 a:hover { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 6px; }
.featured p { margin-top: 16px; max-width: 30em; }
.featured .btn { margin-top: 26px; }
@media (max-width: 860px) { .featured { grid-template-columns: 1fr; } }

/* ---------- Two-column prose ("thesis" layout) ---------- */
.split { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(24px, 4vw, 72px); }
.split-side { padding-top: 6px; }
.split-main { padding-left: clamp(0px, 4vw, 72px); border-left: 1px solid var(--line); }
.split-main > * { max-width: 660px; }
.prose { font-size: clamp(1rem, 1.25vw, 1.125rem); line-height: 1.65; color: rgba(245, 243, 238, .86); }
.prose p + p { margin-top: 1.15em; }
.prose h3, .prose h4 { margin-top: 2em; }
.prose h3 + p, .prose h4 + p { margin-top: .8em; }
.prose a:not(.btn) { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.prose a:not(.btn):hover { text-decoration-color: var(--accent); }
.pullquote {
  margin: 2em 0;
  padding: 4px 0 4px 26px;
  border-left: 2px solid var(--accent);
  font-size: clamp(1.25rem, 2vw, 1.6875rem);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -.004em;
  color: var(--text);
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split-main { padding-left: 0; border-left: 0; }
}

/* ---------- Hairline grid of short statements ---------- */
.tenets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.tenets > div { padding: 30px 0 34px; border-bottom: 1px solid var(--line); }
.tenets > div:nth-child(even) { padding-left: clamp(20px, 3vw, 40px); border-left: 1px solid var(--line); }
.tenets > div:nth-child(odd) { padding-right: clamp(20px, 3vw, 40px); }
.tenets h3 { font-size: clamp(1.25rem, 1.9vw, 1.6875rem); line-height: 1.22; }
.tenets p { margin-top: 10px; font-size: 15px; line-height: 1.6; max-width: 32em; }
.tenets--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tenets--3 > div:nth-child(n) { padding-left: clamp(20px, 2.4vw, 32px); padding-right: clamp(20px, 2.4vw, 32px); border-left: 1px solid var(--line); }
.tenets--3 > div:nth-child(3n + 1) { padding-left: 0; border-left: 0; }
@media (max-width: 860px) {
  .tenets--3 { grid-template-columns: 1fr; }
  .tenets--3 > div:nth-child(n) { padding-left: 0; padding-right: 0; border-left: 0; }
}
@media (max-width: 640px) {
  .tenets { grid-template-columns: 1fr; }
  .tenets > div:nth-child(n) { padding-left: 0; padding-right: 0; border-left: 0; }
}

/* ---------- Numbered steps (only for real sequences) ---------- */
.steps { counter-reset: step; border-top: 1px solid var(--line); }
.steps > li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 8px;
  padding: 30px 0 34px;
  border-bottom: 1px solid var(--line);
}
.steps > li::before {
  content: counter(step, decimal-leading-zero);
  padding-top: 7px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--accent);
}
.steps h3 { font-size: clamp(1.25rem, 1.9vw, 1.6875rem); line-height: 1.22; }
.steps p { margin-top: 10px; max-width: 36em; }

/* ---------- Lists ---------- */
.dash-list > li { position: relative; padding-left: 28px; }
.dash-list > li + li { margin-top: 12px; }
.dash-list > li::before { content: ""; position: absolute; left: 0; top: .82em; width: 12px; height: 1px; background: var(--accent); }

.rows { border-top: 1px solid var(--line); }
.rows > li {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 8px 32px;
  align-items: baseline;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}
.rows .row-title { font-size: clamp(1rem, 1.3vw, 1.125rem); color: var(--text); }
.rows .row-note { font-size: 15px; color: var(--muted); }
.rows .row-tag { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); text-align: right; }
.rows--tagged > li { grid-template-columns: minmax(0, 1fr) auto; }
@media (max-width: 640px) {
  .rows > li { grid-template-columns: 1fr; }
  .rows--tagged > li { grid-template-columns: minmax(0, 1fr) auto; }
}

/* ---------- Two-up blocks ---------- */
.two-up { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.two-up--center { align-items: center; }
.two-up h2 + p, .two-up h2 + .lede, .two-up .label + h2, .two-up .kicker + h2 { margin-top: 18px; }
.two-up p + .dash-list, .two-up p + .btn-row, .two-up .dash-list + .btn-row { margin-top: 28px; }
@media (max-width: 860px) { .two-up { grid-template-columns: 1fr; } }

/* ---------- Photos ---------- */
.photo { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--bg-raised); }
.photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.88); }
.photo--wide { aspect-ratio: 16 / 9; }
.side-photo { max-width: 250px; margin-top: 28px; aspect-ratio: 1; }
.photo--tall { aspect-ratio: 4 / 5; }
.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 640px) { .photo-grid { grid-template-columns: 1fr 1fr; gap: 12px; } .photo-grid .photo:last-child { display: none; } }

/* "Meet Mike" block */
.meet { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.meet h2 { font-size: clamp(1.625rem, 3vw, 2.3125rem); line-height: 1.19; }
.meet h2 + p { margin-top: 20px; }
.meet .text-link { display: inline-block; margin-top: 26px; }
@media (max-width: 860px) { .meet { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.quote-cols { columns: 2; column-gap: 24px; }
.quote-card {
  break-inside: avoid;
  margin: 0 0 24px;
  padding: clamp(26px, 2.8vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .015);
}
.quote-card blockquote { margin: 0; font-size: clamp(1rem, 1.2vw, 1.0625rem); line-height: 1.7; color: rgba(245, 243, 238, .86); }
.quote-card blockquote p + p { margin-top: 1em; }
.quote-card details { margin-top: 18px; }
.quote-card summary {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
  list-style: none;
}
.quote-card summary::-webkit-details-marker { display: none; }
.quote-card summary:hover { background: rgba(255, 255, 255, .06); }
.quote-card details[open] summary { margin-bottom: 18px; }
.quote-card figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--dim);
}
.quote-card figcaption .tag { color: var(--accent); white-space: nowrap; }
.quote-card figcaption .role { text-align: right; }
@media (max-width: 860px) { .quote-cols { columns: 1; } }

/* ---------- Form ---------- */
.form-card {
  padding: clamp(24px, 3.2vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-raised);
}
.form-grid { display: grid; gap: 22px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 520px) { .form-row-2 { grid-template-columns: 1fr; } }
.field label { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 9px; font-size: 14px; line-height: 1.4; color: var(--muted); }
.field label .optional { font-size: 13px; color: var(--dim); }
.field input, .field textarea {
  display: block;
  width: 100%;
  padding: 13px 15px;
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  transition: border-color .2s;
}
.field textarea { min-height: 148px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(245, 243, 238, .34); }
.field input:hover, .field textarea:hover { border-color: rgba(255, 255, 255, .3); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--text); }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 12px; }
.form-note { font-size: 13px; color: var(--dim); }
.contact-lines { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); font-size: 15px; }
.contact-lines li + li { margin-top: 6px; }

.contact-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact-layout h1 { font-size: clamp(2.25rem, 4vw, 3.125rem); line-height: 1.16; }
.contact-layout .lede { margin-top: 20px; }
.contact-layout .dash-list { margin-top: 30px; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }

/* ---------- Call-to-action card ---------- */
.cta-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(340px, 34vw, 440px);
  padding: clamp(28px, 4.6vw, 64px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-raised);
  overflow: hidden;
}
.cta-card canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cta-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10, 10, 10, .9) 0, rgba(10, 10, 10, .55) 42%, rgba(10, 10, 10, 0) 78%);
  pointer-events: none;
}
.cta-copy { position: relative; z-index: 2; max-width: 34em; }
.cta-copy .mark { width: 34px; color: var(--muted); }
.cta-copy h2 { margin-top: 22px; }
.cta-copy p { margin-top: 16px; max-width: 30em; }
.cta-copy .btn-row { margin-top: 26px; }

/* ---------- Article ---------- */
.article-head { max-width: 860px; }
.article-head h1 { margin-top: 20px; font-size: clamp(2.125rem, 4.2vw, 3.25rem); line-height: 1.14; }
.article-head .byline { margin-top: 22px; font-size: 14px; color: var(--dim); }
.hero-copy.article-head { max-width: 860px; }
.article-body { max-width: 680px; font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); line-height: 1.7; }
.article-body h2 { margin-top: 2em; font-size: clamp(1.375rem, 2.2vw, 1.6875rem); line-height: 1.25; letter-spacing: -.004em; }
.article-body h2 + p { margin-top: .8em; }
.article-back { display: inline-flex; align-items: center; gap: 8px; margin-top: 56px; font-size: 14px; color: var(--muted); }
.article-back:hover { color: var(--text); }
.article-back svg { width: 14px; height: 14px; transform: rotate(180deg); }

/* ---------- Short utility pages ---------- */
.notice { min-height: 72vh; display: grid; align-content: center; justify-items: start; }
.notice h1 { margin-top: 18px; max-width: 14em; }
.notice p { margin-top: 20px; max-width: 30em; }
.notice .btn-row { margin-top: 30px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: var(--section-y); border-top: 1px solid var(--line); }
.footer-main {
  display: grid;
  grid-template-columns: 1fr auto 1fr;   /* equal sides keep the mark dead center */
  align-items: stretch;
  gap: clamp(20px, 3vw, 48px);
  padding: 44px clamp(20px, 3vw, 44px);
}
.footer-side { display: flex; align-items: center; justify-content: space-between; gap: clamp(20px, 3vw, 44px); }
.footer-brand .wordmark { display: inline-block; font-size: 18px; letter-spacing: .44em; }
.footer-brand p { margin-top: 16px; font-size: 14px; line-height: 1.75; }
.footer-brand a:hover { color: var(--text); }
.footer-cols { display: flex; gap: clamp(28px, 3.6vw, 60px); align-self: flex-start; }
.footer-col a { white-space: nowrap; }
.footer-side:not(.footer-side--end) .footer-cols { padding-left: clamp(20px, 3vw, 44px); border-left: 1px solid var(--line); }
.footer-col h2 { font-size: 12px; font-weight: 500; letter-spacing: .08em; line-height: 1.5; text-transform: uppercase; color: var(--text); }
.footer-col ul { margin-top: 14px; }
.footer-col li + li { margin-top: 7px; }
.footer-col a { font-size: 13.5px; color: var(--muted); transition: color .2s; }
.footer-col a:hover, .footer-col a[aria-current="page"] { color: var(--text); }
.footer-mark { align-self: center; color: var(--text); }
.footer-mark .mark { width: 92px; }
.footer-social { display: flex; justify-content: flex-end; align-items: center; align-self: stretch; gap: 16px; padding-left: clamp(20px, 3vw, 44px); border-left: 1px solid var(--line); }
.footer-social a { color: var(--muted); transition: color .2s; }
.footer-social a:hover { color: var(--text); }
.footer-social svg { display: block; width: 19px; height: 19px; }
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-inline: clamp(20px, 3vw, 44px);
  padding: 20px 0 26px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--dim);
}
.footer-base a:hover { color: var(--text); }
.footer-base ul { display: flex; flex-wrap: wrap; gap: 6px 20px; }

@media (max-width: 1320px) {
  .footer-main { grid-template-columns: 1fr; align-items: start; gap: 36px; }
  .footer-mark { display: none; }
  .footer-side { flex-direction: column; align-items: flex-start; gap: 36px; }
  .footer-cols { flex-wrap: wrap; gap: 32px clamp(32px, 8vw, 72px); }
  .footer-side:not(.footer-side--end) .footer-cols { padding-left: 0; border-left: 0; }
  .footer-social { justify-content: flex-start; padding-left: 0; border-left: 0; }
}

/* ---------- Spacing helpers used between blocks inside a section ---------- */
.gap-sm { margin-top: 24px; }
.gap-md { margin-top: clamp(32px, 4vw, 56px); }
.gap-lg { margin-top: clamp(48px, 6vw, 88px); }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
