/* Tidewater Supports - "Your page, your way". Concept demo. */

/* ---------- 1. Tokens ---------- */
:root {
  color-scheme: light;
  --bg: #EEF4F7;            /* harbour wash */
  --surface: #FFFFFF;
  --surface-2: #E2ECF1;
  --ink: #10202C;
  --ink-2: #2F4556;
  --line: #C3D3DC;
  --line-strong: #4D6678;
  --brand: #123A5C;         /* deep harbour */
  --on-brand: #FFFFFF;
  --accent: #0E7470;        /* ocean-baths teal */
  --accent-text: #09524F;
  --sand: #E9DCC6;
  --sun: #FFD34E;
  --ring-in: #123A5C;
  --btn-bg: #123A5C; --btn-ink: #FFFFFF; --btn-hover: #0E2D49;
  --band-bg: #123A5C; --band-ink: #FFFFFF; --band-ink-2: #CFE0EA;
  --pa: #BFE3DF; --pb: #E9DCC6; --pc: #FFD34E;
  --shadow: 0 1px 2px rgba(16,32,44,.08), 0 8px 24px -8px rgba(18,58,92,.22);
  --shadow-lg: 0 2px 4px rgba(16,32,44,.1), 0 24px 60px -16px rgba(18,58,92,.4);
  /* scene */
  --sk1:#BFD9E8; --sk2:#F6EAD2; --se1:#52A7AD; --se2:#1F6E78; --head:#7FA2B2;
  --stone:#F4ECDD; --stone2:#CDBA94; --prom:#E9DCC6; --pool:#56C0B9; --pool2:#0E7470;
  --pav:#F4ECDD; --pav2:#D9C8A6; --arch:#0E7470; --wave:rgba(255,255,255,.45); --glint:rgba(255,255,255,.75);
  --sunc:#FFD34E; --halo:rgba(255,211,78,.32); --cloud:rgba(255,255,255,.7); --shadowc:rgba(18,58,92,.16);
  --ship:#123A5C; --ship2:#6E8CA0; --tower:#FFFFFF; --towercap:#123A5C; --pave-line:rgba(18,58,92,.1);

  --f-disp: 'Lexend', 'Segoe UI', system-ui, sans-serif;
  --f-body: 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', 'Segoe UI', system-ui, sans-serif;
  --gut: clamp(1rem, 4.2vw, 2.75rem);
  --max: 82rem;
  --sec-y: clamp(3.5rem, 7vw, 6.5rem);
  --r: 1.25rem;
  --r-lg: 1.75rem;
  --h1: clamp(2.3rem, 1.15rem + 3.9vw, 3.9rem);
  --h2: clamp(1.8rem, 1.1rem + 2.5vw, 3.1rem);
  --h3: clamp(1.25rem, 1.05rem + .7vw, 1.6rem);
  --lh: 1.6;
  --ease: cubic-bezier(.22,.8,.24,1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { color-scheme: dark;
    --bg:#0D1B26; --surface:#14293A; --surface-2:#1B3447; --ink:#EFE6D6; --ink-2:#D3CABA; --line:#2D4658; --line-strong:#8CA3B2;
    --brand:#E9DCC6; --on-brand:#0D1B26; --accent:#4FC1BA; --accent-text:#6FD3CB; --ring-in:#0D1B26;
    --btn-bg:#E9DCC6; --btn-ink:#0D1B26; --btn-hover:#FFF3DC; --band-bg:#102B3F; --band-ink:#EFE6D6; --band-ink-2:#C5D3DB;
    --pa:#1F6F73; --pb:#5B5444; --pc:#FFD34E;
    --shadow:0 1px 2px rgba(0,0,0,.4), 0 8px 24px -8px rgba(0,0,0,.6); --shadow-lg:0 2px 4px rgba(0,0,0,.4), 0 24px 60px -16px rgba(0,0,0,.7);
    --sk1:#0A1722; --sk2:#27495F; --se1:#1D6370; --se2:#0B2F3B; --head:#2B536B;
    --stone:#566670; --stone2:#36444D; --prom:#33434E; --pool:#228589; --pool2:#0E5B5E;
    --pav:#63737D; --pav2:#4A5964; --arch:#0D1B26; --wave:rgba(255,255,255,.16); --glint:rgba(239,230,214,.55);
    --sunc:#EFE6D6; --halo:rgba(239,230,214,.14); --cloud:rgba(239,230,214,.12); --shadowc:rgba(0,0,0,.3);
    --ship:#0A1722; --ship2:#3C5D72; --tower:#EFE6D6; --towercap:#0A1722; --pave-line:rgba(255,255,255,.06);
  }
}
:root[data-theme="dark"] { color-scheme: dark;
  --bg:#0D1B26; --surface:#14293A; --surface-2:#1B3447; --ink:#EFE6D6; --ink-2:#D3CABA; --line:#2D4658; --line-strong:#8CA3B2;
  --brand:#E9DCC6; --on-brand:#0D1B26; --accent:#4FC1BA; --accent-text:#6FD3CB; --ring-in:#0D1B26;
  --btn-bg:#E9DCC6; --btn-ink:#0D1B26; --btn-hover:#FFF3DC; --band-bg:#102B3F; --band-ink:#EFE6D6; --band-ink-2:#C5D3DB;
  --pa:#1F6F73; --pb:#5B5444; --pc:#FFD34E;
  --shadow:0 1px 2px rgba(0,0,0,.4), 0 8px 24px -8px rgba(0,0,0,.6); --shadow-lg:0 2px 4px rgba(0,0,0,.4), 0 24px 60px -16px rgba(0,0,0,.7);
  --sk1:#0A1722; --sk2:#27495F; --se1:#1D6370; --se2:#0B2F3B; --head:#2B536B;
  --stone:#566670; --stone2:#36444D; --prom:#33434E; --pool:#228589; --pool2:#0E5B5E;
  --pav:#63737D; --pav2:#4A5964; --arch:#0D1B26; --wave:rgba(255,255,255,.16); --glint:rgba(239,230,214,.55);
  --sunc:#EFE6D6; --halo:rgba(239,230,214,.14); --cloud:rgba(239,230,214,.12); --shadowc:rgba(0,0,0,.3);
  --ship:#0A1722; --ship2:#3C5D72; --tower:#EFE6D6; --towercap:#0A1722; --pave-line:rgba(255,255,255,.06);
}
/* High contrast: pure black / white / yellow, independent of light/dark */
html:root[data-contrast="on"] { color-scheme: dark;
  --bg:#000; --surface:#000; --surface-2:#000; --ink:#fff; --ink-2:#fff; --line:#fff; --line-strong:#fff;
  --brand:#FFD34E; --on-brand:#000; --accent:#FFD34E; --accent-text:#FFD34E; --ring-in:#000;
  --btn-bg:#FFD34E; --btn-ink:#000; --btn-hover:#fff; --band-bg:#000; --band-ink:#fff; --band-ink-2:#fff;
  --pa:#000; --pb:#000; --pc:#FFD34E; --shadow:none; --shadow-lg:none;
}
html[data-contrast="on"] .scene { filter: grayscale(1) contrast(1.5) brightness(.9); }

/* ---------- 2. Base ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; scroll-padding-top: 1.5rem; }
html[data-text="2"] { font-size: 118.75%; }
html[data-text="3"] { font-size: 140.625%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.125rem/var(--lh) var(--f-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
html[data-calm="on"] body { line-height: 1.8; letter-spacing: .01em; }
img, svg { max-width: 100%; }
h1,h2,h3,h4 { font-family: var(--f-disp); font-weight: 600; line-height: 1.12; letter-spacing: -.015em; margin: 0; text-wrap: balance; overflow-wrap: break-word; hyphens: manual; }
h1 { font-size: var(--h1); line-height: 1.04; letter-spacing: -.028em; }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); line-height: 1.2; }
p, ul, ol, dl { margin: 0; }
p { max-width: 65ch; text-wrap: pretty; }
b, strong { font-weight: 700; }
a { color: var(--accent-text); text-decoration-thickness: .08em; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .16em; }
:focus-visible { outline: 4px solid var(--sun); outline-offset: 2px; box-shadow: 0 0 0 2px var(--ring-in); border-radius: .25rem; }
:focus:not(:focus-visible) { outline: none; }
::selection { background: var(--sun); color: #10202C; }
.skip { position: fixed; left: .75rem; top: -6rem; z-index: 200; background: var(--btn-bg); color: var(--btn-ink); padding: .8rem 1.2rem; border-radius: .75rem; font-weight: 700; text-decoration: none; transition: top .2s; }
.skip:focus { top: .75rem; }
.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
svg.i { width: 1.5rem; height: 1.5rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
svg.pict { width: 3.5rem; height: 3.5rem; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; color: var(--brand); }
html[data-contrast="on"] svg.pict { color: #fff; }
.pa { fill: var(--pa); } .pb { fill: var(--pb); } .pc { fill: var(--pc); } .ink { fill: currentColor; stroke: none; }
.page { container: page / inline-size; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }

/* Easy Read / standard swap */
html:not([data-easyread="on"]) [data-easy] { display: none !important; }
html[data-easyread="on"] [data-std] { display: none !important; }
main { transition: opacity .22s ease; }
main.swap-out { opacity: 0; }

/* ---------- 3. Buttons & small parts ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 3.25rem; padding: .75rem 1.5rem; border-radius: 999px; border: 2px solid transparent; font: 600 1.0625rem/1.2 var(--f-disp); text-decoration: none; cursor: pointer; transition: transform .18s var(--ease), background-color .18s, box-shadow .18s; text-align: center; }
.btn svg.i { transition: transform .2s var(--ease); }
.btn:hover svg.i { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(.985); }
.btn--primary { background: var(--btn-bg); color: var(--btn-ink); }
.btn--primary:hover { background: var(--btn-hover); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--surface); border-color: var(--ink); }
.btn--light { background: #fff; color: #123A5C; }
.btn--light:hover { background: var(--sand); }
html[data-contrast="on"] .btn { border-color: #fff; }
html[data-contrast="on"] .btn--light { background: #000; color: #fff; }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--accent-text); text-decoration: none; min-height: 2.75rem; }
.link-arrow span { text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .22em; }
.link-arrow svg { transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.icon-btn { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; min-width: 44px; min-height: 44px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; transition: background-color .18s, transform .18s var(--ease); }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn:active { transform: scale(.94); }
.eyebrow { font: 600 .9rem/1.3 var(--f-disp); letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); }
.pill { display: inline-flex; align-items: center; gap: .4rem; font: 600 .875rem/1.2 var(--f-body); padding: .35rem .75rem; border-radius: 999px; background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.arch { display: grid; place-items: center; width: 4.75rem; height: 5.25rem; border-radius: 999px 999px 1rem 1rem; background: var(--surface-2); flex: none; }
html[data-contrast="on"] .arch { border: 2px solid #fff; background: #000; }

/* ---------- 4. Top bar + header ---------- */
.topbar { background: var(--band-bg); color: var(--band-ink); font-size: .975rem; line-height: 1.3; }
html[data-contrast="on"] .topbar { border-bottom: 2px solid #fff; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; justify-content: space-between; align-items: center; padding-block: .35rem; }
.topbar ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.topbar a { color: inherit; display: inline-flex; align-items: center; gap: .3em; min-height: 2.75rem; text-decoration-color: color-mix(in srgb, currentColor 50%, transparent); }
.topbar strong { font-weight: 700; }
.topbar .lang { color: var(--band-ink-2); }
html[data-contrast="on"] .topbar .lang { color: #fff; }
@container page (max-width: 40rem) { .topbar .lang { display: none; } }

.hdr { position: relative; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
html[data-contrast="on"] .hdr { border-bottom: 2px solid #fff; }
.hdr .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .75rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); min-height: 2.75rem; }
.brand svg { width: 2.75rem; height: 2.75rem; flex: none; border-radius: .8rem; }
.brand-name { font: 600 1.3rem/1 var(--f-disp); letter-spacing: -.02em; }
.brand-name small { display: block; font: 500 .72rem/1.2 var(--f-disp); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin-top: .25rem; }
.nav-wrap { display: flex; align-items: center; gap: .75rem; }
.nav-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .35rem; }
.nav-list a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .35rem .85rem; border-radius: 999px; color: var(--ink); font: 500 1.0625rem/1.2 var(--f-disp); text-decoration: none; transition: background-color .18s; }
.nav-list a:hover { background: var(--surface-2); }
.nav-list a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: .12em; text-underline-offset: .3em; }
.nav-list .nav-cta a { background: var(--btn-bg); color: var(--btn-ink); font-weight: 600; padding-inline: 1.2rem; }
.nav-list .nav-cta a:hover { background: var(--btn-hover); }
.nav-toggle { display: none; align-items: center; gap: .5rem; min-height: 2.75rem; padding: .4rem 1rem .4rem .8rem; border-radius: 999px; border: 2px solid var(--line-strong); background: var(--surface); color: var(--ink); font: 600 1rem/1 var(--f-disp); cursor: pointer; }
.theme-btn svg { display: none; }
.theme-btn[aria-pressed="true"] .t-moon, .theme-btn[aria-pressed="false"] .t-sun { display: block; }
@container page (max-width: 66rem) {
  .js .nav-toggle { display: inline-flex; }
  .js .nav-list { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); flex-direction: column; align-items: stretch; padding: .75rem var(--gut) 1.25rem; border-bottom: 1px solid var(--line-strong); box-shadow: var(--shadow-lg); gap: .15rem; }
  .js .nav-list.open { display: flex; }
  .js .nav-list a { padding: .75rem 1rem; font-size: 1.15rem; border-radius: 1rem; }
  .nav-list .nav-cta a { justify-content: center; margin-top: .4rem; }
}
.brand-name small { display: block; }
@container page (max-width: 30rem) { .brand-name small { display: none; } .nav-toggle .nt-label { display: none; } .nav-toggle { padding: .4rem; width: 2.75rem; justify-content: center; } }

/* ---------- 5. Sections ---------- */
.sec { padding-block: var(--sec-y); position: relative; }
html[data-calm="on"] .sec { padding-block: calc(var(--sec-y) * 1.35); }
.sec--wash { background: var(--surface-2); }
html[data-contrast="on"] .sec--wash { background: #000; border-block: 2px solid #fff; }
.sec-head { display: grid; gap: 1rem; max-width: 52rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.sec-head .lede { font-size: 1.2rem; color: var(--ink-2); }
html[data-contrast="on"] .sec-head .lede { color: #fff; }
.reading { outline: 3px solid var(--sun); outline-offset: .5rem; border-radius: .5rem; background: color-mix(in srgb, var(--sun) 22%, transparent); }
[data-read].is-reading::before { content: ''; position: absolute; left: 0; top: 2rem; bottom: 2rem; width: .4rem; background: var(--sun); border-radius: 0 .4rem .4rem 0; }

/* Easy Read list */
.er { list-style: none; padding: 0; display: grid; gap: 0; max-width: 48rem; border-top: 2px solid var(--line); }
.er-row { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 1.25rem; padding: 1.25rem 0; border-bottom: 2px solid var(--line); }
.er-row svg.pict { width: 5rem; height: 5.25rem; padding: .7rem; background: var(--surface); border-radius: 1.4rem 1.4rem .6rem .6rem; box-shadow: inset 0 0 0 2px var(--line); }
html[data-contrast="on"] .er-row svg.pict { background: #000; box-shadow: inset 0 0 0 2px #fff; }
.er-row p { font-size: 1.5rem; line-height: 1.4; max-width: 34ch; }
.er-row p b { background: linear-gradient(transparent 62%, color-mix(in srgb, var(--sun) 80%, transparent) 62%); padding-inline: .1em; }
html[data-contrast="on"] .er-row p b { background: none; color: #FFD34E; }
.er-row .link-arrow { margin-top: .25rem; }
.er-note { margin-top: 1.5rem; padding: 1rem 1.25rem; border-radius: 1rem; background: var(--surface); border: 2px solid var(--line); font-size: 1.25rem; max-width: 46rem; }

/* wave edge on tinted sections */
.sec--wash::before { content: ''; position: absolute; left: 0; right: 0; top: -1.45rem; height: 1.5rem; background: var(--surface-2); pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 112 24' preserveAspectRatio='none'%3E%3Cpath d='M0 24V12C28 0 84 24 112 12V24Z'/%3E%3C/svg%3E") repeat-x left bottom / 7rem 100%;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 112 24' preserveAspectRatio='none'%3E%3Cpath d='M0 24V12C28 0 84 24 112 12V24Z'/%3E%3C/svg%3E") repeat-x left bottom / 7rem 100%; }
html[data-contrast="on"] .sec--wash::before, html[data-calm="on"] .sec--wash::before { display: none; }

/* ---------- 6. Hero ---------- */
.hero { padding-block: clamp(1.75rem, 3.5vw, 3rem) clamp(3rem, 6vw, 5.5rem); overflow: clip; }
.hero-grid { display: flex; flex-wrap: wrap; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.hero-grid > .hero-copy { flex: 1.3 1 31rem; min-width: 0; }
.hero-grid > .scene { flex: 1 1 24rem; min-width: 0; }
.hero-copy { display: grid; gap: 1.25rem; align-content: start; }
.hero-copy .lede { font-size: 1.2rem; color: var(--ink-2); max-width: 40rem; }
html[data-contrast="on"] .hero-copy .lede { color: #fff; }
.hero h1 { margin-top: .25rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.tryit { margin-top: .25rem; padding: 1.1rem 1.25rem; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--line); display: grid; gap: 1rem; position: relative; }
html[data-contrast="on"] .tryit { border: 2px solid #fff; }
.tryit-h { font: 600 1.25rem/1.25 var(--f-disp); letter-spacing: -.01em; }
.tryit-sub { color: var(--ink-2); font-size: 1.0625rem; }
html[data-contrast="on"] .tryit-sub { color: #fff; }
.chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr)); gap: .6rem; }
.chip { display: flex; align-items: center; gap: .6rem; text-align: left; min-height: 3.25rem; padding: .45rem .9rem .45rem .55rem; border-radius: 999px; border: 2px solid var(--line-strong); background: var(--bg); color: var(--ink); font: 600 1rem/1.15 var(--f-disp); cursor: pointer; transition: background-color .2s, border-color .2s, transform .18s var(--ease); }
.chip:hover { border-color: var(--ink); }
.chip:active { transform: scale(.97); }
.chip svg.pict { width: 2.25rem; height: 2.25rem; padding: .2rem; background: var(--surface); border-radius: 50%; }
.chip small { display: block; font: 500 .8rem/1.2 var(--f-body); color: var(--ink-2); }
.chip[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.chip[aria-pressed="true"] small { color: inherit; opacity: .9; }
.chip[aria-pressed="true"] svg.pict { color: #123A5C; }
html[data-contrast="on"] .chip { background: #000; border-color: #fff; }
html[data-contrast="on"] .chip[aria-pressed="true"] { background: #FFD34E; color: #000; }
.tryit-foot { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; font-size: 1rem; color: var(--ink-2); }
html[data-contrast="on"] .tryit-foot { color: #fff; }

.scene { margin: 0; position: relative; aspect-ratio: 5 / 5.6; width: 100%; max-width: 38rem; margin-inline: auto; border-radius: clamp(6rem, 26vw, 15rem) clamp(6rem, 26vw, 15rem) var(--r-lg) var(--r-lg); overflow: hidden; background: var(--sk1); box-shadow: var(--shadow-lg); isolation: isolate; }
html[data-contrast="on"] .scene { border: 3px solid #fff; }
.scene-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.scene-svg .sk1 { stop-color: var(--sk1); } .scene-svg .sk2 { stop-color: var(--sk2); }
.scene-svg .se1 { stop-color: var(--se1); } .scene-svg .se2 { stop-color: var(--se2); }
.scene-svg .sc-sun { fill: var(--sunc); } .scene-svg .sc-halo { fill: var(--halo); }
.scene-svg .sc-cloud { fill: var(--cloud); }
.scene-svg .gulls path { fill: none; stroke: var(--ship); stroke-width: 2; stroke-linecap: round; opacity: .6; }
.scene-svg .sc-head { fill: var(--head); } .scene-svg .sc-tower { fill: var(--tower); } .scene-svg .sc-cap { fill: var(--towercap); }
.scene-svg .sc-break { fill: var(--head); } .scene-svg .sc-ship { fill: var(--ship); } .scene-svg .sc-ship2 { fill: var(--ship2); }
.scene-svg .waves path { fill: none; stroke: var(--wave); stroke-width: 3; stroke-linecap: round; }
.scene-svg .sc-glint rect { fill: var(--glint); }
.scene-svg .sc-stone { fill: var(--stone); } .scene-svg .sc-stone2 { fill: var(--stone2); }
.scene-svg .sc-pav { fill: var(--pav); } .scene-svg .sc-pav2 { fill: var(--pav2); } .scene-svg .sc-arch path { fill: var(--arch); }
.scene-svg .sc-pole { fill: var(--stone2); } .scene-svg .sc-flag { fill: var(--brand); }
.scene-svg .sc-pool { fill: var(--pool); } .scene-svg .sc-pool2 { fill: var(--pool2); }
.scene-svg .sc-lane path { stroke: rgba(255,255,255,.5); stroke-width: 2; fill: none; }
.scene-svg .ripples ellipse { fill: none; stroke: rgba(255,255,255,.75); stroke-width: 2; }
.scene-svg .sc-prom { fill: var(--prom); }
.scene-svg .sc-paving path { stroke: var(--pave-line); stroke-width: 2; fill: none; }
.scene-svg .sc-shadow ellipse { fill: var(--shadowc); }
.scene-badge { position: absolute; left: 1rem; bottom: 1rem; right: 1rem; z-index: 2; display: flex; flex-wrap: wrap; gap: .4rem; pointer-events: none; }
.scene-badge span { background: color-mix(in srgb, var(--bg) 88%, transparent); color: var(--ink); padding: .3rem .7rem; border-radius: 999px; font: 500 .85rem/1.2 var(--f-body); backdrop-filter: blur(6px); }
.scene-svg .wave-a { animation: drift 9s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translateX(-14px); } to { transform: translateX(14px); } }
.scene-svg .waves { animation: drift 11s ease-in-out infinite alternate; }
.scene-svg .sun-g { transform-box: fill-box; transform-origin: center; animation: sunrise 2.4s var(--ease) both; }
@keyframes sunrise { from { transform: translateY(70px); opacity: 0; } to { transform: none; opacity: 1; } }
.scene-svg .swimmer, .scene-svg .ripples { animation: bob 5s ease-in-out infinite alternate; }
@keyframes bob { from { transform: translateX(-26px); } to { transform: translateX(34px); } }
.scene-svg .wheel { transform-box: fill-box; transform-origin: center; }
.scene-svg .fig { opacity: 0; animation: figIn .9s var(--ease) both; }
.scene-svg .fig:nth-of-type(1) { animation-delay: .9s; }
@keyframes figIn { from { opacity: 0; transform: translateY(14px) } to { opacity: 1 } }
.scene-svg .fig { animation-name: figFade; }
@keyframes figFade { from { opacity: 0; } to { opacity: 1; } }
.scene-svg .fig:nth-of-type(2) { animation-delay: 1.1s; } .scene-svg .fig:nth-of-type(3) { animation-delay: 1.3s; } .scene-svg .fig:nth-of-type(4) { animation-delay: 1.5s; }
.scene { clip-path: inset(100% 0 0 0 round 15rem 15rem 1.75rem 1.75rem); animation: sceneIn 1.25s var(--ease) .15s forwards; }
@keyframes sceneIn { to { clip-path: inset(0 0 0 0 round 15rem 15rem 1.75rem 1.75rem); } }
html[data-calm="on"] .deco { display: none !important; }
html[data-calm="on"] .hero-grid { grid-template-columns: minmax(0, 46rem); }

/* ---------- 7. Three ways ---------- */
.ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); gap: 1.25rem; }
.way { position: relative; display: grid; gap: 1rem; align-content: start; padding: 1.75rem; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .25s var(--ease), box-shadow .25s; }
.way:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.way--dark { background: var(--band-bg); color: var(--band-ink); border-color: transparent; }
.way--dark .arch { background: rgba(255,255,255,.1); }
.way--dark svg.pict { color: #fff; }
.way--dark .pa { fill: rgba(255,255,255,.12); }
.way--dark a { color: inherit; }
html[data-contrast="on"] .way { border: 2px solid #fff; background: #000; }
.way h3 { margin-top: .25rem; }
.way p { color: inherit; }
.way .big { font: 600 clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem)/1.1 var(--f-disp); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.way .big a { color: inherit; text-decoration: none; display: inline-block; min-height: 2.75rem; }
.way .big a:hover { text-decoration: underline; }
.way .small-note { font-size: 1rem; opacity: .92; }
.way .btn { margin-top: .5rem; justify-self: start; }
.way--dark .btn--primary { background: #fff; color: #123A5C; }
html[data-contrast="on"] .way--dark .btn--primary { background: #FFD34E; color: #000; }
.callback { margin-top: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; padding: 1.25rem 1.75rem; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line); }
html[data-contrast="on"] .callback { background: #000; border: 2px solid #fff; }
.callback svg.pict { width: 3rem; height: 3rem; }
.callback p { font-size: 1.15rem; max-width: 60ch; }
.callback p strong { font-family: var(--f-disp); font-weight: 600; }

/* ---------- 8. Supports ---------- */
.supports { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.25rem; }
.sup { grid-column: span 2; position: relative; display: flex; flex-direction: column; gap: 1rem; padding: 1.75rem; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.sup:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.sup:nth-child(-n+2) { grid-column: span 3; }
html[data-contrast="on"] .sup { background: #000; border: 2px solid #fff; }
.sup-top { display: flex; gap: 1rem; align-items: flex-start; }
.sup h3 a { color: inherit; text-decoration: none; }
.sup h3 a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.sup h3 a:focus-visible { outline: none; box-shadow: none; }
.sup:has(h3 a:focus-visible) { outline: 4px solid var(--sun); outline-offset: 3px; box-shadow: 0 0 0 2px var(--ring-in); }
.sup .what { color: var(--ink-2); }
html[data-contrast="on"] .sup .what { color: #fff; }
.tue { margin-top: auto; padding: 1rem 1.15rem; border-radius: 1rem; background: var(--bg); border-left: .35rem solid var(--accent); font-size: 1.025rem; }
html[data-contrast="on"] .tue { background: #000; border: 2px solid #fff; border-left-width: .5rem; }
.tue b { display: block; font: 600 .8rem/1.3 var(--f-disp); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); margin-bottom: .3rem; }
.sup .need { font-size: .95rem; color: var(--ink-2); }
html[data-contrast="on"] .sup .need { color: #fff; }
.sup .go { margin-top: .25rem; font-weight: 700; color: var(--accent-text); display: inline-flex; gap: .4rem; align-items: center; min-height: 2.75rem; }
@container page (max-width: 62rem) { .sup, .sup:nth-child(-n+2) { grid-column: span 3; } .sup:last-child { grid-column: span 6; } }
@container page (max-width: 40rem) { .sup, .sup:nth-child(-n+2), .sup:last-child { grid-column: span 6; } }

/* ---------- 9. Finder ---------- */
.finder { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: flex-start; }
.f-filters { flex: 1 1 22rem; max-width: 28rem; padding: 1.5rem; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 1.4rem; }
html[data-contrast="on"] .f-filters { background: #000; border: 2px solid #fff; }
.f-results { flex: 3 1 28rem; min-width: 0; display: grid; gap: 1rem; }
.f-filters fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.f-filters legend, .f-filters label.lbl { font: 600 1rem/1.3 var(--f-disp); padding: 0; margin-bottom: .6rem; display: block; }
.f-filters .hint { font-weight: 400; font-family: var(--f-body); color: var(--ink-2); font-size: .95rem; }
html[data-contrast="on"] .f-filters .hint { color: #fff; }
select, input[type="text"], input[type="email"], input[type="tel"], input[type="search"], textarea { width: 100%; min-height: 3.25rem; padding: .7rem 1rem; border-radius: .9rem; border: 2px solid var(--line-strong); background: var(--bg); color: var(--ink); font: inherit; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 1.4rem) 1.45rem, calc(100% - 1rem) 1.45rem; background-size: .45rem .45rem; background-repeat: no-repeat; padding-right: 2.5rem; }
textarea { min-height: 7rem; resize: vertical; }
html[data-contrast="on"] select, html[data-contrast="on"] input, html[data-contrast="on"] textarea { background: #000; border-color: #fff; }
.opts { display: flex; flex-wrap: wrap; gap: .5rem; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.opt span { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.75rem; padding: .4rem 1rem; border-radius: 999px; border: 2px solid var(--line-strong); background: var(--bg); font: 500 1rem/1.2 var(--f-body); transition: background-color .15s, border-color .15s, color .15s; }
.opt span svg.pict { width: 1.5rem; height: 1.5rem; color: currentColor; }
.opt span svg.pict .pa, .opt span svg.pict .pb, .opt span svg.pict .pc { fill: transparent; }
.opt input:checked + span { background: var(--brand); color: var(--on-brand); border-color: var(--brand); font-weight: 700; }
.opt input:checked + span::before { content: ''; width: .9rem; height: .5rem; border-left: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(-45deg) translate(1px,-2px); margin-right: .1rem; }
.opt input:focus-visible + span { outline: 4px solid var(--sun); outline-offset: 2px; box-shadow: 0 0 0 2px var(--ring-in); }
html[data-contrast="on"] .opt input:checked + span { background: #FFD34E; color: #000; border-color: #FFD34E; }
html[data-contrast="on"] .opt span { background: #000; border-color: #fff; }
.opts--days .opt span { min-width: 3.25rem; justify-content: center; padding-inline: .6rem; }
.f-count { font: 600 1.35rem/1.3 var(--f-disp); letter-spacing: -.01em; }
.f-count small { display: block; font: 400 1rem/1.5 var(--f-body); color: var(--ink-2); margin-top: .25rem; }
html[data-contrast="on"] .f-count small { color: #fff; }
.f-clear { justify-self: start; background: none; border: 0; color: var(--accent-text); font: 700 1rem/1 var(--f-body); text-decoration: underline; cursor: pointer; min-height: 2.75rem; padding: 0 .25rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr)); gap: 1rem; }
.wk { display: grid; gap: .8rem; align-content: start; padding: 1.25rem; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); animation: cardIn .45s var(--ease) both; }
html[data-contrast="on"] .wk { background: #000; border: 2px solid #fff; }
@keyframes cardIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.wk-top { display: flex; gap: .9rem; align-items: center; }
.wk-av { width: 4rem; height: 4rem; border-radius: 50%; flex: none; }
.wk h3 { font-size: 1.35rem; }
.wk-meta { color: var(--ink-2); font-size: .975rem; line-height: 1.35; }
html[data-contrast="on"] .wk-meta { color: #fff; }
.wk-bio { font-size: 1rem; line-height: 1.5; }
.wk-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.wk-tags .pill { font-size: .85rem; padding: .25rem .65rem; }
.pill.match { background: var(--sun); color: #10202C; border-color: transparent; font-weight: 700; }
.wk-days { display: flex; gap: .25rem; }
.wk-days span { flex: 1; text-align: center; font: 600 .75rem/1 var(--f-disp); padding: .4rem 0; border-radius: .5rem; border: 1px solid var(--line); color: var(--ink-2); }
.wk-days span.on { background: var(--accent); border-color: var(--accent); color: var(--on-brand); }
html[data-contrast="on"] .wk-days span.on { background: #FFD34E; color: #000; }
.wk-days span.hit { outline: 2px solid var(--sun); outline-offset: 1px; }
.wk .link-arrow { font-size: 1rem; }
.empty { padding: 2rem; border-radius: var(--r); background: var(--surface); border: 2px dashed var(--line-strong); display: grid; gap: 1rem; }
.empty .opts button { min-height: 2.75rem; padding: .4rem 1rem; border-radius: 999px; border: 2px solid var(--line-strong); background: var(--bg); color: var(--ink); font: 600 1rem/1.2 var(--f-body); cursor: pointer; }
.empty .opts button:hover { background: var(--surface-2); }
.f-note { font-size: 1rem; color: var(--ink-2); max-width: 60ch; }
html[data-contrast="on"] .f-note { color: #fff; }

/* ---------- 10. Plan ---------- */
.tabs { display: grid; gap: 1.25rem; }
.tablist { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: .75rem; }
.tab { display: flex; align-items: center; gap: 1rem; text-align: left; min-height: 4.5rem; padding: .75rem 1.25rem .75rem .9rem; border-radius: var(--r); border: 2px solid var(--line-strong); background: var(--surface); color: var(--ink); font: 600 1.2rem/1.2 var(--f-disp); cursor: pointer; transition: background-color .2s, border-color .2s, transform .18s var(--ease); }
.tab svg.pict { width: 2.75rem; height: 2.75rem; }
.tab:hover { border-color: var(--ink); }
.tab[aria-selected="true"] { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.tab[aria-selected="true"] svg.pict { color: #123A5C; background: #fff; border-radius: 1rem 1rem .4rem .4rem; padding: .25rem; }
.tab[aria-selected="true"] svg.pict .pa { fill: #BFE3DF; }
html[data-contrast="on"] .tab { background: #000; border-color: #fff; }
html[data-contrast="on"] .tab[aria-selected="true"] { background: #FFD34E; color: #000; }
html[data-contrast="on"] .tab[aria-selected="true"] svg.pict { color: #000; background: #fff; }
.tabpanel { padding: clamp(1.25rem, 3vw, 2.25rem); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 1.5rem; animation: cardIn .4s var(--ease) both; }
html[data-contrast="on"] .tabpanel { background: #000; border: 2px solid #fff; }
.tabpanel .big-line { font: 500 clamp(1.3rem, 1rem + 1vw, 1.8rem)/1.3 var(--f-disp); letter-spacing: -.01em; max-width: 40ch; }
.cols3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1.5rem; }
.cols3 h4 { font: 600 .85rem/1.3 var(--f-disp); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); margin-bottom: .5rem; padding-bottom: .5rem; border-bottom: 2px solid var(--line); }
.cols3 p { font-size: 1.05rem; }
.plan-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; margin-top: 1.5rem; }
.plan-foot p { font-size: 1.05rem; color: var(--ink-2); }
html[data-contrast="on"] .plan-foot p { color: #fff; }

/* ---------- 11. After you refer ---------- */
.steps-wrap { position: relative; max-width: 56rem; }
.steps-wrap::before { content: ''; position: absolute; left: calc(1.6rem - 2px); top: 1.6rem; bottom: 1.6rem; width: 4px; background: var(--line-strong); opacity: .35; border-radius: 4px; }
.steps-wrap .tide { position: absolute; z-index: 1; left: calc(1.6rem - 2px); top: 1.6rem; bottom: 1.6rem; width: 4px; background: var(--accent); border-radius: 4px; transform-origin: top; transform: scaleY(var(--p, 1)); }
.steps { position: relative; z-index: 2; display: grid; gap: 0; list-style: none; padding: 0; margin: 0; }
html[data-contrast="on"] .steps-wrap::before { background: #fff; opacity: 1; } html[data-contrast="on"] .steps-wrap .tide { background: #FFD34E; }
.step { position: relative; display: grid; grid-template-columns: 3.2rem 1fr; gap: 1.5rem; padding-bottom: 2.5rem; }
.step:last-child { padding-bottom: 0; }
.step-n { width: 3.2rem; height: 3.2rem; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; font: 600 1.25rem/1 var(--f-disp); position: relative; z-index: 1; box-shadow: 0 0 0 .5rem var(--bg); font-variant-numeric: tabular-nums; }
.sec--wash .step-n { box-shadow: 0 0 0 .5rem var(--surface-2); }
html[data-contrast="on"] .step-n { background: #FFD34E; color: #000; box-shadow: 0 0 0 .5rem #000; }
.step h3 { margin-bottom: .35rem; }
.when { display: inline-flex; align-items: center; gap: .4rem; font: 600 .95rem/1.2 var(--f-disp); color: var(--accent-text); margin-bottom: .6rem; }
.when svg.i { width: 1.15rem; height: 1.15rem; }
.step p { max-width: 58ch; }

/* ---------- 12. Rights ---------- */
.rights { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); gap: 2.5rem; align-items: start; }
.can { list-style: none; padding: 0; display: grid; gap: .25rem; }
.can li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: 1.2rem; line-height: 1.4; }
.can li:first-child { border-top: 1px solid var(--line); }
.can svg.i { width: 1.9rem; height: 1.9rem; color: var(--accent-text); margin-top: .1rem; stroke-width: 2.2; }
.can b { font-family: var(--f-disp); font-weight: 600; }
.ladder { display: grid; gap: 1rem; }
.rung { padding: 1.4rem 1.5rem; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: .5rem; }
html[data-contrast="on"] .rung { background: #000; border: 2px solid #fff; }
.rung h3 { font-size: 1.25rem; }
.rung p { font-size: 1.05rem; }
.rung .ext { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; min-height: 2.75rem; }
.rung .ext svg.i { width: 1.1rem; height: 1.1rem; }
.code-note { margin-top: 2rem; display: flex; gap: 1rem; align-items: center; padding: 1.25rem 1.5rem; border-radius: var(--r); background: var(--surface-2); max-width: 48rem; }
html[data-contrast="on"] .code-note { background: #000; border: 2px solid #fff; }
.code-note svg.pict { width: 3rem; height: 3rem; }

/* ---------- 13. About + contact ---------- */
.about { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); gap: 3rem; align-items: start; }
.about-copy { display: grid; gap: 1.1rem; }
.facts { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.facts div { display: grid; grid-template-columns: minmax(7rem, 9rem) 1fr; gap: 1rem; padding: .95rem 0; border-bottom: 1px solid var(--line); }
.facts dt { font: 600 .9rem/1.4 var(--f-disp); letter-spacing: .04em; text-transform: uppercase; color: var(--accent-text); padding-top: .15rem; }
.facts dd { margin: 0; }
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 1.25rem; }
.card { padding: 1.75rem; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: .9rem; align-content: start; }
html[data-contrast="on"] .card { background: #000; border: 2px solid #fff; }
.card h3 { font-size: 1.3rem; }
.card a { font-weight: 700; }
.areas { display: grid; gap: .6rem; }
.areas p { font-size: 1.025rem; }
.areas b { font-family: var(--f-disp); font-weight: 600; }
.card .row { display: flex; gap: .85rem; align-items: flex-start; }
.card .row svg.i { margin-top: .2rem; color: var(--accent-text); }
.card .row a { display: inline-flex; align-items: center; min-height: 2.75rem; }

/* ---------- 14. Footer ---------- */
.ftr { background: var(--band-bg); color: var(--band-ink); padding-block: clamp(3rem, 6vw, 5rem) 2rem; }
html[data-contrast="on"] .ftr { border-top: 2px solid #fff; }
.ftr a { color: inherit; }
.ftr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 2.5rem; }
.ftr h2 { font-size: 1.1rem; letter-spacing: 0; color: var(--band-ink); margin-bottom: .75rem; }
.ftr p, .ftr li { color: var(--band-ink-2); font-size: 1.025rem; }
html[data-contrast="on"] .ftr p, html[data-contrast="on"] .ftr li { color: #fff; }
.ftr ul { list-style: none; padding: 0; display: grid; gap: 0; }
.ftr ul a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.ftr .brand { color: #fff; margin-bottom: 1rem; }
.ftr .brand-name small { color: var(--band-ink-2); }
.ack { max-width: 44rem; margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid rgba(255,255,255,.22); }
.ack p { font-size: 1.025rem; color: var(--band-ink); }
.legal { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: .95rem; color: var(--band-ink-2); }
.legal a { display: inline-flex; align-items: center; min-height: 2.75rem; }

/* ---------- 15. Dock + adaptive panel (the signature) ---------- */
.dock { position: fixed; left: max(1rem, env(safe-area-inset-left)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 100; display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; max-width: calc(100vw - 2rem); }
.dock-btn { display: inline-flex; align-items: center; gap: .7rem; min-height: 3.5rem; padding: .5rem 1.25rem .5rem .6rem; border-radius: 999px; border: 0; background: var(--brand); color: var(--on-brand); font: 600 1rem/1.15 var(--f-disp); cursor: pointer; box-shadow: 0 10px 30px -6px rgba(16,32,44,.55), 0 0 0 2px var(--bg); text-align: left; transition: transform .22s var(--ease), box-shadow .22s; }
.dock-btn:hover { transform: translateY(-2px); }
.dock-btn:active { transform: scale(.97); }
.dock-ico { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--sun); color: #10202C; display: grid; place-items: center; flex: none; transition: transform .3s var(--ease); }
.dock-btn[aria-expanded="true"] .dock-ico { transform: rotate(90deg); }
.dock-btn svg.i { width: 1.4rem; height: 1.4rem; stroke-width: 1.8; }
.dock-eq { display: none; gap: 3px; align-items: flex-end; height: 1.1rem; }
.dock-eq i { width: 4px; background: currentColor; border-radius: 2px; height: 30%; }
.is-reading-now .dock-eq { display: inline-flex; }
.is-reading-now .dock-eq i { animation: eq 1s ease-in-out infinite alternate; }
.is-reading-now .dock-eq i:nth-child(2) { animation-delay: .25s; } .is-reading-now .dock-eq i:nth-child(3) { animation-delay: .5s; }
@keyframes eq { from { height: 25%; } to { height: 100%; } }
html[data-contrast="on"] .dock-btn { border: 3px solid #fff; box-shadow: none; }
@container page (max-width: 40rem) { .dock-label { max-width: 8.5rem; } }
@media (max-width: 34rem) { .dock-label { max-width: 8.5rem; } }

.panel { order: -1; width: min(25.5rem, calc(100vw - 2rem)); max-height: min(44rem, calc(100svh - 7rem)); overflow: auto; overscroll-behavior: contain; border-radius: var(--r-lg); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg), 0 0 0 1px var(--line-strong); transform-origin: bottom left; animation: panelIn .32s var(--ease) both; }
html[data-contrast="on"] .panel { border: 3px solid #fff; box-shadow: none; background: #000; }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
.panel-head { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: 1fr auto; gap: .25rem 1rem; align-items: start; padding: 1.15rem 1.25rem 1rem 1.4rem; background: var(--band-bg); color: var(--band-ink); border-radius: var(--r-lg) var(--r-lg) 0 0; }
html[data-contrast="on"] .panel-head { background: #000; border-bottom: 2px solid #fff; }
.panel-head h2 { font-size: 1.3rem; line-height: 1.15; letter-spacing: -.01em; }
.panel-head h2:focus { outline: none; }
.panel-head p { grid-column: 1; font-size: .95rem; line-height: 1.4; color: var(--band-ink-2); }
html[data-contrast="on"] .panel-head p { color: #fff; }
.panel-head .icon-btn { grid-column: 2; grid-row: 1 / span 2; background: transparent; color: inherit; border-color: rgba(255,255,255,.5); }
.panel-head .icon-btn:hover { background: rgba(255,255,255,.14); }
.panel-body { padding: 1.25rem 1.4rem 1.4rem; display: grid; gap: 1.25rem; }
.p-group { border: 0; padding: 0; margin: 0; min-width: 0; }
.p-group > legend, .p-group > h3 { font: 600 .85rem/1.3 var(--f-disp); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); margin: 0 0 .6rem; padding: 0; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.seg span { display: grid; justify-items: center; align-content: center; gap: .1rem; min-height: 4.25rem; padding: .4rem .25rem; border-radius: 1rem; border: 2px solid var(--line-strong); background: var(--bg); font: 500 .8rem/1.2 var(--f-body); text-align: center; transition: background-color .18s, border-color .18s, transform .18s var(--ease); }
.seg span b { font: 600 1.5rem/1 var(--f-disp); }
.seg label:nth-child(1) span b { font-size: 1.1rem; } .seg label:nth-child(2) span b { font-size: 1.5rem; } .seg label:nth-child(3) span b { font-size: 1.95rem; }
.seg input:checked + span { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.seg input:focus-visible + span { outline: 4px solid var(--sun); outline-offset: 2px; box-shadow: 0 0 0 2px var(--ring-in); }
html[data-contrast="on"] .seg input:checked + span { background: #FFD34E; color: #000; border-color: #FFD34E; }
html[data-contrast="on"] .seg span { background: #000; border-color: #fff; }
.tiles { display: grid; grid-template-columns: 1fr; gap: .6rem; }
.tile { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .9rem; text-align: left; min-height: 4.5rem; padding: .55rem .9rem .55rem .7rem; border-radius: 1.1rem; border: 2px solid var(--line-strong); background: var(--bg); color: var(--ink); cursor: pointer; transition: background-color .2s, border-color .2s, transform .18s var(--ease); }
.tile:hover { border-color: var(--ink); }
.tile:active { transform: scale(.985); }
.tile svg.pict { width: 2.75rem; height: 2.75rem; padding: .25rem; border-radius: .9rem .9rem .4rem .4rem; background: var(--surface); }
.tile-t { display: block; font: 600 1.05rem/1.2 var(--f-disp); }
.tile-d { display: block; font: 400 .9rem/1.35 var(--f-body); color: var(--ink-2); }
.tile-s { font: 700 .85rem/1 var(--f-disp); padding: .4rem .7rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-strong); min-width: 3.1rem; text-align: center; }
.tile[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.tile[aria-pressed="true"] .tile-d { color: inherit; opacity: .92; }
.tile[aria-pressed="true"] .tile-s { background: var(--sun); color: #10202C; border-color: var(--sun); }
.tile[aria-pressed="true"] svg.pict { color: #123A5C; background: #fff; }
.tile[aria-pressed="true"] svg.pict .pa { fill: #BFE3DF; }
html[data-contrast="on"] .tile { background: #000; border-color: #fff; }
html[data-contrast="on"] .tile-d { color: #fff; }
html[data-contrast="on"] .tile[aria-pressed="true"] { background: #FFD34E; color: #000; }
html[data-contrast="on"] .tile[aria-pressed="true"] .tile-s { background: #000; color: #fff; border-color: #000; }
.read { padding: 1rem; border-radius: 1.1rem; border: 2px solid var(--line-strong); background: var(--bg); display: grid; gap: .75rem; }
.read-top { display: flex; gap: .8rem; align-items: center; }
.read-top svg.pict { width: 2.75rem; height: 2.75rem; padding: .25rem; border-radius: .9rem .9rem .4rem .4rem; background: var(--surface); }
.read-status { font-size: .95rem; line-height: 1.4; color: var(--ink-2); }
html[data-contrast="on"] .read-status { color: #fff; }
.read-btns { display: flex; flex-wrap: wrap; gap: .5rem; }
.rbtn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.75rem; padding: .4rem 1.1rem; border-radius: 999px; border: 2px solid var(--line-strong); background: var(--surface); color: var(--ink); font: 600 .95rem/1 var(--f-disp); cursor: pointer; transition: background-color .15s, transform .15s; }
.rbtn:hover:not(:disabled) { background: var(--surface-2); }
.rbtn:active:not(:disabled) { transform: scale(.96); }
.rbtn:disabled { opacity: .5; cursor: not-allowed; }
.rbtn--go { background: var(--btn-bg); color: var(--btn-ink); border-color: var(--btn-bg); flex: 1 1 8rem; }
.rbtn--go:hover:not(:disabled) { background: var(--btn-hover); }
.rbtn svg.i { width: 1.1rem; height: 1.1rem; }
.panel-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding-top: .25rem; font-size: .9rem; color: var(--ink-2); }
html[data-contrast="on"] .panel-foot { color: #fff; }
.linkbtn { background: none; border: 0; padding: 0 .25rem; min-height: 2.75rem; color: var(--accent-text); font: 700 .95rem/1 var(--f-body); text-decoration: underline; cursor: pointer; }
@media (max-width: 34rem) {
  .panel { width: calc(100vw - 2rem); }
}

.totop { position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 90; width: 3.5rem; height: 3.5rem; border-radius: 50%; border: 0; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg), 0 0 0 2px var(--line-strong); display: grid; place-items: center; cursor: pointer; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s var(--ease); }
.totop.show { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { background: var(--surface-2); }
html[data-contrast="on"] .totop { border: 2px solid #fff; }

/* ---------- 16. Reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- 17. Form (refer.html) ---------- */
.form-hero { padding-block: clamp(2rem, 4vw, 3.5rem) 1.5rem; }
.form-hero h1 { font-size: clamp(2rem, 1.1rem + 3.2vw, 3.4rem); }
.form-hero .lede { margin-top: 1rem; font-size: 1.2rem; color: var(--ink-2); max-width: 46rem; }
html[data-contrast="on"] .form-hero .lede { color: #fff; }
.crumbs { margin-bottom: 1.25rem; font-size: 1rem; }
.crumbs a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.referral { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; padding-bottom: var(--sec-y); }
.progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; list-style: none; padding: 0; margin-bottom: 1.5rem; }
.progress li { display: grid; gap: .5rem; font: 600 .95rem/1.25 var(--f-disp); color: var(--ink-2); }
html[data-contrast="on"] .progress li { color: #fff; }
.progress li::before { content: ''; height: .5rem; border-radius: 1rem; background: var(--line); transition: background-color .4s; }
.progress li[aria-current="step"] { color: var(--ink); }
.progress li[aria-current="step"]::before { background: var(--accent); }
.progress li.done::before { background: var(--brand); }
.progress li .pn { display: block; font-weight: 500; font-size: .85rem; color: var(--ink-2); }
html[data-contrast="on"] .progress li::before { background: #444; } html[data-contrast="on"] .progress li.done::before, html[data-contrast="on"] .progress li[aria-current="step"]::before { background: #FFD34E; }
@container page (max-width: 36rem) { .progress li .t { display: none; } }
.fcard { padding: clamp(1.25rem, 3.5vw, 2.5rem); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 1.75rem; max-width: 52rem; }
html[data-contrast="on"] .fcard { background: #000; border: 2px solid #fff; }
.fcard h2 { font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.3rem); }
.fcard .step-lede { color: var(--ink-2); font-size: 1.1rem; margin-top: .6rem; }
html[data-contrast="on"] .fcard .step-lede { color: #fff; }
.fgrid { display: grid; gap: 1.5rem; }
.fgrid.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.field { display: grid; gap: .4rem; min-width: 0; }
.field > label, .field > .lg, fieldset.field > legend { font: 600 1.05rem/1.3 var(--f-disp); padding: 0; }
fieldset.field { border: 0; padding: 0; margin: 0; }
fieldset.field > legend { margin-bottom: .5rem; }
.field .req { color: var(--accent-text); font-weight: 500; font-size: .9rem; font-family: var(--f-body); }
.field .help { font-size: 1rem; color: var(--ink-2); max-width: 60ch; }
html[data-contrast="on"] .field .help { color: #fff; }
.field .err { display: none; align-items: flex-start; gap: .5rem; font-weight: 700; color: #A31F1F; font-size: 1rem; }
.field .err::before { content: '!'; flex: none; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: #A31F1F; color: #fff; display: grid; place-items: center; font: 700 .9rem/1 var(--f-disp); margin-top: .1rem; }
html[data-theme="dark"] .field .err { color: #FFB4A8; } html[data-theme="dark"] .field .err::before { background: #FFB4A8; color: #3A0A04; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .field .err { color: #FFB4A8; } :root:not([data-theme="light"]) .field .err::before { background: #FFB4A8; color: #3A0A04; } }
html[data-contrast="on"] .field .err { color: #FFD34E; } html[data-contrast="on"] .field .err::before { background: #FFD34E; color: #000; }
.field.invalid .err { display: flex; }
.field.invalid input[type="text"], .field.invalid input[type="email"], .field.invalid input[type="tel"], .field.invalid textarea, .field.invalid select { border-color: #A31F1F; box-shadow: 0 0 0 1px #A31F1F; }
html[data-theme="dark"] .field.invalid input, html[data-theme="dark"] .field.invalid select { border-color: #FFB4A8; box-shadow: 0 0 0 1px #FFB4A8; }
.choice { display: grid; gap: .6rem; }
.choice--cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.ch { position: relative; }
.ch input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.ch > span { display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: center; min-height: 3.5rem; padding: .7rem 1rem; border-radius: 1rem; border: 2px solid var(--line-strong); background: var(--bg); transition: background-color .15s, border-color .15s; }
.ch > span::before { content: ''; width: 1.5rem; height: 1.5rem; border: 2px solid var(--line-strong); border-radius: 50%; background: var(--surface); }
.ch.cb > span::before { border-radius: .4rem; }
.ch input:checked + span { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--bg)); box-shadow: inset 0 0 0 1px var(--accent); }
.ch input:checked + span::before { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 4px var(--surface); }
.ch.cb input:checked + span::before { box-shadow: none; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.500 4.500 4.500L19 7.500'/%3E%3C/svg%3E") center / 1.1rem no-repeat; }
.ch input:focus-visible + span { outline: 4px solid var(--sun); outline-offset: 2px; box-shadow: 0 0 0 2px var(--ring-in); }
.ch .t { font-weight: 700; display: block; line-height: 1.25; }
.ch .d { display: block; font-size: .95rem; color: var(--ink-2); line-height: 1.35; margin-top: .1rem; }
html[data-contrast="on"] .ch .d { color: #fff; }
html[data-contrast="on"] .ch > span { background: #000; border-color: #fff; }
html[data-contrast="on"] .ch input:checked + span { background: #1a1500; border-color: #FFD34E; box-shadow: inset 0 0 0 2px #FFD34E; }
html[data-contrast="on"] .ch > span::before { background: #000; border-color: #fff; } html[data-contrast="on"] .ch input:checked + span::before { background: #FFD34E; border-color: #FFD34E; box-shadow: inset 0 0 0 4px #000; }
.cond { display: grid; gap: 1.5rem; padding: 1.25rem; border-radius: 1rem; background: var(--surface-2); border-left: .4rem solid var(--accent); }
html[data-contrast="on"] .cond { background: #000; border: 2px solid #fff; border-left-width: .5rem; }
.fnav { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.fnav .right { display: flex; flex-wrap: wrap; gap: .75rem; margin-left: auto; }
.save-note { display: flex; gap: .75rem; align-items: flex-start; padding: 1rem 1.15rem; border-radius: 1rem; background: var(--surface-2); font-size: 1rem; max-width: 52rem; }
html[data-contrast="on"] .save-note { background: #000; border: 2px solid #fff; }
.save-note svg.i { color: var(--accent-text); margin-top: .1rem; }
.save-note .linkbtn { padding-inline: 0; font-size: 1rem; min-height: 2.75rem; }
.demo-note { font-size: .9rem; color: var(--ink-2); }
html[data-contrast="on"] .demo-note { color: #fff; }
.errsum { padding: 1.15rem 1.35rem; border-radius: 1rem; border: 3px solid #A31F1F; background: color-mix(in srgb, #A31F1F 8%, var(--surface)); display: none; }
.errsum.show { display: block; }
.errsum h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.errsum ul { padding-left: 1.2rem; display: grid; gap: .25rem; }
.errsum a { font-weight: 700; color: inherit; }
html[data-theme="dark"] .errsum { border-color: #FFB4A8; background: #2a1b1a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .errsum { border-color: #FFB4A8; background: #2a1b1a; } }
html[data-contrast="on"] .errsum { border-color: #FFD34E; background: #000; }
.summary { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.summary div { display: grid; grid-template-columns: minmax(7rem, 11rem) 1fr; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.summary dt { font: 600 .9rem/1.4 var(--f-disp); color: var(--accent-text); }
.summary dd { margin: 0; overflow-wrap: anywhere; }
.success { display: grid; gap: 1.5rem; max-width: 52rem; padding: clamp(1.5rem, 4vw, 3rem); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
html[data-contrast="on"] .success { background: #000; border: 2px solid #fff; }
.success:focus { outline: none; }
.success .tick { width: 5rem; height: 5rem; border-radius: 999px 999px 1rem 1rem; background: var(--accent); color: #fff; display: grid; place-items: center; }
.success .tick svg { width: 2.75rem; height: 2.75rem; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: tick .6s .25s var(--ease) forwards; }
@keyframes tick { to { stroke-dashoffset: 0; } }
.ref { display: inline-block; font: 600 1.4rem/1 var(--f-disp); letter-spacing: .04em; padding: .6rem 1rem; border-radius: .8rem; background: var(--surface-2); font-variant-numeric: tabular-nums; }
.next-list { list-style: none; padding: 0; display: grid; gap: 1rem; counter-reset: n; }
.next-list li { display: grid; grid-template-columns: 2.4rem 1fr; gap: 1rem; align-items: start; }
.next-list li::before { counter-increment: n; content: counter(n); width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; font: 600 1.05rem/1 var(--f-disp); }
.side { align-self: start; display: grid; gap: 1rem; max-width: 52rem; }
.side .card h3 { font-size: 1.15rem; }

/* ---------- 18. Accessibility page prose ---------- */
.prose { max-width: 46rem; display: grid; gap: 1.1rem; padding-bottom: var(--sec-y); }
.prose h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); margin-top: 1.5rem; }
.prose ul { padding-left: 1.3rem; display: grid; gap: .5rem; }
.prose li { max-width: 62ch; }

/* ---------- 19. Calm, reduced motion, print ---------- */
html[data-calm="on"] *, html[data-calm="on"] *::before, html[data-calm="on"] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html[data-calm="on"] .scene { clip-path: none; }
html[data-calm="on"] .scene-svg .fig { opacity: 1; }
html[data-calm="on"] [data-reveal] { opacity: 1 !important; transform: none !important; }
html[data-calm="on"] .way:hover, html[data-calm="on"] .sup:hover { transform: none; }
html[data-calm="on"] .grid-gap, html[data-calm="on"] .ways, html[data-calm="on"] .supports, html[data-calm="on"] .cards { gap: 1.75rem; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .scene { clip-path: none; }
  .scene-svg .fig { opacity: 1; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
@media print {
  .dock, .totop, .topbar, .nav-wrap, .tryit { display: none !important; }
  body { background: #fff; color: #000; }
  .scene { clip-path: none; animation: none; }
}

/* QA: on wide screens the docked control shrinks to its icon once you scroll, so it never sits over the text; the label returns on hover, focus or open */
@media (min-width: 62rem) {
  .dock.is-compact .dock-btn:not(:hover):not(:focus-visible):not([aria-expanded="true"]) { padding: .5rem; min-height: 3.5rem; }
  .dock.is-compact .dock-btn:not(:hover):not(:focus-visible):not([aria-expanded="true"]) .dock-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
