/* ==========================================================================
   Ophthalmology — Treatlly website theme
   Exam-room palette (pupil indigo, sclera white, slit-lamp cobalt, iris amber,
   fluorescein highlight) · Eczar display + Mukta body (both carry Devanagari).
   Every class is prefixed `oph-` so nothing collides with Tailwind utilities.
   ========================================================================== */

/* ---------- 1. Foundation: tokens ---------- */
.theme-ophthalmology {
  /* palette — the tenant's brand colours still flow through --launch-* */
  --oph-pupil: #0E1530;            /* exam-room indigo: dark sections */
  --oph-pupil-2: #18214A;          /* raised surface on dark */
  --oph-pupil-line: rgba(207, 216, 238, .16);
  --oph-sclera: var(--launch-bg, #F5F7FA);
  --oph-paper: #FFFFFF;
  --oph-ink: var(--launch-text, #18233F);
  --oph-ink-2: #4A5672;
  --oph-ink-3: #6B7590;
  --oph-line: #DCE2EC;
  --oph-cobalt: var(--launch-primary, #2747D4);
  --oph-cobalt-dark: var(--launch-primary-dark, #1C35A8);
  --oph-cobalt-soft: var(--launch-primary-soft, #E6EBFC);
  --oph-cobalt-ink: var(--launch-primary-foreground, #FFFFFF);
  --oph-amber: #C98A2E;            /* iris collarette gold — fixed, not tenant-driven */
  --oph-amber-soft: #F6E7CF;
  --oph-fluor: #D8F36B;            /* fluorescein: functional highlight, on dark only */
  --oph-on-dark: #EEF1FA;
  --oph-on-dark-2: #AEB8D6;
  --oph-focus: var(--oph-cobalt);

  /* drawing kit — every inline SVG uses these */
  --oph-ill-line: #24345E;
  --oph-ill-line-soft: #8E9AB8;
  --oph-ill-sclera: #FBFCFE;
  --oph-ill-iris: #6B4226;
  --oph-ill-retina: #E48C7C;
  --oph-ill-vessel: #B23A3A;
  --oph-ill-nerve: #E9C46A;
  --oph-ill-lens: #F3E6C4;
  --oph-ill-lens-cloudy: #C9A25A;
  --oph-ill-fluid: #6FC3DF;
  --oph-ill-muscle: #C76B5C;
  --oph-ill-laser: #3FD97A;
  --oph-ill-light: #FFE8A3;
  --oph-ill-skin: #C68B66;

  /* type */
  --oph-font-display: "Eczar", "Noto Serif Devanagari", Georgia, "Times New Roman", serif;
  --oph-font-body: "Mukta", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* layout */
  --oph-container: 1200px;
  --oph-gutter: 20px;
  /* the shared gallery section lines up with these sections */
  --ttg-container: 1200px;
  --ttg-gutter: 20px;
  --ttg-gutter-lg: 32px;

  /* radii carry hierarchy: controls < media < panels */
  --oph-r-xs: 6px;
  --oph-r-sm: 12px;
  --oph-r-md: 20px;
  --oph-r-lg: 32px;
  --oph-r-pill: 999px;

  /* motion */
  --oph-ease: cubic-bezier(.22, .8, .18, 1);
  --oph-ease-in-out: cubic-bezier(.65, 0, .35, 1);
}
@media (min-width: 768px) {
  .theme-ophthalmology { --oph-gutter: 32px; }
}

/* ---------- 2. Foundation: base ---------- */
.theme-ophthalmology {
  margin: 0;
  background: var(--oph-sclera);
  color: var(--oph-ink);
  font-family: var(--oph-font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
:where(.theme-ophthalmology) img, :where(.theme-ophthalmology) svg { max-width: 100%; }
:where(.theme-ophthalmology) img { height: auto; }
:where(.theme-ophthalmology) a { color: inherit; }
.theme-ophthalmology ::selection { background: var(--oph-fluor); color: var(--oph-pupil); }
.theme-ophthalmology :focus-visible { outline: 3px solid var(--oph-focus); outline-offset: 3px; border-radius: 4px; }

.oph-skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: var(--oph-r-sm);
  background: var(--oph-paper); color: var(--oph-ink); font-weight: 600; text-decoration: none;
}
.oph-skip:focus { top: 12px; }

.oph-sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- 3. Foundation: layout ---------- */
.oph-container { width: min(var(--oph-container), 100% - 2 * var(--oph-gutter)); margin-inline: auto; }
.oph-section { position: relative; padding-block: clamp(4rem, 2.6rem + 5.5vw, 8rem); }
.oph-section--tight { padding-block: clamp(2.75rem, 2rem + 3vw, 4.5rem); }

.oph-tone-light { background: var(--oph-sclera); color: var(--oph-ink); }
.oph-tone-paper { background: var(--oph-paper); color: var(--oph-ink); }
.oph-tone-dark  { background: var(--oph-pupil); color: var(--oph-on-dark); --oph-focus: var(--oph-fluor); }
.oph-tone-dark ::selection { background: var(--oph-fluor); color: var(--oph-pupil); }

.oph-head { max-width: 46rem; margin-bottom: clamp(2rem, 1.4rem + 2.2vw, 3.5rem); }
.oph-head--center { margin-inline: auto; text-align: center; }

/* ---------- 4. Foundation: type ---------- */
.oph-display, .oph-h1, .oph-h2, .oph-h3 {
  font-family: var(--oph-font-display);
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
  font-feature-settings: "kern", "liga";
}
.oph-display { font-size: clamp(2.75rem, 1.4rem + 5.4vw, 6.1rem); line-height: .98; letter-spacing: -.022em; font-weight: 700; }
.oph-h1 { font-size: clamp(2.4rem, 1.45rem + 3.7vw, 4.5rem); line-height: 1.02; letter-spacing: -.018em; font-weight: 700; }
.oph-h2 { font-size: clamp(2rem, 1.3rem + 2.5vw, 3.4rem); line-height: 1.06; letter-spacing: -.014em; }
.oph-h3 { font-size: clamp(1.3rem, 1.12rem + .6vw, 1.6rem); line-height: 1.2; letter-spacing: -.005em; }
.oph-lede { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.55; color: var(--oph-ink-2); margin: 1rem 0 0; max-width: 38em; text-wrap: pretty; }
.oph-tone-dark .oph-lede { color: var(--oph-on-dark-2); }
.oph-body { font-size: 1.0625rem; line-height: 1.7; color: var(--oph-ink-2); margin: 0; text-wrap: pretty; }
.oph-tone-dark .oph-body { color: var(--oph-on-dark-2); }
.oph-small { font-size: .9375rem; line-height: 1.5; color: var(--oph-ink-3); }
.oph-tone-dark .oph-small { color: var(--oph-on-dark-2); }

.oph-link {
  color: var(--oph-cobalt); text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: .22em; transition: text-decoration-thickness .15s;
}
.oph-link:hover { text-decoration-thickness: 2px; }
.oph-tone-dark .oph-link { color: var(--oph-fluor); }

/* ---------- 5. Foundation: buttons (52px tall: easy for older thumbs) ---------- */
.oph-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 1.6em; border-radius: var(--oph-r-pill);
  background: var(--oph-cobalt); color: var(--oph-cobalt-ink);
  border: 1.5px solid transparent;
  font: 600 1.0625rem/1 var(--oph-font-body); letter-spacing: .005em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  box-shadow: 0 12px 28px -14px color-mix(in srgb, var(--oph-cobalt) 70%, transparent);
  transition: background-color .2s var(--oph-ease), transform .2s var(--oph-ease), box-shadow .2s var(--oph-ease);
}
.oph-btn:hover { background: var(--oph-cobalt-dark); }
.oph-btn:active { transform: translateY(1px); }
.oph-btn svg { width: 1.1em; height: 1.1em; flex: none; }
.oph-btn--ghost { background: transparent; color: var(--oph-ink); border-color: color-mix(in srgb, var(--oph-ink) 28%, transparent); box-shadow: none; }
.oph-btn--ghost:hover { background: color-mix(in srgb, var(--oph-ink) 6%, transparent); }
.oph-tone-dark .oph-btn { box-shadow: 0 0 0 1px rgba(255, 255, 255, .18), 0 14px 34px -14px rgba(39, 71, 212, .9); }
.oph-tone-dark .oph-btn--ghost { color: var(--oph-on-dark); border-color: rgba(238, 241, 250, .34); box-shadow: none; }
.oph-tone-dark .oph-btn--ghost:hover { background: rgba(238, 241, 250, .08); }

/* ---------- 6. Foundation: motion hooks ----------
   The theme script adds `js` to <html>, then `.is-visible` to any [data-oph-animate] or
   .oph-focus-in element once it scrolls into view. [data-oph-replay] buttons restart the
   animation of their closest [data-oph-animate]. All movement lives inside the
   no-preference query, so reduced-motion visitors see the finished state. */
@media (prefers-reduced-motion: no-preference) {
  .js .oph-focus-in {
    filter: blur(10px); opacity: .001; transform: scale(1.012);
    transition: filter 1s var(--oph-ease), opacity .8s var(--oph-ease), transform 1.2s var(--oph-ease);
  }
  .js .oph-focus-in.is-visible { filter: blur(0); opacity: 1; transform: none; }
}
.oph-replay {
  display: inline-flex; align-items: center; gap: .45em; min-height: 40px; padding: 0 1em;
  border-radius: var(--oph-r-pill); border: 1px solid color-mix(in srgb, currentColor 30%, transparent);
  background: transparent; color: inherit; font: 500 .9375rem/1 var(--oph-font-body); cursor: pointer;
}
.oph-replay:hover { background: color-mix(in srgb, currentColor 8%, transparent); }

/* ==========================================================================
   Sections (core) — appended below
   ========================================================================== */

.theme-ophthalmology { --oph-amber-ink: #8A5A14; } /* amber dark enough for text on light grounds (5:1+) */

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

.oph-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--oph-pupil); color: var(--oph-on-dark); --oph-focus: var(--oph-fluor);
  border-bottom: 1px solid transparent;
  transition: background-color .25s, border-color .25s, box-shadow .25s;
}
.oph-header.is-scrolled {
  background: rgba(14, 21, 48, .9);
  -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--oph-pupil-line); box-shadow: 0 12px 30px -18px rgba(0, 0, 0, .6);
}
.oph-header__in { display: flex; align-items: center; gap: .75rem; min-height: 68px; }
.oph-brand { display: inline-flex; align-items: center; gap: .65rem; min-width: 0; margin-right: auto; color: inherit; text-decoration: none; }
.oph-brand__logo { width: 40px; height: 40px; flex: none; object-fit: contain; border-radius: 10px; background: #fff; padding: 3px; }
.oph-brand__mark { width: 36px; height: 36px; flex: none; color: var(--oph-on-dark); }
.oph-brand__name {
  font-family: var(--oph-font-display); font-weight: 600; letter-spacing: -.01em;
  font-size: clamp(1rem, .88rem + .55vw, 1.3rem); line-height: 1.12;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.oph-nav { display: none; }
.oph-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: .15rem; }
.oph-nav__list a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 .9rem; border-radius: var(--oph-r-pill);
  color: var(--oph-on-dark-2); font-weight: 500; text-decoration: none; transition: color .2s, background-color .2s;
}
.oph-nav__list a:hover { color: #fff; background: rgba(238, 241, 250, .07); }
.oph-nav__extra { display: none; }
.oph-header__actions { display: flex; align-items: center; gap: .5rem; flex: none; }
.oph-header__cta { display: none; min-height: 44px; padding: 0 1.2em; font-size: 1rem; }
.oph-acct { position: relative; }
.oph-acct__btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; cursor: pointer;
  color: var(--oph-on-dark); border: 1px solid rgba(238, 241, 250, .22); list-style: none;
}
.oph-acct__btn::-webkit-details-marker { display: none; }
.oph-acct__btn svg { width: 20px; height: 20px; }
.oph-acct__menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; padding: .5rem; z-index: 70;
  background: var(--oph-paper); color: var(--oph-ink); border-radius: var(--oph-r-sm); box-shadow: 0 24px 50px -20px rgba(14, 21, 48, .55);
}
.oph-acct__menu a, .oph-acct__menu button {
  display: flex; width: 100%; padding: .7rem .8rem; border: 0; border-radius: 8px; background: none;
  color: inherit; font: inherit; text-align: left; text-decoration: none; cursor: pointer;
}
.oph-acct__menu a:hover, .oph-acct__menu button:hover { background: var(--oph-cobalt-soft); }
.oph-acct__menu form { margin: 0; }
.oph-acct__hi { margin: .35rem .8rem .5rem; font-size: .9rem; color: var(--oph-ink-3); }
.oph-nav-toggle {
  width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(238, 241, 250, .22); background: transparent; color: inherit;
}
.oph-nav-toggle__bars { position: relative; width: 18px; height: 12px; }
.oph-nav-toggle__bars i { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s var(--oph-ease), top .25s var(--oph-ease); }
.oph-nav-toggle__bars i:first-child { top: 1px; }
.oph-nav-toggle__bars i:last-child { top: 9px; }
.oph-nav-open .oph-nav-toggle__bars i:first-child { top: 5px; transform: rotate(45deg); }
.oph-nav-open .oph-nav-toggle__bars i:last-child { top: 5px; transform: rotate(-45deg); }

@media (max-width: 1023px) {
  .oph-nav-open { overflow: hidden; }
  .oph-nav-open .oph-nav {
    display: block; position: absolute; left: 0; right: 0; top: 100%;
    height: calc(100dvh - 60px); overflow-y: auto; padding: 1rem var(--oph-gutter) 2.5rem;
    background: var(--oph-pupil); border-top: 1px solid var(--oph-pupil-line);
  }
  .oph-nav-open .oph-nav__list { flex-direction: column; gap: 0; }
  .oph-nav-open .oph-nav__list a {
    width: 100%; min-height: 60px; padding: 0; border-radius: 0; border-bottom: 1px solid var(--oph-pupil-line);
    font-family: var(--oph-font-display); font-size: 1.6rem; color: var(--oph-on-dark);
  }
  .oph-nav-open .oph-nav__extra { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; margin-top: 1.75rem; }
}
@media (min-width: 768px) { .oph-header__cta { display: inline-flex; } }
@media (min-width: 1024px) {
  .oph-nav { display: block; }
  .oph-nav-toggle { display: none; }
  .oph-header__in { gap: 1.25rem; }
}

/* ---------- Phone booking dock ---------- */
.oph-dock {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 55;
  display: flex; gap: 10px; padding: 8px; border-radius: 24px;
  background: rgba(14, 21, 48, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px -16px rgba(14, 21, 48, .7); --oph-focus: var(--oph-fluor);
  transform: translateY(150%); transition: transform .35s var(--oph-ease);
}
.oph-dock.is-shown { transform: none; }
.oph-dock__book { flex: 1; }
.oph-dock__call { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 50%; background: rgba(238, 241, 250, .1); color: #fff; }
.oph-dock__call svg { width: 22px; height: 22px; }
@media (min-width: 768px) { .oph-dock { display: none; } }

/* ---------- Hero: the living eye ---------- */
.oph-hero {
  position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center;
  min-height: min(90svh, 880px);
  padding-block: clamp(2rem, 1rem + 4vw, 5rem) clamp(3rem, 2rem + 4.5vw, 6.5rem);
}
.oph-hero__video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.oph-hero__glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(55% 65% at 76% 46%, rgba(201, 138, 46, .17), transparent 64%),
    radial-gradient(45% 55% at 8% 96%, rgba(39, 71, 212, .26), transparent 70%);
}
.oph-hero__grid { display: grid; gap: clamp(1.25rem, .5rem + 3vw, 3rem); align-items: center; }
.oph-hero__art { order: -1; display: flex; justify-content: center; }
.oph-hero__place { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 1.1rem; color: var(--oph-amber); font-weight: 500; font-size: 1rem; }
.oph-hero__place svg { width: 18px; height: 18px; flex: none; }
.oph-hero__title { color: #fff; max-width: 12ch; }
.oph-hero__lede { max-width: 34em; }
.oph-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
@media (min-width: 960px) {
  .oph-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); }
  .oph-hero__art { order: 0; margin-right: calc(-1 * clamp(0px, 5vw, 110px)); }
}
@media (prefers-reduced-motion: no-preference) {
  .oph-hero__title { animation: oph-rack-focus 1.3s .45s var(--oph-ease) both; }
  .oph-hero__place, .oph-hero__lede, .oph-hero__actions { animation: oph-fade-in .9s 1.05s var(--oph-ease) both; }
}
@keyframes oph-rack-focus {
  from { filter: blur(18px); opacity: 0; transform: scale(1.035); }
  45%  { opacity: 1; }
  to   { filter: blur(0); opacity: 1; transform: none; }
}
@keyframes oph-fade-in { from { opacity: 0; } to { opacity: 1; } }

/* The eye: almond socket (masked), sclera, the eyeball (iris canvas + pupil + cornea + catchlight), lids. */
.oph-eye { position: relative; width: min(100%, 640px); }
@media (max-width: 959px) { .oph-eye { width: min(94vw, 470px); } }
.oph-eye__rings {
  position: absolute; left: 50%; top: 50%; z-index: -1; width: 160%; aspect-ratio: 1; pointer-events: none;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: repeating-radial-gradient(circle, rgba(174, 184, 214, .10) 0 1px, transparent 1.5px 24px);
  -webkit-mask: radial-gradient(circle, #000 14%, transparent 66%); mask: radial-gradient(circle, #000 14%, transparent 66%);
}
.oph-eye__socket {
  position: relative; width: 100%; aspect-ratio: 200 / 110; overflow: hidden;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 110' preserveAspectRatio='none'%3E%3Cfilter id='f' x='-5%25' y='-5%25' width='110%25' height='110%25'%3E%3CfeGaussianBlur stdDeviation='1.6'/%3E%3C/filter%3E%3Cpath filter='url(%23f)' d='M3 60C30 12 120 -6 197 52C158 98 70 110 3 60Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 110' preserveAspectRatio='none'%3E%3Cfilter id='f' x='-5%25' y='-5%25' width='110%25' height='110%25'%3E%3CfeGaussianBlur stdDeviation='1.6'/%3E%3C/filter%3E%3Cpath filter='url(%23f)' d='M3 60C30 12 120 -6 197 52C158 98 70 110 3 60Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.oph-eye__sclera {
  position: absolute; inset: 0;
  background:
    radial-gradient(50% 70% at 50% 50%, transparent 46%, rgba(14, 21, 48, .62) 100%),
    radial-gradient(70% 95% at 50% 46%, #e3e7f0 0%, #c3cad9 52%, #8890a8 100%);
}
.oph-eye__ball {
  position: absolute; left: 29.5%; top: 49%; margin-top: -20.5%; width: 41%; aspect-ratio: 1; border-radius: 50%;
  will-change: transform;
  background:
    radial-gradient(circle, transparent 0 46%, rgba(12, 6, 3, .55) 84%, rgba(12, 6, 3, .95) 99%),
    repeating-conic-gradient(from 0deg, rgba(214, 152, 87, .16) 0 1.1deg, rgba(29, 15, 6, .2) 1.1deg 2.7deg),
    radial-gradient(circle, #8d5b2b 0 32%, #5b3417 58%, #2b170a 86%, #0c0603 100%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .3), 0 8px 26px rgba(0, 0, 0, .35);
}
.oph-eye__ball--hazel {
  background:
    radial-gradient(circle, transparent 0 46%, rgba(15, 20, 11, .55) 84%, rgba(15, 20, 11, .95) 99%),
    repeating-conic-gradient(from 0deg, rgba(207, 187, 110, .16) 0 1.1deg, rgba(36, 39, 15, .2) 1.1deg 2.7deg),
    radial-gradient(circle, #a8832f 0 32%, #6b6b30 58%, #37442a 86%, #0f140b 100%);
}
.oph-eye__ball--grey {
  background:
    radial-gradient(circle, transparent 0 46%, rgba(11, 16, 24, .55) 84%, rgba(11, 16, 24, .95) 99%),
    repeating-conic-gradient(from 0deg, rgba(191, 205, 219, .18) 0 1.1deg, rgba(33, 42, 55, .2) 1.1deg 2.7deg),
    radial-gradient(circle, #96a3b1 0 32%, #62738a 58%, #36435a 86%, #0b1018 100%);
}
.oph-eye__iris { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; opacity: 0; transition: opacity .7s ease; }
.oph-eye.has-texture .oph-eye__iris { opacity: 1; }
.oph-eye__pupil {
  position: absolute; left: 33%; top: 33%; width: 34%; height: 34%; border-radius: 50%; will-change: transform;
  background: radial-gradient(circle at 44% 40%, #161c38 0%, #05060c 52%, #020308 100%);
  box-shadow: 0 0 0 1.5px rgba(5, 4, 3, .55), 0 0 16px 5px rgba(4, 3, 2, .5);
}
.oph-eye__cornea {
  position: absolute; inset: -2%; border-radius: 50%; pointer-events: none;
  background:
    radial-gradient(68% 52% at 32% 25%, rgba(255, 255, 255, .17), transparent 62%),
    radial-gradient(38% 28% at 72% 82%, rgba(255, 255, 255, .07), transparent 72%);
}
.oph-eye__catch { position: absolute; inset: 0; will-change: transform; pointer-events: none; }
.oph-eye__catch i:first-child {
  position: absolute; left: 29%; top: 23%; width: 15%; height: 12%; border-radius: 26%;
  background:
    linear-gradient(90deg, transparent 45%, rgba(24, 30, 58, .5) 45% 55%, transparent 55%),
    linear-gradient(0deg, transparent 44%, rgba(24, 30, 58, .5) 44% 56%, transparent 56%),
    rgba(255, 255, 255, .9);
  transform: rotate(-9deg) skewX(-6deg); filter: blur(.5px);
  box-shadow: 0 0 14px rgba(255, 255, 255, .35);
}
.oph-eye__catch i:last-child { position: absolute; left: 63%; top: 63%; width: 4.5%; height: 4.5%; border-radius: 50%; background: rgba(255, 255, 255, .55); filter: blur(.6px); }
.oph-eye__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 14, 34, .66) 0%, rgba(10, 14, 34, .2) 24%, transparent 40%),
    linear-gradient(0deg, rgba(10, 14, 34, .38) 0%, transparent 20%);
}
.oph-eye__lid { position: absolute; left: -8%; right: -8%; background: var(--oph-pupil); will-change: transform; transition: transform 1s cubic-bezier(.2, .86, .24, 1.03); }
.oph-eye__lid--top { top: -2%; height: 68%; border-radius: 0 0 50% 50% / 0 0 30% 30%; transform: translateY(-101%); box-shadow: 0 2px 0 #05070f, 0 10px 18px rgba(3, 5, 14, .55); }
.oph-eye__lid--bottom { bottom: -2%; height: 52%; border-radius: 50% 50% 0 0 / 22% 22% 0 0; transform: translateY(101%); box-shadow: 0 -2px 0 #070a18, 0 -6px 12px rgba(3, 5, 14, .35); }
.oph-eye__seam {
  position: absolute; left: 3%; right: 3%; top: 57%; height: 2px; border-radius: 2px; opacity: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 232, 163, .85) 28%, #fff 50%, rgba(255, 232, 163, .85) 72%, transparent);
  box-shadow: 0 0 18px 4px rgba(255, 232, 163, .45); transition: opacity .45s ease;
}
.js .oph-eye:not(.is-open) .oph-eye__lid { transform: translateY(0); }
.js .oph-eye:not(.is-open) .oph-eye__seam { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .oph-eye .oph-eye__lid--top { transform: translateY(-101%) !important; }
  .oph-eye .oph-eye__lid--bottom { transform: translateY(101%) !important; }
  .oph-eye .oph-eye__seam { opacity: 0 !important; }
}
@media (prefers-reduced-motion: no-preference) {
  .oph-eye__rings { animation: oph-fade-in 1.6s .2s ease both; }
}

/* ---------- Facts ---------- */
.oph-facts__title { margin: 0 0 1.5rem; font: 500 1rem/1.4 var(--oph-font-body); color: var(--oph-on-dark-2); }
.oph-facts__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.25rem; }
.oph-fact { padding-left: 1.1rem; border-left: 1px solid var(--oph-pupil-line); }
.oph-fact p { margin: 0; }
.oph-facts--dark { padding-block: clamp(2.5rem, 2rem + 2vw, 3.5rem) clamp(3.5rem, 2.5rem + 3vw, 5rem); border-top: 1px solid var(--oph-pupil-line); }
.oph-facts--dark .oph-fact__value {
  font-family: var(--oph-font-display); font-weight: 600; font-size: clamp(2.2rem, 1.55rem + 2.1vw, 3.4rem); line-height: 1;
  color: #fff; font-variant-numeric: lining-nums tabular-nums;
}
.oph-facts--dark .oph-fact__label { margin-top: .55rem; color: var(--oph-on-dark); font-weight: 500; line-height: 1.35; }
.oph-facts--dark .oph-fact__note { margin-top: .35rem; font-size: .875rem; line-height: 1.45; color: var(--oph-on-dark-2); }
.oph-facts--light { padding-block: clamp(2rem, 1.5rem + 2vw, 3rem); border-bottom: 1px solid var(--oph-line); }
.oph-facts--light .oph-facts__title { color: var(--oph-ink-3); }
.oph-facts--light .oph-fact { border-left-color: var(--oph-line); }
.oph-facts--light .oph-fact__label { font-size: .875rem; font-weight: 500; color: var(--oph-ink-3); }
.oph-facts--light .oph-fact__value { margin-top: .3rem; font-family: var(--oph-font-display); font-weight: 600; font-size: clamp(1.12rem, 1.02rem + .4vw, 1.38rem); line-height: 1.25; color: var(--oph-ink); }
.oph-facts--light .oph-fact__note { margin-top: .3rem; font-size: .875rem; line-height: 1.45; color: var(--oph-ink-3); }
@media (min-width: 960px) {
  .oph-facts__list { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
}

/* ---------- The surgeon (featured) + doctors directory ---------- */
.oph-surgeon__grid { display: grid; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
@media (min-width: 960px) { .oph-surgeon__grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); } }
.oph-surgeon__portrait { position: relative; justify-self: center; width: min(100%, 440px); margin: 0; }
.oph-surgeon__lens {
  position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 50%;
  background:
    repeating-radial-gradient(circle, rgba(201, 138, 46, .12) 0 1px, transparent 1.5px 16px),
    radial-gradient(circle at 50% 45%, #1d2754 0%, var(--oph-pupil) 72%);
  box-shadow: 0 0 0 10px var(--oph-sclera), 0 0 0 11px rgba(201, 138, 46, .55), 0 40px 80px -40px rgba(14, 21, 48, .6);
}
.oph-surgeon__lens::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(60% 45% at 30% 22%, rgba(255, 255, 255, .2), transparent 60%);
}
.oph-surgeon__lens img { width: 100%; height: 100%; object-fit: cover; }
.oph-surgeon__monogram {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--oph-font-display); font-weight: 700; letter-spacing: -.02em; line-height: 1;
  font-size: clamp(4rem, 2.6rem + 6vw, 7.5rem); color: var(--oph-amber);
}
.oph-surgeon__badge {
  position: absolute; right: 0; bottom: 6%; display: flex; align-items: baseline; gap: .45rem; padding: .8rem 1.1rem;
  background: var(--oph-paper); color: var(--oph-ink); border-radius: var(--oph-r-md); font-size: .95rem;
  box-shadow: 0 18px 40px -22px rgba(14, 21, 48, .5);
}
.oph-surgeon__badge b { font-family: var(--oph-font-display); font-size: 2rem; line-height: 1; color: var(--oph-cobalt); }
.oph-surgeon__creds { margin: .8rem 0 0; color: var(--oph-amber-ink); font-weight: 600; }
.oph-surgeon__story { margin-top: 1.1rem; max-width: 36em; }
.oph-surgeon__quote { margin: 1.8rem 0 0; padding-left: 1.4rem; border-left: 3px solid var(--oph-amber); }
.oph-surgeon__quote p { margin: 0; font-family: var(--oph-font-display); font-weight: 500; font-size: clamp(1.35rem, 1.12rem + .85vw, 1.9rem); line-height: 1.3; color: var(--oph-ink); text-wrap: balance; }
.oph-surgeon__quote footer { margin-top: .6rem; font-size: .95rem; color: var(--oph-ink-3); }
.oph-surgeon__meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; margin: 1.8rem 0; }
.oph-surgeon__meta dt { font-size: .85rem; color: var(--oph-ink-3); }
.oph-surgeon__meta dd { margin: .15rem 0 0; font-weight: 600; }

.oph-doctors__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.oph-doctor { display: flex; align-items: center; gap: 1.1rem; padding: 1.25rem; background: var(--oph-paper); border: 1px solid var(--oph-line); border-radius: var(--oph-r-md); }
.oph-doctor__lens { position: relative; flex: none; width: 96px; height: 96px; overflow: hidden; border-radius: 50%; background: var(--oph-pupil); box-shadow: 0 0 0 3px var(--oph-paper), 0 0 0 4px rgba(201, 138, 46, .5); }
.oph-doctor__lens img { width: 100%; height: 100%; object-fit: cover; }
.oph-doctor__lens .oph-surgeon__monogram { font-size: 2rem; }
.oph-doctor__spec { margin: .2rem 0 0; color: var(--oph-amber-ink); font-weight: 600; font-size: .95rem; }
.oph-doctor .oph-small { margin: .15rem 0 0; }
.oph-doctor__book { margin-top: .8rem; min-height: 44px; padding: 0 1.1em; font-size: .95rem; }

/* ---------- Timeline (a real sequence, so numbered when asked) ---------- */
.oph-steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 1.6rem; max-width: 46rem; }
.oph-steps::before {
  content: ""; position: absolute; left: 19px; top: 10px; bottom: 10px; width: 2px; transform-origin: top;
  background: linear-gradient(var(--oph-cobalt), rgba(39, 71, 212, .14));
}
.oph-step { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 1.1rem; align-items: start; }
.oph-step__dot {
  position: relative; z-index: 1; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  background: var(--oph-paper); border: 2px solid var(--oph-cobalt); color: var(--oph-cobalt);
  font: 700 1rem/1 var(--oph-font-display);
}
.oph-steps:not(.is-numbered) .oph-step__dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--oph-cobalt); }
.oph-step__body > :first-child { margin-top: .4rem; }
.oph-step__when { margin: 0; font-size: .875rem; font-weight: 600; color: var(--oph-amber-ink); }
.oph-step__title { margin: .2rem 0 0; font-family: var(--oph-font-display); font-weight: 600; font-size: 1.3rem; line-height: 1.25; }
.oph-step__text { margin: .4rem 0 0; color: var(--oph-ink-2); }
@media (min-width: 1024px) {
  .oph-timeline--horizontal .oph-steps { max-width: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 1.5rem; }
  .oph-timeline--horizontal .oph-steps::before {
    left: 20px; right: 20px; top: 19px; bottom: auto; width: auto; height: 2px; transform-origin: left;
    background: linear-gradient(90deg, var(--oph-cobalt), rgba(39, 71, 212, .16));
  }
  .oph-timeline--horizontal .oph-step { grid-template-columns: 1fr; gap: 1rem; }
  .oph-timeline--horizontal .oph-step__body > :first-child { margin-top: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .oph-steps::before { transform: scaleY(0); transition: transform 1.5s var(--oph-ease); }
  .js .oph-steps.is-visible::before { transform: none; }
  .js .oph-step__dot { opacity: 0; transform: scale(.4); transition: transform .5s var(--oph-ease), opacity .4s ease; transition-delay: calc(var(--i, 0) * 140ms + 200ms); }
  .js .oph-steps.is-visible .oph-step__dot { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 1024px) {
  .js .oph-timeline--horizontal .oph-steps::before { transform: scaleX(0); }
  .js .oph-timeline--horizontal .oph-steps.is-visible::before { transform: none; }
}

/* ---------- Promise ---------- */
.oph-promise { overflow: hidden; }
.oph-promise > .oph-container { position: relative; }
.oph-promise__rings {
  position: absolute; right: -16vw; top: 50%; width: min(70vw, 900px); aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  transform: translateY(-50%);
  background: repeating-radial-gradient(circle, rgba(201, 138, 46, .1) 0 1px, transparent 1.5px 30px);
  -webkit-mask: radial-gradient(circle, #000 28%, transparent 70%); mask: radial-gradient(circle, #000 28%, transparent 70%);
}
.oph-promise .oph-h2 { color: #fff; }
.oph-promise__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; }
.oph-promise__item { padding-top: 1.25rem; border-top: 2px solid var(--oph-amber); }
.oph-promise__item .oph-h3 { color: #fff; }
.oph-promise__item .oph-body { margin-top: .6rem; }
@media (min-width: 900px) { .oph-promise__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; } }

/* ---------- Patient quotes ---------- */
.oph-quotes__grid { display: grid; gap: clamp(2rem, 1.4rem + 2vw, 3rem); }
.oph-quote { position: relative; margin: 0; padding-top: 2.4rem; }
.oph-quote::before { content: "\201C"; position: absolute; top: -.4rem; left: -.15rem; font-family: var(--oph-font-display); font-size: 5rem; line-height: 1; color: var(--oph-amber); }
.oph-quote blockquote { margin: 0; }
.oph-quote blockquote p { margin: 0; font-family: var(--oph-font-display); font-weight: 500; font-size: clamp(1.22rem, 1.1rem + .5vw, 1.5rem); line-height: 1.4; color: var(--oph-ink); text-wrap: pretty; }
.oph-quote--lead blockquote p { font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.35rem); line-height: 1.26; max-width: 30em; }
.oph-quote figcaption { display: flex; flex-wrap: wrap; gap: .25rem .75rem; margin-top: 1rem; font-size: .95rem; }
.oph-quote__name { font-weight: 600; }
.oph-quote__ctx { color: var(--oph-ink-3); }
.oph-quotes__note { margin: 2.25rem 0 0; }
@media (min-width: 900px) {
  .oph-quotes__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .oph-quote--lead { grid-column: 1 / -1; padding-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-bottom: 1px solid var(--oph-line); }
}

/* ---------- Visit + slot countdown ---------- */
.oph-visit__grid { display: grid; gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: start; }
@media (min-width: 960px) { .oph-visit__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }
.oph-visit__rows { display: grid; margin: 0; }
.oph-visit__row { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--oph-line); }
.oph-visit__row dt { padding-top: .15rem; font-size: .9rem; color: var(--oph-ink-3); }
.oph-visit__row dd { margin: 0; }
.oph-visit__phone { font-family: var(--oph-font-display); font-weight: 600; font-size: 1.5rem; color: var(--oph-cobalt); text-decoration: none; }
.oph-hours { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.oph-hours li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .1rem 1rem; }
.oph-hours li span:last-child:not(:first-child) { font-weight: 600; }
.oph-slots { position: relative; overflow: hidden; padding: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); border-radius: var(--oph-r-lg); }
.oph-slots__dial {
  position: absolute; right: -90px; top: -90px; width: 280px; height: 280px; border-radius: 50%; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(238, 241, 250, .16) 0 .7deg, transparent .7deg 6deg);
  -webkit-mask: radial-gradient(circle, transparent 54%, #000 55%, #000 68%, transparent 69%);
          mask: radial-gradient(circle, transparent 54%, #000 55%, #000 68%, transparent 69%);
}
.oph-countdown { position: relative; }
.oph-countdown__lead { margin: 0; font-family: var(--oph-font-display); font-weight: 600; font-size: clamp(1.3rem, 1.1rem + .8vw, 1.75rem); line-height: 1.2; color: #fff; }
.oph-countdown__now { display: none; }
.oph-countdown.is-open .oph-countdown__when, .oph-countdown.is-open .oph-countdown__cells { display: none; }
.oph-countdown.is-open .oph-countdown__now { display: inline; color: var(--oph-fluor); }
.oph-countdown__cells { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .55rem; margin-top: 1.2rem; }
.oph-countdown__cell { display: grid; justify-items: center; gap: .25rem; padding: .85rem .25rem; border-radius: var(--oph-r-sm); background: rgba(238, 241, 250, .06); border: 1px solid var(--oph-pupil-line); }
.oph-countdown__cell b { font-family: var(--oph-font-display); font-weight: 600; font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.6rem); line-height: 1; color: #fff; font-variant-numeric: lining-nums tabular-nums; }
.oph-countdown__cell small { font-size: .8rem; color: var(--oph-on-dark-2); }
.oph-slots__note { position: relative; margin: 1.2rem 0 1.4rem; color: var(--oph-on-dark-2); }

/* ---------- Call to action ---------- */
.oph-cta { overflow: hidden; text-align: center; }
.oph-cta__in { position: relative; display: grid; justify-items: center; }
.oph-cta .oph-h2 { max-width: 20ch; color: #fff; }
.oph-cta .oph-lede { margin-inline: auto; }
.oph-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2rem; }
.oph-cta__iris {
  position: absolute; left: 50%; top: 50%; width: min(980px, 150vw); aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  transform: translate(-50%, -50%);
  background:
    repeating-conic-gradient(from 0deg, rgba(201, 138, 46, .08) 0 .8deg, transparent .8deg 3.4deg),
    radial-gradient(circle, rgba(201, 138, 46, .1) 0 30%, transparent 46%);
  -webkit-mask: radial-gradient(circle, transparent 15%, #000 17%, #000 38%, transparent 62%);
          mask: radial-gradient(circle, transparent 15%, #000 17%, #000 38%, transparent 62%);
}

/* ---------- Footer ---------- */
.oph-footer { padding: clamp(3rem, 2rem + 4vw, 5rem) 0 calc(2rem + env(safe-area-inset-bottom, 0px)); background: #0A1027; color: var(--oph-on-dark-2); }
.oph-footer__grid { display: grid; gap: 2.5rem; }
@media (min-width: 720px) { .oph-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .oph-footer__grid { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); } }
.oph-footer__name { margin: 0; font-family: var(--oph-font-display); font-weight: 600; font-size: 1.45rem; color: #fff; }
.oph-footer__about { margin: .8rem 0 0; max-width: 32em; }
.oph-footer__contact { display: grid; gap: .35rem; margin: 1.2rem 0 0; }
.oph-footer__contact a { color: var(--oph-on-dark); text-decoration: none; }
.oph-footer__contact a:hover { text-decoration: underline; }
.oph-footer__badges { margin-top: 1.25rem; }
.oph-footer__badges:empty { display: none; }
.oph-footer__h { margin: 0 0 .8rem; font: 600 1rem/1.3 var(--oph-font-body); color: #fff; }
.oph-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; }
.oph-footer__col a { display: inline-flex; align-items: center; min-height: 36px; color: var(--oph-on-dark-2); text-decoration: none; }
.oph-footer__col a:hover { color: #fff; text-decoration: underline; }
.oph-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--oph-pupil-line); font-size: .9rem; }
.oph-footer__base p { margin: 0; }
.oph-footer__powered { color: var(--oph-on-dark-2); text-decoration: none; }
.oph-footer__powered:hover { color: #fff; }

/* ---------- Article (long-form patient reading) ---------- */
.oph-article__in { max-width: 760px; }
.oph-article__head { margin-bottom: 2.25rem; }
.oph-article__part + .oph-article__part { margin-top: 2.1rem; }
.oph-article__part .oph-h3 { margin-bottom: .6rem; }
.oph-article__part p { margin: 0; font-size: 1.0625rem; line-height: 1.78; color: var(--oph-ink-2); }
.oph-ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.oph-ticks li { position: relative; padding-left: 1.75rem; line-height: 1.62; color: var(--oph-ink-2); }
.oph-ticks li::before {
  content: ""; position: absolute; left: 0; top: .48em; width: .8rem; height: .8rem; border-radius: 50%;
  background: radial-gradient(circle, var(--oph-pupil) 0 30%, var(--oph-amber) 33% 64%, transparent 66%);
  box-shadow: 0 0 0 1px rgba(201, 138, 46, .45);
}

/* ---------- Shared FAQ, in this theme's voice (beats the section's own <style> on specificity) ---------- */
body.theme-ophthalmology .ttf { background: var(--oph-sclera); color: var(--oph-ink); padding-block: clamp(4rem, 2.6rem + 5.5vw, 7rem); }
body.theme-ophthalmology .ttf .ttf-inner { width: min(860px, 100% - 2 * var(--oph-gutter)); max-width: none; margin-inline: auto; padding-inline: 0; }
body.theme-ophthalmology .ttf .ttf-head { margin-bottom: 2rem; text-align: left; }
body.theme-ophthalmology .ttf .ttf-kicker { color: var(--oph-amber-ink); letter-spacing: 0; text-transform: none; font-family: var(--oph-font-body); }
body.theme-ophthalmology .ttf .ttf-title { font-family: var(--oph-font-display); font-weight: 600; font-size: clamp(2rem, 1.3rem + 2.5vw, 3.2rem); line-height: 1.06; letter-spacing: -.014em; color: var(--oph-ink); text-align: left; }
body.theme-ophthalmology .ttf .ttf-sub { font-family: var(--oph-font-body); color: var(--oph-ink-2); text-align: left; margin-inline: 0; }
body.theme-ophthalmology .ttf .ttf-item { border: 0; border-top: 1px solid var(--oph-line); border-radius: 0; background: transparent; box-shadow: none; }
body.theme-ophthalmology .ttf .ttf-item:last-child { border-bottom: 1px solid var(--oph-line); }
body.theme-ophthalmology .ttf .ttf-q { min-height: 56px; padding: 1.15rem 0; font-family: var(--oph-font-display); font-weight: 600; font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); color: var(--oph-ink); }
body.theme-ophthalmology .ttf .ttf-a { padding: 0 0 1.3rem; font-size: 1.0625rem; line-height: 1.72; color: var(--oph-ink-2); }
body.theme-ophthalmology .ttf .ttf-chev { color: var(--oph-cobalt); }
/* The shared FAQ outlines the WHOLE item on :focus-within, so clicking a question drew a heavy box around the question
   and its answer (owner 2026-11-06: "faq has weird border when open"). Keyboard focus keeps a ring, on the question. */
body.theme-ophthalmology .ttf .ttf-item:focus-within { outline: none; }
body.theme-ophthalmology .ttf .ttf-q:focus-visible { outline: 3px solid var(--oph-focus); outline-offset: -3px; border-radius: 8px; } /* inside: the item clips anything outside */

/* ==========================================================================
   Illustrations: interior page hero + procedures index (merged from the illustration slice)
   ========================================================================== */
/* ==========================================================================
   Part A — page_hero (animated line illustrations) + procedures (typographic index)
   ========================================================================== */

/* ---------- page_hero ---------- */
.oph-ph { overflow: hidden; padding-block: clamp(3rem, 2rem + 4vw, 6rem); }
.oph-ph-rings { position: absolute; z-index: 0; right: -18%; top: 50%; width: min(980px, 130vw); aspect-ratio: 1; translate: 0 -50%; pointer-events: none; color: var(--oph-on-dark); opacity: .045; }
.oph-ph-rings svg { width: 100%; height: 100%; display: block; }
.oph-ph-grid { position: relative; z-index: 1; display: grid; gap: clamp(2rem, 1rem + 4vw, 3.5rem); align-items: center; }
.oph-ph-text { min-width: 0; }
.oph-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .6rem; margin: 0 0 1.4rem; font-size: .9375rem; color: var(--oph-on-dark-2); }
.oph-crumbs a { color: var(--oph-on-dark-2); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; border-bottom: 1px solid transparent; }
.oph-crumbs a:hover { color: var(--oph-on-dark); border-bottom-color: currentColor; }
.oph-crumbs i { font-style: normal; opacity: .5; }
.oph-ph .oph-lede { margin-bottom: 2rem; }
.oph-ill { margin: 0; min-width: 0; text-align: center; color: var(--oph-on-dark); }
.oph-ill svg { display: block; width: 100%; height: auto; max-width: 600px; margin-inline: auto; }
.oph-ill .oph-replay { margin-top: .5rem; color: var(--oph-on-dark-2); }
@media (min-width: 900px) {
  .oph-ph { min-height: 540px; display: flex; align-items: center; }
  .oph-ph .oph-container { width: min(var(--oph-container), 100% - 2 * var(--oph-gutter)); }
  .oph-ph-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 560px); }
}

/* ---------- drawing kit (all inline SVG in page_hero) ---------- */
.oph-ill .oph-ln, .oph-ill .oph-ls, .oph-ill .oph-sv, .oph-ill .oph-sli, .oph-ill .oph-slz, .oph-ill .oph-sfl, .oph-ill .oph-sam, .oph-ill .oph-snv, .oph-ill .oph-smu {
  fill: none; stroke-linecap: round; stroke-linejoin: round;
}
.oph-ill .oph-ln { stroke: var(--oph-on-dark); stroke-width: 1.8; }
.oph-ill .oph-bold { stroke-width: 2.4; }
.oph-ill .oph-ls { stroke: var(--oph-ill-line-soft); stroke-width: 1.2; }
.oph-ill .oph-sv { stroke: var(--oph-ill-vessel); stroke-width: 1.7; }
.oph-ill .oph-sli { stroke: var(--oph-ill-light); stroke-width: 1.8; }
.oph-ill .oph-slz { stroke: var(--oph-ill-laser); stroke-width: 2; }
.oph-ill .oph-sfl { stroke: var(--oph-ill-fluid); stroke-width: 1.8; }
.oph-ill .oph-sam { stroke: var(--oph-amber); stroke-width: 1.8; }
.oph-ill .oph-snv { stroke: var(--oph-ill-nerve); stroke-width: 1.6; }
.oph-ill .oph-smu { stroke: color-mix(in srgb, var(--oph-ill-muscle) 65%, #fff); stroke-width: 2; }
.oph-ill .oph-tx { fill: var(--oph-on-dark-2); font: 500 14px var(--oph-font-body); }
.oph-ill .oph-txb { fill: var(--oph-on-dark); font: 600 15px var(--oph-font-body); }
.oph-ill .oph-fsc { fill: #fff; fill-opacity: .09; }
.oph-ill .oph-fs { fill: #fff; fill-opacity: .06; }
.oph-ill .oph-fir { fill: var(--oph-ill-iris); stroke: none; }
.oph-ill .oph-fib { fill: none; stroke: var(--oph-amber); stroke-opacity: .42; stroke-width: .9; }
.oph-ill .oph-fre { fill: var(--oph-ill-retina); fill-opacity: .34; }
.oph-ill .oph-fle { fill: var(--oph-ill-lens); fill-opacity: .3; }
.oph-ill .oph-flc { fill: var(--oph-ill-lens-cloudy); fill-opacity: .75; }
.oph-ill .oph-fnv { fill: var(--oph-ill-nerve); fill-opacity: .5; }
.oph-ill .oph-ffl { fill: var(--oph-ill-fluid); fill-opacity: .38; }
.oph-ill .oph-fmu { fill: var(--oph-ill-muscle); fill-opacity: .6; }
.oph-ill .oph-fsk { fill: var(--oph-ill-skin); fill-opacity: .42; }
.oph-ill .oph-fla { fill: var(--oph-ill-laser); }
.oph-ill .oph-fli { fill: var(--oph-ill-light); }
.oph-ill .oph-fam { fill: var(--oph-amber); }
.oph-ill .oph-fve { fill: var(--oph-ill-vessel); }
.oph-ill .oph-fpu { fill: var(--oph-pupil); }
.oph-ill .oph-fwh { fill: #fff; fill-opacity: .9; }
.oph-ill .oph-ffd { fill: var(--oph-ill-fluid); }

/* final state is the resting state: transient things are hidden */
.oph-ill .oph-w { opacity: 0; }
.oph-ill .oph-x { opacity: 0; }
.oph-ill .oph-shr { scale: .14; transform-box: fill-box; transform-origin: center; }
.oph-ill .oph-gz { translate: var(--fx, 0px) var(--fy, 0px); }
.oph-ill .oph-gauge { transform-origin: var(--ox) var(--oy); rotate: var(--g2, -38deg); }

/* resting (final) state of every bespoke animated element */
.oph-ill .oph-flt { translate: -10px 36px; }
.oph-ill .oph-flb { translate: -10px -36px; }
.oph-ill .oph-probe, .oph-ill .oph-needle, .oph-ill .oph-spread, .oph-ill .oph-up, .oph-ill .oph-away,
.oph-ill .oph-haze, .oph-ill .oph-hold, .oph-ill .oph-ghost, .oph-ill .oph-sw { opacity: 0; }
.oph-ill .oph-blink { translate: 0 -340px; }
.oph-ill .oph-gt { rotate: -42deg; }

@media (prefers-reduced-motion: no-preference) {
  .oph-ill.is-visible .oph-d { stroke-dasharray: 1 1.02; animation: oph-draw var(--t, 1s) var(--oph-ease-in-out) var(--d, 0s) both; }
  .oph-ill.is-visible .oph-f { animation: oph-fade var(--t, .7s) ease var(--d, 0s) both; }
  .oph-ill.is-visible .oph-pop { transform-box: fill-box; transform-origin: center; animation: oph-pop var(--t, .6s) var(--oph-ease) var(--d, 0s) both; }
  .oph-ill.is-visible .oph-x { animation: oph-out var(--t, .7s) ease var(--d, 0s) both; }
  .oph-ill.is-visible .oph-w { animation: oph-trans var(--t, 1s) ease var(--d, 0s) both; }
  .oph-ill.is-visible .oph-mv { animation: oph-mv var(--t, .8s) var(--oph-ease-in-out) var(--d, 0s) both; }
  .oph-ill.is-visible .oph-gz { animation: oph-gz var(--t, .9s) var(--oph-ease-in-out) var(--d, 0s) both; }
  .oph-ill.is-visible .oph-shr { animation: oph-shr var(--t, 1s) var(--oph-ease-in-out) var(--d, 0s) both; }
  .oph-ill.is-visible .oph-ghost { animation: oph-ghost var(--t, 1s) var(--oph-ease-in-out) var(--d, 0s) both; }
  .oph-ill.is-visible .oph-sw { animation: oph-sw var(--t, 1.4s) linear var(--d, 0s) both; }

  @keyframes oph-draw { from { stroke-dashoffset: 1; opacity: 0; } 2% { opacity: 1; } to { stroke-dashoffset: 0; opacity: 1; } }
  @keyframes oph-fade { from { opacity: 0; } to { opacity: 1; } }
  @keyframes oph-pop { from { opacity: 0; scale: .2; } to { opacity: 1; scale: 1; } }
  @keyframes oph-out { from { opacity: 1; } to { opacity: 0; } }
  @keyframes oph-trans { 0% { opacity: 0; } 15%, 80% { opacity: 1; } 100% { opacity: 0; } }
  @keyframes oph-mv { from { translate: var(--tx, 0px) var(--ty, 0px); opacity: 0; } 20% { opacity: 1; } to { translate: 0 0; opacity: 1; } }
  @keyframes oph-gz { from { translate: var(--sx, 0px) var(--sy, 0px); } to { translate: var(--fx, 0px) var(--fy, 0px); } }
  @keyframes oph-shr { from { scale: 1; } to { scale: .14; } }
  @keyframes oph-ghost { from { translate: var(--tx, 0px) 0; opacity: .5; } to { translate: 0 0; opacity: 0; } }
  @keyframes oph-sw { 0% { translate: var(--x0, 0px) 0; opacity: 0; } 8%, 88% { opacity: 1; } 100% { translate: var(--x1, 0px) 0; opacity: 0; } }

  /* bespoke, per drawing */
  .oph-ill.is-visible .oph-haze { animation: oph-haze 3.4s ease .5s both; }
  @keyframes oph-haze { 0% { opacity: 0; } 14%, 46% { opacity: 1; } 88%, 100% { opacity: 0; } }
  .oph-ill.is-visible .oph-gl { animation: oph-gl 4.1s var(--oph-ease-in-out) both; }
  @keyframes oph-gl { 0%, 44% { rotate: -50deg; } 60%, 74% { rotate: 62deg; } 92%, 100% { rotate: -38deg; } }
  .oph-ill.is-visible .oph-gt { animation: oph-gt 3.4s var(--oph-ease-in-out) both; }
  @keyframes oph-gt { 0%, 28% { rotate: 64deg; } 100% { rotate: -42deg; } }
  .oph-ill.is-visible .oph-hold { transform-box: fill-box; transform-origin: center; animation: oph-hold var(--t, 1s) ease var(--d, 0s) both; }
  @keyframes oph-hold { 0% { opacity: 0; scale: .3; } 14%, 82% { opacity: 1; scale: 1; } 100% { opacity: 0; scale: 1; } }
  .oph-ill.is-visible .oph-flt { animation: oph-flt 1.1s linear var(--d, 0s) both; }
  .oph-ill.is-visible .oph-flb { animation: oph-flb 1.1s linear var(--d, 0s) both; }
  @keyframes oph-flt { 0% { translate: 0 0; opacity: 0; } 10% { opacity: 1; } 30% { translate: -4px 26px; } 50% { translate: -10px 36px; } 75% { translate: -28px 24px; } 100% { translate: -36px 2px; opacity: 0; } }
  @keyframes oph-flb { 0% { translate: 0 0; opacity: 0; } 10% { opacity: 1; } 30% { translate: -4px -26px; } 50% { translate: -10px -36px; } 75% { translate: -28px -24px; } 100% { translate: -36px -2px; opacity: 0; } }
  .oph-ill.is-visible .oph-away { transform-box: view-box; animation: oph-away .7s ease-in var(--d, 0s) both; }
  @keyframes oph-away { 0% { opacity: 1; scale: 1; } 100% { opacity: 0; scale: .05; } }
  .oph-ill.is-visible .oph-probe { animation: oph-probe 3.1s var(--oph-ease-in-out) var(--d, 0s) both; }
  @keyframes oph-probe { 0% { translate: -130px -93px; opacity: 0; } 4% { opacity: 1; } 20%, 70% { translate: 0 0; opacity: 1; } 96% { opacity: 1; } 100% { translate: -130px -93px; opacity: 0; } }
  .oph-ill.is-visible .oph-iolin { transform-box: fill-box; transform-origin: center; animation: oph-iolin 1.5s var(--oph-ease-in-out) var(--d, 0s) both; }
  @keyframes oph-iolin { 0% { translate: -150px -108px; scale: .16 1; opacity: 0; } 8% { opacity: 1; } 52% { translate: 0 0; scale: .16 1; } 100% { translate: 0 0; scale: 1 1; opacity: 1; } }
  .oph-ill.is-visible .oph-blink { animation: oph-blink 1.3s var(--oph-ease-in-out) var(--d, 0s) both; }
  @keyframes oph-blink { 0% { translate: 0 -340px; } 42%, 54% { translate: 0 0; } 100% { translate: 0 -340px; } }
  .oph-ill.is-visible .oph-needle { animation: oph-needle 3.1s var(--oph-ease-in-out) var(--d, 0s) both; }
  @keyframes oph-needle { 0% { translate: 80px -61px; opacity: 0; } 6% { opacity: 1; } 22%, 62% { translate: 0 0; opacity: 1; } 88% { opacity: 1; } 100% { translate: 80px -61px; opacity: 0; } }
  .oph-ill.is-visible .oph-spread { animation: oph-spread 1.5s var(--oph-ease-in-out) var(--d, 0s) both; }
  @keyframes oph-spread { 0% { translate: 0 0; opacity: 0; } 12% { opacity: 1; } 70% { translate: var(--tx) var(--ty); opacity: 1; } 100% { translate: var(--tx) var(--ty); opacity: 0; } }
  .oph-ill.is-visible .oph-up { animation: oph-up 1.5s ease-out var(--d, 0s) both; }
  @keyframes oph-up { 0% { translate: 0 8px; opacity: 0; } 25% { opacity: 1; } 100% { translate: 0 -34px; opacity: 0; } }
  .oph-ill.is-visible .oph-glint { animation: oph-glint 1.1s ease-in-out var(--d, 0s) both; }
  @keyframes oph-glint { 0% { opacity: 0; scale: .2; } 50% { opacity: 1; scale: 1.25; } 100% { opacity: 1; scale: 1; } }
  .oph-ill .oph-glint, .oph-ill .oph-hold { transform-box: fill-box; transform-origin: center; }
  .oph-ill.is-visible .oph-unfold { transform-box: fill-box; transform-origin: center; animation: oph-unfold 1.1s var(--oph-ease) var(--d, 0s) both; }
  @keyframes oph-unfold { from { scale: .2 1; opacity: 0; } to { scale: 1 1; opacity: 1; } }
}

@media (prefers-reduced-motion: no-preference) {
  .oph-ill.is-visible .oph-soft { animation: oph-soft 2.4s var(--oph-ease-in-out) .6s both; }
  @keyframes oph-soft { 0% { translate: 0 -70px; opacity: 0; } 22% { translate: 0 0; opacity: 1; } 72% { translate: 0 0; opacity: 1; } 100% { translate: 0 0; opacity: 0; } }
  .oph-ill.is-visible .oph-flo { animation: oph-flo 1.9s linear var(--d, 0s) both; }
  @keyframes oph-flo { 0% { translate: 0 0; opacity: 0; } 8% { opacity: 1; } 18% { translate: 32px 8px; } 28% { translate: 32px -11px; } 50% { translate: 78px -11px; } 72% { translate: 164px -11px; } 88% { translate: 188px -48px; opacity: 1; } 100% { translate: 182px -72px; opacity: 0; } }
  .oph-ill.is-visible .oph-bleb { transform-origin: 403px 118px; animation: oph-bleb 2s var(--oph-ease-in-out) var(--d, 1.2s) both; }
  @keyframes oph-bleb { from { scale: 1 .1; opacity: .3; } to { scale: 1 1; opacity: 1; } }
  .oph-ill.is-visible .oph-flap { animation: oph-flap .9s var(--oph-ease-in-out) var(--d, .6s) both; }
  @keyframes oph-flap { from { rotate: 0deg; } to { rotate: -8deg; } }
}
.oph-ill .oph-flo { translate: 120px -11px; opacity: 0; }
.oph-ill .oph-flap { transform-origin: 278px 150px; rotate: -8deg; }

/* ---------- procedures: typographic index ---------- */
.oph-pr-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); column-gap: clamp(2.5rem, 1rem + 6vw, 6rem); }
.oph-pr-list > li { border-bottom: 1px solid var(--oph-line); }
.oph-pr-list > li:first-child { border-top: 1px solid var(--oph-line); }
@media (min-width: 768px) {
  .oph-pr-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .oph-pr-list > li:nth-child(2) { border-top: 1px solid var(--oph-line); }
}
.oph-proc {
  display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 1.25rem; align-items: center;
  min-height: 88px; padding: 1.15rem .35rem; color: inherit; text-decoration: none;
  transition: background-color .25s var(--oph-ease);
}
a.oph-proc:hover { background: color-mix(in srgb, var(--oph-cobalt) 4%, transparent); }
a.oph-proc:focus-visible { outline-offset: -3px; border-radius: var(--oph-r-xs); }
.oph-proc-ic { display: block; width: 48px; height: 48px; color: var(--oph-cobalt); }
.oph-ic { display: block; width: 100%; height: 100%; overflow: visible; }
.oph-ic .oph-ac { fill: var(--oph-amber); stroke: none; }
.oph-ic .oph-acs { stroke: var(--oph-amber); fill: none; }
.oph-ic .oph-ac, .oph-ic .oph-acs { transform-box: fill-box; transform-origin: center; }
.oph-proc-body { display: block; min-width: 0; }
.oph-proc-t {
  margin: 0; font-family: var(--oph-font-display); font-weight: 600; font-size: clamp(1.3rem, 1.15rem + .6vw, 1.6rem);
  line-height: 1.15; letter-spacing: -.005em; color: var(--oph-ink);
  text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1.5px; text-underline-offset: .22em;
  transition: text-decoration-color .2s var(--oph-ease);
}
a.oph-proc:hover .oph-proc-t, a.oph-proc:focus-visible .oph-proc-t { text-decoration-color: currentColor; }
.oph-proc-s {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  margin-top: .3rem; font-size: 1rem; line-height: 1.45; color: var(--oph-ink-2);
}
.oph-h2--sm { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }
.oph-pr--compact .oph-head { margin-bottom: clamp(1.25rem, 1rem + 1vw, 2rem); }
.oph-pr--compact .oph-proc { grid-template-columns: 32px minmax(0, 1fr); column-gap: 1rem; min-height: 64px; padding: .8rem .25rem; }
.oph-pr--compact .oph-proc-ic { width: 32px; height: 32px; }
.oph-pr--compact .oph-proc-t { font-size: clamp(1.1rem, 1.02rem + .35vw, 1.28rem); }
.oph-pr--compact .oph-proc-s { font-size: .9375rem; margin-top: .15rem; }

@media (prefers-reduced-motion: no-preference) {
  .oph-ic .oph-ac, .oph-ic .oph-acs { transition: transform .4s var(--oph-ease); }
  a.oph-proc:hover .oph-ic--phaco .oph-ac, a.oph-proc:focus-visible .oph-ic--phaco .oph-ac { transform: translate(1.6px, 1.6px); }
  a.oph-proc:hover .oph-ic--iol .oph-ac, a.oph-proc:focus-visible .oph-ic--iol .oph-ac { transform: scale(1.7); }
  a.oph-proc:hover .oph-ic--trabeculectomy .oph-ac, a.oph-proc:focus-visible .oph-ic--trabeculectomy .oph-ac { transform: translateY(2px); }
  a.oph-proc:hover .oph-ic--retinal_laser .oph-ac, a.oph-proc:focus-visible .oph-ic--retinal_laser .oph-ac { transform: scale(1.8); }
  a.oph-proc:hover .oph-ic--anti_vegf .oph-ac, a.oph-proc:focus-visible .oph-ic--anti_vegf .oph-ac { transform: translateY(2.4px); }
  a.oph-proc:hover .oph-ic--squint .oph-ac, a.oph-proc:focus-visible .oph-ic--squint .oph-ac { transform: translateX(-2.2px); }
  a.oph-proc:hover .oph-ic--amblyopia .oph-acs, a.oph-proc:focus-visible .oph-ic--amblyopia .oph-acs { transform: rotate(90deg); }
  a.oph-proc:hover .oph-ic--ipl .oph-acs, a.oph-proc:focus-visible .oph-ic--ipl .oph-acs { transform: scale(1.3); }
  a.oph-proc:hover .oph-ic--scleral .oph-ac, a.oph-proc:focus-visible .oph-ic--scleral .oph-ac { transform: translateY(-1.4px); }
  a.oph-proc:hover .oph-ic--screening .oph-acs, a.oph-proc:focus-visible .oph-ic--screening .oph-acs { transform: translateY(2.6px); }
  a.oph-proc:hover .oph-ic--contact_lens .oph-ac, a.oph-proc:focus-visible .oph-ic--contact_lens .oph-ac { transform: translateY(-1.2px) scale(1.3); }
  a.oph-proc:hover .oph-ic--eye .oph-ac, a.oph-proc:focus-visible .oph-ic--eye .oph-ac { transform: scale(1.7); }
}

/* ==========================================================================
   Interactive: eye map + vision simulator (merged from the interactive slice)
   ========================================================================== */

/* ---------- Journey through the eye (eye_map) — scroll-driven, 2026-11-06 ----------
   A dark stage pins while the steps scroll over it; the step nearest 55% down the screen is active.
   The camera is one CSS transform on the SVG: translate((50% - part) × zoom) scale(zoom), so the
   active part lands on the focal point, where a slit-lamp beam lights it. */
.oph-journey { position: relative; background: var(--oph-pupil); color: var(--oph-on-dark); --oph-focus: var(--oph-fluor); --j-top: 68px; }
.oph-journey__body { position: relative; }
.oph-journey__stage {
  position: sticky; top: var(--j-top); z-index: 0; height: calc(100svh - var(--j-top)); overflow: hidden;
  --fx: 50%; --fy: 30%; --jw: 150vw; --zm: .8;
}
@media (min-width: 1024px) { .oph-journey__stage { --fx: 70%; --fy: 47%; --jw: min(1240px, 78vw); --zm: 1; } }
.oph-journey__stage::before {
  content: ""; position: absolute; left: var(--fx); top: var(--fy); width: 150vmax; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  translate: -50% -50%;
  background: repeating-radial-gradient(circle, rgba(174, 184, 214, .06) 0 1px, transparent 1.5px 36px);
  -webkit-mask: radial-gradient(circle, #000 8%, transparent 58%); mask: radial-gradient(circle, #000 8%, transparent 58%);
}
.oph-journey__beam {
  position: absolute; z-index: 1; top: -12%; bottom: -12%; left: var(--fx); width: clamp(90px, 12vw, 210px); pointer-events: none;
  translate: -50% 0; rotate: 8deg; mix-blend-mode: screen;
  background: linear-gradient(90deg, transparent, rgba(255, 232, 163, .06) 28%, rgba(255, 244, 214, .17) 50%, rgba(255, 232, 163, .06) 72%, transparent);
}
.oph-jsvg {
  --px: 56%; --py: 50%; --s: 1;
  position: absolute; left: var(--fx); top: var(--fy); width: var(--jw); height: auto; aspect-ratio: 1000 / 700; overflow: visible;
  translate: -50% -50%;
  transform: translate(calc((50% - var(--px)) * var(--s) * var(--zm)), calc((50% - var(--py)) * var(--s) * var(--zm))) scale(calc(var(--s) * var(--zm)));
  transition: transform 1.4s var(--oph-ease-in-out); will-change: transform;
}
.oph-journey[data-active="tearfilm"] .oph-jsvg { --px: 26%; --py: 50%; --s: 2.3; }
.oph-journey[data-active="cornea"]   .oph-jsvg { --px: 29%; --py: 50%; --s: 2.05; }
.oph-journey[data-active="lens"]     .oph-jsvg { --px: 41%; --py: 50%; --s: 2.15; }
.oph-journey[data-active="angle"]    .oph-jsvg { --px: 56%; --py: 48%; --s: 1.4; }
.oph-journey[data-active="retina"]   .oph-jsvg { --px: 76%; --py: 53%; --s: 2; }
.oph-journey[data-active="muscles"]  .oph-jsvg { --px: 60%; --py: 50%; --s: .98; }
.oph-journey__shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(0deg, var(--oph-pupil) 0%, rgba(14, 21, 48, .86) 34%, rgba(14, 21, 48, 0) 58%);
}
@media (min-width: 1024px) {
  .oph-journey__shade {
    background:
      linear-gradient(0deg, rgba(14, 21, 48, .92) 0%, rgba(14, 21, 48, 0) 18%),
      linear-gradient(90deg, var(--oph-pupil) 0%, rgba(14, 21, 48, .94) 32%, rgba(14, 21, 48, 0) 54%);
  }
}
.oph-journey__progress { position: absolute; z-index: 3; left: 0; right: 0; top: 0; height: 3px; background: rgba(238, 241, 250, .08); }
.oph-journey__progress i { display: block; height: 100%; transform: scaleX(0); transform-origin: left; transition: transform .2s linear; background: linear-gradient(90deg, var(--oph-amber), var(--oph-fluor)); }
.oph-journey__rail { display: none; }
@media (min-width: 1024px) {
  .oph-journey__progress { display: none; }
  .oph-journey__rail {
    position: absolute; z-index: 3; left: 50%; bottom: 1.4rem; width: min(var(--oph-container), 100% - 2 * var(--oph-gutter));
    translate: -50% 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 1rem;
    list-style: none; margin: 0; padding: 0;
  }
  .oph-journey__rail a {
    display: block; padding-top: .75rem; border-top: 2px solid rgba(238, 241, 250, .16);
    color: rgba(238, 241, 250, .45); font-size: .9rem; font-weight: 500; line-height: 1.3; text-decoration: none;
    transition: color .3s, border-color .4s var(--oph-ease);
  }
  .oph-journey__rail a:hover { color: var(--oph-on-dark); }
  .oph-journey__rail a.is-on { color: #fff; border-top-color: var(--oph-amber); }
}

/* the steps scroll over the pinned stage; only their cards take clicks */
.oph-journey__steps { position: relative; z-index: 2; list-style: none; margin: calc(-1 * (100svh - var(--j-top))) 0 0; padding: 0; pointer-events: none; }
.oph-journey__step { display: flex; align-items: flex-end; min-height: calc(92svh - var(--j-top)); padding-bottom: 7svh; }
.oph-journey__step--lead { min-height: calc(100svh - var(--j-top)); }
.oph-journey__card { width: min(var(--oph-container), 100% - 2 * var(--oph-gutter)); margin-inline: auto; }
.oph-journey__card-in { max-width: 29rem; pointer-events: auto; }
@media (max-width: 1023px) {
  .oph-journey__card-in {
    padding: 1.3rem 1.25rem 1.45rem; border-radius: var(--oph-r-md); border: 1px solid var(--oph-pupil-line);
    background: rgba(14, 21, 48, .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }
}
@media (min-width: 1024px) {
  .oph-journey__step { align-items: center; min-height: calc(100svh - var(--j-top)); padding-bottom: 4.5rem; }
}
.oph-journey__lead { margin: 0; font-family: var(--oph-font-display); font-weight: 700; color: #fff; font-size: clamp(2.5rem, 1.5rem + 4.2vw, 5.4rem); line-height: .98; letter-spacing: -.022em; text-wrap: balance; }
.oph-journey__count { margin: 0 0 .9rem; color: var(--oph-on-dark-2); font-size: .95rem; font-variant-numeric: lining-nums tabular-nums; }
.oph-journey__count b { margin-right: .15rem; font-family: var(--oph-font-display); font-weight: 600; font-size: 1.2rem; color: var(--oph-amber); }
.oph-journey__title { margin: 0; font-family: var(--oph-font-display); font-weight: 700; color: #fff; font-size: clamp(2.2rem, 1.3rem + 3.4vw, 4.4rem); line-height: 1; letter-spacing: -.02em; text-wrap: balance; }
.oph-journey__where { display: flex; align-items: center; gap: .6rem; margin: 1.1rem 0 0; color: var(--oph-on-dark); font-weight: 600; }
.oph-journey__where i {
  width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--dot, var(--oph-amber));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--dot, var(--oph-amber)) 24%, transparent), 0 0 14px var(--dot, var(--oph-amber));
}
.oph-journey__where--tearfilm { --dot: #6FC3DF; }
.oph-journey__where--cornea { --dot: #9FD8EE; }
.oph-journey__where--lens { --dot: #E7C27A; }
.oph-journey__where--angle { --dot: #F2A65A; }
.oph-journey__where--retina { --dot: #E48C7C; }
.oph-journey__where--muscles { --dot: #D9806F; }
.oph-journey__sum { margin: .9rem 0 0; color: var(--oph-on-dark-2); font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); line-height: 1.55; text-wrap: pretty; }
.oph-journey__link { margin-top: 1.5rem; }
.oph-journey__hint { display: inline-flex; align-items: center; gap: .5rem; margin: 2rem 0 0; color: var(--oph-amber); font-weight: 600; }
.oph-journey__hint svg { width: 20px; height: 20px; }
/* in focus / out of focus — the theme's motion language */
.oph-journey.is-live .oph-journey__card-in { transition: opacity .55s var(--oph-ease), filter .55s var(--oph-ease); }
.oph-journey.is-live .oph-journey__step:not(.is-active) .oph-journey__card-in { opacity: .1; filter: blur(4px); }

/* the drawing, on dark */
.oph-jsvg .j-sclera { fill: none; stroke: #C9D2EA; stroke-width: 3; }
.oph-jsvg .j-choroid { fill: none; stroke: #7E3B45; stroke-width: 4; opacity: .7; }
.oph-jsvg .j-retina { fill: none; stroke: #E48C7C; stroke-width: 3.2; }
.oph-jsvg .j-vessel { fill: none; stroke: #C2453F; stroke-width: 2; stroke-linecap: round; opacity: .85; }
.oph-jsvg .j-macula { fill: #E9C46A; opacity: .65; }
.oph-jsvg .j-bleed { fill: #FF5A4E; }
.oph-jsvg .j-fat { fill: #FFE07A; }
.oph-jsvg .j-scan { stroke: #9FE7FF; stroke-width: 3; stroke-linecap: round; opacity: 0; transform-box: view-box; transform-origin: 560px 350px; }
.oph-jsvg .j-nerve-band { fill: rgba(233, 196, 106, .16); stroke: #E9C46A; stroke-width: 2; }
.oph-jsvg .j-disc { fill: #E9C46A; }
.oph-jsvg .j-press { fill: none; stroke: #FF8A65; stroke-width: 3; opacity: 0; transform-box: fill-box; transform-origin: center; }
.oph-jsvg .j-ciliary { fill: rgba(199, 107, 92, .35); stroke: #C76B5C; stroke-width: 1.5; }
.oph-jsvg .j-zonule { stroke: rgba(201, 210, 234, .45); stroke-width: 1; }
.oph-jsvg .j-iris { stroke: #A8693A; stroke-width: 13; stroke-linecap: round; }
.oph-jsvg .j-lens { stroke: #F3E6C4; stroke-width: 2.5; }
.oph-jsvg .j-haze { opacity: 0; }
.oph-jsvg .j-iol { opacity: 0; transform-box: fill-box; transform-origin: center; }
.oph-jsvg .j-iol ellipse { fill: rgba(191, 233, 255, .28); stroke: #E8F7FF; stroke-width: 2.4; }
.oph-jsvg .j-iol path { fill: none; stroke: #E8F7FF; stroke-width: 2.4; stroke-linecap: round; }
.oph-jsvg .j-mesh { stroke: #F2A65A; stroke-width: 2; stroke-linecap: round; }
.oph-jsvg .j-canal { fill: #F2A65A; }
.oph-jsvg .j-fluid { opacity: 0; transition: opacity .6s; }
.oph-jsvg .j-fluid-path { fill: none; stroke: rgba(111, 195, 223, .35); stroke-width: 1.5; stroke-dasharray: 3 6; }
.oph-jsvg .j-fluid circle { fill: #9FE7FF; }
.oph-jsvg .j-cornea { fill: rgba(111, 195, 223, .12); stroke: #BFE6F5; stroke-width: 2.5; stroke-linejoin: round; }
.oph-jsvg .j-clens { fill: none; stroke: #6FC3DF; stroke-width: 5; stroke-linecap: round; opacity: 0; }
.oph-jsvg .j-film { fill: none; stroke: #7FDDF5; stroke-width: 3.2; stroke-linecap: round; }
.oph-jsvg .j-lid { stroke: rgba(198, 139, 102, .55); stroke-width: 1.6; }
.oph-jsvg .j-lid-top { transform-box: view-box; transform-origin: 150px 90px; }
.oph-jsvg .j-lash { fill: none; stroke: #E2C2AA; stroke-width: 1.8; stroke-linecap: round; }
.oph-jsvg .j-muscle { fill: rgba(199, 107, 92, .22); stroke: #C76B5C; stroke-width: 2; }
.oph-jsvg .j-fibre { fill: none; stroke: rgba(199, 107, 92, .45); stroke-width: 1.2; }
.oph-jsvg .j-eye { transform-box: view-box; transform-origin: 560px 350px; }
.oph-jsvg .j-ray { fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 10 16; }
.oph-jsvg .j-rays { opacity: 0; transition: opacity .7s; }
.oph-jsvg .j-rays-scatter { opacity: 0; }
.oph-jsvg .j-dr circle { opacity: 0; transform: scale(0); transform-box: fill-box; transform-origin: center; }
.oph-journey:not([data-active]) .j-rays, .oph-journey[data-active="intro"] .j-rays,
.oph-journey[data-active="cornea"] .j-rays, .oph-journey[data-active="lens"] .j-rays { opacity: 1; }
.oph-journey[data-active="angle"] .j-fluid { opacity: 1; }

/* the lit part */
.oph-jsvg [data-part], .oph-jsvg .j-nerve { opacity: .42; transition: opacity .8s var(--oph-ease), filter .8s var(--oph-ease); }
.oph-journey:not([data-active]) .oph-jsvg [data-part], .oph-journey:not([data-active]) .oph-jsvg .j-nerve,
.oph-journey[data-active="intro"] .oph-jsvg [data-part], .oph-journey[data-active="intro"] .oph-jsvg .j-nerve { opacity: .85; }
.oph-journey[data-active="tearfilm"] [data-part="tearfilm"],
.oph-journey[data-active="cornea"] [data-part="cornea"],
.oph-journey[data-active="lens"] [data-part="lens"],
.oph-journey[data-active="angle"] [data-part="angle"], .oph-journey[data-active="angle"] .j-nerve,
.oph-journey[data-active="retina"] [data-part="retina"],
.oph-journey[data-active="muscles"] [data-part="muscles"] { opacity: 1; filter: drop-shadow(0 0 7px rgba(255, 232, 163, .45)); }

@media (prefers-reduced-motion: no-preference) {
  .oph-journey__hint svg { animation: j-nudge 1.8s ease-in-out infinite; }
  .oph-jsvg .j-ray { animation: j-flow 1.3s linear infinite; }
  .oph-journey.is-switching .oph-journey__beam { animation: j-beam .9s var(--oph-ease); }
  .oph-journey[data-active="tearfilm"] .j-film { animation: j-film 3.8s .5s ease-in-out both; }
  .oph-journey[data-active="tearfilm"] .j-lid-top { animation: j-blink 3.8s .5s ease-in-out both; }
  .oph-journey[data-active="cornea"] .j-clens { animation: j-clens 1.6s .4s var(--oph-ease) both; }
  .oph-journey[data-active="lens"] .j-haze { animation: j-haze 4.4s .4s ease-in-out both; }
  .oph-journey[data-active="lens"] .j-iol { animation: j-iol 4.4s .4s ease-out both; }
  .oph-journey[data-active="lens"] .j-rays-clear { animation: j-rays-clear 4.4s .4s both; }
  .oph-journey[data-active="lens"] .j-rays-scatter { animation: j-rays-scatter 4.4s .4s both; }
  .oph-journey[data-active="angle"] .j-press { animation: j-press 1.9s .9s ease-out infinite; }
  .oph-journey[data-active="retina"] .j-dr circle { animation: j-pop .5s var(--oph-ease) both; animation-delay: calc(.7s + var(--k, 0) * .22s); }
  .oph-journey[data-active="retina"] .j-scan { animation: j-scan 2.8s .3s ease-in-out both; }
  .oph-journey[data-active="muscles"] .j-eye { animation: j-align 3.6s .4s ease-in-out both; }
}
@media (prefers-reduced-motion: reduce) {
  .oph-jsvg { transition: none; }
  .oph-jsvg .j-fluid circle { display: none; }
  .oph-journey.is-live .oph-journey__step:not(.is-active) .oph-journey__card-in { filter: none; opacity: .25; }
  .oph-journey[data-active="cornea"] .j-clens, .oph-journey[data-active="lens"] .j-iol { opacity: 1; }
  .oph-journey[data-active="retina"] .j-dr circle { opacity: 1; transform: none; }
  .oph-journey[data-active="angle"] .j-press { opacity: .8; }
}
@keyframes j-nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@keyframes j-flow { to { stroke-dashoffset: -26; } }
@keyframes j-beam { 0% { opacity: .15; } 35% { opacity: 1; } 55% { opacity: .55; } 100% { opacity: 1; } }
@keyframes j-film { 0% { stroke-dasharray: 520 0; opacity: 1; } 30%, 55% { stroke-dasharray: 5 14; opacity: .45; } 72%, 100% { stroke-dasharray: 520 0; opacity: 1; } }
@keyframes j-blink { 0%, 56% { transform: rotate(0); } 63% { transform: rotate(27deg); } 72%, 100% { transform: rotate(0); } }
@keyframes j-clens { from { opacity: 0; transform: translateX(-80px); } to { opacity: 1; transform: none; } }
@keyframes j-haze { 0% { opacity: 0; } 28%, 56% { opacity: .92; } 76%, 100% { opacity: 0; } }
@keyframes j-iol { 0%, 62% { opacity: 0; transform: scale(.55); } 82%, 100% { opacity: 1; transform: none; } }
@keyframes j-rays-clear { 0% { opacity: 1; } 22%, 60% { opacity: .05; } 80%, 100% { opacity: 1; } }
@keyframes j-rays-scatter { 0%, 14% { opacity: 0; } 30%, 56% { opacity: .9; } 74%, 100% { opacity: 0; } }
@keyframes j-press { from { opacity: .95; transform: scale(.55); } to { opacity: 0; transform: scale(1.9); } }
@keyframes j-pop { to { opacity: 1; transform: none; } }
@keyframes j-scan { 0% { opacity: 0; transform: rotate(-40deg); } 14%, 86% { opacity: .95; } 100% { opacity: 0; transform: rotate(40deg); } }
@keyframes j-align { 0%, 28% { transform: rotate(-12deg); } 72%, 100% { transform: rotate(0); } }

/* ---------- vision_simulator ---------- */
.oph-vsim__fig { --oph-split: 50%; position: relative; margin: 0; max-width: 62rem; margin-inline: auto; }
.oph-vsim__defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.oph-vsim__stage {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--oph-r-md);
  background: #D9C9AE; isolation: isolate;
  box-shadow: 0 30px 60px -34px rgba(14, 21, 48, .55), 0 0 0 1px var(--oph-line);
}
.oph-vsim__layer { position: absolute; inset: 0; }
.oph-vsim__layer--cond { clip-path: inset(0 calc(100% - var(--oph-split)) 0 0); }
.oph-vsim__svg, .oph-vsim__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.oph-vsim__fx, .oph-vsim__ghost { position: absolute; inset: 0; }
.oph-scene__chart { font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; font-weight: 800; }
.oph-scene__mast { font-family: var(--oph-font-display); font-weight: 800; }
.oph-scene__head { font-family: var(--oph-font-display); font-weight: 700; }

/* the effects */
.oph-vsim__fx { transform: scale(1.04); }
[data-condition="cataract"] .oph-vsim__fx { filter: blur(2.5px) sepia(.55) saturate(.85) contrast(.78) brightness(1.04); }
[data-condition="glaucoma"] .oph-vsim__fx { filter: saturate(.7) brightness(.92); }
[data-condition="diabetic"] .oph-vsim__fx { filter: blur(1.2px) saturate(.85) contrast(.92); }
[data-condition="dry_eye"] .oph-vsim__fx { filter: blur(3px) saturate(.92); }
[data-condition="amblyopia"] .oph-vsim__fx { filter: blur(2.2px) saturate(.85); }
[data-condition="refractive"] .oph-vsim__fx { filter: blur(3.4px); }
.oph-vsim__ghost { transform: translate(1.3%, .7%) scale(1.04); opacity: .4; filter: blur(2.4px); mix-blend-mode: multiply; }

.oph-vsim__glare {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 34% 48% at 50% 44%, rgba(255, 244, 205, .92) 0, rgba(255, 238, 190, .55) 38%, rgba(255, 238, 190, 0) 100%),
              linear-gradient(rgba(214, 170, 90, .16), rgba(214, 170, 90, .16));
}
.has-scene .oph-vsim__glare { background: radial-gradient(ellipse 36% 46% at 32% 40%, rgba(255, 244, 205, .9) 0, rgba(255, 238, 190, .5) 40%, rgba(255, 238, 190, 0) 100%), linear-gradient(rgba(214, 170, 90, .16), rgba(214, 170, 90, .16)); }
.oph-vsim__tunnel {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 44% 66% at 50% 52%, rgba(6, 8, 18, 0) 32%, rgba(6, 8, 18, .93) 100%);
}
.oph-vsim__blots {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 9% 15% at 33% 40%, rgba(24, 8, 8, .78) 0, rgba(24, 8, 8, .55) 55%, rgba(24, 8, 8, 0) 100%),
    radial-gradient(ellipse 6% 9% at 40% 52%, rgba(24, 8, 8, .7) 0, rgba(24, 8, 8, 0) 100%),
    radial-gradient(ellipse 12% 8% at 20% 66%, rgba(24, 8, 8, .66) 0, rgba(24, 8, 8, 0) 100%),
    radial-gradient(ellipse 5% 12% at 14% 30%, rgba(24, 8, 8, .7) 0, rgba(24, 8, 8, 0) 100%),
    radial-gradient(ellipse 10% 14% at 47% 24%, rgba(24, 8, 8, .6) 0, rgba(24, 8, 8, 0) 100%),
    radial-gradient(ellipse 7% 11% at 26% 82%, rgba(24, 8, 8, .6) 0, rgba(24, 8, 8, 0) 100%),
    radial-gradient(ellipse 4% 6% at 8% 52%, rgba(24, 8, 8, .65) 0, rgba(24, 8, 8, 0) 100%);
}
.oph-vsim__lid {
  position: absolute; inset: -2% 0 0; transform: translateY(-104%); pointer-events: none;
  background: linear-gradient(#2A1D18 0, #3A2820 82%, #5B4034 100%);
  border-bottom-left-radius: 50% 14%; border-bottom-right-radius: 50% 14%;
  box-shadow: 0 6px 0 -2px rgba(0, 0, 0, .25);
}

/* dry eye: the blur wavers; a blink clears it */
@media (prefers-reduced-motion: no-preference) {
  [data-condition="dry_eye"] .oph-vsim__fx { animation: oph-vsim-drift 5s ease-in-out infinite; }
  .oph-vsim__fig.is-blinking .oph-vsim__lid { animation: oph-vsim-lid .8s var(--oph-ease-in-out) both; }
}
@keyframes oph-vsim-drift {
  0%, 100% { filter: blur(1.6px) saturate(.92); transform: scale(1.04) translate(0, 0); }
  50% { filter: blur(4.2px) saturate(.9); transform: scale(1.045) translate(.4%, -.3%); }
}
@keyframes oph-vsim-lid {
  0% { transform: translateY(-104%); }
  40% { transform: translateY(0); }
  55% { transform: translateY(0); }
  100% { transform: translateY(-104%); }
}
.oph-vsim__fig.is-cleared[data-condition] .oph-vsim__fx,
[data-condition="dry_eye"] .oph-vsim__fig.is-cleared .oph-vsim__fx { animation: none; filter: none; transform: scale(1.04); }

/* divider, tags, handle */
.oph-vsim__divider {
  position: absolute; top: 0; bottom: 0; left: var(--oph-split); width: 3px; margin-left: -1.5px;
  background: #fff; box-shadow: 0 0 0 1px rgba(14, 21, 48, .25), 0 0 18px rgba(14, 21, 48, .35); pointer-events: none;
}
.oph-vsim__tag {
  position: absolute; top: 14px; z-index: 2; padding: .35rem .8rem; border-radius: var(--oph-r-pill);
  background: rgba(14, 21, 48, .78); color: var(--oph-on-dark); font: 600 .9375rem/1.2 var(--oph-font-body);
  backdrop-filter: blur(4px); max-width: 44%; pointer-events: none;
}
.oph-vsim__tag--before { left: 14px; }
.oph-vsim__tag--after { right: 14px; background: rgba(255, 255, 255, .88); color: var(--oph-pupil); }

.oph-vsim__range {
  position: absolute; z-index: 3; left: -26px; width: calc(100% + 52px); top: 0; height: auto; aspect-ratio: auto;
  margin: 0; padding: 0; background: transparent; cursor: ew-resize; -webkit-appearance: none; appearance: none;
  touch-action: pan-y;
}
.oph-vsim__range { bottom: 0; }
.oph-vsim__frame { position: relative; }
.oph-vsim__range::-webkit-slider-runnable-track { height: 100%; background: transparent; }
.oph-vsim__range::-moz-range-track { height: 100%; background: transparent; }
.oph-vsim__range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 52px; height: 52px; border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52 52'%3E%3Cpath d='M20 18l-8 8 8 8M32 18l8 8-8 8' fill='none' stroke='%2318233F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
  border: 3px solid var(--oph-cobalt); box-shadow: 0 6px 18px rgba(14, 21, 48, .4); cursor: ew-resize;
}
.oph-vsim__range::-moz-range-thumb {
  width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--oph-cobalt); box-shadow: 0 6px 18px rgba(14, 21, 48, .4); cursor: ew-resize;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52 52'%3E%3Cpath d='M20 18l-8 8 8 8M32 18l8 8-8 8' fill='none' stroke='%2318233F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.oph-vsim__range:focus { outline: none; }
.oph-vsim__range:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--oph-cobalt); outline-offset: 4px; }
.oph-vsim__range:focus-visible::-moz-range-thumb { outline: 3px solid var(--oph-cobalt); outline-offset: 4px; }

.oph-vsim__actions { display: flex; justify-content: center; margin-top: 1rem; }
.oph-vsim__blink {
  min-height: 48px; padding: 0 1.8rem; border-radius: var(--oph-r-pill); border: 1.5px solid var(--oph-pupil);
  background: var(--oph-pupil); color: var(--oph-on-dark); font: 600 1.0625rem/1 var(--oph-font-body); cursor: pointer;
}
.oph-vsim__blink:hover { background: var(--oph-pupil); }
.oph-vsim__caption { margin: 1rem 0 0; text-align: center; }

/* steam */
@media (prefers-reduced-motion: no-preference) {
  .oph-scene__steam path { animation: oph-scene-steam 4.2s ease-in-out infinite; opacity: .5; }
  .oph-scene__steam path:nth-child(2) { animation-delay: -1.4s; }
  .oph-scene__steam path:nth-child(3) { animation-delay: -2.8s; }
}
@keyframes oph-scene-steam { 0%, 100% { opacity: .15; transform: translateY(4px); } 50% { opacity: .6; transform: translateY(-6px); } }
.oph-scene__steam path { opacity: .45; }
@media (max-width: 767px) {
  .oph-vsim__tag { font-size: .8125rem; top: 10px; }
}

/* ---------- Refinements after the first visual pass (2026-11-06) ---------- */
/* Long clinic names wrap to two lines on phones instead of being cut off. */
@media (max-width: 767px) {
  .oph-brand__name { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.15; font-size: 1.02rem; }
  .oph-surgeon__portrait { width: min(100%, 300px); }
  .oph-surgeon__monogram { font-size: 5rem; }
}
/* The simulator's range input reaches 26px past the picture so its handle can centre on either edge;
   on a phone that is 6px past the screen. Clip at the section (clip, not hidden: no scroll container). */
.oph-vsim { overflow-x: hidden; overflow-x: clip; }

/* ---------- Mobile refinements, owner 2026-11-06 (live Sunaina review) ---------- */
.oph-footer__apps { margin-top: 2.5rem; }
.oph-footer__powered { display: inline-flex; align-items: center; gap: .5rem; }
.oph-footer__powered svg { width: 20px; height: 20px; flex: none; }
.oph-footer__powered b { font-weight: 600; }
@media (max-width: 719px) {
  /* app badges, copyright and the credit centre under the centred footer flow */
  .oph-footer__apps, .oph-footer__base { text-align: center; }
  .oph-footer__apps #tt-app-badges > div:last-child { justify-content: center; }
  .oph-footer__base { flex-direction: column; align-items: center; }
}
@media (max-width: 767px) {
  /* every hours row reads label over value — "closed" sits under "Sunday" like the others */
  .oph-hours li { flex-direction: column; align-items: flex-start; gap: .05rem; }
  /* booking buttons run the full width, and a pair of buttons is one size */
  .oph-slots .oph-btn { width: 100%; }
  .oph-cta__actions, .oph-hero__actions { flex-direction: column; align-items: stretch; width: min(100%, 22rem); }
  .oph-cta__actions .oph-btn, .oph-hero__actions .oph-btn { width: 100%; }
}

/* ==========================================================================
   LOOK · Light — Sunaina colours (owner 2026-11-06)
   <body> carries `oph-look-light` only when the clinic picks this look (Website → Theme & SEO → Look;
   ThemeLook + theme.json "looks"). Every rule below hangs off that class, so the Original look above is
   untouched and switching back is one click.
   Palette: Sunaina Netra Chikitsalaya's live site in lighter shades — ivory paper #FFF8EE, saffron #F59E0B
   (soft #FEF3C7), peacock #0F4C81 (washes #EAF1F8 / #DCE8F3), ink #1A2B3C — with the live site's dark peacock
   footer. The dark-section tokens are re-pointed at light washes, so every tone-dark section turns light; the
   rules after the tokens fix what the Original look hard-codes for dark grounds.
   Buttons are NOT part of the palette: they take the clinic's Primary brand colour (Website → Theme & SEO →
   Brand colors → --launch-primary, its hover and its contrast-picked text colour), exactly as the live Sunaina
   site's booking buttons do (owner 2026-11-06: "green buttons … follow the selected color in theme settings").
   Contrast (WCAG 2.2): ink-3 ≥ 4.58:1 on every ground used here; amber-ink #A35200 ≥ 4.6:1 where it is
   used as text; footer text 6.2:1 on peacock (the small "Powered by" 5.2:1).
   ========================================================================== */
.theme-ophthalmology.oph-look-light {
  --oph-sun-saffron: #F59E0B;
  --oph-sun-saffron-hover: #E8930A;
  --oph-sun-saffron-soft: #FEF3C7;
  --oph-sun-peacock: #0F4C81;
  --oph-sun-peacock-dark: #093560;
  --oph-sun-wash: #EAF1F8;
  --oph-sun-wash-2: #DCE8F3;
  --oph-sun-warm: #FFF3E0;

  --oph-sclera: #FFF8EE;
  --oph-paper: #FFFDF8;
  --oph-ink: #1A2B3C;
  --oph-ink-2: #3E4C5A;
  --oph-ink-3: #5C6874;
  --oph-line: #EADFCC;
  --oph-cobalt: var(--oph-sun-peacock);
  --oph-cobalt-dark: var(--oph-sun-peacock-dark);
  --oph-cobalt-soft: #E3EDF7;
  --oph-cobalt-ink: #FFFFFF;
  --oph-amber: var(--oph-sun-saffron);
  --oph-amber-soft: var(--oph-sun-saffron-soft);
  --oph-amber-ink: #A35200;

  /* the "dark" surfaces become light peacock washes, and text on them becomes ink */
  --oph-pupil: var(--oph-sun-wash);
  --oph-pupil-2: var(--oph-sun-wash-2);
  --oph-pupil-line: rgba(15, 76, 129, .16);
  --oph-on-dark: #1A2B3C;
  --oph-on-dark-2: #3E4C5A;
  --oph-fluor: var(--oph-sun-saffron);
  --oph-focus: var(--oph-sun-peacock-dark);
}
.oph-look-light .oph-tone-dark, .oph-look-light .oph-header, .oph-look-light .oph-dock, .oph-look-light .oph-journey { --oph-focus: var(--oph-sun-peacock-dark); }
.theme-ophthalmology.oph-look-light ::selection { background: #FDE3A7; color: var(--oph-ink); }
.oph-look-light .oph-tone-dark .oph-link { color: var(--oph-cobalt); }

/* buttons: the clinic's Primary brand colour (theme settings), text colour picked for contrast; ghost in ink */
.oph-look-light .oph-btn {
  background: var(--launch-primary, #0F4C81); color: var(--launch-primary-foreground, #FFFFFF);
  box-shadow: 0 12px 26px -14px color-mix(in srgb, var(--launch-primary, #0F4C81) 75%, transparent);
}
.oph-look-light .oph-btn:hover { background: var(--launch-primary-dark, #093560); }
.oph-look-light .oph-tone-dark .oph-btn { box-shadow: 0 12px 26px -14px color-mix(in srgb, var(--launch-primary, #0F4C81) 75%, transparent); }
.oph-look-light .oph-btn--ghost,
.oph-look-light .oph-tone-dark .oph-btn--ghost { background: transparent; color: var(--oph-ink); border-color: rgba(26, 43, 60, .3); box-shadow: none; }
.oph-look-light .oph-btn--ghost:hover,
.oph-look-light .oph-tone-dark .oph-btn--ghost:hover { background: rgba(15, 76, 129, .07); }

/* header + phone dock */
.oph-look-light .oph-header { background: var(--oph-sclera); color: var(--oph-ink); }
.oph-look-light .oph-header.is-scrolled { background: rgba(255, 248, 238, .9); border-bottom-color: var(--oph-line); box-shadow: 0 12px 30px -20px rgba(26, 43, 60, .28); }
.oph-look-light .oph-brand__mark { color: var(--oph-cobalt); }
.oph-look-light .oph-nav__list a { color: var(--oph-ink-2); }
.oph-look-light .oph-nav__list a:hover { color: var(--oph-ink); background: rgba(15, 76, 129, .07); }
.oph-look-light .oph-acct__btn, .oph-look-light .oph-nav-toggle { color: var(--oph-ink); border-color: rgba(26, 43, 60, .2); }
.oph-look-light.oph-nav-open .oph-nav { background: var(--oph-sclera); }
.oph-look-light .oph-dock { background: rgba(255, 253, 248, .94); box-shadow: 0 0 0 1px var(--oph-line), 0 18px 40px -16px rgba(26, 43, 60, .32); }
.oph-look-light .oph-dock__call { background: var(--oph-cobalt-soft); color: var(--oph-cobalt); }

/* hero: warm ivory, a saffron glow where the slit lamp lights the eye */
.oph-look-light .oph-hero { background: linear-gradient(180deg, var(--oph-sclera) 0%, var(--oph-sun-warm) 100%); }
.oph-look-light .oph-hero__glow {
  background:
    radial-gradient(52% 62% at 76% 46%, rgba(245, 158, 11, .2), transparent 66%);
}
.oph-look-light .oph-hero__video { opacity: .12; }
.oph-look-light .oph-hero__title { color: var(--oph-ink); }
.oph-look-light .oph-hero__place { color: var(--oph-amber-ink); }
.oph-look-light .oph-eye__rings { background: repeating-radial-gradient(circle, rgba(15, 76, 129, .1) 0 1px, transparent 1.5px 24px); }
.oph-look-light .oph-eye__sclera {
  background:
    radial-gradient(50% 70% at 50% 50%, transparent 46%, rgba(120, 78, 46, .34) 100%),
    radial-gradient(70% 95% at 50% 46%, #F6F3EE 0%, #DED7CD 52%, #AC9F91 100%);
}
.oph-look-light .oph-eye__shade {
  background:
    linear-gradient(180deg, rgba(92, 60, 38, .45) 0%, rgba(92, 60, 38, .12) 24%, transparent 40%),
    linear-gradient(0deg, rgba(92, 60, 38, .22) 0%, transparent 20%);
}
.oph-look-light .oph-eye__lid { background: #FDE8C4; }
.oph-look-light .oph-eye__lid--top { box-shadow: 0 2px 0 #3B2A20, 0 10px 18px rgba(59, 42, 32, .25); }
.oph-look-light .oph-eye__lid--bottom { box-shadow: 0 -2px 0 #4A362A, 0 -6px 12px rgba(59, 42, 32, .18); }
.oph-look-light .oph-eye__seam {
  background: linear-gradient(90deg, transparent, rgba(245, 158, 11, .7) 28%, var(--oph-sun-saffron) 50%, rgba(245, 158, 11, .7) 72%, transparent);
  box-shadow: 0 0 14px 3px rgba(245, 158, 11, .35);
}

/* facts strip: continues the hero; peacock figures, saffron ticks */
.oph-look-light .oph-facts--dark { background: var(--oph-sun-warm); border-top-color: rgba(163, 82, 0, .14); }
.oph-look-light .oph-facts--dark .oph-fact { border-left-color: rgba(245, 158, 11, .6); }
.oph-look-light .oph-facts--dark .oph-fact__value { color: var(--oph-cobalt); }

/* the journey through the eye: an anatomy plate on a light box, lit by a saffron slit-lamp beam */
.oph-look-light .oph-journey { background: #EEF4F9; color: var(--oph-ink); }
.oph-look-light .oph-journey__stage::before { background: repeating-radial-gradient(circle, rgba(15, 76, 129, .07) 0 1px, transparent 1.5px 36px); }
.oph-look-light .oph-journey__beam {
  mix-blend-mode: multiply;
  background: linear-gradient(90deg, transparent, rgba(245, 158, 11, .04) 28%, rgba(245, 158, 11, .1) 50%, rgba(245, 158, 11, .04) 72%, transparent);
}
.oph-look-light .oph-journey__shade { background: linear-gradient(0deg, #EEF4F9 0%, rgba(238, 244, 249, .88) 34%, rgba(238, 244, 249, 0) 58%); }
@media (min-width: 1024px) {
  .oph-look-light .oph-journey__shade {
    background:
      linear-gradient(0deg, rgba(238, 244, 249, .92) 0%, rgba(238, 244, 249, 0) 18%),
      linear-gradient(90deg, #EEF4F9 0%, rgba(238, 244, 249, .94) 32%, rgba(238, 244, 249, 0) 54%);
  }
  .oph-look-light .oph-journey__rail a { border-top-color: rgba(26, 43, 60, .16); color: var(--oph-ink-3); }
  .oph-look-light .oph-journey__rail a:hover { color: var(--oph-ink); }
  .oph-look-light .oph-journey__rail a.is-on { color: var(--oph-ink); border-top-color: var(--oph-sun-saffron); }
}
@media (max-width: 1023px) {
  .oph-look-light .oph-journey__card-in { background: rgba(255, 253, 248, .88); border-color: rgba(15, 76, 129, .14); }
}
.oph-look-light .oph-journey__progress { background: rgba(15, 76, 129, .1); }
.oph-look-light .oph-journey__progress i { background: linear-gradient(90deg, var(--oph-sun-saffron), #FBC15D); }
.oph-look-light .oph-journey__lead, .oph-look-light .oph-journey__title { color: var(--oph-ink); }
.oph-look-light .oph-journey__count b, .oph-look-light .oph-journey__hint { color: var(--oph-amber-ink); }
.oph-look-light .oph-journey__where--tearfilm { --dot: #2AA3D3; }
.oph-look-light .oph-journey__where--cornea { --dot: #3E9CC6; }
.oph-look-light .oph-journey__where--lens { --dot: #C9962E; }
.oph-look-light .oph-journey__where--angle { --dot: #D9822B; }
.oph-look-light .oph-journey__where--retina { --dot: #D0624F; }
.oph-look-light .oph-journey__where--muscles { --dot: #C76B5C; }
/* the lit part glows saffron; the step cards carry the same data-part, and a glow on ink text is a smudge */
.oph-look-light .oph-journey[data-active="tearfilm"] .oph-jsvg [data-part="tearfilm"],
.oph-look-light .oph-journey[data-active="cornea"] .oph-jsvg [data-part="cornea"],
.oph-look-light .oph-journey[data-active="lens"] .oph-jsvg [data-part="lens"],
.oph-look-light .oph-journey[data-active="angle"] .oph-jsvg [data-part="angle"], .oph-look-light .oph-journey[data-active="angle"] .j-nerve,
.oph-look-light .oph-journey[data-active="retina"] .oph-jsvg [data-part="retina"],
.oph-look-light .oph-journey[data-active="muscles"] .oph-jsvg [data-part="muscles"] { filter: drop-shadow(0 0 6px rgba(245, 158, 11, .5)); }
.oph-look-light .oph-journey .oph-journey__step[data-part] { filter: none; }
/* the drawing's light-on-dark strokes, redrawn in ink-strength colours for a light ground */
.oph-look-light .oph-jsvg .j-sclera { stroke: #4A5E80; }
.oph-look-light .oph-jsvg .j-retina { stroke: #D0624F; }
.oph-look-light .oph-jsvg .j-macula { fill: #D9A53A; }
.oph-look-light .oph-jsvg .j-bleed { fill: #E0443A; }
.oph-look-light .oph-jsvg .j-fat { fill: #E2B93B; }
.oph-look-light .oph-jsvg .j-scan { stroke: #1F8FC4; }
.oph-look-light .oph-jsvg .j-nerve-band { fill: rgba(201, 150, 46, .16); stroke: #C9962E; }
.oph-look-light .oph-jsvg .j-disc { fill: #D4A23E; }
.oph-look-light .oph-jsvg .j-press { stroke: #E8603C; }
.oph-look-light .oph-jsvg .j-zonule { stroke: rgba(74, 94, 128, .45); }
.oph-look-light .oph-jsvg .j-lens { stroke: #B98A3E; }
.oph-look-light .oph-jsvg .j-iol ellipse { fill: rgba(31, 143, 196, .14); stroke: #1F8FC4; }
.oph-look-light .oph-jsvg .j-iol path { stroke: #1F8FC4; }
.oph-look-light .oph-jsvg .j-mesh { stroke: #D9822B; }
.oph-look-light .oph-jsvg .j-canal { fill: #D9822B; }
.oph-look-light .oph-jsvg .j-fluid-path { stroke: rgba(31, 143, 196, .5); }
.oph-look-light .oph-jsvg .j-fluid circle { fill: #1F8FC4; }
.oph-look-light .oph-jsvg .j-cornea { fill: rgba(31, 143, 196, .08); stroke: #3E9CC6; }
.oph-look-light .oph-jsvg .j-clens { stroke: #1F8FC4; }
.oph-look-light .oph-jsvg .j-film { stroke: #2AA3D3; }
.oph-look-light .oph-jsvg .j-lid { stroke: rgba(150, 98, 66, .65); }
.oph-look-light .oph-jsvg .j-lash { stroke: #6B4A36; }
/* its gradients are SVG presentation attributes, which any stylesheet rule overrides */
.oph-look-light .oph-jsvg [id^="jv-"] > stop:first-child { stop-color: #FFFFFF; stop-opacity: .9; }
.oph-look-light .oph-jsvg [id^="jv-"] > stop:last-child { stop-color: #EEF4F9; }
.oph-look-light .oph-jsvg [id^="jl-"] > stop:first-child { stop-color: #F3DFAE; }
.oph-look-light .oph-jsvg [id^="jl-"] > stop:last-child { stop-color: #E9CF95; }
.oph-look-light .oph-jsvg [id^="jr-"] > stop { stop-color: var(--oph-sun-saffron); }
.oph-look-light .oph-jsvg [id^="js-"] > stop { stop-color: #1F8FC4; }

/* the surgeon + doctor lenses: light lens, saffron ring */
.oph-look-light .oph-surgeon__lens {
  background:
    repeating-radial-gradient(circle, rgba(245, 158, 11, .14) 0 1px, transparent 1.5px 16px),
    radial-gradient(circle at 50% 45%, #FFFFFF 0%, #E6EEF6 72%);
  box-shadow: 0 0 0 10px var(--oph-sclera), 0 0 0 11px rgba(245, 158, 11, .6), 0 40px 80px -40px rgba(15, 76, 129, .35);
}
.oph-look-light .oph-surgeon__monogram { color: var(--oph-cobalt); }
.oph-look-light .oph-surgeon__badge { box-shadow: 0 18px 40px -22px rgba(26, 43, 60, .35); }
.oph-look-light .oph-doctor__lens { background: #E6EEF6; box-shadow: 0 0 0 3px var(--oph-paper), 0 0 0 4px rgba(245, 158, 11, .55); }

/* timeline line in peacock */
.oph-look-light .oph-steps::before { background: linear-gradient(var(--oph-cobalt), rgba(15, 76, 129, .14)); }
@media (min-width: 1024px) {
  .oph-look-light .oph-timeline--horizontal .oph-steps::before { background: linear-gradient(90deg, var(--oph-cobalt), rgba(15, 76, 129, .16)); }
}

/* our promise: soft saffron (Sunaina's saffron block, lighter) */
.oph-look-light .oph-promise { background: var(--oph-sun-saffron-soft); }
.oph-look-light .oph-promise__rings { background: repeating-radial-gradient(circle, rgba(217, 119, 6, .14) 0 1px, transparent 1.5px 30px); }
.oph-look-light .oph-promise .oph-h2, .oph-look-light .oph-promise__item .oph-h3 { color: var(--oph-ink); }

/* visit: the booking-opens panel in a peacock wash */
.oph-look-light .oph-slots { background: var(--oph-sun-wash); box-shadow: inset 0 0 0 1px rgba(15, 76, 129, .12); }
.oph-look-light .oph-slots__dial { background: repeating-conic-gradient(from 0deg, rgba(15, 76, 129, .16) 0 .7deg, transparent .7deg 6deg); }
.oph-look-light .oph-countdown__lead, .oph-look-light .oph-countdown__cell b { color: var(--oph-ink); }
.oph-look-light .oph-countdown__cell { background: #FFFFFF; }
.oph-look-light .oph-countdown.is-open .oph-countdown__now { color: #047857; }

/* call to action: a peacock wash (Sunaina's peacock block, lighter) */
.oph-look-light .oph-cta { background: var(--oph-sun-wash); }
.oph-look-light .oph-cta .oph-h2 { color: var(--oph-ink); }
.oph-look-light .oph-cta__iris {
  background:
    repeating-conic-gradient(from 0deg, rgba(245, 158, 11, .12) 0 .8deg, transparent .8deg 3.4deg),
    radial-gradient(circle, rgba(245, 158, 11, .12) 0 30%, transparent 46%);
}
/* footer: dark peacock with ivory text, as on the live Sunaina site (bg-peacock text-paper). The light look
   re-pointed the on-dark tokens at ink, so the footer re-establishes a dark context for everything inside it. */
.oph-look-light .oph-footer {
  --oph-on-dark: #FFF8EE; --oph-on-dark-2: rgba(255, 248, 238, .82); --oph-pupil-line: rgba(255, 248, 238, .2);
  --oph-focus: #FBC15D;
  background: var(--oph-sun-peacock); color: rgba(255, 248, 238, .82);
}
.oph-look-light .oph-footer__name, .oph-look-light .oph-footer__h, .oph-look-light .oph-footer__contact a { color: #FFF8EE; }
.oph-look-light .oph-footer__col a { color: rgba(255, 248, 238, .82); }
.oph-look-light .oph-footer__col a:hover, .oph-look-light .oph-footer__powered:hover { color: #FFFFFF; }
.oph-look-light .oph-footer__powered { color: rgba(255, 248, 238, .72); }
.oph-look-light .oph-footer__base { border-top-color: rgba(255, 248, 238, .2); }
.oph-look-light .oph-footer ::selection { background: #FBC15D; color: var(--oph-ink); }

/* article ticks keep a dark pupil */
.oph-look-light .oph-ticks li::before {
  background: radial-gradient(circle, var(--oph-ink) 0 30%, var(--oph-amber) 33% 64%, transparent 66%);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, .5);
}

/* interior page hero: peacock wash; the line drawings switch to ink on light */
.oph-look-light .oph-ph { background: linear-gradient(160deg, #F4F8FC 0%, var(--oph-sun-wash) 60%, #E3ECF5 100%); }
.oph-look-light .oph-ill .oph-ls { stroke: #7C8AA5; }
.oph-look-light .oph-ill .oph-sli { stroke: #E0A100; }
.oph-look-light .oph-ill .oph-fli { fill: #F2B630; }
.oph-look-light .oph-ill .oph-sfl { stroke: #2E9CC9; }
.oph-look-light .oph-ill .oph-smu { stroke: var(--oph-ill-muscle); }
.oph-look-light .oph-ill .oph-fsc { fill: #FFFFFF; fill-opacity: .92; }
.oph-look-light .oph-ill .oph-fs { fill: var(--oph-sun-peacock); fill-opacity: .05; }
.oph-look-light .oph-ill .oph-fpu { fill: var(--oph-ink); }
/* sparkles are drawn white with an inline style; only !important outranks one */
.oph-look-light .oph-ill .oph-glint { stroke: var(--oph-sun-saffron) !important; }

/* vision simulator */
.oph-look-light .oph-vsim__blink { background: var(--launch-primary, #0F4C81); border-color: var(--launch-primary, #0F4C81); color: var(--launch-primary-foreground, #FFFFFF); }
.oph-look-light .oph-vsim__blink:hover { background: var(--launch-primary-dark, #093560); }
.oph-look-light .oph-vsim__tag { color: #EEF1FA; }
.oph-look-light .oph-vsim__tag--after { color: var(--oph-ink); }
