/* Reset, typography, links, buttons, focus, motion, forced colours. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body { margin: 0; font-family: var(--f-body); font-size: 1.125rem; line-height: var(--lh); letter-spacing: var(--ls); word-spacing: var(--ws); background: #000; color: #fff; overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-weight: 800; line-height: 1.12; margin: 0 0 .6em; color: var(--hd); text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.2rem + 6.2vw, 6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 1.1rem + 4.4vw, 4.5rem); }
h3 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); }
p, ul, ol, dl { margin: 0 0 1em; }
p { max-width: 62ch; }
a { color: var(--lk); text-decoration: underline; text-decoration-thickness: .12em; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .22em; }
a[href^="mailto:"] { overflow-wrap: break-word; }
.src a, .contact a, .steps a, .news ~ p a { display: inline-block; padding-block: .5rem; line-height: 1.4; }
.mono, .tel, time, .code { font-family: var(--f-mono); font-variant-numeric: lining-nums; }
.tel { white-space: nowrap; font-weight: 600; }
strong { font-weight: 800; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }

/* Focus: white inner ring + black outer ring reads on orange, black and cream grounds. */
:focus-visible { outline: 3px solid #000; outline-offset: 3px; box-shadow: 0 0 0 3px #fff; border-radius: 2px; }
:focus:not(:focus-visible) { outline: none; }
html[data-contrast="high"] :focus-visible { box-shadow: 0 0 0 3px var(--y); outline-color: #000; }

.skip { position: absolute; left: .5rem; top: -6rem; z-index: 100; background: #000; color: #fff; padding: .8rem 1.2rem; font-weight: 600; border: 3px solid var(--o); min-height: 2.75rem; }
.skip:focus { top: .5rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3rem; min-width: 3rem; padding: .55rem 1.3rem; font: 600 1.0625rem/1.3 var(--f-body); letter-spacing: inherit; text-align: center; text-decoration: none; color: var(--pt); background: var(--pf); border: 3px solid var(--pf); border-radius: 0; cursor: pointer; transition: background-color .12s, color .12s; }
.btn:hover { background: transparent; color: var(--fg); border-color: var(--fg); }
.btn.alt { background: transparent; color: var(--fg); border-color: var(--fg); }
.btn.alt:hover { background: var(--pf); color: var(--pt); border-color: var(--pf); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem 1rem; margin-top: 1.5rem; }

/* Block sections and dot rail (Braille-dot divider, decorative) */
.blk { background: var(--bg); color: var(--fg); padding-block: 0 clamp(3rem, 8vw, 6rem); }
.blk::before { content: ""; display: block; height: 1.5rem; margin-bottom: clamp(2.5rem, 7vw, 5rem); background: radial-gradient(circle at 50% 50%, var(--rail) 4px, transparent 4.5px) 0 0 / 1.5rem 1.5rem repeat-x; opacity: .85; }
.num { display: inline-block; font: 600 1rem/1 var(--f-mono); letter-spacing: .08em; padding: .35rem .6rem; border: 3px solid var(--fg); margin-bottom: 1.2rem; }
.lead { font-size: clamp(1.2rem, 1rem + .8vw, 1.6rem); line-height: 1.5; max-width: 40ch; }
.grid { display: grid; gap: 1.25rem; }
.card { background: var(--cd); color: var(--cf); border: 3px solid var(--bd); padding: 1.4rem; --lk: var(--cf); --hd: var(--cf); }
.card h3 { color: var(--cf); }
.card a { color: var(--cf); }

/* Reveal (progressive enhancement; only cards) */
.js .rv { opacity: 0; translate: 0 14px; transition: opacity .25s ease-out, translate .25s ease-out; }
.js .rv.in { opacity: 1; translate: 0 0; }

/* One CSS scroll-driven effect: page progress bar */
.progress { display: none; }
@supports (animation-timeline: scroll()) {
  .progress { display: block; position: fixed; inset: 0 0 auto 0; height: 6px; z-index: 90; background: var(--o); transform-origin: 0 50%; transform: scaleX(0); animation: grow linear both; animation-timeline: scroll(root); pointer-events: none; }
  @keyframes grow { to { transform: scaleX(1); } }
}

/* Motion off: reduced-motion media query OR the panel switch */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .rv { opacity: 1; translate: none; }
  .progress { display: none !important; }
}
html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html[data-motion="off"] .js .rv, html[data-motion="off"].js .rv { opacity: 1; translate: none; }
html[data-motion="off"] .progress { display: none !important; }

@media (forced-colors: active) {
  :focus-visible { outline: 3px solid Highlight; box-shadow: none; }
  .btn, .card, .num { border: 3px solid ButtonText; }
  .blk::before { background-image: radial-gradient(circle at 50% 50%, CanvasText 4px, transparent 4.5px); }
  .btn:hover { background: ButtonFace; color: ButtonText; border-style: double; }
}

/* Avoid single words alone on the last line */
p, li, figcaption, dd, small { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }

/* Coordinator fix 2026-11-28: at 150 % text on narrow screens let phone numbers wrap between digit groups rather than overflow */
@media (max-width: 24rem) { html[data-size="3"] .tel { white-space: normal; } }
main:focus { outline: none; }
