/* ==========================================================================
   OPULA FUE — Hair Restoration Landing Page
   Brand: Opulence Chicago — luxury medical / premium aesthetic
   Palette: warm cream, deep ink, brushed gold accent, monochrome photo
   ========================================================================== */

/* -------------------- TOKENS -------------------- */
:root {
  /* Type scale (fluid) */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(3rem, 0.5rem + 7vw, 7rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Brand palette — inspired by Opulence Chicago */
  --color-bg: #f6f3ec;          /* warm cream */
  --color-surface: #ffffff;
  --color-surface-2: #efeae0;   /* deeper cream */
  --color-ink: #0e0e0c;         /* near-black */
  --color-ink-soft: #1c1c1a;
  --color-text: #1a1a18;
  --color-text-muted: #5a564f;
  --color-text-faint: #908b80;
  --color-text-inverse: #f6f3ec;
  --color-border: #d9d2c2;
  --color-divider: #e2dccb;

  --color-accent: #a07a3f;       /* warm brushed gold */
  --color-accent-hover: #856330;
  --color-accent-soft: #c9a574;

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 999px;

  /* Transitions */
  --transition: 260ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(20, 18, 14, 0.06);
  --shadow-md: 0 8px 28px rgba(20, 18, 14, 0.10);
  --shadow-lg: 0 20px 60px rgba(20, 18, 14, 0.18);

  /* Layout */
  --content-narrow: 720px;
  --content-default: 1080px;
  --content-wide: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  /* Typography families */
  --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', 'Helvetica Neue', system-ui, sans-serif;
  --font-eyebrow: 'Inter', system-ui, sans-serif;
}

/* -------------------- RESET -------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

img, picture, video, svg { display: block; max-width: 100%; height: auto; }
button { cursor: pointer; background: none; border: none; font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--color-ink);
  text-wrap: balance;
}

p { text-wrap: pretty; max-width: 62ch; }

::selection { background: var(--color-accent); color: var(--color-bg); }

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

a, button, input, textarea, select {
  transition:
    color var(--transition),
    background var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* -------------------- UTILITIES -------------------- */
.container {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: var(--content-narrow); }
.container--default { max-width: var(--content-default); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-eyebrow);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.eyebrow--ink { color: var(--color-ink); }
.eyebrow--light { color: var(--color-accent-soft); }

.section {
  padding-block: clamp(var(--space-16), 9vw, var(--space-32));
}

.section--tight { padding-block: clamp(var(--space-12), 7vw, var(--space-20)); }

.divider-rule {
  display: block;
  width: 48px;
  height: 1px;
  background: var(--color-accent);
  margin-block: var(--space-6);
}

/* -------------------- BUTTONS -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 1rem 2rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  line-height: 1;
}

.btn--primary {
  background: var(--color-ink);
  color: var(--color-bg);
}
.btn--primary:hover {
  background: var(--color-accent);
  color: var(--color-bg);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-ink);
}
.btn--ghost:hover {
  background: var(--color-ink);
  color: var(--color-bg);
}

.btn--ghost-light {
  background: transparent;
  color: var(--color-bg);
  border-color: var(--color-bg);
}
.btn--ghost-light:hover {
  background: var(--color-bg);
  color: var(--color-ink);
}

.btn--block { width: 100%; }

/* -------------------- HEADER -------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(246, 243, 236, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition);
}
.site-header.is-scrolled {
  background: rgba(246, 243, 236, 0.96);
  border-bottom-color: var(--color-divider);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-4);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.brand__mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 1px solid var(--color-ink);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.brand__mark svg { width: 22px; height: 22px; }
.brand__logo {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  object-fit: contain;
}
.brand__logo--inverted { filter: invert(1) brightness(1.05); }
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: var(--color-ink);
}
.brand__tag {
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-phone {
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-ink);
}
.nav-phone:hover { color: var(--color-accent); }

.header-cta {
  padding: 0.75rem 1.5rem;
  font-size: 0.75rem;
}

@media (max-width: 720px) {
  .nav-phone { display: none; }
  .header-cta { padding: 0.65rem 1.1rem; }
  .brand__tag { display: none; }
}

/* -------------------- CINEMATIC HERO (no form) -------------------- */
.hero-cinematic {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--color-text-inverse);
  padding-bottom: clamp(4rem, 10vh, 8rem);
  padding-top: 140px;
}

.hero-cinematic__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-cinematic__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: grayscale(0.35) contrast(1.05) brightness(0.92);
}
.hero-cinematic__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14,14,12,0.55) 0%, rgba(14,14,12,0.25) 30%, rgba(14,14,12,0.85) 100%),
    linear-gradient(90deg, rgba(14,14,12,0.75) 0%, rgba(14,14,12,0.15) 60%, rgba(14,14,12,0) 100%);
}

.hero-cinematic__inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-cinematic__content {
  max-width: 680px;
}

.hero-cinematic__title {
  font-size: var(--text-hero);
  font-size: clamp(2.5rem, 5.5vw, 5.5rem);
  color: var(--color-bg);
  line-height: 1.02;
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
}
.hero-cinematic__title em {
  font-style: italic;
  color: var(--color-accent-soft);
  font-weight: 400;
}

.hero-cinematic__sub {
  font-size: var(--text-lg);
  color: rgba(246, 243, 236, 0.88);
  line-height: 1.5;
  margin-bottom: var(--space-10);
  max-width: 52ch;
}

.hero-cinematic__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  align-items: center;
}

.scroll-cue {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 22px;
  height: 36px;
  border: 1.5px solid rgba(246, 243, 236, 0.6);
  border-radius: 12px;
  display: grid;
  place-items: start center;
  padding-top: 6px;
}
.scroll-cue span {
  width: 2px;
  height: 8px;
  background: rgba(246, 243, 236, 0.8);
  border-radius: 2px;
  animation: scrollHint 1.8s ease-in-out infinite;
}
@keyframes scrollHint {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(8px); opacity: 1; }
}

@media (max-width: 720px) {
  .hero-cinematic { min-height: 92dvh; padding-top: 110px; }
  .scroll-cue { display: none; }
  .hero-cinematic__actions { flex-direction: column; align-items: stretch; }
  .hero-cinematic__actions .cta-btn-primary,
  .hero-cinematic__actions .btn { width: 100%; text-align: center; }
}

/* -------------------- INTRO STORY -------------------- */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.intro-grid__image {
  aspect-ratio: 4/5;
  overflow: hidden;
  position: relative;
}
.intro-grid__image::after {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(160, 122, 63, 0.4);
  pointer-events: none;
}
.intro-grid__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.25) contrast(1.02);
}
.intro-grid__content h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}
.intro-grid__content .divider-rule { margin-inline: 0; }
.intro-grid__content p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: 1.7;
  margin-bottom: var(--space-5);
}
@media (max-width: 880px) {
  .intro-grid { grid-template-columns: 1fr; }
  .intro-grid__image { aspect-ratio: 3/2; max-height: 480px; }
}

/* -------------------- LEGACY HERO (unused, but kept for safety) -------------------- */
.hero {
  position: relative;
  padding-top: 120px;
  padding-bottom: var(--space-24);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.hero__content {
  max-width: 620px;
}

.hero__title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-6);
}
.hero__title em {
  font-style: italic;
  color: var(--color-accent);
}

.hero__sub {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: var(--space-8);
  max-width: 52ch;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6) var(--space-8);
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-divider);
}
.hero__badge {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.hero__badge svg {
  width: 22px;
  height: 22px;
  color: var(--color-accent);
  flex-shrink: 0;
}
.hero__badge-text {
  display: flex;
  flex-direction: column;
}
.hero__badge-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ink);
}
.hero__badge-sub {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

/* Hero form card */
.hero__form-wrap {
  position: relative;
}

.form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.form-card::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid var(--color-accent);
  pointer-events: none;
  opacity: 0.35;
}

.form-card__inner { position: relative; z-index: 1; }

.form-card__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}
.form-card__sub {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-6);
}

.form-grid {
  display: grid;
  gap: var(--space-4);
}
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.field input,
.field select,
.field textarea {
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  font-size: var(--text-sm);
  border-radius: 2px;
  font-family: var(--font-body);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(160, 122, 63, 0.15);
}
.field textarea { resize: vertical; min-height: 100px; }

.form-card .btn--primary { margin-top: var(--space-2); }

.form-card__legal {
  font-size: 0.7rem;
  color: var(--color-text-faint);
  line-height: 1.5;
  margin-top: var(--space-4);
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__form-wrap { order: -1; margin-bottom: var(--space-8); }
  .form-row-2 { grid-template-columns: 1fr; }
}

/* -------------------- TRUST BAR -------------------- */
.trust-bar {
  background: var(--color-ink);
  color: var(--color-bg);
  padding-block: var(--space-8);
}
.trust-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6) var(--space-12);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
}
.trust-item svg {
  width: 20px;
  height: 20px;
  color: var(--color-accent-soft);
  flex-shrink: 0;
}

/* -------------------- SECTION INTRO -------------------- */
.section-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-16);
}
.section-intro h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}
.section-intro p {
  color: var(--color-text-muted);
  font-size: var(--text-lg);
  margin-inline: auto;
}
.section-intro .divider-rule { margin-inline: auto; }

/* -------------------- BEFORE / AFTER -------------------- */
.section--results { background: var(--color-surface-2); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}
@media (max-width: 1100px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-8); } }
@media (max-width: 540px) { .gallery-grid { grid-template-columns: 1fr; } }

.case {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.case:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.case__media {
  position: relative;
  background: var(--color-surface-2);
  overflow: hidden;
}
.case__media img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  transition: transform 600ms ease;
}
.case:hover .case__media img { transform: scale(1.03); }
.case__caption {
  padding: var(--space-5);
  border-top: 1px solid var(--color-border);
}
.case__caption-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--color-ink);
  margin-bottom: 4px;
}
.case__caption-meta {
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.gallery-footnote {
  text-align: center;
  margin-top: var(--space-12);
  color: var(--color-text-faint);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* -------------------- PROCESS (split layout) -------------------- */
.section--process { background: var(--color-bg); }

.process-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.process-image {
  position: sticky;
  top: 100px;
  aspect-ratio: 4/5;
  overflow: hidden;
}
.process-image::after {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(160, 122, 63, 0.45);
  pointer-events: none;
}
.process-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.3) contrast(1.05);
}
.process-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-6);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-divider);
}
.step:last-child { border-bottom: none; padding-bottom: 0; }
.step__num {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  color: var(--color-accent);
  font-style: italic;
  min-width: 70px;
}
.step h3 {
  font-size: 1.6rem;
  margin-bottom: var(--space-3);
}
.step p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: 1.65;
  max-width: 52ch;
}
@media (max-width: 880px) {
  .process-split { grid-template-columns: 1fr; }
  .process-image { position: relative; top: 0; aspect-ratio: 3/2; max-height: 420px; margin-bottom: var(--space-8); }
  .step__num { font-size: 2.4rem; min-width: 56px; }
}

/* -------------------- PHASES (timeline rebuild) -------------------- */
.section--timeline {
  background: var(--color-surface-2);
  position: relative;
  overflow: hidden;
}
.section--timeline .section-intro { margin-bottom: var(--space-10); }

.phases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  max-width: 1180px;
  margin: 0 auto;
}

.phase {
  position: relative;
  background: var(--color-bg);
  border: 1px solid rgba(160, 122, 63, 0.18);
  border-radius: 12px;
  padding: var(--space-7) var(--space-6) var(--space-6);
  box-shadow: 0 10px 30px rgba(14, 14, 12, 0.04);
  transition: transform 0.5s var(--ease-out-expo), box-shadow 0.5s var(--ease-out-expo), border-color 0.5s var(--ease-out-expo);
  display: flex;
  flex-direction: column;
}
.phase::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--space-6);
  right: var(--space-6);
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), rgba(160, 122, 63, 0));
  border-radius: 2px;
}

.phase:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(14, 14, 12, 0.09);
  border-color: rgba(160, 122, 63, 0.4);
}

.phase__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.4rem;
  font-weight: 500;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: var(--space-3);
}

.phase__when {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(14, 14, 12, 0.5);
  margin-bottom: var(--space-3);
}

.phase__title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--color-ink);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-3);
}

.phase__body {
  color: rgba(14, 14, 12, 0.72);
  font-size: 0.97rem;
  line-height: 1.6;
  margin: 0;
}

/* Final phase — gold-filled destination card */
.phase--final {
  background: linear-gradient(150deg, #b08a4f 0%, #8c6731 100%);
  border-color: rgba(160, 122, 63, 0.7);
  box-shadow: 0 16px 44px rgba(160, 122, 63, 0.28);
}
.phase--final::before {
  background: linear-gradient(90deg, rgba(255,255,255,0.6), rgba(255,255,255,0));
}
.phase--final .phase__num { color: #fff; }
.phase--final .phase__when { color: rgba(255, 255, 255, 0.82); }
.phase--final .phase__title { color: #fff; }
.phase--final .phase__body { color: rgba(255, 255, 255, 0.88); }

.timeline__footnote {
  text-align: center;
  margin-top: var(--space-10);
  font-size: 0.95rem;
  color: rgba(14, 14, 12, 0.55);
  font-style: italic;
  max-width: 600px;
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

@media (max-width: 1024px) {
  .phases { grid-template-columns: repeat(2, 1fr); gap: var(--space-5); max-width: 820px; }
  .phase { padding: var(--space-6) var(--space-5) var(--space-5); }
  .phase__num { font-size: 2.1rem; }
  .phase__title { font-size: 1.4rem; }
}

@media (max-width: 640px) {
  .phases { grid-template-columns: 1fr; gap: var(--space-4); max-width: 520px; }
  .phase { padding: var(--space-5) var(--space-5) var(--space-5); }
  .phase__num { font-size: 1.9rem; margin-bottom: var(--space-2); }
  .phase__title { font-size: 1.3rem; }
  .phase__body { font-size: 0.94rem; }
}

/* -------------------- DOCTOR / TEAM -------------------- */
.section--doctor {
  background: var(--color-ink);
  color: var(--color-text-inverse);
}
.section--doctor h2 { color: var(--color-bg); }

.doctor-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
@media (max-width: 900px) { .doctor-grid { grid-template-columns: 1fr; } }

.doctor-portrait {
  aspect-ratio: 4 / 5;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
}
.doctor-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(0.25) contrast(1.08);
}
.doctor-portrait::after {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(201, 165, 116, 0.4);
  pointer-events: none;
}

.doctor-content .eyebrow { color: var(--color-accent-soft); }
.doctor-content h2 { font-size: var(--text-2xl); margin-bottom: var(--space-4); }
.doctor-content .divider-rule { margin-inline: 0; }
.doctor-content > p {
  color: rgba(246,243,236,0.78);
  font-size: var(--text-base);
  margin-bottom: var(--space-6);
}

.credentials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4) var(--space-6);
  margin-top: var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255,255,255,0.15);
}
@media (max-width: 600px) { .credentials { grid-template-columns: 1fr; } }
.credential {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.credential__label {
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent-soft);
}
.credential__value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--color-bg);
  line-height: 1.3;
}

/* -------------------- TESTIMONIALS -------------------- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
@media (max-width: 900px) { .testimonials { grid-template-columns: 1fr; } }

.quote {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: var(--space-8);
  position: relative;
}
.quote::before {
  content: '“';
  position: absolute;
  top: -10px;
  left: var(--space-6);
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--color-accent);
  line-height: 1;
}
.quote__text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--color-ink);
  margin-bottom: var(--space-6);
}
.quote__author {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ink);
}
.quote__meta {
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 2px;
}
.quote__stars {
  color: var(--color-accent);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
}

/* -------------------- CONSULTATION SECTION (conversion moment) -------------------- */
.section--consult {
  background: var(--color-ink);
  color: var(--color-text-inverse);
  position: relative;
  overflow: hidden;
}
.section--consult::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 140%;
  background: radial-gradient(ellipse at center, rgba(160, 122, 63, 0.18), transparent 70%);
  pointer-events: none;
}
.section--consult h2 { color: var(--color-bg); }
.section--consult .divider-rule { margin-inline: 0; background: var(--color-accent-soft); }

.consult-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  position: relative;
  z-index: 1;
}

.consult-copy h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}
.consult-copy > p {
  color: rgba(246, 243, 236, 0.78);
  font-size: var(--text-base);
  line-height: 1.7;
  margin-bottom: var(--space-8);
}

.consult-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.consult-benefits li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-base);
  color: rgba(246, 243, 236, 0.92);
  line-height: 1.4;
}
.consult-benefits svg {
  width: 18px;
  height: 18px;
  color: var(--color-accent-soft);
  flex-shrink: 0;
}

.consult-contact {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: var(--text-base);
  color: rgba(246, 243, 236, 0.6);
}
.consult-contact a {
  color: var(--color-accent-soft);
  font-weight: 500;
  font-size: var(--text-lg);
}
.consult-contact a:hover { color: var(--color-bg); }

.consult-form-wrap { position: relative; }
.consult-form-wrap .form-card {
  background: var(--color-bg);
}

@media (max-width: 880px) {
  .consult-grid { grid-template-columns: 1fr; }
  .consult-copy { order: 1; }
  .consult-form-wrap { order: 2; }
}

/* -------------------- FAQ -------------------- */
.section--faq { background: var(--color-surface-2); }
.faq-list {
  max-width: var(--content-narrow);
  margin: 0 auto;
  border-top: 1px solid var(--color-border);
}
.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: var(--space-6) var(--space-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--color-ink);
  line-height: 1.3;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: var(--font-body);
  font-size: 1.6rem;
  color: var(--color-accent);
  font-weight: 300;
  transition: transform var(--transition);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item__body {
  padding: 0 var(--space-2) var(--space-6);
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: 1.65;
  max-width: 64ch;
}

/* -------------------- FINAL CTA -------------------- */
.section--cta {
  background: var(--color-ink);
  color: var(--color-text-inverse);
  position: relative;
  overflow: hidden;
}
.section--cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(160,122,63,0.18), transparent 60%);
  pointer-events: none;
}
.cta-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}
.cta-inner h2 {
  font-size: var(--text-3xl);
  color: var(--color-bg);
  margin-bottom: var(--space-6);
}
.cta-inner h2 em { color: var(--color-accent-soft); font-style: italic; }
.cta-inner p {
  color: rgba(246,243,236,0.78);
  font-size: var(--text-lg);
  max-width: 56ch;
  margin: 0 auto var(--space-10);
}
.cta-buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}
.cta-btn-primary {
  background: var(--color-accent);
  color: var(--color-bg);
  padding: 1.1rem 2.4rem;
  font-size: var(--text-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 2px;
}
.cta-btn-primary:hover {
  background: var(--color-bg);
  color: var(--color-ink);
  transform: translateY(-1px);
}

/* -------------------- FOOTER -------------------- */
.site-footer {
  background: #0a0a08;
  color: rgba(246,243,236,0.7);
  padding-block: var(--space-16) var(--space-8);
  font-size: var(--text-sm);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; gap: var(--space-8); } }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent-soft);
  margin-bottom: var(--space-4);
}
.footer-col p, .footer-col a { line-height: 1.7; }
.footer-col a:hover { color: var(--color-accent-soft); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--space-6);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: rgba(246,243,236,0.5);
  letter-spacing: 0.05em;
}

/* -------------------- ANIMATIONS --------------------
   Only apply hidden state when JS has loaded (html.js-ready),
   so the page degrades gracefully if JS fails or screenshots
   are taken before scroll events fire.
*/
:root {
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base reveal: gentle rise */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1.1s var(--ease-out-expo), transform 1.1s var(--ease-out-expo);
  will-change: opacity, transform;
}
.js-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* Directional variants */
.js-ready .reveal-left {
  opacity: 0;
  transform: translateX(-48px);
  transition: opacity 1.2s var(--ease-out-expo), transform 1.2s var(--ease-out-expo);
}
.js-ready .reveal-right {
  opacity: 0;
  transform: translateX(48px);
  transition: opacity 1.2s var(--ease-out-expo), transform 1.2s var(--ease-out-expo);
}
.js-ready .reveal-zoom {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 1.2s var(--ease-out-expo), transform 1.4s var(--ease-out-expo);
}
.js-ready .reveal-left.is-visible,
.js-ready .reveal-right.is-visible,
.js-ready .reveal-zoom.is-visible {
  opacity: 1;
  transform: translateX(0) translateY(0) scale(1);
}

/* Image reveal: clip-path mask (cinematic curtain) */
.js-ready .reveal-mask {
  position: relative;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.6s var(--ease-out-expo);
}
.js-ready .reveal-mask.is-visible {
  clip-path: inset(0 0 0 0);
}

/* Stagger children: each child fades up with a delay */
.js-ready .reveal-stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
}
.js-ready .reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}
.js-ready .reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.js-ready .reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.15s; }
.js-ready .reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.25s; }
.js-ready .reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.35s; }
.js-ready .reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.45s; }
.js-ready .reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.55s; }

/* Headline kinetic — words rise individually if wrapped in .kinetic span.word */
.js-ready .kinetic .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(110%);
  transition: opacity 0.9s var(--ease-out-expo), transform 1s var(--ease-out-expo);
}
.js-ready .kinetic.is-visible .word {
  opacity: 1;
  transform: translateY(0);
}
.js-ready .kinetic.is-visible .word:nth-child(1) { transition-delay: 0.05s; }
.js-ready .kinetic.is-visible .word:nth-child(2) { transition-delay: 0.13s; }
.js-ready .kinetic.is-visible .word:nth-child(3) { transition-delay: 0.21s; }
.js-ready .kinetic.is-visible .word:nth-child(4) { transition-delay: 0.29s; }
.js-ready .kinetic.is-visible .word:nth-child(5) { transition-delay: 0.37s; }
.js-ready .kinetic.is-visible .word:nth-child(6) { transition-delay: 0.45s; }
.js-ready .kinetic.is-visible .word:nth-child(7) { transition-delay: 0.53s; }
.js-ready .kinetic.is-visible .word:nth-child(8) { transition-delay: 0.61s; }
.js-ready .kinetic.is-visible .word:nth-child(9) { transition-delay: 0.69s; }
.js-ready .kinetic.is-visible .word:nth-child(10) { transition-delay: 0.77s; }
.kinetic .word-wrap { display: inline-block; overflow: hidden; vertical-align: bottom; }

/* Gold rule that draws in */
.js-ready .divider-rule {
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 1.2s var(--ease-out-expo) 0.3s;
}
.js-ready .section-intro.text-center .divider-rule,
.js-ready .reveal.is-visible .divider-rule,
.js-ready .is-visible.divider-rule {
  transform: scaleX(1);
}
.js-ready .reveal.is-visible .divider-rule { transform-origin: center; }

/* Hero cinematic — ken burns zoom + parallax-ready */
.hero-cinematic__media {
  will-change: transform;
  animation: kenBurns 22s var(--ease-out-quart) infinite alternate;
}
@keyframes kenBurns {
  0%   { transform: scale(1.05) translate3d(0,0,0); }
  100% { transform: scale(1.14) translate3d(-1.2%, -1.5%, 0); }
}

/* Floating gold orbs for ambient depth */
.section--timeline::before,
.section--results::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(201, 165, 116, 0.18) 0%, rgba(201, 165, 116, 0) 65%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
  top: 8%;
  right: -180px;
  animation: floatOrb 18s ease-in-out infinite alternate;
}
.section--results::before {
  top: auto;
  bottom: 10%;
  left: -200px;
  right: auto;
  animation-duration: 22s;
}
@keyframes floatOrb {
  0%   { transform: translate(0, 0) scale(1); opacity: 0.85; }
  100% { transform: translate(-40px, 60px) scale(1.12); opacity: 1; }
}
.section--timeline,
.section--results { position: relative; overflow: hidden; }
.section--timeline > .container,
.section--results > .container { position: relative; z-index: 1; }

/* Smooth flow between sections — soft gradient bleed */
.section + .section { position: relative; }

/* CTA buttons — magnetic shine sweep */
.btn {
  position: relative;
  overflow: hidden;
  transition: transform 0.5s var(--ease-out-expo),
              box-shadow 0.5s var(--ease-out-expo),
              background-color 0.4s var(--ease-soft),
              color 0.4s var(--ease-soft);
}
.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 80%;
  height: 100%;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%);
  transition: left 0.8s var(--ease-out-expo);
  pointer-events: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(14,14,12,0.18); }
.btn:hover::before { left: 130%; }
.btn:active { transform: translateY(0); }

/* Case cards — lift + reveal caption */
.case {
  transition: transform 0.7s var(--ease-out-expo), box-shadow 0.7s var(--ease-out-expo);
  will-change: transform;
}
.case:hover {
  transform: translateY(-8px);
  box-shadow: 0 32px 60px rgba(14,14,12,0.15);
}
.case__media {
  overflow: hidden;
}
.case__media img {
  transition: transform 1s var(--ease-out-expo);
}
.case:hover .case__media img {
  transform: scale(1.04);
}

/* Timeline icons — gentle hover and float-in */
.timeline__graphic {
  transition: transform 0.6s var(--ease-out-expo), box-shadow 0.6s var(--ease-out-expo), border-color 0.6s var(--ease-out-expo);
}
.timeline__item:hover .timeline__graphic {
  transform: scale(1.06) rotate(-2deg);
  border-color: rgba(160, 122, 63, 0.55);
  box-shadow: 0 18px 40px rgba(160, 122, 63, 0.22);
}

/* FAQ — smoother open/close */
details.faq-item {
  transition: background-color 0.4s var(--ease-soft), border-color 0.4s var(--ease-soft);
}
details.faq-item[open] {
  background-color: rgba(160, 122, 63, 0.04);
}
details.faq-item summary {
  transition: color 0.3s var(--ease-soft);
}
details.faq-item:hover summary {
  color: var(--color-accent);
}

/* Process steps — staggered number pulse */
.step {
  transition: transform 0.5s var(--ease-out-expo);
}
.step:hover .step__num {
  transform: translateY(-2px);
  color: var(--color-accent);
}
.step__num { transition: transform 0.4s var(--ease-out-expo), color 0.4s var(--ease-soft); }

/* Doctor portrait — subtle float */
.doctor-portrait {
  transition: transform 0.8s var(--ease-out-expo);
}
.doctor-portrait:hover {
  transform: translateY(-4px);
}

/* Reduce motion accessibility */
@media (prefers-reduced-motion: reduce) {
  .hero-cinematic__media { animation: none; }
  .section--timeline::before,
  .section--results::before { animation: none; }
  .js-ready .reveal,
  .js-ready .reveal-left,
  .js-ready .reveal-right,
  .js-ready .reveal-zoom,
  .js-ready .reveal-mask,
  .js-ready .reveal-stagger > *,
  .js-ready .kinetic .word {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    transition: none !important;
  }
  .btn:hover { transform: none; }
  .case:hover { transform: none; }
  .case:hover .case__media img { transform: none; }
}

/* -------------------- STICKY MOBILE CTA -------------------- */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--color-ink);
  padding: var(--space-3) var(--space-4);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
}
.mobile-cta a {
  display: block;
  text-align: center;
  background: var(--color-accent);
  color: var(--color-bg);
  padding: 0.9rem;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
}
@media (max-width: 720px) {
  .mobile-cta { display: block; }
  body { padding-bottom: 80px; }
  /* Hide sticky bar when consultation form is in view */
  .mobile-cta.is-hidden { transform: translateY(110%); transition: transform 300ms ease; }
}
