/* ==========================================================================
   Professor Jonathan Ramsay: site design system (css/styles.css)
   Single source of truth for the site pages, design-system.html, the
   Design system boards and the internal tools. Light only on the site.
   Brand taken from the current site (jonathanramsay.co.uk): charcoal,
   pale blue, aqua and off-white, Open Sans.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand */
  --ink: #0D0C22;            /* near-black navy: headings, body text */
  --charcoal: #40404D;       /* dark bands, primary buttons */
  --charcoal-deep: #2F2F3A;  /* hover on charcoal */
  --blue: #AACDD8;           /* pale blue: brand accent fills */
  --blue-soft: #DCEBF0;      /* tint of the pale blue */
  --aqua: #ABD8DD;           /* aqua: secondary accent fills */
  --paper: #F7F9FD;          /* page background */
  --white: #FFFFFF;
  --grey: #6E6D7A;           /* brand grey, decorative use only */

  /* Roles (the tools read these six) */
  --bg: var(--paper);
  --surface: var(--white);
  --ink-muted: #5E5D6B;      /* 6.1:1 on --bg */
  --line: #DCDEE1;
  --accent: var(--blue);     /* fills only: 11.4:1 with --ink text on it */
  --accent-ink: var(--ink);
  --accent-hover: #93BFCC;
  --link: #2E6475;           /* deep blue for text links: 6.2:1 on --bg */
  --link-hover: #1F4855;
  --blue-text: #4E8AA0;      /* accent words in large headings on light grounds: 3.6:1, 24px+ only */
  --on-dark: #FFFFFF;
  --on-dark-muted: #C9C8D2;  /* 6.2:1 on --charcoal */
  --focus-ring: 0 0 0 3px var(--paper), 0 0 0 5px var(--link);

  /* Type */
  --font: 'Open Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head: var(--font);
  --font-display: var(--font-head);
  --body-weight: 400;
  --fs-h1: clamp(2.25rem, 1.4rem + 3.6vw, 3.5rem);    /* 56px */
  --fs-h2: clamp(1.875rem, 1.3rem + 2.4vw, 2.625rem); /* 42px */
  --fs-h3: clamp(1.5rem, 1.2rem + 1.4vw, 2rem);       /* 32px */
  --fs-h4: clamp(1.3rem, 1.15rem + .7vw, 1.625rem);   /* 26px */
  --fs-h5: 1.25rem;                                    /* 20px */
  --fs-h6: 1.0625rem;                                  /* 17px */
  --fs-body: 1rem;                                     /* 16px */
  --fs-lead: 1.1875rem;                                /* 19px */
  --fs-small: .875rem;                                 /* 14px */
  --fs-eyebrow: .8125rem;                              /* 13px */

  /* Space, radii, shadows, motion */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
  --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  --gutter: clamp(20px, 5vw, 56px);
  --container: 1200px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(13, 12, 34, .06), 0 1px 3px rgba(13, 12, 34, .08);
  --shadow-md: 0 6px 20px rgba(13, 12, 34, .08);
  --shadow-lg: 0 18px 48px rgba(13, 12, 34, .14);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --speed: .25s;
  color-scheme: light;
}

/* Dark tokens: internal tools only (dashboard and Site Config open dark).
   The public site is light only and never sets data-theme="dark". */
[data-theme="dark"] {
  --bg: #17161F;
  --surface: #22212C;
  --ink: #F7F9FD;
  --ink-muted: #B9B8C4;
  --line: #3A3946;
  --accent: #AACDD8;
  --accent-ink: #0D0C22;
  --accent-hover: #C3DCE4;
  --link: #AACDD8;
  --link-hover: #DCEBF0;
  --focus-ring: 0 0 0 3px #17161F, 0 0 0 5px #AACDD8;
  color-scheme: dark;
}

/* ---------- 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); font-weight: var(--body-weight);
  line-height: 1.65; -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); color: var(--ink); margin: 0 0 .5em; line-height: 1.15; text-wrap: balance; }
h1 { font-size: var(--fs-h1); font-weight: 600; letter-spacing: -.01em; }
h2 { font-size: var(--fs-h2); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: var(--fs-h3); font-weight: 600; }
h4 { font-size: var(--fs-h4); font-weight: 500; }
h5 { font-size: var(--fs-h5); font-weight: 500; }
h6 { font-size: var(--fs-h6); font-weight: 500; }
p { margin: 0 0 1em; text-wrap: pretty; }
.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--ink-muted); }
.small { font-size: var(--fs-small); }
.eyebrow { display: inline-block; font-size: var(--fs-eyebrow); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--link); margin: 0 0 var(--s3); }
.title-caps { text-transform: uppercase; letter-spacing: .06em; }
.hl { color: var(--blue-text); }            /* two-tone headings, as on the current site: one word in blue */
.section--dark .hl, .hero .hl { color: var(--blue); }
a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color var(--speed) var(--ease); }
a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }
.visually-hidden { position: absolute !important; 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: var(--s4); top: -60px; background: var(--charcoal); color: #fff; padding: var(--s2) var(--s4); border-radius: var(--radius-sm); z-index: 1000; }
.skip-link:focus { top: var(--s4); color: #fff; }

/* ---------- 3. Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, var(--s10)); }
.section--white { background: var(--white); }
.section--dark { background: var(--charcoal); color: var(--on-dark); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4, .section--dark h5, .section--dark h6 { color: var(--on-dark); }
.section--dark p, .section--dark .lead { color: var(--on-dark-muted); }
.section--dark .eyebrow { color: var(--blue); }
.section--dark a:not(.btn) { color: var(--blue); }
.section--dark a:not(.btn):hover { color: #fff; }
.section--blue { background: var(--blue); }
.section--aqua { background: var(--aqua); }
.section--blue .eyebrow, .section--aqua .eyebrow { color: var(--ink); }
.section-head { max-width: 760px; margin-bottom: var(--s7); }
.grid { display: grid; gap: var(--s5); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.split { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.stack { display: flex; flex-direction: column; gap: var(--s4); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 26px;
  font-family: var(--font); font-size: .875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  border-radius: var(--radius-pill); border: 2px solid transparent; text-decoration: none; cursor: pointer;
  transition: background-color var(--speed) var(--ease), color var(--speed) var(--ease), border-color var(--speed) var(--ease), transform var(--speed) var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: none; }
.btn:focus-visible { box-shadow: var(--focus-ring); }
.btn--primary { background: var(--charcoal); color: #fff; }
.btn--primary:hover { background: var(--charcoal-deep); color: #fff; }
.btn--accent { background: var(--blue); color: var(--ink); }
.btn--accent:hover { background: var(--accent-hover); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--charcoal); }
.btn--ghost:hover { background: var(--charcoal); color: #fff; }
.btn--on-dark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn--on-dark:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; transform: none; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--link); min-height: 44px; }
.text-link:hover { gap: 12px; text-decoration: none; }

/* ---------- 5. Header, navigation, mobile menu ---------- */
.wordmark { display: inline-flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1; }
.wordmark:hover { color: var(--ink); text-decoration: none; }
/* Wordmark: "Jonathan" light, "Ramsay" bold in Heading blue, over a tracked tag line with a fine rule. Pair with the JRMF mark (.lockup). */
.wordmark__name { font-family: var(--font); font-size: 1.5rem; font-weight: 300; letter-spacing: -.01em; line-height: 1; text-transform: none; white-space: nowrap; }
.wordmark__name b { font-weight: 700; color: var(--blue-text); letter-spacing: -.015em; }
.wordmark__tag { display: flex; align-items: center; gap: 8px; font-size: .625rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-muted); margin-top: 8px; }
.wordmark__tag::before { flex: none; }
.wordmark__tag::before { content: ''; width: 18px; height: 1px; background: currentColor; opacity: .6; }
.site-footer .wordmark__name b, .section--dark .wordmark__name b, .wordmark--light .wordmark__name b { color: var(--blue); }
.wordmark--light { color: #fff; }
.wordmark--light .wordmark__tag { color: var(--on-dark-muted); }
.lockup { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.lockup:hover { text-decoration: none; color: var(--ink); }
.lockup img { width: 48px; height: auto; flex: none; }
.lockup__divider { width: 1px; align-self: stretch; background: var(--line); }
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(247, 249, 253, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); min-height: 76px; }
.nav { display: flex; align-items: center; gap: var(--s1); }
.nav__link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); text-decoration: none; border-radius: var(--radius-sm); background: none; border: 0; font-family: var(--font); cursor: pointer; }
.nav__link:hover { color: var(--link); text-decoration: none; }
.nav__link[aria-current="page"] { color: var(--link); box-shadow: inset 0 -2px 0 var(--blue); }
.nav__item { position: relative; }
.nav__sub { position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px; margin: 0; padding: 6px; list-style: none; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-md); }
.nav__sub[hidden] { display: none; }
.nav__sub a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; font-size: .9375rem; }
.nav__sub a:hover { background: var(--blue-soft); color: var(--ink); }
.nav__cta { margin-left: var(--s3); }
.nav__toggle { display: none; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); color: var(--ink); cursor: pointer; }
.mobile-menu { border-top: 1px solid var(--line); background: var(--white); }
.mobile-menu[hidden] { display: none; }
.mobile-menu__nav { display: flex; flex-direction: column; padding: var(--s3) var(--gutter) var(--s5); }
.mobile-menu__nav a { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: .875rem; }
.mobile-menu__nav a.is-sub { padding-left: var(--s4); font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 1rem; }
.mobile-menu__nav .btn { margin-top: var(--s5); }
@media (max-width: 1024px) { .nav { display: none; } .nav__toggle { display: inline-flex; } }

/* ---------- 6. Hero ---------- */
.hero { position: relative; background: var(--charcoal); color: #fff; overflow: hidden; }
.hero__inner { display: grid; gap: var(--s7); align-items: center; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); padding-block: clamp(64px, 9vw, 120px); }
.hero h1 { color: #fff; text-transform: uppercase; letter-spacing: .04em; }
.hero__strap { font-size: .8125rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--blue); margin-bottom: var(--s5); }
.hero p { color: var(--on-dark-muted); }
.hero__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-sm); }

/* ---------- 7. Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--s6); display: flex; flex-direction: column; gap: var(--s3); box-shadow: var(--shadow-sm); transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease); }
.card h3, .card h4 { margin: 0; }
.card p { margin: 0; color: var(--ink-muted); }
.card .text-link { margin-top: auto; }
a.card { text-decoration: none; color: inherit; }
a.card:hover, .card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card__icon { width: 56px; height: 56px; border-radius: 16px; background: var(--blue-soft); color: var(--ink); display: grid; place-items: center; transition: background-color .35s var(--ease), color .35s var(--ease), transform .35s var(--ease); }
/* Feature card (specialist areas): soft white card that turns charcoal on hover, with a growing pale blue glow and a round arrow */
.card--feature { position: relative; overflow: hidden; isolation: isolate; border: 1px solid var(--line); border-radius: 20px; padding: 32px 32px 28px; gap: var(--s4); transition: background-color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease); }
.card--feature::after { content: ''; position: absolute; z-index: -1; right: -70px; bottom: -70px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(170, 205, 216, .55), transparent 70%); transition: transform .6s var(--ease), opacity .4s; opacity: .7; }
.card--feature h3 { transition: color .35s var(--ease); }
.card--feature p { transition: color .35s var(--ease); }
.card--feature .text-link { width: 48px; height: 48px; min-height: 48px; margin-top: auto; align-self: flex-end; justify-content: center; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--ink); font-size: 0; letter-spacing: 0; gap: 0; transition: background-color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease); }
.card--feature .text-link svg { width: 18px; height: 18px; }
a.card--feature:hover, .card--feature.card--hover:hover { background: var(--charcoal); border-color: var(--charcoal); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
a.card--feature:hover h3 { color: #fff; }
a.card--feature:hover p { color: var(--on-dark-muted); }
a.card--feature:hover .card__icon { background: var(--blue); transform: rotate(-6deg); }
a.card--feature:hover::after { transform: scale(1.8); opacity: .45; }
a.card--feature:hover .text-link { background: var(--blue); border-color: var(--blue); transform: rotate(-45deg); }
a.card--feature:focus-visible { box-shadow: var(--focus-ring); }
/* Dark card: charcoal with a pale blue glow and a round arrow, matching the feature card's hover */
.card--dark { position: relative; overflow: hidden; isolation: isolate; background: var(--charcoal); border-color: var(--charcoal); border-radius: 20px; padding: 32px; color: #fff; box-shadow: var(--shadow-md); }
.card--dark::after { content: ''; position: absolute; z-index: -1; right: -80px; top: -80px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(170, 205, 216, .35), transparent 70%); transition: transform .6s var(--ease); }
.card--dark h3, .card--dark h4 { color: #fff; }
.card--dark p { color: var(--on-dark-muted); }
.card--dark .card__arrow { margin-top: auto; align-self: flex-end; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: var(--ink); transition: transform .35s var(--ease); }
a.card--dark:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
a.card--dark:hover::after { transform: scale(1.6); }
a.card--dark:hover .card__arrow { transform: rotate(-45deg); }
/* Media card: picture with a gradient, a type badge and a play or listen button over it; the picture zooms gently on hover */
.card--media { padding: 0; overflow: hidden; border-radius: 20px; gap: 0; }
.card--media .card__body { padding: var(--s5) var(--s5) var(--s5); display: flex; flex-direction: column; gap: var(--s3); flex: 1; }
.card--media .card__thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, var(--blue-soft), var(--blue)); display: grid; place-items: center; color: var(--ink); }
.card--media .card__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card--media .card__thumb img.card__logo { position: static; width: 84px; height: auto; object-fit: contain; opacity: .9; }
.card--media .card__thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 12, 34, 0) 45%, rgba(13, 12, 34, .55)); pointer-events: none; }
.card__badge { position: absolute; z-index: 1; top: 14px; left: 14px; padding: 5px 12px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, .92); color: var(--ink); font-size: .6875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; backdrop-filter: blur(6px); }
.card__play { position: absolute; z-index: 1; right: 14px; bottom: 14px; width: 48px; height: 48px; border-radius: 50%; background: var(--blue); color: var(--ink); display: grid; place-items: center; box-shadow: 0 8px 20px rgba(13, 12, 34, .3); transition: transform .35s var(--ease); }
.card--media h3, .card--media h4 { font-size: 1.1875rem; line-height: 1.3; }
a.card--media:hover .card__thumb img:not(.card__logo) { transform: scale(1.06); }
a.card--media:hover .card__play { transform: scale(1.1); }
a.card--media:hover h3, a.card--media:hover h4 { color: var(--link-hover); }
.card__tag { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--link); }
/* Clinic card: photo with a gradient and a location badge, name over the photo's foot, clinic days as a small table */
.card--clinic { padding: 0; overflow: hidden; border-radius: 20px; gap: 0; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.card--clinic .card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--blue-soft); }
.card--clinic .card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card--clinic .card__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 12, 34, 0) 40%, rgba(13, 12, 34, .75)); }
.card--clinic .card__media .card__badge { display: inline-flex; align-items: center; gap: 6px; }
.card--clinic .card__media h3, .card--clinic .card__media h4 { position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 16px; margin: 0; color: #fff; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); font-weight: 600; }
.card--clinic .card__body { padding: var(--s5); display: flex; flex-direction: column; gap: var(--s4); flex: 1; }
.card--clinic .card__addr { display: flex; gap: 8px; align-items: flex-start; color: var(--ink); margin: 0; }
.card--clinic .card__addr svg { flex: none; margin-top: 3px; color: var(--link); }
.card__meta { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.card__meta li { display: flex; justify-content: space-between; gap: var(--s4); padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; color: var(--ink-muted); }
.card__meta li span:first-child { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); padding-top: 2px; }
.card__meta li span:last-child { text-align: right; }
.card--clinic .btn { align-self: flex-start; margin-top: auto; }
.card--clinic:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card--clinic:hover .card__media img { transform: scale(1.05); }
/* Stats card: figures with a pale blue accent mark, divided by fine rules */
.card--stats { position: relative; overflow: hidden; isolation: isolate; border-radius: 20px; padding: 32px; gap: 0; justify-content: center; }
.card--stats::after { content: ''; position: absolute; z-index: -1; left: -60px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(170, 205, 216, .5), transparent 70%); }
.card--stats .stat { padding: var(--s5) 0; border-bottom: 1px solid var(--line); }
.card--stats .stat:first-child { padding-top: 0; }
.card--stats .stat:last-child { border-bottom: 0; padding-bottom: 0; }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat__num { font-family: var(--font-head); font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem); font-weight: 700; line-height: 1; color: var(--ink); letter-spacing: -.02em; }
.stat__num em { font-style: normal; color: var(--blue-text); }
.stat__label { font-size: var(--fs-small); color: var(--ink-muted); }

/* ---------- 8. Testimonial spotlight (dark sections only) ---------- */
.tspot {
  position: relative; max-width: 920px; margin: 28px auto 0; text-align: center;
  padding: clamp(48px, 6vw, 72px) clamp(24px, 6vw, 80px) clamp(32px, 4vw, 44px);
  background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02) 55%);
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 24px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.tspot__mark {
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%);
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blue); color: var(--ink); font-family: Georgia, 'Times New Roman', serif;
  font-size: 44px; line-height: 1; padding-top: 18px; box-shadow: 0 10px 24px rgba(0, 0, 0, .25), 0 0 0 6px rgba(170, 205, 216, .16);
}
.tspot__quote {
  font-family: var(--font-head); font-size: clamp(1.1875rem, 1rem + .9vw, 1.5rem); line-height: 1.65;
  font-weight: 400; color: #fff; letter-spacing: -.005em; margin: 0 auto var(--s4); max-width: 46ch; text-wrap: pretty;
  animation: jr-quote .5s var(--ease);
}
@keyframes jr-quote { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.tspot__quote.is-clamped { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.tspot__more { background: none; border: 0; color: var(--blue); font: inherit; font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; min-height: 44px; padding: 0 8px; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: rgba(170, 205, 216, .45); }
.tspot__more:hover { color: #fff; text-decoration-color: #fff; }
.tspot__who { display: inline-flex; align-items: center; gap: 14px; margin: var(--s4) 0 0; font-size: .8125rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--on-dark-muted); }
.tspot__who::before, .tspot__who::after { content: ''; width: 28px; height: 1px; background: rgba(170, 205, 216, .6); }
.tspot__controls { display: flex; align-items: center; justify-content: center; gap: var(--s3); margin-top: var(--s6); padding-top: var(--s5); border-top: 1px solid rgba(255, 255, 255, .1); }
.tspot__arrow { width: 44px; height: 44px; border-radius: var(--radius-pill); border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .04); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background-color var(--speed) var(--ease), color var(--speed) var(--ease), border-color var(--speed) var(--ease), transform var(--speed) var(--ease); }
.tspot__arrow:hover { background: var(--blue); border-color: var(--blue); color: var(--ink); transform: translateY(-1px); }
.tspot__dots { display: flex; align-items: center; gap: 0; }
.tspot__dot { width: 30px; height: 44px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; padding: 0; }
.tspot__dot::before { content: ''; width: 8px; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .3); transition: width .35s var(--ease), background-color .35s var(--ease); }
.tspot__dot:hover::before { background: rgba(255, 255, 255, .6); }
.tspot__dot[aria-current="true"]::before { width: 24px; background: var(--blue); }
.tspot__count { font-size: .75rem; font-weight: 600; letter-spacing: .12em; color: var(--on-dark-muted); min-width: 44px; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .tspot { border-radius: 18px; } .tspot__count { display: none; } }

/* ---------- 9. FAQ accordion: numbered cards, the open one lifts and tints ---------- */
.faq { display: flex; flex-direction: column; gap: var(--s3); counter-reset: faq; }
.faq__item {
  counter-increment: faq; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); transition: background-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease), border-color var(--speed) var(--ease), transform var(--speed) var(--ease);
}
.faq__item:hover { border-color: var(--blue); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.faq__item[open] { background: linear-gradient(135deg, #FFFFFF 0%, var(--blue-soft) 100%); border-color: var(--blue); box-shadow: var(--shadow-md); transform: none; }
.faq__q {
  list-style: none; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s4);
  min-height: 72px; padding: var(--s4) var(--s5); cursor: pointer; border-radius: var(--radius-lg);
  font-family: var(--font-head); font-size: 1.125rem; font-weight: 600; line-height: 1.35; color: var(--ink);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::before {
  content: counter(faq, decimal-leading-zero); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  font-family: var(--font); font-size: .8125rem; font-weight: 700; letter-spacing: .04em; color: var(--link-hover);
  background: var(--blue-soft); transition: background-color var(--speed) var(--ease), color var(--speed) var(--ease);
}
.faq__item[open] .faq__q::before { background: var(--charcoal); color: #fff; }
.faq__q:hover { color: var(--link-hover); }
.faq__icon { flex: none; width: 36px; height: 36px; border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--white); display: grid; place-items: center; transition: transform .35s var(--ease), background-color var(--speed), border-color var(--speed); }
.faq__item[open] .faq__icon { transform: rotate(135deg); background: var(--blue); border-color: var(--blue); }
.faq__a { padding: 0 var(--s5) var(--s5) calc(var(--s5) + 40px + var(--s4)); color: var(--ink-muted); max-width: 72ch; animation: jr-faq .35s var(--ease); }
.faq__a p:last-child { margin: 0; }
@keyframes jr-faq { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) { .faq__q { gap: var(--s3); padding: var(--s3) var(--s4); font-size: 1rem; } .faq__a { padding: 0 var(--s4) var(--s4); } }

/* ---------- 10. Treatment journey: vertical steps on a rail, detail panel beside ---------- */
.journey { display: grid; gap: clamp(24px, 4vw, 48px); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 860px) { .journey { grid-template-columns: minmax(260px, 5fr) minmax(0, 7fr); } }
.jsteps { position: relative; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.jrail { position: absolute; left: 27px; top: 34px; bottom: 34px; width: 2px; background: var(--line); border-radius: 2px; pointer-events: none; }
.jrail__fill { position: absolute; left: 0; top: 0; width: 100%; background: linear-gradient(180deg, var(--blue), var(--charcoal)); border-radius: 2px; transition: height .5s var(--ease); }
.jstep {
  position: relative; z-index: 1; width: 100%; display: flex; align-items: center; gap: var(--s4); min-height: 68px; padding: 10px 16px 10px 8px;
  background: none; border: 1px solid transparent; border-radius: var(--radius-lg); cursor: pointer; text-align: left; font-family: var(--font); color: var(--ink-muted);
  transition: background-color var(--speed) var(--ease), border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease), color var(--speed) var(--ease);
}
.jstep:hover { background: var(--surface); border-color: var(--line); color: var(--ink); }
.jstep__num { flex: none; width: 40px; height: 40px; margin-left: 0; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .875rem; background: var(--paper); border: 2px solid var(--line); color: var(--ink-muted); transition: all .35s var(--ease); }
.jstep__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.jstep__eyebrow { font-size: .6875rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-muted); }
.jstep__label { font-size: 1.0625rem; font-weight: 600; color: inherit; }
.jstep.is-done .jstep__num { background: var(--blue); border-color: var(--blue); color: var(--ink); }
.jstep.is-active { background: var(--surface); border-color: var(--blue); box-shadow: var(--shadow-md); color: var(--ink); }
.jstep.is-active .jstep__num { background: var(--charcoal); border-color: var(--charcoal); color: #fff; box-shadow: 0 0 0 6px rgba(170, 205, 216, .35); }
.jstep.is-active .jstep__eyebrow { color: var(--link); }
.jdetail {
  position: relative; overflow: hidden; background: var(--charcoal); color: #fff; border-radius: 24px;
  padding: clamp(28px, 4vw, 48px); min-height: 100%; display: flex; flex-direction: column; gap: var(--s4); box-shadow: var(--shadow-lg);
}
.jdetail::after { content: ''; position: absolute; right: -80px; bottom: -80px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(170, 205, 216, .28), transparent 70%); pointer-events: none; }
.jdetail__num { font-family: var(--font-head); font-size: clamp(3.5rem, 2.8rem + 3vw, 5.5rem); line-height: .9; font-weight: 700; color: transparent; -webkit-text-stroke: 1.5px var(--blue); letter-spacing: -.02em; }
.jdetail h3 { color: #fff; margin: 0; font-size: clamp(1.5rem, 1.3rem + 1vw, 2rem); }
.jdetail p { color: var(--on-dark-muted); margin: 0; font-size: 1.0625rem; max-width: 52ch; animation: jr-quote .45s var(--ease); }
.jdetail__foot { margin-top: auto; padding-top: var(--s5); display: flex; align-items: center; justify-content: space-between; gap: var(--s4); border-top: 1px solid rgba(255, 255, 255, .12); position: relative; z-index: 1; }
.jdetail__count { font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); }
.process-nav { display: flex; gap: var(--s2); }
.process-nav button { width: 48px; height: 48px; border-radius: var(--radius-pill); border: 1px solid rgba(255, 255, 255, .3); background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; transition: background-color var(--speed), color var(--speed), border-color var(--speed); }
.process-nav button:hover { background: var(--blue); border-color: var(--blue); color: var(--ink); }
.process-nav button[disabled] { opacity: .3; pointer-events: none; }

/* ---------- 11. Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-muted); padding-block: var(--s8) var(--s5); font-size: .9375rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--blue); text-decoration: underline; }
.site-footer .wordmark { color: #fff; }
.site-footer .wordmark__tag { color: var(--on-dark-muted); }
.footer__grid { display: grid; gap: var(--s6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); padding-bottom: var(--s7); }
/* Desktop: brand and the three link columns always sit on one row */
@media (min-width: 900px) { .footer__grid { grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: var(--s5); } }
.footer__list li { overflow-wrap: anywhere; }
.footer__title { font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); margin: 0 0 var(--s4); }
.footer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s2); }
.footer__list a { display: inline-flex; min-height: 32px; align-items: center; }
.footer__legal { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); justify-content: space-between; align-items: center; border-top: 1px solid rgba(255, 255, 255, .14); padding-top: var(--s5); font-size: .875rem; }
.footer__legal ul { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); list-style: none; margin: 0; padding: 0; }
.footer__legal button { background: none; border: 0; padding: 0; color: #fff; font: inherit; cursor: pointer; min-height: 32px; }
.footer__legal button:hover { color: var(--blue); text-decoration: underline; }
.footer__credit { text-align: center; margin: var(--s5) 0 0; font-size: .8125rem; color: var(--on-dark-muted); }
.footer__credit a { text-decoration: underline; color: var(--on-dark-muted); }
.footer__credit a:hover { color: #fff; }

/* ---------- 12. Draft pill ---------- */
.draft-tag { display: inline-flex; align-items: center; vertical-align: middle; margin-left: 8px; padding: 2px 9px; border-radius: var(--radius-pill); font-family: var(--font); font-size: 11px; font-weight: 700; line-height: 1.5; letter-spacing: .12em; text-transform: uppercase; color: var(--link-hover); background: var(--blue-soft); border: 1px solid var(--blue); white-space: nowrap; }
.section--dark .draft-tag, .hero .draft-tag { color: var(--ink); background: var(--blue); border-color: var(--blue); }

/* ---------- 13. Soft scroll animation ---------- */
.reveal { transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0ms); }
/* Site pages: <html class="has-reveal">; scripts/site.js adds .is-in as each block scrolls into view. */
.has-reveal .reveal { opacity: 0; transform: translateY(18px); }
.has-reveal .reveal.is-in { opacity: 1; transform: none; }
/* Design boards (no site.js): a CSS scroll-driven version, switched by the Motion Tweak (.motion-scroll on the board root). */
@keyframes jr-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@supports (animation-timeline: view()) {
  .motion-scroll .reveal { animation: jr-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 30%; }
  .has-reveal .motion-scroll .reveal { animation: none; }
}
[data-motion="off"] .reveal { opacity: 1; transform: none; transition: none; animation: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .has-reveal .reveal { opacity: 1; transform: none; transition: none; animation: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* 14. Cookie settings modal: the kit's css/opt-out-cookie.css, copied as it is, with the --cookie-* hooks mapped to this brand.
   It reads --ink (panel), --paper (text), --accent, --accent-ink, --font-display, --radius-lg, --ease, --speed. */
.cookie { --ink: #0D0C22; --paper: #F7F9FD; --accent: #AACDD8; --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: #C9C8D2;
  --cookie-dim: #A9A8B5;
  --cookie-accent-hover: #C3DCE4;
  --cookie-border: rgba(170, 205, 216, .28);
  --cookie-backdrop: rgba(13, 12, 34, .6);
  --cookie-line: rgba(247, 249, 253, .12);
  --cookie-line-strong: rgba(247, 249, 253, .22);
  --cookie-track: rgba(247, 249, 253, .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; }
}
@media (max-width: 480px) {
  .wordmark__name { font-size: 1.25rem; }
  .wordmark__tag { white-space: normal; letter-spacing: .16em; }
  .lockup { gap: 10px; }
  .lockup img { width: 38px; }
}
.site-footer .wordmark__tag::before { display: none; }
.site-footer .wordmark__tag { letter-spacing: .16em; line-height: 1.6; }
