/* ==========================================================================
   AMEERA DENTAL — Quiet luxury / premium healthcare editorial
   --------------------------------------------------------------------------
   One type family for both scripts (IBM Plex Sans Arabic + IBM Plex Sans),
   ivory / near-black surfaces, a single garnet accent from the logo used
   sparingly, rectangular photography on a strict grid, and restrained
   motion (opacity/translate reveals only). The fixed header never moves.

   01 Fonts        05 Header & menu      09 Services index    13 Inner pages
   02 Tokens       06 Buttons & links    10 Care & team       14 Footer
   03 Base         07 Hero               11 Results           15 Motion & a11y
   04 Typography   08 Philosophy         12 Booking & forms
   ========================================================================== */

/* 01 — Fonts (self-hosted, SIL OFL) -------------------------------------- */

@font-face { font-family: "Ameera Sans"; font-weight: 300; font-display: swap; src: url("../fonts/plex-arabic-300.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Ameera Sans"; font-weight: 400; font-display: swap; src: url("../fonts/plex-arabic-400.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Ameera Sans"; font-weight: 500; font-display: swap; src: url("../fonts/plex-arabic-500.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Ameera Sans"; font-weight: 600; font-display: swap; src: url("../fonts/plex-arabic-600.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Ameera Sans"; font-weight: 300; font-display: swap; src: url("../fonts/plex-sans-300.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Ameera Sans"; font-weight: 400; font-display: swap; src: url("../fonts/plex-sans-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Ameera Sans"; font-weight: 500; font-display: swap; src: url("../fonts/plex-sans-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Ameera Sans"; font-weight: 600; font-display: swap; src: url("../fonts/plex-sans-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* 02 — Tokens ------------------------------------------------------------- */

:root {
    --ivory: #f6f2eb;
    --ivory-2: #efe9df;
    --stone: #e4dccf;
    --sand: #cfc3b2;
    --ink: #141110;
    --ink-2: #1c1816;
    --smoke: #262120;

    --text: #1c1714;
    --text-soft: #5f564e;
    --text-inv: #f6f2eb;
    --text-inv-soft: #b4a99e;

    --garnet: #9a1c2e;
    --garnet-hover: #7e1525;
    --garnet-light: #d06b78;

    --line: rgba(28, 23, 20, 0.13);
    --line-inv: rgba(246, 242, 235, 0.15);

    --font: "Ameera Sans", "IBM Plex Sans Arabic", "IBM Plex Sans", "Segoe UI", Tahoma, sans-serif;

    /* type scale */
    --fs-display: clamp(2.35rem, 4.3vw, 4.4rem);
    --fs-h1: clamp(2.1rem, 3.6vw, 3.6rem);
    --fs-h2: clamp(1.85rem, 3vw, 3rem);
    --fs-h3: clamp(1.35rem, 1.8vw, 1.7rem);
    --fs-h4: 1.2rem;
    --fs-lead: clamp(1.08rem, 1.25vw, 1.25rem);
    --fs-body: 1.0625rem;
    --fs-small: 0.9rem;
    --fs-label: 0.8rem;

    --fw-head: 500;
    --lh-head: 1.32;
    --lh-body: 1.95;

    /* layout */
    --maxw: 1320px;
    --gutter: clamp(20px, 5vw, 72px);
    --section: clamp(84px, 10vw, 150px);
    --header-h: 76px;
    --gap: clamp(32px, 5vw, 88px);

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Latin optics: lighter weight & tighter tracking to match Arabic density */
html[lang="en"] {
    --fw-head: 300;
    --lh-head: 1.12;
    --lh-body: 1.75;
}

/* 03 — Base --------------------------------------------------------------- */

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
    margin: 0;
    background: var(--ivory);
    color: var(--text);
    font-family: var(--font);
    font-size: var(--fs-body);
    font-weight: 400;
    line-height: var(--lh-body);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}
body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

::selection { background: var(--garnet); color: #fff; }
:focus-visible { outline: 2px solid var(--garnet-light); outline-offset: 3px; border-radius: 2px; }

.skip-link {
    position: absolute;
    inset-inline-start: 16px;
    top: -100px;
    z-index: 300;
    padding: 10px 18px;
    background: var(--ivory);
    color: var(--ink);
}
.skip-link:focus { top: 12px; }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}
.hp-field { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }

/* 04 — Typography ---------------------------------------------------------- */

.t-display, .t-h1, .t-h2, .t-h3 {
    font-weight: var(--fw-head);
    line-height: var(--lh-head);
    text-wrap: balance;
}
.t-display { font-size: var(--fs-display); }
.t-h1 { font-size: var(--fs-h1); }
.t-h2 { font-size: var(--fs-h2); }
.t-h3 { font-size: var(--fs-h3); line-height: 1.4; }
.t-h4 { font-size: var(--fs-h4); font-weight: 500; line-height: 1.5; }
html[lang="en"] .t-display, html[lang="en"] .t-h1, html[lang="en"] .t-h2 { letter-spacing: -0.022em; }
html[lang="en"] .t-h3 { font-weight: 400; letter-spacing: -0.01em; line-height: 1.3; }

.t-lead {
    font-size: var(--fs-lead);
    line-height: 1.85;
    color: var(--text-soft);
    max-width: 52ch;
    text-wrap: pretty;
}
.t-body { color: var(--text-soft); text-wrap: pretty; }
.t-small { font-size: var(--fs-small); color: var(--text-soft); }

/* Label: short rule + text. Latin tracking only for Latin. */
.label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: var(--fs-label);
    font-weight: 500;
    color: var(--text-soft);
    line-height: 1.6;
}
.label::before {
    content: "";
    width: 28px;
    height: 1px;
    background: var(--garnet);
    flex: none;
}
.label__num { color: var(--garnet); font-variant-numeric: tabular-nums; }
html[lang="en"] .label { letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.72rem; }

/* Dark surfaces */
.dark { background: var(--ink); color: var(--text-inv); }
.dark .t-lead, .dark .t-body, .dark .t-small, .dark .label { color: var(--text-inv-soft); }
.dark .label::before { background: var(--garnet-light); }
.dark .label__num { color: var(--garnet-light); }
.ivory { background: var(--ivory); }
.stone { background: var(--stone); }

/* 05 — Layout -------------------------------------------------------------- */

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }

.head { display: grid; gap: 20px; margin-bottom: clamp(44px, 6vw, 80px); }
.head .t-h2 { max-width: 18ch; }
@media (min-width: 960px) {
    .head--split { grid-template-columns: 1.1fr 0.9fr; gap: var(--gap); align-items: end; }
    .head--split .t-lead { justify-self: end; }
}

.photo { position: relative; overflow: hidden; background: var(--sand); }
.dark .photo { background: var(--smoke); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--contain img { object-fit: contain; }
.caption { margin-top: 12px; font-size: var(--fs-label); color: var(--text-soft); }
.dark .caption { color: var(--text-inv-soft); }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.dark .rule { background: var(--line-inv); }

/* 06 — Header & menu ------------------------------------------------------- */

/* The header is fixed and its geometry never changes: no transforms, no
   hide-on-scroll, constant height. Only colour and background transition. */
.site-header {
    position: fixed;
    top: 0;
    inset-inline: 0;
    z-index: 100;
    height: var(--header-h);
    color: var(--text-inv);
    background-color: rgba(20, 17, 16, 0);
    border-bottom: 1px solid transparent;
    transition: background-color 0.35s linear, color 0.35s linear, border-color 0.35s linear;
}
.site-header.is-solid {
    background-color: rgba(20, 17, 16, 0.94);
    border-bottom-color: var(--line-inv);
}
.site-header[data-tone="light"] { color: var(--text); }
.site-header[data-tone="light"].is-solid {
    background-color: rgba(246, 242, 235, 0.96);
    border-bottom-color: var(--line);
}
@supports (backdrop-filter: blur(10px)) {
    .site-header.is-solid { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
}
.site-header__inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; margin-inline-end: auto; min-width: 0; }
.brand__mark { width: 40px; height: 40px; flex: none; border-radius: 50%; overflow: hidden; background: #fff; }
.brand__mark img { width: 100%; height: 100%; object-fit: cover; }
.brand__text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.brand__name { font-size: 1.02rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand__sub { font-size: 0.74rem; opacity: 0.68; white-space: nowrap; }

.header-nav { display: none; }
.header-nav ul { display: flex; gap: 28px; }
.header-nav a { font-size: 0.93rem; opacity: 0.82; padding-block: 8px; border-bottom: 1px solid transparent; transition: opacity 0.2s, border-color 0.2s; }
.header-nav a:hover { opacity: 1; }
.header-nav a[aria-current="page"] { opacity: 1; border-bottom-color: currentColor; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding: 0 10px;
    border-radius: 999px; border: 1px solid currentColor;
    font-size: 0.84rem; opacity: 0.8;
}
.lang-switch:hover { opacity: 1; }
.site-header .header-book { display: none; }

.menu-toggle { display: inline-flex; align-items: center; gap: 10px; height: 40px; font-size: 0.9rem; }
.menu-toggle__lines { position: relative; width: 24px; height: 10px; }
.menu-toggle__lines::before, .menu-toggle__lines::after {
    content: ""; position: absolute; inset-inline: 0; height: 1.5px; background: currentColor;
    transition: transform 0.3s var(--ease);
}
.menu-toggle__lines::before { top: 0; }
.menu-toggle__lines::after { bottom: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__lines::before { transform: translateY(4.25px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__lines::after { transform: translateY(-4.25px) rotate(-45deg); }

@media (min-width: 720px) { .site-header .header-book { display: inline-flex; } }
@media (min-width: 1200px) {
    .header-nav { display: block; }
    .menu-toggle { display: none; }
}
@media (max-width: 420px) {
    .brand__sub { display: none; }
    .menu-toggle__label { display: none; }
    .site-header__inner { gap: 14px; }
}

/* Mobile / tablet menu */
.menu {
    position: fixed;
    inset: 0;
    z-index: 95;
    background: var(--ink);
    color: var(--text-inv);
    padding: calc(var(--header-h) + 28px) var(--gutter) 28px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s linear, visibility 0s linear 0.3s;
}
.menu.is-open { opacity: 1; visibility: visible; transition: opacity 0.3s linear, visibility 0s; }
.menu__inner { display: grid; gap: 44px; max-width: 760px; }
.menu__primary a {
    display: flex; align-items: baseline; gap: 16px;
    padding-block: 10px;
    font-size: clamp(1.6rem, 6vw, 2.4rem);
    font-weight: 500;
    line-height: 1.35;
    border-bottom: 1px solid var(--line-inv);
}
html[lang="en"] .menu__primary a { font-weight: 300; letter-spacing: -0.015em; }
.menu__primary a[aria-current="page"] { color: var(--garnet-light); }
.menu__num { font-size: var(--fs-label); color: var(--text-inv-soft); min-width: 2em; font-variant-numeric: tabular-nums; }
.menu__meta { display: grid; gap: 28px; font-size: 0.95rem; color: var(--text-inv-soft); }
.menu__meta h2 { font-size: var(--fs-label); font-weight: 500; color: var(--text-inv); margin-bottom: 8px; }
.menu__meta a:hover { color: var(--text-inv); }
@media (min-width: 640px) { .menu__meta { grid-template-columns: 1fr 1fr; } }

/* 07 — Buttons & links ---------------------------------------------------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    min-height: 52px; padding: 0 26px;
    border-radius: 999px;
    background: var(--garnet); color: #fff;
    border: 1px solid var(--garnet);
    font-size: 0.95rem; font-weight: 500; line-height: 1;
    white-space: nowrap;
    transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}
.btn:hover { background: var(--garnet-hover); border-color: var(--garnet-hover); }
.btn--ghost { background: transparent; color: inherit; border-color: var(--line); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--text-inv); }
.dark .btn--ghost { border-color: rgba(246, 242, 235, 0.35); }
.dark .btn--ghost:hover { background: var(--ivory); border-color: var(--ivory); color: var(--ink); }
.btn--small { min-height: 40px; padding: 0 18px; font-size: 0.86rem; }
.btn__arrow, .link__icon { width: 17px; height: 17px; flex: none; transition: transform 0.3s var(--ease); }
[dir="rtl"] .btn__arrow, [dir="rtl"] .link__icon { transform: scaleX(-1); }

.link {
    display: inline-flex; align-items: center; gap: 10px;
    font-weight: 500; font-size: 0.95rem;
    padding-block: 4px;
    border-bottom: 1px solid currentColor;
}
.link:hover .link__icon { transform: translateX(3px); }
[dir="rtl"] .link:hover .link__icon { transform: scaleX(-1) translateX(3px); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* 08 — The film (homepage). Acts 01–04 run in one pinned stage; acts 05–06 are
   scroll-linked sections. Static rules below are the no-JS / reduced-motion
   composition; cinematic rules are scoped to `.js-motion:not(.no-cine)` and a
   viewport tall enough to hold a frame. --------------------------------------- */

:root { --craft-black: #0b0303; }

/* — static: ACT 01 craft — */
.craft { position: relative; overflow: hidden; background: var(--craft-black); padding-top: calc(var(--header-h) + 20px); padding-bottom: clamp(40px, 6vw, 72px); }
.craft__ambient { position: absolute; inset: -8%; opacity: 0.55; pointer-events: none; }
.craft__ambient img { width: 100%; height: 100%; object-fit: cover; filter: blur(48px) brightness(0.5) saturate(1.15); }
.craft__shot { position: relative; margin: 0 auto; width: min(100%, 560px); aspect-ratio: 4 / 5; overflow: hidden; }
.craft__lens { position: absolute; inset: 0; }
.craft__lens img { width: 100%; height: 100%; object-fit: cover; }
.craft__shot--b, .craft__light, .craft__veil, .craft__slot, .craft__scrim, .craft__third, .craft__cue { display: none; }
.craft__wrap { position: relative; display: grid; gap: 14px; margin-top: 28px; }
.craft__line { font-size: clamp(2.3rem, 7vw, 4.6rem); font-weight: var(--fw-head); line-height: 1.18; text-wrap: balance; color: var(--text-inv); margin-top: 14px; }
html[lang="en"] .craft__line { letter-spacing: -0.025em; line-height: 1.04; }
.craft__second { font-size: clamp(1.15rem, 2.4vw, 1.6rem); color: rgba(246, 242, 235, 0.82); line-height: 1.6; }
.craft__credit { font-size: 0.78rem; color: var(--text-inv-soft); }

/* — static: ACT 02 precision + treatment index — */
.care-act { position: relative; padding-block: var(--section); }
.care-act__shot { position: relative; margin: 0 0 32px; width: min(100%, 520px); aspect-ratio: 4 / 5; overflow: hidden; background: #000; }
.care-act__shot video, .care-act__shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.care-act__dim, .care-act__leak { display: none; }
.care-act__index { display: grid; gap: 16px; }
.care-act__title { font-size: var(--fs-h2); font-weight: var(--fw-head); line-height: var(--lh-head); color: var(--text-inv); }
.tindex { border-top: 1px solid var(--line-inv); }
.tindex__link { display: flex; align-items: center; gap: 18px; min-height: 56px; padding-block: 10px; border-bottom: 1px solid var(--line-inv); color: var(--text-inv); transition: color 0.25s, padding 0.35s var(--ease); }
.tindex__n { font-size: 0.85rem; color: var(--garnet-light); font-variant-numeric: tabular-nums; min-width: 2ch; }
.tindex__name { flex: 1; font-size: clamp(1.15rem, 2vw, 1.7rem); font-weight: var(--fw-head); line-height: 1.3; }
.tindex__icon { width: 18px; height: 18px; flex: none; opacity: 0.5; transition: opacity 0.25s; }
[dir="rtl"] .tindex__icon { transform: scaleX(-1); }
.tindex__link:hover, .tindex__link:focus-visible { color: #fff; padding-inline-start: 8px; }
.tindex__link:hover .tindex__icon, .tindex__link:focus-visible .tindex__icon { opacity: 1; }
.care-act__all { justify-self: start; color: var(--text-inv); margin-top: 6px; }
@media (min-width: 960px) {
    .care-act .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: var(--gap); align-items: center; }
    .care-act__shot { position: absolute; inset-inline-end: var(--gutter); top: var(--section); width: min(36vw, 520px); margin: 0; }
    .care-act__index { grid-column: 1; }
    .care-act { min-height: calc(min(36vw, 520px) * 1.25 + var(--section) * 2); }
}

/* — static: ACT 03 people — */
.cast__glow, .cast__card, .cast__shade, .cast__slot { display: none; }
.cast { padding-block: var(--section); }
.cast__head { display: grid; gap: 14px; margin-bottom: clamp(36px, 5vw, 64px); }
.cast__heading { font-size: var(--fs-h2); font-weight: var(--fw-head); line-height: var(--lh-head); text-wrap: balance; }
.cast__list { display: grid; gap: clamp(48px, 7vw, 96px); }
.cast__shot { display: grid; gap: 24px; align-items: end; }
.cast__photo { aspect-ratio: 4 / 5; max-width: 480px; }
.cast__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.cast__text { display: grid; gap: 12px; align-content: end; }
.cast__role { color: var(--garnet-light); font-size: var(--fs-small); font-weight: 500; }
.cast__name { font-size: clamp(2.2rem, 5vw, 4.4rem); font-weight: var(--fw-head); line-height: 1.12; text-wrap: balance; }
html[lang="en"] .cast__name { letter-spacing: -0.02em; line-height: 1.04; }
.cast__bio { color: var(--text-inv-soft); max-width: 46ch; line-height: 1.85; }
.cast__foot { display: flex; align-items: center; gap: 20px; margin-top: clamp(32px, 4vw, 52px); }
.cast__count { font-size: var(--fs-small); color: var(--text-inv-soft); font-variant-numeric: tabular-nums; }
.cast__count b { color: var(--text-inv); font-weight: 500; }
.cast__all { color: var(--text-inv); }
@media (min-width: 960px) { .cast__shot { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--gap); } }

/* — static: ACT 05 proof (light) — */
.proof__frame { position: relative; }
.proof__corners { display: none; }
.proof .stat__label { color: var(--text-soft); }
.proof .stat__num sup { color: var(--garnet); }
.proof .feature-case { border-bottom-color: var(--line); }

/* — static: ACT 06 final frame — */
.finale { position: relative; overflow: hidden; min-height: 100vh; min-height: 100svh; display: grid; align-items: end; background: var(--ink); color: var(--text-inv); }
.finale__frame { position: absolute; inset: 0; margin: 0; background: var(--ink); }
.finale__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; }
.finale__shade { position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(0deg, rgba(20, 17, 16, 0.94) 0%, rgba(20, 17, 16, 0.72) 34%, rgba(20, 17, 16, 0.08) 64%, rgba(20, 17, 16, 0.25) 100%); }
.finale__wrap { position: relative; z-index: 2; width: 100%; padding-top: calc(var(--header-h) + 24px); padding-bottom: clamp(36px, 6vh, 72px); }
.finale__copy { display: grid; gap: 18px; justify-items: start; max-width: 34rem; }
.finale__title { font-size: clamp(2.3rem, 9vw, 3rem); font-weight: var(--fw-head); line-height: 1.2; text-wrap: balance; color: var(--text-inv); }
html[lang="en"] .finale__title { letter-spacing: -0.025em; line-height: 1.06; }
.finale__lead { color: rgba(246, 242, 235, 0.82); max-width: 42ch; line-height: 1.8; }
.finale__place { font-size: var(--fs-small); color: var(--text-inv-soft); }
.finale .label { color: rgba(246, 242, 235, 0.78); }
@media (min-width: 960px) {
    .finale { align-items: center; }
    .finale__frame { inset-inline-start: auto; width: 64%; }
    .finale__frame img { object-position: 50% 20%; }
    .finale__shade { background: linear-gradient(90deg, #141110 36%, rgba(20, 17, 16, 0.55) 44%, rgba(20, 17, 16, 0) 56%), linear-gradient(0deg, rgba(20, 17, 16, 0.6), rgba(20, 17, 16, 0) 36%); }
    [dir="rtl"] .finale__shade { background: linear-gradient(270deg, #141110 36%, rgba(20, 17, 16, 0.55) 44%, rgba(20, 17, 16, 0) 56%), linear-gradient(0deg, rgba(20, 17, 16, 0.6), rgba(20, 17, 16, 0) 36%); }
    .finale__title { font-size: clamp(3rem, min(5.2vw, 9.4svh), 5.6rem); }
    .finale__copy { gap: 22px; max-width: min(36rem, 38vw); }
}
/* On the homepage the final frame is the closing call to action; the footer's lead line is not repeated. */
body:has(.finale) .footer__lead { display: none; }

/* ============================ cinematic ============================ */
@media (min-height: 620px) {
.js-motion:not(.no-cine) .story { position: relative; }
.js-motion:not(.no-cine) .story .story__pin {
    position: relative; height: 100vh; height: 100svh; overflow: hidden; background: var(--craft-black);
    /* the recurring "window": every act frames its key image in the same place */
    --win-top: var(--header-h); --win-h: 54svh; --win-w: 100%; --win-end: 0px; --col-start: var(--gutter);
}
.js-motion:not(.no-cine) .story .act { position: absolute; inset: 0; padding: 0; min-height: 0; margin: 0; background: transparent; pointer-events: none; }
.js-motion:not(.no-cine) .story .act a { pointer-events: auto; }
.js-motion:not(.no-cine) .story .act + .act { visibility: hidden; }
.js-motion:not(.no-cine) .story .act > .wrap { position: static; height: 100%; padding-top: var(--header-h); }

/* window placement shared by the craft slot, shot B, the chairside clip and the portraits */
.js-motion:not(.no-cine) .story .craft__slot,
.js-motion:not(.no-cine) .story .craft__shot--b,
.js-motion:not(.no-cine) .story .care-act__shot,
.js-motion:not(.no-cine) .story .cast__slot,
.js-motion:not(.no-cine) .story .cast__photo {
    position: absolute; display: block; top: var(--win-top); height: var(--win-h); width: var(--win-w);
    inset-inline-end: var(--win-end); inset-inline-start: auto; aspect-ratio: auto; max-width: none; margin: 0;
}

/* ACT 01 */
.js-motion:not(.no-cine) .story .craft__ambient { inset: -10%; opacity: 0.7; }
.js-motion:not(.no-cine) .story .craft__shot--a { position: absolute; left: 0; top: 0; width: 100%; height: 100%; margin: 0; z-index: 2; }
.js-motion:not(.no-cine) .story .craft__shot--b { z-index: 1; }
.js-motion:not(.no-cine) .story .craft__scrim { display: block; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(0deg, rgba(11, 3, 3, 0.78) 0%, rgba(11, 3, 3, 0.35) 34%, rgba(11, 3, 3, 0) 60%); }
.js-motion:not(.no-cine) .story .craft__lens { transform-origin: 50% 54%; will-change: transform; }
.js-motion:not(.no-cine) .story .craft__light { display: block; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
    background: linear-gradient(105deg, rgba(255, 236, 214, 0) 34%, rgba(255, 236, 214, 0.2) 47%, rgba(255, 236, 214, 0.06) 53%, rgba(255, 236, 214, 0) 62%); }
.js-motion:not(.no-cine) .story .craft__veil { display: block; position: absolute; inset: 0; background: var(--craft-black); pointer-events: none; }
.js-motion:not(.no-cine) .story .craft__shot--a .craft__veil { opacity: 0; }
.js-motion:not(.no-cine) .story .craft__slot { visibility: hidden; pointer-events: none; }
.js-motion:not(.no-cine) .story .craft__shot--b { overflow: hidden; }
.js-motion:not(.no-cine) .story .craft__wrap { margin: 0; display: block; }
.js-motion:not(.no-cine) .story .craft__title, .js-motion:not(.no-cine) .story .craft__second, .js-motion:not(.no-cine) .story .craft__third {
    position: absolute; inset-inline: var(--gutter); bottom: 64px; z-index: 3; margin: 0; }
.js-motion:not(.no-cine) .story .craft__title { display: grid; gap: 10px; }
.js-motion:not(.no-cine) .story .craft__line { font-size: clamp(2.3rem, 10.6vw, 3.1rem); margin: 0; text-shadow: 0 2px 34px rgba(0, 0, 0, 0.55); }
.js-motion:not(.no-cine) .story .craft__second, .js-motion:not(.no-cine) .story .craft__third { display: block; bottom: 40px; font-size: clamp(1.5rem, 6.6vw, 2rem); font-weight: var(--fw-head); line-height: 1.35; color: var(--text-inv); opacity: 0; }
.js-motion:not(.no-cine) .story .craft__credit { position: absolute; inset-inline-end: var(--gutter); top: calc(var(--win-top) + var(--win-h) + 8px); z-index: 3; opacity: 0; }
.js-motion:not(.no-cine) .story .craft__cue { display: block; position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 3; font-size: 0.74rem; letter-spacing: 0.12em; color: rgba(246, 242, 235, 0.7); opacity: 0; }

/* ACT 02 */
.js-motion:not(.no-cine) .story .care-act__shot { overflow: hidden; background: var(--craft-black); }
.js-motion:not(.no-cine) .story .care-act__dim { display: block; position: absolute; inset: 0; background: var(--craft-black); opacity: 0; }
.js-motion:not(.no-cine) .story .care-act__leak { display: block; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; opacity: 0;
    background: radial-gradient(55% 60% at 50% 34%, rgba(255, 222, 186, 0.95), rgba(255, 190, 140, 0.35) 45%, rgba(255, 190, 140, 0) 75%); }
.js-motion:not(.no-cine) .story .care-act__index { position: absolute; inset-inline: var(--gutter); bottom: 16px; z-index: 3; gap: 8px; }
.js-motion:not(.no-cine) .story .care-act__title { font-size: 1.35rem; }
.js-motion:not(.no-cine) .story .care-act__index .label > span:not(.label__num) { display: none; }
.js-motion:not(.no-cine) .story .tindex__link { min-height: 44px; padding-block: 6px; gap: 12px; }
.js-motion:not(.no-cine) .story .tindex__name { font-size: 1.05rem; }

/* ACT 03 */
.js-motion:not(.no-cine) .story .cast__glow { display: block; position: absolute; inset: 0; opacity: 0; background: radial-gradient(60% 40% at 50% 30%, rgba(196, 108, 48, 0.22), rgba(196, 108, 48, 0) 72%); }
.js-motion:not(.no-cine) .story .cast__card { display: grid; place-items: center; position: absolute; inset: 0; z-index: 4; padding-inline: var(--gutter); text-align: center;
    font-size: clamp(2rem, 8.6vw, 2.8rem); font-weight: var(--fw-head); line-height: 1.3; color: var(--text-inv); opacity: 0; text-wrap: balance; }
html[lang="en"] .js-motion:not(.no-cine) .story .cast__card { letter-spacing: -0.02em; line-height: 1.1; }
.js-motion:not(.no-cine) .story .cast__head { position: absolute; inset-inline: var(--gutter); top: calc(var(--header-h) + 10px); z-index: 3; margin: 0; display: block; }
.js-motion:not(.no-cine) .story .cast__heading { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.js-motion:not(.no-cine) .story .cast__list { position: static; display: block; }
.js-motion:not(.no-cine) .story .cast__shot { position: absolute; inset: 0; display: block; }
.js-motion:not(.no-cine) .story .cast__photo { overflow: hidden; background: var(--craft-black); }
.js-motion:not(.no-cine) .story .cast__photo img { object-position: 50% 16%; transform-origin: 50% 30%; }
.js-motion:not(.no-cine) .story .cast__shade { display: block; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(100deg, rgba(11, 3, 3, 0) 0%, rgba(11, 3, 3, 0) 33%, rgba(11, 3, 3, 0.96) 62%, rgba(11, 3, 3, 1) 100%);
    background-size: 300% 100%; background-position: 100% 0; }
.js-motion:not(.no-cine) .story .cast__photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, var(--craft-black) 0%, rgba(11, 3, 3, 0) 30%); }
.js-motion:not(.no-cine) .story .cast__slot { visibility: hidden; }
.js-motion:not(.no-cine) .story .cast__text { position: absolute; inset-inline: var(--gutter); bottom: 64px; z-index: 3; gap: 8px; }
.js-motion:not(.no-cine) .story .cast__name { font-size: clamp(2.2rem, 10.4vw, 3rem); }
.js-motion:not(.no-cine) .story .cast__bio { font-size: 0.92rem; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.js-motion:not(.no-cine) .story .cast__foot { position: absolute; inset-inline: var(--gutter); bottom: 14px; z-index: 3; margin: 0; padding-top: 10px; border-top: 1px solid var(--line-inv); justify-content: space-between; }

/* ACT 04 */
.js-motion:not(.no-cine) .story .kids { color: var(--ink); }
.js-motion:not(.no-cine) .story .kids__wrap { padding-bottom: 18px; }
.js-motion:not(.no-cine) .story .kids .care__grid { height: 100%; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; gap: 14px; align-items: stretch; }
.js-motion:not(.no-cine) .story .kids .care__media { order: 1; position: relative; display: block; height: 100%; min-height: 0; }
.js-motion:not(.no-cine) .story .kids .care__copy { order: 2; gap: 10px; align-content: start; padding-bottom: 4px; }
.js-motion:not(.no-cine) .story .kids .care__copy .t-h2 { font-size: clamp(1.7rem, 7.4vw, 2.2rem); line-height: 1.28; max-width: none; }
.js-motion:not(.no-cine) .story .kids .care__copy .t-lead { font-size: 0.93rem; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.js-motion:not(.no-cine) .story .kids .care__main { position: absolute; inset-block: 0; inset-inline-end: 0; width: 82%; height: 100%; aspect-ratio: auto; margin: 0; }
.js-motion:not(.no-cine) .story .kids .care__second { position: absolute; inset-inline-start: 0; bottom: 0; width: 38%; aspect-ratio: 4 / 5; margin: 0; border: 5px solid var(--ivory); }
.js-motion:not(.no-cine) .story .kids .care__main img, .js-motion:not(.no-cine) .story .kids .care__second img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 960px) {
    .js-motion:not(.no-cine) .story .story__pin {
        --win-top: calc(var(--header-h) + 3svh); --win-h: calc(100svh - var(--header-h) - 7svh); --win-w: calc((100svh - var(--header-h) - 7svh) * 0.8);
        --col-start: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))); --win-end: var(--col-start);
    }
    .js-motion:not(.no-cine) .story .craft__title, .js-motion:not(.no-cine) .story .craft__second, .js-motion:not(.no-cine) .story .craft__third {
        inset-inline-end: auto; inset-inline-start: var(--col-start); bottom: auto; top: 50%; transform: translateY(-50%); width: min(calc(100vw - var(--col-start) * 2 - var(--win-w) - 48px), 620px); }
    .js-motion:not(.no-cine) .story .craft__title { top: 56%; }
    .js-motion:not(.no-cine) .story .craft__scrim { background: linear-gradient(90deg, rgba(11, 3, 3, 0.82) 0%, rgba(11, 3, 3, 0.45) 30%, rgba(11, 3, 3, 0) 52%); }
    [dir="rtl"] .js-motion:not(.no-cine) .story .craft__scrim { background: linear-gradient(270deg, rgba(11, 3, 3, 0.82) 0%, rgba(11, 3, 3, 0.45) 30%, rgba(11, 3, 3, 0) 52%); }
    .js-motion:not(.no-cine) .story .craft__line { font-size: clamp(3.2rem, min(5.6vw, 10svh), 6.4rem); }
    .js-motion:not(.no-cine) .story .craft__second, .js-motion:not(.no-cine) .story .craft__third { font-size: clamp(2rem, min(3.4vw, 6.4svh), 3.6rem); line-height: 1.25; }
    html[lang="en"] .js-motion:not(.no-cine) .story .craft__second, html[lang="en"] .js-motion:not(.no-cine) .story .craft__third { letter-spacing: -0.02em; line-height: 1.1; }
    .js-motion:not(.no-cine) .story .craft__credit { inset-inline-end: var(--win-end); top: auto; bottom: 1.2svh; }
    .js-motion:not(.no-cine) .story .care-act__index { inset-inline-end: auto; inset-inline-start: var(--col-start); bottom: auto; top: 54%; transform: translateY(-50%); width: min(calc(100vw - var(--col-start) * 2 - var(--win-w) - 64px), 600px); gap: 14px; }
    .js-motion:not(.no-cine) .story .care-act__title { font-size: clamp(1.8rem, 2.6vw, 2.6rem); }
    .js-motion:not(.no-cine) .story .care-act__index .label > span:not(.label__num) { display: inline; }
    .js-motion:not(.no-cine) .story .tindex__link { min-height: 58px; gap: 18px; }
    .js-motion:not(.no-cine) .story .tindex__name { font-size: clamp(1.25rem, 1.8vw, 1.75rem); }
    .js-motion:not(.no-cine) .story .cast__card { font-size: clamp(3rem, min(5.6vw, 10svh), 6.2rem); }
    .js-motion:not(.no-cine) .story .cast__glow { background: radial-gradient(34% 54% at 70% 48%, rgba(196, 108, 48, 0.24), rgba(196, 108, 48, 0) 72%); }
    [dir="rtl"] .js-motion:not(.no-cine) .story .cast__glow { background: radial-gradient(34% 54% at 30% 48%, rgba(196, 108, 48, 0.24), rgba(196, 108, 48, 0) 72%); }
    .js-motion:not(.no-cine) .story .cast__photo::after { background: linear-gradient(0deg, rgba(11, 3, 3, 0.6) 0%, rgba(11, 3, 3, 0) 26%); }
    .js-motion:not(.no-cine) .story .cast__head { inset-inline-end: auto; inset-inline-start: var(--col-start); top: calc(var(--header-h) + 3svh); }
    .js-motion:not(.no-cine) .story .cast__text { inset-inline-end: auto; inset-inline-start: var(--col-start); bottom: auto; top: 52%; transform: translateY(-50%); width: min(52vw, 760px); gap: 18px; }
    .js-motion:not(.no-cine) .story .cast__name { font-size: clamp(3rem, min(6.2vw, 11svh), 6.6rem); text-shadow: 0 2px 30px rgba(11, 3, 3, 0.5); }
    .js-motion:not(.no-cine) .story .cast__bio { font-size: clamp(1rem, 1.15vw, 1.15rem); line-height: 1.85; max-width: 40ch; -webkit-line-clamp: 4; }
    .js-motion:not(.no-cine) .story .cast__foot { inset-inline-start: var(--col-start); inset-inline-end: auto; width: min(40vw, 600px); bottom: 3svh; justify-content: flex-start; gap: 28px; }
    .js-motion:not(.no-cine) .story .kids__wrap { padding-bottom: 3svh; }
    .js-motion:not(.no-cine) .story .kids .care__grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); grid-template-rows: minmax(0, 1fr); gap: var(--gap); align-items: center; }
    .js-motion:not(.no-cine) .story .kids .care__media { order: 2; }
    .js-motion:not(.no-cine) .story .kids .care__copy { order: 1; gap: 22px; align-content: center; }
    .js-motion:not(.no-cine) .story .kids .care__copy .t-h2 { font-size: clamp(2.3rem, min(4vw, 7.2svh), 3.9rem); max-width: 15ch; }
    .js-motion:not(.no-cine) .story .kids .care__copy .t-lead { font-size: clamp(1rem, 1.15vw, 1.15rem); line-height: 1.85; -webkit-line-clamp: unset; display: block; overflow: visible; max-width: 46ch; }
    .js-motion:not(.no-cine) .story .kids .care__main { top: 3svh; height: auto; bottom: 0; width: auto; aspect-ratio: 4 / 5; }
    .js-motion:not(.no-cine) .story .kids .care__second { inset-inline-start: 0; bottom: 8%; height: 40%; width: auto; border-width: 7px; }
}

/* ACT 05 — proof: the case becomes a focused, framed object between its title and its notes */
.js-motion:not(.no-cine) .proof { padding-block: 0 var(--section); }
.js-motion:not(.no-cine) .proof__stage { padding-top: calc(var(--header-h) + 28px); padding-bottom: 40px; }
.js-motion:not(.no-cine) .proof .results__top { margin-bottom: 28px; }
.js-motion:not(.no-cine) .proof .feature-case { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.js-motion:not(.no-cine) .proof__corners { display: block; position: absolute; inset: -10px; pointer-events: none; }
.js-motion:not(.no-cine) .proof__corners i { position: absolute; width: 22px; height: 22px; border-color: var(--garnet); border-style: solid; border-width: 0; }
.js-motion:not(.no-cine) .proof__corners i:nth-child(1) { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.js-motion:not(.no-cine) .proof__corners i:nth-child(2) { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.js-motion:not(.no-cine) .proof__corners i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.js-motion:not(.no-cine) .proof__corners i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }
.js-motion:not(.no-cine) .proof__more { padding-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); margin-top: clamp(24px, 4vw, 48px); }
@media (min-width: 960px) {
    .js-motion:not(.no-cine) .proof__stage { min-height: 100vh; min-height: 100svh; display: grid; align-items: center; padding-bottom: 48px; }
    .js-motion:not(.no-cine) .proof__wrap { display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.6fr) minmax(0, 0.62fr); grid-template-rows: auto auto; column-gap: clamp(28px, 3.2vw, 56px); row-gap: 28px; align-items: center; width: 100%; }
    .js-motion:not(.no-cine) .proof .results__top, .js-motion:not(.no-cine) .proof .feature-case { display: contents; }
    .js-motion:not(.no-cine) .proof .results__top > div:first-child { grid-column: 1; grid-row: 1; align-self: end; }
    .js-motion:not(.no-cine) .proof .stat { grid-column: 1; grid-row: 2; align-self: start; justify-content: flex-start; }
    .js-motion:not(.no-cine) .proof .stat__num { font-size: clamp(3.4rem, 5.4vw, 5.4rem); }
    .js-motion:not(.no-cine) .proof .results__top .t-h2 { font-size: clamp(2.2rem, min(3.4vw, 6.4svh), 3.4rem); }
    .js-motion:not(.no-cine) .proof__frame { grid-column: 2; grid-row: 1 / span 2; width: 100%; max-width: calc((100svh - var(--header-h) - 150px) * 16 / 9.4); justify-self: center; }
    .js-motion:not(.no-cine) .proof .feature-case__copy { grid-column: 3; grid-row: 1 / span 2; align-content: center; }
}
}

/* 10 — Services index ------------------------------------------------------ */

.svc-list { border-top: 1px solid var(--line); }
.dark .svc-list { border-color: var(--line-inv); }
.svc {
    position: relative;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 76px;
    grid-template-areas: "num title thumb" "num body thumb";
    column-gap: 16px;
    row-gap: 12px;
    padding-block: 28px;
    border-bottom: 1px solid var(--line);
    transition: background-color 0.3s;
}
.dark .svc { border-color: var(--line-inv); }
.svc__num { grid-area: num; font-size: var(--fs-small); color: var(--garnet); font-variant-numeric: tabular-nums; padding-top: 0.45em; }
.dark .svc__num { color: var(--garnet-light); }
.svc__title { grid-area: title; font-size: var(--fs-h3); font-weight: var(--fw-head); line-height: 1.35; }
html[lang="en"] .svc__title { font-weight: 400; letter-spacing: -0.01em; }
.svc__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.svc__body { grid-area: body; display: grid; gap: 14px; }
.svc__desc { color: var(--text-soft); max-width: 56ch; }
.dark .svc__desc { color: var(--text-inv-soft); }
.svc__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.svc__tags li { font-size: 0.8rem; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; line-height: 1.6; }
.dark .svc__tags li { border-color: var(--line-inv); color: var(--text-inv); }
.svc__thumb { grid-area: thumb; aspect-ratio: 4 / 5; align-self: start; }
.svc__go { display: none; }
@media (hover: hover) {
    .svc:hover .svc__title { color: var(--garnet); }
    .dark .svc:hover .svc__title { color: var(--garnet-light); }
}
@media (min-width: 960px) {
    .svc {
        grid-template-columns: 56px minmax(0, 0.9fr) minmax(0, 1.1fr) 120px 28px;
        grid-template-areas: "num title body thumb go";
        column-gap: 40px;
        padding-block: 40px;
        align-items: start;
    }
    .svc__go { display: block; grid-area: go; align-self: center; width: 22px; height: 22px; opacity: 0.5; transition: opacity 0.2s, transform 0.3s var(--ease); }
    [dir="rtl"] .svc__go { transform: scaleX(-1); }
    .svc:hover .svc__go { opacity: 1; }
}
.svc-more { margin-top: 36px; }

/* 11 — Care (pediatric) & team -------------------------------------------- */

.care__grid { display: grid; gap: var(--gap); }
.care__copy { display: grid; gap: 22px; align-content: center; }
.care__copy .t-h2 { max-width: 16ch; }
.care__media { display: grid; grid-template-columns: 1.35fr 1fr; gap: 14px; align-items: end; }
.care__main { aspect-ratio: 4 / 5; }
.care__second { aspect-ratio: 4 / 5; margin-bottom: 18%; }
.care__second img { object-position: 40% 30%; }
@media (min-width: 960px) {
    .care__grid { grid-template-columns: 0.85fr 1.15fr; align-items: center; }
    .care__media { gap: 20px; }
}

.team { margin-top: var(--section); padding-top: var(--section); border-top: 1px solid var(--line); }
.doctor-feature { display: grid; gap: var(--gap); }
.doctor-feature__photo { aspect-ratio: 4 / 5; }
.doctor-feature__photo img { object-position: 50% 18%; }
.doctor-feature__copy { display: grid; gap: 20px; align-content: center; }
.doctor-card { display: grid; gap: 6px; padding-top: 24px; border-top: 1px solid var(--line); }
.doctor-card__role { font-size: var(--fs-small); color: var(--garnet); font-weight: 500; }
.doctor-card__name { font-size: var(--fs-h3); font-weight: var(--fw-head); line-height: 1.4; }
html[lang="en"] .doctor-card__name { font-weight: 400; }
.doctor-card__bio { color: var(--text-soft); max-width: 48ch; }
.team-grid { display: grid; gap: 48px 28px; }
.team-grid .doctor-card { border-top: 0; padding-top: 18px; }
@media (min-width: 760px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) {
    .doctor-feature { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; }
    .doctor-feature__photo { max-width: 460px; }
}

/* 12 — Results ------------------------------------------------------------- */

.results__top { display: grid; gap: 36px; margin-bottom: clamp(48px, 6vw, 80px); align-items: end; }
.stat { display: flex; align-items: flex-end; gap: 20px; }
.stat__num {
    font-size: clamp(4.4rem, 9vw, 7.5rem);
    font-weight: 300;
    line-height: 0.85;
    direction: ltr;
    font-variant-numeric: lining-nums;
    letter-spacing: -0.03em;
}
.stat__num sup { font-size: 0.4em; color: var(--garnet-light); vertical-align: top; position: relative; top: 0.1em; }
.stat__label { color: var(--text-inv-soft); max-width: 22ch; line-height: 1.7; padding-bottom: 6px; }
@media (min-width: 960px) {
    .results__top { grid-template-columns: 1.2fr 0.8fr; gap: var(--gap); }
    .stat { justify-content: flex-end; }
}

.feature-case { display: grid; gap: 32px; padding-bottom: clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line-inv); margin-bottom: clamp(48px, 6vw, 80px); }
.feature-case__copy { display: grid; gap: 14px; align-content: center; }
@media (min-width: 960px) { .feature-case { grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.7fr); gap: 56px; } }

/* Before / after comparison — clinical images keep their native framing */
.compare {
    --pos: 50%;
    position: relative;
    aspect-ratio: 16 / 9.4;
    overflow: hidden;
    background: var(--smoke);
    user-select: none;
    touch-action: pan-y;
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__after { clip-path: inset(0 0 0 var(--pos)); }
[dir="rtl"] .compare__after { clip-path: inset(0 var(--pos) 0 0); }
.compare__handle { position: absolute; top: 0; bottom: 0; inset-inline-start: var(--pos); width: 1px; background: rgba(255, 255, 255, 0.9); pointer-events: none; }
.compare__handle::after {
    content: ""; position: absolute; top: 50%; left: 50%;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--ivory) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141110' stroke-width='1.5'><path d='M9 7l-5 5 5 5M15 7l5 5-5 5'/></svg>") center / 20px no-repeat;
    transform: translate(-50%, -50%);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
}
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare__range:focus-visible + .compare__handle::after { outline: 2px solid var(--garnet-light); outline-offset: 3px; }
.compare__tag { position: absolute; top: 14px; z-index: 2; padding: 4px 12px; border-radius: 999px; background: rgba(20, 17, 16, 0.7); color: #fff; font-size: 0.78rem; pointer-events: none; }
.compare__tag--before { inset-inline-start: 14px; }
.compare__tag--after { inset-inline-end: 14px; }

/* Case cards — composite clinical photos are never cropped (contain) */
.cases-grid { display: grid; gap: 40px 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.cases-grid [hidden] { display: none; }
.case { display: grid; gap: 12px; align-content: start; }
.case__media { aspect-ratio: 4 / 5; background: var(--ivory-2); overflow: hidden; }
.dark .case__media { background: var(--smoke); }
.case__media img { width: 100%; height: 100%; object-fit: contain; transition: opacity 0.3s; }
.case__media a:hover img { opacity: 0.88; }
.case__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; height: 100%; }
.case__pair a { position: relative; display: block; min-height: 0; }
.case__pair span { position: absolute; bottom: 8px; inset-inline-start: 8px; padding: 2px 10px; border-radius: 999px; font-size: 0.74rem; background: rgba(20, 17, 16, 0.72); color: #fff; }
.case__cat { font-size: var(--fs-label); color: var(--garnet); font-weight: 500; }
.dark .case__cat { color: var(--garnet-light); }
.case__title { font-size: 1.05rem; font-weight: 500; line-height: 1.5; }
.case__desc { font-size: var(--fs-small); color: var(--text-soft); }
.dark .case__desc { color: var(--text-inv-soft); }

.note { display: flex; gap: 10px; font-size: var(--fs-small); color: var(--text-soft); max-width: 70ch; }
.note::before { content: ""; width: 5px; height: 5px; margin-top: 0.8em; border-radius: 50%; background: var(--garnet); flex: none; }
.dark .note { color: var(--text-inv-soft); }
.results__foot { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; margin-top: 44px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filters button { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); font-size: 0.9rem; transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--text-inv); border-color: var(--ink); }

/* Lightbox */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(20, 17, 16, 0.97); color: var(--text-inv); }
.lightbox::backdrop { background: rgba(20, 17, 16, 0.8); }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px var(--gutter); }
.lightbox__stage { display: grid; place-items: center; padding: 0 var(--gutter); min-height: 0; }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox__caption { padding: 16px var(--gutter) 24px; text-align: center; font-size: var(--fs-small); color: var(--text-inv-soft); }
.lightbox__nav { display: flex; gap: 8px; }
.lightbox__btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-inv); display: grid; place-items: center; }
.lightbox__btn:hover { background: var(--ivory); color: var(--ink); }
.lightbox__btn svg { width: 18px; height: 18px; }
[dir="rtl"] .lightbox__dir svg { transform: scaleX(-1); }
.count { font-size: var(--fs-label); font-variant-numeric: tabular-nums; direction: ltr; }

/* 13 — Booking & forms ---------------------------------------------------- */

.booking__grid { display: grid; gap: var(--gap); }
.booking__info { display: grid; gap: 24px; align-content: start; }
.booking__info .t-h2 { max-width: 14ch; }
.facts { display: grid; gap: 26px; margin-top: 12px; padding-top: 28px; border-top: 1px solid var(--line); }
.fact h3 { font-size: var(--fs-label); font-weight: 500; color: var(--text-soft); margin-bottom: 6px; }
html[lang="en"] .fact h3 { letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.72rem; }
.fact li + li { margin-top: 4px; }
.fact a { border-bottom: 1px solid var(--line); }
.fact a:hover { border-color: currentColor; }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); } }
.fact bdi, .hero__meta bdi, .footer__cols bdi, .menu__meta bdi, .hours bdi { white-space: nowrap; }
@media (min-width: 1024px) { .booking__grid { grid-template-columns: 0.9fr 1.1fr; align-items: start; } }

.form-card { background: var(--ink); color: var(--text-inv); padding: clamp(26px, 4vw, 52px); }
.form-card__head { display: grid; gap: 6px; margin-bottom: 30px; }
.form-card__head p { font-size: var(--fs-small); color: var(--text-inv-soft); }

.booking-form { display: grid; gap: 20px; }
.booking-form__row { display: grid; gap: 20px; }
@media (min-width: 640px) { .booking-form__row { grid-template-columns: 1fr 1fr; } }
.field { position: relative; display: grid; gap: 6px; }
.field label { font-size: var(--fs-label); font-weight: 500; color: var(--text-inv-soft); }
.field input, .field select, .field textarea {
    width: 100%; min-height: 50px; padding: 10px 0;
    background: transparent; border: 0; border-bottom: 1px solid var(--line-inv); border-radius: 0;
    color: var(--text-inv); font-size: 1.02rem; outline: none;
    transition: border-color 0.2s;
    color-scheme: dark;
}
.field textarea { min-height: 96px; resize: vertical; }
.field select {
    appearance: none; -webkit-appearance: none; padding-inline-end: 26px;
    background: transparent url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b4a99e' stroke-width='1.5'><path d='M6 9l6 6 6-6'/></svg>") no-repeat right 0 center / 18px;
}
[dir="rtl"] .field select { background-position: left 0 center; }
.field select option { background: var(--ink); color: var(--text-inv); }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--ivory); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; box-shadow: 0 1px 0 0 var(--garnet-light); }
.field-error { font-size: var(--fs-small); color: #f0a4ad; }
.field--invalid input, .field--invalid select, .field--invalid textarea { border-bottom-color: #f0a4ad; }
.booking-form__submit { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-top: 8px; }
.booking-form__hint { font-size: var(--fs-small); color: var(--text-inv-soft); max-width: 32ch; }

.alert { padding: 14px 18px; margin-bottom: 22px; border: 1px solid; font-size: 0.95rem; line-height: 1.7; }
.alert a { margin-inline-start: 8px; text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }
.alert--success { color: #cde7d4; border-color: rgba(140, 200, 160, 0.4); background: rgba(120, 190, 140, 0.08); }
.alert--error { color: #f4c6cc; border-color: rgba(208, 107, 120, 0.5); background: rgba(208, 107, 120, 0.1); }

/* 14 — Inner pages --------------------------------------------------------- */

.page-hero { padding-top: calc(var(--header-h) + clamp(48px, 7vw, 96px)); padding-bottom: clamp(48px, 6vw, 80px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--fs-small); color: var(--text-inv-soft); margin-bottom: 26px; }
.crumbs a:hover { color: var(--text-inv); }
.crumbs li + li::before { content: "/"; margin-inline-end: 8px; opacity: 0.5; }
.page-hero__grid { display: grid; gap: 20px; }
.page-hero__title { max-width: 18ch; margin-top: 18px; }
@media (min-width: 960px) {
    .page-hero__grid { grid-template-columns: 1.15fr 0.85fr; gap: var(--gap); align-items: end; }
}

/* Service detail */
.detail__grid { display: grid; gap: var(--gap); }
.detail__main { display: grid; gap: 40px; align-content: start; }
.detail__lead { font-size: clamp(1.25rem, 1.8vw, 1.6rem); line-height: 1.75; max-width: 40ch; color: var(--text); }
html[lang="en"] .detail__lead { font-weight: 300; line-height: 1.55; }
.detail__sub li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.detail__sub { border-top: 1px solid var(--line); margin-top: 14px; }
.detail__sub span { color: var(--garnet); font-size: var(--fs-small); font-variant-numeric: tabular-nums; padding-top: 0.2em; }
.highlight { padding: 22px 26px; border-inline-start: 2px solid var(--garnet); background: var(--ivory-2); font-size: 1.08rem; line-height: 1.8; }
.detail__aside { display: grid; gap: 32px; align-content: start; }
.detail__photo { aspect-ratio: 4 / 5; max-width: 300px; }
.aside-nav { border-top: 1px solid var(--line); }
.aside-nav a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 14px; border-bottom: 1px solid var(--line); transition: color 0.2s; }
.aside-nav a:hover, .aside-nav a[aria-current="page"] { color: var(--garnet); }
.aside-card { background: var(--ink); color: var(--text-inv); padding: 28px; display: grid; gap: 14px; }
.aside-card p { color: var(--text-inv-soft); font-size: 0.97rem; }
@media (min-width: 1024px) {
    .detail__grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.85fr); }
    .detail__aside { position: sticky; top: calc(var(--header-h) + 32px); }
}
.next-link { display: grid; gap: 14px; }
.next-link a.t-h1 { transition: color 0.2s; }
.next-link a.t-h1:hover { color: var(--garnet-light); }

/* Contact */
.hours { border-top: 1px solid var(--line); }
.hours li { display: flex; justify-content: space-between; gap: 18px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.hours li span:last-child { color: var(--text-soft); }
.hours li.is-closed span:last-child { color: var(--garnet); }
.map-embed { aspect-ratio: 16 / 9; overflow: hidden; background: var(--sand); }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* Hover preview (services page, fine pointers only) */
.hover-preview { position: fixed; top: 0; left: 0; z-index: 40; width: 240px; aspect-ratio: 4 / 5; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity 0.2s; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.5); }
.hover-preview.is-on { opacity: 1; }
.hover-preview img { width: 100%; height: 100%; object-fit: cover; }

/* 15 — Footer -------------------------------------------------------------- */

.site-footer { padding-top: clamp(72px, 8vw, 120px); padding-bottom: 28px; }
.footer__lead { display: grid; gap: 28px; padding-bottom: clamp(48px, 6vw, 72px); border-bottom: 1px solid var(--line-inv); }
.footer__lead .t-h2 { max-width: 18ch; }
@media (min-width: 960px) { .footer__lead { grid-template-columns: 1.2fr 0.8fr; align-items: end; } .footer__lead .actions { justify-content: flex-end; } }
.footer__cols { display: grid; gap: 36px; padding-block: 48px; }
.footer__cols h2 { font-size: var(--fs-label); font-weight: 500; color: var(--text-inv); margin-bottom: 12px; }
html[lang="en"] .footer__cols h2 { letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.72rem; }
.footer__cols p, .footer__cols li { color: var(--text-inv-soft); font-size: 0.95rem; }
.footer__cols li + li { margin-top: 6px; }
.footer__cols a:hover { color: var(--text-inv); }
@media (min-width: 640px) { .footer__cols { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .footer__cols { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; border-top: 1px solid var(--line-inv); font-size: var(--fs-small); color: var(--text-inv-soft); }
.footer__bottom a:hover { color: var(--text-inv); }

/* Floating WhatsApp */
.float-wa { position: fixed; inset-inline-end: 18px; bottom: 18px; z-index: 70; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--ivory); box-shadow: 0 0 0 1px var(--line-inv), 0 14px 30px -12px rgba(0, 0, 0, 0.5); transition: background-color 0.2s; }
.float-wa:hover { background: var(--garnet); }
.float-wa svg { width: 24px; height: 24px; }

/* 16 — Motion & accessibility ------------------------------------------- */

/* Reveal: opacity + small translate, only when JS has opted in. The hero is
   never hidden — it is fully composed before any script runs. */
.js-motion [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js-motion [data-reveal].is-in { opacity: 1; transform: none; }

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