/* ==========================================================================
   Dr Karan Singh — Oral Surgery & Dental Implants
   Design system: warm vermillion accent, zinc neutrals, grotesk + serif italic
   ========================================================================== */

:root {
  --ink: #111111;
  --zinc-900: #18181b;
  --zinc-800: #27272a;
  --zinc-700: #3f3f46;
  --zinc-600: #52525b;
  --zinc-500: #71717a;
  --zinc-400: #a1a1aa;
  --zinc-300: #d4d4d8;
  --zinc-200: #e4e4e7;
  --zinc-100: #f4f4f5;
  --zinc-50: #fafafa;
  --white: #ffffff;

  --accent: #fc5f2b;
  --accent-600: #f7861e;
  --accent-text: #c2410c; /* accessible accent for small text on white */
  --peach-300: #fed7aa;
  --peach-200: #fdba74;
  --peach-100: #ffedd5;
  --cream: #fff6ea;
  --green: #26936b;

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --radius-sm: 0.75rem;
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --pill: 999px;

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --max: 1280px;
  --section: clamp(4.5rem, 10vw, 8rem);
  --header-h: 72px;

  --shadow-soft: 0 1px 2px rgba(17, 17, 17, 0.04), 0 8px 24px -8px rgba(17, 17, 17, 0.08);
  --shadow-lift: 0 2px 4px rgba(17, 17, 17, 0.04), 0 24px 48px -16px rgba(17, 17, 17, 0.16);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--peach-300); color: var(--ink); }

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

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--ink); color: var(--white); padding: 0.75rem 1.25rem; border-radius: var(--pill);
}
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Layout ----------------------------------------------------------------- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--grey { background: var(--zinc-50); }
.section--cream { background: var(--cream); }
.section--dark { background: var(--ink); color: var(--white); }
.section--dark .lead, .section--dark .muted { color: var(--zinc-400); }

.stack.stack > * + * { margin-top: var(--stack, 1rem); }
.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }

.split {
  display: grid; gap: clamp(2.5rem, 6vw, 6rem); align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 960px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-left { grid-template-columns: 1.15fr 0.85fr; }
  .split--wide-right { grid-template-columns: 0.85fr 1.15fr; }
  .split--top { align-items: start; }
}

/* Typography ------------------------------------------------------------- */
.display, h1, .h1 {
  font-weight: 500;
  font-size: clamp(2.6rem, 6.4vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}
h2, .h2 {
  font-weight: 500;
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}
h3, .h3 {
  font-weight: 500;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
h4, .h4 { font-weight: 500; font-size: 1.0625rem; line-height: 1.3; letter-spacing: -0.01em; }

.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.accent { color: var(--accent); }
.lead {
  font-size: clamp(1.075rem, 1.4vw, 1.25rem);
  line-height: 1.55;
  color: var(--zinc-600);
  max-width: 38rem;
  letter-spacing: -0.005em;
}
.muted { color: var(--zinc-500); }
.small { font-size: 0.875rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--zinc-600);
}
.eyebrow::before {
  content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: var(--accent); flex: none;
}
.section--dark .eyebrow { color: var(--zinc-400); }

.section-head { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); max-width: 48rem; }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head--row {
  max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.5rem 3rem;
}
.section-head--row > div { display: grid; gap: 1.25rem; max-width: 44rem; }
.section-head--row > .lead { max-width: 30rem; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--white); --btn-border: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.625rem;
  min-height: 3rem; padding: 0.75rem 1.4rem;
  border-radius: var(--pill);
  border: 1px solid var(--btn-border);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 500; font-size: 0.975rem; line-height: 1; letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.3s var(--ease), background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.3s var(--ease);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1rem; height: 1rem; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--accent { --btn-bg: var(--accent); --btn-fg: var(--ink); --btn-border: var(--accent); }
.btn--accent:hover { --btn-bg: #ff7447; --btn-border: #ff7447; }
.btn--light { --btn-bg: var(--white); --btn-fg: var(--ink); --btn-border: var(--white); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--ink); --btn-border: var(--zinc-300); }
.btn--outline:hover { --btn-border: var(--ink); }
.section--dark .btn--outline, .btn--outline-light { --btn-bg: transparent; --btn-fg: var(--white); --btn-border: rgba(255, 255, 255, 0.28); }
.section--dark .btn--outline:hover, .btn--outline-light:hover { --btn-border: var(--white); }
.btn--sm { min-height: 2.5rem; padding: 0.5rem 1.1rem; font-size: 0.9rem; }
.btn--lg { min-height: 3.5rem; padding: 1rem 1.75rem; font-size: 1.05rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 500; color: var(--ink);
  border-bottom: 1px solid currentColor; padding-bottom: 1px;
}
.link-arrow svg { width: 0.95rem; height: 0.95rem; transition: transform 0.3s var(--ease); }
.link-arrow:hover svg { transform: translate(2px, -2px); }
.section--dark .link-arrow { color: var(--white); }

.text-link { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.text-link:hover { color: var(--ink); }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background-color 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--zinc-200); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 0.75rem; }
.brand__mark {
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: var(--white);
  font-family: var(--font-serif); font-style: italic; font-size: 1.2rem; line-height: 1;
  flex: none;
}
.brand__text { display: grid; line-height: 1.1; }
.brand__name { font-weight: 500; letter-spacing: -0.02em; font-size: 1.05rem; }
.brand__sub { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--zinc-500); }

.nav { display: none; }
.nav__list { display: flex; align-items: center; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.nav__link {
  display: inline-flex; padding: 0.5rem 0.8rem; border-radius: var(--pill);
  font-size: 0.925rem; color: var(--zinc-700); letter-spacing: -0.005em;
  transition: background-color 0.2s, color 0.2s;
}
.nav__link:hover { background: var(--zinc-100); color: var(--ink); }
.nav__link[aria-current="page"] { color: var(--ink); background: var(--zinc-100); }
.header-cta { display: none; }

.menu-toggle {
  display: inline-flex; align-items: center; gap: 0.5rem;
  height: 2.5rem; padding: 0 1rem; border-radius: var(--pill);
  background: var(--zinc-100); font-weight: 500; font-size: 0.9rem;
}
.menu-toggle__icon { position: relative; width: 14px; height: 10px; }
.menu-toggle__icon::before, .menu-toggle__icon::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.menu-toggle__icon::before { top: 1px; }
.menu-toggle__icon::after { top: 7px; }
.menu-open .menu-toggle__icon::before { top: 4px; transform: rotate(45deg); }
.menu-open .menu-toggle__icon::after { top: 4px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: var(--white);
  padding: 1.5rem var(--gutter) calc(2rem + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; gap: 2rem;
  overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; }
.mobile-menu__list { list-style: none; margin: 0; padding: 0; display: grid; }
.mobile-menu__list a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 0; border-bottom: 1px solid var(--zinc-200);
  font-size: 1.6rem; letter-spacing: -0.03em; font-weight: 500;
}
.mobile-menu__list a[aria-current="page"] { color: var(--accent-text); }
.mobile-menu__list svg { width: 1.25rem; height: 1.25rem; color: var(--zinc-400); }
body.menu-open { overflow: hidden; }

@media (min-width: 1100px) {
  .nav { display: block; }
  .header-cta { display: inline-flex; }
  .menu-toggle, .mobile-menu { display: none; }
}

/* Hero (home) ------------------------------------------------------------ */
.hero { padding: 0.75rem; padding-top: 0; }
.hero__stage {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(120% 90% at 85% 110%, rgba(252, 95, 43, 0.95) 0%, rgba(247, 134, 30, 0.75) 22%, rgba(253, 186, 116, 0.55) 42%, rgba(255, 237, 213, 0) 68%),
    radial-gradient(80% 60% at 10% 0%, #ffffff 0%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, #fff6ea 0%, #ffedd5 100%);
  min-height: min(52rem, calc(100svh - var(--header-h) - 0.75rem));
}
.hero__grain {
  position: absolute; inset: 0; z-index: -1; opacity: 0.35; mix-blend-mode: multiply; pointer-events: none;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.35 0 0 0 0 0.25 0 0 0 .18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__inner {
  display: grid; grid-template-columns: 1fr; align-items: end;
  min-height: inherit;
  width: 100%; max-width: var(--max); margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 5rem) var(--gutter) 0;
  gap: 1rem;
}
.hero__copy { display: grid; gap: 1.5rem; align-self: center; padding-bottom: 1rem; }
.hero__title { max-width: 13ch; }
.hero__title .serif { font-size: 1.06em; }
.hero__lead { color: var(--zinc-700); }
.hero__meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.45rem 0.85rem; border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.66); border: 1px solid rgba(17, 17, 17, 0.06);
  font-size: 0.825rem; color: var(--zinc-700);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.chip svg { width: 0.95rem; height: 0.95rem; color: var(--accent-text); }

.hero__figure { position: relative; align-self: end; justify-self: center; width: min(100%, 34rem); }
.hero__arch {
  position: relative; overflow: hidden;
  border-radius: 999px 999px 0 0;
  background:
    radial-gradient(70% 50% at 50% 30%, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(253, 186, 116, 0.55) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}
.hero__arch img { width: 104%; max-width: none; margin-left: -2%; margin-top: 4%; }
/* Mobile: flatten the copy column so the portrait can sit between the intro and the form */
@media (max-width: 959px) {
  .hero__inner { gap: 1.5rem; padding-bottom: 1.5rem; }
  .hero__copy { display: contents; }
  .hero__figure { order: 1; width: min(100%, 22rem); }
  .hero__arch {
    -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
  }
  .hero-form { order: 2; position: relative; z-index: 1; margin-top: -3rem; }
  .hero__meta { order: 3; margin-top: 0; }
}
@media (min-width: 960px) {
  .hero__inner { grid-template-columns: 1.1fr 0.9fr; gap: 2rem; }
  .hero__copy { padding-bottom: clamp(3rem, 6vw, 6rem); }
  .hero__figure { justify-self: end; }
}

/* Credentials marquee ---------------------------------------------------- */
.creds { border-bottom: 1px solid var(--zinc-200); }
.creds__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2.5rem; padding-block: 1.75rem; }
.creds__label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--zinc-500); }
.creds__list { display: flex; flex-wrap: wrap; gap: 0.75rem 2.25rem; list-style: none; margin: 0; padding: 0; }
.creds__list li { display: flex; align-items: center; gap: 0.6rem; font-weight: 500; letter-spacing: -0.015em; color: var(--zinc-700); }
.creds__list svg { width: 1.15rem; height: 1.15rem; color: var(--zinc-400); }

/* Stats ------------------------------------------------------------------ */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--zinc-200); }
@media (min-width: 800px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 2rem 1.5rem 0 0; display: grid; gap: 0.75rem; align-content: start; }
.stat + .stat { padding-left: 0; }
@media (min-width: 800px) {
  .stat, .stat + .stat { padding: 2.5rem 2rem 0.5rem; border-left: 1px solid var(--zinc-200); }
  .stat:first-child { border-left: 0; padding-left: 0; }
}
.stat__num { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 500; letter-spacing: -0.05em; line-height: 1; }
.stat__num sup { font-size: 0.45em; vertical-align: top; position: relative; top: 0.35em; margin-left: 0.1em; color: var(--accent); }
.stat__label { color: var(--zinc-600); font-size: 0.95rem; max-width: 16rem; }
.section--dark .stats, .section--dark .stat { border-color: var(--zinc-800); }
.section--dark .stat__label { color: var(--zinc-400); }

/* Cards ------------------------------------------------------------------ */
.card {
  position: relative; display: flex; flex-direction: column; gap: 1rem;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  background: var(--zinc-100);
  border-radius: var(--radius-lg);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background-color 0.3s;
}
.card--white { background: var(--white); border: 1px solid var(--zinc-200); }
.card--cream { background: var(--cream); }
.card p { color: var(--zinc-600); }
.card--dark { background: var(--zinc-900); color: var(--white); }
.card--dark p { color: var(--zinc-400); }
a.card:hover, .card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); background: var(--white); }
a.card.card--dark:hover { background: var(--zinc-800); }

/* Tinted cards: the feature card's corner glow, colour set per card via --tint (RGB channels) */
.card--tint { --glow: 0.5; --glow-size: 90% 70%; }
a.card--tint:hover { --glow: 0.65; --glow-size: 100% 80%; }
.card--dark.card--tint { --glow: 0.85; }
a.card--dark.card--tint:hover { --glow: 1; }
.card--tint,
a.card--tint:hover,
a.card--dark.card--tint:hover {
  background-image:
    radial-gradient(var(--glow-size) at 100% 100%, rgb(var(--tint) / var(--glow)), rgb(var(--tint) / 0) 60%),
    radial-gradient(60% 50% at 0% 0%, rgb(var(--tint) / 0.14), rgb(var(--tint) / 0) 70%);
}
.card--amber  { --tint: 245 158 11; }
.card--rose   { --tint: 244 63 94; }
.card--sky    { --tint: 14 165 233; }
.card--mint   { --tint: 16 185 129; }
.card--violet { --tint: 139 92 246; }
.card--teal   { --tint: 20 184 166; }
.card--indigo { --tint: 99 102 241; }
.card__icon {
  width: 3rem; height: 3rem; border-radius: var(--radius-sm);
  display: grid; place-items: center;
  background: var(--white); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--zinc-200);
}
.card__icon svg { width: 1.5rem; height: 1.5rem; }
.card--white .card__icon { background: var(--cream); box-shadow: none; color: var(--accent-text); }
.card__footer { margin-top: auto; padding-top: 0.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.card__arrow {
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--white); border: 1px solid var(--zinc-200);
  transition: background-color 0.3s, color 0.3s, transform 0.4s var(--ease);
}
.card__arrow svg { width: 1rem; height: 1rem; }
a.card:hover .card__arrow { background: var(--accent); border-color: var(--accent); transform: rotate(-45deg); }
.card__tag { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--zinc-500); }

/* Treatment grid (home) */
.treatments { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .treatments { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) {
  .treatments { grid-template-columns: repeat(4, 1fr); }
  .treatments .card--feature { grid-column: span 2; grid-row: span 2; }
}
.card--feature {
  min-height: 24rem; overflow: hidden; color: var(--white);
  background:
    radial-gradient(90% 70% at 100% 100%, rgba(252, 95, 43, 0.9), rgba(252, 95, 43, 0) 60%),
    radial-gradient(60% 50% at 0% 0%, rgba(253, 186, 116, 0.18), rgba(253, 186, 116, 0) 70%),
    var(--zinc-900);
}
.card--feature p { color: rgba(255, 255, 255, 0.72); max-width: 26rem; }
.card--feature h3 { font-size: clamp(1.75rem, 3vw, 2.5rem); letter-spacing: -0.035em; max-width: 14ch; }
.card--feature .card__icon { background: rgba(255, 255, 255, 0.1); color: var(--white); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.card--feature .card__arrow { background: var(--white); color: var(--ink); border: 0; }
a.card--feature:hover { background:
    radial-gradient(100% 80% at 100% 100%, rgba(252, 95, 43, 1), rgba(252, 95, 43, 0) 62%),
    radial-gradient(60% 50% at 0% 0%, rgba(253, 186, 116, 0.2), rgba(253, 186, 116, 0) 70%),
    var(--zinc-900); }
.card--feature .implant-art { display: none; }
@media (min-width: 1100px) { .card--feature .implant-art { display: block; } }
.card--feature .implant-art { position: absolute; right: clamp(-1rem, 2vw, 2rem); bottom: -1.5rem; width: clamp(9rem, 22vw, 14rem); opacity: 0.95; pointer-events: none; }
.card--feature > *:not(.implant-art) { position: relative; z-index: 1; }

/* Steps ------------------------------------------------------------------ */
.steps { display: grid; gap: 1rem; grid-template-columns: 1fr; counter-reset: step; list-style: none; padding: 0; margin: 0; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps--4 { grid-template-columns: repeat(4, 1fr); } .steps--3 { grid-template-columns: repeat(3, 1fr); } .steps--5 { grid-template-columns: repeat(5, 1fr); } }
.step {
  position: relative; display: flex; flex-direction: column; gap: 0.75rem;
  padding: 1.75rem; border-radius: var(--radius-lg);
  background: var(--white); border: 1px solid var(--zinc-200);
}
@media (min-width: 1100px) { .step { min-height: 15rem; } }
.section--grey .step { background: var(--white); }
.section--dark .step { background: var(--zinc-900); border-color: var(--zinc-800); }
.section--dark .step p { color: var(--zinc-400); }
.step p { color: var(--zinc-600); font-size: 0.95rem; }
.step__num {
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; color: var(--zinc-500);
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 2.5rem;
}
.step__num::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: 0.25; margin-left: 1rem; }
.step__time { display: inline-block; margin-top: 0.25rem; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-text); }
.section--dark .step__time { color: var(--peach-200); }

/* Portrait / media blocks ------------------------------------------------ */
.media {
  position: relative; overflow: hidden; border-radius: var(--radius-xl);
  background: #f5f3ef;
}
.media picture { height: 100%; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--portrait { aspect-ratio: 4 / 5; max-width: 100%; }
.media--square { aspect-ratio: 1; }
.media__badge {
  position: absolute; left: 1rem; bottom: 1rem; right: 1rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem; border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.media__badge strong { display: block; font-weight: 500; letter-spacing: -0.015em; }
.media__badge span { font-size: 0.85rem; color: var(--zinc-500); }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.85rem; }
.checklist li { display: grid; grid-template-columns: 1.5rem 1fr; gap: 0.75rem; align-items: start; }
.checklist li::before {
  content: ""; width: 1.5rem; height: 1.5rem; border-radius: 50%; margin-top: 0.05rem;
  background: var(--peach-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c2410c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 0.85rem no-repeat;
}
.section--dark .checklist li::before { background-color: rgba(252, 95, 43, 0.18); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fdba74' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E"); }

.cred-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--zinc-200); }
.cred-list li { display: flex; justify-content: space-between; gap: 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--zinc-200); }
.cred-list li span:first-child { font-weight: 500; letter-spacing: -0.01em; }
.cred-list li span:last-child { color: var(--zinc-500); text-align: right; font-size: 0.95rem; }

/* Quote ------------------------------------------------------------------ */
.pull-quote { font-size: clamp(1.6rem, 3.2vw, 2.6rem); line-height: 1.15; letter-spacing: -0.03em; font-weight: 500; }
.pull-quote .serif { color: var(--accent); }

/* Practices -------------------------------------------------------------- */
.practice-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--zinc-200); }
.practice-row {
  display: grid; grid-template-columns: 1fr auto; gap: 0.25rem 1.5rem; align-items: center;
  padding: 1.35rem 0; border-bottom: 1px solid var(--zinc-200);
  transition: padding 0.3s var(--ease);
}
.practice-row:hover { padding-inline: 0.75rem; }
.practice-row__name { font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 500; letter-spacing: -0.025em; }
.practice-row__area { color: var(--zinc-500); font-size: 0.925rem; }
.practice-row .card__arrow { grid-row: span 2; }
.practice-row:hover .card__arrow { background: var(--accent); border-color: var(--accent); transform: rotate(-45deg); }

.practice-card { gap: 1.25rem; }
.practice-card__head { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.practice-card__num { font-family: var(--font-mono); font-size: 0.75rem; color: var(--zinc-400); }
.practice-card h3 { margin-top: 0.35rem; }
.practice-card address { font-style: normal; color: var(--zinc-600); line-height: 1.5; }
.practice-card__sites { display: grid; gap: 1rem; }
.practice-card__site { padding-top: 1rem; border-top: 1px solid var(--zinc-200); display: grid; gap: 0.35rem; }
.practice-card__site h4 { font-size: 0.95rem; }
.practice-card__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: auto; padding-top: 0.5rem; }
.contact-line { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 500; }
.contact-line svg { width: 1rem; height: 1rem; color: var(--accent-text); }
a.contact-line:hover { color: var(--accent-text); }

.map-card { position: relative; border-radius: var(--radius-xl); overflow: hidden; background: var(--zinc-900); color: var(--white); padding: clamp(1.25rem, 3vw, 2rem); }
.map-card svg { width: 100%; height: auto; }
.map-card__legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-size: 0.8rem; color: var(--zinc-400); margin-top: 1rem; }
.map-dot { transition: r 0.3s var(--ease); }
.map-label { font-family: var(--font-sans); font-size: 13px; fill: #fff; letter-spacing: -0.01em; }
.map-sub { font-family: var(--font-mono); font-size: 9.5px; fill: #a1a1aa; letter-spacing: 0.06em; text-transform: uppercase; }

/* Accordion -------------------------------------------------------------- */
.faq { border-top: 1px solid var(--zinc-200); }
.faq details { border-bottom: 1px solid var(--zinc-200); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.5rem 0;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem); font-weight: 500; letter-spacing: -0.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq__icon {
  flex: none; width: 2rem; height: 2rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--zinc-100);
  transition: transform 0.35s var(--ease), background-color 0.3s;
}
.faq__icon svg { width: 0.9rem; height: 0.9rem; }
.faq details[open] .faq__icon { transform: rotate(45deg); background: var(--accent); }
.faq__body { padding: 0 3.5rem 1.75rem 0; color: var(--zinc-600); display: grid; gap: 0.75rem; }
.section--dark .faq, .section--dark .faq details { border-color: var(--zinc-800); }
.section--dark .faq__icon { background: var(--zinc-800); }
.section--dark .faq__body { color: var(--zinc-400); }

/* CTA -------------------------------------------------------------------- */
.cta-box {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-xl);
  padding: clamp(2.5rem, 7vw, 6rem) clamp(1.5rem, 5vw, 5rem);
  color: var(--ink);
  background:
    radial-gradient(70% 90% at 100% 100%, #fc5f2b 0%, rgba(247, 134, 30, 0.85) 30%, rgba(253, 186, 116, 0.6) 55%, rgba(255, 237, 213, 0) 80%),
    linear-gradient(135deg, #fff6ea 0%, #ffedd5 100%);
  display: grid; gap: 2rem;
}
@media (min-width: 900px) { .cta-box { grid-template-columns: 1.3fr 0.7fr; align-items: end; } }
.cta-box h2 { max-width: 16ch; }
.cta-box .lead { color: var(--zinc-700); }
.cta-box__side { display: grid; gap: 1rem; justify-items: start; }
@media (min-width: 900px) { .cta-box__side { justify-items: end; text-align: right; } }

/* Page hero (inner pages) ------------------------------------------------ */
.page-hero { padding: 0 0.75rem; }
.page-hero__stage {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-xl);
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5.5rem);
  background:
    radial-gradient(60% 80% at 100% 100%, rgba(252, 95, 43, 0.55) 0%, rgba(253, 186, 116, 0.35) 35%, rgba(255, 237, 213, 0) 70%),
    linear-gradient(180deg, #fff6ea 0%, #fffaf3 100%);
}
.page-hero__stage--dark {
  color: var(--white);
  background:
    radial-gradient(70% 90% at 100% 100%, rgba(252, 95, 43, 0.75) 0%, rgba(252, 95, 43, 0.15) 45%, rgba(252, 95, 43, 0) 70%),
    radial-gradient(50% 60% at 0% 0%, rgba(253, 186, 116, 0.12) 0%, rgba(253, 186, 116, 0) 70%),
    var(--ink);
}
.page-hero__stage--dark .lead { color: var(--zinc-300); }
.page-hero__stage--dark .eyebrow { color: var(--zinc-400); }
.page-hero__stage--dark .breadcrumbs, .page-hero__stage--dark .breadcrumbs a { color: var(--zinc-400); }
.page-hero__grid { display: grid; gap: 2.5rem; align-items: end; }
@media (min-width: 960px) { .page-hero__grid { grid-template-columns: 1.4fr 0.6fr; } }
.page-hero h1 { max-width: 16ch; margin-top: 1.25rem; }
.page-hero .lead { margin-top: 1.5rem; }
.page-hero .btn-row { margin-top: 2rem; }
.page-hero__aside { display: grid; gap: 0.75rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.85rem; color: var(--zinc-500); margin-bottom: 2rem; list-style: none; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.5rem; color: var(--zinc-300); }
.breadcrumbs a:hover { color: var(--ink); }

.info-pill {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 0.9rem 1.1rem; border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7); border: 1px solid rgba(17, 17, 17, 0.06);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.info-pill svg { width: 1.25rem; height: 1.25rem; color: var(--accent-text); flex: none; }
.info-pill strong { display: block; font-weight: 500; letter-spacing: -0.01em; line-height: 1.3; }
.info-pill span { font-size: 0.85rem; color: var(--zinc-500); }
.page-hero__stage--dark .info-pill { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.1); }
.page-hero__stage--dark .info-pill svg { color: var(--peach-200); }
.page-hero__stage--dark .info-pill span { color: var(--zinc-400); }

/* Comparison table ------------------------------------------------------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--zinc-200); background: var(--white); }
.table { width: 100%; border-collapse: collapse; min-width: 40rem; font-size: 0.95rem; }
.table th, .table td { text-align: left; padding: 1rem 1.25rem; border-bottom: 1px solid var(--zinc-200); vertical-align: top; }
.table thead th { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--zinc-500); font-weight: 400; background: var(--zinc-50); }
.table tbody th { font-weight: 500; letter-spacing: -0.01em; }
.table tbody tr:last-child th, .table tbody tr:last-child td { border-bottom: 0; }
.table td { color: var(--zinc-600); }
.table .is-highlight { background: var(--cream); color: var(--ink); }

/* Implant diagram -------------------------------------------------------- */
.diagram { border-radius: var(--radius-xl); background: var(--zinc-100); padding: clamp(1.5rem, 4vw, 3rem); display: grid; gap: 2rem; align-items: center; }
@media (min-width: 700px) { .diagram { grid-template-columns: 0.9fr 1.1fr; } }
.diagram svg { width: 100%; max-width: 22rem; margin-inline: auto; }
.diagram__parts { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; counter-reset: part; }
.diagram__parts li { display: grid; grid-template-columns: 2.25rem 1fr; gap: 1rem; }
.diagram__parts li::before {
  counter-increment: part; content: counter(part);
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: var(--white);
  font-family: var(--font-mono); font-size: 0.8rem;
}
.diagram__parts h3 { font-size: 1.1rem; }
.diagram__parts p { color: var(--zinc-600); font-size: 0.95rem; margin-top: 0.25rem; }

/* Testimonials ----------------------------------------------------------- */
.review { gap: 1.5rem; }
.review__stars { display: flex; gap: 2px; color: var(--accent); }
.review__stars svg { width: 1rem; height: 1rem; }
.review blockquote { font-size: 1.125rem; line-height: 1.5; letter-spacing: -0.015em; color: var(--ink); }
.review--large blockquote { font-size: clamp(1.35rem, 2.4vw, 1.85rem); line-height: 1.3; letter-spacing: -0.025em; }
.review__who { margin-top: auto; display: flex; align-items: center; gap: 0.75rem; }
.review__avatar {
  width: 2.75rem; height: 2.75rem; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--peach-100); color: var(--accent-text); font-weight: 500;
}
.review__who strong { display: block; font-weight: 500; line-height: 1.2; }
.review__who span { font-size: 0.85rem; color: var(--zinc-500); }
.card--dark .review__who span { color: var(--zinc-400); }
.card--dark blockquote { color: var(--white); }
.card--dark .review__avatar { background: rgba(252, 95, 43, 0.18); color: var(--peach-200); }

/* Placeholder marker: remove once real, verified reviews are added */
.sample-tag {
  align-self: flex-start;
  font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.25rem 0.55rem; border-radius: var(--pill);
  border: 1px dashed currentColor; color: var(--zinc-500);
}
.dev-note {
  display: flex; gap: 0.75rem; align-items: start;
  padding: 1rem 1.25rem; border-radius: var(--radius);
  border: 1px dashed var(--accent); background: var(--cream);
  font-size: 0.9rem; color: var(--zinc-700); margin-bottom: 2rem;
}
.dev-note strong { font-weight: 500; }

/* Blog ------------------------------------------------------------------- */
.post-card { padding: 0; overflow: hidden; background: var(--white); border: 1px solid var(--zinc-200); }
.post-card__art { aspect-ratio: 16 / 10; position: relative; overflow: hidden; display: grid; place-items: center; }
.post-card__art svg { width: 38%; height: auto; color: var(--ink); transition: transform 0.6s var(--ease); }
a.post-card:hover .post-card__art svg { transform: scale(1.06) rotate(-3deg); }
.post-card__body { padding: 1.5rem 1.5rem 1.75rem; display: flex; flex-direction: column; gap: 0.75rem; flex: 1; }
.post-card__meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--zinc-500); }
.post-card h3 { font-size: 1.35rem; }
.art--peach { background: radial-gradient(80% 80% at 80% 100%, #fc5f2b 0%, #fdba74 45%, #ffedd5 100%); }
.art--zinc { background: radial-gradient(80% 80% at 20% 100%, #d4d4d8 0%, #f4f4f5 70%); }
.art--dark { background: radial-gradient(90% 90% at 100% 100%, #fc5f2b 0%, rgba(252, 95, 43, 0.2) 45%, #18181b 75%); }
.art--dark svg { color: var(--white) !important; }
.art--cream { background: radial-gradient(80% 80% at 0% 0%, #ffffff 0%, #fff6ea 50%, #fed7aa 100%); }

.post-feature { display: grid; overflow: hidden; border-radius: var(--radius-xl); background: var(--zinc-900); color: var(--white); }
@media (min-width: 900px) { .post-feature { grid-template-columns: 1.1fr 0.9fr; } }
.post-feature__art { min-height: 18rem; display: grid; place-items: center; }
.post-feature__art svg { width: 36%; color: var(--white); }
.post-feature__body { padding: clamp(1.75rem, 4vw, 3.5rem); display: flex; flex-direction: column; gap: 1rem; justify-content: center; }
.post-feature__body p { color: var(--zinc-400); }
.post-feature .post-card__meta { color: var(--zinc-400); }

.filter-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.filter-btn {
  padding: 0.55rem 1rem; border-radius: var(--pill); font-size: 0.9rem;
  border: 1px solid var(--zinc-200); background: var(--white); color: var(--zinc-700);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.filter-btn:hover { border-color: var(--ink); }
.filter-btn[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* Article */
.article-hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2rem, 4vw, 3rem); }
.article-hero h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); line-height: 1.02; max-width: 20ch; margin-top: 1.25rem; }
.article-hero .lead { margin-top: 1.5rem; max-width: 42rem; }
.byline { display: flex; align-items: center; gap: 0.85rem; margin-top: 2rem; }
.byline img { width: 3rem; height: 3rem; border-radius: 50%; object-fit: cover; background: #f3f3f3; }
.byline strong { display: block; font-weight: 500; line-height: 1.2; }
.byline span { font-size: 0.875rem; color: var(--zinc-500); }
.article-art { border-radius: var(--radius-xl); aspect-ratio: 21 / 9; display: grid; place-items: center; overflow: hidden; }
.article-art svg { width: min(22%, 10rem); }
@media (max-width: 599px) { .article-art { aspect-ratio: 16 / 10; } .article-art svg { width: 30%; } }

.prose { font-size: 1.1rem; line-height: 1.75; color: var(--zinc-700); }
.prose > * + * { margin-top: 1.25em; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--ink); margin-top: 2.2em; line-height: 1.15; letter-spacing: -0.03em; }
.prose h3 { font-size: 1.3rem; color: var(--ink); margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li + li { margin-top: 0.5em; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--ink); font-weight: 500; }
.prose a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { border-left: 2px solid var(--accent); padding-left: 1.25rem; font-size: 1.3rem; line-height: 1.45; color: var(--ink); letter-spacing: -0.015em; }
.callout {
  padding: 1.5rem 1.75rem; border-radius: var(--radius-lg);
  background: var(--cream); color: var(--zinc-700); font-size: 1rem; line-height: 1.6;
}
.callout strong { display: block; margin-bottom: 0.35rem; color: var(--ink); }
.callout--warn { background: #fef2f2; }
.prose .table-wrap { margin-top: 1.75em; font-size: 0.95rem; line-height: 1.5; }

.article-layout { display: grid; gap: 3rem; }
@media (min-width: 1100px) { .article-layout { grid-template-columns: 1fr 18rem; gap: 5rem; } }
.article-aside { display: grid; gap: 1rem; align-content: start; }
@media (min-width: 1100px) { .article-aside { position: sticky; top: calc(var(--header-h) + 2rem); } }
.toc { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.1rem; border-left: 1px solid var(--zinc-200); }
.toc a { display: block; padding: 0.35rem 0 0.35rem 1rem; margin-left: -1px; border-left: 1px solid transparent; color: var(--zinc-500); font-size: 0.925rem; }
.toc a:hover { color: var(--ink); border-left-color: var(--ink); }

/* Forms ------------------------------------------------------------------ */
.form-shell { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 1000px) { .form-shell { grid-template-columns: 0.8fr 1.2fr; align-items: start; } }
.form-card { background: var(--white); border: 1px solid var(--zinc-200); border-radius: var(--radius-xl); padding: clamp(1.25rem, 4vw, 2.75rem); box-shadow: var(--shadow-soft); }
.form { display: grid; gap: 1.25rem; }
.form__row { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.45rem; }
.field label, .field legend { font-size: 0.9rem; font-weight: 500; letter-spacing: -0.005em; }
.field .optional { color: var(--zinc-400); font-weight: 400; }
.field__hint { font-size: 0.825rem; color: var(--zinc-500); }
.input, .select, .textarea {
  width: 100%; min-height: 3.1rem; padding: 0.75rem 1rem;
  border-radius: var(--radius-sm); border: 1px solid var(--zinc-200);
  background: var(--zinc-50);
  font-size: 1rem;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.textarea { min-height: 8.5rem; resize: vertical; line-height: 1.5; }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 1rem;
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--zinc-300); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); background-color: var(--white); box-shadow: 0 0 0 4px rgba(252, 95, 43, 0.15); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: #dc2626; background-color: #fef2f2; }
.field__error { font-size: 0.825rem; color: #b91c1c; display: none; }
.field.has-error .field__error { display: block; }

fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field legend { padding: 0; margin-bottom: 0.45rem; }
.options { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.option { position: relative; }
.option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.option span {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1rem; border-radius: var(--pill);
  border: 1px solid var(--zinc-200); background: var(--zinc-50);
  font-size: 0.925rem; transition: all 0.2s;
}
.option input:hover + span { border-color: var(--zinc-400); }
.option input:checked + span { background: var(--ink); color: var(--white); border-color: var(--ink); }
.option input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.segmented { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 0.3rem; border-radius: var(--pill); background: var(--zinc-100); margin-bottom: 0.5rem; width: 100%; }
@media (min-width: 640px) { .segmented { width: auto; } }
.segmented button { padding: 0.65rem 1.25rem; border-radius: var(--pill); font-weight: 500; font-size: 0.925rem; color: var(--zinc-600); transition: all 0.25s var(--ease); white-space: nowrap; }
.segmented button[aria-selected="true"] { background: var(--white); color: var(--ink); box-shadow: var(--shadow-soft); }

.consent { display: grid; grid-template-columns: 1.25rem 1fr; gap: 0.75rem; align-items: start; font-size: 0.9rem; color: var(--zinc-600); }
.consent input { width: 1.25rem; height: 1.25rem; margin: 0.1rem 0 0; accent-color: var(--ink); }
.form__footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 0.5rem; }
.form__status { border-radius: var(--radius); padding: 1rem 1.25rem; font-size: 0.95rem; }
.form__status--error { background: #fef2f2; color: #991b1b; }
.form-success { text-align: center; display: grid; justify-items: center; gap: 1rem; padding: clamp(2rem, 6vw, 4rem) 1rem; }
.form-success__icon { width: 4rem; height: 4rem; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--ink); }
.form-success__icon svg { width: 1.75rem; height: 1.75rem; }
.btn[aria-busy="true"] { opacity: 0.7; pointer-events: none; }

.contact-cards { display: grid; gap: 0.75rem; }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--zinc-400); padding-top: clamp(4rem, 8vw, 6rem); margin-top: 0.75rem; }
.site-footer a:hover { color: var(--white); }
.footer-top { display: grid; gap: 3rem; padding-bottom: 3.5rem; border-bottom: 1px solid var(--zinc-800); }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.footer-brand { display: grid; gap: 1.25rem; align-content: start; max-width: 24rem; }
.footer-brand .brand__mark { background: var(--white); color: var(--ink); }
.footer-brand .brand__name { color: var(--white); }
.footer-col h3 { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--zinc-500); margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.footer-col a { color: var(--zinc-300); }
.footer-wordmark {
  font-size: clamp(3.25rem, 13vw, 12rem); font-weight: 500; letter-spacing: -0.06em; line-height: 0.85;
  color: var(--white); padding-block: clamp(2.5rem, 6vw, 4.5rem) 0; white-space: nowrap; overflow: hidden;
}
.footer-wordmark .serif { color: var(--accent); letter-spacing: -0.03em; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; padding-block: 2rem calc(2rem + env(safe-area-inset-bottom, 0px)); font-size: 0.825rem; border-top: 1px solid var(--zinc-800); margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.footer-bottom ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.footer-reg { font-size: 0.825rem; line-height: 1.6; color: var(--zinc-500); }

/* Utilities -------------------------------------------------------------- */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-2 { margin-bottom: 2rem; }
.center { text-align: center; }
.divider { height: 1px; background: var(--zinc-200); border: 0; margin: 0; }

/* Reveal on scroll (only when JS is running) ----------------------------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: 0.08s; }
.js .reveal[data-delay="2"] { transition-delay: 0.16s; }
.js .reveal[data-delay="3"] { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero__copy > * { animation: rise 0.9s var(--ease) both; }
.hero__copy > *:nth-child(2) { animation-delay: 0.08s; }
.hero__copy > *:nth-child(3) { animation-delay: 0.16s; }
.hero__copy > *:nth-child(4) { animation-delay: 0.24s; }
.hero__copy > *:nth-child(5) { animation-delay: 0.32s; }
.hero__figure { animation: rise 1.1s var(--ease) 0.15s both; }

/* Additions -------------------------------------------------------------- */
@media (min-width: 1100px) { .treatments .card--wide { grid-column: span 2; } }
.practice-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .practice-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) {
  .practice-grid { grid-template-columns: repeat(3, 1fr); }
  .practice-card--wide { grid-column: span 2; }
  .practice-card--wide .practice-card__sites { grid-template-columns: repeat(3, 1fr); }
}
.option svg { width: 1rem; height: 1rem; }
.prose { max-width: 44rem; }
.post-card__art svg, .post-feature__art svg, .article-art svg { stroke-width: 0.9; }
.map-pulse { transform-box: fill-box; transform-origin: center; animation: map-pulse 2.6s var(--ease) infinite; }
@keyframes map-pulse { 0% { transform: scale(0.5); opacity: 0.5; } 100% { transform: scale(1.8); opacity: 0; } }
a.info-pill { transition: background-color 0.2s, border-color 0.2s; }
a.info-pill:hover { background: var(--white); border-color: var(--zinc-300); }
.media__badge { color: var(--ink); }
.dev-note svg { width: 1.25rem; height: 1.25rem; flex: none; color: var(--accent-text); margin-top: 0.1rem; }
.prose > :first-child { margin-top: 0; }
.checklist--neutral li::before { background: radial-gradient(circle, var(--zinc-500) 0 0.18rem, var(--zinc-200) 0.19rem); }
.split > *, .article-layout > *, .form-shell > *, .page-hero__grid > * { min-width: 0; }

/* Practice carousel ------------------------------------------------------ */
.carousel {
  --slide-w: min(82vw, 21rem);
  --carousel-inset: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  position: relative;
}
@media (min-width: 700px) { .carousel { --slide-w: clamp(20rem, 38vw, 25rem); } }
@media (min-width: 1100px) { .carousel--compact { --slide-w: clamp(17rem, 22vw, 19.5rem); } }

.carousel__track {
  display: flex; gap: 1rem;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 0.5rem var(--carousel-inset) 1.5rem;
  scroll-padding-inline: var(--carousel-inset);
  scrollbar-width: none;
  cursor: grab;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track:focus-visible { outline-offset: -2px; border-radius: 0; }
.carousel__track.is-dragging { scroll-snap-type: none; scroll-behavior: auto; cursor: grabbing; user-select: none; }
.carousel__track.is-dragging a { pointer-events: none; }
.carousel__track.is-auto { scroll-snap-type: none; scroll-behavior: auto; }
@media (prefers-reduced-motion: reduce) { .carousel__track { scroll-behavior: auto; } }

.p-slide {
  flex: 0 0 var(--slide-w);
  scroll-snap-align: start;
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--zinc-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s;
}
.p-slide:hover { box-shadow: var(--shadow-lift); }
.p-slide:target { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(252, 95, 43, 0.25), var(--shadow-lift); }
.section:not(.section--grey) .p-slide:not(.p-slide--cta) { background: var(--zinc-50); }

.p-slide__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--zinc-100); flex: none; }
.p-slide__media picture, .p-slide__media img { width: 100%; height: 100%; }
.p-slide__media img { object-fit: cover; transition: transform 0.8s var(--ease); -webkit-user-drag: none; }
.p-slide:hover .p-slide__media img { transform: scale(1.04); }
.p-slide__tag, .p-slide__num {
  position: absolute; top: 0.85rem;
  padding: 0.35rem 0.7rem; border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--zinc-700);
}
.p-slide__tag { left: 0.85rem; }
.p-slide__num { right: 0.85rem; color: var(--zinc-500); }

.p-slide__media--placeholder {
  display: grid; place-items: center; align-content: center; gap: 0.75rem;
  color: var(--ink);
  background:
    radial-gradient(90% 90% at 100% 100%, #fc5f2b 0%, rgba(253, 186, 116, 0.7) 40%, rgba(255, 237, 213, 0) 75%),
    linear-gradient(160deg, #fff6ea 0%, #ffedd5 100%);
}
.p-slide__media--placeholder svg { width: 4.5rem; height: 4.5rem; stroke-width: 1; }
.p-slide__placeholder-label { font-family: var(--font-serif); font-style: italic; font-size: 1.5rem; letter-spacing: -0.01em; }

.p-slide__body { display: flex; flex-direction: column; gap: 0.75rem; padding: 1.5rem; flex: 1; }
.p-slide__body h3 { font-size: 1.35rem; }
.p-slide__body address { font-style: normal; color: var(--zinc-600); line-height: 1.5; }
.p-slide__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: auto; padding-top: 0.5rem; }
.p-slide__sites { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.p-slide__sites li { display: grid; gap: 0.1rem; padding-top: 0.6rem; border-top: 1px solid var(--zinc-200); font-size: 0.925rem; }
.p-slide__sites li:first-child { padding-top: 0; border-top: 0; }
.p-slide__sites strong { font-weight: 500; }
.p-slide__sites span { color: var(--zinc-600); }
.p-slide__sites .contact-line { font-size: 0.925rem; }
.p-slide__area { color: var(--zinc-500); margin-top: -0.4rem; }
.p-slide__more { margin-top: auto; padding-top: 0.25rem; display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 500; font-size: 0.925rem; }
.p-slide__more svg { width: 1rem; height: 1rem; transition: transform 0.3s var(--ease); }
.p-slide--link:hover .p-slide__more svg { transform: translateX(3px); }
.carousel--compact .p-slide__body { padding: 1.25rem 1.25rem 1.4rem; gap: 0.5rem; }
.carousel--compact .p-slide__body h3 { font-size: 1.2rem; }

.p-slide--cta {
  padding: clamp(1.5rem, 2.5vw, 2rem); gap: 1rem; color: var(--white); border: 0;
  background:
    radial-gradient(90% 70% at 100% 100%, rgba(252, 95, 43, 0.9), rgba(252, 95, 43, 0) 60%),
    var(--zinc-900);
}
.p-slide--cta .card__icon { background: rgba(255, 255, 255, 0.1); color: var(--white); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.p-slide--cta h3 { font-size: clamp(1.6rem, 2.4vw, 2rem); letter-spacing: -0.03em; margin-top: auto; }
.p-slide--cta p { color: rgba(255, 255, 255, 0.72); }
.p-slide--cta .card__footer { margin-top: 0.5rem; }
.p-slide--cta .card__arrow { background: var(--white); color: var(--ink); border: 0; }
.p-slide--cta:hover .card__arrow { background: var(--accent); transform: rotate(-45deg); }

.carousel__footer { display: flex; align-items: center; gap: 1.5rem; }
.carousel__progress { position: relative; flex: 1; height: 2px; border-radius: 2px; background: var(--zinc-200); overflow: hidden; }
.carousel__bar {
  position: absolute; top: 0; bottom: 0;
  width: var(--w, 30%);
  left: calc(var(--p, 0) * (100% - var(--w, 30%)));
  background: var(--ink); border-radius: 2px;
}
.carousel__controls { display: flex; gap: 0.5rem; }
.carousel__btn {
  width: 3rem; height: 3rem; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--zinc-300); background: var(--white); color: var(--ink);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
}
.carousel__btn svg { width: 1.1rem; height: 1.1rem; }
.carousel__btn[data-carousel-prev] svg { transform: rotate(180deg); }
.carousel__btn:hover:not(:disabled) { background: var(--ink); border-color: var(--ink); color: var(--white); }
.carousel__btn:disabled { opacity: 0.35; cursor: default; }
.p-slide__sites li { grid-template-columns: 1fr auto; column-gap: 1rem; }
.p-slide__sites li span { grid-column: 1 / -1; font-size: 0.875rem; }

/* Patient transformations carousel: before/after pair plus the patient's words */
.carousel--results { --slide-w: min(86vw, 23rem); }
@media (min-width: 700px) { .carousel--results { --slide-w: clamp(22rem, 42vw, 25rem); } }
@media (min-width: 1100px) { .carousel--results { --slide-w: clamp(22rem, 28vw, 25.5rem); } }
.t-slide__media {
  position: relative; flex: none;
  display: grid; grid-template-columns: 1fr 1fr; gap: 3px;
  margin: 0.75rem 0.75rem 0; aspect-ratio: 6 / 5;
  border-radius: var(--radius); overflow: hidden;
}
.t-slide__photo, .t-slide__photo img { display: block; width: 100%; height: 100%; min-width: 0; }
.t-slide__photo { background: var(--zinc-900); }
.t-slide__photo img { object-fit: cover; -webkit-user-drag: none; }
.t-slide__photo--placeholder {
  display: grid; place-items: center; align-content: center; gap: 0.5rem; padding-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase;
  background: radial-gradient(80% 60% at 50% 40%, var(--zinc-800), var(--zinc-900));
}
.t-slide__photo--placeholder.t-slide__photo--after {
  color: rgba(255, 255, 255, 0.75);
  background:
    radial-gradient(90% 70% at 100% 100%, rgba(252, 95, 43, 0.6), rgba(252, 95, 43, 0) 60%),
    radial-gradient(80% 60% at 50% 40%, var(--zinc-800), var(--zinc-900));
}
.t-slide__photo--placeholder svg { width: 2.25rem; height: 2.25rem; stroke-width: 1.25; }
.t-slide__labels {
  position: absolute; left: 50%; bottom: 0.75rem; transform: translateX(-50%);
  width: calc(100% - 1.5rem); max-width: 17rem;
  display: grid; grid-template-columns: 1fr 1fr;
  border-radius: var(--pill); overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.t-slide__labels > span:not(.t-slide__arrow) { padding: 0.55rem 0.5rem; text-align: center; }
.t-slide__labels > span:first-child { background: rgba(255, 255, 255, 0.94); color: var(--ink); }
.t-slide__labels > span:last-child { background: var(--accent); color: var(--ink); }
.t-slide__arrow {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 1.6rem; height: 1.6rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: var(--white);
}
.t-slide__arrow svg { width: 0.8rem; height: 0.8rem; }
.t-slide__body { display: flex; flex-direction: column; gap: 0.9rem; padding: 1.25rem 1.5rem 1.5rem; flex: 1; }
.t-slide blockquote { font-size: 1.05rem; line-height: 1.5; letter-spacing: -0.015em; color: var(--ink); }
.t-slide__who { margin-top: auto; display: grid; gap: 0.15rem; }
.t-slide__who strong { font-weight: 500; line-height: 1.2; }
.t-slide__who span { font-size: 0.85rem; color: var(--zinc-500); }

/* Hero quick enquiry form ------------------------------------------------ */
.hero__title { max-width: 14ch; }
.hero__lead { max-width: 34rem; }
.hero-form {
  width: 100%; max-width: 40rem;
  padding: clamp(1.1rem, 2.5vw, 1.5rem);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-lift);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.hero-form__form { display: grid; gap: 1rem; }
.hero-form__head { display: grid; gap: 0.2rem; }
.hero-form__title { font-size: 1.15rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; }
.hero-form__head p, .hero-form__success p { font-size: 0.9rem; color: var(--zinc-600); }
.hero-form__fields { display: grid; gap: 0.75rem; }
@media (min-width: 640px) { .hero-form__fields { grid-template-columns: repeat(3, 1fr); } }
.hero-form .field { gap: 0.3rem; }
.hero-form .field label { font-size: 0.8rem; color: var(--zinc-700); }
.hero-form .input { min-height: 2.9rem; background-color: var(--white); }
.hero-form .field__error { font-size: 0.75rem; }
.hero-form__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.25rem; }
.hero-form__footer p { flex: 1 1 16rem; font-size: 0.78rem; line-height: 1.45; }
.hero-form__footer .btn { flex: none; }
@media (max-width: 639px) { .hero-form__footer .btn { width: 100%; } }
.hero-form .form__status { font-size: 0.875rem; padding: 0.75rem 1rem; }
.hero-form__success { display: flex; align-items: center; gap: 1rem; padding: 0.5rem 0; }
.hero-form__success:focus { outline: none; }
.hero-form__success .form-success__icon { width: 3rem; height: 3rem; flex: none; }
.hero-form__success .form-success__icon svg { width: 1.3rem; height: 1.3rem; }
.hero__title { max-width: none; font-size: clamp(2.6rem, 5.2vw, 4.5rem); text-wrap: balance; }

/* Enquiry quiz (home page) ----------------------------------------------- */
.quiz {
  display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center;
  padding: clamp(1rem, 5vw, 4.5rem);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(70% 90% at 0% 100%, #fc5f2b 0%, rgba(247, 134, 30, 0.8) 28%, rgba(253, 186, 116, 0.55) 52%, rgba(255, 237, 213, 0) 80%),
    linear-gradient(135deg, #fff6ea 0%, #ffedd5 100%);
}
@media (min-width: 960px) { .quiz { grid-template-columns: 0.85fr 1.15fr; } }
.quiz__intro { padding-inline: clamp(0.5rem, 2vw, 0rem); }
.quiz__intro h2 { max-width: 13ch; }
.quiz__intro .lead { color: var(--zinc-700); }

.quiz__card {
  display: flex; flex-direction: column;
  min-height: clamp(30rem, 44vw, 34rem);
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-lift);
}
.quiz__form { display: flex; flex-direction: column; gap: 1.25rem; flex: 1; }
.quiz__top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 2rem; }
.quiz__back { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.9rem; font-weight: 500; color: var(--zinc-600); padding: 0.35rem 0.1rem; }
.quiz__back:hover { color: var(--ink); }
.quiz__back svg { width: 1rem; height: 1rem; transform: rotate(180deg); }
.quiz__back[aria-hidden="true"] { visibility: hidden; }
.quiz__count { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--zinc-500); margin-left: auto; }
.quiz__progress { height: 4px; border-radius: 4px; background: var(--zinc-100); overflow: hidden; margin-top: -0.5rem; }
.quiz__progress span { display: block; height: 100%; width: 16.66%; border-radius: 4px; background: var(--accent); transition: width 0.45s var(--ease); }

fieldset.quiz__step { border: 0; margin: 0; padding: 0; min-width: 0; }
.quiz__step.is-active { animation: rise 0.5s var(--ease) both; }
.quiz__question {
  display: block; padding: 0; margin: 0.5rem 0 1.25rem;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.15;
}
.quiz__question:focus { outline: none; }
.quiz__options { display: grid; gap: 0.625rem; }
.quiz__options--grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.quiz__option { position: relative; display: block; cursor: pointer; }
.quiz__option input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.quiz__option-inner {
  display: flex; align-items: center; gap: 0.85rem;
  min-height: 3.6rem; padding: 0.85rem 1rem 0.85rem 1.1rem;
  border: 1px solid var(--zinc-200); border-radius: var(--radius);
  background: var(--zinc-50);
  font-weight: 500; letter-spacing: -0.01em; line-height: 1.3;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.quiz__option-inner > svg { width: 1.35rem; height: 1.35rem; flex: none; color: var(--accent-text); }
.quiz__option-inner small { display: block; margin-top: 0.15rem; font-weight: 400; font-size: 0.825rem; color: var(--zinc-500); letter-spacing: 0; }
.quiz__option-inner::after {
  content: ""; flex: none; margin-left: auto;
  width: 1.2rem; height: 1.2rem; border-radius: 50%;
  border: 1.5px solid var(--zinc-300); background: var(--white);
  transition: all 0.2s;
}
.quiz__option input:hover + .quiz__option-inner { border-color: var(--zinc-400); background: var(--white); }
.quiz__option input:checked + .quiz__option-inner { border-color: var(--ink); background: var(--white); box-shadow: inset 0 0 0 1px var(--ink); }
.quiz__option input:checked + .quiz__option-inner::after { border-color: var(--ink); background: radial-gradient(circle, var(--white) 0 0.2rem, var(--ink) 0.22rem); }
.quiz__option input:focus-visible + .quiz__option-inner { outline: 2px solid var(--accent); outline-offset: 2px; }

.quiz__fields { display: grid; gap: 1rem; }
@media (min-width: 640px) { .quiz__fields { grid-template-columns: 1fr 1fr; } .quiz__field--wide { grid-column: 1 / -1; } }

.quiz__nav { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1rem; padding-top: 0.5rem; }
.quiz__hint { font-size: 0.85rem; color: var(--zinc-500); }
.quiz__nav .btn { margin-left: auto; }
.quiz__nav .btn:disabled { opacity: 0.35; pointer-events: none; }
@media (max-width: 479px) { .quiz__nav .btn { width: 100%; } }

.quiz__done { flex: 1; display: grid; justify-items: center; align-content: center; gap: 1rem; text-align: center; padding: 2rem 0.5rem; }
.quiz__done:focus { outline: none; }
.quiz__done-note { padding: 0.75rem 1.1rem; border-radius: var(--radius); background: var(--cream); font-size: 0.95rem; }

/* Without JavaScript the quiz shows as one long form */
html:not(.js) .quiz__top, html:not(.js) .quiz__progress, html:not(.js) [data-quiz-next], html:not(.js) .quiz__hint { display: none; }
html:not(.js) .quiz__step + .quiz__step { margin-top: 1.5rem; }

/* Blog posts written in admin.html --------------------------------------- */
.article-art--photo { aspect-ratio: 16 / 9; background: var(--zinc-100); margin: 0; }
.article-art--photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 599px) { .article-art--photo { aspect-ratio: 4 / 3; } }
.post-figure img { width: auto; max-width: 100%; border-radius: var(--radius-lg); background: var(--zinc-100); }
.post-figure figcaption, .post-gallery figcaption { margin-top: 0.6rem; font-size: 0.9rem; line-height: 1.5; color: var(--zinc-500); }
.post-gallery { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); }
.post-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--zinc-100); transition: opacity 0.2s; }
.post-gallery a:hover img { opacity: 0.88; }
.blog-loading::after { content: "…"; }

/* Blog admin ------------------------------------------------------------- */
.admin { background: var(--zinc-50); min-height: 100vh; }
.admin-header { background: var(--white); border-bottom: 1px solid var(--zinc-200); }
.admin-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); flex-wrap: wrap; padding-block: 0.5rem; }
.admin-header__actions { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.admin-header__email { font-size: 0.85rem; color: var(--zinc-500); margin-right: 0.5rem; }
@media (max-width: 699px) { .admin-header__email { display: none; } }
.admin-main { padding-bottom: clamp(3rem, 8vw, 6rem); }
.admin-main > [data-view]:not([data-view="editor"]):not([data-view="preview"]) { padding-top: clamp(2rem, 6vw, 4.5rem); }
.admin-narrow { max-width: 34rem; }
.admin-head { margin-bottom: 2rem; }
.admin-link { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.9rem; font-weight: 500; color: var(--zinc-600); }
.admin-link:hover { color: var(--ink); }
.admin-link svg { width: 1rem; height: 1rem; }
.form__status--info { background: var(--cream); color: var(--zinc-700); }
.field__label { font-size: 0.9rem; font-weight: 500; letter-spacing: -0.005em; }
.btn--danger { --btn-bg: transparent; --btn-fg: #b91c1c; --btn-border: #fecaca; }
.btn--danger:hover { --btn-bg: #fef2f2; --btn-border: #b91c1c; }

.admin-posts { display: grid; gap: 0.75rem; }
.admin-post {
  display: grid; grid-template-columns: 4.5rem 1fr; gap: 0.75rem 1.25rem; align-items: center;
  padding: 0.75rem; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--zinc-200);
}
@media (min-width: 700px) { .admin-post { grid-template-columns: 5.5rem 1fr auto; padding: 0.85rem 1.25rem 0.85rem 0.85rem; } }
.admin-post__thumb {
  aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden;
  background: radial-gradient(80% 80% at 80% 100%, #fc5f2b 0%, #fdba74 45%, #ffedd5 100%);
}
.admin-post__thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-post__body { display: grid; gap: 0.4rem; min-width: 0; }
.admin-post__title { text-align: left; font-size: 1.15rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; }
.admin-post__title:hover { color: var(--accent-text); }
.admin-post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; font-size: 0.85rem; color: var(--zinc-500); }
.admin-post__actions { display: flex; gap: 0.5rem; grid-column: 1 / -1; }
.admin-post__actions .btn { flex: 1; }
@media (min-width: 700px) { .admin-post__actions { grid-column: auto; } .admin-post__actions .btn { flex: none; } }
.admin-empty { padding: 2.5rem 1.5rem; border-radius: var(--radius-lg); border: 1px dashed var(--zinc-300); background: var(--white); text-align: center; color: var(--zinc-600); }

.status-pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.3rem 0.65rem; border-radius: var(--pill);
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--zinc-100); color: var(--zinc-600); white-space: nowrap;
}
.status-pill::before { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--zinc-400); }
.status-pill--live { background: #e7f5ef; color: #1d7454; }
.status-pill--live::before { background: var(--green); }

.editor-bar { position: sticky; top: 0; z-index: 50; background: rgba(250, 250, 250, 0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--zinc-200); }
.editor-bar__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; padding-block: 0.75rem; }
.editor-bar__actions { display: flex; gap: 0.5rem; margin-left: auto; }
@media (max-width: 599px) {
  .editor-bar__actions { width: 100%; }
  .editor-bar__actions .btn { flex: 1; padding-inline: 0.75rem; }
}

.editor { max-width: 52rem; display: grid; gap: 2rem; padding-top: clamp(2rem, 5vw, 3.5rem); }
.editor-title {
  width: 100%; resize: none; overflow: hidden; border: 0; background: transparent; padding: 0;
  font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 500; line-height: 1.08; letter-spacing: -0.035em;
}
.editor-title::placeholder { color: var(--zinc-300); }
.editor-title:focus { outline: none; }
.editor-text { border: 1px solid var(--zinc-200); border-radius: var(--radius-lg); background: var(--white); overflow: hidden; transition: border-color 0.2s, box-shadow 0.2s; }
.editor-text:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(252, 95, 43, 0.15); }
.toolbar { display: flex; flex-wrap: wrap; gap: 0.25rem; padding: 0.5rem; border-bottom: 1px solid var(--zinc-200); background: var(--zinc-50); }
.toolbar__gap { width: 1px; margin: 0.35rem 0.25rem; background: var(--zinc-200); }
.tool { min-height: 2.25rem; padding: 0 0.75rem; border-radius: var(--radius-sm); font-size: 0.875rem; color: var(--zinc-700); transition: background-color 0.15s, color 0.15s; }
.tool--icon { min-width: 2.25rem; padding: 0; font-size: 1.05rem; }
.tool .serif { font-size: 1.25rem; }
.tool:hover { background: var(--zinc-200); color: var(--ink); }
.editor-text__input {
  display: block; width: 100%; min-height: 24rem; resize: vertical; border: 0; padding: 1.25rem 1.35rem;
  font-size: 1.075rem; line-height: 1.75; color: var(--zinc-800); background: transparent;
}
.editor-text__input:focus { outline: none; }

.photo-drop {
  display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.5rem; cursor: pointer;
  border: 1.5px dashed var(--zinc-300); border-radius: var(--radius-lg); background: var(--white);
  transition: border-color 0.2s, background-color 0.2s;
}
.photo-drop:hover, .photo-drop.is-dragover { border-color: var(--accent); background: var(--cream); }
.photo-drop:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.photo-drop svg { width: 2.25rem; height: 2.25rem; flex: none; color: var(--accent-text); }
.photo-drop strong { display: block; font-weight: 500; }
.photo-drop__sub { font-size: 0.875rem; color: var(--zinc-500); }
.photo-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); }
.photo-grid:empty { display: none; }
.photo-tile { display: grid; gap: 0.5rem; align-content: start; padding: 0.5rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--zinc-200); }
.photo-tile__img { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden; background: var(--zinc-100); }
.photo-tile__img img { width: 100%; height: 100%; object-fit: cover; }
.photo-tile.is-uploading img { opacity: 0.45; }
.photo-tile__badge, .photo-tile__progress {
  position: absolute; left: 0.5rem; top: 0.5rem; padding: 0.2rem 0.55rem; border-radius: var(--pill);
  font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--ink); color: var(--white);
}
.photo-tile__progress { left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--white); color: var(--ink); }
.photo-tile__alt { min-height: 2.5rem; padding: 0.5rem 0.75rem; font-size: 0.875rem; }
.photo-tile__actions { display: flex; flex-wrap: wrap; gap: 0.25rem 0.85rem; padding: 0 0.25rem 0.25rem; }
.photo-tile__actions button { font-size: 0.8rem; font-weight: 500; color: var(--zinc-600); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--zinc-300); }
.photo-tile__actions button:hover { color: var(--ink); text-decoration-color: currentColor; }
.photo-tile__actions button:disabled { opacity: 0.4; pointer-events: none; }
.photo-tile__actions [data-photo="remove"] { color: #b91c1c; }

.editor-more { border-top: 1px solid var(--zinc-200); border-bottom: 1px solid var(--zinc-200); }
.editor-more summary { cursor: pointer; padding: 1.1rem 0; font-weight: 500; list-style-position: inside; }
.editor-more[open] summary { margin-bottom: 0.25rem; }
.editor-more .form { padding-bottom: 1.5rem; }
.admin-date { max-width: 16rem; }
.editor-footer { display: flex; justify-content: flex-end; }

.admin-preview { background: var(--white); border-bottom: 1px solid var(--zinc-200); }

.toast {
  position: fixed; left: 1rem; right: 1rem; bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)); z-index: 300;
  width: fit-content; margin-inline: auto; padding: 0.9rem 1.25rem; border-radius: var(--radius);
  background: var(--ink); color: var(--white); font-size: 0.95rem; box-shadow: var(--shadow-lift);
  animation: rise 0.4s var(--ease) both;
}
.toast a { color: var(--peach-200); text-decoration: underline; text-underline-offset: 3px; margin-left: 0.35rem; }
