/* ─────────────────────────────────────────────────────────────
   BrightSmile — custom styles beyond Tailwind utilities.
   Brand tokens, Ava panel glow, mic pulse, waveform, transcript
   bubble fade-in, calendar slot highlight, front-desk wave,
   route crossfade.
   ───────────────────────────────────────────────────────────── */

/* Mobile guard: never allow sideways scroll (header/CTA overflow caused
   the clipped "Book Appointment" button on phones). */
html, body { max-width: 100%; overflow-x: hidden; }

:root {
  --brand:        #1E40AF;
  --brand-light:  #3B82F6;
  --brand-glow:   #60A5FA;
  --ink:          #0F172A;
  --ink-muted:    #475569;
  --paper:        #FFFFFF;
  --paper-warm:   #F8FAFC;
  --success:      #10B981;
  --danger:       #EF4444;
  --ring-soft:    rgba(96, 165, 250, 0.35);
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

html, body { height: 100%; }
body { background: var(--paper); color: var(--ink); }

/* ───────── Buttons & nav ───────── */
.cta-primary {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .65rem 1.1rem; border-radius: .75rem;
  background: var(--brand); color: #fff; font-weight: 600;
  box-shadow: 0 8px 22px -10px rgba(30,64,175,.55);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.cta-primary:hover { background: #1d3aa3; transform: translateY(-1px); box-shadow: 0 12px 28px -10px rgba(30,64,175,.65); }

.cta-ghost {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .65rem 1.1rem; border-radius: .75rem;
  background: #fff; color: var(--ink); border: 1px solid #E2E8F0; font-weight: 600;
  transition: border-color .15s ease, background .15s ease;
}
.cta-ghost:hover { border-color: var(--brand-light); background: var(--paper-warm); }

.nav-link { position: relative; transition: color .15s ease; padding: .25rem 0; }
.nav-link:hover, .nav-link.is-active { color: var(--brand); }
.nav-link.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -22px; height: 2px;
  background: var(--brand); border-radius: 2px;
}

/* ───────── Route outlet crossfade ───────── */
.route-outlet { min-height: calc(100vh - 5rem); }
.route-view {
  animation: routeIn .28s cubic-bezier(.21,.74,.34,1) both;
  will-change: opacity, transform;
}
@keyframes routeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* ───────── Hero gradient text ───────── */
.hero-grad {
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-light) 55%, var(--brand-glow) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ───────── Cards ───────── */
.card {
  background: #fff; border: 1px solid #E2E8F0; border-radius: 1.25rem;
  box-shadow: 0 10px 30px -12px rgba(15,23,42,.08), 0 2px 6px -2px rgba(15,23,42,.05);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -16px rgba(15,23,42,.18); border-color: #CBD5E1; }

/* ───────── Booking widget ───────── */
.bw-step-row { display: flex; gap: .75rem; align-items: center; }
.bw-step {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem .85rem; border-radius: 999px;
  font-size: .8rem; font-weight: 600; color: var(--ink-muted);
  background: #F1F5F9; border: 1px solid transparent;
}
.bw-step[data-active="true"] { color: var(--brand); background: #DBEAFE; border-color: #BFDBFE; }
.bw-step .bw-step-num {
  width: 1.25rem; height: 1.25rem; border-radius: 999px; background: #fff;
  display: grid; place-items: center; font-size: .7rem; color: var(--ink);
}
.bw-step[data-active="true"] .bw-step-num { background: var(--brand); color: #fff; }

.bw-service-pill {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .5rem .9rem; border-radius: 999px;
  background: #EFF6FF; color: var(--brand); font-weight: 600; font-size: .85rem;
  border: 1px solid #BFDBFE;
}

/* Calendar grid */
.bw-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .35rem; }
.bw-cal-head { font-size: .7rem; text-align: center; color: var(--ink-muted); padding: .35rem 0; font-weight: 600; }
.bw-cal-cell {
  position: relative; aspect-ratio: 1 / 1; border-radius: .65rem; border: 1px solid transparent;
  display: grid; place-items: center; font-size: .82rem; color: var(--ink); cursor: pointer;
  transition: background .15s ease, transform .15s ease, border-color .15s ease;
}
.bw-cal-cell[data-state="muted"] { color: #CBD5E1; cursor: default; }
.bw-cal-cell[data-state="available"]::after {
  content: ""; position: absolute; bottom: .35rem; width: 4px; height: 4px; border-radius: 999px; background: var(--brand-light);
}
.bw-cal-cell[data-state="available"]:hover { background: #EFF6FF; border-color: #BFDBFE; }
.bw-cal-cell[data-state="focused"] {
  background: #DBEAFE; border-color: var(--brand-light); color: var(--brand);
  animation: pulseFocus 1.6s ease-out 1;
}
.bw-cal-cell[data-state="selected"] {
  background: var(--brand); color: #fff; border-color: var(--brand);
  box-shadow: 0 8px 18px -6px rgba(30,64,175,.5);
  animation: pulseSelect 1.4s ease-out infinite;
}
@keyframes pulseFocus {
  0%   { box-shadow: 0 0 0 0 var(--ring-soft); }
  100% { box-shadow: 0 0 0 14px rgba(96,165,250,0); }
}
@keyframes pulseSelect {
  0%, 100% { box-shadow: 0 8px 18px -6px rgba(30,64,175,.5), 0 0 0 0 rgba(30,64,175,.45); }
  50%      { box-shadow: 0 8px 18px -6px rgba(30,64,175,.5), 0 0 0 8px rgba(30,64,175,0); }
}

/* Times list */
.bw-time {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: .65rem .9rem; border-radius: .65rem;
  background: #fff; border: 1px solid #E2E8F0; font-weight: 600; color: var(--ink);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.bw-time:hover { border-color: var(--brand-light); background: var(--paper-warm); }
.bw-time[data-selected="true"] {
  background: var(--brand); color: #fff; border-color: var(--brand);
  box-shadow: 0 6px 14px -6px rgba(30,64,175,.45);
}
.bw-time[data-selected="true"] .bw-time-check { opacity: 1; transform: scale(1); }
.bw-time-check { opacity: 0; transform: scale(.8); transition: .15s ease; }

/* Summary bar */
.bw-summary {
  display: none; align-items: center; gap: .85rem;
  padding: .85rem 1.1rem; border-radius: .85rem;
  background: linear-gradient(90deg, #ECFDF5 0%, #D1FAE5 100%);
  border: 1px solid #6EE7B7; color: #064E3B; font-weight: 600;
  animation: routeIn .28s ease both;
}
.bw-summary[data-visible="true"] { display: flex; }
.bw-summary .bw-summary-dot { width: .55rem; height: .55rem; border-radius: 999px; background: var(--success); box-shadow: 0 0 0 4px rgba(16,185,129,.18); }

/* Demo banner */
.demo-banner {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #FEF3C7; color: #92400E; border: 1px solid #FDE68A;
  padding: .35rem .7rem; border-radius: 999px; font-size: .72rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
}

/* ───────── Ava panel ───────── */
.ava-panel {
  position: fixed; right: 1.25rem; top: 6rem; width: 380px;
  /* Definite height so the inner flex column resolves and ONLY the transcript
   * scrolls. Capped to the viewport so the panel can never run off-page. */
  height: min(640px, calc(100vh - 7.5rem));
  z-index: 50;
}
@media (max-width: 1024px) { .ava-panel { width: 340px; } }
/* On phones we keep the panel reachable. Collapsed by default — only the
 * mic + status pill peek out. Tap to expand to full panel. */
@media (max-width: 860px) {
  /* Mobile model: the panel is a bottom sheet that ONLY appears once opened.
   * Closed state = the big #ava-mobile-launcher pill. The minimize chevron
   * (closePanel → data-open="false") hides it back to the launcher, so the
   * close button actually works. The old rules keyed off .ava-chips /
   * .ava-footer which don't exist in the DOM — that was the "can't close" bug. */
  .ava-panel:not([data-open="true"]) { display: none; }
  .ava-panel[data-open="true"] {
    display: block;
    right: .5rem; left: .5rem; bottom: .5rem; top: auto;
    width: auto; height: auto;
    max-height: calc(100dvh - 1rem);
  }
  .ava-panel[data-open="true"] .ava-panel-inner { max-height: calc(100dvh - 1rem); }
  .ava-panel[data-open="true"] .ava-transcript { max-height: 38vh; }
  /* Hide the bottom launcher pill while the panel is open. */
  .ava-panel[data-open="true"] ~ #ava-mobile-launcher { display: none !important; }
  /* Bigger, easier tap target for the close chevron on touch. */
  .ava-minimize { padding: .55rem; }
}

.ava-panel-inner {
  position: relative; height: 100%;
  border-radius: 1.4rem; overflow: hidden;
  background: linear-gradient(165deg, #0B1437 0%, #14275C 55%, #1E40AF 100%);
  color: #E2E8F0;
  box-shadow: 0 0 60px -10px rgba(96,165,250,.45), 0 25px 50px -12px rgba(15,23,42,.65);
  display: flex; flex-direction: column;
}
.ava-panel-inner::before {
  content: ""; position: absolute; inset: -1px; border-radius: 1.4rem;
  background: linear-gradient(135deg, rgba(96,165,250,.5), rgba(96,165,250,0) 60%);
  pointer-events: none; mask: linear-gradient(#000, transparent 60%);
}

.ava-header { display: flex; align-items: center; gap: .75rem; padding: 1.1rem 1.15rem .9rem; position: relative; }
.ava-avatar {
  width: 44px; height: 44px; border-radius: 999px; overflow: hidden;
  border: 2px solid rgba(96,165,250,.55); box-shadow: 0 0 0 4px rgba(96,165,250,.15);
}
.ava-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ava-identity { flex: 1; min-width: 0; }
.ava-name { font-family: 'Fraunces', serif; font-weight: 700; font-size: 1.1rem; color: #fff; line-height: 1.1; }
.ava-subtitle { font-size: .72rem; color: rgba(226,232,240,.7); }
.ava-status-pill {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(15,23,42,.55); padding: .3rem .65rem; border-radius: 999px;
  font-size: .68rem; font-weight: 600; color: #DBEAFE;
  border: 1px solid rgba(96,165,250,.25);
}
.ava-status-dot {
  width: .5rem; height: .5rem; border-radius: 999px; background: #94A3B8;
  transition: background .2s ease;
}
.ava-status-dot[data-state="connecting"] { background: #FBBF24; animation: dotPulse 1.2s ease-in-out infinite; }
.ava-status-dot[data-state="listening"]  { background: var(--success); animation: dotPulse 1.4s ease-in-out infinite; }
.ava-status-dot[data-state="thinking"]   { background: #A78BFA; animation: dotPulse .8s ease-in-out infinite; }
.ava-status-dot[data-state="speaking"]   { background: var(--brand-glow); animation: dotPulse .6s ease-in-out infinite; }
.ava-status-dot[data-state="ended"]      { background: #EF4444; }
@keyframes dotPulse { 0%,100%{ box-shadow:0 0 0 0 currentColor; } 50%{ box-shadow:0 0 0 6px rgba(255,255,255,0); } }

.ava-transcript {
  /* min-height:0 is the critical fix — without it this flex child refuses to
   * shrink below its content, so a long chat grows the whole panel off-page
   * instead of scrolling. flex:1 1 auto + min-height:0 = scroll inside a
   * fixed-size card. No rigid min/max-height fighting the layout. */
  flex: 1 1 auto; min-height: 0; overflow-y: auto;
  padding: .35rem 1.15rem .85rem; display: flex; flex-direction: column; gap: .55rem;
  scrollbar-width: thin; scrollbar-color: rgba(96,165,250,.35) transparent;
}
.ava-transcript::-webkit-scrollbar { width: 6px; }
.ava-transcript::-webkit-scrollbar-thumb { background: rgba(96,165,250,.35); border-radius: 999px; }

.ava-bubble {
  max-width: 88%; padding: .55rem .8rem; border-radius: .9rem; font-size: .85rem; line-height: 1.35;
  animation: bubbleIn .25s ease both;
  word-wrap: break-word;
}
@keyframes bubbleIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.ava-bubble--assistant {
  align-self: flex-start; background: rgba(255,255,255,.08); color: #F1F5F9;
  border: 1px solid rgba(255,255,255,.08); border-bottom-left-radius: .25rem;
}
.ava-bubble--user {
  align-self: flex-end; background: var(--brand); color: #fff;
  border-bottom-right-radius: .25rem;
  box-shadow: 0 8px 18px -10px rgba(30,64,175,.7);
}
.ava-bubble--partial { opacity: .65; font-style: italic; }
.ava-tool-chip {
  align-self: flex-start; font-size: .72rem; color: #BFDBFE;
  background: rgba(96,165,250,.12); border: 1px dashed rgba(96,165,250,.35);
  padding: .25rem .55rem; border-radius: .55rem;
  animation: bubbleIn .25s ease both;
}

.ava-waveform {
  width: 100%; height: 48px; padding: 0 1rem; display: block;
}

.ava-quick-actions {
  display: grid; grid-template-columns: 1fr 1fr; gap: .45rem;
  padding: .2rem 1rem .9rem;
}
.ava-chip {
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
  padding: .55rem .6rem; border-radius: .65rem;
  font-size: .76rem; font-weight: 600; color: #DBEAFE;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  transition: background .15s ease, border-color .15s ease, transform .12s ease;
}
.ava-chip:hover { background: rgba(96,165,250,.18); border-color: rgba(96,165,250,.55); }
.ava-chip:active { transform: scale(.97); }

.ava-mic-row {
  display: flex; align-items: center; gap: .85rem;
  /* left padding bumped 1rem -> 2.25rem (~5% of panel width) so the whole
   * mic control sits off the panel's left edge, not crowding it. */
  padding: .35rem 1rem 1.1rem 2.25rem;
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: .9rem;
}
/* Push the caption clear of the mic's animated pulse-ring (scales to ~1.6x,
 * was overlapping "Tap to talk / Powered by TAG AI"). ~15% rightward nudge. */
.ava-mic-caption { margin-left: 1.5rem; }

/* ───────── Graceful open / closed (desktop ≥861px) ─────────
 * Default = closed: only the launcher pill shows. Tapping it opens the
 * panel with a soft scale+fade. A subtle chevron minimizes it back.
 * Mobile (≤860px) keeps its existing bottom-sheet flow untouched. */
.ava-minimize {
  margin-left: .4rem; width: 28px; height: 28px; flex-shrink: 0;
  display: grid; place-items: center; border-radius: 999px;
  color: rgba(226,232,240,.55); background: transparent; cursor: pointer;
  transition: color .15s ease, background .15s ease;
}
.ava-minimize:hover { color: #fff; background: rgba(255,255,255,.08); }

.ava-launcher { display: none; }

@media (min-width: 861px) {
  .ava-panel {
    transition: opacity .28s ease, transform .28s cubic-bezier(.22,1,.36,1);
  }
  .ava-panel:not([data-open="true"]) {
    opacity: 0; transform: translateY(14px) scale(.96);
    pointer-events: none;
  }
  .ava-panel[data-open="true"] { opacity: 1; transform: none; }

  .ava-launcher {
    position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 49;
    display: inline-flex; align-items: center; gap: .55rem;
    padding: .7rem 1.15rem .7rem .85rem; border-radius: 999px; cursor: pointer;
    color: #fff; font-weight: 700; font-size: .92rem; letter-spacing: .01em;
    background: linear-gradient(135deg, var(--brand-light,#3b82f6) 0%, var(--brand,#1e40af) 100%);
    box-shadow: 0 14px 32px -10px rgba(30,64,175,.7);
    transition: opacity .26s ease, transform .26s cubic-bezier(.22,1,.36,1), box-shadow .2s ease;
  }
  .ava-launcher:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 18px 38px -10px rgba(30,64,175,.8); }
  .ava-launcher-ic { position: relative; z-index: 1; }
  .ava-launcher-pulse {
    position: absolute; inset: 0; border-radius: 999px;
    animation: launcherPulse 2.4s ease-out infinite;
  }
  @keyframes launcherPulse {
    0%   { box-shadow: 0 0 0 0 rgba(96,165,250,.5); }
    70%  { box-shadow: 0 0 0 14px rgba(96,165,250,0); }
    100% { box-shadow: 0 0 0 0 rgba(96,165,250,0); }
  }
  .ava-panel[data-open="true"] ~ .ava-launcher {
    opacity: 0; transform: scale(.7) translateY(10px); pointer-events: none;
  }
}

/* ───────── Streaming glyph glide — the "magical" letter reveal ─────────
 * Each transcribed letter materializes: blur-in + rise + settle, cascaded by
 * a per-glyph --i index so words assemble like they glide onto the screen.
 * While the line is still partial (being transcribed) a soft skeleton
 * shimmer sweeps across the bubble to signal it is live. */
.ava-glyph {
  display: inline;
  white-space: pre-wrap;          /* keep spaces/newlines while spanning */
  animation: avaGlyphIn .42s cubic-bezier(.22,1,.36,1) both;
  animation-delay: calc(var(--i, 0) * 24ms);
}
@keyframes avaGlyphIn {
  0%   { opacity: 0; filter: blur(6px); transform: translateY(.22em) scale(.96); }
  60%  { opacity: 1; filter: blur(0); }
  100% { opacity: 1; filter: blur(0); transform: none; }
}
/* Skeleton sweep only while the line is still being transcribed.
 * A pseudo-element overlay — never clips the text, stays fully legible. */
.ava-bubble--partial { position: relative; overflow: hidden; }
.ava-bubble--partial::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 35%,
    rgba(255,255,255,.18) 50%, transparent 65%);
  background-size: 220% 100%;
  animation: avaSkeletonSweep 1.25s linear infinite;
}
@keyframes avaSkeletonSweep {
  from { background-position: 180% 0; }
  to   { background-position: -40% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ava-glyph { animation: none; }
  .ava-bubble--partial::after { animation: none; display: none; }
  .ava-panel, .ava-launcher { transition: none; }
}

.ava-mic-btn {
  position: relative; width: 62px; height: 62px; border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-light) 0%, var(--brand) 100%);
  color: #fff; display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 12px 28px -10px rgba(30,64,175,.85), 0 0 0 0 rgba(96,165,250,.55);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  flex-shrink: 0;
}
.ava-mic-btn:hover { transform: scale(1.04); }
.ava-mic-btn[data-state="listening"] {
  background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
}
.ava-mic-btn[data-state="speaking"] {
  background: linear-gradient(135deg, var(--brand-glow) 0%, var(--brand-light) 100%);
}
.ava-mic-btn[data-state="off"] .ava-mic-ring { display: none; }
.ava-mic-ring {
  position: absolute; inset: -6px; border-radius: 999px;
  border: 2px solid var(--brand-glow); opacity: 0;
  animation: micRing 1.8s ease-out infinite;
}
.ava-mic-ring--2 { animation-delay: .9s; }
@keyframes micRing {
  0%   { transform: scale(.85); opacity: .7; }
  100% { transform: scale(1.6);  opacity: 0; }
}

.ava-mic-caption .ava-mic-title { font-weight: 600; color: #F8FAFC; font-size: .9rem; }
.ava-mic-caption .ava-mic-sub   { font-size: .7rem; color: rgba(226,232,240,.6); }

/* ───────── Front-desk toast ───────── */
.front-desk-toast {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 60;
  display: inline-flex; align-items: center; gap: .85rem;
  padding: .85rem 1.1rem .85rem 1rem; border-radius: 1rem;
  background: linear-gradient(135deg, #0B1437 0%, #1E40AF 100%);
  color: #fff; overflow: hidden;
  box-shadow: 0 18px 40px -12px rgba(15,23,42,.55);
  animation: routeIn .3s ease both;
}
.front-desk-toast[hidden] { display: none !important; }
.fd-dot { width: .55rem; height: .55rem; border-radius: 999px; background: var(--success); box-shadow: 0 0 0 4px rgba(16,185,129,.25); animation: dotPulse 1.4s ease-in-out infinite; }
.fd-phone { color: var(--brand-glow); }
.fd-title { font-weight: 700; font-size: .9rem; }
.fd-meta  { font-size: .75rem; color: rgba(219,234,254,.85); }
.fd-end {
  background: var(--danger); color: #fff; font-weight: 600;
  padding: .45rem .8rem; border-radius: .65rem; font-size: .78rem;
}
.fd-wave {
  position: absolute; left: -30%; bottom: 0; width: 160%; height: 6px;
  background: linear-gradient(90deg, transparent, rgba(96,165,250,.55), transparent);
  animation: fdWave 2.4s linear infinite;
}
@keyframes fdWave { from { transform: translateX(-30%); } to { transform: translateX(30%); } }

/* ───────── Highlight pulse (agent → highlight tool) ───────── */
.bs-highlight {
  position: relative; animation: bsGlow 1.2s ease-in-out infinite;
  border-radius: 1rem;
}
@keyframes bsGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(96,165,250,.65); }
  50%      { box-shadow: 0 0 0 12px rgba(96,165,250,0); }
}

/* ───────── Misc helpers ───────── */
.section-pad { padding: 4rem 1.5rem; }
@media (min-width: 768px) { .section-pad { padding: 5.5rem 2.5rem; } }

.star-row { display: inline-flex; align-items: center; gap: .25rem; color: #F59E0B; }
.star-row svg { width: 16px; height: 16px; fill: currentColor; }

.feature-icon {
  width: 48px; height: 48px; border-radius: 1rem;
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  color: var(--brand); display: grid; place-items: center;
}

/* Service cards */
.service-card .price { color: var(--brand); font-weight: 700; }
.service-card .duration { color: var(--ink-muted); font-size: .8rem; }

/* Team cards */
.team-card-photo { aspect-ratio: 4 / 5; border-radius: 1.25rem; overflow: hidden; background: #E2E8F0; }
.team-card-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ═══════════════════════════════════════════════════════════════════════
   CINEMATIC HOME — scoped to .cine only. Active Theory motion ·
   Lubezki luminous single-breath · Ive restraint. Touches no other route.
   ═══════════════════════════════════════════════════════════════════════ */
.cine { --cine-ink:#0A1020; --cine-line:rgba(10,16,32,.10); }
.route-view.cine { animation: none; }                /* choreography owns it */
.cine ::selection { background: rgba(30,64,175,.22); }

/* Shared rhythm */
.cine-kicker {
  display:inline-block; font-family:'Inter',sans-serif; font-weight:600;
  font-size:.72rem; letter-spacing:.22em; text-transform:uppercase;
  color:var(--brand); padding-bottom:.9rem;
}
.cine-kicker.cine-center { display:block; text-align:center; }
.cine-h2 {
  font-family:'Fraunces',serif; font-weight:600;
  font-size:clamp(1.9rem,4.4vw,3.3rem); line-height:1.07;
  letter-spacing:-.018em; color:var(--cine-ink); max-width:18ch;
}
.cine-muted { color:var(--ink-muted); }

/* The one signature motion: a slow, confident breath in. */
.cine-r { opacity:0; transform:translateY(26px); filter:blur(6px); }
.route-view.cine .cine-r {
  animation:cineBreath 1.05s cubic-bezier(.16,.78,.28,1) forwards;
  animation-delay:var(--d,0s);
}
@keyframes cineBreath {
  to { opacity:1; transform:none; filter:blur(0); }
}
/* Visible by default. Only the explicitly-armed state hides them, so a
   JS/timing failure can never leave the page blank. */
.cine-reveal {
  transition:opacity 1s cubic-bezier(.16,.78,.28,1),
             transform 1s cubic-bezier(.16,.78,.28,1);
}
.route-view.cine.cine-armed .cine-reveal { opacity:0; transform:translateY(40px); }
.route-view.cine.cine-armed .cine-reveal.is-in { opacity:1; transform:none; }
@media (prefers-reduced-motion:reduce) {
  .cine-r,.cine-reveal { opacity:1!important; transform:none!important; filter:none!important; animation:none!important; }
}

/* ── ACT I — hero ───────────────────────────────────────────────────── */
.cine-hero {
  position:relative; min-height:100vh; min-height:100svh;
  display:flex; align-items:center; overflow:hidden; isolation:isolate;
  background:#070C18;
  /* True edge-to-edge: break out of any constrained parent, both sides. */
  width:100vw; max-width:100vw;
  margin-left:calc(50% - 50vw); margin-right:calc(50% - 50vw);
}
.cine-hero-img, .cine-hero-media {
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  z-index:-3; filter:saturate(.72) brightness(.6) contrast(1.05);
  transform:scale(1.08); transform-origin:60% 40%;
  animation:cineKen 20s ease-out forwards;
}
@keyframes cineKen { to { transform:scale(1); } }
.cine-hero-light {
  position:absolute; inset:0; z-index:-2;
  background:
    radial-gradient(80% 60% at 22% 42%, rgba(96,165,250,.22), transparent 60%),
    radial-gradient(70% 70% at 78% 80%, rgba(30,64,175,.30), transparent 62%),
    linear-gradient(180deg, rgba(7,12,24,.30) 0%, rgba(7,12,24,.72) 60%, rgba(7,12,24,.92) 100%);
}
.cine-hero-grain {
  position:absolute; inset:0; z-index:-1; opacity:.05; mix-blend-mode:overlay;
  background-image:radial-gradient(rgba(255,255,255,.7) .5px, transparent .5px);
  background-size:3px 3px;
}
.cine-hero-inner {
  width:min(92vw,1180px); margin:0 auto; padding:7rem 1.5rem;
  color:#EAF0FF;
}
@media (min-width:1180px){ .cine-hero-inner{ padding-right:clamp(0px,calc(420px - 6vw),420px); } }
.cine-eyebrow {
  display:flex; align-items:center; gap:.8rem; flex-wrap:wrap;
  font-family:'Inter',sans-serif; font-size:.8rem; font-weight:500;
  letter-spacing:.14em; text-transform:uppercase; color:rgba(234,240,255,.72);
}
.cine-eyebrow .cine-sep { color:rgba(234,240,255,.30); }
.cine-rate { color:#fff; font-weight:700; }
.cine-rate em { color:var(--brand-glow); font-style:normal; margin-left:.15em; }
.cine-display {
  margin:1.6rem 0 0; font-family:'Fraunces',serif; font-weight:600;
  font-size:clamp(3rem,9.4vw,7.6rem); line-height:1.02;
  letter-spacing:-.028em; color:#fff;
}
.cine-display .cine-line { display:block; overflow:visible; }
.cine-display .cine-accent {
  font-style:italic; font-weight:600;
  background:linear-gradient(100deg,#9DC1FF 0%,#60A5FA 45%,#3B82F6 100%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
  /* Italic serif descender room — without this the 'g' tail in "Brighter"
   * is clipped by the gradient-clip paint box (the so-called "AI website"
   * bug is just a tight line-height + clipped descender). */
  padding-bottom:.14em;
}
.cine-lede {
  margin:1.7rem 0 0; max-width:34ch;
  font-size:clamp(1.05rem,1.5vw,1.32rem); line-height:1.55;
  color:rgba(234,240,255,.80);
}
.cine-cta { display:flex; flex-wrap:wrap; gap:.9rem; margin-top:2.4rem; }
.cine-btn {
  display:inline-flex; align-items:center; gap:.6rem;
  padding:.95rem 1.6rem; border-radius:999px;
  font-family:'Inter',sans-serif; font-weight:600; font-size:.95rem;
  cursor:pointer; transition:transform .35s cubic-bezier(.16,.78,.28,1),
    background .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.cine-btn--solid {
  background:#fff; color:#0A1020; border:1px solid #fff;
  box-shadow:0 18px 50px -18px rgba(0,0,0,.6);
}
.cine-btn--solid:hover { transform:translateY(-2px); box-shadow:0 26px 60px -18px rgba(96,165,250,.55); }
.cine-btn--solid svg { transition:transform .35s cubic-bezier(.16,.78,.28,1); }
.cine-btn--solid:hover svg { transform:translateX(4px); }
.cine-btn--ghost {
  background:transparent; color:#EAF0FF; border:1px solid rgba(234,240,255,.32);
}
.cine-btn--ghost:hover { border-color:#EAF0FF; background:rgba(234,240,255,.06); }
.cine-ava-hint {
  display:flex; align-items:center; gap:.7rem; margin-top:2.6rem;
  max-width:48ch; font-size:.95rem; color:rgba(234,240,255,.78);
  cursor:pointer; width:fit-content;
}
.cine-ava-hint strong { color:#fff; font-weight:600; }
.cine-ava-hint:hover { color:#fff; }
.cine-ava-hint svg { color:var(--brand-glow); transition:transform .3s ease; }
.cine-ava-hint:hover svg { transform:translateX(5px); }
.cine-ava-pulse {
  width:.6rem; height:.6rem; border-radius:999px; flex-shrink:0;
  background:var(--brand-glow); box-shadow:0 0 0 0 rgba(96,165,250,.6);
  animation:cinePulse 2.4s ease-out infinite;
}
@keyframes cinePulse {
  0%{ box-shadow:0 0 0 0 rgba(96,165,250,.55);} 70%{ box-shadow:0 0 0 14px rgba(96,165,250,0);} 100%{ box-shadow:0 0 0 0 rgba(96,165,250,0);}
}
.cine-scroll-cue {
  position:absolute; left:50%; bottom:2rem; transform:translateX(-50%);
  display:flex; flex-direction:column; align-items:center; gap:.6rem;
  font-family:'Inter',sans-serif; font-size:.68rem; letter-spacing:.28em;
  text-transform:uppercase; color:rgba(234,240,255,.5);
}
.cine-scroll-cue i {
  width:1px; height:42px;
  background:linear-gradient(180deg,rgba(234,240,255,.6),transparent);
  animation:cineDrop 2.2s ease-in-out infinite;
}
@keyframes cineDrop { 0%,100%{ transform:scaleY(.4); opacity:.4; } 50%{ transform:scaleY(1); opacity:1; } }

/* ── ACT II — proof ─────────────────────────────────────────────────── */
.cine-proof {
  width:min(92vw,1180px); margin:0 auto;
  padding:clamp(5rem,11vw,9rem) 1.5rem;
  display:flex; align-items:center; gap:clamp(2rem,6vw,5rem);
  border-bottom:1px solid var(--cine-line); flex-wrap:wrap;
}
.cine-proof-figure { display:flex; flex-direction:column; gap:.6rem; }
.cine-proof-num {
  font-family:'Fraunces',serif; font-weight:600;
  font-size:clamp(5rem,16vw,11rem); line-height:.8;
  letter-spacing:-.04em; color:var(--cine-ink);
}
.cine-proof-stars .star-row svg { width:1.4rem; height:1.4rem; fill:var(--brand); }
.cine-proof-text { flex:1; min-width:16rem; }
.cine-proof-text p {
  font-family:'Fraunces',serif; font-weight:600;
  font-size:clamp(1.4rem,3vw,2.3rem); line-height:1.18;
  letter-spacing:-.015em; color:var(--cine-ink); max-width:22ch;
}
.cine-proof-text p.cine-muted {
  font-family:'Inter',sans-serif; font-weight:400;
  font-size:1.02rem; color:var(--ink-muted); margin-top:1rem; letter-spacing:0;
}

/* ── ACT III — services index ───────────────────────────────────────── */
.cine-index { width:min(92vw,1180px); margin:0 auto; padding:clamp(4rem,9vw,7rem) 1.5rem; }
.cine-index-head { margin-bottom:clamp(2rem,5vw,3.5rem); }
.cine-index-list { list-style:none; margin:0; padding:0; border-top:1px solid var(--cine-line); }
.cine-row {
  display:grid; grid-template-columns:auto 1fr auto auto; align-items:center;
  gap:clamp(1rem,3vw,2.5rem); padding:clamp(1.4rem,3vw,2.1rem) .5rem;
  border-bottom:1px solid var(--cine-line); cursor:pointer;
  transition:padding-left .4s cubic-bezier(.16,.78,.28,1), background .3s ease;
}
.cine-row:hover, .cine-row:focus-visible {
  background:linear-gradient(90deg,rgba(30,64,175,.045),transparent 70%);
  padding-left:1.4rem; outline:none;
}
.cine-row-no {
  font-family:'Inter',sans-serif; font-size:.78rem; font-weight:600;
  color:var(--brand); letter-spacing:.05em;
}
.cine-row-name {
  font-family:'Fraunces',serif; font-weight:600;
  font-size:clamp(1.3rem,2.6vw,2rem); letter-spacing:-.015em; color:var(--cine-ink);
}
.cine-row-meta { font-family:'Inter',sans-serif; font-size:.95rem; color:var(--ink-muted); white-space:nowrap; }
.cine-row-meta .price { color:var(--brand); font-weight:700; }
.cine-row-meta em { font-style:normal; opacity:.7; }
.cine-row-arr { color:var(--cine-ink); opacity:0; transform:translate(-6px,6px); transition:.35s cubic-bezier(.16,.78,.28,1); }
.cine-row:hover .cine-row-arr, .cine-row:focus-visible .cine-row-arr { opacity:1; transform:none; }

/* ── ACT IV — the dentist ───────────────────────────────────────────── */
.cine-doctor {
  width:min(92vw,1180px); margin:0 auto; padding:clamp(4rem,9vw,7rem) 1.5rem;
  display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1fr);
  gap:clamp(2.5rem,7vw,6rem); align-items:center;
}
.cine-portrait { margin:0; }
.cine-portrait-frame {
  position:relative; aspect-ratio:4/5; border-radius:1.5rem; overflow:hidden;
  background:linear-gradient(165deg,#0B1437 0%,#14275C 55%,#1E40AF 100%);
  box-shadow:0 40px 90px -40px rgba(10,16,32,.55);
}
.cine-portrait-mono {
  position:absolute; inset:0; display:grid; place-items:center;
  font-family:'Fraunces',serif; font-weight:600;
  font-size:clamp(7rem,17vw,15rem); line-height:1;
  color:rgba(255,255,255,.13); letter-spacing:-.04em; user-select:none;
}
.cine-portrait-frame img {
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  transition:opacity .6s ease;
}
.cine-portrait-frame img.cine-img-failed { opacity:0; }
.cine-portrait-frame::after {
  content:""; position:absolute; inset:0; pointer-events:none;
  background:radial-gradient(60% 50% at 30% 20%, rgba(96,165,250,.22), transparent 60%);
}
.cine-portrait figcaption {
  margin-top:1rem; font-family:'Inter',sans-serif; font-size:.82rem;
  letter-spacing:.06em; color:var(--ink-muted); text-transform:uppercase;
}
.cine-bio {
  margin:0; font-family:'Fraunces',serif; font-weight:600; font-style:italic;
  font-size:clamp(1.5rem,3.4vw,2.5rem); line-height:1.28;
  letter-spacing:-.015em; color:var(--cine-ink);
}
.cine-doctor-meta {
  display:flex; gap:1.5rem; flex-wrap:wrap; margin:1.8rem 0 2rem;
  font-family:'Inter',sans-serif; font-size:.95rem; color:var(--cine-ink);
}
.cine-doctor .cine-btn--solid { background:var(--brand); color:#fff; border-color:var(--brand); box-shadow:0 16px 40px -16px rgba(30,64,175,.6); }
.cine-doctor .cine-btn--solid:hover { background:#1d3aa3; }
.cine-doctor .cine-btn--ghost { color:var(--cine-ink); border-color:var(--cine-line); }
.cine-doctor .cine-btn--ghost:hover { border-color:var(--brand); background:#EFF6FF; }

/* ── ACT V — voices ─────────────────────────────────────────────────── */
.cine-voices {
  width:min(92vw,1180px); margin:0 auto; padding:clamp(4rem,9vw,7rem) 1.5rem;
  border-top:1px solid var(--cine-line);
}
.cine-quotes {
  display:grid; grid-template-columns:repeat(3,1fr);
  gap:clamp(2rem,5vw,4rem); margin-top:2.5rem;
}
.cine-quote { margin:0; }
.cine-quote blockquote {
  margin:0; font-family:'Fraunces',serif; font-weight:600;
  font-size:clamp(1.15rem,1.7vw,1.5rem); line-height:1.4;
  letter-spacing:-.01em; color:var(--cine-ink);
}
.cine-quote figcaption {
  margin-top:1.2rem; font-family:'Inter',sans-serif; font-size:.85rem;
  font-weight:600; letter-spacing:.06em; color:var(--brand); text-transform:uppercase;
}

/* ── ACT VI — booking frame ─────────────────────────────────────────── */
.cine-booking {
  width:min(92vw,1180px); margin:0 auto; padding:clamp(4rem,9vw,7rem) 1.5rem 5rem;
  border-top:1px solid var(--cine-line);
}
.cine-booking-head { margin-bottom:clamp(2rem,5vw,3rem); }

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width:900px){
  .cine-doctor { grid-template-columns:1fr; }
  .cine-quotes { grid-template-columns:1fr; gap:2.5rem; }
  .cine-row { grid-template-columns:auto 1fr auto; }
  .cine-row-arr { display:none; }
  .cine-hero-inner { padding:6rem 1.4rem; }
}
@media (max-width:560px){
  .cine-row { grid-template-columns:1fr; gap:.4rem; }
  .cine-row-meta { white-space:normal; }
}
