/* Hallmark · genre: editorial · macrostructure: Photographic · H6 knobs: image=full-bleed cinematic wash, caption=bottom-left, text overlaid
 * theme: custom · vibe: "clinical navy, unhurried, Singapore" · paper: oklch(98.5% 0.005 258) · accent: oklch(46% 0.135 250)
 * display: Spectral · body: IBM Plex Sans · outlier: IBM Plex Mono (directory metadata only)
 * axes: light / roman-serif / cool · footer: Ft1 Mast-headed
 * nav: dark bar — Straits Eye Centre logo (knockout) + 3 section links + WhatsApp;
 *      below 64rem the links collapse behind the blinking eye toggle
 * hero: photograph never tinted — navy field sits beside it (wide) or below it (narrow)
 * enrichment: none invented — client photography + hand-built SVG marks
 * motion: restrained — one orchestrated hero entrance, the eye blink, quiet hovers
 * studied: no · context: user-provided · pre-emit critique: P5 H5 E5 S5 R5 V4
 */

@import url("tokens.css");

/* ====================================================================== *
 * Reset and root
 * ====================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  overflow-x: clip;
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  /* Tight tracking suits heavy display type; at 500 it reads cramped.
   * Opening it up is half of what makes lighter headings look considered. */
  letter-spacing: -0.008em;
  overflow-wrap: anywhere;
  min-width: 0;
  margin: 0;
}

h1,
h2 {
  font-weight: var(--weight-display);
}

h3 {
  font-weight: var(--weight-subhead);
  letter-spacing: -0.004em;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* height: auto is load-bearing — without it the HTML height attribute wins
 * as a presentation hint and every aspect-ratio below is silently ignored. */
img,
svg,
picture {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

:focus-visible {
  outline: var(--rule-thick) solid var(--color-focus);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

::selection {
  background: var(--color-accent);
  color: var(--color-accent-ink);
}

/* ====================================================================== *
 * Shared primitives
 * ====================================================================== */

.shell {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

/* Anchor targets must clear the sticky nav. */
[id] {
  scroll-margin-top: 7rem;
}

.skip {
  position: absolute;
  left: var(--space-md);
  top: calc(var(--space-md) * -6);
  z-index: var(--z-modal);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-ink);
  color: var(--color-paper);
  font-size: var(--text-sm);
  text-decoration: none;
  white-space: nowrap;
}

.skip:focus {
  top: var(--space-md);
}

/* Small-caps directory labels — the mono outlier, role one of two. */
.label {
  max-width: var(--measure);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-muted);
  line-height: 1.4;
}

.tnum {
  font-variant-numeric: tabular-nums;
}

.muted {
  color: var(--color-muted);
}

.measure {
  max-width: var(--measure-lede);
}

/* --- Craft -------------------------------------------------------------
 * Oldstyle figures sit on the baseline with ascenders and descenders like
 * lowercase letters, so numerals stop shouting inside running prose. Kept
 * well away from anything .tnum, where lining tabular figures must align. */
.hero__lede,
.hero__points li,
.measure,
.index__note,
.picker__lead,
.picker__note,
.provenance__list,
.person__role,
.foot__fine {
  font-variant-numeric: oldstyle-nums;
}

/* Stops a single word being stranded on the last line. */
.hero__lede,
.measure,
.index__note,
.picker__lead,
.picker__note,
.foot__fine {
  text-wrap: pretty;
}

/* Inline call to action inside a lede — a link, not a button, so it does not
 * compete with the section's real CTAs. */
.inline-cta {
  color: var(--color-accent);
  font-weight: 500;
  text-decoration-color: var(--color-accent);
  text-underline-offset: 0.18em;
  white-space: nowrap;
  transition: text-decoration-thickness var(--dur-micro) var(--ease-out);
}

.inline-cta:hover {
  text-decoration-thickness: 2px;
}

/* Primary action — C1 outlined chip, filled variant for the page CTA. */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 44px;
  padding: var(--space-sm) var(--space-lg);
  border: var(--rule-hair) solid var(--color-accent);
  background: transparent;
  color: var(--color-accent);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--dur-micro) var(--ease-out),
    color var(--dur-micro) var(--ease-out),
    transform var(--dur-micro) var(--ease-out);
}

.btn:hover {
  background: var(--color-accent);
  color: var(--color-accent-ink);
}

.btn:active {
  transform: translateY(1px);
}

.btn--solid {
  background: var(--color-whatsapp-btn);
  border-color: var(--color-whatsapp-btn);
  color: var(--color-whatsapp-ink);
  font-size: var(--text-md);
  padding: var(--space-md) var(--space-xl);
  min-height: 52px;
}

.btn--solid:hover {
  background: var(--color-whatsapp-btn-hover);
  border-color: var(--color-whatsapp-btn-hover);
  color: var(--color-whatsapp-ink);
}

.btn__glyph {
  width: 1.05em;
  height: 1.05em;
  flex: none;
  fill: currentColor;
}

/* Typographic link — C3, used for profile and directions links. */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  min-height: 44px;
  color: var(--color-accent);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: var(--rule-hair) solid transparent;
  transition: border-color var(--dur-micro) var(--ease-out);
}

.tlink::after {
  content: "→";
  transition: transform var(--dur-short) var(--ease-out);
}

.tlink:hover {
  border-bottom-color: var(--color-accent);
}

.tlink:hover::after {
  transform: translateX(3px);
}

/* ====================================================================== *
 * Nav — N9 Edge-aligned minimal, dark variant. Sits on the navy hero and
 * stays navy for the whole scroll, so the WhatsApp action never leaves.
 * ====================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: var(--color-paper);
  color: var(--color-ink);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding: var(--space-sm) var(--page-gutter);
}

/* The bar is paper, so The Straits Eye Centre artwork runs in its own
 * colours at full size — no knockout, no compromise on the brand.
 * flex: none is load-bearing: without it the flex row crushes the logo
 * to fit the toggle and CTA instead of respecting the clamp. */
.brand {
  flex: none;
}

.brand__logo {
  width: clamp(164px, 46vw, 268px);
  height: auto;
}

.nav .btn {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.nav .btn:hover {
  background: var(--color-accent);
  color: var(--color-accent-ink);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* ---- Section links -----------------------------------------------------
 * Narrow: a panel that drops out of the bar, opened by the eye.
 * Wide: an inline row; the eye toggle is not rendered at all.
 * ------------------------------------------------------------------------ */

.nav__links {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: grid;
  grid-template-rows: 0fr;
  background: var(--color-paper);
  transition: grid-template-rows var(--dur-short) var(--ease-in-out);
}

.nav__links-inner {
  display: grid;
  min-height: 0;
  overflow: hidden;
}

.nav.is-open .nav__links {
  grid-template-rows: 1fr;
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

.nav__links a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding-inline: var(--page-gutter);
  color: var(--color-ink);
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  border-top: var(--rule-hair) solid var(--color-rule-2);
}

.nav__links a:hover {
  color: var(--color-accent);
}

/* ---- The eye toggle ----------------------------------------------------
 * The outline never moves — only the pupil dilates and the iris ring fades
 * in. Scaling the almond itself distorted the stroke (thin at the curves,
 * full weight at the tips), which read as a squashed oval rather than a
 * closing lid. Uniform scale on a *filled* pupil has no such problem.
 * The word "Menu" sits beside it so the affordance is never a guess.
 * ------------------------------------------------------------------------ */

.eyetoggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 44px;
  padding: var(--space-2xs) var(--space-xs);
  background: none;
  border: 0;
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}

.eyetoggle__mark {
  width: 30px;
  height: 20px;
  flex: none;
  overflow: visible;
}

.eyetoggle__lid,
.eyetoggle__iris {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.eyetoggle__pupil {
  fill: currentColor;
}

.eyetoggle__iris,
.eyetoggle__pupil {
  transform-box: fill-box;
  transform-origin: center;
  transition:
    transform var(--dur-short) var(--ease-out),
    opacity var(--dur-short) var(--ease-out);
}

/* Shut: pupil constricted to a pinpoint, iris ring not yet visible. */
.eyetoggle[aria-expanded="false"] .eyetoggle__pupil {
  transform: scale(0.4);
}

.eyetoggle[aria-expanded="false"] .eyetoggle__iris {
  opacity: 0;
  transform: scale(0.62);
}

/* ---- Floating WhatsApp widget -----------------------------------------
 * One persistent action, bottom-right, on every viewport. It replaces the
 * full-width mobile dock — a dock plus a floating button is two persistent
 * CTAs on one screen, which reads as clutter rather than emphasis.
 * ------------------------------------------------------------------------ */

.fab {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  bottom: max(clamp(1rem, 3vw, 2rem), env(safe-area-inset-bottom));
  z-index: var(--z-sticky);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: var(--radius-round);
  background: var(--color-whatsapp);
  color: var(--color-whatsapp-ink);
  box-shadow: 0 4px 16px var(--shadow-fab);
  transition:
    transform var(--dur-short) var(--ease-out),
    box-shadow var(--dur-short) var(--ease-out);
}

.fab svg {
  width: 31px;
  height: 31px;
  fill: currentColor;
}

.fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 24px var(--shadow-fab-hover);
}

.fab:active {
  transform: translateY(0);
}

@media (max-width: 63.99rem) {
  .nav .btn {
    display: none;
  }
}

@media (min-width: 64rem) {
  .eyetoggle {
    display: none;
  }

  .nav__links {
    position: static;
    display: block;
    background: none;
    border: 0;
  }

  .nav__links-inner {
    display: flex;
    gap: var(--space-lg);
    overflow: visible;
  }

  .nav__links a {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    min-height: 44px;
    padding-inline: 0;
    border-top: 0;
    border-bottom: var(--rule-hair) solid transparent;
    color: var(--color-ink-2);
    transition: color var(--dur-micro) var(--ease-out);
  }

  .nav__links a:hover {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
  }

  /* The current section is marked by colour alone. An eye glyph was tried
   * here and dropped — see CLAUDE.md. */
  .nav__links a.is-current {
    color: var(--color-accent);
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  min-height: 44px;
  text-decoration: none;
  color: var(--color-ink);
}

/* ====================================================================== *
 * Hero — H6 Photographic fold. The photograph is never tinted: it runs in
 * its own colour and the navy field sits beside it, never over it.
 *   Narrow  — photo stacked above a navy type block.
 *   Wide    — photo full-bleed left, navy panel from 34% carrying the type.
 * The type therefore always sits on flat navy, so no text shadow is needed.
 * ====================================================================== */

.hero {
  display: grid;
  background: var(--color-ink-deep);
  color: var(--color-on-dark);
  overflow: hidden;
}

.hero__media {
  margin: 0;
}

.hero__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 26% 20%;
}

/* Only used on the wide layout; on narrow the photo is untouched. */
.hero__scrim {
  display: none;
}

.hero__inner {
  max-width: var(--page-max);
  width: 100%;
  margin-inline: auto;
  padding: var(--space-lg) var(--page-gutter) var(--space-xl);
}

/* The type block. It is a wrapper rather than a grid column because on the
 * wide layout it has to be positioned against the photograph's edge, not
 * against the page container — see the margin-left below. */
.hero__panel {
  display: grid;
  gap: var(--space-lg);
  justify-items: start;
}

@media (min-width: 48rem) {
  .hero__media img {
    aspect-ratio: 16 / 9;
  }
}

@media (min-width: 64rem) {
  .hero {
    position: relative;
    isolation: isolate;
    align-content: center;
    min-height: min(74svh, 36rem);
  }

  /* The photo takes the left half of the band and fills it. Full-bleed would
   * reinstate a 41% vertical crop and cut the doctors at the waist; at 50%
   * the box is ~1.25:1 against the photo's 1.97:1, so `cover` crops sideways
   * only and they keep their full height. Bottom alignment takes what little
   * vertical crop remains off the ceiling. */
  .hero__media {
    position: absolute;
    inset: 0 50% 0 0;
    z-index: -2;
  }

  /* picture is the img's containing block and the reset gives it height:auto,
   * so `img { height: 100% }` on its own resolves to auto — the photograph
   * then letterboxes at its own 1.97:1 inside the band and leaves a strip of
   * bare navy beneath it. Both heights are needed. */
  .hero__media picture {
    height: 100%;
  }

  .hero__media img {
    height: 100%;
    aspect-ratio: auto;
    object-position: 28% 100%;
  }

  /* The last stop must be fully opaque and must land before the type starts,
   * or the first characters sit on a translucent patch. The type's left edge
   * is `100% - 36rem - gutter` once the panel is pinned to the gutter and
   * 75% - 18rem once it can centre, so the lesser of the photo's edge and the
   * pinned position clears both cases at every width from 64rem up. */
  .hero__scrim {
    display: block;
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
      to right,
      transparent 18%,
      var(--color-ink-deep) min(50%, calc(100% - 36rem - 2 * var(--page-gutter)))
    );
  }

  .hero__inner {
    max-width: none;
    padding-inline: 0;
    padding-block: var(--space-xl);
  }

  /* Centred in the navy half — equal air either side of the type — and pinned
   * to the page gutter once the viewport is too narrow for a 36rem column to
   * centre there (below ~1400px). The column stays 36rem in both cases: it is
   * the column, not the type size, that keeps the headline on two lines. */
  .hero__panel {
    width: 36rem;
    max-width: calc(100% - 2 * var(--page-gutter));
    margin-left: clamp(
      var(--page-gutter),
      calc(75% - 18rem),
      calc(100% - 36rem - var(--page-gutter))
    );
  }
}

.hero__display {
  font-size: var(--text-display);
  line-height: 1.12;
  max-width: 21ch;
  text-wrap: balance;
}

.hero__lede {
  max-width: 44ch;
  font-size: var(--text-md);
  line-height: 1.55;
  color: var(--color-on-dark-2);
  padding-top: var(--space-md);
  border-top: var(--rule-hair) solid var(--color-rule-dark);
}

.hero__points {
  display: grid;
  gap: var(--space-2xs);
  max-width: var(--measure-note);
}

.hero__points li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: var(--text-base);
  line-height: 1.45;
  color: var(--color-on-dark);
}

.tick {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 0.12em;
  fill: none;
  stroke: var(--color-tick);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero__points .tick {
  stroke: var(--color-tick-on-dark);
}

/* Filled badge beside a name: solid disc, knocked-out check. Sits on the
 * name's baseline rather than leading its own row. */
.person__name .vbadge {
  display: inline-block;
  width: 20px;
  height: 20px;
  vertical-align: -0.15em;
}

.vbadge circle {
  fill: var(--color-tick);
  stroke: none;
}

.vbadge path {
  fill: none;
  stroke: var(--color-paper);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero__places {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-md);
  color: var(--color-on-dark-2);
}

/* Two actions side by side: the WhatsApp fill and a quiet outline that
 * jumps down to the concern picker. */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.btn--ghost {
  background: transparent;
  border-color: var(--color-on-dark-2);
  color: var(--color-on-dark);
  font-size: var(--text-md);
  padding: var(--space-md) var(--space-xl);
  min-height: 52px;
}

.btn--ghost:hover {
  background: var(--color-on-dark);
  border-color: var(--color-on-dark);
  color: var(--color-ink-deep);
}

.hero :focus-visible {
  outline-color: var(--color-focus-dark);
}

@media (max-width: 40rem) {
  .hero__media img {
    object-position: 22% 18%;
  }
}

/* ====================================================================== *
 * Section heads — S2 Hanging, single column, no eyebrows
 * ====================================================================== */

.head {
  display: grid;
  gap: var(--space-sm);
  max-width: 60ch;
}

.head h2 {
  font-size: var(--text-2xl);
  line-height: 1.18;
}

/* .head is a stretch grid, so a CTA inside it would run the full column. */
.head .btn {
  justify-self: start;
  margin-top: var(--space-2xs);
}

/* ====================================================================== *
 * Specialists — F6 adapted to people; 4/3 crops match the source photography
 * ====================================================================== */

.specialists {
  padding-block: var(--space-2xl) var(--space-xl);
}

.people {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-xl) var(--space-lg);
  margin-top: var(--space-xl);
}

@media (min-width: 40rem) {
  .people {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 60rem) {
  .people {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Rows: portrait · name · role · credentials · focus (absorbs slack) · profile link.
 * The 1fr row is what keeps the three profile links on one baseline. */
.person {
  display: grid;
  grid-template-rows: auto auto auto auto 1fr auto;
  gap: var(--space-sm);
}

.person__portrait {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--color-paper-2);
  margin-bottom: var(--space-xs);
}

.person--jayant .person__portrait {
  object-position: 50% 26%;
}

.person--jason .person__portrait {
  object-position: 48% 22%;
}

.person--audrey .person__portrait {
  object-position: 42% 30%;
}

/* A full-width 4/3 portrait is 292px tall on a 390px phone and three of them
 * dominated the mobile scroll. 16/9 keeps the face and returns ~70px each.
 * This must stay AFTER the base .person__portrait rule — equal specificity,
 * so source order decides, and an earlier media block silently loses. */
@media (max-width: 40rem) {
  .person__portrait {
    aspect-ratio: 16 / 9;
  }
}

.person__name {
  font-size: var(--text-lg);
  line-height: 1.2;
}

.person__role {
  font-size: var(--text-sm);
  color: var(--color-ink-2);
  line-height: 1.5;
}

/* Credentials — the mono outlier, role two of two. */
.person__creds {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.02em;
  color: var(--color-muted);
  line-height: 1.6;
}

.person__focus {
  display: grid;
  gap: var(--space-2xs);
  padding-top: var(--space-sm);
  border-top: var(--rule-hair) solid var(--color-rule-2);
  font-size: var(--text-sm);
}

.person__focus li {
  display: flex;
  gap: 0.6em;
}

.person__focus li::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  margin-top: 0.62em;
  background: var(--color-accent);
}

/* Profile links as brand glyphs. Only filled brand marks are used together —
 * mixing a stroked icon set in would break the optical weight. The 44px box
 * is pulled left so the first glyph optically aligns with the text above. */
.person__social {
  display: flex;
  align-items: center;
  gap: var(--space-3xs);
  margin-inline-start: -10px;
}

.person__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--color-ink-2);
  transition: color var(--dur-micro) var(--ease-out);
}

.person__social a:hover {
  color: var(--color-accent);
}

.person__social svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

/* ---------------------------------------------------------------------- *
 * Provenance — where the specialists trained and have practised. Verifiable
 * institutions carry the credibility that a laudatory adjective cannot.
 * ---------------------------------------------------------------------- */

.provenance {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: var(--rule-hair) solid var(--color-rule);
}

.provenance__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs) var(--space-md);
  margin-top: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--color-ink-2);
}

.provenance__list li {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Middot between items, but never a trailing one. */
.provenance__list li:not(:last-child)::after {
  content: "";
  width: 3px;
  height: 3px;
  background: var(--color-rule);
  border-radius: var(--radius-round);
}

/* ---------------------------------------------------------------------- *
 * Pull quote — a tinted full-bleed band. A practitioner stating his own
 * approach, which is permitted; patient testimonials are not.
 * ---------------------------------------------------------------------- */

/* Dark band. After the hero the page runs light all the way down; the
 * doctors' own words are the right place to break that, and it stops this
 * and the picker below reading as one continuous slab. */
.quote {
  background: var(--color-ink-deep);
  color: var(--color-on-dark);
  padding-block: var(--space-2xl);
}

.quote__inner {
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.quote__pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-2xl);
}

@media (min-width: 60rem) {
  .quote__pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3xl);
  }
}

/* 1fr on the quote row drops both attributions onto one baseline even
 * though the two quotes are different lengths. */
.quote figure {
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: start;
  gap: var(--space-lg);
  margin: 0;
}

.quote blockquote {
  margin: 0;
}

.quote__text {
  /* The opening quote mark hangs into the margin so the block aligns
   * optically rather than mechanically — inline, the first line visibly
   * sits ~0.4em right of every line beneath it. */
  hanging-punctuation: first last;
  text-indent: -0.42em;
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  font-size: var(--text-lg);
  line-height: 1.35;
  letter-spacing: -0.012em;
  max-width: 32ch;
  color: var(--color-on-dark);
  text-wrap: pretty;
}

.quote figcaption {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.quote__portrait {
  width: 56px;
  height: 56px;
  flex: none;
  object-fit: cover;
  border-radius: var(--radius-round);
  background: var(--color-rule-dark);
}

.quote__who {
  display: grid;
  font-size: var(--text-sm);
  line-height: 1.45;
  color: var(--color-on-dark-2);
}

/* .muted is a dark grey — invisible on navy. */
.quote .muted {
  color: var(--color-on-dark-2);
}

.quote__name {
  font-weight: 500;
  color: var(--color-on-dark);
}

/* Blue on the dark band, where the specialists' green disc would read as a
 * different kind of mark. The check is knocked out in navy rather than white:
 * white on this blue is only ~2:1, navy on it clears 7:1. */
.quote__name .vbadge {
  display: inline-block;
  width: 16px;
  height: 16px;
  vertical-align: -0.18em;
}

.quote__name .vbadge circle {
  fill: var(--color-accent-on-dark);
}

.quote__name .vbadge path {
  stroke: var(--color-ink-deep);
}

/* ====================================================================== *
 * Concern picker — "tell us what's on your mind". One tap goes to WhatsApp
 * with the concern already written into the message.
 *
 * Adapted from heartspecialist.sg's package recommender, but rebuilt in this
 * page's language: hairlines and a tinted band rather than that site's
 * rounded card, drop shadow and radial gradients, which would fight
 * everything else here.
 * ====================================================================== */

.picker {
  background: var(--color-paper-3);
  border-block: var(--rule-hair) solid var(--color-rule);
  padding-block: var(--space-2xl);
}

.picker__inner {
  display: grid;
  gap: var(--space-xl);
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

@media (min-width: 64rem) {
  .picker__inner {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: var(--space-3xl);
    align-items: start;
  }
}

.picker__ask h2 {
  font-size: var(--text-xl);
  line-height: 1.2;
  max-width: 18ch;
}

.picker__lead {
  margin-top: var(--space-sm);
  max-width: var(--measure-note);
  color: var(--color-ink-2);
  font-size: var(--text-sm);
}

/* The three specialists, overlapping — you are messaging the practice, not
 * one named doctor, so all three appear. */
.picker__faces {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-md);
}

.picker__faces img {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-round);
  object-fit: cover;
  border: 2px solid var(--color-paper-2);
  background: var(--color-paper-3);
}

.picker__faces li + li {
  margin-inline-start: -14px;
}

/* Rotating concern. min-height reserves two lines so nothing below shifts
 * as characters land — keep phrases under ~40 characters. */
.picker__bubble {
  margin-top: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  background: var(--color-paper);
  border: var(--rule-hair) solid var(--color-rule);
}

.picker__typed-line {
  min-height: 2.6em;
  margin-top: var(--space-2xs);
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: var(--weight-subhead);
  line-height: 1.3;
  color: var(--color-ink);
}

.picker__caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-inline-start: 2px;
  vertical-align: -0.12em;
  background: var(--color-accent);
  animation: caret-blink 1s step-end infinite;
}

@keyframes caret-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.picker__chips {
  display: grid;
  gap: var(--space-2xs);
}

.picker__chip {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  min-height: 58px;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-paper);
  border: var(--rule-hair) solid var(--color-rule);
  color: var(--color-ink);
  font-size: var(--text-base);
  line-height: 1.35;
  text-decoration: none;
  transition:
    border-color var(--dur-micro) var(--ease-out),
    background-color var(--dur-micro) var(--ease-out);
}

.picker__chip:hover {
  background: var(--color-paper-3);
  border-color: var(--color-accent);
}

.picker__chip::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  background: var(--color-accent);
}

.picker__chip-text {
  flex: 1;
}

/* Green only on hover — seven green squares would become a wall of brand
 * colour competing with the concerns they are meant to support. */
.picker__chip-wa {
  flex: none;
  width: 21px;
  height: 21px;
  fill: var(--color-muted);
  transition: fill var(--dur-micro) var(--ease-out);
}

.picker__chip:hover .picker__chip-wa {
  fill: var(--color-whatsapp);
}

.picker__note {
  max-width: var(--measure-note);
  margin-top: var(--space-md);
  font-size: var(--text-xs);
  color: var(--color-muted);
}

@media (prefers-reduced-motion: reduce) {
  .picker__caret {
    animation: none;
    opacity: 0;
  }
}

/* ====================================================================== *
 * Conditions — a hairline index, deliberately a different shape from both
 * the person cards above and the clinic sheet below.
 * ====================================================================== */

.conditions {
  padding-block: var(--space-2xl);
}

.index {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: var(--space-2xl);
  margin-top: var(--space-xl);
  border-top: var(--rule-hair) solid var(--color-rule);
}

@media (min-width: 48rem) {
  .index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Nine conditions in two columns ran five rows deep. Three columns brings it
 * to three, which is a large share of the page's total scroll. */
@media (min-width: 64rem) {
  .index {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: var(--space-xl);
  }
}

.index__item {
  display: grid;
  gap: var(--space-2xs);
  padding-block: var(--space-lg);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

@media (max-width: 63.99rem) {
  .index__item {
    padding-block: var(--space-md);
  }
}

.index__name {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-md);
  line-height: 1.3;
}

/* Hand-built in one stroke voice, matching the eye toggle. Dropping in an
 * icon library here would introduce a second stroke weight and cap style —
 * the fastest way to make a page look assembled rather than designed. */
.index__icon {
  flex: none;
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.index__note {
  font-size: var(--text-sm);
  color: var(--color-ink-2);
  max-width: var(--measure-note);
}

/* ====================================================================== *
 * Clinics — F3 tabular spec sheet, hairline rows, uneven columns
 * ====================================================================== */

.clinics {
  padding-block: var(--space-2xl);
}

.sheet {
  margin-top: var(--space-xl);
  border-top: var(--rule-hair) solid var(--color-rule);
}

.clinic {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-md);
  padding-block: var(--space-lg);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

/* Six clinics stacked one-per-row is the single longest stretch of the page.
 * Two per row on wide viewports roughly halves it; each clinic then keeps its
 * own hairline and stacks internally, so it still reads as a spec sheet. */
@media (min-width: 64rem) {
  .sheet {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--space-2xl);
  }

  .clinic {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
    gap: var(--space-md) var(--space-lg);
    align-items: start;
  }

  .clinic__name {
    grid-column: 1 / -1;
  }
}

.clinic__name {
  font-size: var(--text-md);
  line-height: 1.3;
}

.clinic__where {
  display: grid;
  gap: var(--space-2xs);
}

.clinic__address {
  font-size: var(--text-sm);
  color: var(--color-ink-2);
  line-height: 1.65;
}

.clinic__within {
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.clinic__facts {
  display: grid;
  gap: var(--space-xs);
  font-size: var(--text-sm);
}

/* Stacked, the three fact rows made every clinic three rows taller than it
 * needed to be. Two-up on narrow; Directions keeps its own full-width row. */
@media (max-width: 63.99rem) {
  .clinic {
    padding-block: var(--space-md);
  }

  .clinic__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-sm) var(--space-md);
  }

  .clinic__facts > div:last-child {
    grid-column: 1 / -1;
  }
}

.clinic__facts div {
  display: grid;
  gap: var(--space-3xs);
}

.clinic__facts dd {
  margin: 0;
  color: var(--color-ink-2);
}

.clinic__facts a {
  color: var(--color-ink-2);
  text-decoration-color: var(--color-rule);
  text-underline-offset: 0.2em;
  transition: text-decoration-color var(--dur-micro) var(--ease-out);
}

.clinic__facts a:hover {
  text-decoration-color: var(--color-accent);
  color: var(--color-accent);
}

.clinic__pending {
  color: var(--color-muted);
}

.clinic__actions {
  display: flex;
  align-items: start;
}

/* ====================================================================== *
 * Closing — team band and the page's one solid CTA
 * ====================================================================== */

.closing {
  display: grid;
  gap: var(--space-xl);
  padding-block: var(--space-xl) var(--space-2xl);
}

@media (min-width: 60rem) {
  .closing {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: var(--space-2xl);
    align-items: center;
  }
}

.closing__figure {
  margin: 0;
}

.closing__figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--color-paper-2);
}

.closing__body {
  display: grid;
  gap: var(--space-md);
  justify-items: start;
}

.closing__body h2 {
  font-size: var(--text-xl);
  line-height: 1.2;
  max-width: 20ch;
}

.closing__note {
  font-size: var(--text-sm);
  color: var(--color-muted);
}

/* ====================================================================== *
 * Footer — Ft1 Mast-headed
 * ====================================================================== */

.foot {
  border-top: var(--rule-thick) solid var(--color-ink);
  padding-block: var(--space-xl) var(--space-2xl);
  /* Clears the floating widget so it never sits on the last line. */
  padding-bottom: max(7rem, calc(var(--space-2xl) + env(safe-area-inset-bottom)));
}

.foot__band {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 60rem) {
  .foot__band {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 0.9fr);
    gap: var(--space-xl);
    align-items: start;
  }
}

.foot__group {
  display: grid;
  gap: var(--space-2xs);
  font-size: var(--text-sm);
  color: var(--color-ink-2);
}

.foot__group a {
  color: var(--color-ink-2);
  text-decoration-color: var(--color-rule);
  text-underline-offset: 0.2em;
  white-space: nowrap;
  transition:
    color var(--dur-micro) var(--ease-out),
    text-decoration-color var(--dur-micro) var(--ease-out);
}

.foot__group a:hover {
  color: var(--color-accent);
  text-decoration-color: var(--color-accent);
}

/* The Straits Eye Centre logo now anchors the footer band, in place of the
 * eyespecialist.sg lockup — so it carries a little more weight than it did
 * as a trailing credit. */
.foot__partner {
  width: clamp(180px, 22vw, 216px);
  height: auto;
}

.foot__fine {
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: var(--rule-hair) solid var(--color-rule);
  font-size: var(--text-xs);
  color: var(--color-muted);
  max-width: var(--measure);
  line-height: 1.7;
}

/* ====================================================================== *
 * Motion — one orchestrated entrance, staggered by DOM index
 * ====================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(10px);
  animation: reveal var(--dur-long) var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 70ms);
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 150ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 150ms !important;
  }

  .reveal {
    transform: none;
    animation: reveal-reduced 150ms linear forwards;
    animation-delay: 0ms;
  }

  @keyframes reveal-reduced {
    to {
      opacity: 1;
    }
  }
}

@media (pointer: coarse) {
  .btn,
  .tlink {
    min-height: 48px;
  }

  /* Call, directions and contact links are actions, not prose links —
   * they need a real thumb target on touch. */
  .clinic__facts a,
  .foot__group a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}
