/* ═══════════════════════════════════════════════
   SUD&CO — Dark Editorial Design
   Based on Stitch screen: Sud&Co Editorial Landing Dark
════════════════════════════════════════════════ */

/* ──── TOKENS ──── */
:root {
  --bg:          #0f0f0d;
  --bg-section:  #141412;
  --surface:     #1a1a18;
  --ink:         #f5f0ea;
  --ink-soft:    rgba(245,240,234,0.72);
  --ink-muted:   rgba(245,240,234,0.55);
  --ink-subtle:  rgba(245,240,234,0.35);
  --divider:     rgba(245,240,234,0.15);
  --hairline:    rgba(255,255,255,0.15);
  --label:       rgba(255,255,255,0.45);
  --btn-border:  rgba(245,240,234,0.6);
  --btn-hover:   rgba(245,240,234,0.08);
  --btn-solid-bg:  #f5f0e6;
  --btn-solid-ink: #0a0a0a;
  --card-bg:            #131313;
  --card-bg-raised:     #161616;
  --card-border:        rgba(255,255,255,0.12);
  --card-border-strong: rgba(255,255,255,0.18);
  --card-shadow:        0 12px 28px rgba(0,0,0,0.35);
  --card-shadow-soft:   0 8px 16px rgba(0,0,0,0.2);
  --cell-0:      #1c1c1c;
  --clock-ring:  rgba(245,240,234,0.3);
  --clock-hand:  rgba(245,240,234,0.7);
  color-scheme:  dark;

  --font-serif:  'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:   'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --pad-x:       clamp(20px, 5vw, 48px);
  --dur:         0.35s;
  --ease:        cubic-bezier(0.0, 0.0, 0.2, 1);
}

/* ──── LIGHT THEME (editorial paper) ──── */
html[data-theme="light"] {
  --bg:          #f6f1e7;
  --bg-section:  #f1ebdf;
  --surface:     #ebe4d4;
  --ink:         #171410;
  --ink-soft:    rgba(23,20,16,0.72);
  --ink-muted:   rgba(23,20,16,0.58);
  --ink-subtle:  rgba(23,20,16,0.42);
  --divider:     rgba(23,20,16,0.16);
  --hairline:    rgba(23,20,16,0.16);
  --label:       rgba(23,20,16,0.5);
  --btn-border:  rgba(23,20,16,0.55);
  --btn-hover:   rgba(23,20,16,0.06);
  --btn-solid-bg:  #171410;
  --btn-solid-ink: #f5f0e6;
  --card-bg:            #efe9da;
  --card-bg-raised:     #fbf7ee;
  --card-border:        rgba(23,20,16,0.12);
  --card-border-strong: rgba(23,20,16,0.2);
  --card-shadow:        0 12px 28px rgba(70,58,34,0.16);
  --card-shadow-soft:   0 8px 16px rgba(70,58,34,0.1);
  --cell-0:      #ddd6c5;
  --clock-ring:  rgba(23,20,16,0.3);
  --clock-hand:  rgba(23,20,16,0.7);
  color-scheme:  light;
}

/* ──── RESET ──── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.5;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { background: none; border: none; cursor: pointer; font-family: inherit; color: inherit; }
img, video, svg { display: block; max-width: 100%; }

/* ──── SCROLL ANIMATIONS ──── */
[data-animate] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════
   HEADER / WORDMARK
══════════════════════════════════════════════ */
.site-header {
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  border-bottom: 1px solid var(--divider);
}

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px var(--pad-x);
  border-bottom: 0.5px solid var(--hairline);
  font-family: var(--font-serif);
  font-size: 13px;
  color: var(--ink-muted);
}

.top-nav-right a { white-space: nowrap; }

.theme-toggle {
  font-family: var(--font-serif);
  font-size: 13px;
  color: var(--ink-muted);
  white-space: nowrap;
  border-bottom: 1px solid var(--divider);
  transition: color var(--dur), border-color var(--dur);
}
.theme-toggle:hover {
  color: var(--ink);
  border-color: var(--ink);
}
.theme-toggle:focus-visible {
  outline: 2px solid var(--btn-border);
  outline-offset: 2px;
}

.top-nav-center .dot {
  width: 6px;
  height: 6px;
  background-color: var(--ink);
  border-radius: 50%;
}

.top-nav-right {
  display: flex;
  gap: 32px;
}
.top-nav-right a {
  transition: color var(--dur);
}
.top-nav-right a:hover {
  color: var(--ink);
}

.header-bottom-content {
  display: flex;
  flex-direction: column;
}

.wordmark-row {
  padding-inline: var(--pad-x);
  padding-bottom: 0;
}

.site-wordmark {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(80px, 20vw, 300px);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.04em;
  color: var(--ink);
  user-select: none;
  text-align: center;
}

/* Section nav row (appears below wordmark) */
.section-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px var(--pad-x);
  border-top: none;
  border-bottom: none;
}

.section-nav-label {
  /* FIX 2: lowercase enforced in HTML, font weight 400, dimmed color */
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--label);
}

/* ══════════════════════════════════════════════
   SECTION SHARED
══════════════════════════════════════════════ */
.section {
  padding-inline: var(--pad-x);
  padding-block: clamp(48px, 8vh, 96px);
  border-bottom: 1px solid var(--divider);
}

.section--hero { padding-top: clamp(48px, 8vh, 80px); }
.section--cta  { border-bottom: none; padding-bottom: clamp(64px, 12vh, 120px); }

/* Section label divider rows */
.section-divider-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-bottom: clamp(32px, 5vh, 56px);
  border-bottom: 1px solid var(--divider);
  margin-bottom: clamp(32px, 5vh, 56px);
}

.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-subtle);
}

/* lowercase, dimmed label variant (replaces per-element inline styles) */
.section-label--lc {
  text-transform: none;
  font-weight: 400;
  color: var(--label);
}

/* ══════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════ */
.btn-audit {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--btn-border);
  padding: 14px 32px;
  border-radius: 999px;
  overflow: hidden;
  isolation: isolate;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform 0.15s;
  cursor: pointer;
  white-space: nowrap;
}

/* solid fill that slides up on hover */
.btn-audit::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--btn-solid-bg);
  transform: translateY(102%);
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

/* arrow that glides forward */
.btn-audit::after {
  content: '→';
  font-family: var(--font-serif);
  font-size: 1.15em;
  line-height: 1;
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.btn-audit:hover {
  color: var(--btn-solid-ink);
  border-color: var(--btn-solid-bg);
  transform: translateY(-1px);
}
.btn-audit:hover::before { transform: translateY(0); }
.btn-audit:hover::after  { transform: translateX(5px); }
.btn-audit:active { transform: translateY(0); }

.btn-audit--lg {
  font-size: 14px;
  padding: 17px 40px;
}

/* ── Hero CTA button: solid pill, inverts on hover ── */
.hero-content .btn-audit {
  margin-top: 24px;
  background: var(--btn-solid-bg);
  color: var(--btn-solid-ink);
  border: 1px solid var(--btn-solid-bg);
  font-size: 14px;
  font-weight: 500;
  padding: 15px 32px;
  letter-spacing: 0.01em;
  text-transform: none;
}
.hero-content .btn-audit::before {
  background: var(--bg);
}
.hero-content .btn-audit:hover {
  color: var(--btn-solid-bg);
  border-color: var(--btn-solid-bg);
}

/* ══════════════════════════════════════════════
   HERO
══════════════════════════════════════════════ */
#hook {
  height: 250vh;
  height: 250svh;
  padding: 0;
  border-bottom: none;
}

.hero-sticky-wrapper {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  --progress: 0;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(28px, 5vh, 48px);
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.hero-text-fade {
  opacity: calc(1 - var(--progress) * 4);
  transform: translateY(calc(var(--progress) * -40px));
  will-change: opacity, transform;
  z-index: 2;
  position: relative;
}

.hero-subhead {
  font-family: var(--font-sans);
  font-size: clamp(22px, 3.5vw, 36px);
  font-weight: 400;
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* ── Hero video embed ── */
.video-embed {
  width: 100%;
  /* width caps at 580px or whatever keeps 16:9 height under 42vh,
     so the button stays above the fold without distorting the ratio */
  max-width: min(580px, calc(42vh * 16 / 9));
  aspect-ratio: 16/9;
  background: var(--surface);
  border: 1px solid var(--divider);
  /* --zoom is the eased, inertia-smoothed progress set from script.js */
  --scale: calc(1 + var(--zoom, 0) * 8);
  transform: scale(var(--scale));
  border-radius: calc(4px / var(--scale));
  position: relative;
  overflow: hidden;
  cursor: pointer;
  z-index: 10;
  will-change: transform;
}
/* Beat [data-animate].visible's transform and drop its transform
   transition so per-frame scroll scaling isn't overridden or smeared */
.video-embed[data-animate] {
  transform: scale(var(--scale));
  transition: opacity var(--dur) var(--ease);
}

.video-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-play-btn {
  color: var(--ink);
  opacity: calc(0.7 - var(--progress) * 4);
  transition: opacity 0.2s;
  transform: scale(calc(1 / var(--scale)));
}
.video-play-btn:hover { 
  opacity: 1; 
  transform: scale(calc(1.08 / var(--scale))); 
}
.video-embed.playing .video-inner { display: none; }

/* ══════════════════════════════════════════════
   THE TRUTH (LETTER)
══════════════════════════════════════════════ */
.section--letter {
  padding-top: 64px;
  padding-bottom: 48px;
}
@media (max-width: 768px) {
  .section--letter {
    padding-top: 40px;
    padding-bottom: 40px;
  }
}

.section-divider-row--hairline {
  border-top: 0.5px solid var(--hairline);
  border-bottom: 0.5px solid var(--hairline);
  padding-block: 16px;
  justify-content: space-between;
  margin-bottom: clamp(40px, 8vh, 64px);
}

.letter-content {
  max-width: 560px;
  margin-inline: auto;
  text-align: center;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: clamp(18px, 3vw, 22px);
  line-height: 1.85;
}

.letter-content p {
  margin-bottom: 1.75em;
}

.letter-content p:last-child {
  margin-bottom: 0;
}

.letter-greeting {
  font-family: var(--font-serif);
  font-style: italic;
}

.letter-italic {
  font-style: italic;
  color: var(--ink-soft);
}

/* ══════════════════════════════════════════════
   MARQUEE BAND
══════════════════════════════════════════════ */
.marquee-band {
  overflow: hidden;
  padding-block: 28px;
  border-bottom: 1px solid var(--divider);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 42s linear infinite;
}
.marquee-band:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-right: 40px;
}

.marquee-item {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(20px, 3vw, 32px);
  color: var(--ink-muted);
  white-space: nowrap;
}

.marquee-dot {
  color: var(--ink-subtle);
  font-size: clamp(20px, 3vw, 32px);
}

@keyframes marquee-scroll {
  to { transform: translateX(-50%); }
}

/* ══════════════════════════════════════════════
   WHAT WE FIX (SERVICES INDEX)
══════════════════════════════════════════════ */
.services-list {
  max-width: 880px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
}

.service-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: start;
  gap: 24px;
  padding-block: clamp(24px, 4vh, 36px);
  border-top: 1px solid var(--divider);
  transition: background var(--dur) var(--ease);
}
.service-row:last-child {
  border-bottom: 1px solid var(--divider);
}

.service-index {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--ink-subtle);
  padding-top: 10px;
}

.service-main {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
  transition: transform var(--dur) var(--ease);
}

.service-desc {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 520px;
}

.service-arrow {
  font-family: var(--font-serif);
  font-size: clamp(22px, 3vw, 30px);
  color: var(--ink);
  opacity: 0.3;
  padding-top: 4px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.service-row:hover {
  background: var(--btn-hover);
}
.service-row:hover .service-title {
  transform: translateX(8px);
}
.service-row:hover .service-arrow {
  transform: translateX(8px);
  opacity: 1;
}
.service-row:focus-visible {
  outline: 2px solid var(--btn-border);
  outline-offset: 2px;
}

@media (max-width: 600px) {
  .service-row { grid-template-columns: 32px 1fr auto; gap: 14px; }
}

/* ══════════════════════════════════════════════
   HOW IT WORKS (TIMELINE)
══════════════════════════════════════════════ */
.process-steps {
  position: relative;
  max-width: 620px;
  margin-inline: auto;
  padding-left: 36px;
}

.process-line {
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 1px;
  background: var(--divider);
}

.process-line-fill {
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleY(var(--line-progress, 0));
  transform-origin: top;
  will-change: transform;
}

.process-step {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  align-items: start;
  padding-block: clamp(24px, 4vh, 40px);
}

.process-step::before {
  content: '';
  position: absolute;
  left: -39px;
  top: calc(clamp(24px, 4vh, 40px) + 14px);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--divider);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.process-step.passed::before {
  background: var(--ink);
  border-color: var(--ink);
}

.process-num {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1;
  color: var(--ink-subtle);
  transition: color 0.5s var(--ease);
}
.process-step.passed .process-num {
  color: var(--ink);
}

.process-title {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 8px;
}

.process-text {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-muted);
  max-width: 440px;
}

/* ══════════════════════════════════════════════
   PROMISE (SCROLL-REVEAL STATEMENT)
══════════════════════════════════════════════ */
.reveal-band {
  padding-block: clamp(80px, 14vh, 140px);
}

.reveal-text {
  font-family: var(--font-serif);
  font-size: clamp(26px, 4.5vw, 52px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--ink);
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}

.reveal-text .w {
  opacity: 0.15;
  transition: opacity 0.3s linear;
}
.reveal-text .w.lit {
  opacity: 1;
}

/* ══════════════════════════════════════════════
   FOUNDER
══════════════════════════════════════════════ */
.founder-content {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-inline: auto;
  text-align: center;
}

.founder-body {
  font-size: clamp(18px, 2.4vw, 26px);
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.founder-cards {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
  margin-top: 32px;
  max-width: 460px;
}

.founder-card {
  position: relative;
  width: 100%;
  max-width: 320px;
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
}

.founder-card-icon {
  color: var(--ink-muted);
  display: flex;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.founder-card-text {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
}

.founder-card--1 {
  transform: rotate(-4deg);
  z-index: 1;
  background: var(--card-bg);
  border: 0.5px solid var(--card-border);
}

.founder-card--2 {
  transform: rotate(0deg);
  z-index: 3;
  background: var(--card-bg-raised);
  border: 0.5px solid var(--card-border-strong);
  box-shadow: var(--card-shadow);
}

.founder-card--3 {
  transform: rotate(4deg);
  z-index: 1;
  background: var(--card-bg);
  border: 0.5px solid var(--card-border);
}

/* Desktop Hover Interactions */
@media (min-width: 769px) {
  .founder-card {
    transition: margin 0.3s ease, transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  }
  
  .founder-card--2 {
    margin-top: -38px;
  }
  
  .founder-card--3 {
    margin-top: -38px;
  }
  
  .founder-cards:hover .founder-card {
    transform: rotate(0deg);
    background: var(--card-bg-raised);
    box-shadow: var(--card-shadow-soft);
    border-color: var(--card-border-strong);
    margin-top: 16px;
    z-index: 3;
  }
  
  .founder-cards:hover .founder-card--1 {
    margin-top: 0;
  }
}

/* Fallback / Mobile */
@media (max-width: 768px) {
  .founder-cards {
    gap: 16px;
  }
  .founder-card {
    transform: none;
    background: var(--card-bg-raised);
    z-index: 1;
    box-shadow: none;
    border: 0.5px solid var(--card-border);
  }
}

/* ══════════════════════════════════════════════
   WHO THIS IS FOR
══════════════════════════════════════════════ */
.who-content {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  margin-inline: auto;
  text-align: center;
}

.who-heading {
  font-family: var(--font-sans);
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 900; /* heavy/black weight */
  line-height: 0.95;
  color: var(--ink);
  text-transform: uppercase;
  text-align: center;
}

.who-sub {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  color: var(--ink-soft);
  text-align: center;
  max-width: 480px;
  margin: 24px auto 32px auto;
}

.who-body {
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.65;
  color: var(--ink-muted);
}

.who-not {
  font-size: 14px;
  color: var(--ink-subtle);
  font-style: italic;
  padding-top: 8px;
  border-top: 1px solid var(--divider);
}

/* ══════════════════════════════════════════════
   CTA
══════════════════════════════════════════════ */
.cta-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.cta-heading {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
}

.cta-body {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--ink-muted);
  line-height: 1.6;
}

/* ── Heatmap Grid ── */
.booking-heatmap {
  width: 100%;
  max-width: 540px;
  margin: 16px auto 16px auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.heatmap-header {
  text-align: left;
}

.heatmap-caption {
  font-size: 13px;
  color: var(--ink-subtle);
}

.heatmap-grid {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 4px;
}

/* larger tap targets on small screens (same 42 cells, reflowed) */
@media (max-width: 480px) {
  .heatmap-grid {
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
  }
}

.heatmap-cell {
  aspect-ratio: 1/1;
  border-radius: 2px;
  transition: border 0.15s ease;
  border: 1px solid transparent;
}

.heatmap-cell[data-level="0"] {
  background: var(--cell-0);
  cursor: default;
}

.heatmap-cell[data-level="1"] { background: #173404; cursor: pointer; }
.heatmap-cell[data-level="2"] { background: #27500A; cursor: pointer; }
.heatmap-cell[data-level="3"] { background: #3B6D11; cursor: pointer; }
.heatmap-cell[data-level="4"] { background: #639922; cursor: pointer; }

.heatmap-cell:not([data-level="0"]):hover {
  border: 1px solid var(--btn-border);
}

.heatmap-cell:focus-visible,
.btn-audit:focus-visible,
.video-play-btn:focus-visible {
  outline: 2px solid var(--btn-border);
  outline-offset: 2px;
}

.heatmap-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 4px;
}

.legend-text {
  font-size: 11px;
  color: var(--ink-subtle);
}

.legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

/* ══════════════════════════════════════════════
   FOOTER (EDITORIAL)
══════════════════════════════════════════════ */
.footer-editorial {
  padding: 0 var(--pad-x);
  padding-bottom: 32px;
}

.footer-transition {
  border-top: 0.5px solid var(--hairline);
  padding-top: 48px;
  padding-bottom: 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.footer-transition-left {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 64px);
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.footer-transition-right {
  font-family: var(--font-sans);
  font-size: clamp(16px, 2vw, 22px);
  color: var(--ink-muted);
  cursor: pointer;
  transition: color 0.2s ease;
  text-decoration: none;
}
.footer-transition-right:hover {
  color: var(--ink);
}

.footer-clocks {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.clock-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.clock-svg {
  width: clamp(80px, 15vw, 180px);
  height: clamp(80px, 15vw, 180px);
}
/* theme-aware strokes override the SVG presentation attributes */
.clock-svg circle { stroke: var(--clock-ring); }
.clock-svg line   { stroke: var(--clock-hand); }

.clock-label {
  font-family: var(--font-sans);
  font-size: clamp(12px, 1.5vw, 16px);
  color: var(--ink-muted);
  letter-spacing: 0.05em;
  text-align: center;
}

.footer-brand {
  margin-top: 80px;
  margin-bottom: 40px;
  font-family: var(--font-serif);
  font-size: clamp(64px, 24vw, 440px);
  line-height: 0.85;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.05em;
  margin-left: -0.04em;
  white-space: nowrap;
}

.footer-legal {
  border-top: 0.5px solid var(--hairline);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-sans);
  font-size: clamp(12px, 1.5vw, 14px);
  color: var(--ink-subtle);
}
.footer-wordmark {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.footer-copy {
  font-size: 12px;
  color: var(--ink-subtle);
}

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 600px) {
  .video-grid { grid-template-columns: 1fr; }
  .site-wordmark { font-size: clamp(56px, 18vw, 100px); }
  .section-nav-row { gap: 8px; }
  .top-nav-center { display: none; } /* decorative dot crowds the links on narrow screens */
  .top-nav-right { gap: 16px; }
  .cta-heading { font-size: clamp(44px, 14vw, 80px); }
}

/* ──── REDUCED MOTION ──── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-animate] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-text-fade {
    opacity: 1;
    transform: none;
  }
  .video-embed,
  .video-embed[data-animate] {
    transform: none;
    border-radius: 4px;
  }
  .video-play-btn { opacity: 0.7; }
  .marquee-track { animation: none; }
  .reveal-text .w { opacity: 1; transition: none; }
  .process-line-fill { transform: scaleY(1); }
  .process-step::before { background: var(--ink); border-color: var(--ink); }
  .process-step .process-num { color: var(--ink); }
  .service-row, .service-title, .service-arrow { transition: none; }
  .btn-audit, .btn-audit::before, .btn-audit::after { transition: none; }
}
