/* ============================================================
   Harley Street Eye Hospital: shared site stylesheet (css/styles.css)
   Design system v1 (11 November 2026). The single source of truth for the
   site, the Design system boards, design-system.html, the Dashboard and
   Site Config. Keep the "Design system" boards and design-system.html in
   step with this file: any change to one is made to the others.

   Rules
   - Themes hang off [data-theme] only, never prefers-color-scheme.
     The site opens light; dark only once the visitor picks it.
   - Text size control: [data-text-size="1"] and ="2" scale every type
     size through --ts (A- / A+).
   - The Dashboard and Site Config boards read --bg, --surface, --ink,
     --ink-muted, --line, --accent (both themes), --link, --link-hover,
     and .btn, .btn--primary, .btn--ghost below.
   - No em dashes anywhere. British English.
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root,
[data-theme="light"] {
  /* Brand */
  --brand-blue: #0375b6;      /* logo swoosh, primary accent */
  --brand-ink: #0d0c22;       /* logo wordmark, headings */
  --brand-navy: #1b1948;      /* deep bands */

  /* Surfaces and text */
  --bg: #ffffff;
  --surface: #f4f7fb;
  --surface-2: #e9eff7;
  --ink: #0d0c22;
  --ink-muted: #55546a;
  --line: #dfe5ee;
  --line-strong: #c3cddb;

  /* Accent */
  --accent: #0375b6;
  --accent-hover: #025d91;
  --accent-ink: #ffffff;
  --accent-soft: #e7f1f9;
  --link: #0375b6;
  --link-hover: #025d91;

  /* Deep band (navy sections, footer) */
  --navy: #1b1948;
  --navy-2: #24225c;
  --on-navy: #ffffff;
  --on-navy-muted: #c9cae2;
  --on-navy-accent: #7cc3ef;

  /* Status */
  --ok: #1f7a4d;
  --error: #b42318;
  --error-soft: #fdecea;
  --star: #b45309;

  /* Type */
  --font: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-head: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-display: var(--font-head);
  --ts: 1;
  --fs-display: calc(clamp(2.5rem, 1.6rem + 3.6vw, 4.25rem) * var(--ts));
  --fs-h1: calc(clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem) * var(--ts));
  --fs-h2: calc(clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem) * var(--ts));
  --fs-h3: calc(1.5rem * var(--ts));
  --fs-h4: calc(1.25rem * var(--ts));
  --fs-h5: calc(1.0625rem * var(--ts));
  --fs-h6: calc(.8125rem * var(--ts));
  --fs-lead: calc(1.25rem * var(--ts));
  --fs-body: calc(1.0625rem * var(--ts));
  --fs-small: calc(.9375rem * var(--ts));
  --fs-xs: calc(.8125rem * var(--ts));

  /* Space, radii, shadows, motion */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px;
  --gutter: clamp(16px, 4vw, 40px);
  --container: 1200px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(13, 12, 34, .06), 0 1px 1px rgba(13, 12, 34, .04);
  --shadow-md: 0 8px 24px -8px rgba(13, 12, 34, .14);
  --shadow-lift: 0 18px 40px -16px rgba(13, 12, 34, .24);
  --focus-ring: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --speed: .55s;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0e0f22;
  --surface: #17183a;
  --surface-2: #20224a;
  --ink: #f3f4fa;
  --ink-muted: #b4b6c8;
  --line: #2c2e55;
  --line-strong: #43467a;
  --accent: #5bb0e6;
  --accent-hover: #86c6ee;
  --accent-ink: #0e0f22;
  --accent-soft: #15304a;
  --link: #5bb0e6;
  --link-hover: #86c6ee;
  --navy: #070818;
  --navy-2: #121434;
  --on-navy-muted: #b4b6c8;
  --ok: #6fcf9a;
  --error: #f08a76;
  --error-soft: #3a1d1d;
  --star: #f2b35b;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 8px 24px -8px rgba(0, 0, 0, .6);
  --shadow-lift: 0 18px 40px -16px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

[data-text-size="1"] { --ts: 1.125; }
[data-text-size="2"] { --ts: 1.25; }

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
h1, h2, h3, h4, h5, h6 { margin: 0; color: var(--ink); font-family: var(--font-head); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.display { font-size: var(--fs-display); font-weight: 300; line-height: 1.08; letter-spacing: -.025em; }
h1, .h1 { font-size: var(--fs-h1); font-weight: 300; line-height: 1.12; letter-spacing: -.02em; }
h2, .h2 { font-size: var(--fs-h2); font-weight: 400; line-height: 1.2; letter-spacing: -.015em; }
h3, .h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.3; letter-spacing: -.005em; }
h4, .h4 { font-size: var(--fs-h4); font-weight: 600; line-height: 1.35; }
h5, .h5 { font-size: var(--fs-h5); font-weight: 700; line-height: 1.4; }
h6, .h6 { font-size: var(--fs-h6); font-weight: 700; line-height: 1.4; letter-spacing: .12em; text-transform: uppercase; }
.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--ink-muted); font-weight: 400; }
.small { font-size: var(--fs-small); }
.muted { color: var(--ink-muted); }
.eyebrow { display: inline-block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
strong, b { font-weight: 700; }
/* Registered trademark mark: small and raised so it doesn't compete with the name */
.reg { font-size: .5em; line-height: 0; vertical-align: super; margin-left: .06em; font-weight: inherit; letter-spacing: 0; }

a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .18s ease; }
a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 4px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.link-arrow svg { transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

.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; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; padding: 12px 18px; background: var(--ink); color: var(--bg); border-radius: var(--radius-md); }
.skip-link:focus { top: 16px; }

/* ---------- 3. Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 8vw, 112px) 0; }
.section--tint { background: var(--surface); }
.section--navy { background: var(--navy); color: var(--on-navy); }
.section--navy h1, .section--navy h2, .section--navy h3, .section--navy h4 { color: var(--on-navy); }
.section--navy .lead, .section--navy .muted { color: var(--on-navy-muted); }
.section--navy .eyebrow { color: var(--on-navy-accent); }
.section--navy a:not(.btn) { color: var(--on-navy-accent); }
/* Statement band: one big line on a navy gradient, with iris rings and a pale-blue highlight (<em>) */
.statement-band {
  position: relative; overflow: hidden; isolation: isolate; text-align: center; color: #ffffff;
  padding: clamp(64px, 8vw, 104px) 0;
  background: linear-gradient(135deg, var(--brand-navy) 0%, color-mix(in srgb, var(--brand-navy) 78%, var(--brand-blue)) 100%);
}

.statement-band::before { left: -120px; opacity: .10; transform: rotate(-8deg); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 140' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M8 70C60 8 180 8 232 70C180 132 60 132 8 70Z'/%3E%3Ccircle cx='120' cy='70' r='42'/%3E%3Cpath stroke-width='1.6' d='M142 70L160 70M139 81L154.6 90M131 89L140 104.6M120 92L120 110M109 89L100 104.6M101 81L85.4 90M98 70L80 70M101 59L85.4 50M109 51L100 35.4M120 48L120 30M131 51L140 35.4M139 59L154.6 50'/%3E%3Ccircle cx='120' cy='70' r='16' fill='white' stroke='none'/%3E%3C/svg%3E"); }
.statement-band::after { right: -120px; opacity: .22; transform: rotate(8deg); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 140' fill='none' stroke='%237cc3ef' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M8 70C60 8 180 8 232 70C180 132 60 132 8 70Z'/%3E%3Ccircle cx='120' cy='70' r='42'/%3E%3Cpath stroke-width='1.6' d='M142 70L160 70M139 81L154.6 90M131 89L140 104.6M120 92L120 110M109 89L100 104.6M101 81L85.4 90M98 70L80 70M101 59L85.4 50M109 51L100 35.4M120 48L120 30M131 51L140 35.4M139 59L154.6 50'/%3E%3Ccircle cx='120' cy='70' r='16' fill='%237cc3ef' stroke='none'/%3E%3C/svg%3E"); }
.statement-band .container { display: grid; justify-items: center; gap: 20px; }
.statement-band .container::before { content: '\201C'; height: 34px; font: 400 5rem/.8 Georgia, 'Times New Roman', serif; color: #7cc3ef; }
.statement-band .container::after { content: ''; width: 56px; height: 3px; border-radius: 3px; background: #7cc3ef; }
.statement-band p { max-width: 880px; margin: 0 auto; font-size: calc(clamp(1.5rem, 1.1rem + 1.6vw, 2.375rem) * var(--ts)); font-weight: 300; line-height: 1.35; letter-spacing: -.01em; color: #ffffff; }
.statement-band em { font-style: normal; font-weight: 600; color: #7cc3ef; }
/* Background eyes removed on request */
.statement-band::before, .statement-band::after { content: none; }
/* Editorial layout: big quote mark on the left, statement on the right, soft brand-blue glows */
.statement-band {
  text-align: left; padding: clamp(72px, 9vw, 120px) 0;
  border-top: 1px solid rgba(255, 255, 255, .06); border-bottom: 1px solid rgba(255, 255, 255, .06);
  background:
    radial-gradient(620px 340px at 88% 8%, color-mix(in srgb, var(--brand-blue) 55%, transparent), transparent 70%),
    radial-gradient(520px 300px at 6% 100%, rgba(124, 195, 239, .16), transparent 70%),
    linear-gradient(135deg, var(--brand-navy) 0%, color-mix(in srgb, var(--brand-navy) 82%, var(--brand-blue)) 100%);
}
.statement-band .container { grid-template-columns: auto minmax(0, 1fr); justify-items: start; align-items: start; column-gap: clamp(20px, 3vw, 44px); row-gap: 26px; max-width: 1060px; }
.statement-band .container::before { grid-row: 1 / span 2; height: auto; font-size: clamp(6rem, 4rem + 6vw, 10rem); line-height: .75; }
.statement-band p { grid-column: 2; margin: 0; max-width: 820px; font-size: calc(clamp(1.75rem, 1.2rem + 2vw, 2.875rem) * var(--ts)); line-height: 1.25; }
.statement-band .container::after { grid-column: 2; width: 72px; }
@media (max-width: 640px) {
  .statement-band .container { grid-template-columns: 1fr; }
  .statement-band .container::before { grid-row: auto; font-size: 5rem; }
  .statement-band p, .statement-band .container::after { grid-column: 1; }
}
.section__head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; justify-items: center; }
.grid-auto { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; white-space: nowrap;
  font: 700 .875rem/1.2 var(--font); letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  border: 1.5px solid transparent; border-radius: var(--radius-pill);
  cursor: pointer; transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
  -webkit-appearance: none; appearance: none;
}
.btn:hover { text-decoration: none; }
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-pill); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn .num {
  display: inline-grid; place-items: center; flex: none;
  width: 28px; height: 28px; border-radius: 50%;
  font-size: .8125rem; font-weight: 700;
}
/* Dashboard step rows: a button with no number circle keeps even padding, so its label sits centred (the board's .run .btn padding assumes a circle). */
.run .btn:not(:has(.num)) { padding: 0 20px; }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover:not(:disabled) { background: var(--accent-hover); color: var(--accent-ink); }
.btn--secondary { background: var(--ink); color: var(--bg); }
.btn--secondary:hover:not(:disabled) { background: var(--navy-2); color: #ffffff; }
.btn--ghost { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn--ghost:hover:not(:disabled) { background: var(--accent-soft); color: var(--accent); }
.btn--on-navy { background: #ffffff; color: var(--brand-navy); }
.btn--on-navy:hover:not(:disabled) { background: var(--on-navy-accent); color: var(--brand-navy); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: .8125rem; }
.btn--lg { min-height: 56px; padding: 0 32px; font-size: .9375rem; }
.btn.is-hover.btn--primary { background: var(--accent-hover); }
.btn.is-hover.btn--secondary { background: var(--navy-2); color: #ffffff; }
.btn.is-hover.btn--ghost { background: var(--accent-soft); }
.btn.is-focus { box-shadow: var(--focus-ring); }

/* ---------- 5. Draft marker (removed once the client approves the copy) ---------- */
.draft-tag {
  display: inline-flex; align-items: center; vertical-align: middle;
  margin-left: 8px; padding: 2px 9px;
  font: 700 11px/1.5 var(--font); letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: var(--radius-pill);
}

/* Placeholder marker: content still to come from the client (never left at release) */
.ph-tag { display: inline-flex; align-items: center; vertical-align: middle; margin-left: 6px; padding: 1px 8px; border-radius: var(--radius-pill); background: var(--surface-2); color: var(--ink-muted); font: 700 11px/1.5 var(--font); letter-spacing: .08em; text-transform: uppercase; }

/* ---------- 6. Site controls: theme toggle and text size ---------- */
.site-controls { display: flex; align-items: center; gap: 8px; }
.theme-toggle {
  position: relative; display: inline-flex; align-items: center; justify-content: space-between;
  width: 76px; height: 44px; padding: 0 10px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
  background: var(--surface); color: var(--ink); cursor: pointer;
}
.theme-toggle svg { position: relative; z-index: 1; width: 18px; height: 18px; }
.theme-toggle__thumb {
  position: absolute; top: 4px; left: 4px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg); box-shadow: var(--shadow-sm); transition: transform .25s var(--ease);
}
.theme-toggle[aria-pressed="true"] .theme-toggle__thumb { transform: translateX(32px); }
.theme-toggle:focus-visible { box-shadow: var(--focus-ring); border-radius: var(--radius-pill); }
.text-size { display: inline-flex; align-items: center; height: 44px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--surface); overflow: hidden; }
.text-size button {
  min-width: 44px; height: 42px; padding: 0 10px; border: 0; background: transparent; color: var(--ink);
  font: 700 .9375rem/1 var(--font); cursor: pointer;
}
.text-size button + button { border-left: 1px solid var(--line-strong); }
.text-size button:hover:not(:disabled) { background: var(--accent-soft); color: var(--accent); }
.text-size button:disabled { opacity: .4; cursor: not-allowed; }
.text-size button:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); border-radius: 0; }
.text-size__big { font-size: 1.125rem; }
/* Floating version: fixed bottom right on every page, above the content, below the mobile menu and cookie panel */
.site-controls--float {
  position: fixed; right: 16px; bottom: 16px; z-index: 90;
  padding: 6px; border: 1px solid var(--line); border-radius: var(--radius-pill);
  background: var(--bg); box-shadow: var(--shadow-lift);
}
@media (min-width: 768px) { .site-controls--float { right: 24px; bottom: 24px; } }
/* Floating accessibility button: one round button bottom right that opens the theme and text size controls */
.a11y { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
@media (min-width: 768px) { .a11y { right: 24px; bottom: 24px; } }
.a11y__fab { display: grid; place-items: center; width: 56px; height: 56px; padding: 0; border: 0; border-radius: 50%; background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-lift); cursor: pointer; transition: transform .2s var(--ease), background-color .2s ease, color .2s ease; }
.a11y__fab svg { width: 28px; height: 28px; }
.a11y__fab:hover { background: var(--accent-hover); transform: scale(1.05); }
.a11y__fab:focus-visible { box-shadow: var(--focus-ring); border-radius: 50%; }
.a11y.is-open .a11y__fab { background: var(--ink); color: var(--bg); }
.a11y__panel { order: -1; padding: 6px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--bg); box-shadow: var(--shadow-lift); animation: soft-rise .25s var(--ease) both; }

/* ---------- 7. Navigation ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s ease, box-shadow .2s ease; }
.nav.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 100px; }
/* The logo artwork has no clear space of its own: keep at least 14px above and below it. */
.nav__logo { display: inline-flex; flex: none; padding: 14px 0; }
.nav__logo img { width: 140px; height: auto; }
[data-theme="dark"] .logo--colour { display: none; }
.logo--white { display: none; }
[data-theme="dark"] .logo--white { display: block; }
.nav__links { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav__links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--ink); font-size: .9375rem; font-weight: 600; text-decoration: none; border-radius: var(--radius-md); }
@media (max-width: 1360px) { .nav__phone { display: none; } }
.nav__links a:hover { color: var(--accent); background: var(--accent-soft); }
.nav__links a[aria-current] { color: var(--accent); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__phone { font-weight: 700; text-decoration: none; color: var(--ink); white-space: nowrap; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer; place-items: center; }
@media (max-width: 1080px) {
  .nav__links, .nav__phone { display: none; }
  .burger { display: inline-grid; }
}
@media (max-width: 560px) {
  .nav__actions .btn, .nav__actions .site-controls { display: none; }
  .nav__logo img { width: 128px; }
}
.mnav { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-rows: auto 1fr auto; gap: 24px; padding: 20px var(--gutter) 32px; background: var(--bg); opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s; }
.mnav.is-open { opacity: 1; visibility: visible; }
.mnav__head { display: flex; align-items: center; justify-content: space-between; }
.mnav__links { display: grid; align-content: start; gap: 2px; margin: 0; padding: 0; list-style: none; }
.mnav__links a { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 4px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: calc(1.375rem * var(--ts)); font-weight: 400; text-decoration: none; }
.mnav__foot { display: grid; gap: 14px; }

/* ---------- 8. Forms ---------- */
.form { display: grid; gap: 18px; }
.form__row { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.field { display: grid; gap: 8px; }
.field label, .field__label { font-size: var(--fs-small); font-weight: 600; color: var(--ink); }
.field__hint { font-size: var(--fs-xs); color: var(--ink-muted); }
.input, .textarea, .cselect__trigger {
  width: 100%; min-height: 52px; padding: 13px 16px;
  font: 400 var(--fs-body)/1.4 var(--font); color: var(--ink);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius-md);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.textarea { min-height: 140px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--ink-muted); opacity: .85; }
.input:hover, .textarea:hover, .cselect__trigger:hover { border-color: var(--ink-muted); }
.input:focus, .textarea:focus, .cselect__trigger:focus-visible, .input.is-focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); border-radius: var(--radius-md); }
.field.is-invalid .input, .field.is-invalid .textarea, .cselect.is-invalid .cselect__trigger { border-color: var(--error); box-shadow: 0 0 0 3px color-mix(in srgb, var(--error) 18%, transparent); }
.field__err { display: flex; align-items: center; gap: 8px; font-size: var(--fs-xs); font-weight: 600; color: var(--error); }
.field__err::before { content: '!'; display: inline-grid; place-items: center; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--error); color: var(--bg); font: 700 12px/1 var(--font); }
.field__req { margin-left: 2px; color: var(--accent); font-weight: 700; }
.input:disabled { background: var(--surface); color: var(--ink-muted); cursor: not-allowed; }
.check { display: flex; align-items: flex-start; gap: 12px; font-size: var(--fs-small); color: var(--ink-muted); }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.field--check .check { color: var(--ink); font-size: var(--fs-small); line-height: 1.5; cursor: pointer; }
.field--check .check a { color: var(--link); }
.field.is-invalid .check input { outline: 2px solid var(--error); outline-offset: 2px; }
.cta-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Form card: a raised panel that frames a form */
.form-card { display: grid; gap: 22px; padding: clamp(22px, 3vw, 40px); background: var(--bg); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius-xl); box-shadow: var(--shadow-md); }
.form-card__head { display: grid; gap: 6px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.form-card__head h3 { font-size: var(--fs-h4); }
.form-card__head p { font-size: var(--fs-small); color: var(--ink-muted); }
.form-card__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.form-card__foot .btn--primary { min-width: 200px; }
/* Field polish, on every form (site pages and boards) */
.field label, .field__label { letter-spacing: .01em; }
.input:not(:disabled):not(:focus):not(.is-focus), .cselect__trigger { background: color-mix(in srgb, var(--surface) 55%, var(--bg)); }
.cselect.is-open .cselect__trigger, .cselect__trigger:focus-visible { background: var(--bg); }
.field--check { padding: 16px 18px; border-radius: var(--radius-md); background: var(--surface); }
.form > .btn--primary[type="submit"], .form__fields > .btn--primary[type="submit"] { justify-self: start; min-width: 200px; }
.form-status { min-height: 1.5em; font-size: var(--fs-small); font-weight: 600; }
.form-status.is-err { color: var(--error); }
.cform__done { display: none; padding: 24px; border-radius: var(--radius-lg); background: var(--accent-soft); color: var(--ink); }
.is-sent .cform__done { display: block; }
.is-sent .form__fields { display: none; }

/* Custom dropdown (house style: never a raw native select) */
.cselect { position: relative; }
.cselect__trigger { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-right: 52px; text-align: left; cursor: pointer; color: var(--ink-muted); -webkit-appearance: none; appearance: none; }
.cselect.is-filled .cselect__trigger { color: var(--ink); }
.cselect__chev { position: absolute; right: 20px; top: 50%; width: 14px; height: 14px; margin-top: -7px; color: var(--ink); pointer-events: none; transition: transform .2s var(--ease); }
.cselect.is-open .cselect__chev { transform: rotate(180deg); }
.cselect__native { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.cmenu {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px);
  margin: 0; padding: 6px; list-style: none; max-height: 300px; overflow: auto;
  background: var(--bg); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lift);
  opacity: 0; transform: translateY(-4px); transition: opacity .16s ease, transform .16s ease;
}
.cselect.is-open .cmenu { opacity: 1; transform: none; }
.cmenu__opt { padding: 11px 14px; border-radius: 10px; font-size: var(--fs-body); color: var(--ink); cursor: pointer; }
.cmenu__opt.is-active, .cmenu__opt:hover { background: var(--accent-soft); color: var(--accent); }
.cmenu__opt[aria-selected="true"] { font-weight: 700; color: var(--accent); }

/* ---------- 9. Cards ---------- */
.card { display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s ease; }
.card--link { color: inherit; text-decoration: none; }
.card--link:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: transparent; color: inherit; }
.card--link:focus-visible { box-shadow: var(--focus-ring); border-radius: var(--radius-lg); }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card--link:hover .card__media img { transform: scale(1.04); }
.card__body { display: grid; gap: 10px; align-content: start; flex: 1; padding: 22px 24px 26px; }
.card__body .link-arrow { margin-top: 6px; color: var(--accent); }
.card__meta { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: var(--fs-xs); font-weight: 600; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .08em; }
.card--plain { padding: 28px; gap: 12px; background: var(--surface); border-color: transparent; }
.card--noimg .card__body { padding-top: 28px; }
.card--noimg .card__title em { font-style: normal; color: var(--accent); }
/* Treatment card: a richer variant of .card--link (add .card--treat) */
.card--treat { border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); }
.card--treat:focus-visible { border-radius: var(--radius-xl); }
.card--treat .card__media { position: relative; aspect-ratio: 16 / 11; }
.card--treat .card__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(13, 12, 34, .35)); pointer-events: none; }
.card--treat .card__body { display: flex; flex-direction: column; gap: 12px; padding: 24px 26px 26px; }
.card--treat .eyebrow { align-self: flex-start; padding: 5px 12px; border-radius: var(--radius-pill); background: var(--accent-soft); }
.card--treat .card__title { font-size: var(--fs-h4); transition: color .2s ease; }
.card--treat:hover .card__title { color: var(--accent); }
.card--treat .link-arrow { justify-content: space-between; width: 100%; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink); }
.card--treat .link-arrow svg { box-sizing: content-box; padding: 9px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); transition: background-color .2s ease, color .2s ease, transform .2s var(--ease); }
.card--treat:hover .link-arrow svg { background: var(--accent); color: var(--accent-ink); transform: translateX(4px); }
.card--treat::after { content: ''; flex: none; height: 4px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.card--treat:hover::after, .card--treat:focus-visible::after { transform: scaleX(1); }
.chip { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent); font-size: var(--fs-xs); font-weight: 700; }

/* Proof badges (Doctify) */
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.badges img { height: 88px; width: auto; }
[data-theme="dark"] .badges img { background: #ffffff; border-radius: var(--radius-md); padding: 6px; }

/* ---------- 10. Treatment explorer (tabs) ---------- */
.tx { display: grid; gap: 24px; }
.tx__tabs { display: flex; flex-wrap: wrap; gap: 6px; justify-self: start; max-width: 100%; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; }
.tx__tab {
  min-height: 44px; padding: 0 20px; border: 0; border-radius: var(--radius-pill);
  background: transparent; color: var(--ink-muted); font: 600 var(--fs-small)/1 var(--font); cursor: pointer;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.tx__tab:hover { color: var(--accent); background: var(--bg); }
.tx__tab[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--accent) 60%, transparent); }
.tx__tab:focus-visible { border-radius: var(--radius-pill); }
.tx__panel { display: grid; gap: clamp(24px, 4vw, 56px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); align-items: center; padding: clamp(14px, 2vw, 22px); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-md); animation: tx-in .45s var(--ease); }
.tx__media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-2); }
.tx__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.tx__panel:hover .tx__media img { transform: scale(1.03); }
.tx__copy { display: grid; gap: 16px; align-content: center; padding: clamp(4px, 1.5vw, 16px) clamp(4px, 2.5vw, 32px) clamp(8px, 1.5vw, 16px) 0; }
.tx__copy .eyebrow { display: inline-flex; align-items: center; gap: 12px; }
.tx__copy .eyebrow::before { content: ''; width: 28px; height: 2px; border-radius: 2px; background: currentColor; }
.tx__copy p { color: var(--ink-muted); }
.tx__list { display: grid; gap: 10px; margin: 4px 0 8px; padding: 0; list-style: none; }
.tx__list li { display: flex; gap: 12px; align-items: flex-start; }
.tx__list li::before { content: ''; flex: none; width: 8px; height: 8px; margin-top: .62em; border-radius: 50%; background: var(--accent); }
.tx__actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
@media (max-width: 860px) { .tx__copy { padding: 4px 6px 10px; } }
@keyframes tx-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- 11. Patient journey timeline ---------- */
.journey { display: grid; gap: 28px; }
.journey__rail { position: relative; height: 4px; border-radius: 4px; background: var(--line); }
.section--navy .journey__rail { background: rgba(255, 255, 255, .16); }
.journey__fill { position: absolute; inset: 0 auto 0 0; border-radius: 4px; background: var(--accent); transition: width .5s var(--ease); }
.section--navy .journey__fill { background: var(--on-navy-accent); }
.journey__steps { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); margin: 0; padding: 0; list-style: none; }
.journey__step {
  display: grid; gap: 8px; justify-items: start; width: 100%; min-height: 44px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: transparent; color: var(--ink-muted);
  font: 600 var(--fs-small)/1.35 var(--font); text-align: left; cursor: pointer; transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.journey__step .journey__n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid currentColor; font-size: .8125rem; font-weight: 700; }
.journey__step:hover { border-color: var(--accent); color: var(--ink); }
.journey__step.is-done { color: var(--ink); }
.journey__step.is-done .journey__n { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.journey__step.is-active { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.journey__step.is-active .journey__n { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.section--navy .journey__step { border-color: rgba(255, 255, 255, .18); color: var(--on-navy-muted); }
.section--navy .journey__step.is-done, .section--navy .journey__step.is-active { color: var(--on-navy); }
.section--navy .journey__step.is-active { background: rgba(255, 255, 255, .08); border-color: var(--on-navy-accent); }
.section--navy .journey__step.is-done .journey__n, .section--navy .journey__step.is-active .journey__n { background: var(--on-navy-accent); border-color: var(--on-navy-accent); color: var(--brand-navy); }
.journey__detail { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr) auto; align-items: start; padding: clamp(22px, 3vw, 36px); border-radius: var(--radius-xl); background: var(--surface); animation: tx-in .45s var(--ease); }
.section--navy .journey__detail { background: var(--navy-2); }
.journey__detail h3 { margin-bottom: 8px; }
.journey__nav { display: flex; gap: 8px; }
.round-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); cursor: pointer; transition: background-color .18s ease, border-color .18s ease, color .18s ease; }
.round-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.round-btn:disabled { opacity: .4; cursor: not-allowed; }
.round-btn:focus-visible { box-shadow: var(--focus-ring); border-radius: 50%; }
.section--navy .round-btn { background: transparent; border-color: rgba(255, 255, 255, .3); color: var(--on-navy); }
@media (max-width: 560px) { .journey__detail { grid-template-columns: 1fr; } }

/* ---------- 12. Reviews carousel ---------- */
.reviews { display: grid; gap: 24px; }
.reviews__viewport { overflow: hidden; border-radius: var(--radius-xl); }
.reviews__track { display: flex; transition: transform .6s var(--ease); }
.review { position: relative; overflow: hidden; flex: 0 0 100%; min-width: 0; margin: 0; display: grid; gap: 20px; align-content: start; padding: clamp(28px, 4.5vw, 56px); padding-right: clamp(28px, 10vw, 140px); background: linear-gradient(135deg, var(--accent-soft) 0%, var(--surface) 55%); border: 1px solid var(--line); border-radius: var(--radius-xl); }
.review::before { content: '\201C'; position: absolute; top: clamp(-8px, -1vw, 0px); right: clamp(16px, 3vw, 40px); font: 400 calc(clamp(7rem, 5rem + 6vw, 11rem)) / 1 Georgia, 'Times New Roman', serif; color: var(--accent); opacity: .16; pointer-events: none; }
.section--navy .review { background: linear-gradient(135deg, color-mix(in srgb, var(--on-navy-accent) 14%, var(--navy-2)) 0%, var(--navy-2) 55%); border-color: rgba(255, 255, 255, .12); }
.section--navy .review::before { color: var(--on-navy-accent); }
.review__stars { display: flex; gap: 4px; color: var(--star); }
.section--navy .review__stars { color: #f2b35b; }
.review__stars svg { width: 20px; height: 20px; }
.review__quote { margin: 0; font-size: calc(clamp(1.25rem, 1.05rem + .8vw, 1.625rem) * var(--ts)); font-weight: 300; line-height: 1.5; color: var(--ink); }
.section--navy .review__quote { color: var(--on-navy); }
.review__who { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; padding-top: 18px; border-top: 1px solid var(--line); font-size: var(--fs-small); color: var(--ink-muted); }
.review__who strong { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.review__who strong::before { content: '\2713'; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ok); color: #ffffff; font-size: 12px; font-weight: 700; }
.section--navy .review__who { border-top-color: rgba(255, 255, 255, .14); }
.section--navy .review__who { color: var(--on-navy-muted); }
.section--navy .review__who strong { color: var(--on-navy); }
.reviews__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.reviews__dots { display: flex; gap: 4px; }
.reviews__dot { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.reviews__dot::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); transition: width .25s var(--ease), background-color .25s ease; }
.reviews__dot[aria-current="true"]::before { width: 28px; border-radius: 6px; background: var(--accent); }
.section--navy .reviews__dot::before { background: rgba(255, 255, 255, .3); }
.section--navy .reviews__dot[aria-current="true"]::before { background: var(--on-navy-accent); }
.reviews__nav { display: flex; align-items: center; gap: 10px; font-size: var(--fs-small); font-weight: 600; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.reviews__nav span { margin-right: 6px; }
.reviews .badges { padding-top: 20px; border-top: 1px solid var(--line); }

/* ---------- 13. Animated stats ---------- */
.stats { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.stat {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; gap: 12px; align-content: start; padding: 30px 28px 32px;
  border-radius: var(--radius-xl); color: #ffffff;
  background: linear-gradient(150deg, var(--brand-navy) 0%, color-mix(in srgb, var(--brand-navy) 72%, var(--brand-blue)) 100%);
  box-shadow: var(--shadow-md); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.stat:nth-child(even) { background: linear-gradient(150deg, var(--brand-blue) 0%, color-mix(in srgb, var(--brand-blue) 62%, var(--brand-navy)) 100%); }
/* iris rings: a quiet eye motif in the corner */
.stat::before { content: ''; position: absolute; z-index: -1; right: -46px; top: -46px; width: 150px; height: 150px; border-radius: 50%; border: 22px solid rgba(255, 255, 255, .08); box-shadow: 0 0 0 26px rgba(255, 255, 255, .04); }
.stat::after { content: ''; order: -1; width: 40px; height: 4px; border-radius: 4px; background: #7cc3ef; }
.stat:nth-child(even)::after { background: #ffffff; }
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.stat__num { font-size: calc(clamp(2.75rem, 2rem + 2.6vw, 4rem) * var(--ts)); font-weight: 700; line-height: 1; letter-spacing: -.03em; color: #ffffff; font-variant-numeric: tabular-nums; }
.stat__label { font-size: var(--fs-small); font-weight: 600; line-height: 1.45; color: rgba(255, 255, 255, .82); }
.section--navy .stat { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); box-shadow: none; }
.section--navy .stat__num { color: var(--on-navy-accent); }
.section--navy .stat__label { color: var(--on-navy-muted); }

/* ---------- 14. Footer ---------- */
.footer { background: var(--navy); color: var(--on-navy-muted); padding: clamp(56px, 7vw, 88px) 0 28px; font-size: var(--fs-small); border-top: 2px solid var(--on-navy-accent); }
.footer a { color: var(--on-navy); text-decoration: none; }
.footer a:hover { color: var(--on-navy-accent); text-decoration: underline; }
.footer__grid { display: grid; gap: 36px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.footer__brand { display: grid; gap: 16px; align-content: start; }
.footer__brand img { width: 160px; }
.footer h2 { font-size: var(--fs-h6); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--on-navy-accent); margin-bottom: 14px; }
.footer__list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.footer__list a { display: inline-flex; align-items: center; min-height: 32px; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .24); }
.footer__social a:hover { border-color: var(--on-navy-accent); }
.footer__legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 24px; }
.footer__legal-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; list-style: none; }
.footer__legal-links a, .footer__legal-links button { display: inline-flex; align-items: center; min-height: 44px; }
.footer__legal-links button { padding: 0; border: 0; background: none; color: var(--on-navy); font: inherit; cursor: pointer; }
.footer__legal-links button:hover { color: var(--on-navy-accent); text-decoration: underline; }
.footer__credit { margin-top: 18px; text-align: center; font-size: var(--fs-xs); color: var(--on-navy-muted); }
.footer__credit a { color: var(--on-navy-muted); text-decoration: underline; }
.footer__credit a:hover { color: #ffffff; }

/* ---------- 15. Motion: soft scroll reveal (behind prefers-reduced-motion) ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }
[data-motion="off"] .reveal { opacity: 1; transform: none; transition: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- 15b. Soft scroll animation on the homepages (Option A .oa, Option B .ob) ----------
   CSS scroll-driven: each block rises and fades in as it enters the viewport. Uses the
   translate/scale properties (not transform) so hover lifts still work. Browsers without
   animation-timeline simply show everything at once; off with reduced motion or the motion toggle. */
@keyframes soft-rise { from { opacity: 0; translate: 0 32px; } to { opacity: 1; translate: 0 0; } }
@keyframes soft-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes soft-zoom { from { scale: 1.08; } to { scale: 1; } }
@media (prefers-reduced-motion: no-preference) {
  /* Hero: plays once on load */
  :is(.oa, .ob)[data-motion="on"] :is(.oa-hero__copy, .ob-hero__copy) > * { animation: soft-rise .9s var(--ease) both; }
  :is(.oa, .ob)[data-motion="on"] :is(.oa-hero__copy, .ob-hero__copy) > :nth-child(2) { animation-delay: .12s; }
  :is(.oa, .ob)[data-motion="on"] :is(.oa-hero__copy, .ob-hero__copy) > :nth-child(3) { animation-delay: .24s; }
  :is(.oa, .ob)[data-motion="on"] :is(.oa-hero__copy, .ob-hero__copy) > :nth-child(n+4) { animation-delay: .36s; }
  .oa[data-motion="on"] .oa-hero__img { animation: soft-zoom 6s cubic-bezier(.2, .6, .2, 1) both; }
  .ob[data-motion="on"] .ob-hero__media { animation: soft-fade 1.1s .2s ease both; }

  @supports (animation-timeline: view()) {
    :is(.oa, .ob)[data-motion="on"] :is(
      .section__head, .oa-intro p, .oa-rating, .oa-badge, .ob-proof__item,
      .statement-band p, .tx, .card, .stat, .journey, .reviews,
      .oa-band__copy, .ob-about__img, .ob-about__copy, .oa-head-row,
      .oa-cta__copy, .oa-cta__form, .ob-cta__copy, .ob-cta__form, .footer__grid > *
    ) {
      animation: soft-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 25%;
    }
    /* gentle stagger for items in a row */
    :is(.oa, .ob)[data-motion="on"] :is(.card, .stat, .oa-badge, .ob-proof__item, .footer__grid > *):nth-child(2) { animation-range: entry 6% cover 31%; }
    :is(.oa, .ob)[data-motion="on"] :is(.card, .stat, .oa-badge, .ob-proof__item, .footer__grid > *):nth-child(3) { animation-range: entry 12% cover 37%; }
    :is(.oa, .ob)[data-motion="on"] :is(.card, .stat, .footer__grid > *):nth-child(n+4) { animation-range: entry 18% cover 43%; }
    /* statement highlight brightens in after the line */
    :is(.oa, .ob)[data-motion="on"] .statement-band em { animation: soft-fade linear both; animation-timeline: view(); animation-range: entry 30% cover 45%; }
  }
}

/* ---------- 16. Cookie settings (opt-out, no banner): mapping for the kit block below ---------- */
.cookie { --ink: #0d0c22; --paper: #f3f4fa; --accent: #5bb0e6; --accent-ink: #0d0c22; }

/* ==========================================================================
   COOKIE SETTINGS (OPT-OUT, no banner): modal only
   2xN reference kit 1.40. Pairs with
   scripts/cookie-consent.js (the kit default). Copy this whole block to the end of the
   project's css/styles.css instead of the banner COOKIE CONSENT block.

   Re-skin: map these design-system variables (or define them):
     --ink (panel background), --paper (panel text), --accent, --accent-ink,
     --font-display, --radius-lg, --ease, --speed
   and adjust the --cookie-* colour hooks on .cookie below. The panel stays
   dark in both themes so it reads as chrome rather than page content.
   ========================================================================== */
.cookie {
  --cookie-muted: #C9C6BE;
  --cookie-dim: #A8A49B;
  --cookie-accent-hover: #94A3B8;
  --cookie-border: rgba(100, 116, 139, .28);
  --cookie-backdrop: rgba(20, 20, 20, .6);
  --cookie-line: rgba(251, 250, 247, .12);
  --cookie-line-strong: rgba(251, 250, 247, .22);
  --cookie-track: rgba(251, 250, 247, .14);
  position: fixed; inset: 0; z-index: 999;
  display: flex; align-items: flex-end; justify-content: flex-start;
  padding: clamp(16px, 4vw, 32px);
  pointer-events: none;
}
.cookie[hidden] { display: none; }
.cookie--modal { align-items: center; justify-content: center; }

.cookie__backdrop {
  position: fixed; inset: 0;
  background: var(--cookie-backdrop);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  animation: cookieFadeIn .26s ease both;
  pointer-events: auto;
}
.cookie__backdrop[hidden] { display: none; }
@keyframes cookieFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes cookieFadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes cookiePanelIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes cookiePanelOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(10px); } }

.cookie__panel {
  position: relative; pointer-events: auto;
  width: 100%; max-width: 420px;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--cookie-border);
  box-shadow: 0 28px 70px -24px rgba(0, 0, 0, .7);
  border-radius: var(--radius-lg);
  padding: 26px 26px 24px;
}
.cookie--modal .cookie__panel { max-width: 540px; }
.cookie.is-in .cookie__panel { animation: cookiePanelIn .34s var(--ease) forwards; }
.cookie.is-out .cookie__panel { animation: cookiePanelOut .22s ease forwards; }
.cookie.is-out .cookie__backdrop { animation: cookieFadeOut .22s ease both; }

.cookie__view[hidden] { display: none !important; }


.cookie__title {
  font-family: var(--font-display); font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase; letter-spacing: .1em;
  font-size: 13px; margin: 0 0 8px; color: var(--paper);
}
.cookie__copy { font-size: 14px; line-height: 1.6; color: var(--cookie-muted); margin: 0; text-wrap: pretty; }
.cookie__copy a { color: var(--paper); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.cookie__copy a:hover { color: var(--accent); }

.cookie__actions {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin-top: 20px;
}
.cookie__btn {
  font-family: var(--font-display); font-size: 14px; font-weight: 700;
  min-height: 44px; padding: 12px 20px; border-radius: 0; cursor: pointer;
  border: 1px solid transparent; transition: background var(--speed) var(--ease), color var(--speed) var(--ease), border-color var(--speed) var(--ease);
}
.cookie__btn--primary { background: var(--accent); color: var(--accent-ink); min-width: 120px; }
.cookie__btn--primary:hover { background: var(--cookie-accent-hover); }

.cookie__prefs-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 6px; }
.cookie__close {
  position: relative; width: 34px; height: 34px; flex: none;
  background: transparent; border: 1px solid var(--cookie-line-strong); cursor: pointer;
  transition: border-color var(--speed) var(--ease);
}
.cookie__close:hover { border-color: var(--accent); }
.cookie__close span { position: absolute; top: 50%; left: 50%; width: 13px; height: 1.5px; background: var(--cookie-muted); }
.cookie__close span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
.cookie__close span:last-child { transform: translate(-50%, -50%) rotate(-45deg); }

.cookie__cats { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; }
.cookie__cat {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 16px 0; border-top: 1px solid var(--cookie-line);
}
.cookie__cat:first-child { border-top: none; }
.cookie__cat-text { min-width: 0; }
.cookie__cat-name { display: block; font-size: 15px; font-weight: 700; color: var(--paper); margin-bottom: 4px; }
.cookie__cat-desc { display: block; font-size: 13px; line-height: 1.55; color: var(--cookie-dim); text-wrap: pretty; }
.cookie__always {
  flex: none; font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--accent);
  padding: 4px 9px; margin-top: 2px;
}

.cookie__switch { position: relative; flex: none; width: 46px; height: 26px; cursor: pointer; }
.cookie__switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cookie__track {
  position: absolute; inset: 0; border-radius: 999px;
  background: var(--cookie-track); border: 1px solid var(--cookie-line-strong);
  transition: background .22s ease, border-color .22s ease;
}
.cookie__track::after {
  content: ""; position: absolute; top: 50%; left: 3px;
  width: 18px; height: 18px; border-radius: 50%; background: var(--cookie-muted);
  transform: translateY(-50%);
  transition: transform .22s var(--ease), background .22s ease;
}
.cookie__switch input:checked ~ .cookie__track { background: var(--accent); border-color: var(--accent); }
.cookie__switch input:checked ~ .cookie__track::after { transform: translateY(-50%) translateX(20px); background: var(--ink); }
.cookie__switch input:focus-visible ~ .cookie__track { outline: 2px solid var(--accent); outline-offset: 2px; }

.cookie__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cookie__actions--prefs { margin-top: 24px; }

@media (max-width: 540px) {
  .cookie { padding: 14px; }
  .cookie__panel { max-width: none; }
  .cookie__actions { flex-direction: column-reverse; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie__panel, .cookie.is-in .cookie__panel, .cookie__backdrop,
  .cookie__track, .cookie__track::after { animation: none; transition: none; }
}
