/* The Design Mate · production stylesheet (Leo, from Sasha's approved v3 "clean" mock-up + DESIGN.md v3).
   Layout and look only. No transforms are baked into layout: every motion rule lives in css/motion.css
   (Milo owns that file). Pure white, Ink type, huge centred headlines, no cards, no borders, no shadows. */

:root {
  --ink: #141B2D;
  --ink-soft: #4A5163;
  --white: #FFFFFF;
  --mist: #F5F5F7;
  --line: rgba(20, 27, 45, .14);
  --error: #B4232A;

  /* Mate colours: dots only */
  --timber: linear-gradient(180deg, #FF6F61, #FFA24C);
  --pixel: linear-gradient(180deg, #4FA8FF, #7B7CFF);
  --chalky: linear-gradient(180deg, #1B1B1F, #3A3A40); /* charcoal (v3); white text if ever a surface */
  --nutty: linear-gradient(180deg, #FFD84D, #FF9F1C);
  --prism: linear-gradient(180deg, #B57BFF, #FF5FA2);

  --f-display: "Outfit", "Outfit Fallback", system-ui, sans-serif;
  --f-body: "Figtree", "Figtree Fallback", system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);

  --gutter: 20px;
  --nav-h: 48px;
  --section: clamp(56px, 8vw, 100px);
  --max: 980px;
}
@media (min-width: 768px) { :root { --gutter: 32px; --nav-h: 52px; } }
@media (min-width: 1200px) { :root { --gutter: 48px; } }

/* Size-adjusted local fallbacks so the swap to the web fonts barely moves the layout */
@font-face { font-family: "Outfit Fallback"; src: local("Arial"); size-adjust: 100%; ascent-override: 100%; descent-override: 26%; line-gap-override: 0%; }
@font-face { font-family: "Figtree Fallback"; src: local("Arial"); size-adjust: 96%; ascent-override: 98%; descent-override: 26%; line-gap-override: 0%; }

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font: 400 17px/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.icons { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 30;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; text-decoration: none;
  min-height: 44px; display: inline-flex; align-items: center;
}
.skip:focus { top: 12px; }

/* ── Wordmark ─────────────────────────────────────────── */
.wm { font: 800 19px/1 var(--f-display); letter-spacing: -.035em; text-decoration: none; color: var(--ink); display: inline-flex; align-items: center; white-space: nowrap; min-height: 44px; }
.wm__tick { width: .78em; height: .62em; margin-left: .08em; color: var(--ink); position: relative; top: .04em; flex: none; }

/* ── Nav ──────────────────────────────────────────────── */
/* Quinn: the nav sits inside <header>, whose box is only as tall as the nav, so sticky on .nav alone
   let it scroll away with the header. The header is the sticky box. */
body > header { position: sticky; top: 0; z-index: 20; }
.nav {
  position: sticky; top: 0; z-index: 20; height: var(--nav-h);
  background: rgba(255, 255, 255, .95);
  transition: box-shadow .4s var(--ease);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .nav { background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
}
.nav.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.nav__in { height: 100%; max-width: calc(1200px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); display: flex; align-items: center; justify-content: space-between; }
.nav__cta {
  position: relative;
  font: 500 14px/1 var(--f-body); text-decoration: none; color: #fff; background: var(--ink);
  padding: 8px 15px; border-radius: 999px; min-height: 32px; display: inline-flex; align-items: center;
  transition: background-color .3s var(--ease);
}
.nav__cta:hover { background: #262E44; }
.nav__cta::after { content: ""; position: absolute; inset: -6px -4px; } /* 44px tap area, pill stays small */

/* ── Type ─────────────────────────────────────────────── */
.eyebrow { font: 500 15px/1.3 var(--f-body); color: var(--ink-soft); margin-bottom: 18px; display: inline-flex; align-items: center; gap: 8px; }
.display {
  font: 800 clamp(40px, 5.6vw, 80px)/1.04 var(--f-display); letter-spacing: -.035em;
  text-wrap: balance; max-width: 15ch; margin-inline: auto;
}
.h2 {
  font: 800 clamp(36px, 5.4vw, 76px)/1.05 var(--f-display); letter-spacing: -.035em;
  text-wrap: balance;
}
.lead { font: 400 clamp(19px, 1.2vw + 13px, 25px)/1.4 var(--f-body); color: var(--ink-soft); text-wrap: balance; max-width: 34ch; margin-inline: auto; }
.h2 + .lead { margin-top: 16px; }
.small { font: 400 15px/1.5 var(--f-body); color: var(--ink-soft); text-wrap: balance; }
.cap { font: 500 13px/1.3 var(--f-body); color: var(--ink-soft); letter-spacing: .01em; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; }
.ph { font: 500 12px/1.4 var(--f-body); color: #6A5300; background: #FFF4CC; padding: 1px 6px; border-radius: 4px; white-space: nowrap; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
@media (max-width: 359px) { .ph { white-space: normal; } }

/* ── Button: one quiet near-black pill ────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px; border: 0; border-radius: 999px;
  background: var(--ink); color: #fff; text-decoration: none; cursor: pointer;
  font: 500 17px/1 var(--f-body);
  transition: background-color .35s var(--ease);
}
.btn:hover { background: #262E44; }
.btn--block { width: 100%; min-height: 52px; }
.btn[aria-disabled="true"] { cursor: progress; background: #262E44; }

/* ── Sections ─────────────────────────────────────────── */
.section { padding-block: var(--section); }
.section--mist { background: var(--mist); }

/* ── 1 Hero: background layer + text layer + line-up layer (separate for parallax) ── */
.hero { position: relative; isolation: isolate; padding-top: clamp(36px, 5vw, 72px); padding-bottom: clamp(32px, 3vw, 40px); }
.hero__bg { position: absolute; inset: 0; z-index: -1; background: var(--white); pointer-events: none; }
.hero__text { position: relative; }
.hero__text .lead { margin-top: 20px; }
.hero__text .btn { margin-top: 30px; }
.hero__mates { position: relative; margin: clamp(28px, 4vw, 56px) auto 0; max-width: 1280px; padding-inline: var(--gutter); text-align: center; }
.hero__media { position: relative; }
.hero__media img { width: 100%; aspect-ratio: 2000 / 850; object-fit: cover; }
.hero__mates .cap { margin-top: 8px; }
@media (max-width: 767px) { .hero__mates { padding-inline: 0; } }

/* ── 2 Five Mates. Five jobs. ─────────────────────────── */
.mates {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px;
  max-width: calc(1360px + 2 * var(--gutter)); margin: clamp(48px, 6vw, 88px) auto 0; padding-inline: var(--gutter);
}
.mate { text-align: center; }
.mate__media { position: relative; overflow: hidden; border-radius: 22px; aspect-ratio: 4 / 5; background: var(--mist); }
.mate__media img { width: 100%; height: 100%; object-fit: cover; }
.mate__name { margin-top: 20px; font: 700 clamp(22px, 1.6vw, 28px)/1.1 var(--f-display); letter-spacing: -.02em; display: inline-flex; align-items: center; gap: 10px; }
.mate__name > span { text-align: center; }
.mate__spec { font-size: .72em; font-weight: 600; letter-spacing: -.01em; color: var(--ink-soft); white-space: nowrap; }
.mate__job { margin-top: 4px; font: 400 16px/1.4 var(--f-body); color: var(--ink-soft); }
.mates-foot .cap { margin-top: 40px; }
.mates-foot .small { margin-top: 6px; }
.pager { display: none; }

@media (max-width: 899px) {
  .mates {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 74%;
    gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    scrollbar-width: none; overscroll-behavior-x: contain;
  }
  .mates::-webkit-scrollbar { display: none; }
  .mate { scroll-snap-align: start; }
  .mates::after { content: ""; width: 1px; }
  .pager { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }
  .pager i { width: 7px; height: 7px; border-radius: 50%; background: rgba(20, 27, 45, .2); transition: background-color .4s var(--ease); }
  .pager i.is-on { background: var(--ink); }
  .mates-foot .cap { margin-top: 24px; }
}
@media (min-width: 600px) and (max-width: 899px) { .mates { grid-auto-columns: 40%; } }

/* ── 3 How it works ───────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin: clamp(56px, 6vw, 96px) 0 clamp(48px, 5vw, 72px); }
.steps__n { display: block; font: 800 clamp(76px, 10vw, 148px)/.9 var(--f-display); letter-spacing: -.05em; color: var(--ink); }
.steps p { margin-top: 18px; font: 500 clamp(19px, 1.5vw, 22px)/1.35 var(--f-body); color: var(--ink); }
@media (max-width: 767px) { .steps { grid-template-columns: 1fr; gap: 48px; } }

/* Every detail, checked: centred 2x2, one column on phone */
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 4vw, 56px) clamp(48px, 6vw, 96px); max-width: 880px; margin: clamp(56px, 6vw, 96px) auto 0; text-align: left; }
.checks li { display: flex; align-items: flex-start; gap: 14px; }
.checks__ic { width: 26px; height: 26px; flex: none; color: var(--ink); margin-top: 1px; }
.checks p { display: grid; gap: 6px; }
.checks strong { font: 600 clamp(19px, 1.5vw, 22px)/1.3 var(--f-body); color: var(--ink); letter-spacing: -.01em; }
.checks span { font: 400 16px/1.5 var(--f-body); color: var(--ink-soft); text-wrap: pretty; }
@media (max-width: 767px) { .checks { grid-template-columns: 1fr; gap: 36px; max-width: 420px; } }

/* ── 4 Before / after ─────────────────────────────────── */
.ba {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 3vw, 40px);
  max-width: calc(1080px + 2 * var(--gutter)); margin: clamp(48px, 6vw, 88px) auto 0; padding-inline: var(--gutter);
}
.ba__item { text-align: center; }
.ba__media { position: relative; overflow: hidden; border-radius: clamp(14px, 2vw, 24px); aspect-ratio: 4 / 5; background: var(--mist); }
.ba__media img { width: 100%; height: 100%; object-fit: cover; }
.ba__label { display: block; margin-top: 16px; font: 600 clamp(15px, 1.2vw, 18px)/1.3 var(--f-body); }
.ba .cap { grid-column: 1 / -1; text-align: center; margin-top: 8px; }

/* ── 5 Samples: calm gallery at one shared height ─────── */
.gallery {
  display: flex; justify-content: center; align-items: flex-end; gap: clamp(28px, 3.4vw, 56px);
  max-width: calc(1280px + 2 * var(--gutter)); margin: clamp(56px, 6vw, 96px) auto 0; padding-inline: var(--gutter);
  --h: clamp(260px, 28vw, 420px);
}
.gallery li { text-align: center; flex: none; }
.sample__media { position: relative; overflow: hidden; border-radius: 10px; height: var(--h); }
.sample__media img { height: var(--h); width: auto; max-width: none; } /* Quinn: a length, not 100%, so width follows the image ratio (100% let the sizes width win and stretched the samples) */
.gallery p { margin-top: 16px; font: 500 14px/1.3 var(--f-body); color: var(--ink-soft); display: inline-flex; align-items: center; gap: 8px; }
.samples-cap { margin-top: 40px; }
@media (max-width: 899px) {
  .gallery {
    justify-content: flex-start; gap: 16px; --h: 380px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    scrollbar-width: none; overscroll-behavior-x: contain;
  }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery li { scroll-snap-align: start; }
  .gallery::after { content: ""; flex: none; width: 4px; }
  .gallery p { font-size: 13px; }
}

/* ── 6 Founding spots ─────────────────────────────────── */
.eyebrow--nutty { font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.price { display: flex; flex-direction: column; align-items: center; }
.price__n { font: 800 clamp(104px, 15vw, 216px)/.92 var(--f-display); letter-spacing: -.055em; font-variant-numeric: lining-nums; }
.price__u { font: 700 clamp(22px, 2vw, 30px)/1 var(--f-display); letter-spacing: -.02em; margin-top: 8px; }
.lines { margin: clamp(32px, 4vw, 48px) auto clamp(32px, 4vw, 44px); display: grid; gap: 8px; }
.lines li { font: 400 clamp(18px, 1.3vw, 21px)/1.45 var(--f-body); color: var(--ink-soft); text-wrap: balance; }
#founding-spots .small { margin-top: 20px; }

/* ── 7 Get started (the one Mist section) ─────────────── */
[hidden] { display: none !important; }
.form { max-width: 480px; margin: clamp(40px, 5vw, 64px) auto 0; text-align: left; display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font: 500 15px/1.2 var(--f-body); }
.opt { font-weight: 400; color: var(--ink-soft); margin-left: 6px; }
.field input, .field textarea {
  font: 400 17px/1.3 var(--f-body); color: var(--ink); background: var(--white);
  height: 52px; padding: 0 16px; border-radius: 14px; width: 100%;
  border: 1px solid rgba(74, 81, 99, .55);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.field input:hover { border-color: var(--ink-soft); }
.field input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(20, 27, 45, .14); }
.field input:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.field input[aria-invalid="true"] { border-color: var(--error); }
.field input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(180, 35, 42, .16); }
.field__err { font: 500 14px/1.4 var(--f-body); color: var(--error); }
.field__err:empty { display: none; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { margin-top: 10px; }
.form .small { text-align: center; }
.form__status { font: 500 15px/1.45 var(--f-body); text-align: center; color: var(--ink); }
.form__status:empty { display: none; }
.form__status.is-error { color: var(--error); }
.form-done { max-width: 480px; margin: clamp(40px, 5vw, 64px) auto 0; font: 500 clamp(19px, 1.3vw + 12px, 23px)/1.45 var(--f-body); color: var(--ink); text-wrap: balance; }
.form-done[hidden] { display: none; }
.form-done:focus { outline: none; }
.form-done:focus-visible { outline: 3px solid var(--ink); outline-offset: 6px; }
.nocatch { margin-top: clamp(40px, 5vw, 56px); display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; }
.nocatch li { font: 400 14px/1.4 var(--f-body); color: var(--ink-soft); display: inline-flex; align-items: center; gap: 6px; }
.nocatch svg { width: 16px; height: 16px; color: var(--ink); flex: none; }
@media (max-width: 599px) { .nocatch { flex-direction: column; align-items: center; } }

/* ── Footer ───────────────────────────────────────────── */
.foot { padding: 56px 0 64px; }
.foot__in { display: grid; justify-items: center; text-align: center; gap: 10px; }
.foot p { font: 400 14px/1.5 var(--f-body); color: var(--ink-soft); text-wrap: balance; }
.foot .wm { font-size: 17px; margin-bottom: 0; }
.foot .foot__ai { font-size: 13px; max-width: 52ch; }

/* ── 404 ──────────────────────────────────────────────── */
.nf { padding-block: clamp(72px, 12vw, 160px) var(--section); }
.nf .lead { margin-top: 20px; }
.nf .btn { margin-top: 30px; }
.nf__mates { max-width: 720px; margin: clamp(40px, 6vw, 72px) auto 0; padding-inline: var(--gutter); }
.nf__mates img { width: 100%; aspect-ratio: 2000 / 850; object-fit: cover; }
.nf__mates .cap { margin-top: 8px; }

/* Hero video loop (Tristan, 2026-11-01). Sits over the still line-up, which stays as poster and fallback.
   v4 loop back on 2026-11-01 (video/hero-loop-960.mp4 + 1600.mp4). */
.hero__media { position: relative; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .hero__video { display: none; } }
