/* Self-hosted, SIL Open Font License: Figtree (Erik Kennedy), Source Serif 4 (Adobe). */
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("assets/fonts/figtree-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/source-serif-4-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Dr TP Chettiar. Tokens trace to brand.json (logo and practice flyer). */
:root {
  --navy: #12497F;
  --ink: #0B2B4C;
  --teal: #00717A;
  --signal: #4BD3E2;
  --blue: #0074C0;
  --paper: #F4F7F9;
  --white: #FFFFFF;

  --bg: var(--white);
  --surface: var(--paper);
  --text: var(--ink);
  --muted: #475A6D;
  --line: #D5DEE7;
  --brand: var(--navy);
  --brand-2: var(--teal);
  --cta: var(--navy);
  --cta-text: var(--white);
  --danger: #A3261B;

  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-0: clamp(1.0625rem, 1.02rem + 0.2vw, 1.1875rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.45vw, 1.5rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.9vw, 2.125rem);
  --step-3: clamp(1.875rem, 1.5rem + 1.7vw, 3rem);
  --step-4: clamp(2.25rem, 1.6rem + 3vw, 4.25rem);

  --gutter: clamp(16px, 4vw, 48px);
  --frame: 1440px;
  --measure: 68ch;
  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 20px;
  --nav-h: 76px;
  --strip-h: 40px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  overflow-x: clip;
}
body.is-locked { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 0.5em; text-wrap: balance; color: var(--ink); }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.25; }
p { margin: 0 0 1em; text-wrap: pretty; max-width: var(--measure); }
ul, ol { padding-left: 1.2em; }
li { max-width: var(--measure); }
strong { font-weight: 650; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--white); padding: 12px 18px; border-radius: var(--radius-s); }
.skip:focus { left: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.frame { width: 100%; max-width: var(--frame); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 112px); }
.section--paper { background: var(--surface); }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--muted); max-width: 60ch; }
.note { font-size: var(--step--1); color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px; border-radius: var(--radius-s);
  font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
  transition: background-color 180ms var(--ease), color 180ms var(--ease), transform 120ms var(--ease);
}
.btn:active { transform: scale(0.96); }
.btn--primary { background: var(--cta); color: var(--cta-text); }
.btn--primary:hover { background: var(--ink); color: var(--white); }
.btn--ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--ghost:hover { background: var(--navy); color: var(--white); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--signal); color: var(--ink); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Emergency strip and header */
.strip { background: var(--ink); color: #DCE7F1; font-size: var(--step--1); }
.strip .frame { display: flex; flex-wrap: wrap; gap: 4px 24px; align-items: center; justify-content: space-between; min-height: var(--strip-h); padding-block: 6px; }
.strip a { color: var(--white); font-weight: 600; text-decoration: none; }
.strip a:hover { color: var(--signal); }
.strip__emergency strong { color: var(--signal); font-weight: 600; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid transparent; transition: border-color 200ms var(--ease); }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--nav-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand__mark { height: 52px; width: auto; }
.brand__word { height: 44px; width: auto; image-rendering: -webkit-optimize-contrast; }
.nav__links { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 30px); list-style: none; margin: 0; padding: 0; }
.nav__links a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.98rem; padding: 12px 2px; border-bottom: 2px solid transparent; }
.nav__links a:hover, .nav__links a[aria-current="page"] { border-bottom-color: var(--teal); color: var(--ink); }
.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--line); background: var(--white); border-radius: var(--radius-s); color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.nav__toggle svg { width: 22px; height: 22px; }

.drawer { position: fixed; inset: 0; z-index: 60; background: var(--white); display: flex; flex-direction: column; padding: 16px var(--gutter) 32px; transform: translateX(100%); visibility: hidden; transition: transform 240ms var(--ease), visibility 0s linear 240ms; overflow-y: auto; }
.drawer.is-open { transform: none; visibility: visible; transition: transform 240ms var(--ease); }
.drawer__top { display: flex; justify-content: space-between; align-items: center; min-height: 60px; }
.drawer ul { list-style: none; padding: 0; margin: 24px 0; }
.drawer li a { display: block; padding: 14px 0; font: 600 var(--step-2)/1.2 var(--font-display); color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.drawer__calls { display: grid; gap: 12px; margin-top: auto; }

@media (max-width: 1080px) {
  .nav__links, .nav__cta .btn--ghost { display: none; }
  .nav__toggle { display: inline-flex; }
}
@media (max-width: 560px) {
  .brand__mark { height: 40px; }
  .brand__word { height: 30px; }
  .nav__cta .btn--primary { display: none; }
  .strip__rooms { display: none; }
}

/* Hero */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(48px, 7vw, 96px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero h1 { max-width: 21ch; font-size: clamp(2rem, 1.5rem + 2.6vw, 3.875rem); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin: 32px 0 40px; }
.hero__actions .call { font-weight: 600; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; }
.hero__actions .call:hover { color: var(--blue); }
.hero__actions .call svg { width: 20px; height: 20px; flex: none; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; border-top: 1px solid var(--line); }
.facts div { padding: 18px 20px 0 0; }
.facts dt { font-size: var(--step--1); color: var(--muted); margin-bottom: 4px; }
.facts dd { margin: 0; font-weight: 600; line-height: 1.4; }
.portrait { margin: 0; justify-self: end; width: min(100%, 380px); }
.portrait__frame { background: var(--paper); border-radius: var(--radius-l); padding: 14px; }
.portrait img { border-radius: calc(var(--radius-l) - 14px); width: 100%; aspect-ratio: 311 / 397; object-fit: cover; }
.portrait figcaption { font-size: var(--step--1); color: var(--muted); margin-top: 12px; padding-left: 4px; }
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .portrait { justify-self: start; width: min(100%, 280px); }
  .facts { grid-template-columns: 1fr; }
  .facts div { padding: 14px 0; border-bottom: 1px solid var(--line); }
}

/* Routing band */
.routing { background: var(--ink); color: #DCE7F1; }
.routing h2 { color: var(--white); }
.routing .lede { color: #B9CADB; }
.routing__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 40px; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.route { padding: 28px 28px 8px 0; }
.route + .route { padding-left: 28px; border-left: 1px solid rgba(255, 255, 255, 0.18); }
.route h3 { color: var(--white); font-size: var(--step-1); }
.route p { color: #C4D3E2; font-size: var(--step--1); }
.route__num { display: inline-flex; align-items: center; min-height: 48px; font: 600 var(--step-1)/1.2 var(--font-body); color: var(--signal); text-decoration: none; }
.route__num:hover { color: var(--white); text-decoration: underline; }
.route--urgent h3 { color: var(--signal); }
@media (max-width: 1000px) {
  .routing__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .route:nth-child(3) { padding-left: 0; border-left: 0; }
  .route:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, 0.18); }
}
@media (max-width: 600px) {
  .routing__grid { grid-template-columns: 1fr; }
  .route, .route + .route { padding: 22px 0 6px; border-left: 0; }
  .route + .route { border-top: 1px solid rgba(255, 255, 255, 0.18); }
}

/* Section heads */
.head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.head p { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .head { grid-template-columns: 1fr; } }

/* Treatment ledger */
.ledger { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.ledger li { max-width: none; border-bottom: 1px solid var(--line); }
.ledger a { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr) 48px; gap: 8px 40px; align-items: center; padding: 24px 0; text-decoration: none; color: inherit; transition: background-color 180ms var(--ease), padding 180ms var(--ease); }
.ledger a:hover { background: var(--paper); padding-inline: 16px; }
.ledger h3 { margin: 0; font-size: var(--step-2); }
.ledger p { margin: 0; color: var(--muted); }
.ledger svg { width: 24px; height: 24px; color: var(--teal); justify-self: end; }
@media (max-width: 760px) {
  .ledger a { grid-template-columns: minmax(0, 1fr) 32px; }
  .ledger p { grid-column: 1; }
  .ledger svg { grid-row: 1; grid-column: 2; }
}

/* Referral sequence */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: step; }
.steps li { counter-increment: step; padding: 0 28px 0 0; position: relative; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.steps li::before { content: counter(step); display: block; font: 600 var(--step-3)/1 var(--font-display); color: var(--teal); margin-bottom: 18px; }
.steps h3 { font-size: var(--step-1); }
.steps p { font-size: var(--step--1); color: var(--muted); }
@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; row-gap: 28px; }
  .steps li, .steps li + li { padding: 0; border-left: 0; }
}

/* Recovery guide (signature) */
.recovery { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.curve { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(16px, 2.5vw, 28px); }
.section--paper .curve { border-color: transparent; }
.curve svg { width: 100%; height: auto; overflow: visible; }
.curve__axis { stroke: var(--line); stroke-width: 1; }
.curve__tick { fill: var(--muted); font: 500 13px var(--font-body); }
.curve__label { fill: var(--muted); font: 500 13px var(--font-body); }
.curve__area { fill: rgba(0, 113, 122, 0.08); }
.curve__line { fill: none; stroke: var(--teal); stroke-width: 3; stroke-linecap: round; }
.curve__band { fill: rgba(18, 73, 127, 0.07); transition: x 300ms var(--ease), width 300ms var(--ease); }
.curve__marker { fill: var(--navy); stroke: var(--white); stroke-width: 3; transition: cx 300ms var(--ease), cy 300ms var(--ease); }
.curve__caption { font-size: var(--step--1); color: var(--muted); margin: 12px 0 0; }
.days { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; }
.days button { min-height: 48px; padding: 10px 16px; border: 1px solid var(--line); background: var(--white); color: var(--ink); border-radius: 999px; font: 600 0.95rem/1.2 var(--font-body); cursor: pointer; transition: background-color 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease); }
.days button:hover { border-color: var(--navy); }
.days button[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.days button:active { transform: scale(0.96); }
.stage h3 { font-size: var(--step-2); margin-bottom: 4px; }
.stage__when { color: var(--teal); font-weight: 600; margin-bottom: 20px; }
.stage dl { margin: 0; }
.stage dt { font-weight: 650; margin-top: 18px; }
.stage dd { margin: 6px 0 0; }
.stage dd ul { margin: 0; padding-left: 1.1em; }
.stage dd li { margin-bottom: 4px; }
.stage__call { margin-top: 22px; padding: 16px 18px; border-left: 3px solid var(--danger); background: #FBF3F2; border-radius: 0 var(--radius-s) var(--radius-s) 0; }
.stage__call p { margin: 0; font-size: var(--step--1); }
.stage[hidden] { display: none; }
.recovery > div:first-child { position: sticky; top: calc(var(--nav-h) + 24px); }
@media (max-width: 960px) { .recovery { grid-template-columns: 1fr; } .recovery > div:first-child { position: static; } }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.about__aside { position: sticky; top: calc(var(--nav-h) + 24px); }
.creds { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--line); }
.creds li { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 16px; }
.creds span { color: var(--muted); font-size: var(--step--1); }
.hospitals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 32px; border-top: 2px solid var(--ink); }
.hospital { padding: 22px 24px 4px 0; }
.hospital + .hospital { padding-left: 24px; border-left: 1px solid var(--line); }
.hospital h3 { font-size: var(--step-1); margin-bottom: 6px; }
.hospital p { font-size: var(--step--1); color: var(--muted); margin-bottom: 8px; }
@media (max-width: 960px) {
  .about { grid-template-columns: 1fr; }
  .about__aside { position: static; }
  .hospitals { grid-template-columns: 1fr; }
  .hospital, .hospital + .hospital { padding: 18px 0 4px; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* Long-form pages */
.page-head { padding-block: clamp(40px, 6vw, 80px) clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.page-head h1 { max-width: 20ch; }
.crumbs { font-size: var(--step--1); color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.longform { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.toc { position: sticky; top: calc(var(--nav-h) + 24px); font-size: var(--step--1); }
.toc p { font-weight: 650; margin-bottom: 8px; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 8px 0 8px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; }
.toc a:hover, .toc a.is-current { color: var(--ink); border-left-color: var(--teal); }
.article > section { padding-block: 0 clamp(40px, 5vw, 64px); margin-bottom: clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.article > section:last-child { border-bottom: 0; margin-bottom: 0; }
.article h2 { font-size: var(--step-2); }
.article h3 { margin-top: 1.4em; }
.article .split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.article .split > div { min-width: 0; }
.cta-line { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 8px; }
@media (max-width: 960px) {
  .longform { grid-template-columns: 1fr; }
  .toc { position: static; }
  .toc ol { display: flex; flex-wrap: wrap; gap: 4px 16px; border-left: 0; }
  .toc a { padding: 10px 0; border-left: 0; margin-left: 0; }
}
@media (max-width: 640px) { .article .split { grid-template-columns: 1fr; } }

.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font: 600 var(--step-1)/1.3 var(--font-display); color: var(--ink); min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: translateY(-70%) rotate(45deg); transition: transform 200ms var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details > div { padding: 0 0 20px; }

/* Forms */
.form-wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(32px, 5vw, 80px); align-items: stretch; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.form .full { grid-column: 1 / -1; }
.field label, .field legend { display: block; font-weight: 600; font-size: 0.98rem; margin-bottom: 8px; padding: 0; }
.field .hint { display: block; font-weight: 400; color: var(--muted); font-size: var(--step--1); margin-top: 2px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid #9AABBC; border-radius: var(--radius-s);
  font: 400 1rem/1.4 var(--font-body); color: var(--ink); background: var(--white);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.field[aria-invalid="true"] input, .field[aria-invalid="true"] select { border-color: var(--danger); }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice { display: flex; flex-wrap: wrap; gap: 10px; }
.choice label { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 16px; border: 1px solid #9AABBC; border-radius: var(--radius-s); font-weight: 500; margin: 0; cursor: pointer; }
.choice input { width: 20px; height: 20px; min-height: 0; accent-color: var(--navy); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: var(--step--1); color: var(--muted); }
.consent input { width: 22px; height: 22px; min-height: 0; flex: none; margin-top: 2px; accent-color: var(--navy); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__status { grid-column: 1 / -1; margin: 0; padding: 0; font-weight: 500; }
.form__status:empty { display: none; }
.form__status.is-ok { padding: 16px 18px; background: #E8F4F1; border-left: 3px solid var(--teal); }
.form__status.is-error { padding: 16px 18px; background: #FBF3F2; border-left: 3px solid var(--danger); }
.form button[type="submit"] { justify-self: start; }
.form button[disabled] { opacity: 0.7; cursor: progress; }
.contact-card { background: var(--paper); border-radius: var(--radius-l); padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 4px; }
.section--paper .contact-card { background: var(--white); }
.contact-card h3 { margin-bottom: 12px; }
.contact-card dl { margin: 0; display: grid; gap: 16px; }
.contact-card dt { font-size: var(--step--1); color: var(--muted); }
.contact-card dd { margin: 2px 0 0; font-weight: 600; }
.contact-card dd a { color: var(--ink); text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.contact-card dd a:hover { color: var(--blue); text-decoration: underline; }
.contact-card .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 960px) { .form-wrap { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--navy); color: #D6E3F0; padding-block: clamp(48px, 6vw, 80px) 28px; font-size: var(--step--1); }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--signal); text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer__brand img { height: 46px; width: auto; }
.footer__brand .brand__lock { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; }
.footer__brand .brand__lock img + img { height: 36px; }
.site-footer h2 { font: 600 1rem/1.3 var(--font-body); color: var(--white); margin-bottom: 14px; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 6px 0; }
.site-footer address { font-style: normal; line-height: 1.6; }
.footer__legal { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.2); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: #B9CBDD; }
.footer__legal p { margin: 0; max-width: none; }
@media (max-width: 960px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* Not-found */
.notfound { min-height: calc(100dvh - var(--nav-h) - var(--strip-h)); display: flex; align-items: center; }

/* Motion: one orchestrated moment (hero entrance, curve draw) plus responses to input */
@media (prefers-reduced-motion: no-preference) {
  .hero__copy > * { animation: rise 520ms var(--ease) both; }
  .hero__copy > *:nth-child(2) { animation-delay: 70ms; }
  .hero__copy > *:nth-child(3) { animation-delay: 140ms; }
  .hero__copy > *:nth-child(4) { animation-delay: 210ms; }
  .portrait { animation: settle 700ms var(--ease) 120ms both; }
  .curve__line { stroke-dasharray: var(--len, 1200); stroke-dashoffset: var(--len, 1200); }
  .curve.is-drawn .curve__line { stroke-dashoffset: 0; transition: stroke-dashoffset 1400ms var(--ease); }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(0.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .strip, .site-header, .site-footer, .days, .form-wrap, .toc { display: none !important; }
  .stage[hidden] { display: block !important; }
}

/* Small utilities (no inline styles: CSP style-src 'self') */
.strip p { margin: 0; max-width: none; }
.drawer .nav__toggle { display: inline-flex; }
.footer__map { margin-top: 12px; }
.more-link { margin: 28px 0 0; }
.lede--ink { color: var(--ink); }
.form__note { margin: 0; }
@media (max-width: 600px) {
  .curve__tick, .curve__label { font-size: 24px; }
  .curve__tick--minor { display: none; }
}

/* Google map: click-to-load (third-party content waits for the visitor's consent) */
.map { position: relative; flex: 1; min-height: 260px; margin: 22px 0 18px; border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; background: var(--white); }
.map--wide { flex: none; min-height: 340px; margin-top: 12px; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px; padding: 24px; background: linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 48px, linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 48px 100%, var(--paper); }
.map__placeholder > * { background: var(--white); }
.map__title { margin: 0; padding: 6px 10px; font-weight: 650; border-radius: var(--radius-s); }
.map__note { margin: 0; padding: 6px 10px; font-size: var(--step--1); color: var(--muted); border-radius: var(--radius-s); max-width: 34ch; }
.map.is-loaded .map__placeholder { display: none; }
.contact-card .map + .btn { margin-top: 0; }
