@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,700;1,9..40,400&display=swap");

/* =========================================================
   TabPie theme — dark, interface-first, logo-derived
   Tokens → base → layout → components → header/footer → motion
   ========================================================= */

:root {
  /* Core surfaces */
  --color-bg: #09080f;
  --color-surface: rgba(255, 255, 255, 0.045);
  --color-surface-strong: rgba(255, 255, 255, 0.072);
  --color-surface-2: #0e0c17;
  --color-border: rgba(255, 255, 255, 0.11);
  --color-border-strong: rgba(255, 255, 255, 0.18);

  /* Text */
  --color-text: #f8f6ff;
  --color-muted: #afaabd;
  --color-dim: #7f7a8c;

  /* Brand */
  --color-primary: #9a6aff;
  --color-primary-hover: #b490ff;
  --color-primary-deep: #6840dd;
  --color-primary-contrast: #0b0813;
  --color-accent: #ff9d48;
  --color-gold: #ffc76d;
  --color-mint: #91efc7;
  --color-light: #fffaf2;

  /* Sections */
  --color-dark: #0e0c17;
  --color-dark-text: #f8f6ff;
  --color-dark-muted: #afaabd;
  --color-success: #91efc7;
  --color-error: #ff8b8b;

  /* Type */
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-heading: "Space Grotesk", "DM Sans", system-ui, sans-serif;
  --text-sm: 0.875rem;
  --text-base: 1.0625rem;
  --text-lg: clamp(1.12rem, 1rem + 0.4vw, 1.3rem);
  --text-xl: clamp(1.45rem, 1.2rem + 0.9vw, 1.9rem);
  --text-2xl: clamp(2rem, 1.5rem + 1.9vw, 2.95rem);
  --text-3xl: clamp(2.5rem, 1.7rem + 3.4vw, 4.3rem);
  --text-display: clamp(2.9rem, 1.7rem + 5.2vw, 5.6rem);

  /* Space & shape */
  --container: 1140px;
  --container-narrow: 740px;
  --gutter: clamp(20px, 5vw, 36px);
  --space-section: clamp(84px, 11vw, 158px);
  --radius-sm: 14px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 12px 28px -22px rgba(0, 0, 0, 0.9);
  --shadow: 0 24px 50px -30px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.04);
  --shadow-lg: 0 40px 90px -40px rgba(0, 0, 0, 1), 0 0 60px -30px rgba(154, 106, 255, 0.5);
  --glow: 0 0 0 1px rgba(154, 106, 255, 0.45), 0 18px 46px -26px rgba(154, 106, 255, 0.75);
  --header-h: 74px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --speed: 240ms;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  background: var(--color-bg);
  color-scheme: dark;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background-color: var(--color-bg);
  background-image:
    radial-gradient(900px 540px at 50% -140px, rgba(154, 106, 255, 0.22), transparent 70%),
    radial-gradient(620px 420px at 88% 8%, rgba(255, 157, 72, 0.1), transparent 72%);
  background-repeat: no-repeat;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; transition: color var(--speed) var(--ease); }
a:hover { color: var(--color-primary-hover); }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.028em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); font-weight: 600; letter-spacing: -0.02em; }
h4 { font-size: var(--text-lg); }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li::marker { color: var(--color-primary); }
hr { border: 0; border-top: 1px solid var(--color-border); margin: 2.5rem 0; }
strong, b { font-weight: 700; color: var(--color-text); }
code, kbd, samp { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; }
kbd {
  display: inline-block; padding: 2px 8px; border-radius: 8px;
  background: var(--color-surface-strong); border: 1px solid var(--color-border);
  border-bottom-width: 2px; color: var(--color-text); font-size: 0.82em; line-height: 1.5;
}
::selection { background: var(--color-primary); color: var(--color-primary-contrast); }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; border-radius: 8px; }
button { font: inherit; color: inherit; }

.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -70px; z-index: 1000; padding: 12px 20px; border-radius: var(--radius-lg); background: var(--color-primary); color: var(--color-primary-contrast); font-weight: 600; text-decoration: none; transition: top var(--speed) var(--ease); }
.skip-link:focus { top: 12px; color: var(--color-primary-contrast); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(var(--container-narrow) + var(--gutter) * 2); }
.section { position: relative; padding-block: var(--space-section); }
.section--tight { padding-block: calc(var(--space-section) * 0.58); }
.section--alt { background: var(--color-surface-2); border-block: 1px solid var(--color-border); }
.section--dark {
  background: linear-gradient(180deg, #0b0914, #0e0c17 60%, #0b0914);
  color: var(--color-dark-text);
  border-block: 1px solid var(--color-border);
}
.section--dark .muted, .section--dark .lead { color: var(--color-dark-muted); }
.stack > * + * { margin-top: var(--stack-space, 1rem); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--cluster-gap, 14px); align-items: center; }
.grid { display: grid; gap: var(--grid-gap, clamp(18px, 2.4vw, 26px)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr)); }
.split { display: grid; gap: clamp(34px, 6vw, 76px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--reverse > :first-child { order: 2; } }
.text-center { text-align: center; }
.text-center .lead { margin-inline: auto; }
.text-center .eyebrow { justify-content: center; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 20px; height: 20px; border-radius: 50%; flex: none; background: conic-gradient(from -90deg, var(--color-accent) 0 25%, rgba(255, 199, 109, 0.35) 25% 100%); box-shadow: 0 0 0 1px rgba(255, 199, 109, 0.35); }
.section--dark .eyebrow { color: var(--color-accent); }
.display { font-size: var(--text-display); line-height: 0.98; letter-spacing: -0.04em; font-weight: 600; }
.lead { font-size: var(--text-lg); color: var(--color-muted); max-width: 60ch; line-height: 1.65; }
.muted { color: var(--color-muted); }
.prose { max-width: 68ch; }
.prose h2 { margin-top: 2em; }
.prose h3 { margin-top: 1.7em; }
.prose img { border-radius: var(--radius-lg); margin: 2em 0; border: 1px solid var(--color-border); }
.prose a { color: var(--color-primary-hover); }
.prose blockquote {
  margin: 2em 0; padding: 20px 24px;
  border: 1px solid var(--color-border); border-left: 3px solid var(--color-primary);
  border-radius: var(--radius);
  background: var(--color-surface);
  font-family: var(--font-heading); font-size: var(--text-lg); letter-spacing: -0.015em;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--color-surface-strong); --btn-fg: var(--color-text); --btn-bd: var(--color-border);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border-radius: var(--radius-lg); border: 1px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-heading); font-weight: 600; font-size: 0.97rem; letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer;
  transition: transform var(--speed) var(--ease), background-color var(--speed) var(--ease),
              box-shadow var(--speed) var(--ease), border-color var(--speed) var(--ease), color var(--speed) var(--ease);
}
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); border-color: rgba(154, 106, 255, 0.5); box-shadow: var(--glow); }
.btn:active { transform: translateY(0); }
.btn--primary {
  --btn-bg: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-deep) 100%);
  --btn-fg: #ffffff; --btn-bd: rgba(180, 144, 255, 0.55);
  box-shadow: 0 14px 34px -18px rgba(104, 64, 221, 0.95);
}
.btn--primary:hover { --btn-bg: linear-gradient(135deg, var(--color-primary-hover) 0%, var(--color-primary) 100%); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--color-text); --btn-bd: var(--color-border-strong); }
.section--dark .btn--ghost { --btn-bd: rgba(255, 255, 255, 0.2); }
.btn--light { --btn-bg: var(--color-light); --btn-fg: #16121f; --btn-bd: transparent; }
.btn--light:hover { --btn-bg: #ffffff; }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 0.88rem; border-radius: 22px; }
.btn--lg { min-height: 60px; padding: 0 32px; font-size: 1.03rem; }
.btn svg { width: 18px; height: 18px; transition: transform var(--speed) var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.link-arrow { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-heading); font-weight: 600; color: var(--color-primary-hover); text-decoration: none; }
.link-arrow::after { content: "→"; transition: transform var(--speed) var(--ease); }
.link-arrow:hover { color: var(--color-accent); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Cards / panels ---------- */
.card {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  padding: clamp(24px, 3vw, 32px);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--speed) var(--ease), border-color var(--speed) var(--ease), background-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px 180px at 12% 0%, rgba(154, 106, 255, 0.16), transparent 70%);
  opacity: 0; transition: opacity var(--speed) var(--ease);
}
.card:hover { transform: translateY(-2px); background: var(--color-surface-strong); border-color: rgba(154, 106, 255, 0.45); box-shadow: var(--glow); }
.card:hover::after { opacity: 1; }
.card > * { position: relative; z-index: 1; }
.card h3 { margin: 0; font-size: 1.3rem; }
.card p { margin: 0; color: var(--color-muted); }
.card__icon {
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 18px;
  background: linear-gradient(140deg, rgba(154, 106, 255, 0.28), rgba(255, 157, 72, 0.16));
  border: 1px solid rgba(154, 106, 255, 0.35);
  color: var(--color-primary-hover);
}
.card__media { margin: calc(clamp(24px, 3vw, 32px) * -1) calc(clamp(24px, 3vw, 32px) * -1) 8px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden; aspect-ratio: 16 / 10; background: var(--color-surface-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.card:hover .card__media img { transform: scale(1.03); }
.card a.stretched::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.section--dark .card { background: var(--color-surface); border-color: var(--color-border); }
.section--dark .card p { color: var(--color-dark-muted); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form__row { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.field { display: grid; gap: 7px; }
.field label { font-family: var(--font-heading); font-size: var(--text-sm); font-weight: 600; letter-spacing: 0.01em; color: var(--color-text); }
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea {
  width: 100%; min-height: 52px; padding: 13px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
  transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease), background-color var(--speed) var(--ease);
}
::placeholder { color: var(--color-dim); }
textarea { min-height: 150px; resize: vertical; border-radius: var(--radius); }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: rgba(154, 106, 255, 0.7);
  background: var(--color-surface-strong);
  box-shadow: 0 0 0 4px rgba(154, 106, 255, 0.18);
}
[data-form-status] { font-size: var(--text-sm); min-height: 1.4em; color: var(--color-muted); }
[data-form-status].is-success { color: var(--color-mint); }
[data-form-status].is-error { color: var(--color-error); }
form.is-sending button[type="submit"] { opacity: 0.6; pointer-events: none; }

/* ---------- Header & navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(9, 8, 15, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--speed) var(--ease), background-color var(--speed) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--color-border); background: rgba(9, 8, 15, 0.92); }
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 20px; }

.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-heading); font-weight: 700; font-size: 1.22rem; letter-spacing: -0.03em; text-decoration: none; color: var(--color-text); }
.brand:hover { color: var(--color-text); }
.brand__logo {
  display: block; height: var(--logo-h, 36px); width: auto; max-width: 200px; object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(255, 157, 72, 0.3));
  transition: transform var(--speed) var(--ease);
}
.brand:hover .brand__logo { transform: rotate(-6deg) scale(1.04); }
.brand__name { line-height: 1; }
.brand__name b { font-weight: 700; color: var(--color-accent); }
.site-footer .brand { gap: 14px; font-size: 1.3rem; }
.site-footer .brand__logo { --logo-h: 44px; }
/* The pie logo is warm-on-light artwork: a soft light chip keeps it crisp on the dark footer. */
.brand__logo--on-dark {
  padding: 8px; border-radius: 18px;
  background: var(--color-light);
  box-shadow: 0 10px 30px -16px rgba(255, 157, 72, 0.7), inset 0 0 0 1px rgba(22, 18, 31, 0.08);
  box-sizing: content-box;
}
.brand__dot { width: 14px; height: 14px; border-radius: 50%; background: conic-gradient(from -90deg, var(--color-accent) 0 25%, var(--color-primary) 25% 100%); }

.site-nav { margin-left: auto; }
.site-header__actions { display: flex; align-items: center; gap: 12px; }

.menu { list-style: none; margin: 0; padding: 0; }
.site-nav .menu--main { display: flex; align-items: center; gap: 2px; }
.site-nav .menu__item { position: relative; display: flex; align-items: center; }
.site-nav .menu__link {
  display: block; padding: 9px 14px; border-radius: 20px;
  font-family: var(--font-heading); font-size: 0.93rem; font-weight: 500; letter-spacing: -0.01em;
  text-decoration: none; color: var(--color-muted);
  transition: background-color var(--speed) var(--ease), color var(--speed) var(--ease);
}
.site-nav .menu__link:hover { background: var(--color-surface); color: var(--color-text); }
.site-nav .menu__item.is-active > .menu__link,
.site-nav .menu__item.is-active-trail > .menu__link { color: var(--color-text); background: var(--color-surface-strong); }
.menu__toggle { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-left: -8px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--color-muted); cursor: pointer; }
.menu__toggle svg { transition: transform var(--speed) var(--ease); }
.menu__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

@media (min-width: 961px) {
  .site-nav .menu__sub {
    position: absolute; top: calc(100% + 10px); left: 0; min-width: 236px; padding: 8px;
    list-style: none; margin: 0; border-radius: var(--radius-lg);
    background: #141020; border: 1px solid var(--color-border); box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(6px) scale(0.98); transform-origin: top left;
    transition: opacity var(--speed) var(--ease), transform var(--speed) var(--ease), visibility var(--speed);
  }
  .site-nav .menu__sub::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
  .site-nav .menu__sub .menu__item { display: block; }
  .site-nav .menu__sub .menu__link { border-radius: 18px; padding: 10px 14px; }
  .site-nav .menu__sub .menu__sub { top: -8px; left: 100%; }
  .site-nav .menu__item:hover > .menu__sub,
  .site-nav .menu__item:focus-within > .menu__sub,
  .site-nav .menu__item.is-open > .menu__sub { opacity: 1; visibility: visible; transform: none; }
  .nav-toggle { display: none; }
}

.nav-toggle { position: relative; width: 44px; height: 44px; border: 1px solid var(--color-border); border-radius: 50%; background: var(--color-surface); cursor: pointer; transition: border-color var(--speed) var(--ease), background-color var(--speed) var(--ease); }
.nav-toggle:hover { border-color: rgba(154, 106, 255, 0.5); background: var(--color-surface-strong); }
.nav-toggle span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--color-text); transition: transform var(--speed) var(--ease), top var(--speed) var(--ease); }
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 25px; }
.nav-open .nav-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { top: 21px; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .site-header__actions .btn { display: none; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0; margin: 0; padding: 26px var(--gutter) 56px;
    background: var(--color-bg);
    background-image: radial-gradient(700px 420px at 70% 0%, rgba(154, 106, 255, 0.2), transparent 70%);
    overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity var(--speed) var(--ease), transform var(--speed) var(--ease), visibility var(--speed);
  }
  .nav-open .site-nav { opacity: 1; visibility: visible; transform: none; }
  .nav-open { overflow: hidden; }
  .site-nav .menu--main { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav .menu__item { flex-wrap: wrap; border-bottom: 1px solid var(--color-border); }
  .site-nav .menu__link { flex: 1; padding: 17px 0; font-size: 1.5rem; font-weight: 600; color: var(--color-text); border-radius: 0; letter-spacing: -0.03em; }
  .site-nav .menu__link:hover { background: none; color: var(--color-primary-hover); }
  .site-nav .menu__item.is-active > .menu__link { background: none; color: var(--color-accent); }
  .menu__toggle { width: 44px; height: 44px; margin: 0; }
  .site-nav .menu__sub { display: none; width: 100%; list-style: none; margin: 0; padding: 0 0 12px 16px; }
  .site-nav .menu__item.is-open > .menu__sub { display: block; }
  .site-nav .menu__sub .menu__item { border: 0; }
  .site-nav .menu__sub .menu__link { font-family: var(--font-body); font-size: 1.03rem; font-weight: 400; padding: 10px 0; color: var(--color-muted); }
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: var(--color-dark);
  background-image: radial-gradient(760px 320px at 15% 0%, rgba(154, 106, 255, 0.16), transparent 70%);
  color: var(--color-dark-text);
  border-top: 1px solid var(--color-border);
  padding: clamp(60px, 8vw, 100px) 0 32px;
}
.site-footer a { color: var(--color-dark-text); text-decoration: none; }
.site-footer a:hover { color: var(--color-accent); }
.site-footer .brand { color: var(--color-dark-text); }
.site-footer__grid { display: grid; gap: 44px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .site-footer__grid { grid-template-columns: 1.7fr 1fr 1fr; } }
.site-footer__brand p { margin-top: 16px; max-width: 34ch; color: var(--color-dark-muted); }
.site-footer__shortcut { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: var(--text-sm); color: var(--color-dim); }
.site-footer h2 { font-family: var(--font-heading); font-size: 0.76rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-dim); margin-bottom: 18px; }
.site-footer .menu { display: grid; gap: 11px; font-size: 0.97rem; }
.site-footer .menu__link { color: var(--color-dark-muted); }
.site-footer .menu__link:hover { color: var(--color-accent); }
.site-footer .menu__sub { list-style: none; padding: 8px 0 0 14px; margin: 0; display: grid; gap: 8px; border-left: 1px solid var(--color-border); }
.site-footer .menu__toggle { display: none; }
.site-footer__contact { display: grid; gap: 11px; align-content: start; font-style: normal; color: var(--color-dark-muted); font-size: 0.97rem; }
.site-footer__privacy { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; color: var(--color-mint); font-size: var(--text-sm); }
.site-footer__privacy::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--color-mint); box-shadow: 0 0 10px var(--color-mint); }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 60px; padding-top: 26px; border-top: 1px solid var(--color-border); font-size: var(--text-sm); color: var(--color-dim); }

/* ---------- Page header & breadcrumbs ---------- */
.page-hero { padding: clamp(60px, 9vw, 120px) 0 clamp(40px, 6vw, 72px); }
.page-hero h1 { max-width: 18ch; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 20px; font-size: var(--text-sm); color: var(--color-dim); }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; opacity: 0.5; }
.breadcrumbs a { text-decoration: none; }

/* ---------- Motion ---------- */
/* The layout adds .js to <html> before paint, so content stays visible without JavaScript. */
.js [data-reveal] { opacity: 0; transform: translateY(14px) scale(0.985); transition: opacity 280ms var(--ease), transform 280ms var(--ease); transition-delay: var(--reveal-delay, 0s); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}