/* =========================================================
   Dr Eye Vision — shared styles
   Palette drawn from the eye itself: teal sclera-shadow,
   amber iris. Display face Poppins, body face Inter.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&family=Inter:wght@300;400;500;600&family=Jost:wght@300;400;500;600&family=Fjalla+One&family=Italiana&family=Antic+Didone&family=Assistant:wght@300;400;600&display=swap');

:root {
  --teal:        #0E3A3A;  /* deep slate-teal — trust, medical    */
  --teal-deep:   #0A2A2A;  /* darker teal for overlays            */
  --mist:        #F3F6F5;  /* soft near-white background          */
  --white:       #FFFFFF;
  --amber:       #E0A45E;  /* warm iris accent — used sparingly   */
  --amber-soft:  #F0D7B5;
  --amber-rgb:   224 164 94;  /* --amber as a triplet, for rgb(… / a) call sites */
  --ink:         #11201F;  /* primary text                        */
  --muted:       #5C6B6A;  /* secondary text                      */
  --line:        #C2C2C2;  /* hairline dividers                   */

  /* theme-dependent derived colours — space-separated RGB for rgb(… / a) */
  --shadow-color: 14 58 58;   /* brand-tinted shadows                */
  --overlay-deep: 10 42 42;   /* image-darkening overlays            */
  --plate-top:    #FBFCFB;    /* anatomical plate gradient, top      */
  --plate-bottom: #F0F4F2;    /* anatomical plate gradient, bottom   */
  --form-bg:      #E5E5E5;    /* enquiry form card background        */

  --display: 'Poppins', system-ui, -apple-system, sans-serif;
  --body:    'Inter', system-ui, -apple-system, sans-serif;

  --display-weight:   500;
  --display-tracking: -0.02em;
  --h-leading:        1.12;

  --maxw: 1300px;
  --pad: clamp(1.25rem, 5vw, 4rem);

  --ease: cubic-bezier(.22, .61, .36, 1);

  --radius: 14px;  /* corner rounding for images, cards and block surfaces */
  --media-radius: var(--radius);  /* photos only — cards keep --radius */

  /* marks are inlined as data URIs so no URL resolution or file fetch is
     involved — external-file masks failed when pages were opened via
     file:// . Canonical sources live in assets/svg/logo-*.svg */
  --logo-src: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%20100%22%20width%3D%22100%22%20height%3D%22100%22%3E%20%3Cmask%20id%3D%22pupil%22%3E%20%3Ccircle%20cx%3D%2250%22%20cy%3D%2250%22%20r%3D%2211%22%20fill%3D%22%23fff%22%2F%3E%20%3Ccircle%20cx%3D%2255.5%22%20cy%3D%2244.5%22%20r%3D%223.6%22%20fill%3D%22%23000%22%2F%3E%20%3C%2Fmask%3E%20%3Ccircle%20cx%3D%2250%22%20cy%3D%2250%22%20r%3D%2246.5%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222.6%22%2F%3E%20%3Ccircle%20cx%3D%2250%22%20cy%3D%2250%22%20r%3D%2227%22%20fill%3D%22%23000%22%20fill-opacity%3D%220.3%22%20stroke%3D%22%23000%22%20stroke-width%3D%222.6%22%2F%3E%20%3Ccircle%20cx%3D%2250%22%20cy%3D%2250%22%20r%3D%2211%22%20fill%3D%22%23000%22%20mask%3D%22url%28%23pupil%29%22%2F%3E%20%3C%2Fsvg%3E");
}

/* ---------- navy palette (Style Lab) ----------
   Overrides the teal token values, and — at the owner's request —
   swaps the warm amber accent for a light-blue set, giving navy a
   fully cool scheme rather than navy-plus-brass. */
[data-theme="navy"] {
  --teal:         #38477E;
  --teal-deep:    #06237F;
  --mist:         #F4F6FA;
  --ink:          #131A28;
  --muted:        #5B6577;
  --line:         #C6CAD2;
  --shadow-color: 56 71 126;
  --overlay-deep: 6 35 127;
  --plate-top:    #FBFCFE;
  --plate-bottom: #EEF2F8;
  --form-bg:      #E6E9EF;
  --amber:        #7CACFF;
  --amber-soft:   #C3D9FF;
  --amber-rgb:    124 172 255;
}
/* owner request: white button text under navy's light-blue accent */
[data-theme="navy"] .btn--solid { color: var(--white); }

/* ---------- cobalt palette (Style Lab) ----------
   A second blue for comparison against navy: brighter, more saturated
   mid-blue with a cyan accent set (navy's accent is a softer periwinkle). */
[data-theme="cobalt"] {
  --teal:         #104475;
  --teal-deep:    #053969;
  --mist:         #F3F7FB;
  --ink:          #10202E;
  --muted:        #52667A;
  --line:         #C3CDD8;
  --shadow-color: 16 68 117;
  --overlay-deep: 5 57 105;
  --plate-top:    #FAFCFE;
  --plate-bottom: #ECF2F8;
  --form-bg:      #E4E9EF;
  --amber:        #0095CE;
  --amber-soft:   #9DE4FF;
  --amber-rgb:    0 149 206;
}
[data-theme="cobalt"] .btn--solid { color: var(--white); }

/* ---------- dark blue palette (Style Lab) ----------
   Teal scheme kept as the base; the two brand tones shift to
   deep blues while the amber accent and neutrals stay put. */
[data-theme="darkblue"] {
  --teal:         #003262;
  --teal-deep:    #062746;
  --shadow-color: 0 50 98;
  --overlay-deep: 6 39 70;
}

/* ---------- dark blue alt palette (Style Lab) ----------
   Dark Blue base with slightly shifted blues and a golden
   accent set in place of the tan amber. */
[data-theme="darkblue-alt"] {
  --teal:         #0E3A6E;
  --teal-deep:    #04213F;
  --shadow-color: 14 58 110;
  --overlay-deep: 4 33 63;
  --amber:        #FFB11B;
  --amber-soft:   #F0E2A8;
  --amber-rgb:    255 177 27;
}

/* on the blue themes the active nav item reads better in the soft tint
   than in the full-strength accent (owner request). Scoped to the
   transparent-over-dark header only: once the header scrolls to white,
   the pale tints all but vanish (~1.3:1), so the scrolled state keeps
   the full accent. The dropdown panel is always white, so it keeps the
   full accent too. */
[data-theme="navy"] .site-header:not(.scrolled) .nav > a[aria-current="page"],
[data-theme="cobalt"] .site-header:not(.scrolled) .nav > a[aria-current="page"],
[data-theme="navy"] .site-header:not(.scrolled) .nav-sub__trigger[aria-current="page"],
[data-theme="cobalt"] .site-header:not(.scrolled) .nav-sub__trigger[aria-current="page"] {
  color: var(--amber-soft);
}
[data-theme="navy"] .site-header:not(.scrolled) .nav > a[aria-current="page"]::after,
[data-theme="cobalt"] .site-header:not(.scrolled) .nav > a[aria-current="page"]::after {
  background: var(--amber-soft);
}

/* ---------- typeface variants (Style Lab) ---------- */
[data-type="sleek"] {
  --display: 'Jost', system-ui, -apple-system, sans-serif;
  --display-weight: 300;
  --display-tracking: -0.005em;
  --h-leading: 1.14;
}
[data-type="magazine"] {
  --display: 'Italiana', Georgia, 'Times New Roman', serif;
  --display-weight: 400;
  --display-tracking: .01em;
  --h-leading: 1.08;
}
[data-type="didone"] {
  --display: 'Antic Didone', Georgia, 'Times New Roman', serif;
  /* owner request. Antic Didone ships only a 400 cut, so 600 is browser-
     synthesised bold — acceptable here as a deliberate thickening of the
     hairlines; revisit if this face is chosen for bake-in. */
  --display-weight: 600;
  --display-tracking: .005em;
  --h-leading: 1.14;
}
[data-type="assistant"] {
  --display: 'Assistant', system-ui, -apple-system, sans-serif;
  --display-weight: 300;
  --display-tracking: -0.01em;
  --h-leading: 1.14;
}
/* Italiana and Antic Didone are single-weight display serifs whose hairlines
   break down at small sizes, so the serif is confined to the wordmark, h1 and
   h2. Everything smaller reverts to Inter. (Assistant needs no scoping — it is
   a text sans with a real 600.) */
[data-type="magazine"] h3,
[data-type="magazine"] .stat b,
[data-type="magazine"] .creds .year,
[data-type="magazine"] .prov__logo[data-placeholder]::after,
[data-type="magazine"] .logo-row__item[data-placeholder]::after,
[data-type="didone"] h3,
[data-type="didone"] .stat b,
[data-type="didone"] .creds .year,
[data-type="didone"] .prov__logo[data-placeholder]::after,
[data-type="didone"] .logo-row__item[data-placeholder]::after {
  font-family: var(--body);
  font-weight: 600;
  letter-spacing: -0.01em;
}
[data-type="condensed"] {
  --display: 'Fjalla One', 'Arial Narrow', system-ui, sans-serif;
  --display-weight: 400;
  --display-tracking: .01em;
  --h-leading: 1.1;
}
/* Fjalla One ships a single 400 weight; anything requesting 600 would get
   browser-synthesised faux bold, so pin these to the real face */
[data-type="condensed"] h3,
[data-type="condensed"] .stat b,
[data-type="condensed"] .creds .year {
  font-weight: var(--display-weight);
}

/* ---------- logo variants (Style Lab) ---------- */
[data-logo="b"] { --logo-src: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%20100%22%20width%3D%22100%22%20height%3D%22100%22%3E%20%3Cmask%20id%3D%22pupil%22%3E%20%3Ccircle%20cx%3D%2250%22%20cy%3D%2250%22%20r%3D%2211%22%20fill%3D%22%23fff%22%2F%3E%20%3Ccircle%20cx%3D%2255.5%22%20cy%3D%2244.5%22%20r%3D%223.6%22%20fill%3D%22%23000%22%2F%3E%20%3C%2Fmask%3E%20%3Ccircle%20cx%3D%2250%22%20cy%3D%2250%22%20r%3D%2246.5%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222.6%22%2F%3E%20%3Ccircle%20cx%3D%2250%22%20cy%3D%2250%22%20r%3D%2227%22%20fill%3D%22%23000%22%20fill-opacity%3D%220.3%22%20stroke%3D%22%23000%22%20stroke-width%3D%222.6%22%2F%3E%20%3Cg%20stroke%3D%22%23000%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%3E%20%3Cline%20x1%3D%2250%22%20y1%3D%2236%22%20x2%3D%2250%22%20y2%3D%2225.5%22%20transform%3D%22rotate%280%2050%2050%29%22%2F%3E%20%3Cline%20x1%3D%2250%22%20y1%3D%2236%22%20x2%3D%2250%22%20y2%3D%2225.5%22%20transform%3D%22rotate%2825.714%2050%2050%29%22%2F%3E%20%3Cline%20x1%3D%2250%22%20y1%3D%2236%22%20x2%3D%2250%22%20y2%3D%2225.5%22%20transform%3D%22rotate%2851.429%2050%2050%29%22%2F%3E%20%3Cline%20x1%3D%2250%22%20y1%3D%2236%22%20x2%3D%2250%22%20y2%3D%2225.5%22%20transform%3D%22rotate%2877.143%2050%2050%29%22%2F%3E%20%3Cline%20x1%3D%2250%22%20y1%3D%2236%22%20x2%3D%2250%22%20y2%3D%2225.5%22%20transform%3D%22rotate%28102.857%2050%2050%29%22%2F%3E%20%3Cline%20x1%3D%2250%22%20y1%3D%2236%22%20x2%3D%2250%22%20y2%3D%2225.5%22%20transform%3D%22rotate%28128.571%2050%2050%29%22%2F%3E%20%3Cline%20x1%3D%2250%22%20y1%3D%2236%22%20x2%3D%2250%22%20y2%3D%2225.5%22%20transform%3D%22rotate%28154.286%2050%2050%29%22%2F%3E%20%3Cline%20x1%3D%2250%22%20y1%3D%2236%22%20x2%3D%2250%22%20y2%3D%2225.5%22%20transform%3D%22rotate%28180%2050%2050%29%22%2F%3E%20%3Cline%20x1%3D%2250%22%20y1%3D%2236%22%20x2%3D%2250%22%20y2%3D%2225.5%22%20transform%3D%22rotate%28205.714%2050%2050%29%22%2F%3E%20%3Cline%20x1%3D%2250%22%20y1%3D%2236%22%20x2%3D%2250%22%20y2%3D%2225.5%22%20transform%3D%22rotate%28231.429%2050%2050%29%22%2F%3E%20%3Cline%20x1%3D%2250%22%20y1%3D%2236%22%20x2%3D%2250%22%20y2%3D%2225.5%22%20transform%3D%22rotate%28257.143%2050%2050%29%22%2F%3E%20%3Cline%20x1%3D%2250%22%20y1%3D%2236%22%20x2%3D%2250%22%20y2%3D%2225.5%22%20transform%3D%22rotate%28282.857%2050%2050%29%22%2F%3E%20%3Cline%20x1%3D%2250%22%20y1%3D%2236%22%20x2%3D%2250%22%20y2%3D%2225.5%22%20transform%3D%22rotate%28308.571%2050%2050%29%22%2F%3E%20%3Cline%20x1%3D%2250%22%20y1%3D%2236%22%20x2%3D%2250%22%20y2%3D%2225.5%22%20transform%3D%22rotate%28334.286%2050%2050%29%22%2F%3E%20%3C%2Fg%3E%20%3Ccircle%20cx%3D%2250%22%20cy%3D%2250%22%20r%3D%2211%22%20fill%3D%22%23000%22%20mask%3D%22url%28%23pupil%29%22%2F%3E%20%3C%2Fsvg%3E"); }
[data-logo="c"] { --logo-src: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%20100%22%20width%3D%22100%22%20height%3D%22100%22%3E%20%3CclipPath%20id%3D%22disc%22%3E%3Ccircle%20cx%3D%2250%22%20cy%3D%2250%22%20r%3D%2246.5%22%2F%3E%3C%2FclipPath%3E%20%3Cmask%20id%3D%22pupil%22%3E%20%3Ccircle%20cx%3D%2250%22%20cy%3D%2250%22%20r%3D%2211%22%20fill%3D%22%23fff%22%2F%3E%20%3Ccircle%20cx%3D%2255.5%22%20cy%3D%2244.5%22%20r%3D%223.6%22%20fill%3D%22%23000%22%2F%3E%20%3C%2Fmask%3E%20%3Cg%20clip-path%3D%22url%28%23disc%29%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.5%22%20stroke-opacity%3D%220.55%22%3E%20%3Cline%20x1%3D%2250%22%20y1%3D%220%22%20x2%3D%2250%22%20y2%3D%22100%22%20transform%3D%22rotate%280%2050%2050%29%22%2F%3E%20%3Cline%20x1%3D%2250%22%20y1%3D%220%22%20x2%3D%2250%22%20y2%3D%22100%22%20transform%3D%22rotate%2836%2050%2050%29%22%2F%3E%20%3Cline%20x1%3D%2250%22%20y1%3D%220%22%20x2%3D%2250%22%20y2%3D%22100%22%20transform%3D%22rotate%2872%2050%2050%29%22%2F%3E%20%3Cline%20x1%3D%2250%22%20y1%3D%220%22%20x2%3D%2250%22%20y2%3D%22100%22%20transform%3D%22rotate%28108%2050%2050%29%22%2F%3E%20%3Cline%20x1%3D%2250%22%20y1%3D%220%22%20x2%3D%2250%22%20y2%3D%22100%22%20transform%3D%22rotate%28144%2050%2050%29%22%2F%3E%20%3C%2Fg%3E%20%3Ccircle%20cx%3D%2250%22%20cy%3D%2250%22%20r%3D%2246.5%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222.6%22%2F%3E%20%3Ccircle%20cx%3D%2250%22%20cy%3D%2250%22%20r%3D%2227%22%20fill%3D%22%23000%22%20fill-opacity%3D%220.3%22%20stroke%3D%22%23000%22%20stroke-width%3D%222.6%22%2F%3E%20%3Ccircle%20cx%3D%2250%22%20cy%3D%2250%22%20r%3D%2211%22%20fill%3D%22%23000%22%20mask%3D%22url%28%23pupil%29%22%2F%3E%20%3C%2Fsvg%3E"); }
[data-logo="d"] { --logo-src: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%20100%22%20width%3D%22100%22%20height%3D%22100%22%3E%20%3Cmask%20id%3D%22pupil%22%3E%20%3Ccircle%20cx%3D%2250%22%20cy%3D%2250%22%20r%3D%2214.5%22%20fill%3D%22%23fff%22%2F%3E%20%3Ccircle%20cx%3D%2257%22%20cy%3D%2243%22%20r%3D%224.5%22%20fill%3D%22%23000%22%2F%3E%20%3C%2Fmask%3E%20%3Cg%20stroke%3D%22%23000%22%20stroke-width%3D%222.2%22%20stroke-linecap%3D%22round%22%3E%20%3Cline%20x1%3D%2250%22%20y1%3D%2232.6%22%20x2%3D%2250%22%20y2%3D%223.5%22%20transform%3D%22rotate%280%2050%2050%29%22%2F%3E%20%3Cline%20x1%3D%2250%22%20y1%3D%2232.6%22%20x2%3D%2250%22%20y2%3D%2211.6%22%20transform%3D%22rotate%2822.5%2050%2050%29%22%2F%3E%20%3Cline%20x1%3D%2250%22%20y1%3D%2232.6%22%20x2%3D%2250%22%20y2%3D%223.5%22%20transform%3D%22rotate%2845%2050%2050%29%22%2F%3E%20%3Cline%20x1%3D%2250%22%20y1%3D%2232.6%22%20x2%3D%2250%22%20y2%3D%2211.6%22%20transform%3D%22rotate%2867.5%2050%2050%29%22%2F%3E%20%3Cline%20x1%3D%2250%22%20y1%3D%2232.6%22%20x2%3D%2250%22%20y2%3D%223.5%22%20transform%3D%22rotate%2890%2050%2050%29%22%2F%3E%20%3Cline%20x1%3D%2250%22%20y1%3D%2232.6%22%20x2%3D%2250%22%20y2%3D%2211.6%22%20transform%3D%22rotate%28112.5%2050%2050%29%22%2F%3E%20%3Cline%20x1%3D%2250%22%20y1%3D%2232.6%22%20x2%3D%2250%22%20y2%3D%223.5%22%20transform%3D%22rotate%28135%2050%2050%29%22%2F%3E%20%3Cline%20x1%3D%2250%22%20y1%3D%2232.6%22%20x2%3D%2250%22%20y2%3D%2211.6%22%20transform%3D%22rotate%28157.5%2050%2050%29%22%2F%3E%20%3Cline%20x1%3D%2250%22%20y1%3D%2232.6%22%20x2%3D%2250%22%20y2%3D%223.5%22%20transform%3D%22rotate%28180%2050%2050%29%22%2F%3E%20%3Cline%20x1%3D%2250%22%20y1%3D%2232.6%22%20x2%3D%2250%22%20y2%3D%2211.6%22%20transform%3D%22rotate%28202.5%2050%2050%29%22%2F%3E%20%3Cline%20x1%3D%2250%22%20y1%3D%2232.6%22%20x2%3D%2250%22%20y2%3D%223.5%22%20transform%3D%22rotate%28225%2050%2050%29%22%2F%3E%20%3Cline%20x1%3D%2250%22%20y1%3D%2232.6%22%20x2%3D%2250%22%20y2%3D%2211.6%22%20transform%3D%22rotate%28247.5%2050%2050%29%22%2F%3E%20%3Cline%20x1%3D%2250%22%20y1%3D%2232.6%22%20x2%3D%2250%22%20y2%3D%223.5%22%20transform%3D%22rotate%28270%2050%2050%29%22%2F%3E%20%3Cline%20x1%3D%2250%22%20y1%3D%2232.6%22%20x2%3D%2250%22%20y2%3D%2211.6%22%20transform%3D%22rotate%28292.5%2050%2050%29%22%2F%3E%20%3Cline%20x1%3D%2250%22%20y1%3D%2232.6%22%20x2%3D%2250%22%20y2%3D%223.5%22%20transform%3D%22rotate%28315%2050%2050%29%22%2F%3E%20%3Cline%20x1%3D%2250%22%20y1%3D%2232.6%22%20x2%3D%2250%22%20y2%3D%2211.6%22%20transform%3D%22rotate%28337.5%2050%2050%29%22%2F%3E%20%3C%2Fg%3E%20%3Ccircle%20cx%3D%2250%22%20cy%3D%2250%22%20r%3D%2214.5%22%20fill%3D%22%23000%22%20mask%3D%22url%28%23pupil%29%22%2F%3E%20%3C%2Fsvg%3E"); }

/* ---------- circular photos (Style Lab) ----------
   Photos only. Cards, quote cards, stat tiles and the form card
   keep --radius, per the brief. */
[data-photo="circle"] {
  --media-radius: 50%;
}
/* a circular crop of a 4:3 source throws away the sides, so landscape
   media reverts to square when circles are on */
[data-photo="circle"] .intro__media--landscape { aspect-ratio: 1 / 1; }
/* cataract-surgery.html's operating-microscope shot has no --face crop,
   so the default centred position leaves only a sliver of the microscope
   once the frame goes square; shift the window left to keep it recognisable */
[data-photo="circle"] .intro__media--landscape[src*="Anurag-49"] {
  object-position: 15% 50%;
}
/* the hard offset shadow reads wrong on a round edge */
[data-photo="circle"] .intro__media {
  box-shadow: 0 18px 50px -18px rgb(var(--shadow-color) / .45);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-weight: 400;
  color: var(--ink);
  background: var(--mist);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip; /* off-canvas nav / decorative art must never widen the page */
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
/* browsers default <figure> to margin: 1em 40px — every <figure> in this
   theme (.featured__slide, .plate, .quote-card) is meant to fill its own
   grid/flex track exactly, so that unreset margin silently added 80px to
   the box's own footprint. Harmless on wide tracks (.plate just looked
   narrower/off-centre than intended); on .featured__slide at mobile width,
   where the card is meant to fill the full available width, it pushed the
   card's right edge past the viewport. */
figure { margin: 0; }

/* ---------- type ---------- */
h1, h2, h3 {
  font-family: var(--display);
  font-weight: var(--display-weight);
  line-height: var(--h-leading);
  letter-spacing: var(--display-tracking);
  margin: 0 0 1.2rem;
  color: var(--ink);
  overflow-wrap: break-word;
}
h1 { font-size: clamp(2rem, 5.6vw, 4.2rem); }
h2 { font-size: clamp(1.65rem, 3.8vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.55rem); font-weight: 600; }
p  { margin: 0 0 1.1em; max-width: 68ch; }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); }

/* prose that lives inside an already-constrained column should fill it,
   not re-clamp to a narrower measure (which reads as ragged/broken). */
.intro__grid p, .service__body p, .form-card p, .contact-item p,
.diff p, .quote-card p, .measure p { max-width: none; }

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(4rem, 9vw, 8rem); }
/* white against the mist body — gives pages an alternating light rhythm */
.section--tint { background: var(--white); }
/* teal section — invert heading + lead text for contrast */
.section--teal { background: var(--teal); color: rgba(255,255,255,.86); }
.section--teal h2 { color: var(--white); }
.section--teal .lead { color: rgba(255,255,255,.78); }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.center { text-align: center; }
.measure { max-width: 90ch; margin-inline: auto; }
.measure--wide { max-width: 900px; margin-inline: auto; }
/* left-anchored section intro — heading/lead capped for readability but
   aligned to the content's left edge (not centred in the wrap) */
.section-head { max-width: 46ch; }
.section-head .lead { margin-bottom: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* =========================================================
   Header / nav
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center;
  padding: 1.1rem var(--pad);
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease), transform .4s var(--ease);
}
.site-header.hidden { transform: translateY(-100%); }
.site-header.scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
  padding-block: 0.7rem;
}
/* pages that open on a light background need dark header text from the top */
.site-header--light .nav a { color: var(--ink); }
.site-header--light .nav a[aria-current="page"] { color: var(--amber); }
.site-header--light .nav-toggle span { color: var(--ink); }

/* ---------- brand lockup ---------- */
.brand { display: flex; align-items: center; gap: .7rem; margin-right: auto; }
/* the mark is a mask filled with currentColor, so it inherits theme colour
   directly — no filter chain, and it recolours correctly under navy */
.brand__mark {
  width: 36px; height: 36px; flex-shrink: 0; display: block;
  background: currentColor; color: var(--white);
  /* longhands, not the mask shorthand — WebKit rejects the position/size
     slash syntax inside the shorthand, which left the mark invisible in
     Safari while Chromium rendered it fine */
  -webkit-mask-image: var(--logo-src);
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-image: var(--logo-src);
  mask-position: center;
  mask-size: contain;
  mask-repeat: no-repeat;
  transition: color .4s var(--ease);
}
.brand__text { display: flex; flex-direction: column; gap: .18rem; line-height: 1; }
.brand__name {
  font-family: var(--display); font-weight: var(--display-weight);
  font-size: 1.2rem; letter-spacing: .005em; line-height: 1;
  color: var(--white); transition: color .4s var(--ease);
}
.brand__role {
  font-family: var(--body); font-size: .62rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; line-height: 1;
  color: rgb(255 255 255 / .7); transition: color .4s var(--ease);
}
/* the descriptor would crowd the nav toggle on small screens */
@media (max-width: 520px) { .brand__role { display: none; } }

/* header on a light background — scrolled, or a light-open page */
.site-header.scrolled .brand__mark,
.site-header--light .brand__mark { color: var(--teal); }
.site-header.scrolled .brand__name,
.site-header--light .brand__name { color: var(--ink); }
.site-header.scrolled .brand__role,
.site-header--light .brand__role { color: var(--muted); }

/* footer sits on --teal-deep, so the lockup stays light */
.site-footer .brand__mark { color: var(--white); }
.site-footer .brand__role { color: rgb(255 255 255 / .55); }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.2rem); }
.nav a {
  font-size: 0.92rem; font-weight: 500; letter-spacing: .01em;
  color: var(--white); position: relative; padding: .2rem 0;
  transition: color .3s var(--ease);
}
.site-header.scrolled .nav a { color: var(--ink); }
.nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: var(--amber); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--amber); }
.site-header.scrolled .nav a[aria-current="page"] { color: var(--amber); }

.nav-cta {
  border: 1px solid currentColor; border-radius: 999px;
  padding: .5rem 1.1rem !important;
}
.nav-cta::after { display: none; }

/* ---------- Services dropdown ---------- */
.nav-sub { position: relative; display: flex; align-items: center; }
.nav-sub__trigger { display: inline-flex; align-items: center; }
.nav-sub__trigger .caret {
  display: inline-block; width: 6px; height: 6px; margin-left: .5rem;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  font-size: 0; /* hide the ▾ glyph — the chevron is drawn with borders */
  /* nudge up so the rotated square sits optically centred on the text */
  transform: translateY(-2px) rotate(45deg);
  transition: transform .3s var(--ease);
}
.nav-sub:hover .nav-sub__trigger .caret,
.nav-sub:focus-within .nav-sub__trigger .caret { transform: translateY(1px) rotate(225deg); }
.nav-sub__menu {
  position: absolute; top: calc(100% + .8rem); left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 250px; padding: .55rem 0;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 26px 50px -24px rgb(var(--shadow-color) / .45);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
/* invisible bridge so the pointer can cross the gap to the menu */
.nav-sub__menu::before { content: ''; position: absolute; top: -0.9rem; left: 0; right: 0; height: .9rem; }
.nav-sub:hover .nav-sub__menu,
.nav-sub:focus-within .nav-sub__menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.site-header .nav-sub__menu a {
  display: block; padding: .55rem 1.3rem; font-size: .92rem; color: var(--ink);
}
.site-header .nav-sub__menu a::after { display: none; }
.site-header .nav-sub__menu a:hover { color: var(--amber); background: var(--mist); }
.site-header .nav-sub__menu a[aria-current="page"] { color: var(--amber); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 30px; height: 22px; position: relative; margin-left: 1rem;
}
.nav-toggle span {
  position: absolute; left: 0; right: 0; height: 2px; background: currentColor;
  color: var(--white); transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.site-header.scrolled .nav-toggle span { color: var(--ink); }
.nav-toggle span:nth-child(1) { top: 2px; }
.nav-toggle span:nth-child(2) { top: 10px; }
.nav-toggle span:nth-child(3) { top: 18px; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--body); font-size: .95rem; font-weight: 500;
  padding: .85rem 1.6rem; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--amber); color: var(--teal-deep); }
.btn--solid:hover { box-shadow: 0 10px 24px -10px rgb(var(--amber-rgb) / .7); }
.btn--ghost { border-color: var(--teal); color: var(--teal); }
.btn--ghost:hover { background: var(--teal); color: var(--white); }
.btn--light { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn--light:hover { background: var(--white); color: var(--teal-deep); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* =========================================================
   Hero (video)
   ========================================================= */
.hero {
  position: relative; min-height: 80svh;
  display: flex; align-items: center;
  color: var(--white); overflow: hidden;
  text-align: center;
  /* WP addition: fallback so the white hero text is never invisible —
     covers the gap before the video loads, and if no video is attached
     at all (e.g. seeding a fresh install before media has been set).
     isolation:isolate is required alongside it: without a stacking
     context of its own, this background (a normal-flow paint layer)
     sits ABOVE the video/overlay's negative z-index and hides them
     completely. .cta-band below hits the same issue and uses the same
     fix — an opaque background on an element with negative-z-index
     children always needs isolation:isolate (or an explicit z-index). */
  background: var(--teal-deep);
  isolation: isolate;
}
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -2;
}
/* darkening overlay so the hero text stays legible */
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background: rgb(0 0 0 / 30%);
}
/* Mobile: isolate a single eye instead of the default centre-crop.
   The source footage is a wide (2.7:1) symmetrical two-eye close-up shot
   for a landscape hero. Plain object-fit:cover on a portrait viewport
   scales to match container *height* exactly, so there's no vertical crop
   room — whatever object-position shows always lands in the same vertical
   band as the centred headline/CTA (confirmed by testing five horizontal
   offsets; all equally compromised, see CHANGELOG.md). The fix is a
   secondary transform:scale() on top of the cover-fit, which introduces
   real vertical crop room, then transform-origin + object-position pick
   which part of the frame that room comes from:
   - object-position 20% (horizontal) lands on the left eye rather than
     the centre nose-bridge/skin the default 50% shows.
   - transform-origin 23% 55% anchors the zoom on the left eye's iris,
     measured directly off the source video's native 1280x468 frame.
   - scale(2.2) zooms enough to lift the eye clear of the headline's
     vertical band without cropping so tight it stops reading as an eye.
   Tuned by comparing multiple scale/origin combinations against real
   screenshots — see CHANGELOG.md for the comparison and exact numbers
   tried. Revisit this block if the hero video is ever replaced. */
@media (max-width: 700px) {
  .hero__video {
    object-position: 20% center;
    transform-origin: 23% 55%;
    transform: scale(2.2);
  }
}
/* Portrait tablets (iPad-class devices, ~701-1024px held upright) have the
   same problem as phones — checked directly, e.g. 820x1180 with no
   transform shows nothing but nose-bridge skin, identical to the original
   mobile bug. What they DON'T have is the same fix: mobile's scale(2.2) is
   tuned for a much narrower crop window and way over-zooms here, blowing
   the eye up past recognisable. Landscape tablets/small laptops need no
   help at all — checked at 1024x768, both eyes are already fully visible
   with the plain default crop, same as desktop, because a landscape
   viewport's width-to-height ratio is close enough to the video's own
   2.7:1 that object-fit:cover doesn't have much to crop away. That's why
   this is keyed on orientation, not just width: only portrait tablets
   share the phone's problem. Same anchor point as mobile, gentler zoom —
   confirmed to hold up consistently across the full 701-1024px portrait
   range (tested at 701, 768, and 1024px wide) with this one value. */
@media (min-width: 701px) and (max-width: 1024px) and (orientation: portrait) {
  .hero__video {
    object-position: 20% center;
    transform-origin: 23% 55%;
    transform: scale(1.4);
  }
}
.hero__inner { max-width: 900px; margin-inline: auto; }
.hero h1 { margin-bottom: 1.4rem; color: var(--white); }
.hero h1 em { font-style: normal; color: var(--amber-soft); }
.hero .lead { color: rgba(255,255,255,.86); max-width: 48ch; margin-inline: auto; margin-bottom: 2.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }

.scroll-hint {
  position: absolute; left: 50%; bottom: 1.8rem; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.7);
}
.scroll-hint .dot {
  width: 1px; height: 38px;
  background: linear-gradient(rgba(255,255,255,.7), transparent);
  animation: drift 2.2s var(--ease) infinite;
}
@keyframes drift { 0%{transform:scaleY(.3);opacity:0} 40%{opacity:1} 100%{transform:scaleY(1);opacity:0} }

/* =========================================================
   Page hero (interior pages, no video)
   ========================================================= */
.page-hero {
  position: relative; overflow: hidden;
  padding-block: clamp(8rem, 14vw, 11rem) clamp(3.5rem, 7vw, 6rem);
  background: var(--teal); color: var(--white);
}
.page-hero h1 { margin-bottom: 1rem; color: var(--white); }
.page-hero h1 em { font-style: normal; color: var(--amber-soft); }
/* keep the intro line centred and readable even as the container widens */
.page-hero .lead { color: rgba(255,255,255,.86); max-width: 54ch; margin-inline: auto; margin-bottom: 0; }
.page-hero .eyebrow { color: var(--amber); margin-bottom: 1.4rem; }
.page-hero > .wrap { position: relative; z-index: 1; }
/* ghost of the page's own anatomical plate, tucked into the corner */
.page-hero__art {
  position: absolute; z-index: 0; pointer-events: none;
  right: clamp(-6rem, -3vw, -2rem); bottom: -18%;
  width: clamp(320px, 34vw, 520px); height: auto;
  color: rgba(255,255,255,.08);
}
@media (max-width: 700px) { .page-hero__art { display: none; } }

/* =========================================================
   Intro / generic prose blocks
   ========================================================= */
.intro__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center;
}
/* media-led rows: give the image column a square, top-aligned frame */
.intro__grid--media { align-items: start; }
.intro__grid--media > :first-child { position: sticky; top: 6rem; }
.stat-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 3vw, 2rem); margin-top: clamp(2rem, 4vw, 2.75rem);
}
.stat {
  position: relative; text-align: center;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem clamp(1.25rem, 3vw, 4rem);
  display: flex;
  justify-content: center;
  flex-direction: column;
  min-width: 0;
  background: var(--white);
}
/* three tiles can't share a phone-width row — stack them */
@media (max-width: 700px) { .stat-row { grid-template-columns: 1fr; } }
.stat b {
  font-family: var(--display); font-size: clamp(2rem, 3.2vw, 2.6rem); font-weight: 600;
  color: var(--teal); display: block; line-height: 1; letter-spacing: -.02em;
}
.stat span { display: block; margin-top: .45rem; font-size: .82rem; color: var(--muted); letter-spacing: .02em; line-height: 1.35; }

/* intro heading sits above the bio text in the right column */
/* research interests list */
.intro__interests { margin-top: 2rem; }
.intro__interests h3 {
  font-family: var(--body); font-size: .8rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--amber);
  margin-bottom: 1rem;
}
.intro__interests ul {
  list-style: none; padding: 0; margin: 0;
}
.intro__interests li {
  position: relative; padding-left: 1.7rem; color: var(--ink);
  margin-bottom: .55rem;
}
.intro__interests li::before {
  content: '→'; position: absolute; left: 0; top: 0;
  color: var(--teal); font-weight: 600; line-height: 1.65;
}

/* intro media — a square image (or placeholder) */
.intro__media {
  width: 100%; aspect-ratio: 1 / 1;
  object-fit: cover; display: block;
  border-radius: var(--media-radius);
  box-shadow: 0px 10px 40px -10px rgb(var(--shadow-color) / 60%);
}
/* landscape variant for mid-page rows where a square would tower over short text */
.intro__media--landscape { aspect-ratio: 4 / 3; }
/* portrait sources cropped to landscape: keep the face in frame */
.intro__media--face { object-position: 50% 22%; }
/* flip a media row so the image sits on the right (source order keeps text last) */
.intro__grid--flip > :first-child { order: 2; }
@media (max-width: 860px) { .intro__grid--flip > :first-child { order: 0; } }
.intro__media--placeholder {
  display: flex; align-items: center; justify-content: center;
  background:
    repeating-linear-gradient(-45deg, rgb(var(--shadow-color) / .04) 0 12px, transparent 12px 24px),
    var(--mist);
  border: 1px dashed var(--line); color: var(--muted);
}
/* on teal sections invert the placeholder tint so it reads on dark */
.section--teal .intro__media--placeholder {
  background:
    repeating-linear-gradient(-45deg, rgba(255,255,255,.05) 0 12px, transparent 12px 24px),
    rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.2); color: rgba(255,255,255,.55);
}
.intro__media--placeholder span {
  font-family: var(--body); font-size: .8rem; letter-spacing: .14em;
  text-transform: uppercase; font-weight: 600;
}

/* =========================================================
   Service teaser cards (home)
   ========================================================= */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.cards--2col { grid-template-columns: repeat(2, 1fr); }
.cards-cta { display: flex; justify-content: center; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem 1.9rem; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 22px 50px -28px rgb(var(--shadow-color) / .5); border-color: var(--amber-soft); }
.card .icon { width: auto; height: clamp(120px, 16vw, 160px); max-width: 100%; margin: 0 auto 1.5rem; color: var(--teal); display: block; }
.card h3 { margin-bottom: .5rem; }
.card p { font-size: .96rem; color: var(--muted); margin-bottom: 1.1rem; }
.card .more { font-size: .9rem; font-weight: 600; color: var(--teal); display: inline-flex; align-items: center; gap: .4rem; }
.card .more .arrow { transition: transform .25s var(--ease); }
.card:hover .more .arrow { transform: translateX(4px); }

/* =========================================================
   Service "anatomical plates" (services page)
   Each service is a labelled medical illustration — the drawing
   leads, with leader-line labels naming the key structures.
   ========================================================= */
.service {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2.5rem, 7vw, 5.5rem); align-items: center;
}
.service + .service { margin-top: clamp(3.5rem, 8vw, 6.5rem); }

/* the plate: aged-paper tint, corner caption, fine baseline rule */
.plate {
  position: relative; color: var(--teal);
  display: flex; flex-direction: column; justify-content: center;
  background:
    linear-gradient(180deg, var(--plate-top) 0%, var(--plate-bottom) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(2rem, 4vw, 3.2rem) clamp(1.75rem, 3.5vw, 3rem) 0;
}
/* corner registration marks — like an old plate */
.plate::before, .plate::after {
  content: ''; position: absolute; width: 14px; height: 14px;
  border: 1px solid var(--amber); opacity: .55;
}
.plate::before { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.plate::after  { bottom: 46px; right: 12px; border-left: 0; border-top: 0; }
/* the illustration sits centred in the plate, capped so it never crowds the frame */
.plate__art {
  display: block; width: auto; height: auto;
  max-width: min(78%, 280px); max-height: 280px;
  margin: clamp(.5rem, 2vw, 1.5rem) auto 0;
  color: var(--teal); overflow: visible;
}

/* ----- hover animation: each illustration animates an on-subject part ----- */
.svg-anim * { transform-box: fill-box; transform-origin: center; }

/* cataract: the clouding clears away — fades out completely — as the lens animates */
.svg-cataract__clouding { transition: opacity .6s var(--ease), transform .6s var(--ease); transform-origin: 125px 124px; }
.plate:hover .svg-cataract__clouding,
.card:hover .svg-cataract__clouding { opacity: 0; transform: scale(.96); }
/* the pupil deepens (fill-opacity .3 → .8) in step with the clouding */
.svg-cataract__pupil { transition: fill-opacity .5s var(--ease); }
.plate:hover .svg-cataract__pupil,
.card:hover .svg-cataract__pupil { animation: pupil-deepen 2.4s var(--ease) infinite; }
@keyframes pupil-deepen {
  0%, 100% { fill-opacity: .3; }
  50%      { fill-opacity: .8; }
}

/* glaucoma: the pressure arrows pulse outward toward the optic nerve */
.svg-glaucoma__arrows { transform-origin: 60px 125px; }
.plate:hover .svg-glaucoma__arrows,
.card:hover .svg-glaucoma__arrows { animation: pressure-push 1.8s var(--ease) infinite; }
@keyframes pressure-push {
  0%, 100% { transform: translateX(0); opacity: .85; }
  50%      { transform: translateX(7px); opacity: 1; }
}

/* general: the examination rays sweep (rotate gently) and the lid blinks once */
.svg-general__rays { transform-origin: 135px 112px; transition: opacity .4s var(--ease); }
.plate:hover .svg-general__rays,
.card:hover .svg-general__rays { animation: rays-sweep 6s linear infinite; }
@keyframes rays-sweep { to { transform: rotate(360deg); } }
.svg-general__lid { transition: transform .45s var(--ease); transform-origin: 135px 112px; }
.plate:hover .svg-general__lid,
.card:hover .svg-general__lid { animation: blink 2.6s var(--ease) infinite; }
@keyframes blink {
  0%, 92%, 100% { transform: scaleY(1); }
  96%           { transform: scaleY(.06); }
}
/* caption strip along the base — the plate's name + figure ref */
.plate__caption {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  margin: clamp(1rem, 2.5vw, 1.6rem) 0 0; padding: .85rem 0;
  border-top: 1px solid var(--line);
  font-family: var(--body); font-size: .78rem; letter-spacing: .03em; color: var(--muted);
}
.plate__caption b { color: var(--teal); font-weight: 600; }
.plate__caption .fig { color: var(--amber); font-weight: 600; letter-spacing: .08em; }

.service:nth-child(even) .plate { order: 2; }

/* CTA row at the foot of a service body */
.service__cta { margin-top: 1.6rem; }

/* the condition tag — names the domain (these are parallel, not a sequence) */
.service__tag {
  display: inline-block; font-family: var(--body); font-size: .72rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--teal);
  border: 1px solid var(--line); border-radius: 999px;
  padding: .4rem .9rem; margin-bottom: 1.1rem; background: var(--white);
}
.service ul { list-style: none; padding: 0; margin: 1.3rem 0 0; }
.service li { position: relative; padding-left: 1.7rem; margin-bottom: .6rem; color: var(--muted); }
.service li::before {
  content: '→'; position: absolute; left: 0; top: 0;
  color: var(--teal); font-weight: 600; line-height: 1.65;
}

/* =========================================================
   CTA band
   ========================================================= */
.cta-band {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--teal); color: var(--white); text-align: center;
}
/* Blurred background — cropped to the top of the frame so only sky,
   horizon and sea show; the pier falls below the crop.
   background-attachment is deliberately NOT fixed: with `fixed` the
   image is positioned against the viewport, not this element, so the
   crop drifts as you scroll and the pier reappears. Reliable framing
   is worth more here than the parallax. */
.cta-band::before {
  content: ''; position: absolute; inset: -40px; z-index: -1;
  /* v2 banner is a clean open horizon — no pier, so no top-crop needed */
  background: url('../cta-banner-v2.jpg') center / cover no-repeat;
  filter: blur(18px) saturate(1.05);
  opacity: 1;
  transition: filter .6s var(--ease);
}
/* darken the image slightly so text stays legible */
.cta-band::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(rgb(var(--overlay-deep) / .45), rgb(var(--overlay-deep) / .65));
}
/* on hover of the Book a consultation button, the blur clears (image stays) */
.cta-band:has(.btn:hover)::before { filter: blur(0) saturate(1.1); }
.cta-band h2 { color: var(--white); margin-bottom: 1rem; }
.cta-band h2 em { font-style: normal; color: var(--amber-soft); }
.cta-band p { color: rgba(255,255,255,.82); margin-inline: auto; margin-bottom: 2rem; }
/* keep content above the image layers */
.cta-band > .wrap { position: relative; z-index: 1; }

/* =========================================================
   Contact
   ========================================================= */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 4.5rem); }
.contact-item { margin-bottom: 1.6rem; }
.contact-item .label { font-size: .78rem; text-transform: uppercase; letter-spacing: .18em; color: var(--amber); font-weight: 600; margin-bottom: .25rem; }
.contact-item .value { font-size: 1.1rem; color: var(--ink); }

/* bordered, shadowed container around the enquiry form */
.form-card {
  background: var(--form-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: 0 30px 60px -30px rgb(var(--shadow-color) / .35);
}

.field { margin-bottom: 1.2rem; }
.field label { display: block; font-size: .85rem; font-weight: 500; margin-bottom: .4rem; }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--body); font-size: 1rem; color: var(--ink);
  line-height: 1.25;   /* explicit so input and de-natived select heights match */
  padding: .8rem 1rem; border: 1px solid var(--line);
  background: var(--white); transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--amber);
  box-shadow: 0 0 0 3px rgb(var(--amber-rgb) / .18);
}
.field textarea { resize: vertical; min-height: 120px; }
/* strip the native select chrome (macOS renders its own control and
   ignores the field padding) and draw a consistent chevron instead */
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='12'%20height='8'%20viewBox='0%200%2012%208'%3E%3Cpath%20d='M1%201.5l5%205%205-5'%20fill='none'%20stroke='%235C6B6A'%20stroke-width='1.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 12px 8px;
  padding-right: 2.6rem; cursor: pointer;
}
.form-note { font-size: .85rem; color: var(--muted); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--teal-deep); color: rgba(255,255,255,.7); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.site-footer .brand { margin-bottom: .9rem; }
.site-footer .brand__name { color: var(--white); }
.site-footer h4 { font-family: var(--body); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.5); margin: 0 0 1rem; font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .6rem; }
.site-footer a:hover { color: var(--amber-soft); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.6rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .82rem; }
.site-footer p { color: rgba(255,255,255,.7); margin: .8rem 0 0; font-size: .92rem; max-width: 34ch; }

/* =========================================================
   Scroll reveal — gentle fade + rise
   ========================================================= */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); will-change: opacity, transform; }
.reveal.visible { opacity: 1; transform: none; }
/* staggered children */
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* =========================================================
   Content-pack components
   ========================================================= */
/* trust bar — four divided proof-points below the hero */
.trust-bar { background: var(--teal-deep); color: var(--white); padding-block: clamp(1.6rem, 3vw, 2.4rem); }
.trust-bar ul {
  list-style: none; margin: 0 auto; padding: 0; max-width: var(--maxw);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.trust-bar li {
  position: relative; text-align: center;
  padding: .3rem clamp(1rem, 2.5vw, 2rem);
  display: flex; align-items: center; justify-content: center;
  font-size: clamp(.82rem, 1.05vw, .92rem); font-weight: 500; line-height: 1.4;
  color: rgba(255,255,255,.9);
}
/* hairline amber divider between cells */
.trust-bar li + li::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 2.2em; background: rgb(var(--amber-rgb) / .4);
}
@media (max-width: 860px) {
  .trust-bar ul { grid-template-columns: 1fr 1fr; gap: 1.1rem 0; }
  .trust-bar li:nth-child(3)::before { display: none; }
  .trust-bar li:nth-child(odd)::before { display: none; }
}
@media (max-width: 460px) {
  .trust-bar ul { grid-template-columns: 1fr; gap: .9rem; }
  .trust-bar li::before { display: none !important; }
}

/* differentiators — horizontal drag slider, "A Different Kind of Specialist" */
.slider { position: relative; }
.slider__track {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 1fr);
  gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: .5rem; margin: 0 calc(var(--pad) * -1); padding-inline: var(--pad);
  scrollbar-width: none; -ms-overflow-style: none;
  cursor: grab;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__track.dragging { cursor: grabbing; scroll-snap-type: none; }
.slider__track.dragging a { pointer-events: none; }
/* show ~3 cards on wide screens, still scrollable */
@media (min-width: 1000px) { .slider__track { grid-auto-columns: calc((100% - 3rem) / 3); } }

.diff {
  scroll-snap-align: start; position: relative;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem 1.9rem; user-select: none; text-align: center;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
/* line-art eye icon, same visual language as the About expertise cards */
.diff .icon { width: auto; height: 110px; max-width: 100%; margin: 0 auto 1.3rem; color: var(--teal); display: block; }
.diff:hover { transform: translateY(-4px); box-shadow: 0 22px 50px -30px rgb(var(--shadow-color) / .5); border-color: var(--amber-soft); }
.diff h3 { font-size: 1.15rem; margin-bottom: .6rem; }
.diff p { font-size: .95rem; color: var(--muted); margin: 0; max-width: none; }

/* spotlight — a soft circle around the pointer reveals the eye close-up,
   greyscale at .2 opacity; plain mist shows by default (and on touch) */
.spotlight { position: relative; isolation: isolate; }
.spotlight::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: url('../eye-image-closeup-1.png') center / cover no-repeat;
  filter: grayscale(1);
  opacity: calc(var(--spot, 0) * .2);
  -webkit-mask-image: radial-gradient(circle 260px at var(--mx, 50%) var(--my, 50%), #000 0 45%, transparent 100%);
  mask-image: radial-gradient(circle 260px at var(--mx, 50%) var(--my, 50%), #000 0 45%, transparent 100%);
  transition: opacity .4s var(--ease);
}
.spotlight > .wrap { position: relative; z-index: 1; }

/* custom drag cursor — a floating "‹ ›" badge that follows the pointer
   over tracks that can be dragged or swiped (mouse pointers only) */
.drag-cursor {
  position: fixed; top: 0; left: 0; z-index: 300;
  width: 62px; height: 62px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line); color: var(--teal);
  box-shadow: 0 10px 30px -12px rgb(var(--shadow-color) / .5);
  display: flex; align-items: center; justify-content: center; gap: 2px;
  pointer-events: none;
  opacity: 0; transform: translate(-50%, -50%) scale(.4);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.drag-cursor svg { width: 15px; height: 15px; }
.drag-cursor.active { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.drag-cursor.down { transform: translate(-50%, -50%) scale(.85); }
/* hide the native cursor where the badge takes over */
.has-drag-cursor .slider__track,
.has-drag-cursor .slider__track.dragging,
.has-drag-cursor .featured__viewport { cursor: none; }

/* slider controls — arrows + progress bar */
.slider__controls { display: flex; align-items: center; gap: 1.4rem; margin-top: 2.2rem; }
.slider__arrows { display: flex; gap: .7rem; }
.slider__btn {
  width: 48px; height: 48px; border-radius: 999px; flex-shrink: 0;
  border: 1px solid var(--line); background: var(--white); color: var(--teal);
  display: grid; place-items: center; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), opacity .25s var(--ease);
}
.slider__btn:hover:not(:disabled) { background: var(--teal); color: var(--white); border-color: var(--teal); }
.slider__btn:disabled { opacity: .35; cursor: default; }
.slider__btn svg { width: 18px; height: 18px; }
.slider__progress { flex: 1; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.slider__progress-bar { position: absolute; inset: 0 auto 0 0; width: 33%; background: var(--teal); transition: transform .3s var(--ease), width .3s var(--ease); }
/* on teal sections the controls invert */
.section--teal .slider__btn { background: transparent; border-color: rgba(255,255,255,.4); color: var(--white); }
.section--teal .slider__btn:hover:not(:disabled) { background: var(--white); color: var(--teal); border-color: var(--white); }
.section--teal .slider__progress { background: rgba(255,255,255,.2); }
.section--teal .slider__progress-bar { background: var(--amber); }

/* quote cards — home teaser, styled to match the testimonials page's
   featured cards: display-face quote, large amber mark, teal name block */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.quote-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(2rem, 3vw, 2.6rem); margin: 0; height: 100%;
  display: flex; flex-direction: column;
  box-shadow: 0 40px 80px -50px rgb(var(--shadow-color) / .5);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.quote-card:hover { transform: translateY(-4px); box-shadow: 0 46px 90px -48px rgb(var(--shadow-color) / .55); border-color: var(--amber-soft); }
.quote-card::before { content: '\201C'; font-family: var(--display); font-size: 4rem; line-height: .6; color: var(--amber); }
.quote-card blockquote {
  font-family: var(--display); font-weight: var(--display-weight); letter-spacing: -.01em;
  font-size: clamp(1.1rem, 1.6vw, 1.4rem); line-height: 1.35; color: var(--ink);
  margin: 1.4rem 0 1.6rem;
}
.quote-card blockquote p { margin: 0; max-width: none; }
/* push caption to the bottom so all captions align across the row */
.quote-card figcaption { margin-top: auto; font-size: .92rem; color: var(--muted); padding-top: 1.2rem; }
.quote-card figcaption b { display: block; color: var(--teal); font-weight: 600; font-size: 1rem; margin-bottom: .1rem; }
.quote-card figcaption b { display: block; color: var(--teal); font-weight: 600; margin-bottom: .1rem; }

/* publications — hanging reference list */
.pub-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.pub-list li { border-left: 2px solid var(--amber); padding: .25rem 0 .25rem 1.25rem; margin-bottom: 1.1rem; font-size: .92rem; color: var(--muted); max-width: 75ch; }
.pub-list li b { color: var(--ink); font-weight: 600; }

/* credentials — three stacked blocks, each an eyebrow + a clean definition list */
.creds-block + .creds-block { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.creds-block__head {
  display: flex; align-items: baseline; gap: 1rem;
  padding-bottom: 1rem; margin-bottom: .5rem; border-bottom: 2px solid var(--teal);
}
.creds-block__head h3 { margin: 0; font-size: clamp(1.25rem, 2vw, 1.6rem); }
.creds-block__count { margin-left: auto; font-family: var(--body); font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); }

/* creds — year/detail rows; two columns on wide screens, one when narrow */
.creds { list-style: none; padding: 0; margin: 0; column-gap: clamp(2rem, 5vw, 4rem); }
.creds--2col { columns: 2; }
.creds li {
  display: grid; grid-template-columns: 5.5rem 1fr; gap: 1.1rem;
  padding: 1rem 0; border-bottom: 1px solid var(--line);
  font-size: .95rem; color: var(--muted); line-height: 1.45;
  break-inside: avoid;
}
.creds .year { font-family: var(--display); font-weight: 600; color: var(--amber); font-size: .92rem; padding-top: .05rem; }
.creds b { color: var(--ink); font-weight: 600; }
@media (max-width: 720px) { .creds--2col { columns: 1; } }

/* arrow list — generic version of the .service list bullets */
.arrow-list { list-style: none; padding: 0; margin: 1.3rem 0 0; }
.arrow-list li { position: relative; padding-left: 1.7rem; margin-bottom: .6rem; color: var(--muted); }
.arrow-list li::before { content: '→'; position: absolute; left: 0; top: 0; color: var(--teal); font-weight: 600; line-height: 1.65; }

/* steps — the patient journey as numbered stages (a true sequence:
   consultation → surgery → recovery), set like figure references */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  margin-top: clamp(2.5rem, 5vw, 3.5rem); text-align: left;
}
.step { border-top: 1px solid var(--line); padding-top: 1.3rem; }
.step__num {
  font-family: var(--body); font-size: .78rem; font-weight: 600;
  letter-spacing: .14em; color: var(--amber);
}
.step h3 { font-size: 1.15rem; margin: .55rem 0 .45rem; }
.step p { font-size: .95rem; color: var(--muted); margin: 0; max-width: none; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 1.5rem; } }

/* flags — red-flag symptoms that need same-day assessment (teal sections) */
.flags {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1rem; margin: 2.4rem auto 0; max-width: 880px;
}
.flags li {
  border: 1px solid rgba(255,255,255,.22); border-left: 3px solid var(--amber);
  border-radius: 10px; padding: 1.05rem 1.3rem;
  text-align: left; font-size: .95rem; line-height: 1.45;
  color: rgba(255,255,255,.92); background: rgba(255,255,255,.04);
}
.flags b { display: block; color: var(--white); font-weight: 600; margin-bottom: .15rem; }
@media (max-width: 700px) { .flags { grid-template-columns: 1fr; } }

/* pending — visibly-marked placeholder for details still to come */
.pending { display: inline-block; border: 1px dashed var(--amber); border-radius: 4px; background: rgb(var(--amber-rgb) / .07); color: var(--muted); font-size: .88rem; padding: .12rem .6rem; }

/* text link — inline links within prose */
.text-link { color: var(--teal); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--amber); transition: color .25s var(--ease); }
.text-link:hover { color: var(--amber); }

/* eyebrow — small uppercase label above a heading */
.eyebrow {
  display: block; font-family: var(--body); font-size: .78rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--amber);
  margin-bottom: 1.1rem;
}

/* =========================================================
   Featured testimonial (testimonials page hero carousel)
   Left: intro column. Right: one large quote card at a time.
   ========================================================= */
.featured {
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.featured__intro h2 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); line-height: 1.05; }
.featured__intro .lead { margin-top: 1.4rem; }
.nobreak { white-space: nowrap; }

.featured__stage { position: relative; min-width: 0; }
/* no overflow clipping needed — slides stack in place rather than sliding */
.featured__viewport { position: relative; width: 100%; }
/* slides stack in a single grid cell — the active one fades in, so the
   viewport can never be left showing two half slides */
.featured__slides { display: grid; width: 100%; }
.featured__slide {
  grid-area: 1 / 1; width: 100%; min-width: 0; box-sizing: border-box; padding: 4px;
  opacity: 0; visibility: hidden;
  transition: opacity .6s var(--ease), visibility 0s .6s;
}
.featured__slide.is-active,
.featured__slides:not(:has(.is-active)) .featured__slide:first-child {
  opacity: 1; visibility: visible;
  transition: opacity .6s var(--ease);
}
.featured__card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(2rem, 4vw, 3.2rem);
  display: flex; flex-direction: column; min-height: 380px;
  box-shadow: 0 40px 80px -50px rgb(var(--shadow-color) / .5);
}
.featured__mark { font-family: var(--display); font-size: 4rem; line-height: .6; color: var(--amber); }
.featured__quote {
  font-family: var(--display); font-weight: var(--display-weight); letter-spacing: -.01em;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem); line-height: 1.32; color: var(--ink);
  margin: 1.6rem 0 0; max-width: none;
  /* clamp very long quotes so cards stay a sensible height */
  display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden;
}
.featured__cite {
  margin-top: auto; padding-top: 1.6rem;
  font-size: .92rem; color: var(--muted); font-style: normal;
}
.featured__cite b { display: block; color: var(--teal); font-weight: 600; font-size: 1rem; margin-bottom: .1rem; }

.featured__controls { display: flex; align-items: center; gap: 1.4rem; margin-top: 2rem; }

@media (max-width: 860px) {
  .featured { grid-template-columns: minmax(0, 1fr); gap: 2.2rem; }
  .featured__card { min-height: 0; }
  .featured__quote { font-size: clamp(1.2rem, 5vw, 1.5rem); -webkit-line-clamp: 8; }
  .nobreak { white-space: normal; }
}

/* =========================================================
   Where Mr Garg trained — full-bleed provenance showcase
   (ported from the Dr Sinha reference in website V2/)
   ========================================================= */
/* content capped to the site width while the section itself bleeds */
.bleed-shell {
  padding-inline: max(var(--pad), calc((100% - var(--maxw)) / 2 + var(--pad)));
}
.why {
  position: relative; isolation: isolate;
  background: var(--teal-deep); color: var(--white);
  display: flex; flex-direction: column; gap: clamp(2.5rem, 5vw, 3.5rem);
  overflow: hidden;   /* clip the full-bleed image layers */
}
/* cross-fading greyscale photo backdrop — one layer per institution */
.why__bg { position: absolute; inset: 0; z-index: -2; }
.why__bg-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: grayscale(1) contrast(1.02);
  opacity: 0; transform: scale(1.04);
  transition: opacity 1.1s var(--ease), transform 7s var(--ease);
}
.why__bg-img.is-active { opacity: 1; transform: scale(1); }
/* brand-tinted wash over the greyscale photo so it reads as a monochrome,
   theme-coloured backdrop while text stays legible */
.why::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgb(var(--shadow-color) / .80) 0%, rgb(var(--overlay-deep) / .86) 100%);
  mix-blend-mode: multiply;
}
/* extra darkening veil for busy photos */
.why::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: rgb(var(--overlay-deep) / .34);
}
/* before JS reveals a photo, fall back to the solid brand ground */
.why:not(.why--has-bg)::before { background: var(--teal-deep); mix-blend-mode: normal; }
.why:not(.why--has-bg)::after { background: none; }
.why__intro { display: flex; flex-direction: column; gap: 1.2rem; max-width: 720px; }
.why__eyebrow { color: var(--amber); }
.why__statement {
  font-family: var(--display); font-weight: var(--display-weight);
  font-size: clamp(1.35rem, 2.6vw, 2rem); letter-spacing: var(--display-tracking);
  line-height: 1.3; color: var(--white); margin: 0; max-width: none;
}

/* the institutions — a bordered, auto-cycling grid */
.provenance {
  display: flex; align-items: stretch; margin: 0; padding: 0;
  list-style: none; counter-reset: none;
  border: 1px solid rgb(255 255 255 / .16);
  background: var(--teal-deep);
  overflow: hidden; border-radius: var(--radius);
}
.prov {
  position: relative; flex: 1;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; gap: .7rem; padding: 2rem 1.6rem;
  border-right: 1px solid rgb(255 255 255 / .16);
  overflow: hidden;   /* clip the progress bar */
  transition: background-color .5s var(--ease);
}
.prov:last-child { border-right: 0; }
.prov.is-active { background: rgb(255 255 255 / .05); }
/* amber loading bar along the bottom — fills over the cycle duration */
.prov__bar {
  position: absolute; left: 0; bottom: 0; width: 100%; height: 2px;
  background: var(--amber);
  transform: scaleX(0); transform-origin: left center; opacity: 0;
}
.prov.is-active .prov__bar { opacity: 1; animation: prov-fill var(--dur, 5s) linear forwards; }
.provenance.is-paused .prov.is-active .prov__bar { animation-play-state: paused; }
@keyframes prov-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
/* institution logo — absolutely centred so the crossfade doesn't shift
   the block; name + meta stay in flow to reserve the height */
.prov__logo {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center;
  opacity: .92; transition: opacity .55s var(--ease); pointer-events: none;
}
/* logo files are solid black (shared with the light logo-row tiles);
   inverted here so they read as white on the dark backdrop */
.prov__logo img { width: auto; height: 56px; max-width: 200px; object-fit: contain; filter: invert(1); }
/* typographic stand-in until real artwork lands */
.prov__logo[data-placeholder]::after {
  content: attr(data-placeholder);
  display: inline-flex; align-items: center; justify-content: center;
  padding: .42rem .7rem;
  border: 1px solid rgb(255 255 255 / .35); border-radius: 6px;
  font-family: var(--display); font-size: .72rem; letter-spacing: .06em;
  line-height: 1.3; text-align: center; color: rgb(255 255 255 / .82);
}
.prov.is-active .prov__logo { opacity: 0; }
/* name/meta/years hidden only while the showcase is running (JS adds
   .why--has-bg), so no-JS and reduced-motion visitors read a static row */
.why--has-bg .prov__name, .why--has-bg .prov__meta, .why--has-bg .prov__years {
  opacity: 0; transition: opacity .45s var(--ease);
}
.why--has-bg .prov.is-active .prov__name,
.why--has-bg .prov.is-active .prov__meta,
.why--has-bg .prov.is-active .prov__years { opacity: 1; }
.prov__name { font-size: 1.05rem; margin: 0; color: var(--white); }
.prov__meta { font-size: .82rem; line-height: 1.45; margin: 0; color: rgb(255 255 255 / .78); max-width: none; }
.prov__years {
  display: block; font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--amber);
}
@media (max-width: 900px) {
  .provenance { flex-direction: column; }
  .prov { border-right: 0; border-bottom: 1px solid rgb(255 255 255 / .16); }
  .prov:last-child { border-bottom: 0; }
}

/* ---------- ambient rotating backdrop ----------
   Reuses the showcase's monochrome photo treatment behind an ordinary
   section (home "Why Mr Garg" band). Layers slow-cross-fade under a
   brand-tinted wash; with no JS the section's own ground shows. */
.bg-rotate-shell { position: relative; isolation: isolate; overflow: hidden; }
.bg-rotate { position: absolute; inset: 0; z-index: -1; }
.bg-rotate__img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: grayscale(1) contrast(1.02);
  opacity: 0; transform: scale(1.04);
  transition: opacity 2.2s var(--ease), transform 10s var(--ease);
}
.bg-rotate__img.is-active { opacity: 1; transform: scale(1); }
/* same two-layer veil as .why::before/::after, kept inside the backdrop */
.bg-rotate::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgb(var(--shadow-color) / .80) 0%, rgb(var(--overlay-deep) / .86) 100%);
  mix-blend-mode: multiply;
}
.bg-rotate::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: rgb(var(--overlay-deep) / .34);
}

/* =========================================================
   Logo row — memberships (About) and insurers (Contact)
   ========================================================= */
.logo-row {
  list-style: none; margin: clamp(2rem, 4vw, 2.75rem) 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center;
}
.logo-row__item {
  flex: 1 1 140px; max-width: 200px;
  display: flex; align-items: center; justify-content: center;
  min-height: 78px; padding: .9rem 1.2rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.logo-row__item:hover { border-color: var(--amber-soft); transform: translateY(-3px); }
/* greyscale until hovered — real marks only */
.logo-row__item img {
  max-height: 46px; width: auto;
  filter: grayscale(1); opacity: .72;
  transition: filter .3s var(--ease), opacity .3s var(--ease);
}
.logo-row__item:hover img { filter: grayscale(0); opacity: 1; }
/* full-colour variant (memberships) — marks shown as-is, no hover reveal */
.logo-row--colour .logo-row__item img { filter: none; opacity: 1; transition: none; }
/* typographic stand-in until real artwork lands */
.logo-row__item[data-placeholder]::after {
  content: attr(data-placeholder);
  font-family: var(--display); font-size: .84rem; letter-spacing: .1em;
  color: var(--muted); text-align: center; line-height: 1.3;
}
@media (max-width: 560px) { .logo-row__item { flex-basis: 45%; min-height: 66px; } }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 860px) {
  /* while the menu is open the header must not form a containing block —
     its scrolled backdrop-filter / hidden transform would trap the
     fixed full-screen nav inside the header bar */
  .site-header.nav-open { transform: none; backdrop-filter: none; }

  /* full-screen overlay menu — dark brand ground, light type */
  .nav {
    position: fixed; inset: 0; width: 100%;
    flex-direction: column; align-items: flex-start;
    justify-content: center; justify-content: safe center;
    gap: 1.6rem; padding: 5.5rem var(--pad) 2.5rem;
    overflow-y: auto;
    background: var(--teal-deep); transform: translateX(100%);
    visibility: hidden;   /* keep the closed menu out of the Tab order */
    transition: transform .4s var(--ease), visibility .4s;
  }
  .nav.open { transform: none; visibility: visible; }
  .nav a, .site-header .nav a, .site-header.scrolled .nav a { color: var(--white); font-size: 1.15rem; }
  .nav a[aria-current="page"], .site-header.scrolled .nav a[aria-current="page"] { color: var(--amber); }
  .nav-toggle { display: block; z-index: 60; }
  .site-header .nav-toggle.open span { color: var(--white); }
  .nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  /* dropdown becomes an always-visible indented group in the drawer */
  .nav-sub { flex-direction: column; align-items: flex-start; }
  .nav-sub__trigger .caret { display: none; }
  /* hover/focus variants included so the desktop dropdown's centring
     transform can't re-apply and shove the static group off to the left */
  .nav-sub__menu,
  .nav-sub:hover .nav-sub__menu,
  .nav-sub:focus-within .nav-sub__menu {
    position: static; transform: none; opacity: 1; visibility: visible; pointer-events: auto;
    min-width: 0; padding: .5rem 0 0 1.1rem; margin: 0;
    background: transparent; border: 0; box-shadow: none;
  }
  .nav-sub__menu::before { display: none; }
  .site-header .nav-sub__menu a,
  .site-header.scrolled .nav-sub__menu a { padding: .3rem 0; font-size: .98rem; color: rgb(255 255 255 / .72); }
  .site-header .nav-sub__menu a:hover { background: transparent; }

  .intro__grid, .service { grid-template-columns: 1fr; }
  /* .contact__grid is the native Group block's own "Grid" layout type, which
     ships a per-instance rule (.wp-container-core-group-is-layout-XXXX
     { grid-template-columns: repeat(2, minmax(0, 1fr)); }) via a
     <style id="core-block-supports-inline-css"> WordPress injects into
     <head> AFTER this stylesheet. Same specificity (one class each), later
     source order — WP's unconditional rule wins the cascade at every width
     unless we out-rank it here. !important is the only reliable fix: WP
     regenerates that class name per block instance, so there's no selector
     we could target ahead of time even if load order were in our control. */
  .contact__grid { grid-template-columns: 1fr !important; }
  .intro__grid--media > :first-child { position: static; top: auto; }
  /* on stacked layout, cap the square media so it isn't full-width-tall */
  .intro__grid--media .intro__media { max-width: 420px; margin-inline: auto; }
  .service:nth-child(even) .service__art { order: 0; }
  .cards, .quotes { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer__top { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer__bottom { flex-direction: column; }
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-hint .dot { animation: none; }
  .btn:hover, .card:hover { transform: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* =========================================================
   WordPress-specific additions (not in the HTML prototype)
   ========================================================= */

/* Lesson 9 — WP core (skip links, form labels) expects this exact class. */
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute; width: 1px; word-wrap: normal !important;
}

/* ---------- Gravity Forms — the contact page's real form ----------
   The prototype's contact form was plain unstyled markup; Gravity Forms
   renders its own markup. GF 2.9+ ships a "block theme" called Orbital
   by default — its wrapper is `.gform_wrapper.gform-theme--orbital`, NOT
   the older `.gform_wrapper.gravity-theme` these rules originally
   targeted, so none of it was matching anything. Orbital skins itself
   via CSS custom properties (--gf-color-primary etc.) declared inline
   per-form with an ID selector; overriding those properties with
   !important beats that ID selector regardless of our own specificity
   (an !important declaration always wins over a non-important one,
   selector weight only matters when both sides are !important).
   The card look (background/border/radius/padding) is applied to
   .form-card-wrap instead of the gform_wrapper itself — the block's
   "Additional CSS Class" attribute doesn't reach the wrapper GF actually
   renders, but our own template wraps the block in that div regardless.
   Lesson 25 — a plugin stylesheet loads after ours, so every property
   here still needs !important on top of that. */
.form-card-wrap {
  background: var(--form-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.4rem);
}
.form-card-wrap .gform_wrapper.gform-theme {
  --gf-color-primary: var(--teal) !important;
  --gf-color-primary-contrast: var(--white) !important;
  --gf-color-in-ctrl: var(--white) !important;
  --gf-color-in-ctrl-contrast: var(--ink) !important;
  --gf-color-in-ctrl-primary: var(--amber) !important;
  --gf-color-in-ctrl-primary-contrast: var(--teal-deep) !important;
  --gf-ctrl-border-color: var(--line) !important;
  --gf-ctrl-label-color-primary: var(--ink) !important;
  --gf-ctrl-label-color-secondary: var(--ink) !important;
  --gf-radius: calc(var(--radius) * 0.4) !important;
}
.form-card-wrap .gform_wrapper .gfield_label,
.form-card-wrap .gform_wrapper .gform-field-label {
  font-family: var(--body) !important; font-size: .85rem !important;
  font-weight: 500 !important; color: var(--ink) !important;
  margin-bottom: .4rem !important;
}
.form-card-wrap .gform_wrapper input[type="text"],
.form-card-wrap .gform_wrapper input[type="email"],
.form-card-wrap .gform_wrapper input[type="tel"],
.form-card-wrap .gform_wrapper select,
.form-card-wrap .gform_wrapper textarea {
  width: 100% !important; font-family: var(--body) !important; font-size: 1rem !important;
  color: var(--ink) !important; line-height: 1.25 !important;
  /* GF's Orbital foundation CSS sets a fixed height (e.g. 38px) sized for
     its own tighter padding; our .8rem/1rem padding + 1px border alone
     exceeds that, squeezing the line-height and clipping the text (this
     bit the select specifically — clearest without a browser's own text-
     input chrome to absorb the difference). height:auto lets the box
     grow to fit padding + line-height instead of fighting a fixed one. */
  height: auto !important;
  padding: .8rem 1rem !important; border: 1px solid var(--line) !important;
  border-radius: calc(var(--radius) * 0.4) !important; background: var(--white) !important;
}
/* Strip native select chrome and draw a consistent chevron — same
   technique as the prototype's .field select (main.css line ~776). */
.form-card-wrap .gform_wrapper select {
  appearance: none !important; -webkit-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='12'%20height='8'%20viewBox='0%200%2012%208'%3E%3Cpath%20d='M1%201.5l5%205%205-5'%20fill='none'%20stroke='%235C6B6A'%20stroke-width='1.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: right 1rem center !important; background-size: 12px 8px !important;
  padding-right: 2.6rem !important; cursor: pointer !important;
}
.form-card-wrap .gform_wrapper input[type="text"]:focus,
.form-card-wrap .gform_wrapper input[type="email"]:focus,
.form-card-wrap .gform_wrapper input[type="tel"]:focus,
.form-card-wrap .gform_wrapper select:focus,
.form-card-wrap .gform_wrapper textarea:focus {
  outline: none !important; border-color: var(--amber) !important;
  box-shadow: 0 0 0 3px rgb(var(--amber-rgb) / .18) !important;
}
.form-card-wrap .gform_wrapper textarea { min-height: 120px !important; resize: vertical !important; }
.form-card-wrap .gform_wrapper .gform-footer,
.form-card-wrap .gform_wrapper .gform_footer {
  margin: 1rem 0 0 !important; padding: 0 !important;
}
.form-card-wrap .gform_wrapper .gform_button.button {
  display: inline-flex !important; align-items: center !important; gap: .55rem !important;
  font-family: var(--body) !important; font-size: .95rem !important; font-weight: 500 !important;
  padding: .85rem 1.6rem !important; border-radius: 999px !important;
  border: 1px solid transparent !important; cursor: pointer !important;
  background: var(--amber) !important; color: var(--teal-deep) !important;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease) !important;
}
.form-card-wrap .gform_wrapper .gform_button.button:hover {
  transform: translateY(-2px) !important; box-shadow: 0 10px 24px -10px rgb(var(--amber-rgb) / .7) !important;
}
.form-card-wrap .gform_wrapper .validation_message,
.form-card-wrap .gform_wrapper .gfield_description.validation_message {
  color: #c0392b !important; font-size: .82rem !important; margin-top: .35rem !important;
}
.gform_confirmation_wrapper { font-size: 1.05rem !important; color: var(--ink) !important; }
