/* ==========================================================================
   Skip The Line — stylesheet
   Palette taken from SkipTheLine_BrandGuide.pdf, not sampled or invented.

     PRIMARY   #000000  #FFFFFF
     TEALS     #0D363E  #045060  #3492A5  #8DCDDA
     BLUES     #263F5E  #64A6F7  #88BBFA  #B7D7FF

   ---------------------------------------------------------------------------
   TYPEFACE — READ THIS BEFORE CHANGING IT

   The brand typeface is Eurostile (Extd Medium + Light Extended). The files
   in Marketing & Brand/_BRAND GUIDE-1/FONTS/ are DESKTOP licences (.otf and
   .ttf). Desktop font licences do NOT permit @font-face web embedding —
   that needs a separate web licence from Monotype/Linotype.

   So this build uses Archivo, a free variable font whose expanded width axis
   is the closest honest match to Eurostile Extended. The logo lockups are
   already-rasterised PNGs, so the real Eurostile is still present wherever
   the logo appears — which is compliant, because that's artwork, not
   embedded type.

   To use real Eurostile on the web, buy the web licence, drop the .woff2
   files in src/fonts/, and swap the stack below. Don't just point
   @font-face at the .otf in the brand folder.
   ---------------------------------------------------------------------------
   ========================================================================== */

:root {
  --black: #000000;
  --ink: #0d363e;
  --ink-2: #045060;
  --teal: #3492a5;
  --accent: #8dcdda;
  --accent-dk: #3492a5;
  --navy: #263f5e;
  --blue: #64a6f7;
  --blue-lt: #88bbfa;
  --blue-pale: #b7d7ff;

  --paper: #ffffff;
  --off: #f5f8f9;
  --line: #dde7ea;
  --text: #14262b;
  --muted: #5a6e74;

  --wrap: 1180px;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(13, 54, 62, .06), 0 12px 32px rgba(13, 54, 62, .09);

  --font: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Headings get the expanded width axis — this is what echoes Eurostile. */
h1, h2, h3, .eyebrow, .stat-value, .footer-name, .btn, .trust-list li {
  font-variation-settings: 'wdth' 112;
}
h1, h2, .stat-value { font-variation-settings: 'wdth' 118; }

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }

h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.14rem; font-weight: 700; }
p { margin: 0 0 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 800px; }
.center { text-align: center; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 20px;
}
.skip-link:focus { left: 8px; top: 8px; }

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

/* --- Eyebrow / lede ------------------------------------------------------ */
.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent-dk); margin: 0 0 .7rem;
}
.lede { font-size: 1.09rem; color: var(--muted); max-width: 62ch; }

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: .85rem 1.5rem; border-radius: 999px;
  font-weight: 600; font-size: .96rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .12s ease, background .16s ease, color .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-2); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* Smaller pill, for the header — a full-size button sits too heavy against
   the nav and logo. */
.btn-sm { padding: .55rem 1.1rem; font-size: .88rem; border-width: 1.5px; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 0; }
.btn-row.center { justify-content: center; }

/* --- Announcement bar ---------------------------------------------------- */
.announce {
  background: var(--ink); color: var(--accent);
  font-size: .84rem; font-weight: 500; text-align: center;
  padding: .6rem 24px;
}

/* --- Header -------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 74px; }
/* Header lockup: the "S" mark beside the wordmark, echoing the horizontal
   lockup in the brand guide. Both PNGs are black with transparency. */
.logo { flex: 0 0 auto; display: flex; align-items: center; gap: .6rem; }
.logo-mark { width: 34px; height: auto; }
.logo-word { width: 148px; height: auto; }

.site-nav { margin-left: auto; }
.site-nav > ul { display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.site-nav a, .site-nav button {
  display: flex; align-items: center; gap: .3rem;
  padding: .55rem .8rem; border-radius: 8px;
  font: inherit; font-size: .95rem; font-weight: 500;
  color: var(--text); text-decoration: none;
  background: none; border: 0; cursor: pointer;
}
.site-nav a:hover, .site-nav button:hover { background: var(--off); color: var(--ink); }

.has-sub { position: relative; }
.sub {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px;
  list-style: none; margin: 0; padding: .5rem;
  background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .14s ease, transform .14s ease, visibility .14s;
}
.has-sub:hover .sub, .has-sub.open .sub, .has-sub:focus-within .sub {
  opacity: 1; visibility: visible; transform: none;
}
.sub a { padding: .6rem .7rem; }

.header-actions { display: flex; align-items: center; gap: 1rem; flex: 0 0 auto; }
.link-plain { font-size: .93rem; font-weight: 500; color: var(--muted); text-decoration: none; }
.link-plain:hover { color: var(--ink); }

.nav-toggle { display: none; }

/* --- Hero ---------------------------------------------------------------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0; background:
  radial-gradient(120% 90% at 85% 10%, rgba(141, 205, 218, .3), transparent 60%), var(--off); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero-copy h1 { margin-bottom: .8rem; }
.hero-media img { margin-inline: auto; max-height: 520px; width: auto; }

/* A 16:9 photo at `width: auto` inside the narrower hero column renders about
   260px tall next to a 400px headline — it reads as an afterthought. Cropping
   it to fill the column squares the two sides up. */
.hero-media.is-cover img {
  width: 100%; height: 100%; max-height: none;
  aspect-ratio: 5 / 4; object-fit: cover; border-radius: 14px;
}

.badge {
  display: inline-block; margin: 1.6rem 0 0; padding: .45rem 1rem;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  font-size: .86rem; font-weight: 600; color: var(--ink);
}

/* --- Trust bar ----------------------------------------------------------- */
.trust { padding: 2.2rem 0; border-bottom: 1px solid var(--line); }
.trust-label {
  font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); text-align: center; margin: 0 0 1rem;
}
.trust-list {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: .6rem 2rem; list-style: none; margin: 0; padding: 0;
}
.trust-list li { font-weight: 700; color: var(--ink); opacity: .72; font-size: .98rem; }

/* --- Stat band ----------------------------------------------------------- */
.stat-band { background: var(--ink); color: #fff; padding: clamp(2.5rem, 5vw, 3.75rem) 0; }

/* Explicit columns per band size — see statBand() in blocks.mjs. */
.stat-grid { display: grid; gap: 2rem 2.5rem; align-items: start; }
.stat-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* These collapses are NOT optional. The values carry `white-space: nowrap`
   so a figure like "$100,000+" never breaks mid-number — which means a
   column narrower than the figure doesn't wrap, it overflows and overlaps
   its neighbour. Four columns stop fitting at roughly 1080px. */
@media (max-width: 1080px) {
  .stat-grid.cols-3,
  .stat-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .stat-grid.cols-2,
  .stat-grid.cols-3,
  .stat-grid.cols-4 { grid-template-columns: 1fr; }
}

.stat { min-width: 0; }
.stat-value {
  /* Max sized so the longest figure clears its column at every breakpoint
     with room to spare, rather than only just fitting. */
  font-size: clamp(1.6rem, 3vw, 2.35rem); font-weight: 800;
  color: var(--accent); margin: 0; line-height: 1.05;
  white-space: nowrap;            /* never break "$100,000+" mid-number */
}
.stat-label {
  margin: .4rem 0 0; color: rgba(255, 255, 255, .9);
  font-size: .95rem; line-height: 1.45; max-width: 24ch;
}
.stat-scope {
  margin: .35rem 0 0; color: rgba(255, 255, 255, .55);
  font-size: .82rem; line-height: 1.45; max-width: 28ch;
}

/* --- Generic section ----------------------------------------------------- */
.sec { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.sec-head { max-width: 68ch; margin-bottom: 2.5rem; }
.sec-head .lede { margin-bottom: 0; }

.tone-ink { background: var(--ink); }
.tone-ink h2, .tone-ink h3 { color: #fff; }
.tone-ink .lede, .tone-ink p { color: rgba(255, 255, 255, .82); }
.tone-ink .eyebrow { color: var(--accent); }
.tone-ink .card { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); }
.tone-ink .card-num { background: var(--accent); color: var(--ink); }

.tone-off { background: var(--off); }

/* --- Cards --------------------------------------------------------------- */
.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  gap: 1.25rem; list-style: none; margin: 0; padding: 0;
}
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; position: relative;
}
.card p { margin: 0; color: var(--muted); font-size: .98rem; }
.card p:last-child { margin-bottom: 0; }
.card-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; margin-bottom: .9rem;
  background: var(--ink); color: #fff;
  border-radius: 50%; font-size: .9rem; font-weight: 700;
}
.card-link { display: inline-block; margin-top: .9rem; font-size: .93rem; font-weight: 600; }

/* .numbered is a structural hook only — it switches on .card-num rendering
   in blocks.mjs and deliberately carries no styles of its own. */
.cards.numbered { }

.wide-figure { margin: 2.5rem 0 0; }
.wide-figure img { border-radius: var(--radius); margin-inline: auto; }

/* --- Setup assistants ----------------------------------------------------- */
.assist {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem; list-style: none; margin: 0; padding: 0;
}
.assist-item { margin: 0; }
.assist-item img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--radius); background: #fff; margin-bottom: 1.1rem;
}
.assist-item h3 { margin: 0 0 .45rem; font-size: 1.1rem; }
.assist-item p { margin: 0; color: var(--muted); font-size: .98rem; }

.assist-note {
  margin: 2.25rem 0 0; padding: 1.1rem 1.3rem;
  background: #fff; border: 1px solid var(--line);
  border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .98rem; color: var(--muted);
}
.assist-note strong { color: var(--ink); }

/* --- Photo steps ---------------------------------------------------------
   Three photos across, each with its supporting line beneath. The step name
   lives in the photograph itself, so the text here adds detail rather than
   repeating the label. */
.photo-steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem; list-style: none; margin: 0; padding: 0;
  counter-reset: step;
}
.photo-steps li { margin: 0; position: relative; counter-increment: step; }
.photo-steps img {
  width: 100%; aspect-ratio: 2 / 1; object-fit: cover;
  border-radius: var(--radius); background: var(--off);
}
.photo-steps p {
  margin: .9rem 0 0; padding-left: 2.1rem;
  color: var(--muted); font-size: .97rem; position: relative;
}
.photo-steps p::before {
  content: counter(step);
  position: absolute; left: 0; top: .05em;
  width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: var(--ink); color: #fff;
  font-size: .78rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.tone-ink .photo-steps p::before { background: var(--accent); color: var(--ink); }

/* --- Split block --------------------------------------------------------- */
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.split-copy { max-width: 56ch; }
.split.flip .split-media { order: -1; }
.split-media img { border-radius: var(--radius); margin-inline: auto; max-height: 560px; width: auto; }

/* Numbered step list used beside an image in the team flow */
.step-list { list-style: none; counter-reset: s; margin: 1.75rem 0 0; padding: 0; }
.step-list li {
  counter-increment: s; position: relative;
  padding: 0 0 1.25rem 3rem; margin: 0;
}
.step-list li:not(:last-child) { border-left: 1px solid rgba(255, 255, 255, .16); margin-left: .9rem; padding-left: 2.1rem; }
.step-list li::before {
  content: counter(s);
  position: absolute; left: 0; top: 0;
  width: 1.8rem; height: 1.8rem; border-radius: 50%;
  background: var(--accent); color: var(--ink);
  font-size: .84rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.step-list li:not(:last-child)::before { left: -.9rem; }
.step-list strong { display: block; color: #fff; font-weight: 600; margin-bottom: .15rem; }
.step-list span { color: rgba(255, 255, 255, .78); font-size: .96rem; }

.ticks { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.ticks li { position: relative; padding-left: 2rem; margin-bottom: .8rem; font-weight: 600; color: var(--ink); }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: .28em;
  width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-6' fill='none' stroke='%23003038' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/70% no-repeat;
}

/* --- Comparison table ---------------------------------------------------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
.compare { width: 100%; min-width: 720px; border-collapse: collapse; background: #fff; font-size: .93rem; }
.compare th, .compare td { padding: .95rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { background: var(--off); font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.compare thead th.us { background: var(--accent); color: var(--ink); }
.compare tbody th { font-weight: 600; color: var(--ink); width: 34%; }
.compare td { color: var(--muted); }
.compare td.us { font-weight: 700; color: var(--ink); background: rgba(141, 205, 218, .14); }
.table-note { margin: 1rem 0 0; font-size: .84rem; color: rgba(255, 255, 255, .6); }

/* --- FAQ ----------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: 100%; padding: 1.15rem 0; background: none; border: 0;
  font: inherit; font-size: 1.02rem; font-weight: 600; color: var(--ink);
  text-align: left; cursor: pointer;
}
.faq-icon { position: relative; flex: 0 0 18px; height: 18px; }
.faq-icon::before, .faq-icon::after {
  content: ''; position: absolute; background: var(--accent-dk);
  transition: transform .18s ease;
}
.faq-icon::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq-icon::after { top: 0; left: 8px; width: 2px; height: 18px; }
.faq-item.open .faq-icon::after { transform: scaleY(0); }
.faq-a { display: none; padding: 0 0 1.2rem; }
.faq-item.open .faq-a { display: block; }
.faq-a p { margin: 0; color: var(--muted); max-width: 72ch; }

/* --- Final CTA ----------------------------------------------------------- */
.final-cta {
  background: linear-gradient(160deg, var(--ink), var(--ink-2));
  color: #fff; padding: clamp(3rem, 7vw, 5rem) 0; text-align: center;
}
.final-cta h2 { color: #fff; }
.final-cta .lede { color: rgba(255, 255, 255, .82); margin-inline: auto; }
.final-cta .eyebrow { color: var(--accent); }
.final-cta .btn-primary { background: var(--accent); color: var(--ink); }
.final-cta .btn-primary:hover { background: #fff; }
.final-cta .btn-ghost { border-color: rgba(255, 255, 255, .5); color: #fff; }
.final-cta .btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* --- Prose (legal, blog) ------------------------------------------------- */
.prose { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.prose h2 { font-size: 1.5rem; margin-top: 2.5rem; }
.prose h3 { margin-top: 1.8rem; }
.prose ul, .prose ol { padding-left: 1.4rem; color: var(--muted); }
.prose li { margin-bottom: .5rem; }
.prose p { color: var(--muted); }
.prose .updated { font-size: .88rem; color: var(--muted); }

/* --- Legal document ------------------------------------------------------ */
/* Styles the markup that ships inside src/legal/privacy-and-terms.html, so
   the document's own <style> block can be dropped and this file stays the
   single source of truth for appearance. */
/* The document's own container divs are kept for tag balance and simply
   neutralised here — our .wrap.narrow already controls width. */
.legal .wrap, .legal .content, .legal .inner { max-width: none; width: auto; padding: 0; margin: 0; }

/* After demotion: h2 = PART I / II / III, h3 = numbered sections. */
.legal h2 {
  margin-top: 3.5rem; padding-top: 1.5rem;
  border-top: 3px solid var(--accent);
  font-size: 1.5rem; letter-spacing: -.01em;
}
.legal h3 {
  margin-top: 2.4rem; font-size: 1.12rem; color: var(--ink);
  padding-bottom: .4rem; border-bottom: 1px solid var(--line);
}
.legal h4 { margin-top: 1.6rem; font-size: 1rem; color: var(--ink); }
.legal h2 + p, .legal h3 + p, .legal h4 + p { margin-top: .6rem; }

/* Table header row inside the document's tables */
.legal tr.header th, .legal thead th {
  background: var(--ink); color: #fff; font-weight: 600;
  text-transform: none; letter-spacing: 0; font-size: .86rem;
}
.legal strong { color: var(--ink); }
.legal code {
  background: var(--off); padding: .12em .4em;
  border-radius: 4px; font-size: .92em;
}
.legal hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.legal table { font-size: .9rem; }
.legal tr.odd td { background: var(--paper); }
.legal tr.even td { background: var(--off); }
.legal .eyebrow { margin-bottom: .5rem; }

/* Table of contents that ships with the document */
#TOC {
  background: var(--off); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem 1.8rem; margin: 2.5rem 0 3rem;
}
.toc-title {
  font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 1rem;
}
#TOC ul { list-style: none; margin: 0; padding: 0; }
#TOC li { margin-bottom: .3rem; line-height: 1.45; }
#TOC a { color: var(--ink-2); text-decoration: none; font-size: .93rem; }
#TOC a:hover { text-decoration: underline; }
.toc-l1 { margin-top: 1rem !important; }
.toc-l1 > a {
  font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; font-size: .82rem !important; color: var(--ink) !important;
}
.toc-l2 { padding-left: 1rem; }

/* Anchored headings shouldn't hide under the sticky header */
.legal [id] { scroll-margin-top: 100px; }

.notice {
  background: #fff8e6; border: 1px solid #f0d79a; border-left-width: 4px;
  border-radius: 8px; padding: 1.1rem 1.3rem; margin: 0 0 2rem;
}
.notice p { color: #6b5518; margin: 0; font-size: .95rem; }
.notice strong { color: #4a3a0c; }

/* --- Contact form -------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }

.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field label { font-size: .88rem; font-weight: 600; color: var(--ink); }
.field .req { color: #c0392b; }
.field input, .field textarea {
  width: 100%; padding: .8rem .95rem; font: inherit; font-size: .97rem;
  color: var(--text); background: #fff;
  border: 1px solid var(--line); border-radius: 10px;
}
.field input:focus, .field textarea:focus { border-color: var(--accent-dk); outline: none; box-shadow: 0 0 0 3px rgba(141, 205, 218, .35); }
.field textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -9999px; }

.form-note { font-size: .84rem; color: var(--muted); margin: 0; }
.form-status { margin: 0; padding: .9rem 1.1rem; border-radius: 10px; font-size: .95rem; display: none; }
.form-status.ok { display: block; background: #e8f6ef; color: #1c6b45; border: 1px solid #b6e2cd; }
.form-status.err { display: block; background: #fdecea; color: #a3271c; border: 1px solid #f5c2bc; }

.form-intro { font-size: .95rem; color: var(--muted); margin: -.25rem 0 1.25rem; }

/* --- Two routes, side by side --------------------------------------------
   Form on one side, live calendar on the other, with a vertical rule and an
   "or" chip between them. Neither route buries the other. */
.or-grid {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: 2.5rem; align-items: start;
}
.or-col { min-width: 0; }

.or-sep {
  align-self: stretch; position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 1px; background: var(--line);
}
.or-sep span {
  position: absolute; background: var(--paper);
  padding: .5rem 0; font-size: .78rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}

/* --- People ---------------------------------------------------------------
   No headshots exist for either founder, so this is set typographically with
   initials rather than leaving empty image slots or using stock portraits. */
.people {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem; list-style: none; margin: 0; padding: 0;
}
.person { display: flex; gap: 1.1rem; align-items: flex-start; margin: 0; }
.avatar {
  flex: 0 0 auto; width: 56px; height: 56px; border-radius: 50%;
  background: var(--ink); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700; letter-spacing: .05em;
}
.person-name { margin: 0; font-weight: 600; color: var(--ink); font-size: 1.05rem; }
.person-role {
  margin: .1rem 0 .5rem; font-size: .76rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent-dk);
}
.person-bio { margin: 0; color: var(--muted); font-size: .96rem; }
.person-email {
  display: inline-block; margin-top: .55rem;
  font-size: .9rem; font-weight: 600; color: var(--ink-2);
  overflow-wrap: anywhere;
}

/* --- Booking picker -------------------------------------------------------
   Days on the left, times on the right, form underneath. Stacks on a phone. */
.booker { margin-top: .5rem; }
.booker-loading { color: var(--muted); font-size: .96rem; }

.booker-error {
  background: #fdecea; border: 1px solid #f5c2bc;
  border-radius: var(--radius); padding: 1.1rem 1.3rem;
}
.booker-error p { margin: 0 0 .4rem; color: #a3271c; font-size: .96rem; }
.booker-error p:last-child { margin: 0; color: var(--muted); }

.booker-tz {
  font-size: .86rem; color: var(--muted);
  padding-bottom: .9rem; margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.booker-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 2rem; }
.booker-grid h2 {
  font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 .9rem;
}
.booker-days ul, .booker-times ul { list-style: none; margin: 0; padding: 0; }

/* The day column scrolls on its own so a 45-day window doesn't push the
   time column miles down the page. */
.booker-days ul { max-height: 420px; overflow-y: auto; padding-right: .4rem; }
.booker-days li { margin-bottom: .4rem; }

.booker-day {
  display: flex; align-items: baseline; gap: .5rem; width: 100%;
  padding: .7rem .9rem; border-radius: 10px;
  border: 1px solid var(--line); background: #fff;
  font: inherit; text-align: left; cursor: pointer;
  transition: border-color .14s ease, background .14s ease;
}
.booker-day:hover { border-color: var(--accent-dk); }
.booker-day.is-on { background: var(--ink); border-color: var(--ink); }
.bd-weekday { font-weight: 700; font-size: .92rem; color: var(--ink); }
.bd-date { font-size: .92rem; color: var(--text); }
.bd-count { margin-left: auto; font-size: .76rem; color: var(--muted); }
.booker-day.is-on .bd-weekday,
.booker-day.is-on .bd-date { color: #fff; }
.booker-day.is-on .bd-count { color: var(--accent); }

.booker-times ul {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: .6rem;
}
.booker-time {
  width: 100%; padding: .7rem .5rem; border-radius: 10px;
  border: 1px solid var(--line); background: #fff;
  font: inherit; font-size: .95rem; font-weight: 600; color: var(--ink);
  cursor: pointer; transition: border-color .14s ease, background .14s ease;
}
.booker-time:hover { border-color: var(--accent-dk); }
.booker-time.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.booker-hint { color: var(--muted); font-size: .94rem; grid-column: 1 / -1; }

.booker-form {
  margin-top: 2rem; padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.booker-chosen {
  margin: 0 0 1.25rem; font-weight: 600; color: var(--ink); font-size: 1.02rem;
  background: var(--off); border-radius: 10px; padding: .8rem 1rem;
}

.booker-done { text-align: center; padding: 2rem 0; }
.booker-tick {
  width: 3rem; height: 3rem; margin: 0 auto 1rem; border-radius: 50%;
  background: var(--accent); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 700;
}
.booker-when { font-size: 1.08rem; font-weight: 600; color: var(--ink); margin: 0 0 1rem; }
.booker-done .lede { margin-inline: auto; }

@media (max-width: 760px) {
  .booker-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  /* Horizontal day strip reads far better than a tall scroller on a phone. */
  .booker-days ul {
    display: flex; gap: .5rem; max-height: none;
    overflow-x: auto; padding-bottom: .4rem;
    scroll-snap-type: x mandatory;
  }
  .booker-days li { margin: 0; flex: 0 0 auto; scroll-snap-align: start; }
  .booker-day { flex-direction: column; align-items: flex-start; gap: .1rem; min-width: 92px; }
  .bd-count { margin-left: 0; }
  .booker-times ul { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
}

/* --- Contact details strip ----------------------------------------------- */
.contact-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem; list-style: none; margin: 0; padding: 0;
}
.contact-strip li { margin: 0; font-size: .96rem; line-height: 1.55; }
.contact-strip .k {
  display: block; font-size: .74rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .3rem;
}
.contact-strip a { font-weight: 600; }

/* Compact booking panel on the contact page. The full picker lives at /book/;
   this just shows the next opening and sends people there. */
.book-panel {
  background: var(--off); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem;
}
.book-panel-next { margin: 0 0 1.1rem; color: var(--text); font-size: .98rem; }
.book-panel-next strong { color: var(--ink); }
.book-panel .btn { width: 100%; }
.book-panel .form-note { margin: .9rem 0 0; }

.contact-aside { background: var(--off); border-radius: var(--radius); padding: 2rem; }
.contact-aside h2 { font-size: 1.3rem; }
.contact-list { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.contact-list li { margin-bottom: 1.1rem; }
.contact-list .k { display: block; font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .15rem; }
.contact-list a { font-weight: 600; }

/* --- Footer -------------------------------------------------------------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .75); padding: clamp(2.5rem, 6vw, 4rem) 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; }
/* The lockup PNG is black; invert it to the white version the brand guide
   specifies for dark backgrounds. */
.footer-lockup { width: 150px; margin-bottom: 1.2rem; filter: brightness(0) invert(1); }
.footer-blurb { font-size: .93rem; max-width: 34ch; }
.site-footer .btn-primary { background: var(--accent); color: var(--ink); margin-top: .5rem; }
.site-footer .btn-primary:hover { background: #fff; }

.footer-col h2 {
  font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .6rem; font-size: .94rem; }
.footer-col a { color: rgba(255, 255, 255, .75); text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-addr { color: rgba(255, 255, 255, .55); line-height: 1.5; }

.footer-base {
  margin-top: 3rem; padding-top: 1.5rem; padding-bottom: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.footer-base p { margin: 0; font-size: .85rem; color: rgba(255, 255, 255, .5); }

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 960px) {
  .hero-grid, .split-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  /* Stack the two routes; the rule turns horizontal. The "or" chip needs
     side padding once it sits on a horizontal line, or the rule runs
     straight through the word. */
  .or-grid { grid-template-columns: 1fr; gap: 2rem; }
  .or-sep { width: auto; height: 1px; align-self: auto; }
  .or-sep span { padding: 0 1rem; }
  .split.flip .split-media { order: 0; }
  .hero-media { max-width: 420px; margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; margin-left: auto; padding: 0 10px;
    background: none; border: 0; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); display: none; margin: 0;
  }
  .site-nav.open { display: block; }
  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem; }
  .site-nav a, .site-nav button { width: 100%; padding: .8rem 1rem; }
  .sub {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-left: 2px solid var(--line);
    border-radius: 0; margin: 0 0 .4rem 1rem; padding: 0; display: none;
  }
  .has-sub.open .sub { display: block; }
  .header-actions { display: none; }
  .field-row { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }

  /* Calendly's mobile layout stacks the month grid above the time slots, so
     it needs noticeably more height than on desktop. Too short and the user
     gets a scrollbar inside the iframe, which is horrible on a phone. */
  .calendly-embed .calendly-inline-widget { height: 1000px !important; min-width: 0 !important; }

  .sec { padding: 2.5rem 0; }
  .sec-head { margin-bottom: 1.75rem; }
  .photo-steps { gap: 1.75rem; }
  .contact-strip { gap: 1.5rem; }
  .stat-grid { gap: 1.5rem; }
  .contact-aside, #TOC { padding: 1.25rem; }
}

@media (max-width: 380px) {
  .calendly-embed .calendly-inline-widget { height: 1080px !important; }
}

/* Nothing should ever scroll the page sideways. Long unbroken strings —
   email addresses, the DKIM key in the legal doc, URLs — are the usual
   culprits. */
html, body { overflow-x: hidden; }
.wrap, .or-col, .card, .split-copy, .contact-strip li { min-width: 0; }
.prose, .legal, .contact-strip, .footer-col, .card p, .lede { overflow-wrap: break-word; }
.legal code { overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
