/* ─────────────────────────────────────────────────────────
   Tau Robotics — trial site
   Tokens → base → layout → components → sections → footer
   ───────────────────────────────────────────────────────── */

:root {
  --ink:        #14140f;
  --ink-soft:   #4a4a42;
  --muted:      #7c7c72;
  --forest:     #1f3d2f;
  --line:       #e4e2db;
  --bg:         #ffffff;
  --tint:       #f5f4ef;
  --dark:       #101010;
  --dark-soft:  #9a9a92;
  --accent:     #c8563a;

  --wrap:       1180px;
  --wrap-narrow: 760px;
  --r:          14px;
  --r-lg:       22px;

  --step:  clamp(72px, 9vw, 148px);
  --ease:  cubic-bezier(.22, .61, .36, 1);

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
p { margin: 0 0 1em; }
ol, ul { margin: 0; padding: 0; list-style: none; }

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

.skip {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 var(--r) 0;
}
.skip:focus { left: 0; }

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

/* ── Layout ─────────────────────────────────────────────── */

.wrap { width: min(100% - 44px, var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 44px, var(--wrap-narrow)); }

.section { padding-block: var(--step); }
.section--tint { background: var(--tint); }
.section--dark { background: var(--dark); color: #fff; }
.section--dark .lede,
.section--dark .eyebrow { color: var(--dark-soft); }

.grid { display: grid; gap: 26px; margin-top: 56px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ── Type ───────────────────────────────────────────────── */

.eyebrow {
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin: 0 0 20px;
}

.display { font-size: clamp(38px, 5.6vw, 76px); }
.h2      { font-size: clamp(30px, 3.6vw, 48px); }

.lede {
  font-size: clamp(18px, 1.6vw, 21px);
  color: var(--ink-soft);
  max-width: 58ch;
  margin-top: 26px;
}

.br-lg { display: none; }
@media (min-width: 800px) { .br-lg { display: inline; } }

/* ── Buttons ────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border: 0; border-radius: 999px;
  background: var(--ink); color: #fff;
  font: inherit; font-weight: 600; font-size: 15px; cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), opacity .25s;
}
.btn:hover { transform: translateY(-2px); background: #2c2c24; }
.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn--ghost {
  background: transparent; color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.5);
}
.btn--ghost:hover { background: rgba(255,255,255,.12); }

/* ── Nav ────────────────────────────────────────────────── */

.nav {
  position: fixed; inset: 0 0 auto; z-index: 100;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), color .35s var(--ease);
  color: #fff;
}
.nav__inner {
  width: min(100% - 44px, var(--wrap)); margin-inline: auto;
  display: flex; align-items: center; gap: 30px;
  height: 74px;
}
.nav.is-stuck {
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
  color: var(--ink);
}
.nav.is-stuck .btn--sm { background: var(--ink); color: #fff; }
.nav:not(.is-stuck) .btn--sm { background: #fff; color: var(--ink); }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -.02em; }
.brand__mark { width: 22px; height: 22px; }

.nav__links { margin-left: auto; display: flex; gap: 30px; font-size: 16px; }
.nav__links a { opacity: .85; transition: opacity .2s; }
.nav__links a:hover { opacity: 1; }

.nav__toggle {
  display: none; margin-left: auto;
  width: 42px; height: 42px; border: 0; background: none; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 6px; color: inherit;
}
.nav__toggle span { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease); }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child  { transform: translateY(-4px) rotate(-45deg); }

.nav__mobile {
  background: #fff; color: var(--ink);
  border-top: 1px solid var(--line);
  padding: 14px 22px 26px;
  display: grid; gap: 4px;
}
/* An author `display` beats the UA rule for [hidden], so restate it here —
   without this the panel renders even while the attribute is set. */
.nav__mobile[hidden] { display: none; }
.nav__mobile a { padding: 12px 0; font-size: 19px; border-bottom: 1px solid var(--line); }
.nav__mobile a:last-child { border-bottom: 0; }

@media (max-width: 860px) {
  .nav__links, .nav .btn--sm { display: none; }
  .nav__toggle { display: flex; }
  .nav.is-open { background: #fff; color: var(--ink); }
}

/* Belt and braces: the panel is never correct above the breakpoint, where the
   toggle that controls it isn't rendered. */
@media (min-width: 861px) {
  .nav__mobile { display: none; }
}

/* ── Hero ───────────────────────────────────────────────── */

.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-start;   /* title at the top, over the car */
  padding-block: 140px 88px;
  color: #fff; overflow: hidden;
  background: var(--dark);
}
.hero__media { position: absolute; inset: 0; }
.hero__media::after {           /* fallback wash when no video is present */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(90% 70% at 22% 18%, #3b3a35 0%, transparent 60%),
    radial-gradient(70% 60% at 82% 78%, #4d4136 0%, transparent 62%),
    linear-gradient(160deg, #1b1b18 0%, #0c0c0a 100%);
  z-index: -1;
}
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 42%, rgba(0,0,0,.78) 100%);
}
.hero__content { position: relative; }
/* Longer headline than a two-word one — cap lower so the three lines stay
   inside the wrap at desktop width and don't shrink to nothing on phones. */
.hero__title { font-size: clamp(38px, 5.8vw, 74px); letter-spacing: -.04em; text-wrap: balance; }
.hero__sub { font-size: clamp(18px, 2vw, 23px); color: rgba(255,255,255,.82); max-width: 38ch; margin-top: 26px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero__note { margin-top: 30px; font-size: 14px; letter-spacing: .04em; color: rgba(255,255,255,.6); }

.hero__down {
  position: absolute; left: 50%; bottom: 26px; translate: -50% 0;
  width: 1px; height: 54px; background: rgba(255,255,255,.25); overflow: hidden;
}
.hero__down span {
  display: block; width: 100%; height: 40%; background: #fff;
  animation: drop 2.4s var(--ease) infinite;
}
@keyframes drop { 0% { transform: translateY(-100%); } 100% { transform: translateY(250%); } }

/* ── Media ──────────────────────────────────────────────── */

/* `auto` inline, not 0 — these figures also carry .wrap, and a margin
   shorthand here would override its margin-inline:auto and pin them left. */
.media { margin: 60px auto 0; }
.media figcaption, .card figcaption {
  margin-top: 14px; font-size: 14px; color: var(--muted);
}
.media__frame {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  background: linear-gradient(150deg, #d9d5cb, #b0aca0);
}
.media__frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-4x3  { aspect-ratio: 4 / 3; }
.ratio-3x4  { aspect-ratio: 3 / 4; }

.chip {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(16,16,16,.62); backdrop-filter: blur(6px);
  color: #fff; font-size: 12px; letter-spacing: .04em;
}

.card figcaption strong { display: block; font-weight: 600; color: var(--ink); margin-bottom: 3px; }

/* ── Subpage header ─────────────────────────────────────── */

/* Pages with no hero still need a dark band under the fixed nav, otherwise
   the nav's white-on-transparent treatment lands on a light background. */
.pagehead { padding-block: 170px 64px; }
.pagehead .lede { color: var(--dark-soft); }
.section--tight { padding-top: 0; }

.pageback .lede { margin-bottom: 30px; }

/* ── Booking ────────────────────────────────────────────── */

.booking__step { margin-bottom: 52px; }
.booking__label {
  display: flex; align-items: center; gap: 12px;
  font-size: clamp(20px, 2.2vw, 25px); letter-spacing: -.02em; margin-bottom: 20px;
}
.booking__label span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; flex: none; border-radius: 50%;
  background: var(--forest); color: #fff; font-size: 15px; font-weight: 600;
}
.booking__hint { color: var(--ink-soft); margin-bottom: 18px; max-width: 60ch; }
.booking__hint a { text-decoration: underline; text-underline-offset: 3px; }

.booking__optional {
  font-size: 13px; font-style: normal; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted);
  padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px;
}
.booking__optin {
  display: flex; align-items: flex-start; gap: 12px;
  max-width: 60ch; margin-bottom: 12px; padding: 16px 20px; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--r);
  font-size: 16px; line-height: 1.5;
  transition: border-color .2s var(--ease);
}
.booking__optin:hover { border-color: var(--ink); }
.booking__optin input {
  flex: none; width: 18px; height: 18px; margin: 3px 0 0;
  accent-color: var(--forest);
}
.booking__sublabel {
  display: flex; align-items: center; gap: 12px;
  font-size: 19px; letter-spacing: -.01em; margin: 34px 0 14px;
}
.booking__textarea {
  display: block; width: 100%; max-width: 60ch; min-height: 96px; resize: vertical;
  padding: 14px 20px; border-radius: var(--r);
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  font: inherit; font-size: 16px;
}

.booking__notice {
  padding: 16px 20px; margin-bottom: 36px; border-radius: var(--r);
  background: #fdf3ec; color: #7a3b1d; font-size: 16px;
}

/* Day picker: horizontal scroller so 14 days fit on any width */
.daypicker {
  display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}
.day {
  flex: 0 0 auto; scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-width: 72px; padding: 12px 10px; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--bg);
  font: inherit; color: var(--ink);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.day:hover { border-color: var(--ink); }
.day.is-on { background: var(--forest); border-color: var(--forest); color: #fff; }
.day__dow { font-size: 13px; opacity: .75; }
.day__num { font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.day__mon { font-size: 13px; opacity: .75; }

/* Slots */
.slots { display: flex; flex-wrap: wrap; gap: 10px; }
.slots__empty { color: var(--muted); margin: 0; }
.slot {
  padding: 12px 20px; cursor: pointer; font: inherit; font-size: 16px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.slot:hover { border-color: var(--ink); }
.slot.is-on { background: var(--forest); border-color: var(--forest); color: #fff; }

.booking__row { display: flex; gap: 10px; flex-wrap: wrap; }
.booking__row input {
  flex: 1 1 260px; padding: 14px 20px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  font: inherit; font-size: 16px;
}
.booking__row select {
  flex: 1 1 260px; padding: 14px 20px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  font: inherit; font-size: 16px; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237c7c72' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 20px center;
}
.booking__row select:invalid { color: var(--muted); }
.booking__row .btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* Details form: stack the fields full-width instead of wrapping */
.booking__row--stack { flex-direction: column; align-items: stretch; }
.booking__row--stack > input,
.booking__row--stack > textarea,
.booking__row--stack > select,
.booking__row--stack > .btn { flex: 0 0 auto; width: 100%; }
.booking__row--stack #invite { text-transform: uppercase; letter-spacing: .04em; }
.booking__row--split { flex-direction: row; flex-wrap: nowrap; }
.booking__row--split > div { flex: 1 1 0; min-width: 0; }
.booking__row--split input { flex: 0 0 auto; width: 100%; }
.booking__row textarea {
  padding: 14px 20px; border-radius: 18px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  font: inherit; font-size: 16px; resize: vertical;
}
.booking__total { margin: 6px 0 2px; font-size: 16px; color: var(--ink-soft); }
.booking__total strong { color: var(--ink); }
.booking__msg { margin: 14px 0 0; font-size: 16px; color: var(--ink-soft); min-height: 22px; }
.booking__legal { margin: 6px 0 0; font-size: 14px; color: var(--muted); max-width: 60ch; }
.booking__legal a { text-decoration: underline; text-underline-offset: 3px; }

.booking__nocode {
  margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line);
}
.booking__nocode-title { font-size: clamp(20px, 2.2vw, 25px); letter-spacing: -.02em; margin-bottom: 12px; }
.booking__nocode p { color: var(--ink-soft); max-width: 52ch; margin-bottom: 22px; }

/* ── Share CTA (booked page) ────────────────────────────── */

.share {
  background: var(--tint); border-radius: var(--r-lg);
  padding: 34px 36px; margin-bottom: 48px;
}
.share__title {
  font-size: clamp(21px, 2.4vw, 27px); letter-spacing: -.02em; margin-bottom: 10px;
}
.share p { color: var(--ink-soft); max-width: 52ch; margin-bottom: 20px; }

/* ── Cancellation page ──────────────────────────────────── */

.cancelcard {
  background: var(--tint); border-radius: var(--r-lg);
  padding: 34px 36px; max-width: 640px;
}
.cancelcard__title {
  font-size: clamp(21px, 2.4vw, 27px); letter-spacing: -.02em; margin-bottom: 10px;
}
.cancelcard__when { font-size: 18px; color: var(--ink); margin-bottom: 14px; }
.cancelcard__refund { color: var(--ink-soft); max-width: 56ch; margin-bottom: 20px; }
.cancelcard__refund strong { color: var(--forest); }
.btn--danger { background: var(--accent); }
.btn--danger:hover { background: #a94530; }
.btn--danger:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ── Referral panel (waitlist page) ─────────────────────── */

.refpanel {
  background: var(--tint); border-radius: var(--r-lg);
  padding: 34px 36px; margin-top: 48px;
}
.refpanel__title {
  font-size: clamp(21px, 2.4vw, 27px); letter-spacing: -.02em; margin-bottom: 10px;
}
.refpanel p { color: var(--ink-soft); max-width: 56ch; margin-bottom: 18px; }
.refpanel__msg {
  margin: 0 0 20px; padding: 16px 20px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r);
  color: var(--ink); font-size: 16px; line-height: 1.6; max-width: 60ch;
  overflow-wrap: anywhere;
}
.refpanel__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── Legal prose ────────────────────────────────────────── */

.legal h2 {
  font-size: clamp(21px, 2.4vw, 27px);
  letter-spacing: -.02em;
  margin: 44px 0 12px;
}
.legal h2:first-child { margin-top: 0; }
.legal p { color: var(--ink-soft); max-width: 68ch; margin: 0 0 14px; }
.legal p strong { color: var(--ink); }
.legal__list { max-width: 68ch; margin: 0 0 14px; padding: 0; list-style: none; }
.legal__list li {
  position: relative; padding-left: 20px; margin-bottom: 12px;
  color: var(--ink-soft);
}
.legal__list li::before {
  content: ""; position: absolute; left: 2px; top: 10px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.legal__list strong { color: var(--ink); }
.legal a:not(.btn) { text-decoration: underline; text-underline-offset: 3px; }
.legal table {
  width: 100%; max-width: 68ch; border-collapse: collapse;
  margin: 0 0 18px; font-size: 16px;
}
.legal th, .legal td {
  text-align: left; vertical-align: top; padding: 10px 18px 10px 0;
  border-bottom: 1px solid var(--line); color: var(--ink-soft);
}
.legal th { color: var(--ink); font-weight: 600; }
.lede a { text-decoration: underline; text-underline-offset: 3px; }

/* ── Open roles list ────────────────────────────────────── */

.roles { margin-top: 56px; border-top: 1px solid var(--line); }
.role { border-bottom: 1px solid var(--line); }
.role a {
  display: grid; grid-template-columns: 1fr auto auto;
  align-items: center; gap: 20px;
  padding: 26px 4px;
  transition: padding-inline .3s var(--ease), color .3s var(--ease);
}
.role a:hover { padding-inline: 14px 4px; color: var(--forest); }
.role__title { font-size: clamp(19px, 2vw, 24px); font-weight: 600; letter-spacing: -.02em; }
.role__meta { font-size: 14.5px; color: var(--muted); }
.role__arrow { font-size: 20px; color: var(--muted); }
.role a:hover .role__arrow { color: var(--forest); }

.roles__note { margin-top: 34px; color: var(--ink-soft); font-size: 17px; }
.link { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 620px) {
  .role a { grid-template-columns: 1fr auto; row-gap: 6px; }
  .role__meta { grid-column: 1; }
  .role__arrow { grid-row: 1 / span 2; }
}

/* ── Application form ───────────────────────────────────── */

.apply__about { color: var(--ink-soft); max-width: 68ch; margin: 0 0 8px; font-size: 18px; }
.apply__done { margin-top: 28px; color: var(--ink); font-size: 18px; max-width: 60ch; }

.apply__h {
  font-size: 15px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted); margin: 40px 0 14px;
}

.apply__list { max-width: 68ch; margin: 0; padding: 0; list-style: none; }
.apply__list li {
  position: relative; padding-left: 22px; margin-bottom: 10px; color: var(--ink-soft);
}
.apply__list li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }

#applyForm { margin-top: 8px; }
.apply__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.apply__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .apply__grid { grid-template-columns: 1fr; } }

.field { margin-bottom: 18px; }
.field label {
  display: block; margin-bottom: 7px;
  font-size: 14px; letter-spacing: .03em; color: var(--ink-soft);
}
.field input, .field textarea {
  width: 100%; padding: 13px 16px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--bg); color: var(--ink);
  font: inherit; font-size: 16px;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--forest); }
.field textarea { resize: vertical; min-height: 180px; }
.field input[type="file"] { padding: 11px 14px; cursor: pointer; }
.field input[type="file"]::file-selector-button {
  margin-right: 14px; padding: 6px 14px; cursor: pointer;
  border: 0; border-radius: 999px; background: var(--tint); color: var(--ink);
  font: inherit; font-size: 14.5px;
}
.field__note { margin: 8px 0 10px; max-width: 68ch; font-size: 14px; color: var(--muted); }
.apply__copy {
  padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: inherit; color: var(--forest);
  text-decoration: underline; text-underline-offset: 3px;
}

.apply__notice { margin: 16px 0 0; max-width: 68ch; font-size: 14.5px; color: var(--muted); }

.apply__msg { margin: 14px 0 0; font-size: 16px; color: var(--ink-soft); min-height: 22px; }

/* ── Split ──────────────────────────────────────────────── */

.split__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split__text p { color: var(--ink-soft); max-width: 46ch; }
.split__text .h2 { margin-bottom: 22px; }

.ticks { margin-top: 26px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; color: var(--ink-soft); font-size: 17px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ── Timeline ───────────────────────────────────────────── */

.timeline {
  margin-top: 64px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.timeline li { padding-top: 26px; border-top: 1px solid rgba(255,255,255,.18); }
.timeline time { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--dark-soft); }
.timeline h3 { font-size: 22px; margin: 12px 0 8px; }
.timeline p { font-size: 15px; color: var(--dark-soft); margin: 0; }

/* ── Tiles & panels ─────────────────────────────────────── */

.tile { padding: 30px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); }
.tile em { font-style: normal; font-size: 13px; letter-spacing: .12em; color: var(--muted); }
.tile h3 { font-size: 22px; margin: 14px 0 10px; }
.tile p { color: var(--ink-soft); font-size: 17px; margin: 0; }

.panel {
  background: var(--bg); border-radius: var(--r-lg); padding: 38px 36px 42px;
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.panel:hover { transform: translateY(-5px); box-shadow: 0 22px 50px -28px rgba(20,20,15,.42); }
.panel__art {
  width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--r); margin-bottom: 30px;
  background: var(--tint);   /* holds the space while the photo decodes */
}
.panel h3 { font-size: clamp(25px, 2vw, 31px); margin-bottom: 16px; letter-spacing: -.03em; }
.panel h3:last-child { margin-bottom: 0; }
.panel p { color: var(--ink-soft); margin: 0 0 .85em; font-size: 17.5px; line-height: 1.55; }
.panel p:last-child { margin-bottom: 0; }
.panel__lead { color: var(--ink); font-weight: 550; font-size: 19px; }

/* Services sit directly under the hero, so give the cards room to breathe
   and let them run wider than the standard text measure. */
.services .grid { margin-top: 64px; gap: 32px; }
.services .wrap.grid { width: min(100% - 44px, 1320px); }

/* ── Capabilities: lead clip, heading, then three small cards ── */

.caps__hero { margin-block: 0; margin-inline: auto; }
.caps__hero figcaption,
.caps__trio figcaption {
  margin-top: 14px; font-size: 16px; color: var(--muted); line-height: 1.5;
}
.caps__hero figcaption strong,
.caps__trio figcaption strong { color: var(--ink); font-weight: 600; }

.caps__head { margin-top: clamp(48px, 6vw, 84px); }

.caps__trio {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: clamp(32px, 4vw, 52px);
}
.caps__trio figure { margin: 0; }

@media (max-width: 900px) {
  .caps__trio { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .caps__trio { grid-template-columns: 1fr; }
}

/* ── Featured cleaners ──────────────────────────────────── */

.cleaners__title {
  font-size: clamp(28px, 3.4vw, 44px);
  color: var(--forest);
  margin-bottom: 56px;
}
.cleaners__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 56px 44px;
}

.cleaner__head { display: flex; align-items: center; gap: 22px; }
.cleaner__pic {
  width: 112px; height: 112px; flex: 0 0 112px;
  border-radius: 50%; object-fit: cover;
  background: var(--tint);
}
.cleaner__meta h3 { font-size: 22px; color: var(--forest); letter-spacing: -.02em; }

.cleaner__tasks { margin: 6px 0 0; font-size: 16px; color: var(--ink-soft); }

.cleaners__cta { margin-top: 52px; text-align: center; }
.cleaners__note { margin: 14px 0 0; font-size: 14.5px; color: var(--muted); }

.cleaner { display: flex; flex-direction: column; }
.cleaner__bio {
  margin: 22px 0 0; padding: 22px 24px;
  background: var(--tint); border-radius: 10px;
  font-size: 17px; line-height: 1.6; color: var(--ink-soft);
}

@media (max-width: 1000px) { .cleaners__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  {
  .cleaners__grid { grid-template-columns: 1fr; gap: 40px; }
  .cleaner__pic { width: 88px; height: 88px; flex-basis: 88px; }
}

/* ── FAQ ────────────────────────────────────────────────── */

.faq { margin-top: 48px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 40px 24px 0; position: relative;
  font-size: clamp(18px, 2vw, 22px); font-weight: 550; letter-spacing: -.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 13px; height: 13px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  translate: 0 -60%; rotate: 45deg; transition: rotate .3s var(--ease);
}
.faq details[open] summary::after { rotate: -135deg; translate: 0 -20%; }
.faq details p { margin: 0 0 26px; color: var(--ink-soft); max-width: 62ch; }

/* ── CTA ────────────────────────────────────────────────── */

.cta { padding-block: var(--step); text-align: center; }
.cta .lede { margin-inline: auto; }
.cta .eyebrow { color: var(--dark-soft); }

.signup {
  margin-top: 40px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  position: relative;
}
.signup input {
  width: min(100%, 340px); padding: 14px 20px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06);
  color: #fff; font: inherit; font-size: 16px;
}
.signup input::placeholder { color: rgba(255,255,255,.45); }
.signup .btn { background: #fff; color: var(--ink); }
.signup .btn:hover { background: #e9e7e0; }
/* Buttons anywhere in the dark CTA section: white on dark, or they vanish. */
.cta .btn { background: #fff; color: var(--ink); }
.cta .btn:hover { background: #e9e7e0; }
.signup__msg { flex-basis: 100%; margin: 4px 0 0; font-size: 14px; color: var(--dark-soft); min-height: 20px; }

/* ── Footer ─────────────────────────────────────────────── */

.footer { background: var(--dark); color: #fff; padding-block: 76px 34px; }
.footer__inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 34px;
  padding-bottom: 52px; border-bottom: 1px solid rgba(255,255,255,.14);
}
.footer__brand p { color: var(--dark-soft); font-size: 16px; margin-top: 16px; }
.footer__col h4 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--dark-soft); font-weight: 600; margin-bottom: 16px; }
.footer__col a { display: block; padding: 5px 0; font-size: 16px; color: rgba(255,255,255,.85); }
.footer__col a:hover { color: #fff; }
.footer__base {
  display: flex; justify-content: space-between; padding-top: 24px;
  font-size: 13px; color: var(--dark-soft);
}

/* ── Reveal ─────────────────────────────────────────────── */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__down span { animation: none; }
}

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 900px) {
  .grid--3, .grid--2, .timeline { grid-template-columns: 1fr 1fr; }
  .split__inner { grid-template-columns: 1fr; }
  .split__media { order: -1; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 17px; }
  .grid--3, .grid--2, .timeline { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__base { flex-direction: column; gap: 6px; }
}
