/* =========================================================
   CloudAurum Prototype-only additions
   Layered on top of tokens.css + site.css
   ========================================================= */

/* Smoother page-transition reveal when switching routes */
.route-shell {
  animation: routeIn 480ms var(--ease-out) both;
}
@keyframes routeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Underline-on-active for nav links */
.nav-links a.is-active { color: var(--gold); }
.nav.on-dark-nav .nav-links a.is-active { color: var(--gold-light); }

/* Hero refinements */
.hero {
  min-height: min(820px, 88vh);
  display: flex;
  align-items: center;
}
.hero-eyebrow-rule {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  color: var(--gold-light);
}
.hero-eyebrow-rule::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--gold-light);
  opacity: 0.6;
}
.hero-meta {
  position: absolute;
  bottom: var(--sp-12);
  right: var(--container-pad);
  font-size: var(--font-caption);
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  z-index: 1;
}
.hero-meta .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 12px var(--gold-light);
  animation: pulse 2.4s var(--ease-in-out) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.2); }
}
@media (max-width: 768px) {
  .hero-meta { display: none; }
}

/* Hero metrics row: subtle, anchored, numbers-as-typography */
.hero-metrics {
  margin-top: var(--sp-16);
  padding-top: var(--sp-8);
  border-top: 1px solid var(--border-on-dark);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-8);
  max-width: 760px;
}
@media (max-width: 700px) {
  .hero-metrics { grid-template-columns: 1fr; gap: var(--sp-4); }
}
.hero-metric .num {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  color: var(--text-on-dark);
  line-height: 1;
  letter-spacing: var(--track-display);
}
.hero-metric .num em {
  font-style: italic;
  color: var(--gold-light);
}
.hero-metric .label {
  margin-top: var(--sp-3);
  font-size: var(--font-caption);
  color: var(--text-on-dark-muted);
  text-transform: uppercase;
  letter-spacing: var(--track-caps);
}

/* Section eyebrow with rule (used across pages) */
.eyebrow-rule {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}
.eyebrow-rule::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--gold);
}

/* =========================================================
   COMPONENT: Stat band (editorial visual break)
   ========================================================= */
.stat-band {
  padding-block: var(--section-pad-y-tight);
  background: var(--bg-warm);
  border-top: 1px solid var(--border-gold);
  border-bottom: 1px solid var(--border-gold);
}
.stat-band-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-12);
  align-items: start;
  text-align: center;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
}
.stat-number {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1;
  color: var(--text-primary);
  letter-spacing: var(--track-display);
  font-weight: 400;
}
.stat-number .unit {
  color: var(--gold);
  font-style: italic;
}
.stat-label {
  font-family: var(--font-sans);
  font-size: var(--font-body-sm);
  color: var(--text-muted);
  letter-spacing: 0.02em;
  max-width: 240px;
  line-height: var(--lh-body);
}
@media (max-width: 768px) {
  .stat-band-grid { grid-template-columns: 1fr; gap: var(--sp-10); }
}

/* =========================================================
   COMPONENT: Editorial pull quote
   ========================================================= */
.editorial-quote {
  padding-block: var(--section-pad-y);
  text-align: center;
  background: var(--bg-page);
  position: relative;
}
.editorial-quote::before,
.editorial-quote::after {
  content: '';
  display: block;
  width: 80px;
  height: 1px;
  background: var(--gold);
  margin-inline: auto;
}
.editorial-quote::before { margin-bottom: var(--sp-12); }
.editorial-quote::after { margin-top: var(--sp-12); }
.editorial-quote blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  line-height: 1.3;
  color: var(--text-primary);
  max-width: 920px;
  margin-inline: auto;
  letter-spacing: var(--track-headline);
  padding-inline: var(--container-pad);
}
.editorial-quote cite {
  display: block;
  margin-top: var(--sp-8);
  font-family: var(--font-sans);
  font-style: normal;
  font-size: var(--font-caption);
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: var(--track-eyebrow);
  font-weight: 600;
}

/* =========================================================
   COMPONENT: Problem cards (editorial, top-border)
   ========================================================= */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-10);
}
@media (max-width: 900px) {
  .problem-grid { grid-template-columns: 1fr; gap: var(--sp-8); }
}
.problem-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  padding-top: var(--sp-12);
  border-top: 1px solid var(--border-default);
  position: relative;
  transition: border-color var(--dur-base) var(--ease-out);
}
.problem-card:hover {
  border-top-color: var(--gold);
  transform: none;
  box-shadow: none;
}
.problem-card::after { display: none; }
.problem-card-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--font-body-sm);
  color: var(--gold);
  letter-spacing: 0.02em;
  margin-bottom: var(--sp-6);
  display: block;
}
.problem-card h4 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  line-height: var(--lh-headline);
  margin-bottom: var(--sp-4);
  letter-spacing: var(--track-headline);
  color: var(--text-primary);
}
.problem-card p {
  font-size: var(--font-body);
  line-height: var(--lh-prose);
  color: var(--text-body);
  max-width: 380px;
}

/* =========================================================
   COMPONENT: Audience editorial list (replaces 3-card grid)
   ========================================================= */
.audience-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border-default);
  border-bottom: 1px solid var(--border-default);
}
.audience-row {
  padding: var(--sp-12) var(--sp-10);
  border-right: 1px solid var(--border-default);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.audience-row:last-child {
  border-right: none;
}
.audience-row h4 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.2vw, 1.875rem);
  font-weight: 400;
  line-height: var(--lh-headline);
  letter-spacing: var(--track-headline);
  color: var(--text-primary);
}
.audience-row p {
  font-size: var(--font-body-sm);
  color: var(--text-body);
  line-height: var(--lh-body);
}
.audience-row .audience-tag {
  font-family: var(--font-sans);
  font-size: var(--font-micro);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--track-eyebrow);
  color: var(--gold);
  margin-top: var(--sp-2);
}
@media (max-width: 900px) {
  .audience-list { grid-template-columns: 1fr; }
  .audience-row { border-right: none; border-bottom: 1px solid var(--border-default); padding: var(--sp-10) var(--sp-6); }
  .audience-row:last-child { border-bottom: none; }
}

/* =========================================================
   COMPONENT: About sections (label/body two-column editorial)
   ========================================================= */
.about-section {
  padding-block: var(--section-pad-y);
}
.about-section + .about-section {
  border-top: 1px solid var(--border-subtle);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--sp-16);
  align-items: start;
}

/* Label column (eyebrow + h2 + optional portrait/caption) */
.about-grid .label-col {
  position: sticky;
  top: calc(var(--nav-h) + var(--sp-8));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.about-grid .label-col .eyebrow-rule {
  margin-bottom: var(--sp-6);
}
.about-grid .label-col h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 400;
  line-height: var(--lh-headline);
  letter-spacing: var(--track-headline);
  color: var(--text-primary);
  margin: 0;
}
.about-grid .label-col h2 em.display-italic {
  font-style: italic;
}
.about-grid .label-col .portrait {
  margin-top: var(--sp-8);
}
.about-grid .label-col .caption {
  margin-top: var(--sp-4);
  font-size: var(--font-caption);
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

/* Body column (editorial paragraph stack) */
.about-grid .body-col {
  max-width: var(--container-prose);
}
.about-grid .body-col p {
  font-family: var(--font-sans);
  font-size: var(--font-body-lg);
  line-height: var(--lh-prose);
  color: var(--text-body);
}
.about-grid .body-col p + p {
  margin-top: var(--sp-6);
}
.about-grid .body-col p strong {
  color: var(--text-primary);
  font-weight: 500;
}

/* Stacked (≤900px): label-col stops being sticky, becomes a header block above body */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-10);
  }
  .about-grid .label-col {
    position: static;
  }
  .about-grid .label-col h2 {
    margin-bottom: 0;
  }
  .about-grid .body-col p {
    font-size: var(--font-body);
  }
}

/* CTA band ceremonial lead width */
.cta-band .lead { max-width: 640px; margin-bottom: var(--sp-10); }

/* Section heading numeric counter (used on services + about) */
.section-counter {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(3rem, 6vw, 5rem);
  color: var(--gold);
  line-height: 1;
  opacity: 0.92;
}

/* Card refinements — subtle gold underline on number, sweep on hover */
.card, .service-tile {
  position: relative;
}
.card::after, .service-tile::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 480ms var(--ease-out);
}
.card:hover::after, .service-tile:hover::after { transform: scaleX(1); }

/* Page hero shared utility */
.page-hero {
  padding-top: calc(var(--nav-h) + var(--sp-20));
  padding-bottom: var(--sp-16);
  background: var(--bg-page);
  position: relative;
  overflow: hidden;
}
.page-hero h1 {
  margin-bottom: var(--sp-8);
  max-width: 920px;
}
.page-hero .lead {
  max-width: 720px;
  margin-top: 0;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: var(--border-subtle);
}

/* Form (contact) */
.contact-form {
  display: grid;
  gap: var(--sp-5);
}
.field {
  display: grid;
  gap: var(--sp-2);
}
.field label {
  font-family: var(--font-sans);
  font-size: var(--font-caption);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--track-eyebrow);
  color: var(--text-muted);
}
.field input,
.field textarea,
.field select {
  font-family: var(--font-sans);
  font-size: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-cream);
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  padding: 14px 16px;
  width: 100%;
  transition: border-color var(--dur-quick) var(--ease-out),
              background var(--dur-quick) var(--ease-out);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--bg-page);
  box-shadow: 0 0 0 3px var(--gold-soft);
}
.field textarea { min-height: 132px; resize: vertical; }
.field .hint {
  font-size: var(--font-caption);
  color: var(--text-muted);
}

/* Calendly slot — real-feeling availability grid */
.cal-slot {
  background: var(--bg-cream);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--sp-8);
}
.cal-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: var(--sp-6);
  margin-bottom: var(--sp-6);
  border-bottom: 1px solid var(--border-subtle);
}
.cal-head h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--text-primary);
  line-height: 1.2;
}
.cal-head .meta {
  font-size: var(--font-caption);
  color: var(--text-muted);
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
}
.cal-calendar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--sp-2);
  margin-bottom: var(--sp-6);
}
.cal-day {
  text-align: center;
  padding: var(--sp-3) var(--sp-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--dur-quick) var(--ease-out);
  background: var(--bg-page);
}
.cal-day:hover { border-color: var(--gold); background: var(--gold-soft); }
.cal-day.is-selected { border-color: var(--gold); background: var(--text-primary); color: var(--bg-page); }
.cal-day.is-selected .cal-day-name,
.cal-day.is-selected .cal-day-date { color: inherit; }
.cal-day.is-disabled { opacity: 0.35; cursor: not-allowed; }
.cal-day-name {
  display: block;
  font-size: var(--font-caption);
  color: var(--text-muted);
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.cal-day-date {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--text-primary);
}
.cal-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-2);
}
@media (max-width: 540px) {
  .cal-calendar { grid-template-columns: repeat(5, 1fr); }
  .cal-slots { grid-template-columns: repeat(2, 1fr); }
}
.cal-time {
  padding: var(--sp-3);
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  background: var(--bg-page);
  font-size: var(--font-body-sm);
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--dur-quick) var(--ease-out);
  text-align: center;
}
.cal-time:hover {
  border-color: var(--gold);
  color: var(--gold-deep);
  background: var(--gold-soft);
}
.cal-time.is-selected {
  border-color: var(--text-primary);
  background: var(--text-primary);
  color: var(--bg-page);
}
.cal-confirm {
  margin-top: var(--sp-6);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.cal-confirm .selected {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: var(--text-primary);
}
.cal-confirm .selected em {
  font-style: italic;
  color: var(--gold);
}

/* Marquee strip — industries on home, subtle */
.marquee {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding-block: var(--sp-8);
  overflow: hidden;
  background: var(--bg-page);
}
.marquee-track {
  display: flex;
  gap: var(--sp-16);
  align-items: center;
  white-space: nowrap;
  animation: marquee 48s linear infinite;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--text-muted);
}
.marquee-track span { display: inline-flex; align-items: center; gap: var(--sp-6); }
.marquee-track .dot {
  width: 5px; height: 5px;
  background: var(--gold);
  border-radius: 50%;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Vertical numeric strip used in About + services detail */
.figures-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-8);
  padding: var(--sp-12) 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
@media (max-width: 800px) { .figures-row { grid-template-columns: repeat(2, 1fr); } }
.figure .num {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  line-height: 1;
  color: var(--text-primary);
  letter-spacing: var(--track-display);
}
.figure .num em { color: var(--gold); font-style: italic; }
.figure .label {
  margin-top: var(--sp-3);
  font-size: var(--font-caption);
  color: var(--text-muted);
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
}

/* Methodology timeline (about page) */
.timeline {
  display: grid;
  gap: 0;
  margin-top: var(--sp-6);
}
.timeline-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--sp-6);
  padding: var(--sp-6) 0;
  border-top: 1px solid var(--border-subtle);
}
.timeline-row:last-child { border-bottom: 1px solid var(--border-subtle); }
.timeline-year {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--gold);
  line-height: 1.1;
}
.timeline-body h4 {
  margin-bottom: 4px;
}
.timeline-body p {
  font-size: var(--font-body-sm);
  color: var(--text-body);
  line-height: var(--lh-body);
}

/* Diagnostic / leakage diagram on home */
.leak-diagram {
  background: var(--bg-cream);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--sp-10);
  margin-top: var(--sp-12);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--sp-10);
  align-items: center;
}
@media (max-width: 900px) {
  .leak-diagram { grid-template-columns: 1fr; }
}
.leak-diagram .label-tag {
  font-size: var(--font-eyebrow);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--track-eyebrow);
  color: var(--gold);
  margin-bottom: var(--sp-3);
  display: block;
}
.leak-diagram h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: var(--sp-4);
  line-height: 1.2;
}
.leak-diagram p {
  font-size: var(--font-body-sm);
  color: var(--text-body);
}
.leak-svg-wrap {
  background: var(--bg-page);
  border-radius: var(--radius);
  padding: var(--sp-6);
}
.leak-svg-wrap svg { width: 100%; height: auto; }

/* Service detail "stack" enhancement */
.stack-list {
  display: grid;
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: var(--sp-4);
}
.stack-row {
  background: var(--bg-page);
  padding: var(--sp-4) var(--sp-6);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-4);
  font-size: var(--font-body-sm);
}
.stack-row .role {
  color: var(--text-muted);
  font-size: var(--font-caption);
  text-transform: uppercase;
  letter-spacing: var(--track-caps);
}
.stack-row .tool { color: var(--text-primary); font-weight: 500; }

/* FAQ expansion */
.faq-grid {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border-default);
  max-width: 960px;
}
.faq-item {
  cursor: pointer;
  padding-block: var(--sp-8);
  border-bottom: 1px solid var(--border-default);
  transition: padding var(--dur-quick) var(--ease-out);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-6);
  outline: none;
}
.faq-item summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}
.faq-item summary h4 {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 400;
  line-height: var(--lh-headline);
  color: var(--text-primary);
  letter-spacing: var(--track-headline);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .toggle {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform var(--dur-base) var(--ease-out);
  line-height: 1;
}
.faq-item[open] summary .toggle { transform: rotate(45deg); }
.faq-item[open] summary h4 { color: var(--text-primary); }
.faq-item p {
  margin-top: var(--sp-5);
  max-width: 680px;
  font-size: var(--font-body);
  line-height: var(--lh-prose);
  color: var(--text-body);
}

/* =========================================================
   COMPONENT: Custom engagement tiers (Services page)
   ========================================================= */
.tiers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--border-default);
  border-left: 1px solid var(--border-default);
  background: var(--border-default);
}
.tier-row {
  background: var(--bg-page);
  padding: var(--sp-8) var(--sp-10);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-6);
  border-right: 1px solid var(--border-default);
  border-bottom: 1px solid var(--border-default);
  transition: background var(--dur-quick) var(--ease-out);
}
.tier-row:hover { background: var(--bg-cream); }
.section-cream .tier-row { background: var(--bg-cream); }
.section-cream .tier-row:hover { background: var(--bg-page); }
.tier-row h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  line-height: var(--lh-headline);
  color: var(--text-primary);
  letter-spacing: var(--track-headline);
}
.tier-row .tier-price {
  font-family: var(--font-sans);
  font-size: var(--font-body-sm);
  color: var(--text-muted);
  letter-spacing: 0.01em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .tiers-grid { grid-template-columns: 1fr; }
  .tier-row {
    flex-direction: row;
    align-items: baseline;
    padding: var(--sp-6) var(--sp-5);
  }
}

/* =========================================================
   COMPONENT: Legal pages (Privacy + Terms — full editorial)
   ========================================================= */
.legal-body {
  padding-block: var(--section-pad-y-tight) var(--section-pad-y);
  background: var(--bg-page);
}

/* Effective Date / Last updated metadata in page-hero */
.legal-meta {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: var(--sp-10);
  margin-top: var(--sp-8);
}
.legal-meta > div {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.legal-meta dt {
  font-family: var(--font-sans);
  font-size: var(--font-eyebrow);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--track-eyebrow);
  color: var(--gold);
}
.legal-meta dd {
  font-family: var(--font-sans);
  font-size: var(--font-body-sm);
  color: var(--text-body);
  letter-spacing: 0.01em;
}
@media (max-width: 600px) {
  .legal-meta { grid-template-columns: 1fr; gap: var(--sp-5); }
}

/* Working-draft callout */
.legal-callout {
  border-left: 3px solid var(--gold);
  background: var(--bg-warm);
  padding: var(--sp-6) var(--sp-8);
  margin-bottom: var(--sp-16);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-sans);
  font-size: var(--font-body);
  line-height: var(--lh-prose);
  color: var(--text-body);
}
@media (max-width: 600px) {
  .legal-callout { padding: var(--sp-5) var(--sp-6); margin-bottom: var(--sp-12); }
}

/* Editorial prose */
.legal-prose h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.625rem, 2.4vw, 2rem);
  font-weight: 400;
  line-height: var(--lh-headline);
  letter-spacing: var(--track-headline);
  color: var(--text-primary);
  margin-top: var(--sp-16);
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--border-default);
}
.legal-prose h2:first-child { margin-top: 0; }

.legal-prose h3 {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: var(--lh-headline);
  letter-spacing: 0.01em;
  color: var(--text-primary);
  margin-top: var(--sp-10);
  margin-bottom: var(--sp-3);
}

.legal-prose p {
  font-family: var(--font-sans);
  font-size: var(--font-body);
  line-height: var(--lh-prose);
  color: var(--text-body);
}
.legal-prose p + p { margin-top: var(--sp-5); }

.legal-prose ul {
  margin-top: var(--sp-5);
  margin-bottom: var(--sp-2);
  padding-left: 0;
  display: grid;
  gap: var(--sp-3);
}
.legal-prose ul li {
  list-style: none;
  position: relative;
  padding-left: var(--sp-6);
  font-family: var(--font-sans);
  font-size: var(--font-body);
  line-height: var(--lh-body);
  color: var(--text-body);
}
.legal-prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 10px;
  height: 1px;
  background: var(--gold);
}
.legal-prose ul + p { margin-top: var(--sp-6); }

.legal-prose strong {
  color: var(--text-primary);
  font-weight: 600;
}

.legal-prose a {
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 1px;
  word-break: break-word;
  transition: color var(--dur-quick) var(--ease-out),
              border-color var(--dur-quick) var(--ease-out);
}
.legal-prose a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* =========================================================
   COMPONENT: Contact page — booking architecture
   =========================================================
   Layout: page-hero (compressed) → booking block → secondary
   ========================================================= */

/* Compress the page-hero bottom space on Contact so it flows tight into booking */
.contact-hero {
  padding-bottom: var(--sp-12);
}

/* Booking block — first true scroll surface below the hero */
.contact-booking {
  padding-block: var(--sp-12) var(--section-pad-y);
  background: var(--bg-page);
  border-top: 1px solid var(--border-default);
}
.booking-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--sp-16);
  align-items: start;
}
@media (max-width: 900px) {
  .booking-grid { grid-template-columns: 1fr; gap: var(--sp-12); }
}

/* Scope list — labeled editorial pairs (dt/dd) */
.booking-scope .eyebrow-rule { margin-bottom: var(--sp-8); }
.scope-list {
  display: grid;
  gap: 0;
}
.scope-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--sp-8);
  align-items: baseline;
  padding-block: var(--sp-6);
  border-top: 1px solid var(--border-subtle);
}
.scope-row:last-child {
  border-bottom: 1px solid var(--border-subtle);
}
.scope-row dt {
  font-family: var(--font-sans);
  font-size: var(--font-eyebrow);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--track-eyebrow);
  color: var(--gold);
}
.scope-row dd {
  font-family: var(--font-sans);
  font-size: var(--font-body);
  line-height: var(--lh-prose);
  color: var(--text-body);
}
@media (max-width: 600px) {
  .scope-row {
    grid-template-columns: 1fr;
    gap: var(--sp-2);
    padding-block: var(--sp-5);
  }
}

/* Booking CTA card — dark, focal, premium commitment surface */
.booking-cta-col {
  position: sticky;
  top: calc(var(--nav-h) + var(--sp-8));
}
@media (max-width: 900px) {
  .booking-cta-col { position: static; }
}
.booking-cta-card {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: var(--sp-10);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.booking-cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 100% 0%, rgba(176, 141, 87, 0.18), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.booking-cta-card .eyebrow { color: var(--gold-light); }
.booking-cta-card .eyebrow-rule::before { background: var(--gold-light); }
.booking-cta-card h2 {
  color: var(--text-on-dark);
  font-size: clamp(1.75rem, 2.6vw, 2.25rem);
  line-height: var(--lh-headline);
  margin: 0;
}
.booking-cta-card .caption {
  color: var(--text-on-dark-muted);
}
.booking-cta-card .btn {
  margin-top: var(--sp-8);
  width: 100%;
  justify-content: center;
}
.booking-cta-card .btn-primary {
  background: var(--gold);
  color: var(--bg-dark);
}
.booking-cta-card .btn-primary:hover {
  background: var(--gold-light);
  color: var(--bg-dark);
}
.booking-cta-card .booking-meta-note {
  margin-top: var(--sp-4);
  font-size: var(--font-caption);
  color: var(--text-on-dark-muted);
  letter-spacing: 0.01em;
  text-align: center;
}

/* Larger button modifier for primary commit moments */
.btn-large {
  padding: 18px 32px;
  font-size: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.005em;
}

/* Secondary section — questions/form */
.contact-secondary { }
.contact-secondary .section-header { max-width: 720px; }
.secondary-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--sp-16);
  align-items: start;
}
@media (max-width: 900px) {
  .secondary-grid { grid-template-columns: 1fr; gap: var(--sp-10); }
}

/* Form success state */
.form-success {
  background: var(--bg-page);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: var(--sp-12);
  text-align: center;
}
.form-success h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  letter-spacing: var(--track-headline);
}

/* Remove the contact-grid padding/border because we wrap in sections now */
.contact-grid {
  padding-block: 0;
  border-top: none;
}

/* =========================================================
   COMPONENT: Welcome page (post-purchase scheduling)
   ========================================================= */
.welcome-shell {
  background: var(--bg-page);
  min-height: 100vh;
}

.welcome-hero {
  padding-top: var(--sp-16);
  padding-bottom: var(--sp-12);
  background: var(--bg-page);
  border-bottom: 1px solid var(--border-subtle);
}
.welcome-hero .logo-link {
  font-size: 28px;
  display: inline-block;
  margin-bottom: var(--sp-12);
}
.welcome-hero h1 {
  max-width: 760px;
  margin-bottom: var(--sp-8);
}
.welcome-hero .lead {
  max-width: 640px;
}

.welcome-scheduling {
  padding-block: var(--sp-16);
  background: var(--bg-cream);
}
.welcome-scheduling .calendly-inline-widget {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--bg-page);
}

.welcome-expect {
  padding-block: var(--section-pad-y);
  background: var(--bg-page);
}
.welcome-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-10);
}
@media (max-width: 768px) {
  .welcome-steps { grid-template-columns: 1fr; gap: var(--sp-8); }
}
.welcome-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--sp-6);
  align-items: start;
}
.welcome-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-page);
  border: 1px solid var(--border-strong);
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--gold);
}
.welcome-step-body h4 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: var(--track-headline);
  color: var(--text-primary);
  margin-bottom: var(--sp-3);
}
.welcome-step-body p {
  font-size: var(--font-body);
  line-height: var(--lh-prose);
  color: var(--text-body);
}

.welcome-meta {
  padding-block: var(--sp-16);
  background: var(--bg-warm);
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}
.welcome-meta .caption {
  font-size: var(--font-caption);
  color: var(--text-muted);
}
.welcome-meta a {
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 1px;
}
.welcome-meta a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* =========================================================
   COMPONENT: Service detail (Services page deep sections)
   ========================================================= */
.service-detail {
  padding-block: var(--section-pad-y);
  border-top: 1px solid var(--border-subtle);
}
.service-detail-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--sp-16);
  align-items: start;
}
@media (max-width: 900px) {
  .service-detail-inner { grid-template-columns: 1fr; gap: var(--sp-10); }
}

.service-meta {
  position: sticky;
  top: calc(var(--nav-h) + var(--sp-8));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-3);
}
@media (max-width: 900px) {
  .service-meta { position: static; padding-bottom: var(--sp-8); border-bottom: 1px solid var(--border-subtle); }
}
.service-meta .num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(2.25rem, 4vw, 3rem);
  color: var(--gold);
  line-height: 1;
  margin-bottom: var(--sp-2);
}
.service-meta h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin: 0;
  line-height: var(--lh-headline);
}
.service-meta .price-row {
  font-family: var(--font-sans);
  font-size: var(--font-body-sm);
  color: var(--text-primary);
  padding: var(--sp-3) 0;
  border-top: 1px solid var(--border-default);
  border-bottom: 1px solid var(--border-default);
  width: 100%;
  letter-spacing: 0.01em;
  margin: var(--sp-2) 0 var(--sp-6) 0;
}
.service-meta .btn {
  margin-top: 0;
}

/* Content column */
.service-detail .content { max-width: 640px; }
.service-detail .content .lead {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  line-height: 1.45;
  color: var(--text-primary);
  margin-bottom: var(--sp-10);
  font-style: normal;
}
.service-detail .content p {
  font-size: var(--font-body);
  line-height: var(--lh-prose);
  color: var(--text-body);
}
.service-detail .content p + p { margin-top: var(--sp-4); }
.service-detail .content h4 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: var(--track-headline);
  margin-top: var(--sp-12);
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--border-subtle);
}
.service-detail .content > :first-child + h4,
.service-detail .content .lead + h4 { margin-top: var(--sp-10); }

/* Editorial lists */
.service-detail .content ul {
  margin-top: 0;
  padding-left: 0;
  display: grid;
  gap: 0;
}
.service-detail .content ul li {
  list-style: none;
  position: relative;
  padding: var(--sp-4) 0 var(--sp-4) var(--sp-6);
  font-size: var(--font-body);
  color: var(--text-body);
  line-height: var(--lh-body);
  border-bottom: 1px solid var(--border-subtle);
}
.service-detail .content ul li:last-child { border-bottom: none; }
.service-detail .content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: calc(var(--sp-4) + 0.7em);
  width: 12px;
  height: 1px;
  background: var(--gold);
}

/* Callout (e.g. "The math") */
.service-detail .callout {
  background: var(--bg-warm);
  border-left: 3px solid var(--gold);
  padding: var(--sp-6) var(--sp-8);
  margin-top: var(--sp-10);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.service-detail .callout .label {
  font-family: var(--font-sans);
  font-size: var(--font-eyebrow);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--track-eyebrow);
  color: var(--gold);
  display: block;
  margin-bottom: var(--sp-3);
}
.service-detail .callout p {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  line-height: 1.45;
  color: var(--text-primary);
  margin: 0;
}
@media (max-width: 768px) {
  .service-detail .callout { padding: var(--sp-5) var(--sp-6); margin-top: var(--sp-8); }
  .service-detail .callout p { font-size: 1.125rem; }
}

/* Stack list refinement (already exists, but tighten spacing in detail context) */
.service-detail .stack-list { margin-top: 0; margin-bottom: var(--sp-4); }

/* =========================================================
   COMPONENT: Contact meta (dl/dt/dd hierarchy)
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--sp-16);
  align-items: start;
  padding-block: var(--section-pad-y-tight);
  border-top: 1px solid var(--border-subtle);
}
.contact-meta dl {
  display: grid;
  gap: var(--sp-8);
}
.contact-meta dl > div {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border-subtle);
}
.contact-meta dl > div:first-child {
  padding-top: 0;
  border-top: none;
}
.contact-meta dt {
  font-family: var(--font-sans);
  font-size: var(--font-eyebrow);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--track-eyebrow);
  color: var(--gold);
}
.contact-meta dd {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: var(--lh-tight);
  color: var(--text-primary);
  letter-spacing: var(--track-headline);
}
.contact-meta dd a {
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 2px;
  transition: color var(--dur-quick) var(--ease-out), border-color var(--dur-quick) var(--ease-out);
}
.contact-meta dd a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* Founder portrait */
.portrait {
  aspect-ratio: 4 / 5;
  max-width: 50%;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-default);
  background: var(--bg-warm);
  box-shadow: var(--shadow-sm);
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  filter: grayscale(1) contrast(1.04) brightness(0.99);
}

/* Status pill */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 4px 10px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-pill);
  font-size: var(--font-caption);
  color: var(--text-body);
  background: var(--bg-page);
}
.status-pill .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}
.on-dark .status-pill {
  background: rgba(244, 243, 241, 0.04);
  border-color: var(--border-on-dark-strong);
  color: var(--text-on-dark-body);
}

/* Force grid-3 to keep 3 columns at wider breakpoints */
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Tab bar (services page secondary nav) */
.tabbar {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-warm);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  margin-bottom: var(--sp-12);
  flex-wrap: wrap;
}
.tabbar button {
  font-family: var(--font-sans);
  font-size: var(--font-caption);
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  color: var(--text-body);
  transition: all var(--dur-quick) var(--ease-out);
}
.tabbar button:hover { color: var(--text-primary); }
.tabbar button.is-active {
  background: var(--text-primary);
  color: var(--bg-page);
}
