/* Mira Dental Center — site styles
   Layout idea: a clinical case file. Navy "plates" carry the photographs, as in the clinic's own case posts;
   cool paper carries the reading. One accent (sky) on navy, one warm note (gum pink) taken from the photographs. */
/* Fonts: Alexandria and IBM Plex Sans Arabic, SIL Open Font License 1.1, served from this site */
@font-face { font-family: "Alexandria"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/alexandria-arabic-500-normal.woff2") format("woff2"); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }
@font-face { font-family: "Alexandria"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/alexandria-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Alexandria"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/alexandria-arabic-600-normal.woff2") format("woff2"); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }
@font-face { font-family: "Alexandria"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/alexandria-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Alexandria"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/alexandria-arabic-700-normal.woff2") format("woff2"); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }
@font-face { font-family: "Alexandria"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/alexandria-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2") format("woff2"); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-arabic-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2") format("woff2"); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-sans-arabic-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2") format("woff2"); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-arabic-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --navy-950: #071226;
  --navy-900: #0B1B3A;
  --navy-800: #12284F;
  --navy-700: #1C3A6E;
  --sky: #63CBF1;
  --sky-ink: #0A69AE;
  --paper: #F3F6FB;
  --surface: #FFFFFF;
  --ink: #0D1B33;
  --muted: #4F5F7A;
  --line: #D6DFEC;
  --on-navy: #EDF3FC;
  --on-navy-muted: #A9BBD8;
  --line-navy: rgba(255, 255, 255, .16);
  --gum: #D9667A;
  --gum-soft: #FBE9EC;
  --wa: #128C4B;
  --wa-hover: #0E7A40;
  --font-display: "Alexandria", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  --radius: 14px;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.8;
}
html[lang="en"] body { line-height: 1.65; }
img, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: var(--sky-ink); text-underline-offset: 3px; }
p { margin: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.35; text-wrap: balance; font-weight: 600; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3 { line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 4.6vw, 50px); font-weight: 700; }
h2 { font-size: clamp(25px, 3.1vw, 36px); }
h3 { font-size: 20px; }
:focus-visible { outline: 3px solid var(--gum); outline-offset: 3px; border-radius: 4px; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { width: min(1160px, 100%); margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }

/* ---------- Header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--navy-900); }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--navy-900); color: var(--on-navy); border-bottom: 1px solid var(--line-navy); }
.top .wrap { display: flex; align-items: center; gap: 22px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--on-navy); text-decoration: none; flex: none; }
.brand img { width: 62px; height: auto; }
.brand-name { display: grid; line-height: 1.1; direction: ltr; }
.brand-name b { font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: .2em; }
.brand-name small { font-size: 10px; letter-spacing: .3em; color: var(--on-navy-muted); margin-top: 3px; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; align-items: center; }
.nav a { color: var(--on-navy); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 8px; white-space: nowrap; }
.nav a:hover { background: rgba(255, 255, 255, .08); }
.nav a[aria-current="page"] { color: var(--sky); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.lang { color: var(--on-navy); text-decoration: none; font: 600 13.5px var(--font-display); border: 1px solid var(--line-navy); border-radius: 999px; padding: 6px 14px; white-space: nowrap; }
.lang:hover { border-color: var(--sky); color: var(--sky); }
.menu-btn { display: none; background: none; border: 1px solid var(--line-navy); color: var(--on-navy); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; padding: 0; }
.menu-btn svg { width: 22px; height: 22px; display: block; margin: auto; }
@media (max-width: 1020px) {
  .nav { display: none; position: absolute; inset-inline: 0; top: 100%; background: var(--navy-900); border-bottom: 1px solid var(--line-navy); flex-direction: column; align-items: stretch; padding: 10px var(--gutter-r) 18px var(--gutter-l); gap: 2px; }
  .nav.open { display: flex; }
  .nav a { padding: 13px 12px; font-size: 17px; border-bottom: 1px solid var(--line-navy); border-radius: 0; }
  .top-actions { margin-inline-start: auto; }
  .menu-btn { display: block; }
  .top .btn-wa { display: none; }
}

/* ---------- Buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 600 16px/1.3 var(--font-display); padding: 13px 22px; border-radius: 12px; text-decoration: none; cursor: pointer; border: 1.5px solid transparent; text-align: center; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-hover); }
.btn-solid { background: var(--navy-800); color: #fff; }
.btn-solid:hover { background: var(--navy-700); }
.btn-ghost { border-color: var(--navy-800); color: var(--navy-800); background: transparent; }
.btn-ghost:hover { background: rgba(18, 40, 79, .06); }
.plate .btn-ghost { border-color: var(--line-navy); color: var(--on-navy); }
.plate .btn-ghost:hover { border-color: var(--sky); color: var(--sky); background: transparent; }
.plate .btn-solid { background: var(--sky); color: var(--navy-950); }
.btn-sm { padding: 9px 16px; font-size: 14.5px; border-radius: 10px; }
.text-link { font: 600 16px var(--font-display); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.text-link:hover { text-decoration: underline; }
.text-link svg { width: 18px; height: 18px; }
html[dir="rtl"] .flip { transform: scaleX(-1); }

/* ---------- Bands ---------- */
.plate { background: radial-gradient(1100px 520px at 78% -10%, #1B3F7C 0%, rgba(27, 63, 124, 0) 60%), var(--navy-900); color: var(--on-navy); }
html[dir="rtl"] .plate { background: radial-gradient(1100px 520px at 22% -10%, #1B3F7C 0%, rgba(27, 63, 124, 0) 60%), var(--navy-900); }
.plate a:not(.btn) { color: var(--sky); }
.band { padding-block: clamp(56px, 8vw, 96px); }
.band-tight { padding-block: clamp(40px, 6vw, 64px); }
.white { background: var(--surface); }
.sec-head { display: grid; gap: 12px; max-width: 44em; margin-bottom: clamp(28px, 4vw, 44px); }
.sec-head p { color: var(--muted); font-size: 18px; }
.plate .sec-head p { color: var(--on-navy-muted); }
.eyebrow { font: 600 13.5px var(--font-display); color: var(--sky-ink); letter-spacing: .04em; }
html[lang="en"] .eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12.5px; }
.plate .eyebrow { color: var(--sky); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(40px, 6vw, 76px) clamp(48px, 7vw, 84px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 20px; justify-items: start; min-width: 0; }
.hero-copy .lead { font-size: clamp(17px, 1.7vw, 19.5px); color: var(--on-navy-muted); max-width: 36em; }
.hero-copy .lead strong { color: var(--on-navy); font-weight: 600; }
.proof { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 14px 34px; border-top: 1px solid var(--line-navy); padding-top: 22px; width: 100%; }
.proof li { display: grid; gap: 2px; }
.proof b { font: 700 26px/1.2 var(--font-display); color: #fff; font-variant-numeric: tabular-nums; }
.proof li > span, .proof a > span { font-size: 14px; color: var(--on-navy-muted); line-height: 1.5; }
.proof a { text-decoration: none; display: grid; gap: 2px; }
.proof a:hover span { text-decoration: underline; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.page-hero { padding-block: clamp(36px, 5vw, 64px); }
.page-hero .hero-copy { max-width: 46em; }
.crumbs { font-size: 14px; color: var(--on-navy-muted); }
.crumbs a { color: var(--on-navy-muted); }

/* ---------- Case sheet + before/after ---------- */
.case { border: 1px solid var(--line-navy); border-radius: var(--radius); background: rgba(7, 18, 38, .55); color: var(--on-navy); display: grid; gap: 16px; padding: 18px; min-width: 0; align-content: start; }
.case-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; border-bottom: 1px solid var(--line-navy); padding-bottom: 12px; }
.case-head h2, .case-head h3 { font-size: 18px; line-height: 1.4; letter-spacing: 0; color: #fff; }
.case-head span { font-size: 13.5px; color: var(--on-navy-muted); }
.view { display: grid; gap: 8px; margin: 0; }
.view figcaption, .view-label { font-size: 13.5px; color: var(--on-navy-muted); text-align: center; }
.ba { position: relative; direction: ltr; border: 1px solid var(--line-navy); border-radius: 8px; overflow: hidden; background: #000; --pos: 50%; touch-action: pan-y; user-select: none; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba .ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: #fff; transform: translateX(-1px); pointer-events: none; }
.ba .ba-line::after { content: ""; position: absolute; top: 50%; left: 50%; width: 38px; height: 38px; border-radius: 50%; transform: translate(-50%, -50%); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1B3A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-5 6 5 6M15 6l5 6-5 6'/%3E%3C/svg%3E") center / 22px no-repeat; box-shadow: 0 2px 10px rgba(0, 0, 0, .4); }
.ba .tag { position: absolute; bottom: 8px; font: 600 12.5px var(--font-display); padding: 3px 10px; border-radius: 999px; pointer-events: none; direction: rtl; }
html[lang="en"] .ba .tag { direction: ltr; }
.ba .tag-before { left: 8px; background: var(--gum); color: #fff; }
.ba .tag-after { right: 8px; background: var(--sky); color: var(--navy-950); }
.ba input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.ba:focus-within { outline: 3px solid var(--gum); outline-offset: 2px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; direction: ltr; }
.pair figure { margin: 0; position: relative; border: 1px solid var(--line-navy); border-radius: 8px; overflow: hidden; background: #000; aspect-ratio: 16 / 10; }
.pair img { width: 100%; height: 100%; object-fit: cover; }
.pair .tag { position: absolute; bottom: 8px; left: 8px; font: 600 12.5px var(--font-display); padding: 3px 10px; border-radius: 999px; }
.pair .tag-before { background: var(--gum); color: #fff; }
.pair .tag-after { background: var(--sky); color: var(--navy-950); }
.case-note { font-size: 14.5px; color: var(--on-navy-muted); line-height: 1.7; }
.case-note small { display: block; margin-top: 6px; font-size: 12.5px; opacity: .85; }
.case-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--on-navy-muted); border-top: 1px solid var(--line-navy); padding-top: 10px; }
.case-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 22px; align-items: start; }
.case.todo { border-style: dashed; background: transparent; min-height: 220px; align-content: center; justify-items: center; text-align: center; gap: 8px; padding: 28px; }
.case.todo h3 { font-size: 18px; color: #fff; }
.case.todo p { color: var(--on-navy-muted); font-size: 15px; max-width: 26em; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.chip { font: 600 15px var(--font-display); border: 1px solid var(--line-navy); background: transparent; color: var(--on-navy); padding: 8px 18px; border-radius: 999px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--sky); border-color: var(--sky); color: var(--navy-950); }
.disclaimer { font-size: 14px; color: var(--on-navy-muted); margin-top: 26px; max-width: 60em; }

/* ---------- Two paths ---------- */
.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.path { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; color: var(--ink); text-decoration: none; }
.path-media { aspect-ratio: 16 / 8; background: var(--navy-900); position: relative; overflow: hidden; }
.path-media img { width: 100%; height: 100%; object-fit: cover; }
.path-media svg { width: 100%; height: 100%; display: block; }
.path-media.strips { display: grid; align-content: center; justify-items: center; gap: 10px; padding: 18px; }
.path-media.strips img { width: auto; max-width: 100%; height: auto; max-height: 100%; min-height: 0; object-fit: contain; border-radius: 8px; border: 1px solid var(--line-navy); }
.path-body { padding: 24px 26px 28px; display: grid; gap: 12px; align-content: start; }
.path-body p { color: var(--muted); }
.path-body ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.path-body li { font-size: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; color: var(--ink); }
.path:hover h3 { color: var(--sky-ink); }
@media (max-width: 760px) { .paths { grid-template-columns: 1fr; } }

/* ---------- Steps ---------- */
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.steps li { counter-increment: s; display: grid; gap: 8px; align-content: start; border-top: 2px solid var(--navy-800); padding-top: 16px; }
.steps li::before { content: counter(s, decimal-leading-zero); font: 700 15px var(--font-display); color: var(--sky-ink); letter-spacing: .08em; }
.steps p { color: var(--muted); font-size: 16px; }
.steps .must { color: var(--ink); font-weight: 500; background: var(--gum-soft); border-radius: 8px; padding: 8px 12px; }
.plate .steps li { border-top-color: var(--sky); }
.plate .steps li::before { color: var(--sky); }
.plate .steps p { color: var(--on-navy-muted); }
.plate .steps .must { color: var(--ink); }

/* ---------- Treatments ---------- */
.treats { display: grid; gap: 0; border-top: 1px solid var(--line); }
.treat { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; padding-block: 24px; border-bottom: 1px solid var(--line); align-items: center; }
.treat-media { aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--navy-900); display: grid; place-items: center; }
.treat-media img { width: 100%; height: 100%; object-fit: cover; }
.treat-media svg { width: 54px; height: 54px; color: var(--sky); }
.treat-body { display: grid; gap: 6px; }
.treat-body p { color: var(--muted); }
.treat-body .for { font-size: 14.5px; color: var(--ink); }
@media (max-width: 620px) { .treat { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: start; } .treat-media svg { width: 36px; height: 36px; } }

.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .cols-2 { grid-template-columns: 1fr; } }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; }
.ticks li::before { content: ""; width: 22px; height: 22px; margin-top: 5px; border-radius: 50%; background: var(--sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23071226' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }
.note-card { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 22px 24px; display: grid; gap: 8px; }
.plate .note-card { background: rgba(7, 18, 38, .55); border-color: var(--line-navy); }
.note-card .label { font-size: 14px; color: var(--muted); }
.plate .note-card .label { color: var(--on-navy-muted); }
.note-card .big { font: 600 24px/1.3 var(--font-display); }
.muted { color: var(--muted); }
.plate .muted { color: var(--on-navy-muted); }
.stack { display: grid; gap: 18px; align-content: start; min-width: 0; }
.stack-lg { display: grid; gap: 28px; align-content: start; min-width: 0; }

/* ---------- People ---------- */
.prof { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.prof-photo { border-radius: 200px 200px 16px 16px; overflow: hidden; aspect-ratio: 3 / 4; background: var(--navy-900); }
.prof-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.creds { direction: ltr; text-align: start; unicode-bidi: plaintext; font-size: 14.5px; color: var(--muted); letter-spacing: .01em; }
html[dir="rtl"] .creds { text-align: right; }
.roles { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.roles li { padding-inline-start: 18px; position: relative; }
.roles li::before { content: ""; position: absolute; inset-inline-start: 0; top: .72em; width: 8px; height: 8px; border-radius: 50%; background: var(--gum); }
@media (max-width: 760px) { .prof { grid-template-columns: 1fr; } .prof-photo { max-width: 280px; } }
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 22px; }
.person { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 18px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.person .ph { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; background: var(--navy-800); display: grid; place-items: center; color: var(--sky); font: 600 24px var(--font-display); }
.person .ph img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; }
.person p { color: var(--muted); font-size: 15.5px; }
.person h3 { font-size: 18px; margin-bottom: 2px; }

/* ---------- Ratings ---------- */
.ratings { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 22px; }
.rating { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 6px; text-decoration: none; color: var(--ink); }
.rating b { font: 700 40px/1.1 var(--font-display); color: var(--navy-800); font-variant-numeric: tabular-nums; }
.rating span { color: var(--muted); font-size: 15.5px; }
.rating em { font-style: normal; font: 600 14.5px var(--font-display); color: var(--sky-ink); margin-top: 6px; }
a.rating:hover { border-color: var(--sky-ink); }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 16px; }
th, td { text-align: start; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font: 600 15px var(--font-display); background: var(--paper); }
tbody th { font-weight: 500; color: var(--muted); width: 26%; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
td.hl { background: #F0F9FE; }
@media (max-width: 620px) { table { min-width: 0; font-size: 14.5px; } th, td { padding: 10px 10px; } tbody th { width: 24%; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font: 600 18px/1.5 var(--font-display); display: grid; grid-template-columns: minmax(0, 1fr) 24px; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 24px; height: 24px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A69AE' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 22px; color: var(--muted); max-width: 46em; display: grid; gap: 10px; }

/* ---------- Forms ---------- */
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 3vw, 30px); display: grid; gap: 16px; color: var(--ink); }
.form h3 { font-size: 21px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }
label, .field { display: grid; gap: 6px; font-weight: 500; font-size: 15px; }
input, select, textarea { font: inherit; font-size: 16px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; width: 100%; min-width: 0; }
textarea { min-height: 84px; resize: vertical; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts label { display: inline-flex; align-items: center; gap: 0; font-weight: 500; cursor: pointer; }
.opts input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opts span { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 7px 16px; font-size: 15px; }
.opts input:checked + span { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.opts input:focus-visible + span { outline: 3px solid var(--gum); outline-offset: 2px; }
.form-note { color: var(--muted); font-size: 14px; }
.result { border-radius: 12px; background: #EAF7EF; border: 1px solid #BFE3CD; padding: 14px 16px; font-size: 15.5px; display: grid; gap: 10px; justify-items: start; }
.result.err { background: var(--gum-soft); border-color: #F1C3CB; }

/* ---------- Contact ---------- */
.info { display: grid; gap: 22px; align-content: start; margin: 0; }
.info dt { color: var(--muted); font-size: 14px; }
.info dd { margin: 2px 0 0; font-size: 17px; }
.plate .info dt { color: var(--on-navy-muted); }
.cta-band { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.cta-band p { color: var(--on-navy-muted); margin-top: 8px; max-width: 40em; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
footer { background: var(--navy-950); color: var(--on-navy-muted); font-size: 15px; padding-block: 48px calc(28px + env(safe-area-inset-bottom, 0px)); }
footer a { color: var(--on-navy); text-decoration: none; }
footer a:hover { color: var(--sky); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 32px; }
.foot-grid h4 { font-size: 14px; color: var(--sky); margin-bottom: 12px; font-weight: 600; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-logo { width: 170px; margin-bottom: 14px; }
.foot-base { border-top: 1px solid var(--line-navy); margin-top: 36px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: 13.5px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- Mobile action bar ---------- */
.dock { display: none; }
@media (max-width: 760px) {
  .dock { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; inset: auto 0 0 0; z-index: 40; background: var(--navy-900); border-top: 1px solid var(--line-navy); padding: 10px var(--gutter-r) calc(10px + env(safe-area-inset-bottom, 0px)) var(--gutter-l); }
  .dock .btn { padding: 11px 10px; font-size: 15px; }
  .dock .btn-ghost { border-color: var(--line-navy); color: var(--on-navy); }
  footer { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}

/* The one moment of motion: the aligner settles onto the teeth */
.aligner-layer { animation: settle 1.4s cubic-bezier(.2, .7, .2, 1) both; transform-origin: center; }
@keyframes settle { from { transform: translateY(-12px); opacity: .5; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .aligner-layer { animation: none; } html { scroll-behavior: auto; } .faq summary::after { transition: none; } }

/* ================= v2: the professor's brand, Graphy, interaction ================= */
.brand-name { direction: inherit; }
.brand-name b { font-size: 17px; font-weight: 600; letter-spacing: .01em; }
html[lang="ar"] .brand-name b { letter-spacing: 0; font-size: 18px; }
.brand-name small { font-size: 9.5px; letter-spacing: .28em; direction: ltr; margin-top: 4px; }
html[dir="rtl"] .brand-name small { text-align: right; }

/* Hero built around the professor */
.hero-prof { padding-bottom: 0; overflow: hidden; }
.hero-prof .hero-grid { align-items: end; }
.hero-prof .hero-copy { padding-bottom: clamp(40px, 6vw, 76px); }
.hero-prof h1 { font-size: clamp(40px, 6.2vw, 70px); line-height: 1.2; }
.titles { display: flex; flex-wrap: wrap; gap: 10px; }
.titles span { font: 600 clamp(15px, 1.5vw, 18px)/1.4 var(--font-display); padding: 7px 18px; border-radius: 999px; background: var(--sky); color: var(--navy-950); }
.titles span + span { background: transparent; color: var(--sky); box-shadow: inset 0 0 0 1.5px var(--sky); }
.hero-prof .creds { color: var(--on-navy-muted); }
.prof-stage { position: relative; align-self: end; justify-self: center; width: min(100%, 480px); aspect-ratio: 4 / 4.9; --px: 0; --py: 0; }
.prof-stage.small { width: min(100%, 400px); }
.prof-stage > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; z-index: 1; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .45)); }
.halo { position: absolute; inset: 4% -8% -12% -8%; translate: calc(var(--px) * -16px) calc(var(--py) * -12px); transition: translate .5s cubic-bezier(.2, .7, .2, 1); }
.halo i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(99, 203, 241, .34); }
.halo i:nth-child(1) { border: 0; background: radial-gradient(circle at 50% 42%, rgba(99, 203, 241, .42), rgba(28, 58, 110, .3) 52%, rgba(28, 58, 110, 0) 70%); }
.halo i:nth-child(2) { inset: 9%; }
.halo i:nth-child(3) { inset: -9%; opacity: .5; }
.badge { position: absolute; z-index: 2; display: grid; gap: 2px; max-width: 232px; padding: 10px 14px; border-radius: 14px; background: rgba(7, 18, 38, .82); border: 1px solid var(--line-navy); box-shadow: 0 12px 28px rgba(0, 0, 0, .35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); translate: calc(var(--px) * 10px) calc(var(--py) * 8px); transition: translate .5s cubic-bezier(.2, .7, .2, 1); animation: bob 7s ease-in-out infinite; }
.badge b { font: 600 14px/1.4 var(--font-display); color: var(--sky); }
.badge span { font-size: 12.5px; line-height: 1.5; color: var(--on-navy); }
.badge.b1 { top: 39%; inset-inline-start: -11%; }
.badge.b2 { top: 58%; inset-inline-end: -9%; animation-delay: -2.4s; }
.badge.b3 { bottom: 6%; inset-inline-start: -3%; animation-delay: -4.6s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@media (max-width: 900px) {
  .hero-prof .hero-copy { padding-bottom: 8px; }
  .prof-stage { width: min(100%, 360px); margin-top: 8px; }
  .badge { max-width: 190px; padding: 8px 12px; }
  .badge.b1 { inset-inline-start: -2%; } .badge.b2 { inset-inline-end: -2%; } .badge.b3 { display: none; }
}

/* Credentials rail */
.rail { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 26px 0; }
.rail li { display: grid; gap: 4px; align-content: start; padding-inline: 20px; border-inline-start: 2px solid var(--sky); }
.rail b { font: 600 17px/1.4 var(--font-display); }
.rail span { color: var(--muted); font-size: 14.5px; line-height: 1.65; }

/* "What are you looking for?" */
.finder-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.finder-tab { font: 600 15.5px/1.3 var(--font-display); padding: 12px 20px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.finder-tab:hover { border-color: var(--navy-800); }
.finder-tab[aria-pressed="true"] { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.finder-panel { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(22px, 4vw, 48px); align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 3.4vw, 40px); animation: panel-in .4s cubic-bezier(.2, .7, .2, 1) both; }
.finder-panel h3 { font-size: clamp(21px, 2.3vw, 27px); }
.finder-panel p { color: var(--muted); }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.finder-media { background: radial-gradient(420px 260px at 60% 20%, #1B3F7C 0%, rgba(27, 63, 124, 0) 70%), var(--navy-900); border-radius: 16px; aspect-ratio: 16 / 10; overflow: hidden; display: grid; place-items: center; padding: 18px; }
.finder-media:has(.cover) { padding: 0; }
.finder-media .strips { display: grid; gap: 10px; width: 100%; }
.finder-media:has(.strips) { aspect-ratio: auto; }
.finder-media .strips img { width: 100%; aspect-ratio: 1100 / 346; object-fit: cover; border-radius: 8px; border: 1px solid var(--line-navy); }
.finder-media img.cover { width: 100%; height: 100%; object-fit: cover; object-position: center 24%; }
.finder-media img.contain { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 16px 24px rgba(0, 0, 0, .5)); }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.tags li { font-size: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; }
@media (max-width: 760px) { .finder-panel { grid-template-columns: 1fr; } .finder-tab { flex: 1 1 calc(50% - 10px); padding: 11px 12px; font-size: 14.5px; } }

/* Lead case: two views side by side on wide screens */
@media (min-width: 820px) {
  .case-lead .case { grid-template-columns: 1fr 1fr; align-items: end; padding: 24px; gap: 18px 24px; }
  .case-lead .case-head, .case-lead .case-note { grid-column: 1 / -1; }
  .case-lead .case-head h3 { font-size: 22px; }
}

/* Graphy */
.float { animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(-1.2deg); } }
.graphy-logo { height: auto; }
.graphy-card { position: relative; border-radius: 22px; padding: 30px 26px 64px; aspect-ratio: 16 / 11; display: grid; place-items: center; overflow: hidden; background: radial-gradient(520px 320px at 60% 10%, #1B3F7C 0%, rgba(27, 63, 124, 0) 70%), var(--navy-900); }
.graphy-card img.float { width: 92%; height: auto; filter: drop-shadow(0 22px 30px rgba(0, 0, 0, .5)); }
.graphy-card .graphy-logo { position: absolute; bottom: 20px; inset-inline-start: 24px; width: 118px; }
.aligner-stage { position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; --px: 0; --py: 0; }
.aligner-stage .halo { inset: -6% 8%; }
.aligner-stage img { position: relative; z-index: 1; width: 96%; height: auto; filter: drop-shadow(0 24px 36px rgba(0, 0, 0, .5)); }
.hero-graphy .graphy-logo { margin-bottom: 2px; }
.feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 22px; }
.feat { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: grid; gap: 8px; align-content: start; transition: translate .25s, border-color .25s, box-shadow .25s, opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.feat:hover { translate: 0 -5px; border-color: var(--sky-ink); box-shadow: 0 14px 30px rgba(13, 27, 51, .1); }
.feat .num { font: 700 14px var(--font-display); color: var(--sky-ink); letter-spacing: .08em; }
.feat p { color: var(--muted); font-size: 15.5px; }
.appliance { margin: 0; display: grid; gap: 12px; justify-items: center; }
.appliance img { width: min(100%, 520px); height: auto; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .5)); }
.appliance figcaption { font-size: 13.5px; color: var(--on-navy-muted); }
.ortho { padding-bottom: 0; overflow: hidden; }
.ortho .cols-2 { align-items: end; }
.ortho .stack { padding-bottom: clamp(48px, 7vw, 84px); }
.ortho .graphy-logo { margin-top: 6px; }

/* Posters and lightbox */
.posters { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 20px; align-items: start; }
.posters.one { grid-template-columns: minmax(0, 420px); justify-content: center; }
.posters.three { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.poster { margin: 0; display: grid; gap: 8px; }
.poster button { padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; cursor: zoom-in; background: none; display: block; width: 100%; transition: translate .25s, rotate .25s, box-shadow .25s; }
.poster button:hover { translate: 0 -5px; rotate: -.5deg; box-shadow: 0 18px 36px rgba(13, 27, 51, .2); }
.poster img { width: 100%; }
.poster figcaption { font-size: 13.5px; color: var(--muted); text-align: center; }
.plate .poster button { border-color: var(--line-navy); }
.plate .poster figcaption { color: var(--on-navy-muted); }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: min(94vw, 760px); max-height: 94vh; overflow: visible; }
dialog.lightbox::backdrop { background: rgba(7, 18, 38, .88); }
dialog.lightbox img { max-width: 100%; max-height: 86vh; border-radius: 12px; margin: auto; }
dialog.lightbox form { display: flex; justify-content: center; margin-top: 12px; }
dialog.lightbox button { font: 600 15px var(--font-display); background: #fff; color: var(--navy-900); border: 0; border-radius: 999px; padding: 9px 22px; cursor: pointer; }

/* Reveal on scroll (only when scripting is on) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .badge, .float { animation: none; }
  .finder-panel { animation: none; }
  .halo, .badge { transition: none; translate: none; }
}
.brand { min-width: 0; }
.brand-name b { white-space: nowrap; }
@media (max-width: 520px) {
  .top .wrap { gap: 10px; }
  .brand { gap: 8px; }
  .brand img { width: 40px; }
  .brand-name b { font-size: 15px; }
  html[lang="ar"] .brand-name b { font-size: 16px; }
  .brand-name small { font-size: 8px; letter-spacing: .2em; }
  .top-actions { gap: 8px; }
  .lang { padding: 6px 10px; font-size: 12.5px; }
  .menu-btn { width: 40px; height: 40px; }
}
