/* =================================================================
   Natalie Cooper — AI Consulting
   Minimal, editorial, monochrome. No frameworks.
   ================================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Strict neutral palette — equal RGB only */
  --white: #ffffff;
  --paper: #ffffff;
  --paper-2: #f4f4f4;
  --paper-3: #e6e6e6;
  --grey-50: #f4f4f4;
  --grey-100: #e6e6e6;
  --grey-300: #cccccc;
  --grey-500: #999999;
  --grey-700: #666666;
  /* Text greys — WCAG AAA (7:1) on white and on --paper-2 (#f4f4f4).
     #999 / #666 are kept for lines and fills only, never for text. */
  --text-2: #444444; /* secondary copy: 9.7:1 on white, 8.8:1 on #f4f4f4 */
  --text-3: #525252; /* muted labels:   7.8:1 on white, 7.1:1 on #f4f4f4 */
  --ink: #222222;
  --ink-2: #000000;
  --black: #000000;
  --line: rgba(0, 0, 0, 0.1);
  --line-strong: rgba(0, 0, 0, 0.32);
  --line-dark: rgba(255, 255, 255, 0.14);
  --line-dark-strong: rgba(255, 255, 255, 0.4);

  --radius-lg: 28px;
  --radius-xl: 40px;

  --ff-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  /* Headlines use the same sans as the body (one typeface across the site) */
  --ff-display: var(--ff-sans);

  --maxw: 1440px;
  --gutter-mob: clamp(20px, 5vw, 28px);
  --gutter: clamp(28px, 4vw, 56px);

  /* Fluid type scale */
  --fs-mono: 13px;
  --fs-body: clamp(16px, 1.05vw, 18px);
  --fs-lede: clamp(18px, 1.35vw, 22px);
  /* Headline scale — one size per level, used everywhere:
     H1 = hero only · H2 = every section title · H3 = rows, steps, cards */
  --fs-h1: clamp(44px, 7.4vw, 118px);
  --fs-h2: clamp(32px, 4.6vw, 68px);
  --fs-h3: clamp(22px, 1.9vw, 30px);

  --tr: 480ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ff-sans);
  font-size: var(--fs-body);
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

ol,
ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

/* Avoid one-word last lines ("it.") in paragraphs */
p {
  text-wrap: pretty;
}

em {
  font-style: italic;
  font-family: inherit;
  font-weight: inherit;
}

/* All headings default to the display serif */
h1,
h2,
h3,
h4 {
  font-family: var(--ff-display);
  font-weight: 400;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter-mob);
  padding-right: var(--gutter-mob);
}
@media (min-width: 720px) {
  .container {
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }
}

/* Small uppercase labels (numbers, meta, footer details) — Inter,
   tracked out; tabular figures keep 01–06 aligned. */
.mono {
  font-family: var(--ff-sans);
  font-variant-numeric: tabular-nums;
  font-size: var(--fs-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 14px;
  z-index: 100;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

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

/* In-page links land just below the floating 56px header */
main [id] {
  scroll-margin-top: 56px;
}

.anchor-offset {
  display: block;
  height: 0;
  scroll-margin-top: 100px;
}

/* ---------- Typography primitives ---------- */
/* Every H2 on the page uses one of these classes; all resolve to the same
   H2 style so section titles are identical in size, leading and tracking. */
.display,
.display--md,
.display--xl,
.section-title {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.section-label {
  display: inline-block;
  color: var(--text-3);
}
.is-dark .section-label {
  color: var(--grey-300);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--ff-sans);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 36px;
}
.eyebrow__num {
  display: inline-block;
  padding: 3px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}

/* Eyebrow: italic sans label above a section title, no mono, no caps */
.eyebrow-sm {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--ff-sans);
  font-size: clamp(18px, 1.4vw, 22px);
  font-weight: 400;
  font-style: italic;
  color: var(--text-3);
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}
.eyebrow-sm--light { color: var(--grey-300); }
.is-dark .eyebrow-sm { color: var(--grey-300); }

.lede {
  font-size: var(--fs-lede);
  line-height: 1.5;
  max-width: 44ch;
  color: var(--text-2);
}

.prose p + p {
  margin-top: 1em;
}
.prose p {
  max-width: 54ch;
  color: var(--text-2);
}

/* ---------- Arrows ---------- */
.arrow {
  display: inline-block;
  transform: translateY(-1px);
  margin-left: 4px;
  transition: transform var(--tr);
  will-change: transform;
}
a:hover .arrow,
button:hover .arrow {
  transform: translate(3px, -4px);
}
a:hover .arrow--down,
button:hover .arrow--down {
  transform: translate(0, 3px);
}
a:hover .arrow--up {
  transform: translate(0, -3px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  letter-spacing: -0.01em;
  transition: color var(--tr), background-color var(--tr), border-color var(--tr),
    transform 220ms cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 220ms ease;
  cursor: pointer;
}

/* CTA buttons lift on hover (and on keyboard focus), and press on click */
@media (hover: hover) {
  .btn--primary:hover,
  .btn--ghost:hover,
  .btn--outline:hover,
  .cookie-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.55);
  }
  .contact__email:hover {
    transform: translateY(-3px);
  }
}
.btn--primary:focus-visible,
.btn--ghost:focus-visible,
.btn--outline:focus-visible,
.cookie-btn:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.55);
}
.btn--primary:active,
.btn--ghost:active,
.btn--outline:active,
.cookie-btn:active,
.contact__email:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px -8px rgba(0, 0, 0, 0.5);
}

.btn--primary {
  background: var(--ink);
  color: var(--paper);
  padding: 18px 26px 18px 28px;
  border-radius: 999px;
  border: 1px solid var(--ink);
}
.btn--primary:hover {
  background: var(--ink-2);
}

.btn--ghost {
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}
.btn--ghost:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.btn--outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 22px;
  border: 1px solid currentColor;
  border-radius: 999px;
}
.is-dark .btn--outline:hover {
  background: var(--paper);
  color: var(--ink);
}

.btn--text {
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
}
.btn--text:hover {
  opacity: 0.7;
}

/* ---------- Header (thin, 56px, frosted glass) ----------
   Floats over the page; content blurs through it. Two states, cross-faded
   by script.js as the hero scrolls out from under it:
   - over the hero (.site-header--on-dark): smoky dark glass, white text
   - over content: milky white glass, dark text
   Both keep the menu text ≥ 7:1 (WCAG AAA) — the tint alone guarantees it
   even before the blur softens what's behind. */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: 56px;
  color: var(--ink);
  transition: color 400ms ease;
}
/* The glass lives on a layer behind the header, not on the header itself:
   a backdrop-filter on the header would trap the fixed mobile menu panel
   inside its 56px box. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  transition: background-color 400ms ease;
}
.site-header--on-dark { color: #ffffff; }
.site-header--on-dark::before { background: rgba(8, 8, 10, 0.62); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header::before { background: #ffffff; }
  .site-header--on-dark::before { background: #0b0b0c; }
}
.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px;
  height: 100%;
  padding-top: 0;
  padding-bottom: 0;
}

/* Cooper Consulting wordmark */
.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-family: var(--ff-sans);
  font-size: 15px;
  letter-spacing: -0.02em;
  line-height: 1;
  color: inherit;
}
.wordmark__name { font-weight: 700; }
.wordmark__kind { font-weight: 300; color: inherit; }

.nav__list {
  display: flex;
  gap: clamp(20px, 3vw, 44px);
  justify-content: flex-end; /* logo left, links right */
  font-size: 15px;
  font-weight: 400;
  color: inherit;
}
.nav__list a {
  position: relative;
  padding: 6px 2px;
  color: inherit;
}
.nav__contact {
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
}
.nav__contact:hover { border-bottom-color: var(--ink); }
.nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 2px;
  height: 1px;
  background: currentColor;
  transition: right var(--tr);
}
.nav__list a:hover::after,
.nav__list a:focus-visible::after {
  right: 0;
}

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0; /* no circle: just the lines, keeping a 44px tap target */
  background: transparent;
  color: inherit;
  position: relative;
  margin-right: -11px; /* optically align the lines with the page edge */
}
.nav__toggle-lines,
.nav__toggle-lines::before,
.nav__toggle-lines::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform var(--tr), top var(--tr), opacity var(--tr);
}
.nav__toggle-lines::before {
  top: -6px;
}
.nav__toggle-lines::after {
  top: 6px;
}
.nav__toggle[aria-expanded="true"] .nav__toggle-lines {
  background: transparent;
}
.nav__toggle[aria-expanded="true"] .nav__toggle-lines::before {
  top: 0;
  transform: translate(-50%, -50%) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-lines::after {
  top: 0;
  transform: translate(-50%, -50%) rotate(-45deg);
}

@media (max-width: 860px) {
  .site-header__inner {
    grid-template-columns: auto auto;
  }
  .nav__contact {
    display: none;
  }
  .nav {
    position: static;
    justify-self: end;
  }
  .nav__toggle {
    display: inline-flex;
  }
  .nav__list {
    position: fixed;
    inset: 56px 0 0 0;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.82);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    backdrop-filter: blur(24px) saturate(160%);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.02em;
    padding: 24px 24px 60px;
    transform: translateY(-110%);
    transition: transform var(--tr), opacity var(--tr);
    opacity: 0;
    pointer-events: none;
    z-index: 50;
  }
  /* menu open: header matches the frosted white panel */
  body.nav-open .site-header {
    z-index: 60;
    color: var(--ink);
  }
  body.nav-open .site-header::before {
    background: rgba(255, 255, 255, 0.82);
  }
  body.nav-open {
    overflow: hidden;
  }
  body.nav-open .nav__list {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

/* ---------- Hero (grey field, morphing black forms) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero--full {
  min-height: 100svh; /* runs under the floating header */
  /* Shown if WebGL is unavailable; matches the glass animation's palette */
  background: radial-gradient(60% 70% at 74% 50%, #1b1a1c 0%, #0a0a0b 55%, #050505 100%);
  color: #ffffff;
  display: flex;
  align-items: stretch;
  border-radius: 0;
  margin: 0;
}


.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.hero__canvas[hidden] { display: none; }
/* Legibility scrim: white text over the moving glass animation. At 0.66 black, even a
   pure-white highlight behind the copy stays ≤ #575757, so white text keeps
   ≥ 7:1 (WCAG AAA). It fades out to the right, where there is no text. */
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.66) 0%,
    rgba(0, 0, 0, 0.66) 58%,
    rgba(0, 0, 0, 0.3) 80%,
    rgba(0, 0, 0, 0.12) 100%
  );
}
@media (max-width: 720px) {
  /* Copy spans the full width on phones, so the scrim does too */
  .hero__bg::after { background: rgba(0, 0, 0, 0.66); }
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  /* Headline + pitch + CTAs sit together as one block, centred vertically */
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(56px + clamp(40px, 5vw, 72px)); /* clear the header */
  padding-bottom: clamp(40px, 5vw, 72px);
  min-height: inherit;
  gap: clamp(24px, 2.5vw, 36px);
}

.hero__top { display: flex; flex-direction: column; gap: 24px; }

.hero__title {
  font-family: var(--ff-display);
  font-weight: 400;
  color: #ffffff;
  font-size: var(--fs-h1);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0;
  max-width: 16ch;
}
.hero__title em {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 400;
  color: #ffffff;
}

.eyebrow-sm--on-grey {
  color: #ffffff;
  margin: 0;
}

.hero__bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(20px, 2vw, 28px);
}
.hero__pitch {
  max-width: 48ch;
  margin: 0;
  color: #ffffff;
  font-size: clamp(17px, 1.25vw, 20px);
  line-height: 1.45;
  letter-spacing: -0.005em;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: flex-start;
}
.hero__secondary { color: #ffffff; border-bottom-color: rgba(255,255,255,0.65); font-size: 15px; }
.hero__secondary:hover { opacity: 0.8; }

.btn--compact {
  padding: 12px 20px;
  font-size: 15px;
}

@media (max-width: 720px) {
  .hero__inner { gap: 24px; }
}

@media (max-width: 720px) {
  .hero--full { min-height: 80vh; }
}

/* ---------- Portrait ---------- */
.portrait__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(
    180deg,
    var(--paper-2) 0%,
    var(--paper-3) 60%,
    var(--paper-2) 100%
  );
  box-shadow: 0 1px 0 var(--line) inset;
  filter: grayscale(100%) contrast(0.98);
}
.portrait__frame--tall {
  aspect-ratio: 4 / 5;
}

/* About portrait: consistent monochrome editorial treatment */
.portrait--about .portrait__frame {
  background: var(--grey-100);
  box-shadow: none;
  border-radius: 24px;
  filter: none;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.portrait--about .portrait__placeholder { display: none; }
.portrait--about .portrait__img {
  filter: grayscale(100%) contrast(1.05);
}
.portrait__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(0.98);
  transition: opacity 500ms ease;
  z-index: 1;
}
.portrait__img.is-missing {
  opacity: 0;
  pointer-events: none;
}

.portrait__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  color: var(--text-3);
  background-image:
    radial-gradient(circle at 20% 15%, rgba(0, 0, 0, 0.06), transparent 40%),
    radial-gradient(circle at 80% 85%, rgba(0, 0, 0, 0.08), transparent 45%),
    repeating-linear-gradient(
      45deg,
      rgba(0, 0, 0, 0.02) 0 2px,
      transparent 2px 6px
    );
}
.portrait__label {
  font-family: var(--ff-sans);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.portrait__hint {
  font-family: var(--ff-sans);
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
}

.portrait__caption {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
}

/* ---------- Section head ---------- */
.section-head {
  padding-top: clamp(80px, 9vw, 140px);
  padding-bottom: clamp(32px, 4vw, 56px);
  border-top: 1px solid var(--line);
}
.is-dark .section-head {
  border-top-color: var(--line-dark);
}

.section-head--inline {
  display: grid;
  grid-template-columns: 1fr 2fr;
  column-gap: clamp(28px, 4vw, 64px);
  align-items: baseline;
}
.section-head--inline .section-label {
  grid-column: 1 / 2;
}
.section-head--inline .section-title {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
}
.section-head--inline .section-sub {
  grid-column: 2 / 3;
  color: var(--text-3);
  margin-top: 12px;
  font-size: 15px;
}
@media (max-width: 720px) {
  .section-head--inline {
    grid-template-columns: 1fr;
    row-gap: 14px;
  }
  .section-head--inline .section-title,
  .section-head--inline .section-sub {
    grid-column: 1 / -1;
  }
}

.section-head--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 80px);
  align-items: last baseline;
}
.section-head__left .section-label {
  display: block;
  margin-bottom: 20px;
}
.section-head__right {
  color: var(--text-3);
  font-size: var(--fs-lede);
  max-width: 44ch;
}
.is-dark .section-head__right {
  color: var(--grey-300);
}
@media (max-width: 860px) {
  .section-head--split {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ---------- Tools ---------- */
.tools {
  padding-top: clamp(80px, 9vw, 140px);
  padding-bottom: clamp(60px, 7vw, 110px);
  border-top: 1px solid var(--line);
}
.tools__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 80px);
  align-items: last baseline;
  margin-bottom: clamp(48px, 6vw, 88px);
}
.tools__head .eyebrow-sm {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  align-self: start;
}
.tools__head .section-title {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
}
.tools__sub {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  max-width: 44ch;
  color: var(--text-3);
  font-size: var(--fs-lede);
  align-self: last baseline;
}
@media (max-width: 860px) {
  .tools__head {
    grid-template-columns: 1fr;
  }
  .tools__head .section-title,
  .tools__sub,
  .tools__head .eyebrow-sm {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

/* Open horizontal row of icon + name */
.tool-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(16px, 2.5vw, 40px);
  padding: clamp(40px, 5vw, 72px) 0 0;
  border-top: 1px solid var(--line);
}
.tool-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  color: var(--ink);
  transition: transform var(--tr);
}
.tool-mark img {
  display: block;
  height: clamp(44px, 5.2vw, 64px);
  width: auto;
}
.tool-mark__name {
  font-family: var(--ff-sans);
  font-size: clamp(14px, 1vw, 16px);
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--text-2);
}
.tool-mark:hover { transform: translateY(-2px); }

@media (max-width: 860px) {
  .tool-row { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
}
@media (max-width: 480px) {
  .tool-row { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Connectors (stack list) ---------- */
.connectors {
  padding-top: clamp(80px, 9vw, 140px);
  padding-bottom: clamp(60px, 7vw, 120px);
  border-top: 1px solid var(--line);
}
.connectors__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 80px);
  align-items: last baseline;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.connectors__head .eyebrow-sm {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  align-self: start;
}
.connectors__head .section-title {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
}
.connectors__sub {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  max-width: 44ch;
  color: var(--text-3);
  font-size: var(--fs-lede);
  align-self: last baseline;
}
@media (max-width: 860px) {
  .connectors__head { grid-template-columns: 1fr; }
  .connectors__head .section-title,
  .connectors__sub,
  .connectors__head .eyebrow-sm {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

/* One category per row — label left, pills right, hairline between */
.chip-rows {
  margin: clamp(28px, 3vw, 48px) 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.chip-rows__row {
  display: grid;
  grid-template-columns: minmax(180px, 220px) 1fr;
  gap: clamp(20px, 3vw, 48px);
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.chip-rows__label {
  margin: 0;
  font-family: var(--ff-sans);
  font-size: 16px;
  font-style: italic;
  color: var(--text-3);
  letter-spacing: -0.005em;
}
/* App names read as a plain list — no pill outline or hover, so they
   don't look clickable. A small dot separates each name. */
.chip-rows__pills {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 6px;
}
.chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--ff-sans);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
}
.chip:not(:last-child)::after {
  content: "";
  width: 3px;
  height: 3px;
  margin: 0 14px;
  border-radius: 50%;
  background: var(--grey-500);
}
@media (max-width: 720px) {
  .chip-rows__row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 20px 0;
  }
}

@media (max-width: 1024px) {
  .tool-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 560px) {
  .tool-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tool {
    min-height: 120px;
  }
}

/* ---------- Connectors ---------- */
.connectors {
  padding-top: clamp(40px, 5vw, 72px);
  padding-bottom: clamp(60px, 7vw, 120px);
}
.connectors .section-head {
  border-top: 0;
  padding-top: 0;
}

.connector-grid {
  margin-top: clamp(24px, 3vw, 48px);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.connector {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(20px, 2.4vw, 32px) 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-height: 92px;
  font-family: var(--ff-sans);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--text-2);
  transition: background-color var(--tr), color var(--tr);
}
.connector:hover {
  background: var(--paper-2);
  color: var(--ink);
}

@media (max-width: 1024px) {
  .connector-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 720px) {
  .connector-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .connector {
    min-height: 76px;
    font-size: 14px;
  }
}
@media (max-width: 480px) {
  .connector-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Expertise / Offerings ---------- */
.expertise {
  padding-bottom: clamp(60px, 7vw, 120px);
}

.offerings {
  margin-top: clamp(24px, 3vw, 48px);
}
.offering {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: clamp(24px, 4vw, 80px);
  padding: clamp(28px, 3vw, 44px) 0;
  position: relative;
  z-index: 0;
  align-items: start;
  transition: transform var(--tr);
}
/* Hover: a tile fades in and grows behind the row, the row lifts, and the
   headline + description scale up (6%) from their own left edges. All of it
   is transform-only, so nothing reflows or nudges sideways. */
.offering::before {
  content: "";
  position: absolute;
  inset: 0 calc(-1 * clamp(16px, 2vw, 28px));
  z-index: -1;
  border-radius: 20px;
  background: var(--paper);
  box-shadow:
    0 24px 48px -20px rgba(0, 0, 0, 0.22),
    0 2px 8px rgba(0, 0, 0, 0.06);
  opacity: 0;
  transform: scale(0.97);
  transition: opacity var(--tr), transform var(--tr);
  pointer-events: none;
}
.offering__title,
.offering__copy {
  transform-origin: left top;
  transition: transform var(--tr);
}
@media (hover: hover) {
  .offering:hover {
    transform: translateY(-6px);
    z-index: 1;
  }
  .offering:hover::before {
    opacity: 1;
    transform: scale(1.02);
  }
  .offering:hover .offering__title,
  .offering:hover .offering__copy {
    transform: scale(1.06);
  }
}
/* Reduced motion: same end state, but it snaps instead of animating */
@media (prefers-reduced-motion: reduce) {
  .offering,
  .offering::before,
  .offering__title,
  .offering__copy { transition: none; }
}
.offering__num {
  color: var(--text-3);
  padding-top: 8px;
}
.offering__body {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 2fr;
  gap: clamp(20px, 3vw, 60px);
  align-items: start;
}
.offering__title {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: var(--fs-h3);
  letter-spacing: -0.012em;
  line-height: 1.1;
  /* Always exactly two lines, split by the <br> in the markup (before the &).
     The title column widens to fit rather than wrapping a third line. */
  white-space: nowrap;
}
.offering__copy {
  color: var(--text-2);
  max-width: 56ch;
}

@media (max-width: 860px) {
  .offering {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .offering__body {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .offering__num {
    padding-top: 0;
  }
}

/* ---------- Approach (dark) ---------- */
.is-dark {
  background: var(--ink);
  color: var(--paper);
}
.approach {
  padding-bottom: clamp(60px, 7vw, 120px);
  border-top: 1px solid var(--line);
}

.approach .section-head {
  border-top-color: transparent;
}

/* Flow rail — static line runs across all five step centres,
   with a travelling highlight and sequenced dot pulses. */
.steps {
  position: relative;
  margin-top: clamp(48px, 6vw, 96px);
  padding-top: 56px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}
.steps::before,
.steps::after {
  content: "";
  position: absolute;
  top: 24px;
  height: 1px;
  pointer-events: none;
}
/* Static rail between first and last dots (centres of outer columns) */
.steps::before {
  left: 10%;
  right: 10%;
  background: var(--line-dark);
}
/* Travelling highlight sweeps along the rail */
.steps::after {
  left: 10%;
  right: 10%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0) 30%,
    rgba(255, 255, 255, 0.9) 50%,
    rgba(255, 255, 255, 0) 70%,
    transparent 100%
  );
  background-size: 50% 100%;
  background-repeat: no-repeat;
  background-position: -50% 0;
  animation: flow-sweep 7s linear infinite;
}
@keyframes flow-sweep {
  0%   { background-position: -50% 0; }
  100% { background-position: 150% 0; }
}

.step {
  position: relative;
  padding: clamp(28px, 3vw, 48px) clamp(20px, 2.4vw, 40px);
  border-right: 1px solid var(--line-dark);
}
/* Dot on the rail, centred above each step's content */
.step::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--grey-500);
  z-index: 1;
  animation: step-dot 7s ease-in-out infinite;
}
.step:nth-child(1)::before { animation-delay: 0s; }
.step:nth-child(2)::before { animation-delay: 0.75s; }
.step:nth-child(3)::before { animation-delay: 1.5s; }
.step:nth-child(4)::before { animation-delay: 2.25s; }
.step:nth-child(5)::before { animation-delay: 3s; }

@keyframes step-dot {
  0%, 80%, 100% {
    background: var(--grey-500);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    transform: translateX(-50%) scale(1);
  }
  8% {
    background: #ffffff;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.12);
    transform: translateX(-50%) scale(1.25);
  }
  40% {
    background: var(--grey-300);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    transform: translateX(-50%) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .steps::after,
  .step::before { animation: none; }
}

@media (max-width: 1100px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
    padding-top: 24px;
  }
  .steps::before,
  .steps::after { display: none; }
  .step { border-bottom: 1px solid var(--line-dark); }
  .step::before { display: none; }
  .step:nth-child(2n) { border-right: 0; }
}
.step {
  padding: clamp(28px, 3vw, 48px) clamp(20px, 2.4vw, 40px);
  border-right: 1px solid var(--line-dark);
  position: relative;
}
.step:last-child {
  border-right: 0;
}
.step__num {
  color: var(--grey-300);
}
.step__title {
  margin-top: 40px;
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: var(--fs-h3);
  letter-spacing: -0.012em;
  line-height: 1.1;
}
.step__copy {
  margin-top: 12px;
  color: var(--grey-300);
  max-width: 44ch;
}
@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr;
  }
  .step {
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
  }
  .step:last-child {
    border-bottom: 0;
  }
}

/* ---------- About ---------- */
.about {
  padding-top: 0;
  padding-bottom: clamp(60px, 7vw, 120px);
}
.about__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 5vw, 96px);
  align-items: start;
  padding-top: clamp(80px, 9vw, 140px);
  border-top: 1px solid var(--line);
}

.about__media {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.portrait--about .portrait__frame--tall {
  border-radius: var(--radius-xl);
}

.about__copy .section-label {
  display: block;
  margin-bottom: 20px;
}
.about__copy .section-title {
  margin-bottom: 36px;
}

.callout {
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--grey-50);
}
.callout__num {
  line-height: 0.9;
  font-weight: 700;
  font-size: clamp(56px, 7vw, 100px);
  letter-spacing: -0.03em;
}
.callout__text {
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.4;
  max-width: 24ch;
}

@media (max-width: 860px) {
  .about__grid {
    grid-template-columns: 1fr;
  }
  .about__media {
    position: static;
    flex-direction: row;
    align-items: stretch;
  }
  .about__media .portrait {
    flex: 1 1 60%;
  }
  .about__media .callout {
    flex: 1 1 40%;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    justify-content: space-between;
  }
}
@media (max-width: 560px) {
  .about__media {
    flex-direction: column;
  }
}

/* ---------- Work Together ---------- */
.work-together {
  padding-bottom: clamp(60px, 7vw, 120px);
  border-top: 1px solid var(--line);
}
/* Packages: three black tiles, each with a still hint of the waves
   sweeping in from the bottom-right corner (drawn by hero-glass.js). */
.packages {
  margin-top: clamp(24px, 3vw, 48px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.4vw, 20px);
}
.package {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(32px, 3vw, 48px);
  border-radius: var(--radius-lg);
  background: #050505;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: clamp(380px, 34vw, 520px);
  transition: transform var(--tr), box-shadow var(--tr);
}
.package__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}
/* Dark wash from the top, fading out toward the wave along the bottom, so
   the tile text stays ≥ 7:1 (AAA) — measured against the real artwork. */
.package::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(5, 5, 5, 0.9) 0%, rgba(5, 5, 5, 0.9) 66%, rgba(5, 5, 5, 0) 92%);
}
@media (hover: hover) {
  .package:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.45);
  }
}
.package__num {
  color: #d6d6d6;
}
.package__title {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: var(--fs-h3);
  letter-spacing: -0.012em;
  line-height: 1.1;
}
.package__copy {
  color: #e2e2e2;
}
.package__meta {
  color: #e2e2e2;
  margin-top: 4px;
}
/* Same white pill as the hero's primary CTA. Only the button is pinned to
   the bottom; text stays up in the dark part of the tile, clear of the wave. */
.package__cta {
  align-self: flex-start;
  margin-top: auto;
}

@media (max-width: 860px) {
  .packages {
    grid-template-columns: 1fr;
  }
  .package {
    min-height: 440px;
  }
  /* text wraps longer on phones, so the wash reaches further down */
  .package::after {
    background: linear-gradient(to bottom, rgba(5, 5, 5, 0.9) 0%, rgba(5, 5, 5, 0.9) 76%, rgba(5, 5, 5, 0) 97%);
  }
}

/* ---------- Other ways (replaces FAIA section) ---------- */
.other {
  padding-top: clamp(90px, 10vw, 160px);
  padding-bottom: clamp(90px, 10vw, 160px);
}
.other__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 80px);
  align-items: last baseline;
  margin-bottom: clamp(48px, 6vw, 88px);
}
.other__head .eyebrow-sm { grid-column: 1 / -1; }
.other__title { grid-column: 1 / 2; max-width: 14ch; }
.other__sub {
  grid-column: 2 / 3;
  align-self: last baseline;
  max-width: 44ch;
  color: var(--text-3);
  font-size: var(--fs-lede);
}
@media (max-width: 860px) {
  .other__head { grid-template-columns: 1fr; }
  .other__title, .other__sub { grid-column: 1 / -1; }
}

.other__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3vw, 48px);
}
@media (max-width: 860px) {
  .other__grid { grid-template-columns: 1fr; }
}

.other-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--grey-50);
  padding: clamp(28px, 3vw, 48px);
  overflow: hidden;
  transition: background-color var(--tr), border-color var(--tr);
}
.other-card:hover { background: var(--paper); }
.other-card__inner {
  display: block;
}
.other-card__body { display: flex; flex-direction: column; gap: 18px; }
.other-card__logo {
  display: block;
  width: auto;
  max-width: 180px;
  height: auto;
  filter: grayscale(100%) brightness(0.92) contrast(1.05);
  margin-bottom: 4px;
}
.other-card__title {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: var(--fs-h3);
  line-height: 1.1;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.other-card__copy {
  color: var(--text-2);
  max-width: 44ch;
}
.other-card__ctas { margin-top: 8px; }

/* "Invested in AI" sub-section in About */
.invested {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.invested__intro {
  color: var(--text-2);
  max-width: 54ch;
  margin-bottom: 20px;
}
.invested__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 720px) {
  .invested__list { grid-template-columns: 1fr; }
}
.invested__item a {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 6px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--grey-50);
  transition: background-color var(--tr), border-color var(--tr), transform var(--tr);
  height: 100%;
}
.invested__item a:hover {
  background: var(--paper);
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.invested__name {
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.invested__role {
  font-size: 15px;
  font-style: italic;
  color: var(--text-3);
}
.invested__note {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.4;
  margin: 6px 0;
}
.invested__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  align-self: start;
  justify-self: start;
}

/* Dialog */
.dialog {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 100%;
}
.dialog[open] {
  display: block;
}
.dialog::backdrop {
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(4px);
}
.dialog__inner {
  position: relative;
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  margin: 16px auto;
  padding: clamp(28px, 4vw, 44px);
  background: var(--paper);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.dialog__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 22px;
  line-height: 1;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.dialog__close:hover { background: var(--ink); color: var(--paper); }
.dialog__title {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 6px 0 8px;
  color: var(--ink);
}
.dialog__title em { font-weight: 400; }
.dialog__lede {
  color: var(--text-2);
  margin-bottom: 20px;
}
.dialog__field {
  display: block;
  margin-bottom: 14px;
}
.dialog__field label {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 6px;
}
.dialog__optional {
  font-weight: 400;
  color: var(--text-3);
  font-style: italic;
}
.dialog__field input,
.dialog__field select,
.dialog__field textarea {
  display: block;
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--grey-50);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  transition: border-color var(--tr), background-color var(--tr);
}
.dialog__field input:focus,
.dialog__field select:focus,
.dialog__field textarea:focus {
  border-color: var(--ink);
  background: var(--paper);
}
.dialog__field textarea { resize: vertical; min-height: 80px; }
/* Dropdown: native select, restyled with a custom chevron */
.dialog__field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 44px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23222' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
/* Visible keyboard focus on form controls (border alone is too subtle) */
.dialog__field input:focus-visible,
.dialog__field select:focus-visible,
.dialog__field textarea:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
/* Name + email side by side when there's room */
.dialog__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}
@media (max-width: 520px) {
  .dialog__row { grid-template-columns: 1fr; }
}
.dialog__status {
  margin-top: 14px;
  min-height: 1.4em;
  font-size: 15px;
  color: var(--text-2);
}
.dialog__status:empty { display: none; }
.dialog__honeypot { display: none; }

/* Phones: dialogs become a full-screen sheet instead of a floating popup —
   the keyboard can't cover the form, the sheet scrolls on its own, and the
   close button stays pinned at the top. */
@media (max-width: 720px) {
  .dialog {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
  }
  .dialog::backdrop { background: var(--paper); backdrop-filter: none; }
  .dialog__inner {
    width: 100%;
    height: 100dvh;
    min-height: 100%;
    max-height: none;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: calc(64px + env(safe-area-inset-top)) 20px calc(32px + env(safe-area-inset-bottom));
  }
  .dialog__close {
    position: fixed;
    top: calc(12px + env(safe-area-inset-top));
    right: 12px;
    width: 44px;
    height: 44px;
    z-index: 2;
    background: var(--paper);
  }
  .dialog[open] .dialog__inner { animation: sheet-up 320ms cubic-bezier(0.2, 0.7, 0.2, 1); }
  /* 16px+ stops iOS zooming into fields on focus */
  .dialog__field input,
  .dialog__field select,
  .dialog__field textarea { font-size: 16px; }
  .dialog__cta .btn--primary { flex: 1 1 auto; justify-content: center; }
}
@keyframes sheet-up {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .dialog[open] .dialog__inner { animation: none; }
}
/* Lock the page behind an open dialog (script.js toggles this) */
html.has-dialog, html.has-dialog body { overflow: hidden; }
.dialog__cta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.dialog__note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-3);
  font-style: italic;
}

/* Signup form (legacy, still used for form class elsewhere) */
.signup { margin-top: 10px; }
.signup__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 6px 6px 22px;
  transition: border-color var(--tr);
}
.signup__row:focus-within { border-color: var(--ink); }
.signup__input {
  flex: 1 1 200px;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  color: var(--ink);
  padding: 10px 0;
  outline: none;
}
.signup__input::placeholder { color: var(--text-3); }
.signup__submit {
  flex: 0 0 auto;
  padding: 14px 22px;
}
.signup__status {
  margin-top: 12px;
  font-family: var(--ff-sans);
  font-style: italic;
  font-size: 14px;
  color: var(--text-2);
  min-height: 1em;
}
.signup__status.is-success { color: var(--ink); }
@media (max-width: 480px) {
  .signup__row {
    border-radius: 20px;
    padding: 10px;
    flex-direction: column;
  }
  .signup__submit { width: 100%; justify-content: center; border-radius: 999px; }
}

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

/* ---------- Who I help ---------- */
.who {
  padding-top: clamp(80px, 9vw, 140px);
  padding-bottom: clamp(80px, 9vw, 140px);
  border-top: 1px solid var(--line);
}
.who__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 80px);
  align-items: last baseline;
}
.who__inner .eyebrow-sm {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  align-self: start;
}
.who__title {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
  max-width: 14ch;
}
.who__sub {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  align-self: last baseline;
  max-width: 44ch;
  color: var(--text-3);
  font-size: var(--fs-lede);
}
@media (max-width: 860px) {
  .who__inner { grid-template-columns: 1fr; }
  .who__title, .who__sub, .who__inner .eyebrow-sm {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

/* ---------- FAIA (monochrome) ---------- */
.faia {
  padding-top: clamp(90px, 10vw, 160px);
  padding-bottom: clamp(90px, 10vw, 160px);
}

.faia__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: clamp(20px, 3vw, 48px);
  padding-bottom: clamp(32px, 4vw, 56px);
  border-bottom: 1px solid var(--line-dark);
}
.faia__head .eyebrow-sm { margin: 0; }
.faia__logo {
  grid-column: 2 / 3;
  justify-self: center;
  display: block;
  width: 100%;
  max-width: 540px;
  height: auto;
  /* Convert the brown + pink brand mark to pure B&W */
  filter: grayscale(100%) brightness(1.08) contrast(1.15) invert(1);
  mix-blend-mode: screen;
}
.faia__full {
  grid-column: 3 / 4;
  justify-self: end;
  font-family: var(--ff-sans);
  font-style: italic;
  font-size: clamp(14px, 1.1vw, 18px);
  color: var(--grey-300);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.faia__body {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 96px);
  padding-top: clamp(40px, 5vw, 72px);
  align-items: start;
}
.faia__title { max-width: 14ch; }
.faia__title em { color: var(--grey-300); }

.faia__copy {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 12px;
}
.faia .prose p {
  color: var(--grey-300);
  max-width: 44ch;
  font-size: var(--fs-lede);
}

.faia__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: 8px;
}
.btn--primary--invert {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.btn--primary--invert:hover {
  background: #ffffff;
  border-color: #ffffff;
}
.faia__ask {
  color: var(--grey-300);
  border-bottom-color: var(--grey-500);
  font-style: italic;
}
.faia__ask:hover { color: var(--paper); }

@media (max-width: 860px) {
  .faia__head {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .faia__logo { grid-column: 1 / -1; justify-self: start; max-width: 300px; }
  .faia__full { grid-column: 1 / -1; justify-self: start; }
  .faia__body { grid-template-columns: 1fr; }
}

/* ---------- Contact ---------- */
/* Contact and footer sit on one piece of moving artwork (hero-glass.js);
   the footer is dark frosted glass over it. */
.contact {
  position: relative;
  overflow: hidden; /* clip the text wash, which extends past the edges */
  color: #ffffff;
  background: #050505; /* shown until / unless the artwork draws */
  padding-top: clamp(96px, 11vw, 170px);
  padding-bottom: clamp(220px, 26vw, 400px); /* room for the glowing sweep */
}
.closing-art {
  position: absolute;
  left: 0;
  right: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.closing-art__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.closing-art__canvas[hidden] { display: none; }
/* artwork active: sections go transparent and sit above it */
.has-closing-art .contact {
  background: transparent;
  z-index: 1;
}
/* Footer: dark frosted glass over the artwork. A 0.7 tint alone keeps the
   footer text ≥ 7:1 (WCAG AAA) even over the brightest part of the art. */
.has-closing-art .site-footer {
  z-index: 1;
  background: rgba(8, 8, 10, 0.70);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  backdrop-filter: blur(24px) saturate(140%);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .has-closing-art .site-footer { background: #0b0b0c; }
}
/* Two columns like the other section heads: headline left; sentence and
   "Contact me" right, with "Contact me" on the headline's last baseline */
.contact__inner {
  position: relative;
  z-index: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 80px);
  align-items: last baseline;
}
/* Soft dark wash directly behind the text: at 0.74 black, even a pure-white
   part of the shape stays ≤ #424242, so the text keeps ≥ 7:1 (WCAG AAA). */
.contact__inner::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -50vw;
  right: -50vw;
  top: -90px;
  bottom: -90px;
  background: rgba(0, 0, 0, 0.74);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 90px, #000 calc(100% - 90px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 90px, #000 calc(100% - 90px), transparent 100%);
  pointer-events: none;
}
.contact__title {
  max-width: 14ch;
}
.contact__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(20px, 2.4vw, 32px);
}
.contact__lede {
  font-size: var(--fs-lede);
  color: #e2e2e2;
  max-width: 44ch;
}
@media (max-width: 860px) {
  .contact__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.contact__email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: clamp(30px, 4vw, 48px);
  max-width: 100%;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #ffffff;
  border-bottom: 1px solid currentColor;
  padding-bottom: 8px;
  transition: opacity var(--tr), transform 220ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.contact__email:hover {
  opacity: 0.7;
}


/* ---------- Consent checkboxes (forms) ----------
   Unticked by default; each says exactly what it agrees to. */
.consent {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  margin: 6px 0 12px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text-2);
}
.consent input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--ink);
  cursor: pointer;
}
.consent input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.consent label { cursor: pointer; }
.consent a,
.consent__note a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.consent__note {
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-3);
  margin: 0 0 4px;
}

/* ---------- Cookie consent banner ----------
   Accept and Reject are equally prominent; nothing optional is on until
   chosen. Injected on every page by script.js. */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 70;
  max-width: 640px;
  margin-left: auto;
  padding: 20px 22px;
  border-radius: 20px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  font-size: 15px;
  line-height: 1.5;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__title {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 6px;
}
.cookie-banner p { color: var(--text-2); }
.cookie-banner a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.cookie-banner__actions .btn { flex: 1 1 auto; justify-content: center; }
.cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #ffffff;
  flex: 1 1 auto;
  transition: transform 220ms cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 220ms ease, background-color var(--tr);
}
.cookie-btn--ghost {
  background: transparent;
  color: var(--ink);
}
.cookie-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.cookie-prefs {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  display: grid;
  gap: 12px;
}
.cookie-prefs[hidden] { display: none; }
.cookie-pref {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
}
.cookie-pref input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); }
.cookie-pref strong { display: block; font-weight: 600; }
.cookie-pref span { color: var(--text-2); }
@media (max-width: 520px) {
  .cookie-banner { left: 10px; right: 10px; bottom: 10px; padding: 18px; }
}

/* ---------- Legal pages (privacy, accessibility) ---------- */
.legal {
  padding-top: calc(56px + clamp(56px, 8vw, 110px));
  padding-bottom: clamp(80px, 10vw, 140px);
}
.legal__inner { max-width: 760px; }
.legal__title {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}
.legal__meta { color: var(--text-3); margin-bottom: 40px; }
.legal h2 {
  font-size: clamp(22px, 1.9vw, 28px);
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1.2;
  margin: 48px 0 14px;
}
.legal h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 28px 0 8px;
}
.legal p,
.legal li { color: var(--text-2); max-width: 70ch; }
.legal p + p { margin-top: 14px; }
.legal ul {
  list-style: disc;
  padding-left: 1.3em;
  margin: 10px 0 14px;
  display: grid;
  gap: 6px;
}
.legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 20px;
  font-size: 15px;
}
.legal th,
.legal td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
}
.legal th { color: var(--ink); font-weight: 600; }
.legal__table-wrap { overflow-x: auto; }
.legal__placeholder {
  background: #fff1a8;
  color: var(--ink);
  padding: 0 4px;
  border-radius: 3px;
}
.legal__cta { margin-top: 28px; }
.legal .btn--primary { color: var(--paper); text-decoration: none; } /* not the black-on-black of .legal a */
.legal__toc {
  display: grid;
  gap: 6px;
  margin: 0 0 8px;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--paper-2);
  list-style: none !important;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: #050505;
  color: var(--paper);
  padding-top: 0;
  padding-bottom: clamp(40px, 5vw, 64px);
}
/* Keyline above the footer, none below */
.site-footer__inner {
  position: relative;
  z-index: 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
  padding-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.site-footer__wordmark {
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.site-footer__role {
  margin-top: 8px;
  color: #ececec;
}

.site-footer__label {
  color: #ececec;
  margin-bottom: 12px;
}

.site-footer__email {
  display: inline-block;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.site-footer__email:hover {
  opacity: 0.7;
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
}
.site-footer__links a:hover {
  opacity: 0.7;
}

.site-footer__col--meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-end;
}
.site-footer__top {
  color: var(--paper);
  border-bottom-color: var(--paper);
}
.site-footer__copy {
  color: #ececec;
  text-align: right;
}
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 18px;
  font-size: 14px;
}
.site-footer__legal a {
  color: #ececec;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}
.site-footer__legal a:hover { opacity: 0.75; }
@media (max-width: 860px) {
  .site-footer__legal { justify-content: flex-start; }
}

@media (max-width: 860px) {
  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .site-footer__col--meta {
    align-items: flex-start;
    grid-column: 1 / -1;
    padding-top: 16px;
    border-top: 1px solid var(--line-dark);
  }
  .site-footer__copy {
    text-align: left;
  }
}
@media (max-width: 560px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ---------- Reveals ---------- */
/* Reveals: opt in only when JS marks the doc ready, so no-JS users and
   pre-script paints never see blank content. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
.js [data-reveal].is-instant {
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
