/* The clinic's look: deep forest green, warm ivory and a little gold. The same colours as the laptop and phone apps. */
:root {
  --forest: #1F4D36;
  --forest-dark: #143626;
  --forest-light: #2A6045;
  --gold: #B8935A;
  --gold-light: #E3C892;
  --gold-soft: #F1E8D6;
  --ivory: #F6F2E9;
  --card: #FFFFFF;
  --sage: #E3EDDD;
  --ink: #26211B;
  --muted: #6F6454;
  --line: #E9E1D1;
  --danger: #B3382C;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(60, 40, 10, .05), 0 10px 28px rgba(60, 40, 10, .07);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 17px/1.6 var(--sans); }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; color: var(--forest); font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 6vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-top: 0; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--forest); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
[hidden] { display: none !important; }
section[id], main[id] { scroll-margin-top: 84px; }   /* the sticky header must not cover what we scroll to */

.kicker { margin: 0 0 .7em; color: var(--gold); font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.kicker.light { color: var(--gold-light); }
.section { padding-top: 72px; padding-bottom: 8px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--forest); color: #fff; padding: .6em 1em; z-index: 20; }
.skip:focus { left: 8px; top: 8px; border-radius: 8px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 10; background: rgba(20, 54, 38, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; border-bottom: 1px solid rgba(184, 147, 90, .35); }
.top-row { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 1.25rem; white-space: nowrap; }
.brand img { border-radius: 11px; }
.menu { display: flex; gap: 26px; margin-inline: auto; }
.menu a { color: rgba(255, 255, 255, .82); text-decoration: none; font-size: .95rem; padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.menu a:hover { color: #fff; border-bottom-color: var(--gold); }
.top-tools { display: flex; align-items: center; gap: 12px; }
.langs { display: flex; gap: 4px; background: rgba(255, 255, 255, .08); border-radius: 999px; padding: 3px; }
.lang { border: 0; background: transparent; color: rgba(255, 255, 255, .8); border-radius: 999px; padding: .35em .85em; font: inherit; font-size: .85rem; cursor: pointer; min-height: 36px; }
.lang[aria-pressed="true"] { background: #fff; color: var(--forest); font-weight: 700; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; border-radius: 999px; padding: .75em 1.6em; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; border: 1.5px solid var(--forest); min-height: 50px; transition: background-color .15s, color .15s, transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--forest); color: #fff; }
.btn.primary:hover { background: var(--forest-light); box-shadow: 0 8px 20px rgba(31, 77, 54, .25); }
.btn.ghost { background: #fff; color: var(--forest); border-color: var(--line); }
.btn.ghost:hover { background: var(--sage); border-color: var(--forest-light); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn.gold:hover { background: #A98348; box-shadow: 0 8px 20px rgba(184, 147, 90, .35); }
.btn.outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn.outline-light:hover { background: rgba(255, 255, 255, .12); }
.btn.big { font-size: 1.05rem; padding: .9em 1.9em; }
.btn.wa { gap: .6em; }
.btn.wa svg { flex: none; }
.or { align-self: center; color: rgba(255, 255, 255, .7); font-size: .95rem; }
.small-btn { min-height: 42px; padding: .45em 1.2em; font-size: .92rem; white-space: nowrap; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
:focus-visible { outline: 3px solid #1c6bd6; outline-offset: 3px; }

/* ---------- hero ---------- */
.hero { color: #fff; background: radial-gradient(900px 500px at 85% 10%, rgba(184, 147, 90, .18), transparent 60%), linear-gradient(160deg, var(--forest-light) 0%, var(--forest) 45%, var(--forest-dark) 100%); padding: 84px 0 96px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero h1 { color: #fff; max-width: 13em; }
.eyebrow { margin: 0 0 1.1em; color: var(--gold-light); font-size: .8rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; }
.hero-sub { font-size: 1.2rem; max-width: 33em; color: rgba(255, 255, 255, .86); margin-bottom: 1.8em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.trust { list-style: none; padding: 0; margin: 38px 0 0; display: flex; flex-wrap: wrap; gap: 10px 26px; color: rgba(255, 255, 255, .85); font-size: .95rem; }
.trust li { display: flex; align-items: center; gap: 10px; }
.trust li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: none; }
.hero-art { max-width: 420px; margin-inline: auto; width: 100%; }

/* ---------- how it works ---------- */
.how { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.how li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow); position: relative; }
.how li b { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--gold-soft); color: #7A5C2E; font-family: var(--serif); font-size: 1.3rem; margin-bottom: 16px; }
.how h3 { margin-bottom: .35em; }
.how p { margin: 0; color: var(--muted); }

/* ---------- booking ---------- */
.book-band { margin-top: 80px; padding: 72px 0 64px; background: linear-gradient(180deg, #fff, var(--ivory)); border-block: 1px solid var(--line); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin: 16px 0; box-shadow: var(--shadow); }
.notice { border-color: var(--gold); }

.steps { display: flex; gap: 10px 22px; list-style: none; padding: 0; margin: 26px 0 8px; flex-wrap: wrap; }
.steps li { display: flex; align-items: center; gap: 10px; color: #9A8D78; font-size: .95rem; }
.steps li span { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--line); color: var(--ink); font-weight: 700; font-size: .9rem; }
.steps li.on { color: var(--forest); }
.steps li.on span { background: var(--forest); color: #fff; }
.steps li.done span { background: var(--gold); color: #fff; }

.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.choice { text-align: start; background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 15px 18px; font: inherit; cursor: pointer; min-height: 58px; color: var(--ink); transition: border-color .15s, background-color .15s, box-shadow .15s; }
.choice:hover { border-color: var(--gold); box-shadow: 0 6px 16px rgba(60, 40, 10, .07); }
.choice[aria-checked="true"], .choice[aria-pressed="true"] { border-color: var(--forest); background: var(--sage); font-weight: 700; }

.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-head .btn { min-width: 50px; min-height: 44px; padding: .2em .9em; font-size: 1.5rem; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal .dow { text-align: center; font-size: .8rem; color: #9A8D78; padding: 4px 0; }
.cal .day { aspect-ratio: 1; min-height: 44px; border-radius: 14px; border: 1.5px solid transparent; background: transparent; font: inherit; color: #BDB19D; cursor: default; }
.cal .day.free { background: #fff; border-color: var(--line); color: var(--ink); cursor: pointer; font-weight: 600; transition: border-color .15s, background-color .15s; }
.cal .day.free:hover { border-color: var(--gold); background: var(--gold-soft); }
.cal .day[aria-pressed="true"] { background: var(--forest); color: #fff; border-color: var(--forest); }
.cal .blank { visibility: hidden; }

.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.times .choice { text-align: center; padding: 13px 8px; font-weight: 600; }

label { display: block; margin: 0 0 16px; font-weight: 600; }
label > span { display: block; margin-bottom: 6px; font-size: .92rem; }
label i { font-weight: 400; font-style: normal; }
input:not([type="checkbox"]), textarea {
  width: 100%; font: inherit; font-weight: 400; color: var(--ink); background: #fff;
  border: 1.5px solid #D9CFB9; border-radius: 14px; padding: .75em .95em; min-height: 50px; transition: border-color .15s, box-shadow .15s;
}
input:not([type="checkbox"]):focus, textarea:focus { border-color: var(--forest); box-shadow: 0 0 0 4px rgba(31, 77, 54, .12); outline: none; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); background: #FFF6F5; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; }
.check input { width: 24px; height: 24px; margin-top: 2px; flex: none; accent-color: var(--forest); }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.actions { display: flex; gap: 12px; justify-content: space-between; flex-wrap: wrap; margin-top: 6px; }
.error { color: var(--danger); font-weight: 600; }
.summary { background: var(--gold-soft); border-radius: 14px; padding: 12px 16px; font-weight: 600; color: #5C4624; }

.status .card { border-width: 2px; margin-top: 28px; }
.status .card.pending { border-color: var(--gold); }
.status .card.approved { border-color: var(--forest); background: #F1F8EE; }
.status .card.rejected, .status .card.cancelled { border-color: var(--danger); }
.pill { display: inline-block; padding: .12em .8em; border-radius: 999px; font-family: var(--sans); font-size: .85rem; font-weight: 700; background: var(--sage); color: var(--forest); vertical-align: middle; }
.pending .pill { background: var(--gold-soft); color: #7A5C2E; }
.rejected .pill, .cancelled .pill { background: #F8D9D6; color: var(--danger); }

/* ---------- services ---------- */
.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 28px; }
.services .card { margin: 0; padding: 28px 26px; transition: transform .2s, box-shadow .2s; }
.services .card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(60, 40, 10, .06), 0 18px 36px rgba(60, 40, 10, .1); }
.services .card::before { content: ""; display: block; width: 36px; height: 3px; border-radius: 3px; background: var(--gold); margin-bottom: 18px; }
.services h3 { margin-bottom: .4em; }
.services p { margin: 0; color: var(--muted); }

/* ---------- doctors ---------- */
.doctors-band { margin-top: 80px; padding: 76px 0 80px; color: #fff; background: linear-gradient(160deg, var(--forest) 0%, var(--forest-dark) 100%); }
.doctors-band h2 { color: #fff; }
.band-sub { color: rgba(255, 255, 255, .8); max-width: 34em; }
.doctor-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; margin-top: 30px; }
.doctor { background: rgba(255, 255, 255, .07); border: 1px solid rgba(227, 200, 146, .35); border-radius: var(--radius); padding: 26px; text-align: center; transition: background-color .2s, transform .2s; }
.doctor:hover { background: rgba(255, 255, 255, .12); transform: translateY(-3px); }
.doctor .avatar { width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: #7A5C2E; font-family: var(--serif); font-size: 1.7rem; font-weight: 600; border: 3px solid rgba(227, 200, 146, .6); }
.doctor h3 { color: #fff; margin: 0 0 .2em; font-size: 1.2rem; }
.doctor p { margin: 0; color: var(--gold-light); font-size: .9rem; letter-spacing: .06em; }

/* ---------- visit ---------- */
.visit-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; margin-top: 28px; align-items: start; }
.visit-grid .card { margin: 0; }
dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 14px 24px; }
dt { color: var(--gold); font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; padding-top: .2em; }
dd { margin: 0; }
.visit-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hours-card h3 { margin-bottom: .8em; }
.hours { list-style: none; padding: 0; margin: 0; }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hours li:last-child { border-bottom: 0; }
.hours span:first-child { color: var(--muted); }
.hours span:last-child { font-weight: 600; color: var(--forest); text-align: end; }

.privacy { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 26px; }
.privacy summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.privacy summary::-webkit-details-marker { display: none; }
.privacy summary::after { content: "+"; color: var(--gold); font-size: 1.8rem; line-height: 1; }
.privacy[open] summary::after { content: "–"; }
.privacy h2 { font-size: 1.2rem; margin: 18px 0; }
.privacy p { padding-bottom: 12px; }

/* ---------- footer ---------- */
.foot { margin-top: 80px; background: var(--forest-dark); color: rgba(255, 255, 255, .75); padding: 30px 0; font-size: .92rem; border-top: 3px solid var(--gold); }
.foot-biz { margin-bottom: 26px; padding-bottom: 24px; border-bottom: 1px solid rgba(227, 200, 146, .3); }
.foot-biz-title { margin: 0 0 .5em; color: var(--gold-light); font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.foot-biz-who { margin: 0 0 .7em; color: #fff; font-size: 1.05rem; }
.foot-biz-who a { color: #fff; font-weight: 600; margin-inline-start: .4em; }
.foot-wa { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; border: 1.5px solid rgba(255, 255, 255, .45); border-radius: 999px; padding: .55em 1.2em; font-weight: 600; transition: background-color .15s; }
.foot-wa:hover { background: rgba(255, 255, 255, .12); }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 14px 28px; flex-wrap: wrap; }
.foot-name { display: inline-flex; align-items: center; gap: 12px; color: #fff; font-family: var(--serif); font-size: 1.1rem; }
.foot-name img { border-radius: 8px; }

/* ---------- small screens ---------- */
@media (max-width: 1100px) { .menu { gap: 18px; } .top-row { gap: 14px; } }
@media (max-width: 980px) { .menu { display: none; } .top-tools { margin-inline-start: auto; } }
@media (max-width: 900px) {
  .menu { display: none; }
  .top-tools { margin-inline-start: auto; }
  .hero { padding: 56px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 260px; order: -1; }
  .how { grid-template-columns: 1fr; }
  .visit-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .wrap { padding: 0 18px; }
  h1 { font-size: 2.15rem; }
  .hero { padding: 36px 0 48px; }
  .hero-art { max-width: 190px; margin-bottom: 8px; }
  .hero-sub { font-size: 1.08rem; }
  .trust { margin-top: 28px; gap: 8px 18px; font-size: .9rem; }
  .how li { padding: 22px 20px; }
  .how li b { margin-bottom: 10px; }
  .book-band { margin-top: 56px; padding: 52px 0 44px; }
  .doctors-band { margin-top: 56px; padding: 56px 0 60px; }
  .doctor-list { grid-template-columns: 1fr 1fr; gap: 12px; }
  .doctor { padding: 20px 12px; }
  .doctor .avatar { width: 58px; height: 58px; font-size: 1.3rem; margin-bottom: 12px; }
  .doctor h3 { font-size: 1rem; }
  .doctor p { font-size: .8rem; }
  .foot { margin-top: 56px; }
  .brand { gap: 8px; min-width: 0; font-size: 1rem; }
  .brand img { width: 34px; height: 34px; border-radius: 9px; }
  .brand-name { font-size: .98rem; overflow: hidden; text-overflow: ellipsis; }
  .top-row { gap: 8px; min-height: 60px; }
  .top-tools { flex: none; }
  .lang { padding: .3em .62em; min-height: 34px; font-size: .8rem; }
  .top-tools .btn { display: none; }
  .section { padding-top: 56px; }
  .grid2 { grid-template-columns: 1fr; }
  .card { padding: 20px; }
  dl { grid-template-columns: 1fr; gap: 2px; }
  dd { margin-bottom: 14px; }
  .hero-actions .btn { width: 100%; }
  .foot-biz { padding-bottom: 24px; }
  .hero-actions { gap: 10px; }
  .or { width: 100%; text-align: center; }
}

/* ---------- right-to-left (Arabic): the page mirrors itself through dir="rtl"; phone numbers and e-mail addresses stay left-to-right inside their boxes ---------- */
input[type="tel"], input[type="email"] { direction: ltr; }
html[dir="rtl"] input[type="tel"], html[dir="rtl"] input[type="email"] { text-align: right; }
html[dir="rtl"] body { font-family: system-ui, -apple-system, "Segoe UI", Tahoma, "Noto Sans Arabic", Arial, sans-serif; line-height: 1.75; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] .brand, html[dir="rtl"] .foot-name, html[dir="rtl"] .how li b, html[dir="rtl"] .doctor .avatar { font-family: system-ui, -apple-system, "Segoe UI", Tahoma, "Noto Sans Arabic", Arial, sans-serif; font-weight: 700; }
html[dir="rtl"] .brand-name, html[dir="rtl"] .foot-name span { font-family: var(--serif); }   /* the English name keeps its serif letters */
html[dir="rtl"] .kicker, html[dir="rtl"] .eyebrow, html[dir="rtl"] dt, html[dir="rtl"] .foot-biz-title { letter-spacing: 0; }
html[dir="rtl"] .skip { left: auto; right: -999px; }
html[dir="rtl"] .skip:focus { right: 8px; left: auto; }

/* ================= motion =================
   Everything moves with transform and opacity only. The hidden "before" states exist only when motion.js is running (the .js class on <html>),
   and never for a visitor who asked for less motion: then the page is simply shown. */
:root { --ease: cubic-bezier(.16, 1, .3, 1); --dir: 1; }
html[dir="rtl"] { --dir: -1; }
html, body { overflow-x: clip; }   /* things sliding in from the side must never make the page scroll sideways */

/* ----- the hero plays once when the page opens ----- */
@keyframes heroIn { from { opacity: 0; transform: translate3d(0, 30px, 0); } to { opacity: 1; transform: none; } }
@keyframes artIn { from { opacity: 0; transform: scale(.8) rotate(-10deg); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes float { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, -14px, 0) rotate(1.2deg); } }
@keyframes drift { to { transform: translate3d(-140px, 100px, 0) scale(1.18); } }
@keyframes shine { 0% { left: -60%; } 16%, 100% { left: 140%; } }
.hero-text > * { animation: heroIn 1.05s var(--ease) both; animation-delay: calc(var(--h, 0) * 130ms + 120ms); }
.hero-text > :nth-child(1) { --h: 0; }
.hero-text > :nth-child(2) { --h: 1; }
.hero-text > :nth-child(3) { --h: 2; }
.hero-text > :nth-child(4) { --h: 3; }
.hero-text > :nth-child(5) { --h: 4; }

.hero { position: relative; }
.hero .wrap { position: relative; z-index: 1; }
.hero::before { content: ""; position: absolute; width: 680px; height: 680px; right: -160px; top: -240px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(184, 147, 90, .24), transparent 66%); animation: drift 18s ease-in-out infinite alternate; }
html[dir="rtl"] .hero::before { right: auto; left: -160px; }

/* the tooth draws itself, then floats; the whole emblem follows the page (parallax) and leans towards a mouse pointer */
.hero-art { transform: translate3d(0, calc(var(--py, 0) * -42px), 0) perspective(900px) rotateY(calc(var(--mx, 0) * 9deg)) rotateX(calc(var(--my, 0) * -9deg)); transition: transform .3s ease-out; will-change: transform; }
.hero-art svg { animation: artIn 1.5s var(--ease) .15s both, float 8s ease-in-out 1.8s infinite alternate; }
.hero-art circle, .hero-art path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.6s var(--ease) forwards; }
.hero-art circle:nth-of-type(1) { animation-delay: .35s; }
.hero-art circle:nth-of-type(2) { animation-delay: .65s; }
.hero-art circle:nth-of-type(3) { animation-delay: .95s; }
.hero-art path { animation-duration: 2.4s; animation-delay: 1.35s; }

/* a soft sheen that passes over the gold buttons now and then */
.btn.gold { position: relative; overflow: hidden; }
.btn.gold::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .38), transparent); transform: skewX(-20deg); animation: shine 6s ease-in-out 3s infinite; }

/* ----- header and reading progress ----- */
.top { transition: background-color .3s, box-shadow .3s; }
.top-row { transition: min-height .35s var(--ease); }
.top.scrolled { background: rgba(20, 54, 38, .98); box-shadow: 0 8px 26px rgba(0, 0, 0, .22); }
.top.scrolled .top-row { min-height: 58px; }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 30; pointer-events: none; transform: scaleX(0); transform-origin: left;
  background: linear-gradient(90deg, var(--gold), var(--gold-light)); }
html[dir="rtl"] .progress { transform-origin: right; }

/* ----- things that arrive as you scroll ----- */
@keyframes rise  { from { opacity: 0; transform: translate3d(0, 36px, 0); } to { opacity: 1; transform: none; } }
@keyframes pop   { from { opacity: 0; transform: translate3d(0, 42px, 0) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes slide { from { opacity: 0; transform: translate3d(calc(-38px * var(--dir)), 0, 0); } to { opacity: 1; transform: none; } }
@keyframes line  { from { width: 0; } to { width: 64px; } }
@keyframes growBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes popIn { from { opacity: 0; transform: translate3d(0, 14px, 0) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes panelIn { from { opacity: 0; transform: translate3d(0, 26px, 0) scale(.985); } to { opacity: 1; transform: none; } }

/* waiting: invisible but taking its place (no jumping of the page) */
.js :is(.kicker, .section h2, .book-band h2, .doctors-band h2, .band-sub, .book-band .wrap > .muted, .how li, .steps li, .services .card, .doctor,
        .visit-card, .hours-card, .hours li, #contactList dt, #contactList dd, .privacy, .foot-biz, .foot-row):not(.in) { opacity: 0; }

/* arriving: each kind has its own movement; neighbours follow one after another (--i is set by motion.js) */
.js :is(.kicker, .section h2, .book-band h2, .doctors-band h2, .band-sub, .book-band .wrap > .muted, .services .card, .visit-card, .hours-card,
        #contactList dt, #contactList dd, .privacy, .foot-biz, .foot-row).in { animation: rise 1s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 110ms); }
.js :is(.how li, .doctor).in { animation: pop 1s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 140ms); }
.js :is(.steps li, .hours li).in { animation: slide .9s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 110ms); }

/* a gold line draws itself under each section heading */
.section h2::after, .book-band h2::after, .doctors-band h2::after { content: ""; display: block; width: 64px; height: 3px; border-radius: 3px; background: var(--gold); margin-top: .45em; }
.js :is(.section h2, .book-band h2, .doctors-band h2):not(.in)::after { width: 0; }
.js :is(.section h2, .book-band h2, .doctors-band h2).in::after { animation: line 1s var(--ease) .45s backwards; }

/* the little gold bar on each service card grows in */
.services .card::before { transform-origin: left; }
html[dir="rtl"] .services .card::before { transform-origin: right; }
.js .services .card.in::before { animation: growBar .9s var(--ease) .5s backwards; }

/* numbers and avatars pop a moment after their card */
.js .how li.in b { animation: popIn .8s var(--ease) calc(var(--i, 0) * 140ms + 300ms) backwards; }
.js .doctor.in .avatar { animation: popIn .8s var(--ease) calc(var(--i, 0) * 140ms + 300ms) backwards; }

/* ----- the booking steps ----- */
#panelDay:not([hidden]), #panelTime:not([hidden]), #panelForm:not([hidden]), .status .card { animation: panelIn .8s var(--ease) both; }
.enter { animation: popIn .6s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 24ms); }

/* someone who asked for less movement gets the page without any of it */
@media (prefers-reduced-motion: reduce) {
  .hero-art, .hero-art svg, .hero-art circle, .hero-art path, .hero-text > *, .hero::before, .btn.gold::after, .progress { animation: none !important; transform: none; }
  .hero-art circle, .hero-art path { stroke-dashoffset: 0; }
  .btn.gold::after { display: none; }
}