/* ===== tokens ===== */
/* Design tokens: the only place brand values live. One dark theme, one accent (amber). */
:root {
  /* colour */
  --bg: #F5F3F1;             /* page; the EffectCraft loops are colour-inverted in CSS to this same tone */
  --bg-2: #FFFFFF;           /* raised surface */
  --bg-3: #ECE9E5;           /* hover / inputs */
  --line: #D8D3CC;
  --field: #6B737B;          /* input borders */
  --text: #0A0C0E;
  --muted: #4A5158;
  --amber: #F2A526;          /* fills only on light surfaces */
  --amber-hi: #FFD06B;
  --amber-deep: #E0791C;
  --gold: #855300;           /* amber as text / icons on light surfaces (AA) */
  --white: #FFFFFF;
  --bad: #B3261E;
  /* names the accessibility widget still uses */
  --ink: #0A0C0E;
  --ink-2: #111417;
  --line-dark: #272D33;

  /* type */
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: Geist, "Helvetica Neue", Arial, sans-serif;

  /* shape: pills for controls, 20px for surfaces, 12px for inputs */
  --r-in: 12px;
  --r: 20px;
  --ease: cubic-bezier(.23, 1, .32, 1);        /* strong ease-out */
  --ease-io: cubic-bezier(.77, 0, .175, 1);     /* on-screen movement */
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(80px, 11vw, 150px);

  /* layering */
  --z-nav: 1000;
  --z-menu: 1100;
  --z-widget: 1200;
}
/* dark surfaces (header, menu, footer): same token names, dark values */
.on-dark {
  --bg: #0A0C0E;
  --bg-2: #111417;
  --bg-3: #191D21;
  --line: #272D33;
  --text: #F4F2ED;
  --muted: #A9B0B7;
  --gold: #F2A526;
}

/* ===== fonts ===== */
/* Self-hosted variable fonts (latin subset). */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../fonts/bricolage-variable.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Geist; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/geist-variable.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ===== base ===== */
/* Reset, document styles and the primitives every page shares. */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; background-color: var(--bg); }
body {
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, video { max-width: 100%; }
img, video { display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.04; letter-spacing: -.03em; text-wrap: balance; }
p { text-wrap: pretty; }
main#main { display: block; }
main#main:focus { outline: none; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); background-color: var(--bg); }
.section--raised { background-color: var(--bg-2); }

.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.h2 { font-size: clamp(2.1rem, 5vw, 4rem); max-width: 18ch; }
.accent { color: var(--gold); }
.lede { margin-top: 22px; font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 58ch; }

/* buttons: pills */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .98rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .3s var(--ease), background-color .2s, border-color .2s, color .2s;
}
.btn svg { width: 20px; height: 20px; flex: none; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(.97); transition-duration: .12s; }
.btn--primary { background-color: var(--amber); color: var(--ink); }
.btn--primary:hover { background-color: var(--amber-hi); }
.btn--ghost { background-color: var(--bg-2); border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--amber); background-color: var(--bg-3); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn--ink { background-color: var(--ink); color: #F4F2ED; }
.btn--ink:hover { background-color: #23282D; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tags li { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; font-weight: 500; background-color: var(--bg-3); }

/* browser surfaces carry the palette too */
::selection { background-color: var(--amber); color: var(--ink); }
html { scrollbar-color: #B9B2A8 var(--bg); accent-color: var(--amber-deep); }
input, textarea { caret-color: var(--amber-deep); }

.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--gold); }
.link svg { width: 20px; height: 20px; transition: transform .3s var(--ease); }
.link--quiet { color: var(--muted); font-weight: 500; text-decoration: underline; text-underline-offset: 5px; }
.link:hover { text-decoration: underline; text-underline-offset: 5px; }
.link:hover svg { transform: translateX(4px); }

/* icon in a rounded square */
.chip { display: inline-flex; align-items: center; justify-content: center; flex: none; transition: transform .45s var(--ease); }
.chip svg { width: 70px; height: 70px; }
:is(a, .spot):hover > .chip, .spot:hover .chip { transform: translateY(-4px) rotate(-6deg); }

/* feature icons: big outlines in a bright yellow gradient (#ig / #igl, defined once in base.njk), extruded
   down and to the right in four darkening amber steps, the same depth as the hero b, plus a soft cast shadow. */
:root { --ico-paint: url(#igl) #B86E00; --ico-e1: #E58A17; --ico-e2: #C26A0D; --ico-e3: #9A520A; --ico-e4: #6E3A05; --ico-cast: rgba(110, 58, 5, .35); }
.on-dark { --ico-paint: url(#ig) #FFD23F; --ico-cast: rgba(0, 0, 0, .7); }
.ico3d, :is(.chip, .mega__ico, .slide__ico, .rows__ico, .node__ico, .phero__badge, .orbit__ring a, .devices__points li, .fit__list li, .plans__more li, .aud__ico) > svg, .mega__more > svg:first-child, :is(.mhero__cross, .mband__cross, .bld__sign, .tier__ico, .tier__items li, .tiers__bar p, .opt__ico, .lpanel__step .tier__ico, .promise__list li) > svg {
  overflow: visible; stroke: var(--ico-paint); stroke-width: 1.7;
  filter: drop-shadow(.6px .9px 0 var(--ico-e2)) drop-shadow(.5px .7px 0 var(--ico-e4)) drop-shadow(1px 7px 6px var(--ico-cast));
}

/* surface whose border lights up under the pointer (main.js sets --mx / --my) */
.spot { position: relative; border: 1px solid var(--line); border-radius: var(--r); background-color: var(--bg-2); }
.spot::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 2px; background: radial-gradient(320px circle at var(--mx, 50%) var(--my, -200px), var(--amber), transparent 70%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); pointer-events: none; }

/* full-bleed band with a people photo behind (graded in PhotoCraft). The section's own
   background-color is dark, so contrast checkers measure the text against it. */
.people { position: relative; isolation: isolate; overflow: hidden; background-color: var(--bg); color: var(--text); }
.people__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.people::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 12, 14, .95) 0%, rgba(10, 12, 14, .84) 48%, rgba(10, 12, 14, .4) 100%); }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    html:not(.bl-still) .people__bg { animation: drift linear both; animation-timeline: view(); }
    @keyframes drift { from { transform: scale(1.14) translateY(-3%); } to { transform: scale(1.02) translateY(3%); } }
  }
}
@media (max-width: 760px) { .people::before { background: rgba(10, 12, 14, .86); } }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: .92rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--line); }
.crumbs a { text-decoration: underline; text-underline-offset: 4px; }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--text); font-weight: 600; }

/* background loops made in EffectCraft; main.js plays them while on screen and adds the pause button */
.loop { position: relative; overflow: hidden; background-color: var(--bg); }
.loop video { width: 100%; height: 100%; object-fit: cover; filter: invert(1) hue-rotate(180deg); }  /* dark renders shown on the bright page */
.vid-toggle { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background-color: var(--bg); color: var(--text); cursor: pointer; }
.vid-toggle:hover { border-color: var(--amber); }
.vid-toggle svg { width: 16px; height: 16px; }
.vid-toggle[aria-pressed="true"] .i-pause, .vid-toggle[aria-pressed="false"] .i-play { display: none; }

/* ---------- accessibility primitives ---------- */
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100000; padding: 14px 22px; background-color: var(--amber); color: var(--ink); font-weight: 700; border-radius: var(--r-in); transition: top .15s; }
.skip-link:focus, .skip-link:focus-visible { top: 16px; outline: 3px solid var(--text); outline-offset: 2px; }

/* !important is deliberate: screen-reader-only text must win over any component rule,
   and checkers read its colour / background literally */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  color: #FFFFFF !important;
  background: #000000 !important;
}

:is(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 3px solid var(--text); outline-offset: 3px; border-radius: 6px; }

/* scroll reveal: `filter` not `opacity`, so accessibility checkers still see the text */
.reveal { transform: translateY(32px); transition: filter .9s var(--ease), transform .9s var(--ease); }
.reveal:not(.visible) { filter: opacity(0); }
.reveal.visible { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal:not(.visible) { filter: none; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0s !important; }
}
/* "Stop animations" in the accessibility widget (main.js sets html.bl-still) */
.bl-still *, .bl-still *::before, .bl-still *::after { animation-duration: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0s !important; }
.bl-still .reveal, .bl-still .reveal:not(.visible) { filter: none; transform: none; }

/* call-to-action bands: generated amber artwork behind the text (its background-color stays the dark token) */
.cta-band { position: relative; isolation: isolate; overflow: hidden; }
.cta-band__bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
@media (max-width: 760px) { .cta-band__bg { filter: opacity(.45); } }

/* back to top: appears once the visitor is well down the page, sits above the accessibility button */
.to-top { position: fixed; left: 24px; bottom: 24px; z-index: calc(var(--z-widget) - 1); display: grid; place-items: center; width: 56px; height: 56px; border: 1px solid rgba(242, 165, 38, .5); border-radius: 50%; background-color: #0A0C0E; color: #FFD23F; box-shadow: 0 14px 30px rgba(10, 12, 14, .3); cursor: pointer; transition: transform .35s var(--ease), filter .35s var(--ease), background-color .2s; }
.to-top[hidden] { display: grid; visibility: hidden; transform: translateY(16px) scale(.9); filter: opacity(0); pointer-events: none; }
.to-top svg { width: 26px; height: 26px; rotate: 180deg; transition: translate .3s var(--ease); }
@media (hover: hover) and (pointer: fine) { .to-top:hover { background-color: #191D21; } .to-top:hover svg { translate: 0 -3px; } }
.to-top:active { transform: scale(.94); }
.to-top:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
@media (max-width: 480px) { .to-top { left: 16px; bottom: 16px; width: 52px; height: 52px; } }

/* ===== header ===== */
/* Floating pill header, Practices mega menu, mobile menu dialog, scroll progress. */

/* reading progress along the top edge (scroll-driven, no JS) */
.progress { position: fixed; inset: 0 0 auto 0; z-index: calc(var(--z-nav) + 1); height: 3px; background-color: var(--amber); transform-origin: left; transform: scaleX(0); pointer-events: none; }
@supports (animation-timeline: scroll()) {
  .progress { animation: grow linear both; animation-timeline: scroll(root); }
  @keyframes grow { to { transform: scaleX(1); } }
}

.site-header { position: sticky; top: 0; z-index: var(--z-nav); padding: 14px var(--gutter); background-color: transparent; transition: transform .45s var(--ease); }
.site-header.is-hidden { transform: translateY(-110%); }
.site-header__in { display: flex; align-items: center; gap: 20px; min-height: 64px; max-width: var(--wrap); margin-inline: auto; padding: 8px 8px 8px 22px; border: 1px solid var(--line); border-radius: 999px; background-color: var(--bg-2); transition: box-shadow .3s, border-radius .3s; }
.site-header.scrolled .site-header__in { box-shadow: 0 18px 44px rgba(10, 12, 14, .28); }
.brand { flex: none; display: block; }
.brand img { width: 150px; }

.site-nav { margin-left: auto; }
.site-nav > ul { display: flex; align-items: center; gap: 2px; }
.site-nav__link, .site-nav__trigger { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border: 0; border-radius: 999px; background: none; font-size: .98rem; font-weight: 600; color: var(--muted); cursor: pointer; transition: color .2s, background-color .2s; }
.site-nav__link:hover, .site-nav__link[aria-current="page"], .site-nav__trigger:hover, .site-nav__trigger[aria-expanded="true"] { color: var(--text); background-color: var(--bg-3); }
.site-nav__trigger svg { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.site-nav__trigger[aria-expanded="true"] svg { transform: rotate(180deg); color: var(--gold); }
.site-header__cta { min-height: 48px; padding: 10px 22px; }

/* ---------- mega menu ---------- */
.mega { position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% - 2px); max-width: var(--wrap); margin-inline: auto; visibility: hidden; clip-path: inset(0 0 100% 0 round 28px); transform: translateY(-10px); transition: clip-path .55s var(--ease), transform .55s var(--ease), visibility 0s .55s; }
.mega.open { visibility: visible; clip-path: inset(0 0 0 0 round 28px); transform: none; transition: clip-path .55s var(--ease), transform .55s var(--ease); }
.mega__in { --text: #0A0C0E; --muted: #4A5158; --line: #ECE6DC; --gold: #855300; --bg-3: #FFF5DF; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; padding: 18px; border-radius: 28px; background-color: #FFFFFF; color: var(--text); box-shadow: 0 0 0 1px rgba(10, 12, 14, .06), 0 50px 90px -24px rgba(10, 12, 14, .4), 0 18px 36px -18px rgba(94, 58, 0, .18); }
.mega__main { display: flex; flex-direction: column; gap: 14px; padding: 8px 4px 4px; }
.mega__label { display: flex; align-items: center; gap: 12px; padding: 6px 14px 12px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.mega .mega__label { padding: 0 6px; }
.mega .mega__label::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.mega__list li, .mega__side, .mm__practices li, .mm__links li { transform: translateY(16px); filter: opacity(0); transition: transform .6s var(--ease), filter .4s; transition-delay: 0s; }
.mega.open :is(.mega__list li, .mega__side), .mobile-menu.open :is(.mm__practices li, .mm__links li) { transform: none; filter: none; transition-delay: calc(var(--i) * 45ms + 80ms); }
.mega__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mega__list a { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; height: 100%; padding: 18px 18px 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background-color: #FFFFFF; transition: border-color .25s, box-shadow .35s var(--ease), transform .35s var(--ease), background-color .25s; }
.mega__list a::before { content: ""; position: absolute; right: -30%; bottom: -55%; width: 75%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 210, 63, .4), transparent); filter: opacity(0); transition: filter .4s; pointer-events: none; }
.mega__list a:is(:hover, :focus-visible) { border-color: rgba(224, 121, 28, .55); box-shadow: 0 22px 40px -18px rgba(224, 121, 28, .45); transform: translateY(-3px); }
.mega__list a:is(:hover, :focus-visible)::before { filter: none; }
.mega__list a[aria-current="page"] { border-color: rgba(224, 121, 28, .55); background-color: #FFFBF2; }
.mm__practices a { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px; border-radius: 18px; transition: background-color .25s; }
.mega__ico { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 60px; height: 60px; transition: transform .45s var(--ease); }
.mega__ico svg { width: 50px; height: 50px; }
.mega .mega__list .mega__ico { width: 54px; height: 54px; border-radius: 16px; background: linear-gradient(145deg, #1C2024, #0A0C0E); box-shadow: 0 10px 20px -8px rgba(10, 12, 14, .45); }
.mega .mega__list .mega__ico svg { width: 36px; height: 36px; }
.mega__txt { position: relative; display: flex; flex-direction: column; gap: 4px; }
.mega__txt b, .mega__more b { font-family: var(--display); font-size: 1.12rem; font-weight: 700; letter-spacing: -.02em; color: var(--text); }
.mega__txt small, .mega__more small { font-size: .88rem; line-height: 1.4; color: var(--muted); }
.mega__go { width: 20px; height: 20px; color: var(--gold); transform: translateX(-8px); filter: opacity(0); transition: transform .4s var(--ease), filter .3s; }
.mega__list .mega__go { position: absolute; top: 22px; right: 20px; }
.mm__practices a:hover { background-color: var(--bg-3); }
.mega__list a:is(:hover, :focus-visible) .mega__ico, .mm__practices a:hover .mega__ico { transform: translateY(-3px) rotate(-8deg) scale(1.08); }
.mega__list a:is(:hover, :focus-visible) .mega__go, .mega__more:is(:hover, :focus-visible) .mega__go { transform: none; filter: none; }

.mega__side { display: flex; flex-direction: column; gap: 10px; }
.mega__preview { position: relative; flex: 1; min-height: 250px; overflow: hidden; border-radius: 20px; background-color: #F4F2ED; }
.mega__card { position: absolute; inset: 0; filter: opacity(0); transition: filter .5s var(--ease); }
.mega__card.is-on { filter: none; }
.mega__card img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.6s var(--ease); }
.mega__card.is-on img { transform: scale(1); }
.mega__card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(10, 12, 14, .35)); }
.mega__card figcaption { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 1; display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; border-radius: 16px; background-color: #FFFFFF; box-shadow: 0 14px 30px rgba(10, 12, 14, .2); font-family: var(--display); font-size: 1.15rem; font-weight: 700; letter-spacing: -.02em; color: #0A0C0E; transform: translateY(14px); transition: transform .7s var(--ease) .1s; }
.mega__card.is-on figcaption { transform: none; }
.mega__card .mega__ico { width: 40px; height: 40px; border-radius: 12px; background-color: #0A0C0E; }
.mega__card .mega__ico svg { width: 30px; height: 30px; }
.mega__more { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 18px; background-color: #FFFFFF; transition: border-color .3s, background-color .3s, transform .35s var(--ease); }
.mega__more > svg:first-child { width: 40px; height: 40px; }
.mega__more:is(:hover, :focus-visible) { border-color: rgba(224, 121, 28, .55); background-color: #FFFBF2; transform: translateX(3px); }

/* ---------- burger: three lines that become an X ---------- */
.burger { display: none; margin-left: auto; width: 48px; height: 48px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; background-color: var(--bg-3); color: var(--text); cursor: pointer; }
.burger__lines { position: relative; width: 20px; height: 14px; }
.burger__lines i { position: absolute; left: 0; width: 100%; height: 2.5px; border-radius: 2px; background-color: currentColor; transition: transform .45s var(--ease), filter .2s; }
.burger__lines i:nth-child(1) { top: 0; }
.burger__lines i:nth-child(2) { top: 6px; }
.burger__lines i:nth-child(3) { top: 12px; }
.burger[aria-expanded="true"] .burger__lines i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__lines i:nth-child(2) { filter: opacity(0); }
.burger[aria-expanded="true"] .burger__lines i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- mobile menu ---------- */
.mobile-menu { position: fixed; inset: 0; z-index: calc(var(--z-nav) - 1); display: flex; flex-direction: column; gap: 22px; padding: 104px var(--gutter) 40px; background-color: var(--bg); color: var(--text); overflow-y: auto; visibility: hidden; clip-path: circle(0 at calc(100% - 52px) 52px); transition: clip-path .6s var(--ease), visibility 0s .6s; }
.mobile-menu.open { visibility: visible; clip-path: circle(150% at calc(100% - 52px) 52px); transition: clip-path .7s var(--ease); }
.mobile-menu .mega__label { padding-inline: 0; }
.mm__practices a { padding: 10px 0; grid-template-columns: auto minmax(0, 1fr); }
.mm__practices a:hover { background-color: transparent; }
.mm__links { margin-top: 12px; border-top: 1px solid var(--line); }
.mm__links a { display: block; padding: 14px 0; font-family: var(--display); font-size: 1.6rem; font-weight: 700; letter-spacing: -.03em; border-bottom: 1px solid var(--line); }
.mobile-menu__tel { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 600; }
.mobile-menu__tel svg { width: 22px; height: 22px; color: var(--gold); }

@media (max-width: 1040px) {
  .site-nav, .site-header__cta { display: none; }
  .burger { display: inline-flex; }
}
/* mobile menu, white like the desktop mega menu: practice cards two by two, programs full width */
.mobile-menu { --text: #0A0C0E; --muted: #4A5158; --line: #ECE6DC; --gold: #855300; background-color: #FFFFFF; gap: 18px; padding-top: 100px; }
.mobile-menu .mm__practices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.mobile-menu .mm__practices a { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; height: 100%; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background-color: #FFFFFF; box-shadow: 0 10px 24px -16px rgba(94, 58, 0, .35); transition: border-color .25s, transform .2s var(--ease); }
.mobile-menu .mm__practices a:active { transform: scale(.97); border-color: rgba(224, 121, 28, .55); }
.mobile-menu .mm__practices .mega__ico { width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(145deg, #1C2024, #0A0C0E); }
.mobile-menu .mm__practices .mega__ico svg { width: 30px; height: 30px; }
.mobile-menu .mega__txt b { font-size: 1rem; }
.mobile-menu .mega__txt small { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; font-size: .8rem; line-height: 1.35; }
.mobile-menu .mm__wide { grid-column: 1 / -1; }
.mobile-menu .mm__wide a { flex-direction: row; align-items: center; }
.mobile-menu .mm__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; padding-top: 18px; }
.mobile-menu .mm__links a { padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; font-family: var(--body); font-size: 1rem; font-weight: 600; letter-spacing: 0; }
.mobile-menu .btn { align-self: stretch; justify-content: center; }
@media (min-width: 1041px) { .mobile-menu { display: none; } }
@media (prefers-reduced-motion: reduce) { .site-header.is-hidden { transform: none; } }

/* ===== footer ===== */
.site-footer { background-color: var(--bg); color: var(--text); border-top: 1px solid var(--line); padding-block: 72px 32px; }
.site-footer__top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)) minmax(0, 1.3fr); gap: 40px; }
.site-footer__brand img { width: 190px; }
.site-footer__brand p { margin-top: 18px; max-width: 30ch; color: var(--muted); }
.site-footer__col h2 { font-family: var(--body); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.site-footer__col li + li { margin-top: 10px; }
.site-footer__col a, .site-footer__col span { display: inline-flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: .98rem; }
.site-footer__col a { padding-block: 3px; transition: color .2s; }
.site-footer__col a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.site-footer__col svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--gold); }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.site-footer__legal ul { display: flex; gap: 24px; }
.site-footer__legal a { padding-block: 6px; }
.site-footer__legal a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 900px) { .site-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .site-footer__top { grid-template-columns: minmax(0, 1fr); } .site-footer { padding-bottom: 96px; } }

/* ===== a11y-widget ===== */
/* Accessibility widget (bottom right): text size, contrast, grayscale, underline links,
   big cursor, focus highlights, stop animations. Settings are remembered by main.js. */
.ada-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: var(--z-widget);
  isolation: isolate;
  font-family: var(--body);
}
.ada-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid var(--ink);
  background: var(--amber);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .4);
  transition: transform .3s, box-shadow .3s;
}
.ada-btn svg { width: 26px; height: 26px; }
.ada-btn:hover { transform: scale(1.1); }

.ada-box {
  position: absolute;
  bottom: 64px;
  right: 0;
  width: 300px;
  display: none;
  overflow: hidden;
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
}
.ada-box.show { display: block; }
.ada-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid #444;
  background: #222;
}
.ada-title { font-family: var(--display); font-size: .875rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--amber); }
.ada-x { background: none; border: none; font-size: 1.5rem; line-height: 1; padding: 0 4px; cursor: pointer; color: var(--amber); }
.ada-x:hover { color: var(--white); }
.ada-body { padding: 12px 16px; }
.ada-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 4px;
  border-bottom: 1px solid #3a3a3a;
}
.ada-row:last-of-type { border-bottom: none; }
.ada-lbl { font-size: .813rem; font-weight: 600; color: var(--white); }

.ada-sz { display: flex; gap: 6px; }
.ada-sz-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(242, 165, 38, .3);
  background: var(--ink);
  color: var(--white);
  font-family: var(--display);
  font-size: .75rem;
  letter-spacing: .1em;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.ada-sz-btn:hover, .ada-sz-btn.active { background: var(--amber); color: var(--ink); border-color: var(--amber); }

/* switch */
.ada-sw { position: relative; display: inline-block; width: 48px; height: 26px; flex-shrink: 0; }
.ada-sw input { position: absolute; opacity: 0; width: 0; height: 0; }
.ada-slider { position: absolute; inset: 0; background: #555; border-radius: 26px; cursor: pointer; transition: .3s; }
.ada-slider::before {
  content: "";
  position: absolute;
  left: 3px;
  bottom: 3px;
  width: 20px;
  height: 20px;
  background: var(--white);
  border-radius: 50%;
  transition: .3s;
}
.ada-sw input:checked + .ada-slider { background: var(--amber); }
.ada-sw input:checked + .ada-slider::before { transform: translateX(22px); }
.ada-sw input:focus-visible + .ada-slider { outline: 3px solid var(--white); outline-offset: 3px; }

.ada-reset-btn {
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  border: none;
  background: var(--amber);
  color: var(--ink);
  font-family: var(--display);
  font-size: .813rem;
  letter-spacing: .08em; font-weight: 700; border-radius: 999px;
  cursor: pointer;
  transition: filter .3s;
}
.ada-reset-btn:hover { filter: brightness(1.08); }

/* ---------- what the switches do ---------- */
body.ada-contrast::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: rgba(0, 0, 0, .15);
  mix-blend-mode: multiply;
  pointer-events: none;
}
body.ada-gray::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 99997;
  pointer-events: none;
  -webkit-backdrop-filter: grayscale(1);
  backdrop-filter: grayscale(1);
}
body.ada-links a:not(.ada-btn):not(.ada-x) { text-decoration: underline; text-underline-offset: 3px; }
body.ada-cursor *:not(.ada-widget):not(.ada-widget *) {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cpath d='M5 1L5 27L12 20L20 20Z' fill='%23000' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E") 5 1, auto !important;
}
body.ada-focus :is(a, button, input, select, textarea, [tabindex]):focus {
  outline: 3px solid var(--amber) !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 6px rgba(242, 165, 38, .3) !important;
}
/* ada-motion is handled by html.bl-still in base.css */

@media (max-width: 768px) {
  .ada-lbl { font-size: .9rem; }
  .ada-title { font-size: .95rem; }
}
@media (max-width: 480px) {
  .ada-widget { bottom: 16px; right: 16px; }
  .ada-btn { width: 52px; height: 52px; }
  .ada-box { width: 270px; bottom: 62px; }
  .ada-lbl { font-size: .85rem; }
}
