/* =====================================================================
   Cairn · the style
   Care built stone by stone: Young Serif headlines whose plain fact is
   underlined with a contour line, Onest for reading and Reddit Mono for
   labels, on birch paper with drifting topographic lines, river-stone
   greys and one lake blue.
   Signature pieces: the cairn (.cairn: labelled stones that stack
   themselves, bottom first), the contour map (.topo, drawn by cairn.js),
   the year of care (.year: twelve months with the visits marked), the
   path (.path: steps on a dashed trail with pebble numbers) and plaques
   (.plaque: a promise, engraved).
   Motion: html.calm stills everything (footer switch, remembered as
   "site-motion"; default from prefers-reduced-motion).
   ===================================================================== */

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
html:focus-within { scroll-behavior: smooth; }
html.calm:focus-within { scroll-behavior: auto; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--fs-body)/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--lake-soft); color: var(--ink); }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: var(--r-s); background: var(--ink); color: var(--paper); font-weight: 600; text-decoration: none; transition: top var(--d) var(--ease); }
.skip:focus { top: 12px; }

/* ---------- type ---------- */
.h1, .h2, .h3 { font-family: var(--display); font-weight: 400; color: var(--ink); text-wrap: balance; }
.h1 { font-size: var(--fs-h1); line-height: 1.04; letter-spacing: -0.02em; }
.h2 { font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -0.015em; }
.h3 { font-size: var(--fs-h3); line-height: 1.25; }
/* the lit phrase: underlined with a contour line */
.h1 em, .h2 em, .h3 em { font-style: normal; color: var(--lake); text-decoration: underline wavy color-mix(in srgb, var(--lake) 55%, transparent); text-decoration-thickness: 0.055em; text-underline-offset: 0.2em; text-decoration-skip-ink: none; }
.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--ink-2); max-width: 56ch; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-small); }
/* the eyebrow: an elevation mark */
.tag { display: inline-flex; align-items: center; gap: 10px; font: 500 var(--fs-label)/1.2 var(--mono); letter-spacing: 0.04em; color: var(--muted); }
.tag::before { content: ""; width: 18px; height: 10px; border-radius: 50% 50% 46% 54% / 60% 60% 40% 40%; background: var(--stone-2); box-shadow: 0 -5px 0 -2px var(--stone-1); flex: none; }
.tag b { font-weight: 500; color: var(--lake); }
.num, .code { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.prose p + p { margin-top: 1em; }
.prose a, .link { color: var(--lake); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.prose a:hover, .link:hover { color: var(--lake-2); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: var(--r-pill); border: 1.5px solid transparent; font: 500 16px/1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform var(--d-fast) var(--ease), background var(--d-fast), border-color var(--d-fast), color var(--d-fast); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform var(--d) var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-lake { background: var(--lake); color: var(--on-lake); }
.btn-lake:hover { background: var(--lake-2); }
.btn-line { border-color: color-mix(in srgb, var(--ink) 30%, transparent); background: transparent; color: var(--ink); }
.btn-line:hover { border-color: var(--ink); background: var(--card); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14.5px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- header and phone menu ---------- */
.nav { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-in { position: relative; display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
/* the mark: three stones, stacked */
.brand-mark { position: relative; flex: none; width: 30px; height: 34px; }
.brand-mark::before, .brand-mark::after, .brand-mark i { content: ""; position: absolute; left: 50%; border-radius: 50% 50% 46% 54% / 58% 58% 42% 42%; box-shadow: inset 0 -2px 3px rgba(0, 0, 0, 0.18); }
.brand-mark::after { bottom: 0; width: 30px; height: 13px; margin-left: -15px; background: var(--stone-2); }
.brand-mark i { bottom: 11px; width: 22px; height: 11px; margin-left: -10px; background: var(--stone-1); }
.brand-mark::before { bottom: 20px; width: 13px; height: 10px; margin-left: -6px; background: var(--lake); }
.brand-word { font: 400 23px/1 var(--display); letter-spacing: -0.01em; }
.brand-sub { display: block; font: 500 11px/1.2 var(--mono); letter-spacing: 0.03em; color: var(--muted); margin-top: 5px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a { position: relative; padding: 10px 13px; text-decoration: none; font: 500 15.5px/1 var(--body); color: var(--ink-2); border-radius: var(--r-pill); transition: color var(--d-fast), background var(--d-fast); }
.nav-links a:hover { color: var(--ink); background: var(--well); }
.nav-links a[aria-current="page"] { color: var(--ink); background: var(--lake-soft); }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); cursor: pointer; place-items: center; }
.menu-btn i, .menu-btn i::before, .menu-btn i::after { display: block; width: 18px; height: 1.8px; background: var(--ink); position: relative; transition: transform var(--d) var(--ease), background var(--d-fast); }
.menu-btn i::before, .menu-btn i::after { content: ""; position: absolute; left: 0; }
.menu-btn i::before { top: -6px; } .menu-btn i::after { top: 6px; }
.menu-btn[aria-expanded="true"] i { background: transparent; }
.menu-btn[aria-expanded="true"] i::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i::after { transform: translateY(-6px) rotate(-45deg); }
.site-menu { position: absolute; left: 0; right: 0; top: 100%; display: grid; padding: 12px var(--gutter) 22px; background: var(--card); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-card); animation: cn-drop var(--d) var(--ease) both; }
.site-menu a { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 15px 0; border-bottom: 1px solid var(--line); text-decoration: none; font: 400 26px/1.1 var(--display); color: var(--ink); }
.site-menu a::after { content: attr(data-no); font: 500 11px/1 var(--mono); color: var(--muted); }
.site-menu a[aria-current="page"] { color: var(--lake); }
.site-menu .btn { display: flex; justify-content: center; margin-top: 18px; border-bottom: 0; font: 500 17px/1 var(--body); color: var(--on-lake); }
.site-menu .btn::after { display: none; }
@keyframes cn-drop { from { opacity: 0; transform: translateY(-8px); } }
html.calm .site-menu { animation: none; }
@media (max-width: 980px) { .nav-links { display: none; } .menu-btn { display: grid; } }
@media (max-width: 560px) { .nav .nav-cta { display: none; } }
@media (min-width: 981px) { .site-menu { display: none !important; } }

/* ---------- the plain-words bar ---------- */
.plainbar { background: var(--well); border-bottom: 1px solid var(--line); }
.plainbar .wrap { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 38px; padding-block: 8px; text-align: center; font: 400 14px/1.4 var(--body); color: var(--ink-2); }
.plainbar b { font: 500 11.5px/1 var(--mono); color: var(--lake); }
@media (max-width: 560px) { .plainbar b { display: none; } }

/* ---------- sections ---------- */
.section { position: relative; padding-block: clamp(64px, 9vw, 116px); }
.section.alt { background: var(--well); }
.section-head { display: grid; gap: 16px; justify-items: start; max-width: 760px; margin-bottom: clamp(30px, 4.5vw, 56px); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 980px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.grid-2.lean { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .grid-2.lean { grid-template-columns: 1fr; } }

/* ---------- the contour map ---------- */
.topo { position: absolute; inset: 0; pointer-events: none; overflow: hidden; color: var(--topo); }
.topo svg { position: absolute; max-width: none; width: 140%; height: 140%; left: -20%; top: -20%; }
.topo path { fill: none; stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; }
.topo path.idx { stroke-width: 1.8; }
html:not(.calm) .topo svg { animation: cn-drift 90s ease-in-out infinite alternate; }
@keyframes cn-drift { from { transform: translate(-2%, -1%) rotate(-1deg); } to { transform: translate(2%, 1.5%) rotate(1.5deg); } }
.topo + .wrap { position: relative; }

/* ---------- hero ---------- */
.hero { position: relative; padding-block: clamp(36px, 6vw, 88px) clamp(60px, 8vw, 110px); overflow: clip; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 22px; justify-items: start; min-width: 0; }
.hero-facts { display: grid; gap: 8px; font: 400 14.5px/1.4 var(--mono); color: var(--ink-2); }
.hero-facts li { display: flex; gap: 10px; align-items: baseline; }
.hero-facts li::before { content: ""; flex: none; width: 10px; height: 7px; border-radius: 50%; background: var(--stone-2); transform: translateY(-1px); }
@media (max-width: 1000px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------- the cairn (signature) ---------- */
.cairn { position: relative; justify-self: center; width: min(460px, 100%); padding-bottom: 26px; }
.cairn ol { display: flex; flex-direction: column-reverse; align-items: center; gap: 0; }
.cairn .stone { --w: 80%; --h: 74px; --tilt: 0deg; --c: var(--stone-1); --i: 0; position: relative; display: grid; place-content: center; justify-items: center; gap: 2px; width: var(--w); min-height: var(--h); margin-top: -6px; padding: 10px 26px; text-align: center; color: var(--stone-ink); background: radial-gradient(120% 90% at 35% 25%, color-mix(in srgb, #fff 26%, var(--c)), var(--c) 55%, color-mix(in srgb, #000 10%, var(--c))); border-radius: 50% 50% 46% 54% / 62% 58% 42% 38%; box-shadow: var(--shadow-stone); transform: rotate(var(--tilt)); z-index: calc(10 - var(--i)); }
.cairn .stone b { font: 400 19px/1.15 var(--display); }
.cairn .stone small { font: 500 11.5px/1.3 var(--mono); letter-spacing: 0.02em; opacity: 0.85; }
.cairn .stone.top { --c: var(--lake); color: var(--on-lake); }
/* the ground and its shadow */
.cairn::after { content: ""; position: absolute; left: 6%; right: 6%; bottom: 8px; height: 22px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--ink) 22%, transparent), transparent); z-index: -1; }
/* stacking: each stone drops and settles, bottom first */
.js .cairn[data-cairn] .stone { opacity: 0; transform: translateY(-70px) rotate(calc(var(--tilt) * 4)); }
.js .cairn[data-cairn].built .stone { opacity: 1; transform: rotate(var(--tilt)); transition: transform 700ms var(--settle) calc(var(--i) * 330ms), opacity 250ms var(--ease) calc(var(--i) * 330ms); }
html.calm .cairn .stone { opacity: 1 !important; transform: rotate(var(--tilt)) !important; transition: none !important; }
/* a stone you can point at (in a cairn of choices) */
.cairn .stone[data-note] { cursor: help; }
@media (max-width: 560px) { .cairn .stone { --h: 64px; padding: 8px 18px; } .cairn .stone b { font-size: 17px; } }

/* ---------- the year of care ---------- */
.year { position: relative; display: grid; gap: 18px; padding: 26px 24px 22px; border-radius: var(--r-l); background: var(--card); box-shadow: var(--shadow-card), 0 0 0 1px var(--line); }
.year-track { position: relative; display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); align-items: end; height: 92px; }
.year-track::before { content: ""; position: absolute; left: 0; right: 0; bottom: 26px; height: 4px; border-radius: 2px; background: var(--well); box-shadow: inset 0 0 0 1px var(--line); }
.year-track::after { content: ""; position: absolute; left: 0; bottom: 26px; height: 4px; border-radius: 2px; width: calc(100% * var(--p, 0)); background: var(--lake); transition: width 2200ms var(--ease); }
html.calm .year-track::after { transition: none; }
.year-track .m { position: relative; z-index: 1; display: grid; justify-items: center; gap: 4px; font: 500 11px/1 var(--mono); color: var(--muted); }
.year-track .m::before { content: ""; width: 2px; height: 8px; background: var(--line); margin-bottom: 14px; }
.year-track .m.mark::before { width: 26px; height: 15px; margin-bottom: 7px; border-radius: 50% 50% 46% 54% / 62% 58% 42% 38%; background: var(--stone-2); box-shadow: var(--shadow-stone); transform: translateY(-10px) scale(0.4); opacity: 0; transition: transform 500ms var(--settle), opacity 200ms; }
.year-track .m.mark.on::before { transform: translateY(0) scale(1); opacity: 1; }
.year-track .m.mark.lake::before { background: var(--lake); }
html.calm .year-track .m.mark::before { transform: none; opacity: 1; transition: none; }
.year-track .m b { position: absolute; bottom: 64px; left: 50%; translate: -50% 0; font: 500 11.5px/1.2 var(--mono); color: var(--ink); white-space: nowrap; }
.year-track .m:nth-child(even) b { bottom: 82px; }
.year-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 15px; color: var(--ink-2); }
.year-legend span { display: inline-flex; align-items: center; gap: 8px; }
.year-legend i { width: 18px; height: 10px; border-radius: 50%; background: var(--stone-2); }
.year-legend i.lake { background: var(--lake); }
@media (max-width: 640px) {
  .year { padding: 20px 14px 18px; }
  .year-track .m { font-size: 9.5px; }
  .year-track .m b { font-size: 10px; }
  .year-track { height: 60px; }
  .year-track .m b { display: none; }
  .year-track .m span { white-space: nowrap; }
  .year-track .m:not(.mark) span { visibility: hidden; }
  .year .year-list { display: grid; gap: 6px; }
}
.year-list { display: none; }
.year-list li { display: grid; grid-template-columns: 22px 64px 1fr; align-items: center; gap: 8px; font-size: 15px; color: var(--ink-2); }
.year-list li::before { content: ""; width: 20px; height: 11px; border-radius: 50%; background: var(--stone-2); }
.year-list li.lake::before { background: var(--lake); }
.year-list span { font: 500 12px/1 var(--mono); color: var(--muted); }
.year-list b { font-weight: 500; color: var(--ink); }

/* ---------- the path ---------- */
.path { position: relative; display: grid; gap: 0; counter-reset: step; }
.path::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; border-left: 2px dashed var(--line); }
.path > li { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 18px; padding-bottom: 26px; counter-increment: step; }
.path > li:last-child { padding-bottom: 0; }
.path > li::before { content: counter(step); grid-row: 1 / span 3; display: grid; place-items: center; width: 44px; height: 34px; margin-top: 2px; border-radius: 50% 50% 46% 54% / 62% 58% 42% 38%; background: var(--stone-1); color: var(--stone-ink); box-shadow: var(--shadow-stone); font: 500 15px/1 var(--mono); }
.path > li.you::before { background: var(--card); box-shadow: 0 0 0 1.5px var(--line); color: var(--ink-2); }
.path > li.us::before { background: var(--lake); color: var(--on-lake); }
.path h3 { font: 400 21px/1.25 var(--display); }
.path p { color: var(--ink-2); font-size: 16px; margin-top: 4px; }
.path .who { display: inline-block; margin-top: 2px; font: 500 11.5px/1.2 var(--mono); color: var(--muted); }

/* ---------- plaques ---------- */
.plaque { position: relative; display: grid; gap: 6px; padding: 22px 24px; border-radius: var(--r-m); background: var(--card); box-shadow: 0 0 0 1px var(--line), inset 0 0 0 6px var(--card), inset 0 0 0 7px var(--line); }
.plaque .k { font: 500 11.5px/1.2 var(--mono); color: var(--muted); }
.plaque b { font: 400 34px/1.1 var(--display); color: var(--ink); }
.plaque p { font-size: 15.5px; color: var(--ink-2); }
.plaque.lake { background: var(--lake-soft); box-shadow: inset 0 0 0 6px var(--lake-soft), inset 0 0 0 7px color-mix(in srgb, var(--lake) 40%, transparent); }
.plaque.lake b { color: var(--lake); }

/* ---------- cards, facts, notices ---------- */
.card { display: grid; gap: 10px; align-content: start; padding: 24px; border-radius: var(--r-m); background: var(--card); box-shadow: var(--shadow-card), 0 0 0 1px var(--line); min-width: 0; }
.card .k { font: 500 11.5px/1.2 var(--mono); color: var(--lake); }
.card h3 { font: 400 22px/1.2 var(--display); }
.card p { color: var(--ink-2); font-size: 16px; }
.card ul { display: grid; gap: 7px; font-size: 15.5px; color: var(--ink-2); }
.card ul li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; }
.card ul li::before { content: ""; width: 12px; height: 8px; margin-top: 8px; border-radius: 50%; background: var(--stone-2); }
.card.no ul li::before { background: none; border: 1.5px solid var(--muted); width: 10px; height: 10px; border-radius: 50%; margin-top: 7px; background: linear-gradient(45deg, transparent 45%, var(--muted) 45% 58%, transparent 58%); }
.facts { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 14px; }
.facts > div { display: grid; gap: 6px; align-content: start; padding: 20px; border-radius: var(--r-m); background: var(--card); box-shadow: 0 0 0 1px var(--line); min-width: 0; }
.facts .k { font: 500 11.5px/1.2 var(--mono); color: var(--lake); }
.facts b { font: 400 22px/1.15 var(--display); }
.facts p { font-size: 15.5px; color: var(--ink-2); }
@media (max-width: 900px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } }
.notice { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; padding: 18px 20px; border-radius: var(--r-m); background: var(--lake-soft); font-size: 16px; color: var(--ink-2); }
.notice svg { width: 20px; height: 20px; color: var(--lake); margin-top: 3px; }
.notice b { color: var(--ink); }

/* ---------- closing ---------- */
.close { padding-block: clamp(56px, 8vw, 100px); }
.close-card { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 30px; align-items: end; padding: clamp(28px, 5vw, 60px); border-radius: var(--r-l); background: #1c2a35; color: #e9edf0; overflow: hidden; isolation: isolate; }
.close-card > .topo { color: #2c3f4d; z-index: -1; }
.close-card .h2 { color: #fff; }
.close-card .h2 em { color: var(--close-em, #9fd2f4); text-decoration-color: color-mix(in srgb, var(--close-em, #9fd2f4) 55%, transparent); }
.close-card p { color: #c3cbd2; max-width: 52ch; margin-top: 14px; }
.close-card .tag { color: #a9b4bd; }
.close-card .tag b { color: var(--close-em, #9fd2f4); }
.close-card .btn-lake { background: #fff; color: #1c2a35; }
.close-card .btn-lake:hover { background: #dce9f2; }
.close-card .btn-line { border-color: rgba(233, 237, 240, 0.5); color: #e9edf0; }
.close-card .btn-line:hover { background: rgba(255, 255, 255, 0.08); border-color: #e9edf0; }
.close-card :focus-visible { outline-color: #fff; }
@media (max-width: 860px) { .close-card { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 880px; }
.faq details { border-radius: var(--r-m); background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 18px 22px; font: 600 19px/1.3 var(--display); letter-spacing: -0.01em; border-radius: var(--r-m); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line); background: linear-gradient(var(--lake), var(--lake)) center / 10px 1.6px no-repeat, linear-gradient(var(--lake), var(--lake)) center / 1.6px 10px no-repeat; transition: transform var(--d) var(--ease); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details > div { padding: 0 22px 20px; color: var(--ink-2); max-width: 72ch; }

/* ---------- footer ---------- */
.foot { padding-block: 56px 30px; border-top: 1px solid var(--line); background: var(--well); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot h4 { font: 500 var(--fs-label)/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.foot ul { display: grid; gap: 9px; }
.foot a { text-decoration: none; color: var(--ink-2); }
.foot a:hover { color: var(--lake); }
.licence { margin-top: 28px; padding: 14px 16px; border-radius: var(--r-s); background: var(--card); box-shadow: 0 0 0 1px var(--line); font: 400 12px/1.7 var(--mono); color: var(--muted); }
.licence b { color: var(--ink); font-weight: 500; }
.foot-base { display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: space-between; align-items: center; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.foot-switches { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- switch ---------- */
.switch { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--card); cursor: pointer; font: 500 14.5px/1 var(--body); color: var(--ink-2); }
.switch .sw { position: relative; flex: none; width: 38px; height: 22px; border-radius: var(--r-pill); background: var(--well); box-shadow: inset 0 0 0 1px var(--line); transition: background var(--d-fast); }
.switch .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--card); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); transition: transform var(--d) var(--ease); }
.switch[aria-checked="true"] .sw { background: var(--lake); box-shadow: none; }
.switch[aria-checked="true"] .sw::after { transform: translateX(16px); background: #fff; }

/* =====================================================================
   Multi-page kit
   ===================================================================== */
.page-head { position: relative; padding-block: clamp(30px, 4.5vw, 64px) clamp(34px, 4.5vw, 60px); border-bottom: 1px solid var(--line); overflow: clip; }
.page-head > .topo { inset: 0; }
.page-head .wrap { position: relative; }
.page-head .h1 { font-size: clamp(38px, 5vw, 68px); margin-top: 16px; }
.page-head .lead { margin-top: 16px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font: 500 11.5px/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--lake); }
.crumbs span[aria-hidden] { opacity: 0.6; }

.field { display: grid; gap: 7px; min-width: 0; }
.field > span, .field-set > legend { font: 600 15.5px/1.25 var(--body); color: var(--ink); }
.field small, .field-set > legend small { color: var(--muted); font: 400 14px/1.35 var(--body); }
.field input, .field textarea, .field select { width: 100%; min-height: 50px; padding: 12px 15px; border-radius: var(--r-s); border: 1px solid color-mix(in srgb, var(--ink) 25%, var(--line)); background: var(--card); color: var(--ink); transition: box-shadow var(--d-fast), border-color var(--d-fast); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 30%, transparent); }
.field [aria-invalid="true"] { border-color: var(--lake); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lake) 20%, transparent); }
.field select { appearance: none; -webkit-appearance: none; padding-right: 44px; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(-45deg, transparent 50%, var(--ink) 50%); background-size: 6px 6px; background-position: right 22px center, right 16px center; background-repeat: no-repeat; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field-wide { grid-column: 1 / -1; }
@media (max-width: 620px) { .fields { grid-template-columns: 1fr; } }
fieldset.field-set { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 10px; }
fieldset.field-set > legend { padding: 0; margin-bottom: 10px; }
fieldset.field-set > .seg { justify-self: start; }
.form-card { display: grid; gap: 22px; padding: clamp(22px, 3.5vw, 38px); border-radius: var(--r-l); background: var(--card); box-shadow: var(--shadow-card), 0 0 0 1px var(--line); }
.form-done { padding: 16px 18px; border-radius: var(--r-m); background: var(--lake-soft); color: var(--ink); font-weight: 600; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--ink-2); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--lake); }

.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.choice { position: relative; display: block; cursor: pointer; min-width: 0; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice > span { display: grid; gap: 3px; height: 100%; padding: 15px 17px; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--card); transition: border-color var(--d-fast), background var(--d-fast), box-shadow var(--d-fast); }
.choice > span b { font: 600 17px/1.2 var(--display); }
.choice > span small { color: var(--muted); font-size: 14.5px; }
.choice:hover > span { border-color: color-mix(in srgb, var(--ink) 40%, var(--line)); }
.choice input:checked + span { border-color: var(--lake); box-shadow: 0 0 0 1px var(--lake); background: color-mix(in srgb, var(--lake-soft) 45%, var(--card)); }
.choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--card); }
.seg button, .seg label { position: relative; padding: 9px 15px; border: 0; border-radius: var(--r-pill); background: transparent; cursor: pointer; font: 500 14.5px/1 var(--body); color: var(--ink-2); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg button:hover, .seg label:hover { background: var(--well); }
.seg button[aria-pressed="true"], .seg label:has(input:checked) { background: var(--ink); color: var(--paper); }
.seg label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }

input.range { --p: 50%; appearance: none; -webkit-appearance: none; width: 100%; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--lake) 0 var(--p), var(--line) var(--p) 100%); cursor: pointer; }
input.range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--card); border: 2px solid var(--lake); box-shadow: var(--shadow-card); }
input.range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--card); border: 2px solid var(--lake); }

.table { overflow-x: auto; border-radius: var(--r-m); background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.table table { width: 100%; border-collapse: collapse; font-size: 16px; }
.table caption { caption-side: bottom; text-align: left; padding: 12px 18px; font: 400 12px/1.5 var(--mono); color: var(--muted); }
.table th, .table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child > * { border-bottom: 0; }
.table thead th { font: 500 10.5px/1.2 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); background: var(--well); border-bottom: 1px solid var(--line); }
.table tbody th { font: 600 16.5px/1.35 var(--display); }
.table td { color: var(--ink-2); }
.table .r { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 680px) {
  .table.stack table, .table.stack tbody, .table.stack tr, .table.stack td, .table.stack th { display: block; }
  .table.stack table { display: flex; flex-direction: column; }
  .table.stack caption { display: block; order: 1; }
  .table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table.stack tr { padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .table.stack td, .table.stack th { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 12px; border: 0; padding: 4px 0; text-align: left !important; }
  .table.stack th[scope="row"] { display: block; }
  .table.stack td::before { content: attr(data-label); font: 500 10.5px/1.5 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
}

/* ---------- reveal on scroll ---------- */
.js [data-enter] { opacity: 0; transform: translateY(16px); transition: opacity 650ms var(--ease), transform 650ms var(--ease); }
.js [data-enter].entered { opacity: 1; transform: none; }
html.calm [data-enter] { opacity: 1 !important; transform: none !important; transition: none !important; }

@media print { .nav, .foot-switches, .menu-btn, .site-menu, .topo { display: none !important; } body { background: #fff; } }
