/* =========================================================
   Train With Mason — styles
   Bright and clean, with a dark hero and a dark close.
   One font (Geist), one accent (electric blue).
   Colors live in the tokens below.
   ========================================================= */
:root {
  /* Light (default) */
  --bg: #FFFFFF;
  --bg-2: #F5F5F2;
  --surface: #FFFFFF;
  --surface-2: #F0F0EC;
  --ink: #0A0B0D;
  --ink-2: #474C54;
  --ink-3: #686D75;
  --line: #E6E6E1;
  --line-2: #D3D3CD;
  --accent: #3463F0;          /* brand blue, deepened slightly for text on white */
  --accent-hover: #2A55DC;
  --accent-soft: rgba(52, 99, 240, .09);
  --accent-glow: rgba(52, 99, 240, .28);
  --brand: #4D7CFF;           /* brand blue as used on dark */
  --on-accent: #FFFFFF;

  --sans: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 6px;
  --radius-lg: 12px;
  --shell: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(96px, 12vw, 168px);
  --header-h: 72px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* Dark scope: hero, closing section, footer, phone menu */
.theme-dark {
  --bg: #0A0B0D;
  --bg-2: #0F1013;
  --surface: #141519;
  --surface-2: #1A1C21;
  --ink: #F2F2EF;
  --ink-2: #A3A7AF;
  --ink-3: #7D828A;
  --line: #22252B;
  --line-2: #33373E;
  --accent: #4D7CFF;
  --accent-hover: #6A92FF;
  --accent-soft: rgba(77, 124, 255, .13);
  --accent-glow: rgba(77, 124, 255, .3);
  background: var(--bg);
  color: var(--ink);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); background: var(--bg); scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { margin: 0; font-family: var(--sans); font-weight: 500; letter-spacing: -0.04em; line-height: 1; text-wrap: balance; }
h2 { font-size: clamp(2.5rem, 5.6vw, 4.75rem); }
h3 { font-size: 1.375rem; letter-spacing: -0.02em; line-height: 1.2; }
.dim { color: var(--ink-3); }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.sr-only { position: absolute; left: -9999px; top: 0; padding: 12px 16px; background: var(--accent); color: #fff; z-index: 100; }
.sr-only:focus { left: 0; }

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 860px; }

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 24px;
  font: 500 12px/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--accent); flex: none; }
.lead { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.55; color: var(--ink-2); max-width: 38ch; }
.muted { color: var(--ink-3); font-size: 15px; }
.label { font: 500 11px/1.3 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 28px;
  border: 1px solid transparent; border-radius: var(--radius); background: transparent; color: inherit;
  font: 500 16px/1 var(--sans); letter-spacing: -0.01em;
  cursor: pointer; white-space: nowrap;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); box-shadow: 0 12px 32px -12px var(--accent-glow); }
.btn--outline { border-color: var(--line-2); color: var(--ink); }
.btn--outline:hover { border-color: var(--ink); }
.btn--light { background: #FFFFFF; color: #1B3FB8; }
.btn--light:hover { background: #EEF2FF; }
.btn--on-blue { border-color: rgba(255,255,255,.45); color: #FFFFFF; }
.btn--on-blue:hover { border-color: #FFFFFF; background: rgba(255,255,255,.08); }
.btn--ghost-dark { border-color: var(--line-2); color: var(--ink); }
.btn--ghost-dark:hover { border-color: var(--ink); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 14px; }
.btn--block { width: 100%; }

.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.text-link:hover { color: var(--accent); }

/* ---------- Header ----------
   Over the dark hero: transparent with light text.
   Once you scroll onto the bright page (or on light pages): white bar, dark text. */
.header {
  --h-ink: #F2F2EF; --h-ink-2: #A3A7AF; --h-line: rgba(255,255,255,.18);
  position: sticky; top: 0; z-index: 50;
  margin-bottom: calc(-1 * var(--header-h));
  color: var(--h-ink);
  border-bottom: 1px solid transparent;
  transition: background-color .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
}
.past-hero .header, .light-top .header {
  --h-ink: #0A0B0D; --h-ink-2: #474C54; --h-line: #D3D3CD;
  background: rgba(255,255,255,.9);
  -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: #E6E6E1;
}
.header-inner { display: flex; align-items: center; gap: 36px; height: var(--header-h); max-width: var(--shell); margin: 0 auto; padding: 0 var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 13px/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; white-space: nowrap; }
.brand-mark { width: 8px; height: 8px; background: var(--brand); flex: none; }
.nav-links { display: flex; gap: 32px; margin-left: auto; font: 500 12px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--h-ink-2); }
.nav-links a { transition: color .2s ease; }
.nav-links a:hover { color: var(--h-ink); }
.header-cta { margin-left: 4px; gap: 0; }
.header .btn--primary { background: var(--brand); }
.past-hero .header .btn--primary, .light-top .header .btn--primary { background: #3463F0; }
.page-book .header-cta { display: none !important; }
.page-book .menu-btn { margin-left: auto !important; }
.menu-btn { display: none; margin-left: auto; align-items: center; gap: 10px; height: 42px; padding: 0 16px; border: 1px solid var(--h-line); border-radius: var(--radius); background: transparent; color: var(--h-ink); font: 500 12px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; transition: border-color .35s var(--ease), color .35s var(--ease); }
.menu-btn i { position: relative; width: 16px; height: 8px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; }

.menu { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; }
.menu::backdrop { background: rgba(0,0,0,.6); }
html:has(.menu[open]) { overflow: hidden; }
.menu[open] { display: flex; flex-direction: column; animation: menu-in .4s var(--ease); }
@keyframes menu-in { from { opacity: 0; } to { opacity: 1; } }
.menu-top { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); padding: 0 var(--gutter); border-bottom: 1px solid var(--line); }
.menu-close { height: 42px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: var(--radius); background: transparent; color: var(--ink); font: 500 12px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; }
.menu nav { display: flex; flex-direction: column; padding: 24px var(--gutter); }
.menu nav a { padding: 16px 0; border-bottom: 1px solid var(--line); font: 500 32px/1.1 var(--sans); letter-spacing: -0.03em; }
.menu-bottom { margin-top: auto; padding: 24px var(--gutter) calc(24px + env(safe-area-inset-bottom)); display: grid; gap: 12px; }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .header-cta { display: none; }
  .menu-btn { display: inline-flex; }
}

/* ---------- Hero (dark, with the 3D barbell) ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero-art { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hero-art::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, #0A0B0D 6%, rgba(10,11,13,.72) 32%, rgba(10,11,13,0) 62%),
    linear-gradient(to right, rgba(10,11,13,.9) 8%, rgba(10,11,13,.35) 42%, rgba(10,11,13,0) 58%);
}
.glow { position: absolute; border-radius: 50%; will-change: transform; }
.glow--a { width: 60vw; height: 60vw; max-width: 900px; max-height: 900px; right: -12vw; top: -18vw; background: radial-gradient(closest-side, rgba(77,124,255,.34) 0%, rgba(77,124,255,.14) 40%, rgba(77,124,255,0) 100%); animation: drift-a 24s ease-in-out infinite alternate; }
@keyframes drift-a { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-6vw, 5vh) scale(1.06); } 100% { transform: translate(-2vw, 10vh) scale(.96); } }
.hero-3d { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s var(--ease); }
.hero-3d.is-live { opacity: 1; }
.hero-3d canvas { display: block; width: 100% !important; height: 100% !important; }
.hero .shell { position: relative; padding-top: calc(var(--header-h) + 64px); padding-bottom: clamp(48px, 8vh, 96px); }
.hero h1 { font-size: clamp(3.25rem, 7.2vw, 7rem); line-height: .94; letter-spacing: -0.055em; }
.hero h1 .dim { color: #737880; }
.hero-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; margin-top: clamp(36px, 5vw, 56px); padding-top: 28px; border-top: 1px solid rgba(255,255,255,.12); }
.hero-foot .lead { margin: 0; max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn--primary { background: var(--brand); }
.hero .btn--primary:hover { background: #6A92FF; box-shadow: 0 12px 40px -12px rgba(77,124,255,.55); }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; position: relative; }
.section--alt { background: var(--bg-2); }
.section-head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(48px, 6vw, 88px); }
.section-head .lead { justify-self: end; }
.section-head--stack { grid-template-columns: 1fr; }
.section-head--stack .lead { justify-self: start; }
@media (max-width: 860px) {
  .section-head { grid-template-columns: 1fr; }
  .section-head .lead { justify-self: start; }
}

/* ---------- Specialties: two clean columns, no boxes ---------- */
.specialties { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.spec { position: relative; padding: clamp(36px, 4.5vw, 56px) clamp(32px, 5vw, 72px) 0 0; }
.spec + .spec { padding-left: clamp(32px, 5vw, 72px); padding-right: 0; border-left: 1px solid var(--line); }
.spec::before { content: ""; position: absolute; top: -1px; left: 0; width: 56px; height: 2px; background: var(--accent); transition: width .6s var(--ease); }
.spec + .spec::before { left: clamp(32px, 5vw, 72px); }
.spec:hover::before { width: 112px; }
.spec-kicker { display: flex; align-items: baseline; gap: 14px; margin: 0 0 28px; font: 500 12px/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.spec-num { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.spec h3 { font-size: clamp(2rem, 3.4vw, 2.875rem); letter-spacing: -0.045em; line-height: 1.02; margin-bottom: 18px; }
.spec > p { color: var(--ink-2); max-width: 44ch; }
.checks { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; line-height: 1.45; color: var(--ink); }
.checks li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 0; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233463F0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}
@media (max-width: 860px) {
  .specialties { grid-template-columns: 1fr; }
  .spec, .spec + .spec { padding: 36px 0 44px; border-left: 0; }
  .spec + .spec { border-top: 1px solid var(--line); }
  .spec + .spec::before { left: 0; }
  .spec:last-child { padding-bottom: 0; }
}

/* ---------- Approach: timeline ---------- */
.steps { --p: 0; position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(24px, 4vw, 56px); }
.steps::before, .steps::after { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line-2); }
.steps::after { background: var(--accent); transform-origin: left; transform: scaleX(var(--p)); }
.steps li { position: relative; padding-top: 48px; }
.step-node { position: absolute; top: 0; left: 0; width: 15px; height: 15px; border: 1px solid var(--line-2); background: var(--bg-2); transition: background-color .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease); }
.steps li.is-on .step-node { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft); }
.step-num { display: block; margin-bottom: 20px; font: 500 12px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); transition: color .4s var(--ease); }
.steps li.is-on .step-num { color: var(--accent); }
.steps h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -0.035em; margin-bottom: 14px; }
.steps p { color: var(--ink-2); font-size: 16px; max-width: 34ch; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 0; padding-left: 40px; }
  .steps::before, .steps::after { left: 7px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .steps::after { transform-origin: top; transform: scaleY(var(--p)); }
  .steps li { padding: 0 0 48px; }
  .steps li:last-child { padding-bottom: 0; }
  .step-node { left: -40px; }
}

/* ---------- Free consult: bright blue band ---------- */
.consult-band { position: relative; overflow: hidden; isolation: isolate; background: #3463F0; color: #FFFFFF; }
.consult-band::before { content: ""; position: absolute; z-index: -1; width: 1000px; height: 1000px; right: -340px; top: -520px; background: radial-gradient(closest-side, rgba(255,255,255,.16), rgba(255,255,255,0)); pointer-events: none; }
.consult-band .eyebrow { color: rgba(255,255,255,.82); }
.consult-band .eyebrow::before { background: #FFFFFF; }
.consult-band .dim { color: rgba(255,255,255,.66); }
.consult { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px 80px; align-items: end; }
.consult h2 { font-size: clamp(2.75rem, 5.6vw, 4.75rem); }
.consult p { color: rgba(255,255,255,.88); margin-top: 24px; max-width: 46ch; }
.consult-side { display: grid; gap: 12px; }
.consult-meta { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; color: rgba(255,255,255,.82); }
.consult-meta li { display: inline-flex; align-items: center; gap: 10px; }
.consult-meta li::before { content: ""; width: 5px; height: 5px; background: #FFFFFF; }
@media (max-width: 860px) { .consult { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.quote { margin: 0; padding: clamp(28px, 4vw, 44px); background: var(--bg); }
.quote blockquote { margin: 0 0 28px; font: 400 1.375rem/1.4 var(--sans); letter-spacing: -0.02em; }
.quote figcaption { display: grid; gap: 4px; font-size: 14px; }
.quote figcaption span { font: 500 11px/1.3 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px clamp(48px, 8vw, 128px); }
.about-grid > div:first-child { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
.about h2 { font-size: clamp(2.75rem, 5.4vw, 4.5rem); }
.about-mark { margin: clamp(32px, 5vw, 64px) 0 0; font: 500 clamp(9rem, 17vw, 15rem)/.8 var(--sans); letter-spacing: -0.08em; color: var(--ink); user-select: none; }
.about-mark span { color: var(--accent); }
.about-photo { margin: clamp(40px, 5vw, 64px) 0 0; aspect-ratio: 4 / 5; max-width: 420px; overflow: hidden; border-radius: var(--radius); background: var(--surface-2); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.about .prose p { color: var(--ink-2); font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); line-height: 1.65; }
.about .prose p:first-child { color: var(--ink); font-size: clamp(1.375rem, 2.2vw, 1.75rem); line-height: 1.35; letter-spacing: -0.02em; }
.creds { margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.creds div { padding: 26px 24px 26px 0; border-bottom: 1px solid var(--line); }
.creds div:nth-child(even) { padding-left: 24px; padding-right: 0; border-left: 1px solid var(--line); }
.creds dt { font: 500 clamp(1.375rem, 2.4vw, 1.875rem)/1.1 var(--sans); letter-spacing: -0.035em; color: var(--ink); }
.creds dd { margin: 10px 0 0; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .about-grid > div:first-child { position: static; } .about-mark { display: none; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); interpolate-size: allow-keywords; }
.faq details::details-content { height: 0; overflow: hidden; transition: height .45s var(--ease), content-visibility .45s allow-discrete; }
.faq details[open]::details-content { height: auto; }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 28px 0; cursor: pointer; list-style: none;
  font: 500 clamp(1.125rem, 2vw, 1.5rem)/1.3 var(--sans); letter-spacing: -0.025em;
  transition: color .2s ease;
}
.faq summary:hover { color: var(--accent); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; flex: none; width: 20px; height: 20px; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform .35s var(--ease); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq details p { margin: 0; padding: 0 56px 32px 0; color: var(--ink-2); max-width: 64ch; }

/* ---------- Contact ---------- */
.contact-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.contact-list li { border-bottom: 1px solid var(--line-2); }
.contact-row { display: grid; grid-template-columns: 200px 1fr auto; align-items: center; gap: 12px 24px; padding: 30px 0; }
a.contact-row:hover .contact-value { color: var(--accent); }
.contact-value { font: 500 clamp(1.25rem, 2.6vw, 2rem)/1.2 var(--sans); letter-spacing: -0.035em; transition: color .2s ease; overflow-wrap: anywhere; }
.contact-sub { display: block; margin-top: 6px; font: 400 15px/1.4 var(--sans); color: var(--ink-2); letter-spacing: 0; }
.round-arrow { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius); border: 1px solid var(--line-2); transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease); }
.round-arrow svg { width: 16px; height: 16px; }
a.contact-row:hover .round-arrow { background: var(--accent); border-color: var(--accent); color: #fff; }
.phone-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-btn { display: inline-flex; align-items: center; height: 42px; padding: 0 18px; border-radius: var(--radius); border: 1px solid var(--line-2); background: transparent; font: 500 12px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); cursor: pointer; transition: border-color .2s ease, background-color .2s ease, color .2s ease; }
.chip-btn:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 640px) {
  .contact-row { grid-template-columns: 1fr auto; padding: 22px 0; }
  .contact-row .label { grid-column: 1 / -1; }
}

/* ---------- Sign-off + footer (dark) ---------- */
.signoff { position: relative; overflow: hidden; padding: var(--section) 0 clamp(64px, 8vw, 112px); isolation: isolate; }
.signoff::before { content: ""; position: absolute; z-index: -1; left: 50%; bottom: -60%; width: 1400px; height: 900px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(77,124,255,.2), transparent); pointer-events: none; }
.signoff h2 { font-size: clamp(4rem, 15vw, 14rem); line-height: .86; letter-spacing: -0.065em; }
.signoff-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(40px, 5vw, 64px); }

.footer { color: var(--ink-3); font-size: 15px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-top: clamp(56px, 7vw, 88px); padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.footer .brand { color: var(--ink); margin-bottom: 18px; }
.footer h4 { margin: 0 0 18px; font: 500 11px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a:hover { color: var(--ink); }
.footer-tag { max-width: 30ch; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; padding-bottom: calc(32px + env(safe-area-inset-bottom)); font: 500 11px/1.4 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* Phones: the "Book" button lives in the top bar once you're past the hero */
@media (max-width: 760px) {
  .cta-more { display: none; }
  .header-inner { gap: 8px; }
  .header-cta {
    display: inline-flex; margin-left: auto; min-height: 40px; padding: 0 16px;
    opacity: 0; visibility: hidden; transform: translateY(-4px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .past-hero .header-cta { opacity: 1; visibility: visible; transform: none; }
  .menu-btn { margin-left: 0; padding: 0 14px; gap: 8px; }
}
@media (max-width: 380px) {
  .header-cta { padding: 0 12px; }
  .brand { gap: 8px; font-size: 11px; letter-spacing: 0.16em; }
}

/* ---------- Book page ---------- */
.page-head { position: relative; overflow: hidden; padding: calc(var(--header-h) + clamp(56px, 9vw, 120px)) 0 clamp(40px, 6vw, 64px); isolation: isolate; }
.page-head::before { content: ""; position: absolute; z-index: -1; width: 900px; height: 900px; right: -340px; top: -500px; background: radial-gradient(closest-side, rgba(52,99,240,.12), transparent); pointer-events: none; }
.page-head h1 { font-size: clamp(3rem, 8vw, 6.5rem); line-height: .94; letter-spacing: -0.055em; margin-bottom: 28px; }
.welcome { display: inline-block; margin-bottom: 24px; padding: 10px 16px; border-radius: var(--radius); background: var(--accent-soft); color: var(--accent); font-weight: 500; font-size: 14px; }

.section--tight { padding: 0 0 var(--section); }
.form { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.form > .hp, .form > input[type="hidden"] { display: none; }
.form-part { padding: clamp(24px, 4vw, 44px); background: var(--bg); display: grid; gap: 24px; }
.form-part-head { display: flex; align-items: baseline; gap: 16px; }
.form-part-head .step-num { margin: 0; color: var(--accent); }
.form-part-head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -0.035em; }
.optional-tag, legend em, label em { font: 500 11px/1 var(--sans); font-style: normal; color: var(--ink-3); margin-left: 8px; letter-spacing: 0.14em; text-transform: uppercase; }
.avail { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.avail-title { margin: 0 0 12px; font: 500 11px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.avail-list { margin: 0; display: grid; gap: 8px; font-size: 15px; }
.avail-list div { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.avail-list dt { font-weight: 500; min-width: 72px; }
.avail-list dd { margin: 0; color: var(--ink-2); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-weight: 500; font-size: 15px; padding: 0; margin-bottom: 0; }
fieldset.field legend { margin-bottom: 12px; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 54px; padding: 14px 16px;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--bg); color: var(--ink);
  font: 400 16px/1.4 var(--sans);
  transition: border-color .2s ease, box-shadow .2s ease;
  -webkit-appearance: none; appearance: none;
}
.field input::placeholder, .field textarea::placeholder { color: #8A8F96; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23686D75' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.field textarea { resize: vertical; min-height: 88px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field-hint { margin: 0; font-size: 14px; color: var(--ink-3); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; height: 44px; padding: 0 16px; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--bg); font-size: 15px; font-weight: 500; transition: all .2s ease; }
.chip:hover span { border-color: var(--ink-3); }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.minor { padding: 20px; border-radius: var(--radius); border: 1px solid rgba(52,99,240,.3); background: var(--accent-soft); display: grid; gap: 16px; }
.minor p { margin: 0; font-size: 15px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-submit { padding: clamp(24px, 4vw, 44px); background: var(--bg-2); display: grid; gap: 18px; }
.form-submit .muted { margin: 0; }
.send-label { margin: 0; font: 500 clamp(1.5rem, 2.6vw, 2rem)/1.1 var(--sans); letter-spacing: -0.035em; }
.send-row { display: flex; flex-wrap: wrap; gap: 12px; }
.send-row .btn { flex: 1 1 200px; }
.form-status { margin: 0; font-size: 15px; }
.form-status:empty { display: none; }
.form-status[data-state="error"] { color: #C62828; }
.talk { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 26px clamp(24px, 4vw, 44px); border-radius: var(--radius-lg); border: 1px solid var(--line); }
.talk .label { display: block; margin-bottom: 10px; }
.talk-number { font: 500 1.75rem/1 var(--sans); letter-spacing: -0.035em; }
.booked { padding: clamp(28px, 5vw, 56px); border-radius: var(--radius-lg); background: var(--bg-2); border: 1px solid var(--line); display: grid; gap: 18px; outline: none; }
.booked h2 { font-size: clamp(2.25rem, 4.6vw, 3.5rem); }
.booked .lead { max-width: 52ch; }
.minor-note { padding: 14px 16px; border-radius: var(--radius); background: var(--accent-soft); font-size: 15px; margin: 0; }

.quick { margin: 22px 0 0; font: 500 12px/1.6 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.quick a { color: var(--accent); border-bottom: 1px solid currentColor; }
.form-more { display: block; }
.form-more summary {
  display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none;
  font: 500 1.25rem/1.2 var(--sans); letter-spacing: -0.025em;
}
.form-more summary::-webkit-details-marker { display: none; }
.form-more summary .optional-tag { margin-left: 0; }
.form-more summary i { position: relative; margin-left: auto; width: 20px; height: 20px; flex: none; }
.form-more summary i::before, .form-more summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform .3s var(--ease); }
.form-more summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.form-more[open] summary i::after { transform: translate(-50%, -50%) rotate(0deg); }
.form-more[open] summary { margin-bottom: 24px; }
.form-more[open] > .field + .field, .form-more[open] > .field + fieldset, .form-more[open] > fieldset + .field { margin-top: 24px; }

/* ---------- 404 ---------- */
.notfound { position: relative; overflow: hidden; min-height: 80vh; display: grid; align-content: center; padding: calc(var(--header-h) + 48px) 0 var(--section); isolation: isolate; }
.notfound::before { content: ""; position: absolute; z-index: -1; width: 900px; height: 900px; right: -320px; top: -420px; background: radial-gradient(closest-side, rgba(52,99,240,.12), transparent); pointer-events: none; }
.notfound h1 { font-size: clamp(3.5rem, 11vw, 9rem); letter-spacing: -0.06em; line-height: .9; margin-bottom: 28px; }
.notfound .lead { margin-bottom: 36px; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .1s; }
.js .reveal.d2 { transition-delay: .2s; }
.js .reveal.d3 { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .glow { animation: none; }
  .btn, .btn svg { transition: none; }
  .faq details::details-content { transition: none; }
  .hero-3d { transition: none; }
}
.nw { white-space: nowrap; }
.phone-only { display: none; }

/* =========================================================
   Phone layout
   ========================================================= */
@media (max-width: 640px) {
  :root { --section: 88px; --gutter: 20px; --header-h: 64px; }
  body { font-size: 16px; }
  h2 { font-size: 2.75rem; line-height: .98; }
  .lead { font-size: 1.0625rem; line-height: 1.5; }
  .section-head { margin-bottom: 40px; gap: 16px; }
  .eyebrow { margin-bottom: 18px; font-size: 11px; }
  .phone-only { display: inline; }

  .hero .shell { padding-bottom: 32px; }
  .hero-art::after { background: linear-gradient(to top, #0A0B0D 34%, rgba(10,11,13,.78) 50%, rgba(10,11,13,0) 66%); }
  .glow--a { width: 120vw; height: 120vw; right: -40vw; top: -30vw; }
  .hero h1 { font-size: clamp(3rem, 15vw, 4.25rem); line-height: .92; }
  .hero-foot { flex-direction: column; align-items: stretch; gap: 24px; margin-top: 28px; padding-top: 22px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 4px; }
  .hero-actions .btn { width: 100%; }
  .hero-call.btn { min-height: 48px; border: 0; color: #A3A7AF; font-size: 15px; gap: 6px; }
  .hero-call span[data-text] { color: #F2F2EF; }

  .spec h3 { font-size: 2rem; }
  .spec > p { font-size: 16px; }
  .checks { margin-top: 24px; gap: 12px; }
  .checks li { font-size: 15.5px; }

  .steps h3 { font-size: 1.5rem; }
  .steps p { font-size: 15.5px; }

  .consult h2 { font-size: 2.75rem; }
  .consult p { margin-top: 16px; font-size: 16px; }

  .about .prose p:first-child { font-size: 1.3125rem; }
  .about .prose p { font-size: 16px; }
  .creds { margin-top: 36px; }
  .creds div { padding: 20px 14px 20px 0; }
  .creds div:nth-child(even) { padding-left: 14px; }
  .creds dt { font-size: 1.25rem; }

  .faq summary { padding: 22px 0; font-size: 1.125rem; gap: 16px; }
  .faq details p { padding: 0 0 24px; font-size: 15.5px; line-height: 1.55; }

  .contact-value { font-size: 1.25rem; }
  .round-arrow { width: 40px; height: 40px; }
  .chip-btn { height: 38px; padding: 0 14px; }

  .signoff { padding-bottom: 64px; }
  .signoff h2 { font-size: 4.5rem; }
  .signoff-actions .btn { flex: 1 1 100%; }
  .signoff-call { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 48px; padding-bottom: 32px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .footer-bottom a { display: none; }

  .page-head { padding: calc(var(--header-h) + 40px) 0 32px; }
  .page-head h1 { font-size: 3rem; margin-bottom: 18px; }
  .welcome { margin-bottom: 18px; }
  .form-part { padding: 24px 20px; gap: 22px; }
  .form-part-head h2 { font-size: 1.375rem; }
  .avail { padding: 16px; }
  .form-submit { padding: 24px 20px; }
  .talk { padding: 20px; }
}

/* ---------- Contact icons ---------- */
.ico { width: 1em; height: 1em; flex: none; display: inline-block; vertical-align: middle; }
.ico-label { display: inline-flex; align-items: center; gap: 10px; }
.ico-label .ico { width: 15px; height: 15px; color: var(--accent); }
.ico-link { display: inline-flex; align-items: center; gap: 10px; }
.ico-link .ico { width: 15px; height: 15px; color: var(--ink-3); transition: color .2s ease; }
.ico-link:hover .ico { color: var(--accent); }
.talk .label.ico-label { display: flex; }
