/* Clinic landing template — shared styles. Brand colours come from each clinic's config (inline :root). */

:root {
  --ink: #1c1714;
  --ink-2: #241d18;
  --ink-line: rgb(242 236 228 / 0.14);
  --on-ink: #f2ece4;
  --on-ink-muted: #bfb2a5;
  --bone: #f3f0eb;
  --paper: #fbfaf7;
  --text: #241d18;
  --text-muted: #5f5248;
  --line: #ddd4c8;
  --bronze: #b08a66;
  --bronze-deep: #7c5b3e;
  --oak: #c8a27c;
  --wa: #187549;
  --wa-hover: #125c39;

  --font-display: "Urbanist", "Segoe UI", sans-serif;
  --font-text: "Hanken Grotesk", "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --radius: 18px;
  --section-pad: clamp(88px, 11vw, 160px);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--bronze) var(--ink);
}
html:not(.lenis) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-text);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--bronze); color: var(--ink); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--bronze); color: var(--ink);
  padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip:focus { top: 16px; }

.dark { background: var(--ink); color: var(--on-ink); }
.light { background: var(--paper); color: var(--text); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border: 0; border-radius: 999px;
  font: 600 1rem/1 var(--font-text);
  letter-spacing: 0.005em;
  text-decoration: none; cursor: pointer;
  background: var(--bronze); color: var(--ink);
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}
.btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: var(--oak); } }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 0.9375rem; }
.btn-wa { background: var(--wa); color: #fff; }
@media (hover: hover) and (pointer: fine) { .btn-wa:hover { background: var(--wa-hover); } }
.btn-large { min-height: 64px; padding: 0 32px; font-size: 1.125rem; }
.btn-ghost { background: transparent; color: var(--on-ink); border: 1px solid rgb(242 236 228 / 0.28); }
@media (hover: hover) and (pointer: fine) { .btn-ghost:hover { background: rgb(242 236 228 / 0.08); border-color: var(--bronze); } }

/* ---------- Header ---------- */

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: var(--on-ink);
  transition: background-color 240ms ease, box-shadow 240ms ease, transform 400ms var(--ease-out);
}
.site-header.is-solid { background: rgb(28 23 20 / 0.94); box-shadow: 0 1px 0 var(--ink-line); }
@supports (backdrop-filter: blur(1px)) {
  .site-header.is-solid { background: color-mix(in srgb, var(--ink) 78%, transparent); backdrop-filter: saturate(140%) blur(14px); }
}
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none;
  font: 600 1.125rem/1 var(--font-display);
  letter-spacing: -0.01em;
}
.brand img { width: 36px; height: 36px; border-radius: 50%; }
.brand em { font-style: normal; color: var(--bronze); }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { position: relative; text-decoration: none; font-size: 0.9375rem; color: var(--on-ink-muted); transition: color 200ms ease; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--bronze); transform: scaleX(0); transform-origin: left;
  transition: transform 300ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { color: var(--on-ink); }
  .nav a:hover::after { transform: scaleX(1); }
}

/* ---------- Hero: interactive 3D studio ---------- */

.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(60% 65% at 66% 46%, color-mix(in srgb, var(--bronze) 20%, transparent), transparent 70%),
    radial-gradient(40% 40% at 10% 100%, color-mix(in srgb, var(--bronze) 8%, transparent), transparent 70%),
    var(--ink);
  color: var(--on-ink);
}
.hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block;
  cursor: grab;
  touch-action: pan-y;
  opacity: 0; transition: opacity 1200ms ease;
}
.is-dragging .hero-canvas { cursor: grabbing; }
.webgl-ready .hero-canvas { opacity: 1; }
.hero-fallback {
  position: absolute; inset: 0; display: none;
  background-position: right center; background-size: cover;
}
.hero-fallback::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 35%, color-mix(in srgb, var(--ink) 40%, transparent)); }
.no-webgl .hero-fallback { display: block; }
.no-webgl .studio-stage, .no-webgl .studio-modes, .no-webgl .studio-text, .no-webgl .studio-note, .no-webgl .drag-hint { display: none; }

.hero-inner {
  position: relative; z-index: 2;
  min-height: 100vh; min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-rows: 1fr auto;
  padding-top: 96px; padding-bottom: clamp(20px, 3vh, 36px);
  pointer-events: none;
}
.hero-inner > * { pointer-events: auto; }
.hero-copy { align-self: center; padding-bottom: 24px; }
.hero h1 {
  font-size: clamp(2.75rem, 1.3rem + 4.4vw, 5.5rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
  max-width: 10ch;
}
.lede { margin-top: 22px; max-width: 38ch; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); color: var(--on-ink-muted); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-ctas .btn { min-height: 54px; }

/* The studio dock */
.studio {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(240px, 340px);
  grid-template-areas: "modes text stage" "modes note stage";
  align-items: center;
  gap: 6px 28px;
  padding: 14px 16px 14px 14px;
  border: 1px solid var(--ink-line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 55%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
}
.studio-modes { grid-area: modes; display: flex; gap: 6px; }
.mode {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px 0 12px;
  border: 1px solid transparent; border-radius: 999px;
  background: transparent; color: var(--on-ink-muted);
  font: 600 0.9375rem var(--font-text);
  cursor: pointer;
  transition: background-color 220ms ease, color 220ms ease, border-color 220ms ease, transform 160ms var(--ease-out);
}
.mode:active { transform: scale(0.96); }
.mode-n { font: 600 0.75rem var(--font-display); color: var(--bronze); font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) { .mode:hover { color: var(--on-ink); border-color: var(--ink-line); } }
.mode.is-active { background: var(--on-ink); color: var(--ink); }
.mode.is-active .mode-n { color: var(--bronze-deep); }
.studio-text { grid-area: text; font-size: 0.9375rem; color: var(--on-ink); line-height: 1.4; }
.studio-note { grid-area: note; font-size: 0.75rem; color: #9d9083; }
.studio-stage { grid-area: stage; display: flex; align-items: center; gap: 12px; padding-right: 8px; }
.stage-play {
  flex: none; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--ink-line); background: transparent; color: var(--on-ink);
  cursor: pointer; transition: transform 160ms var(--ease-out), border-color 180ms ease, background-color 180ms ease;
}
.stage-play:active { transform: scale(0.92); }
@media (hover: hover) and (pointer: fine) { .stage-play:hover { border-color: var(--bronze); background: rgb(242 236 228 / 0.06); } }
.stage-range { flex: 1; display: flex; }
.stage-range input {
  width: 100%; height: 28px; appearance: none; -webkit-appearance: none; background: transparent; cursor: pointer; --p: 0%;
}
.stage-range { position: relative; flex-direction: column; padding-bottom: 14px; }
.stage-range input::-webkit-slider-runnable-track {
  height: 4px; border-radius: 4px;
  background:
    repeating-linear-gradient(to right, rgb(242 236 228 / 0.35) 0 1px, transparent 1px calc(100% / 24)),
    linear-gradient(to right, var(--bronze) var(--p), rgb(242 236 228 / 0.18) var(--p));
}
.stage-marks {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-between;
  font-size: 0.6875rem; color: var(--on-ink-muted); line-height: 1;
  pointer-events: none;
}
.stage-range input::-moz-range-track { height: 4px; border-radius: 4px; background: rgb(242 236 228 / 0.18); }
.stage-range input::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--bronze); }
.stage-range input::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; margin-top: -8px; border-radius: 50%;
  background: var(--on-ink); border: 4px solid var(--bronze);
  transition: transform 160ms var(--ease-out);
}
.stage-range input:active::-webkit-slider-thumb { transform: scale(1.2); }
.stage-range input::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--on-ink); border: 4px solid var(--bronze); }
.stage-out { flex: none; font-size: 0.8125rem; color: var(--on-ink-muted); font-variant-numeric: tabular-nums; }
.stage-out b { font: 600 1.375rem var(--font-display); color: var(--on-ink); margin-right: 1px; }

.drag-hint {
  position: absolute; z-index: 1;
  right: clamp(24px, 8vw, 140px); top: 26%;
  display: flex; align-items: center; gap: 10px;
  font-size: 0.8125rem; color: var(--on-ink-muted);
  pointer-events: none;
  transition: opacity 500ms ease;
}
.drag-hint span {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgb(242 236 228 / 0.35);
  position: relative;
}
.drag-hint span::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%;
  background: var(--bronze);
  animation: nudge 2.2s var(--ease-in-out) infinite;
}
@keyframes nudge { 0%, 100% { transform: translateX(-8px); } 50% { transform: translateX(8px); } }
.drag-hint.is-hidden { opacity: 0; }

/* ---------- Sections ---------- */

.section { padding-block: var(--section-pad); }
.section-head {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 5vw, 80px); align-items: end;
  margin-bottom: clamp(48px, 6vw, 88px);
  padding-bottom: clamp(36px, 4vw, 56px);
}
.section-head h2 { font-size: clamp(2.5rem, 1.3rem + 4vw, 5rem); max-width: 13ch; letter-spacing: -0.04em; line-height: 0.98; }
.section-head > p { color: var(--text-muted); max-width: 44ch; font-size: 1.125rem; }
.section-head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12px;
  background:
    repeating-linear-gradient(to right, var(--bronze) 0 1px, transparent 1px 72px) bottom / 100% 12px no-repeat,
    repeating-linear-gradient(to right, var(--bronze) 0 1px, transparent 1px 12px) bottom / 100% 5px no-repeat;
  opacity: 0.55; transform-origin: left; transform: scaleX(var(--ruler, 1));
}
@property --ruler { syntax: "<number>"; inherits: true; initial-value: 1; }
.section-head--dark > p, .section-head--dark blockquote p { color: var(--on-ink); }

.split .w, .split-hero .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.split .w > span, .split-hero .w > span { display: inline-block; will-change: transform; }

[data-parallax-wrap] { overflow: hidden; }
.js-motion [data-parallax] { transform: scale(1.14); }
.tilt { transform-style: preserve-3d; transition: transform 500ms var(--ease-out); }
.tilt.is-tilting { transition: transform 120ms linear; }

/* ---------- Booking ---------- */

.booking-section {
  background:
    radial-gradient(50% 60% at 85% 20%, color-mix(in srgb, var(--bronze) 12%, transparent), transparent 70%),
    linear-gradient(var(--ink), var(--ink-2));
}
.booking-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 120px); align-items: center; }
.booking-copy h2 { font-size: clamp(2.75rem, 1.3rem + 4.6vw, 5.5rem); letter-spacing: -0.04em; max-width: 9ch; line-height: 0.96; }
.booking-lede { margin-top: 22px; color: var(--on-ink-muted); max-width: 40ch; font-size: 1.125rem; }
.booking-steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 14px; }
.booking-steps li { display: flex; align-items: center; gap: 14px; color: var(--on-ink); }
.booking-steps b {
  flex: none; display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--bronze); color: var(--bronze);
  font: 600 0.875rem var(--font-display);
}

.booking {
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid var(--ink-line); border-radius: var(--radius);
  background: rgb(255 255 255 / 0.035);
  box-shadow: 0 40px 80px -40px rgb(0 0 0 / 0.6);
  display: grid; gap: 20px;
}
.booking fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.booking legend, .field > span { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--on-ink-muted); margin-bottom: 10px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label, .seg label { position: relative; cursor: pointer; }
.chips input, .seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--ink-line); border-radius: 999px; font-size: 0.9375rem;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 160ms var(--ease-out);
}
.chips label:active span { transform: scale(0.97); }
.chips input:checked + span { background: var(--on-ink); color: var(--ink); border-color: var(--on-ink); }
.chips input:focus-visible + span, .seg input:focus-visible + span { outline: 2px solid var(--bronze); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .chips label:hover input:not(:checked) + span { border-color: rgb(242 236 228 / 0.4); } }
.booking-row { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: end; }
.field input[type="text"] {
  width: 100%; min-height: 50px; padding: 0 16px;
  border: 1px solid var(--ink-line); border-radius: 12px;
  background: rgb(0 0 0 / 0.22); color: var(--on-ink);
  font: 400 1rem var(--font-text); caret-color: var(--bronze);
  transition: border-color 180ms ease;
}
.field input::placeholder { color: #8f8377; }
.field input:focus { outline: none; border-color: var(--bronze); }
.field input[aria-invalid="true"] { border-color: #e08a6d; }
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--ink-line); border-radius: 999px; }
.seg span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border-radius: 999px; font-size: 0.9375rem; transition: background-color 180ms ease, color 180ms ease; }
.seg input:checked + span { background: var(--on-ink); color: var(--ink); }
.field-error { color: #f0a58a; font-size: 0.875rem; margin-top: -6px; }
.booking .btn-wa { width: 100%; min-height: 58px; font-size: 1.0625rem; }

/* ---------- Compare (duo) ---------- */

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); }
.duo-card {
  position: relative;
  padding: clamp(28px, 4vw, 56px);
  border-radius: calc(var(--radius) + 6px);
  background: var(--bone);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 500ms var(--ease-out), box-shadow 500ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .duo-card:hover { transform: translateY(-6px); box-shadow: 0 40px 60px -40px rgb(36 29 24 / 0.45); }
}
.duo-card--alt { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.duo-tag {
  position: absolute; right: clamp(20px, 3vw, 40px); top: clamp(4px, 1vw, 12px);
  font: 600 clamp(6rem, 4rem + 8vw, 11rem)/1 var(--font-display);
  letter-spacing: -0.06em;
  color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--bronze) 60%, transparent);
  pointer-events: none;
}
.duo-card h3 { position: relative; font-size: clamp(2rem, 1.3rem + 2.4vw, 3.25rem); max-width: 9ch; margin-bottom: clamp(28px, 4vw, 48px); }
.duo-card dl { margin: 0; display: grid; }
.spec { display: grid; grid-template-columns: 9rem 1fr; gap: 16px; padding-block: 16px; border-top: 1px solid var(--line); }
.duo-card--alt .spec { border-color: var(--ink-line); }
.spec dt { font-size: 0.875rem; font-weight: 600; color: var(--bronze-deep); }
.duo-card--alt .spec dt { color: var(--bronze); }
.spec dd { margin: 0; }
.link-3d {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 28px; padding: 0;
  border: 0; background: none; cursor: pointer;
  font: 600 1rem var(--font-text); color: inherit;
  text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--bronze) 50%, transparent); text-underline-offset: 0.3em;
}
.link-3d svg { transition: transform 260ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .link-3d:hover svg { transform: translateX(5px); } }
.duo-both { margin-top: 28px; color: var(--text-muted); font-size: 1.0625rem; }

.also {
  margin-top: clamp(56px, 7vw, 88px);
  display: grid; grid-template-columns: minmax(120px, 2fr) minmax(0, 10fr);
  gap: clamp(16px, 3vw, 48px); align-items: baseline;
}
.also h3 { font: 600 0.875rem/1.4 var(--font-text); letter-spacing: 0; color: var(--bronze-deep); }
.also ul {
  list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 0;
  font: 500 clamp(1.25rem, 1rem + 0.9vw, 1.75rem)/1.3 var(--font-display); letter-spacing: -0.02em;
}
.also li:not(:last-child)::after { content: "/"; margin-inline: 0.55em; color: var(--oak); font-weight: 300; }

/* ---------- Treatments list (clinics without the comparison) ---------- */

.treat-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.treat {
  display: grid; grid-template-columns: 4rem 1fr; align-items: baseline; gap: 16px;
  padding: clamp(18px, 2.4vw, 28px) 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 400ms var(--ease-out), color 200ms ease;
}
.treat-n { font: 600 0.9375rem var(--font-display); color: var(--bronze-deep); font-variant-numeric: tabular-nums; }
.treat-name { font: 500 clamp(1.5rem, 1rem + 2vw, 2.5rem)/1.1 var(--font-display); letter-spacing: -0.03em; }
.treat--main .treat-name { font-weight: 600; font-size: clamp(2rem, 1.2rem + 3vw, 3.75rem); }
@media (hover: hover) and (pointer: fine) {
  .treat:hover { padding-left: 12px; color: var(--bronze-deep); }
}

/* ---------- Process: stacking cards ---------- */

.process { background: var(--ink-2); color: var(--on-ink); }
.process blockquote { margin: 0; }
.process blockquote p { font: 500 clamp(1.125rem, 1rem + 0.5vw, 1.375rem)/1.45 var(--font-display); letter-spacing: -0.01em; max-width: 36ch; }
.process cite { display: block; margin-top: 14px; font-style: normal; font-size: 0.875rem; color: var(--bronze); font-weight: 600; }
.stack { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
.stack-card {
  position: sticky; top: calc(110px + var(--i) * 22px);
  display: grid; grid-template-columns: minmax(140px, 4fr) minmax(0, 8fr);
  align-items: center; gap: clamp(20px, 4vw, 64px);
  min-height: clamp(240px, 34vh, 340px);
  padding: clamp(28px, 4vw, 56px);
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(135deg, color-mix(in srgb, var(--ink) 92%, var(--bronze)), var(--ink));
  border: 1px solid var(--ink-line);
  box-shadow: 0 -20px 50px -30px rgb(0 0 0 / 0.7);
  overflow: hidden;
  transform-origin: center top;
}
/* Covered cards dim under an overlay (cheap to animate, keeps text crisp). */
@property --dim { syntax: "<number>"; inherits: false; initial-value: 0; }
.stack-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: var(--ink); opacity: var(--dim, 0); pointer-events: none;
}
.stack-n {
  font: 600 clamp(6rem, 3rem + 10vw, 12rem)/0.8 var(--font-display);
  letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1px var(--bronze);
}
.stack-body h3 { font-size: clamp(1.875rem, 1.2rem + 2.4vw, 3.25rem); margin-bottom: 16px; }
.stack-body p { color: var(--on-ink-muted); font-size: 1.125rem; max-width: 46ch; }
.stack-rule {
  position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
  background: var(--bronze); transform-origin: left; transform: scaleX(calc((var(--i) + 1) / 4));
  opacity: 0.8;
}

/* ---------- About ---------- */

.about-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(40px, 7vw, 120px); align-items: center; }
.about-photo { position: relative; margin: 0; border-radius: calc(var(--radius) + 6px); width: 100%; max-width: 380px; justify-self: end; }
.about-copy .link-arrow { margin-top: 28px; }
.link-arrow--deep { color: var(--bronze-deep); }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 60%; }
.float-tag {
  position: absolute; left: 20px; bottom: 20px;
  padding: 12px 18px; border-radius: 999px;
  background: var(--paper); color: var(--text);
  font: 600 0.9375rem var(--font-display);
  box-shadow: 0 18px 40px -16px rgb(0 0 0 / 0.5);
}
.about-copy h2 { font-size: clamp(2.25rem, 1.3rem + 3.2vw, 4.25rem); letter-spacing: -0.04em; max-width: 14ch; }
.about-copy > p { margin-top: 24px; color: var(--text-muted); font-size: 1.125rem; max-width: 44ch; }
.counters { margin: clamp(36px, 5vw, 56px) 0 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.counters > div { padding: 22px 16px 0 0; }
.counters > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.counters dt { font: 600 clamp(2.25rem, 1.6rem + 2vw, 3.5rem)/1 var(--font-display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.counters dd { margin: 10px 0 0; font-size: 0.9375rem; color: var(--text-muted); }

/* ---------- Instagram rail ---------- */

.insta { overflow: hidden; }
.insta-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 64px); }
.insta-head h2 { font-size: clamp(2.25rem, 1.3rem + 3.2vw, 4.25rem); letter-spacing: -0.04em; max-width: 12ch; }
.insta-rail {
  display: flex; gap: clamp(12px, 1.6vw, 22px);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2));
  padding-bottom: 44px;
  scrollbar-width: none;
  cursor: grab;
}
.insta-rail::-webkit-scrollbar { display: none; }
.insta-rail.is-grabbing { cursor: grabbing; scroll-snap-type: none; }
.insta-card {
  position: relative; flex: none;
  width: clamp(140px, 12vw, 190px);
  border-radius: var(--radius);
  overflow: hidden; scroll-snap-align: start;
  transition: transform 500ms var(--ease-out);
}
.insta-card img { width: 100%; aspect-ratio: var(--card-ratio, 9 / 16); object-fit: cover; transition: transform 700ms var(--ease-out), filter 400ms ease; pointer-events: none; }
.insta-card:nth-child(even) { transform: translateY(32px); }
@media (hover: hover) and (pointer: fine) {
  .insta-card:hover img { transform: scale(1.05); }
  .insta-rail:hover .insta-card:not(:hover) img { filter: brightness(0.6); }
}
.insta-play {
  position: absolute; right: 12px; top: 12px;
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: rgb(0 0 0 / 0.45); color: #fff; backdrop-filter: blur(6px);
}

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; color: var(--bronze);
  text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--bronze) 40%, transparent);
}
.link-arrow::after { content: ""; width: 16px; height: 1px; background: currentColor; transition: width 220ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .link-arrow:hover::after { width: 28px; } }

/* ---------- FAQ ---------- */

.faq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-grid h2 { font-size: clamp(2.25rem, 1.3rem + 3.4vw, 4.5rem); letter-spacing: -0.04em; max-width: 10ch; position: sticky; top: 112px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 0; cursor: pointer;
  font: 600 clamp(1.125rem, 1rem + 0.6vw, 1.5rem)/1.3 var(--font-display); letter-spacing: -0.015em;
  transition: color 200ms ease;
}
@media (hover: hover) and (pointer: fine) { .faq summary:hover { color: var(--bronze-deep); } }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 16px; height: 16px;
  background:
    linear-gradient(var(--bronze-deep), var(--bronze-deep)) center / 16px 1.5px no-repeat,
    linear-gradient(var(--bronze-deep), var(--bronze-deep)) center / 1.5px 16px no-repeat;
  transition: transform 300ms var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq-a { overflow: hidden; }
.faq-a p { padding-bottom: 28px; color: var(--text-muted); max-width: 58ch; font-size: 1.0625rem; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--ink-line); padding-block: 40px 96px; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto auto; gap: 16px 40px; align-items: center; font-size: 0.9375rem; color: var(--on-ink-muted); }
.footer-inner .brand { color: var(--on-ink); }
.footer-inner nav { display: flex; gap: 24px; }
.footer-inner nav a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .footer-inner nav a:hover { color: var(--on-ink); } }
.fine { font-size: 0.8125rem; }

.mobile-cta { display: none; gap: 10px; }
.hero--photo .hero-fallback { display: block; }

/* ---------- Brand light that drifts behind the hero and the booking form ---------- */

.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.aurora span {
  position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--bronze) 26%, transparent), transparent);
  opacity: 0.7; will-change: transform;
  animation: drift 28s var(--ease-in-out) infinite alternate;
}
.aurora span:nth-child(1) { left: 35%; top: -38%; }
.aurora span:nth-child(2) { left: -32%; top: 30%; background: radial-gradient(closest-side, color-mix(in srgb, var(--oak) 18%, transparent), transparent); animation-duration: 34s; animation-delay: -9s; }
.aurora span:nth-child(3) { left: 52%; top: 42%; background: radial-gradient(closest-side, color-mix(in srgb, var(--bronze-deep) 34%, transparent), transparent); animation-duration: 40s; animation-delay: -17s; }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-14%, 10%, 0) scale(1.18); }
  100% { transform: translate3d(12%, -8%, 0) scale(0.9); }
}
.booking-section { position: relative; overflow: hidden; }
.booking-section > .wrap { position: relative; z-index: 1; }

.bone { background: var(--bone); color: var(--text); }

/* ---------- Booking: day chips ---------- */

.days {
  display: flex; gap: 8px; padding: 2px;
  overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity;
  -webkit-mask-image: linear-gradient(to right, #000 85%, transparent);
  mask-image: linear-gradient(to right, #000 85%, transparent);
}
.days::-webkit-scrollbar { display: none; }
.days.is-grabbing { cursor: grabbing; scroll-snap-type: none; }
.days label { position: relative; flex: none; cursor: pointer; scroll-snap-align: start; }
.days input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.days span {
  display: grid; justify-items: center; align-content: center; gap: 3px;
  width: 60px; min-height: 68px; padding: 8px 0;
  border: 1px solid var(--ink-line); border-radius: 14px; line-height: 1.1;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 160ms var(--ease-out);
}
.days span.asap { width: 84px; }
.days small { font-size: 0.6875rem; color: var(--on-ink-muted); text-transform: capitalize; }
.days b { font: 600 1.25rem/1 var(--font-display); }
.days .asap b { font-size: 0.9375rem; }
.days label:active span { transform: scale(0.96); }
.days input:checked + span { background: var(--on-ink); color: var(--ink); border-color: var(--on-ink); }
.days input:checked + span small { color: var(--text-muted); }
.days input:focus-visible + span { outline: 2px solid var(--bronze); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .days label:hover input:not(:checked) + span { border-color: rgb(242 236 228 / 0.4); } }

/* ---------- The visit, as a short film ---------- */

/* Tall section: its stage sticks to the screen while the scroll plays the film (cinema.js). */
.cinema { position: relative; height: calc(var(--shots, 6) * 110vh); background: var(--ink); color: var(--on-ink); }
.cinema-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; --bars: 0; --fade: 0; }
.cinema canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* Letterbox bars, a soft vignette, film grain and the dip to black between shots. */
.cinema-stage::before, .cinema-stage::after {
  content: ""; position: absolute; left: 0; right: 0; z-index: 3; height: 8vh;
  background: #000; transform: scaleY(var(--bars)); pointer-events: none;
}
.cinema-stage::before { top: 0; transform-origin: top; }
.cinema-stage::after { bottom: 0; transform-origin: bottom; }
.cinema-veil {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(rgb(0 0 0 / var(--fade)), rgb(0 0 0 / var(--fade))),
    radial-gradient(120% 90% at 60% 45%, transparent 55%, rgb(0 0 0 / 0.45)),
    linear-gradient(to top, rgb(0 0 0 / 0.6), transparent 42%);
}
.cinema-veil::after {
  content: ""; position: absolute; inset: -50%; opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.6s steps(3) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 33% { transform: translate(-4%, 3%); } 66% { transform: translate(3%, -4%); } 100% { transform: translate(0, 0); } }
.cinema-top {
  position: absolute; z-index: 4; left: var(--gutter); right: var(--gutter); top: calc(8vh + 24px);
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
}
.cinema-top h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); letter-spacing: -0.03em; }
.cinema-count { display: flex; align-items: center; gap: 14px; font: 600 0.875rem var(--font-display); color: var(--on-ink-muted); font-variant-numeric: tabular-nums; }
.cinema-bar { position: relative; width: clamp(80px, 12vw, 180px); height: 2px; background: rgb(242 236 228 / 0.2); overflow: hidden; }
.cinema-bar span { position: absolute; inset: 0; background: var(--bronze); transform-origin: left; transform: scaleX(0); }
.cinema-shots { list-style: none; margin: 0; padding: 0; position: absolute; z-index: 4; left: var(--gutter); bottom: calc(8vh + 32px); width: min(30rem, calc(100% - 2 * var(--gutter))); }
.cinema-shots li {
  position: absolute; left: 0; bottom: 0; width: 100%;
  opacity: 0; transform: translateY(18px); visibility: hidden;
  transition: opacity 500ms var(--ease-out), transform 700ms var(--ease-out), visibility 0s linear 500ms;
}
.cinema-shots li.is-active { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.cinema-n { display: block; font: 600 0.875rem var(--font-display); color: var(--bronze); letter-spacing: 0.04em; margin-bottom: 10px; }
.cinema-shots h3 { font-size: clamp(2rem, 1.2rem + 3vw, 3.75rem); letter-spacing: -0.04em; line-height: 0.98; }
.cinema-shots p { margin-top: 14px; font-size: clamp(1rem, 0.95rem + 0.3vw, 1.1875rem); color: var(--on-ink); max-width: 36ch; text-shadow: 0 1px 12px rgb(0 0 0 / 0.5); }
.cinema-shots .btn { margin-top: 22px; }
.cinema-hint { position: absolute; z-index: 4; right: var(--gutter); bottom: calc(8vh + 32px); font-size: 0.8125rem; color: var(--on-ink-muted); }
.no-3d.cinema { height: auto; }
.no-3d .cinema-stage { position: relative; height: auto; padding: var(--section-pad) 0; }
.no-3d .cinema-shots { position: static; margin: 32px var(--gutter) 0; display: grid; gap: 28px; }
.no-3d .cinema-shots li { position: static; opacity: 1; transform: none; visibility: visible; }
.no-3d .cinema-top { position: static; margin: 0 var(--gutter); }
.no-3d .cinema-hint, .no-3d canvas, .no-3d .cinema-veil { display: none; }

@media (max-width: 760px) {
  .cinema-stage::before, .cinema-stage::after { height: 5vh; }
  .cinema-top { top: calc(5vh + 72px); flex-direction: column; gap: 8px; }
  .cinema-shots { bottom: calc(5vh + 92px); }
  .cinema-hint { display: none; }
}

/* ---------- Brackets vs aligners in 3D ---------- */

.duo-3d {
  position: relative; margin-bottom: clamp(16px, 2vw, 28px);
  border-radius: calc(var(--radius) + 6px); overflow: hidden;
  background: radial-gradient(70% 90% at 50% 45%, color-mix(in srgb, var(--bronze) 16%, var(--ink)), var(--ink));
}
.duo-3d canvas { display: block; width: 100%; height: clamp(280px, 30vw, 420px); cursor: grab; touch-action: pan-y; }
.duo-3d-labels {
  position: absolute; left: 0; right: 0; top: 20px;
  display: grid; grid-template-columns: 1fr 1fr; text-align: center;
  font: 600 clamp(1rem, 0.9rem + 0.4vw, 1.25rem) var(--font-display); color: var(--on-ink);
  pointer-events: none;
}
.duo-3d-note { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font-size: 0.75rem; color: var(--on-ink-muted); pointer-events: none; }

/* ---------- Cutaway tooth ---------- */

.cut-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.cut-copy h2 { font-size: clamp(2.25rem, 1.3rem + 3.2vw, 4.25rem); letter-spacing: -0.04em; max-width: 11ch; }
.cut-lede { margin-top: 20px; color: var(--text-muted); font-size: 1.125rem; max-width: 40ch; }
.cut-modes { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-top: 32px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.cut-mode {
  min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px;
  background: transparent; color: var(--text-muted);
  font: 600 0.9375rem var(--font-text); cursor: pointer;
  transition: background-color 220ms ease, color 220ms ease, transform 160ms var(--ease-out);
}
.cut-mode:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .cut-mode:hover:not(.is-active) { color: var(--text); } }
.cut-mode.is-active { background: var(--ink); color: var(--on-ink); }
.cut-text { margin-top: 20px; min-height: 3.2em; font-size: 1.0625rem; max-width: 42ch; }
.cut-legend { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: 0.875rem; color: var(--text-muted); }
.cut-legend li { display: inline-flex; align-items: center; gap: 8px; }
.cut-legend li[hidden] { display: none; }
.cut-legend span { width: 12px; height: 12px; border-radius: 4px; background: var(--c); box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.14); }
.cut-stage {
  position: relative; border-radius: calc(var(--radius) + 6px); overflow: hidden;
  background: radial-gradient(60% 60% at 50% 42%, var(--paper), color-mix(in srgb, var(--bone) 60%, var(--line)));
}
.cut-stage canvas { display: block; width: 100%; height: clamp(380px, 42vw, 580px); cursor: grab; touch-action: pan-y; }
.cut-note { position: absolute; left: 20px; bottom: 16px; font-size: 0.75rem; color: var(--text-muted); pointer-events: none; }
.no-webgl .cutaway, .no-3d.cut-grid { display: none; }

/* ---------- Process tooth ---------- */

.process-grid.has-tooth { display: grid; grid-template-columns: minmax(0, 1fr) clamp(260px, 25vw, 360px); gap: clamp(20px, 3vw, 44px); align-items: start; }
.process-aside {
  position: sticky; top: 110px; height: min(68vh, 560px);
  border-radius: calc(var(--radius) + 6px); border: 1px solid var(--ink-line); overflow: hidden;
  background: radial-gradient(70% 60% at 50% 42%, color-mix(in srgb, var(--bronze) 18%, var(--ink-2)), var(--ink-2));
}
.process-aside canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.process-step { position: absolute; left: 20px; bottom: 16px; font: 600 0.875rem var(--font-display); color: var(--on-ink-muted); font-variant-numeric: tabular-nums; }
.no-webgl .process-aside, .no-webgl .duo-3d, .no-3d.process-aside, .no-3d.duo-3d { display: none; }
.no-webgl .process-grid.has-tooth { grid-template-columns: 1fr; }

/* ---------- How to get there ---------- */

.visit-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.visit-copy h2 { font-size: clamp(2.25rem, 1.3rem + 3.2vw, 4.25rem); letter-spacing: -0.04em; }
.visit-address { margin-top: 24px; font: 600 clamp(1.375rem, 1.1rem + 1vw, 2rem)/1.2 var(--font-display); letter-spacing: -0.02em; }
.visit-place { margin-top: 6px; color: var(--text-muted); }
.visit-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; }
.visit-map {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: calc(var(--radius) + 6px); background: var(--line);
  box-shadow: 0 40px 70px -40px rgb(0 0 0 / 0.45);
}
.visit-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.06) brightness(1.04); }
/* Tints the grey map with the clinic's colour; clicks pass through to the map. */
.visit-map::after { content: ""; position: absolute; inset: 0; background: var(--bronze); mix-blend-mode: color; opacity: 0.4; pointer-events: none; }

/* ---------- Before / after cases ---------- */

.cases-list { display: grid; gap: 40px; max-width: 820px; }
.case { margin: 0; }
.case-frame { position: relative; overflow: hidden; border-radius: calc(var(--radius) + 6px); background: var(--ink); --x: 50%; }
.case-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.case-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--x)) 0 0); }
.case-line { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 14px rgb(0 0 0 / 0.45); pointer-events: none; }
.case-line::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border-radius: 50%; background: #fff; box-shadow: 0 8px 22px -6px rgb(0 0 0 / 0.5);
}
.case-line::before {
  content: ""; position: absolute; top: 50%; left: 50%; z-index: 1; width: 20px; height: 9px; margin: -4.5px 0 0 -10px;
  background: var(--ink); clip-path: polygon(0 50%, 35% 0, 35% 100%, 0 50%, 100% 50%, 65% 0, 65% 100%, 100% 50%);
}
.case-tag { position: absolute; top: 14px; padding: 6px 12px; border-radius: 999px; background: rgb(0 0 0 / 0.55); color: #fff; font: 600 0.8125rem var(--font-text); backdrop-filter: blur(6px); pointer-events: none; }
.case-tag--a { left: 14px; }
.case-tag--b { right: 14px; }
.case-frame input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; -webkit-appearance: none; appearance: none; }
.case-frame:has(input:focus-visible) { outline: 2px solid var(--bronze); outline-offset: 4px; }
.case figcaption { margin-top: 14px; font-size: 0.9375rem; color: var(--text-muted); }
.case figcaption b { color: var(--text); font-weight: 600; }

/* ---------- Feed: posts in motion ---------- */

.insta-clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 400ms ease; pointer-events: none; }
.insta-card.is-live .insta-clip { opacity: 1; }
.insta-card.is-live img { animation: kenburns 7s var(--ease-in-out) infinite alternate; }
@keyframes kenburns { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.16) translate3d(-3%, -4%, 0); } }
.insta-progress { position: absolute; left: 12px; right: 12px; bottom: 12px; height: 3px; border-radius: 3px; background: rgb(255 255 255 / 0.3); overflow: hidden; opacity: 0; transition: opacity 300ms ease; }
.insta-progress::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.insta-card.is-live .insta-progress { opacity: 1; }
.insta-card.is-live .insta-progress::after { animation: progress 7s linear infinite; }
@keyframes progress { to { transform: scaleX(1); } }

/* ---------- Quick questions ---------- */

@keyframes pop-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
.ask-close {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px;
  border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer;
  transition: background-color 180ms ease;
}
@media (hover: hover) and (pointer: fine) { .ask-close:hover { background: rgb(242 236 228 / 0.1); } }

.ask {
  position: fixed; z-index: 45;
  right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
  pointer-events: none;
}
.ask > * { pointer-events: auto; }
.ask-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 18px 0 14px;
  border: 1px solid var(--ink-line); border-radius: 999px;
  background: var(--ink); color: var(--on-ink);
  font: 600 0.9375rem var(--font-text); cursor: pointer;
  box-shadow: 0 14px 36px -12px rgb(0 0 0 / 0.55);
  transform: translateY(160%); opacity: 0;
  transition: transform 420ms var(--ease-out), opacity 300ms ease, border-color 200ms ease;
}
.ask-toggle svg { color: var(--bronze); }
.ask.is-shown .ask-toggle, .ask.is-open .ask-toggle { transform: none; opacity: 1; }
@media (hover: hover) and (pointer: fine) { .ask-toggle:hover { border-color: var(--bronze); } }
.ask-toggle:active { transform: scale(0.96); }
.ask-panel {
  width: min(360px, calc(100vw - 32px)); max-height: min(540px, calc(100vh - 120px));
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  background: var(--paper); color: var(--text);
  box-shadow: 0 30px 80px -20px rgb(0 0 0 / 0.5);
  transform-origin: bottom right; animation: pop-in 280ms var(--ease-out);
}
.ask-panel[hidden] { display: none; }
.ask-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 10px 10px 18px; background: var(--ink); color: var(--on-ink); }
.ask-head p { font: 600 1rem var(--font-display); }
.ask-log { flex: 1; min-height: 120px; overflow-y: auto; overscroll-behavior: contain; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.ask-msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: 0.9375rem; line-height: 1.45; }
.ask-msg--bot { align-self: flex-start; background: var(--bone); border-bottom-left-radius: 6px; }
.ask-msg--me { align-self: flex-end; background: var(--ink); color: var(--on-ink); border-bottom-right-radius: 6px; }
.ask-msg a { display: inline-block; margin-top: 6px; font-weight: 600; color: var(--wa); }
.ask-suggest { display: flex; gap: 6px; overflow-x: auto; padding: 0 16px 12px; scrollbar-width: none; }
.ask-suggest::-webkit-scrollbar { display: none; }
.ask-suggest button {
  flex: none; min-height: 36px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 999px; background: transparent;
  font: 500 0.8125rem var(--font-text); color: var(--text); white-space: nowrap; cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease;
}
@media (hover: hover) and (pointer: fine) { .ask-suggest button:hover { border-color: var(--bronze-deep); } }
.ask-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.ask-form input { flex: 1; min-width: 0; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--text); font: 400 1rem var(--font-text); }
.ask-form input:focus { outline: none; border-color: var(--bronze-deep); }
.ask-form button { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--ink); color: var(--on-ink); cursor: pointer; }

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  .studio { grid-template-columns: 1fr minmax(220px, 300px); grid-template-areas: "modes stage" "text note"; border-radius: 28px; }
}

@media (max-width: 1080px) {
  .nav { display: none; }
  .header-inner .btn-small { margin-left: auto; }
  .process-grid.has-tooth { grid-template-columns: 1fr; }
  .process-aside { display: none; }
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; padding-top: 84px; }
  .hero-copy { align-self: start; padding-bottom: 0; }
  .studio {
    grid-row: 3;
    grid-template-columns: 1fr; grid-template-areas: "modes" "text" "stage" "note";
    border-radius: 22px; padding: 12px; gap: 10px;
  }
  /* All five stages fit on one row on phones. */
  .studio-modes { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; }
  .mode { flex-direction: column; justify-content: center; gap: 2px; min-height: 52px; padding: 6px 0; border-radius: 14px; font-size: 0.6875rem; letter-spacing: -0.01em; line-height: 1.1; text-align: center; }
  .drag-hint { display: none; }
  .booking-grid, .about-grid, .faq-grid, .duo, .cut-grid, .visit-grid { grid-template-columns: 1fr; }
  .cut-stage canvas { height: 380px; }
  .faq-grid h2 { position: static; }
  .stack-card { grid-template-columns: 1fr; top: calc(84px + var(--i) * 16px); }
  .stack-n { font-size: clamp(4.5rem, 20vw, 7rem); }
}

@media (max-width: 760px) {
  .header-inner { height: 64px; }
  .hide-sm { display: none; }
  .hero h1 { font-size: clamp(2.5rem, 10vw, 3.25rem); max-width: 11ch; }
  .lede { margin-top: 12px; font-size: 1rem; }
  .hero-ctas { margin-top: 18px; }
  .hero-ctas .btn-ghost { display: none; }
  .booking { padding: 18px; }
  .booking-row { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 1fr; }
  .spec { grid-template-columns: 1fr; gap: 4px; }
  .also { grid-template-columns: 1fr; }
  .counters { grid-template-columns: 1fr; }
  .counters > div { padding: 18px 0; }
  .counters > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .insta-card:nth-child(even) { transform: translateY(20px); }
  .footer-inner { grid-template-columns: 1fr; }

  .mobile-cta {
    display: flex; align-items: center; justify-content: center;
    position: fixed; z-index: 40;
    left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom));
    min-height: 54px; border-radius: 999px;
    background: var(--wa); color: #fff; font-weight: 600; text-decoration: none;
    box-shadow: 0 10px 30px -8px rgb(0 0 0 / 0.45);
    transform: translateY(160%); transition: transform 320ms var(--ease-out);
  }
  .mobile-cta.is-visible { transform: none; }
  .mobile-cta:active { transform: scale(0.98); }

  .ask { right: 12px; bottom: calc(max(12px, env(safe-area-inset-bottom)) + 66px); }
  .ask-toggle { width: 50px; padding: 0; }
  .ask-toggle span { display: none; }
  .duo-3d canvas { height: 460px; }
  .duo-3d-labels { display: block; inset: 0; }
  .duo-3d-labels span { position: absolute; left: 0; right: 0; }
  .duo-3d-labels span:first-child { top: 18px; }
  .duo-3d-labels span:last-child { top: 49%; }
  .visit-map { aspect-ratio: 1 / 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .stack-card { position: relative; top: auto; }
  .aurora span, .insta-card.is-live img, .insta-card.is-live .insta-progress::after, .cinema-veil::after { animation: none !important; }
}
