/* Taxis TG
   Premium, framed canvas. Dark gray + electric orange, with a matching light theme.
   One family (Commissioner, self-hosted): weight 800 for display, 400–600 for everything else. */

/* ---------- Fonts (self-hosted, SIL OFL; see /assets/fonts/OFL.txt) ---------- */

@font-face {
  font-family: "Commissioner";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/commissioner-greek.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: "Commissioner";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/commissioner-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Commissioner";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/commissioner-latin.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;
}

/* ---------- Tokens ---------- */

:root {
  /* dark (default) */
  --canvas: #0C0C0D;        /* around the frame */
  --bg: #151517;            /* the frame */
  --panel: #1D1D20;         /* cards, header */
  --surface: #19191C;       /* inset section panels */
  --line: #2A2A2F;
  --line-strong: #3A3A41;
  --line-ui: #6E6E78;       /* form control borders, ≥3:1 */
  --text: #F4F2ED;
  --muted: #A9A9B2;
  --accent: #FF5B14;        /* electric orange: fills, buttons, rules */
  --accent-hi: #FF7A3D;
  --accent-text: #FF6A2B;   /* orange as text, ≥4.5:1 */
  --accent-soft: rgba(255, 91, 20, .15);
  --on-accent: #161618;
  --danger: #FF8F8F;
  --glow-1: rgba(255, 91, 20, .26);
  --glow-2: rgba(255, 140, 70, .10);
  --glass: rgba(29, 29, 32, .66);
  --glass-line: rgba(255, 255, 255, .09);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .45), 0 6px 18px rgba(0, 0, 0, .3);
  --shadow-lg: 0 2px 8px rgba(0, 0, 0, .4), 0 28px 70px rgba(0, 0, 0, .5);
  --bar-a: #4BE38E;
  --bar-b: #13A55A;
  --bar-side: #0E7A43;
  --bar-top: #9AF5C2;
  --bar-edge: rgba(255, 255, 255, .35);
  --map-filter: invert(.92) hue-rotate(180deg) saturate(.45) brightness(.95);
  --footer-bg: #0F0F11;
  color-scheme: dark;

  /* type */
  --font: "Commissioner", system-ui, -apple-system, "Segoe UI", sans-serif;
  --flare: "FLAR" 0, "VOLM" 0;
  --plain: "FLAR" 0, "VOLM" 0;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 3vw, 2.25rem);
  --step-4: clamp(2.25rem, 4.6vw, 3.75rem);
  --display: clamp(3rem, 7vw, 6.75rem);

  /* layout */
  --gutter: clamp(16px, 4.5vw, 64px);
  --inset: clamp(8px, 1.4vw, 20px);  /* inset panels inside the frame */
  --maxw: 1280px;
  --header-h: 60px;
  --tap: 44px;
  --r-frame: 32px;
  --r-lg: 24px;
  --r-md: 18px;

  /* motion */
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --dur-fast: 150ms;
  --dur: 250ms;
  --dur-slow: 300ms;
}

:root[data-theme="light"] {
  --canvas: #E4E3DF;
  --bg: #FAFAF8;
  --panel: #FFFFFF;
  --surface: #F2F1EE;
  --line: #E4E3DF;
  --line-strong: #D0CFCA;
  --line-ui: #84847E;
  --text: #161618;
  --muted: #55545B;
  --accent-hi: #FF7433;
  --accent-text: #B93C05;
  --accent-soft: rgba(255, 91, 20, .12);
  --danger: #B3261E;
  --glow-1: rgba(255, 105, 40, .24);
  --glow-2: rgba(255, 185, 130, .32);
  --glass: rgba(255, 255, 255, .66);
  --glass-line: rgba(255, 255, 255, .8);
  --shadow-sm: 0 1px 2px rgba(22, 22, 24, .04), 0 8px 24px rgba(22, 22, 24, .06);
  --shadow-lg: 0 2px 8px rgba(22, 22, 24, .05), 0 32px 80px rgba(22, 22, 24, .14);
  --bar-a: #3DDC84;
  --bar-b: #10A355;
  --bar-side: #0B8044;
  --bar-top: #A8F5CA;
  --bar-edge: rgba(255, 255, 255, .7);
  --map-filter: none;
  --footer-bg: #161618;
  color-scheme: light;
}

/* no-JS fallback: follow the system */
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --canvas: #E4E3DF; --bg: #FAFAF8; --panel: #FFFFFF; --surface: #F2F1EE;
    --line: #E4E3DF; --line-strong: #D0CFCA; --line-ui: #84847E;
    --text: #161618; --muted: #55545B; --accent-hi: #FF7433; --accent-text: #B93C05;
    --accent-soft: rgba(255, 91, 20, .12); --danger: #B3261E;
    --glow-1: rgba(255, 105, 40, .24); --glow-2: rgba(255, 185, 130, .32);
    --glass: rgba(255, 255, 255, .66); --glass-line: rgba(255, 255, 255, .8);
    --shadow-sm: 0 1px 2px rgba(22, 22, 24, .04), 0 8px 24px rgba(22, 22, 24, .06);
    --shadow-lg: 0 2px 8px rgba(22, 22, 24, .05), 0 32px 80px rgba(22, 22, 24, .14);
    --map-filter: none; --footer-bg: #161618;
    color-scheme: light;
  }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  font-variation-settings: var(--plain);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--on-accent); }

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
a, button, summary, label, input, select, textarea { touch-action: manipulation; }
[hidden] { display: none !important; }

h1, h2, h3, p, ul, ol, dl, dd, address, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 18px; height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--sm { width: 15px; height: 15px; }
.icon--lg { width: 26px; height: 26px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--on-accent);
  padding: 10px 14px; font-weight: 600; text-decoration: none; border-radius: 999px;
  transition: top var(--dur);
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- The frame: the whole site sits on a rounded canvas ---------- */

.frame {
  position: relative;
  margin: var(--inset);
  background: var(--bg);
  border-radius: var(--r-frame);
  overflow: clip;
}

/* ---------- Brand ---------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: var(--tap);
  text-decoration: none;
}
.logo-mark { width: 32px; height: 32px; }
.lm-bars { fill: var(--accent); }
.lm-knock { fill: none; stroke: var(--knock, var(--bg)); stroke-width: 5; stroke-linecap: round; }
.lm-arrow { fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; }
.lm-head { fill: var(--text); stroke: var(--knock, var(--bg)); stroke-width: 2; stroke-linejoin: round; paint-order: stroke; }

.wordmark {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}

/* ---------- Announcement bar ---------- */

.announce {
  position: relative;
  padding: 14px 64px 46px;
  background: var(--accent);
  color: var(--on-accent);
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 500;
}
.announce a {
  padding-block: 12px;
  margin-left: 6px;
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.announce__close {
  position: absolute; right: 12px; top: 2px;
  display: grid; place-items: center;
  width: var(--tap); height: var(--tap);
  border: 0; border-radius: 999px;
  background: none; color: inherit;
  cursor: pointer;
}
.announce__close:hover { background: rgba(22, 22, 24, .1); }
.announce-off .announce { display: none; }

/* ---------- Masthead + navbar: one panel that splits when you scroll ---------- */

.masthead {
  --knock: var(--panel);
  position: relative;
  z-index: 51;
  margin: -32px var(--inset) 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.announce-off .masthead { margin-top: var(--inset); }

.masthead__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 84px;
  padding: 14px clamp(16px, 2.6vw, 40px);
}
.masthead__tag { color: var(--muted); font-size: 1rem; }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: var(--tap); height: var(--tap);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: none;
  color: var(--text);
  cursor: pointer;
  transition: border-color var(--dur-fast), transform var(--dur-fast);
}
.icon-btn:hover { border-color: var(--text); }
.icon-btn:active { transform: scale(.94); }

.call-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.96875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  transition: transform var(--dur-fast), opacity var(--dur-fast);
}
.call-pill .icon { width: 16px; height: 16px; }
.call-pill:hover { opacity: .88; }
.call-pill:active { transform: scale(.97); }

/* theme toggle: show the icon of the theme you would switch to */
.theme-btn .i-to-dark { display: none; }
:root[data-theme="light"] .theme-btn .i-to-light { display: none; }
:root[data-theme="light"] .theme-btn .i-to-dark { display: block; }

.menu-btn {
  display: none;
  width: var(--tap); height: var(--tap);
  margin-right: -8px;
  background: none; border: 0; color: var(--text);
  cursor: pointer;
}
.menu-btn__bars,
.menu-btn__bars::before {
  display: block; width: 22px; height: 2px; margin: 0 auto;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--dur-slow) var(--ease-out);
}
.menu-btn__bars { position: relative; transform: translateY(-4px); }
.menu-btn__bars::before { content: ""; position: absolute; left: 0; top: 8px; }
.menu-btn[aria-expanded="true"] .menu-btn__bars { transform: translateY(0) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars::before { transform: translateY(-8px) rotate(-90deg); }

.navbar-sentinel { height: 0; }

.navbar {
  --knock: var(--panel);
  position: sticky;
  top: 12px;
  z-index: 50;
  margin: 0 var(--inset);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  transition: box-shadow var(--dur-slow), border-radius var(--dur-slow), background-color var(--dur-slow);
}
.navbar.is-stuck {
  border-radius: 20px;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  box-shadow: var(--shadow-lg);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  backdrop-filter: saturate(150%) blur(14px);
}

.navbar__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 68px;
  padding: 10px clamp(12px, 2vw, 28px);
}
.navbar__mark { display: none; }
.navbar__mark .logo-mark { width: 28px; height: 28px; }
.navbar.is-stuck .navbar__mark { display: inline-flex; align-items: center; min-height: var(--tap); margin-right: 8px; }

.navbar__links { display: flex; align-items: center; gap: 2px; }
.navbar__links a {
  display: inline-flex; align-items: center;
  min-height: var(--tap);
  padding: 0 18px;
  border-radius: 999px;
  font-size: 0.96875rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: background-color var(--dur-fast), color var(--dur-fast);
}
.navbar__links a:hover { background: var(--surface); }
.navbar__links a[aria-current] { background: var(--accent-soft); color: var(--accent-text); }

.navbar__aside {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: var(--tap);
  margin-left: auto;
  color: var(--muted);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color var(--dur-fast);
}
.navbar__aside .icon { color: var(--accent-text); }
.navbar__aside:hover { color: var(--text); }
.navbar .navbar__call { display: none; }
.navbar.is-stuck .navbar__call { display: inline-flex; margin-left: auto; }
.navbar.is-stuck .navbar__aside { display: none; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 30px;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast), transform var(--dur-fast), box-shadow var(--dur-fast);
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn--sm { min-height: var(--tap); padding: 0 20px; font-size: 0.9375rem; }
.btn--solid {
  background: var(--accent);
  color: var(--on-accent);
  border: 1px solid var(--accent);
  box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--accent) 70%, transparent);
}
.btn--solid:hover { background: var(--accent-hi); border-color: var(--accent-hi); }
.btn--line {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--text);
}
.btn--line:hover { background: var(--text); color: var(--bg); }
.btn--dark { background: #161618; color: #F4F2ED; border: 1px solid #161618; }
.btn--dark:hover { background: #2A2A2F; }
.btn--ghost-dark { background: transparent; color: #161618; border: 1.5px solid #161618; }
.btn--ghost-dark:hover { background: #161618; color: #F4F2ED; }

.textlink {
  display: inline-block;
  width: fit-content;
  padding-block: 10px;
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  font-size: 0.96875rem;
}
.textlink:hover { text-decoration-thickness: 2.5px; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--panel);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text);
}
.chip .icon { color: var(--accent-text); width: 16px; height: 16px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(48px, 6vw, 88px) 0 clamp(56px, 7vw, 96px);
  background:
    radial-gradient(42% 55% at 80% 60%, var(--glow-2), transparent 70%),
    radial-gradient(38% 45% at 100% 100%, var(--glow-1), transparent 70%);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 0 clamp(32px, 4vw, 64px);
  align-items: stretch;
}

/* the headline runs full width; the visual rises beside its second line */
.hero__head { grid-column: 1 / -1; position: relative; z-index: 1; }
.hero__main { display: flex; flex-direction: column; min-width: 0; }
.hero__visual { margin-top: calc(var(--display) * -1 - 4px); }

.hero__kicker { margin-bottom: clamp(20px, 3vw, 32px); }
.hero__kicker .chip { font-size: 0.9375rem; }

.hero__title {
  font-size: var(--display);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.048em;
  text-wrap: balance;
  margin-left: -0.04em;
}
.hero__title em {
  font-style: normal;
  color: var(--accent);
}

.hero__intro {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  margin-top: clamp(32px, 4.5vw, 56px);
}

.hero__tile {
  --knock: #FF6A24;
  display: grid; place-items: center;
  width: clamp(132px, 13vw, 184px);
  aspect-ratio: 1;
  border-radius: 28px;
  background:
    radial-gradient(80% 80% at 20% 15%, rgba(255, 255, 255, .35), transparent 60%),
    linear-gradient(140deg, #FF8A4C, #FF5B14 55%, #E8480A);
  box-shadow: 0 24px 50px -20px rgba(255, 91, 20, .7);
}
.hero__tile .logo-mark { width: 58%; height: auto; }
.hero__tile .lm-bars { fill: #161618; }
.hero__tile .lm-arrow { stroke: #FFFFFF; }
.hero__tile .lm-head { fill: #FFFFFF; }

.hero__lead {
  max-width: 34rem;
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}
.hero__lead strong { color: var(--text); font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px clamp(28px, 4vw, 56px);
  margin-top: auto;
  padding-top: clamp(40px, 5vw, 64px);
}
.stat { display: flex; align-items: center; gap: 16px; }
.stat__icon {
  display: grid; place-items: center;
  width: 64px; height: 64px;
  border-radius: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.stat__icon .icon { width: 26px; height: 26px; stroke-width: 1.75; }
.stat__num {
  display: block;
  font-size: clamp(2rem, 3vw, 2.625rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat__label { display: block; margin-top: 6px; color: var(--muted); font-size: 0.9375rem; line-height: 1.3; }

/* The visual: the original Taxis TG mark, as glass bars on a panel */
.hero__visual {
  position: relative;
  min-height: 560px;
  border-radius: 32px;
  background:
    radial-gradient(70% 60% at 70% 30%, color-mix(in srgb, var(--bar-a) 14%, transparent), transparent 70%),
    var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.hero__visual::before {
  /* faint dot grid */
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background-image: radial-gradient(color-mix(in srgb, var(--text) 14%, transparent) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(80% 70% at 60% 35%, #000, transparent 75%);
  mask-image: radial-gradient(80% 70% at 60% 35%, #000, transparent 75%);
}
.bars {
  position: absolute;
  right: 4%; top: 4%;
  width: 88%;
  height: auto;
  overflow: visible;
}
.bars .bar {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: bar-rise .9s var(--ease-out) both;
  animation-delay: calc(var(--i) * 90ms + 150ms);
}
.bars .bar-front { stroke: var(--bar-edge); stroke-width: 1; }
.bars .bar-side, .bars .bar-top { stroke: var(--bar-edge); stroke-width: 1; stroke-linejoin: round; }
.bars .reflection { opacity: .28; animation: fade-in .8s ease-out .9s both; }
.bars .floor { fill: color-mix(in srgb, var(--bar-b) 30%, transparent); }
.bars .arrow-knock { fill: none; stroke: var(--panel); stroke-width: 22; stroke-linecap: round; }
.bars .arrow-line { fill: none; stroke: var(--text); stroke-width: 9; stroke-linecap: round; }
.bars .arrow-knock, .bars .arrow-line {
  stroke-dasharray: 1;
  animation: draw 1.1s var(--ease-out) .8s both;
}
.bars .arrow-head { fill: var(--text); stroke: var(--panel); stroke-width: 6; stroke-linejoin: round; paint-order: stroke; animation: fade-in .3s ease-out 1.75s both; }

@keyframes bar-rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fade-in { from { opacity: 0; } }

.toast {
  position: absolute;
  top: 28px; left: 28px;
  display: flex; align-items: center; gap: 12px;
  max-width: 290px;
  padding: 12px 18px 12px 12px;
  border-radius: 18px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  font-size: 0.875rem;
  line-height: 1.35;
  animation: fade-in .5s ease-out 1.9s both;
}
.toast__icon {
  display: grid; place-items: center;
  flex: none;
  width: 36px; height: 36px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--on-accent);
}
.toast__icon .icon { width: 18px; height: 18px; stroke-width: 2.25; }
.toast strong { display: block; font-weight: 700; }
.toast span { color: var(--muted); }

.glass-card {
  position: absolute;
  left: -9%; bottom: 28px;
  width: min(440px, 82%);
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--glass);
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow-lg);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
}
.glass-card__title {
  font-size: var(--step-2);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.glass-card p { margin-top: 12px; color: var(--muted); }
.glass-card .btn { margin-top: 22px; }

/* ---------- Sections ---------- */

.section { padding-block: clamp(72px, 10vw, 136px); }
.section--alt {
  margin-inline: var(--inset);
  border-radius: var(--r-frame);
  background: var(--surface);
}
.section--tight { padding-top: clamp(32px, 5vw, 56px); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 40px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section-title {
  max-width: 18ch;
  font-size: var(--step-4);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.042em;
  text-wrap: balance;
}
.section-intro {
  max-width: 38ch;
  color: var(--muted);
  font-size: 1.0625rem;
}
.section-intro a {
  padding-block: 12px;
  color: var(--text);
  font-weight: 600;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  white-space: nowrap;
}

/* ---------- About ---------- */

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 40px clamp(40px, 7vw, 112px);
  align-items: start;
}
.about__quote {
  max-width: 13ch;
  font-size: var(--step-4);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.042em;
  text-wrap: balance;
}
.about__body {
  display: grid;
  gap: 1.1em;
  max-width: 36rem;
  padding-top: 0.5em;
  color: var(--muted);
}
.about__body p:first-child { color: var(--text); font-size: var(--step-1); line-height: 1.5; }
.about__sign {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  column-gap: 14px;
  margin-top: 0.6em;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.about__sign::before {
  content: "ΓΚ";
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  grid-row: span 2;
}
.about__name { display: block; color: var(--text); font-weight: 700; }
.about__role { display: block; font-size: var(--step--1); }

.pledges {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(56px, 8vw, 96px);
}
.pledge {
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.pledge__icon {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  margin-bottom: 28px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent-text);
}
.pledge__icon .icon { width: 24px; height: 24px; }
.pledge dt {
  margin-bottom: 8px;
  font-size: var(--step-1);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.pledge dd { color: var(--muted); font-size: 0.96875rem; }

/* ---------- Services ---------- */

.tabs {
  position: relative;
  display: inline-flex;
  gap: 4px;
  padding: 6px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.tab {
  position: relative;
  z-index: 1;
  flex: none;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: none;
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: color var(--dur-fast);
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--bg); }
.tab:focus-visible { outline-offset: 2px; }
.tabs__ink {
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 0;
  border-radius: 999px;
  background: var(--text);
  transition: transform var(--dur-slow) var(--ease-out), width var(--dur-slow) var(--ease-out);
}

.panel { padding-top: clamp(32px, 4vw, 48px); }
.panel:focus-visible { outline: none; }
.panel.is-entering { animation: panel-in var(--dur-slow) var(--ease-out) both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.panel__intro {
  max-width: 46rem;
  font-size: var(--step-1);
  line-height: 1.55;
  text-wrap: pretty;
}
.note {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 20px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-weight: 600;
}

/* Steps: a real sequence, so numbered */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(32px, 5vw, 48px);
}
.step {
  counter-increment: step;
  padding: 24px;
  border-radius: var(--r-lg);
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.96875rem;
}
.step::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 40px; height: 40px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
}
.step__title {
  margin-bottom: 8px;
  font-size: var(--step-1);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--text);
}

.ledger {
  margin-top: 16px;
  padding: 8px clamp(20px, 3vw, 40px);
  border-radius: var(--r-lg);
  background: var(--panel);
  border: 1px solid var(--line);
}
.panel > .ledger:first-child, .panel__intro + .ledger, .note + .ledger { margin-top: clamp(32px, 5vw, 48px); }
.ledger__row {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 14px 48px;
  padding-block: 28px;
}
.ledger__row + .ledger__row { border-top: 1px solid var(--line); }
.ledger__head {
  font-size: var(--step-2);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.ledger__head span {
  display: block;
  margin-top: 6px;
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}
.ledger__list { columns: 2 16rem; column-gap: 40px; color: var(--muted); }
.ledger__list li {
  break-inside: avoid;
  position: relative;
  padding: 6px 0 6px 28px;
}
.ledger__list li::before {
  content: "";
  position: absolute; left: 0; top: calc(6px + 0.32em);
  width: 18px; height: 18px;
  border-radius: 999px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23161618' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat,
    var(--accent);
}

/* ---------- Areas ---------- */

.areas__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: 40px clamp(40px, 7vw, 112px);
  align-items: start;
}
.areas__text { display: grid; gap: 1.1em; max-width: 40rem; color: var(--muted); }
.areas__text p:first-of-type { color: var(--text); font-size: var(--step-1); line-height: 1.5; }
.areas__list { display: flex; flex-wrap: wrap; gap: 10px; }
.areas__list li {
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}
.areas__list li:first-child { background: var(--text); color: var(--bg); border-color: var(--text); }
.areas__list small { font-size: var(--step--1); font-weight: 500; color: var(--muted); }
.areas__list li:first-child small { color: color-mix(in srgb, var(--bg) 70%, transparent); }

/* ---------- Post cards (home teaser + Insights) ---------- */

.posts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.posts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.post a {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur-fast);
}
.post a:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.post__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  margin-bottom: 22px;
  font-size: var(--step--1);
  color: var(--muted);
}
.post__meta span:first-child {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-weight: 600;
}
.post__body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.post__title {
  font-size: var(--step-2);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.post__excerpt { margin-top: 12px; color: var(--muted); font-size: 0.96875rem; }
.post__more {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: auto;
  padding-top: 24px;
  font-size: 0.9375rem;
  font-weight: 600;
}
.post__more .icon {
  width: 32px; height: 32px; padding: 8px;
  border-radius: 999px;
  background: var(--text); color: var(--bg);
  transition: transform var(--dur) var(--ease-out), background-color var(--dur-fast);
}
.post a:hover .post__more .icon { transform: translateX(4px); background: var(--accent); color: var(--on-accent); }
.posts-more { margin-top: 32px; }

/* ---------- FAQ ---------- */

.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 40px 56px;
  align-items: start;
}
.faq__side { position: sticky; top: 112px; }
.faq__side .section-intro { margin-top: 20px; }
.faq__list { display: grid; gap: 10px; }
.qa {
  border-radius: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: border-color var(--dur-fast), box-shadow var(--dur);
}
.qa[open] { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.qa summary {
  position: relative;
  display: block;
  padding: 22px 76px 22px 26px;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before {
  /* the round button */
  content: "";
  position: absolute; right: 18px; top: 50%;
  width: 40px; height: 40px;
  margin-top: -20px;
  border-radius: 999px;
  background:
    linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat,
    var(--surface);
  transition: transform var(--dur) var(--ease-out), background-color var(--dur-fast);
}
.qa[open] summary::before {
  transform: rotate(45deg);
  background:
    linear-gradient(var(--on-accent), var(--on-accent)) center / 14px 2px no-repeat,
    linear-gradient(var(--on-accent), var(--on-accent)) center / 2px 14px no-repeat,
    var(--accent);
}
.qa summary:hover::before { background-color: var(--line); }
.qa summary:focus-visible { outline-offset: -2px; border-radius: 20px; }
.qa__a { padding: 0 76px 24px 26px; color: var(--muted); max-width: 46rem; }
.qa__a a { color: var(--accent-text); font-weight: 600; text-underline-offset: 3px; }

@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .qa::details-content {
    height: 0;
    overflow: clip;
    transition: height var(--dur-slow) var(--ease-out), content-visibility var(--dur-slow) allow-discrete;
  }
  .qa[open]::details-content { height: auto; }
}

/* ---------- Links ---------- */

.linklist {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.linklist a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name icon" "desc desc" "domain domain";
  gap: 6px 12px;
  height: 100%;
  padding: 22px;
  border-radius: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: border-color var(--dur-fast), transform var(--dur) var(--ease-out), box-shadow var(--dur);
}
.linklist a:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: var(--line-strong); }
.linklist__name { grid-area: name; font-size: 1.125rem; font-weight: 700; letter-spacing: -0.01em; }
.linklist__desc { grid-area: desc; color: var(--muted); font-size: 0.9375rem; line-height: 1.45; }
.linklist__domain {
  grid-area: domain;
  display: inline-flex; align-items: center; justify-content: space-between; gap: 6px;
  margin-top: 10px;
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--muted);
}
.linklist__domain .icon {
  width: 28px; height: 28px; padding: 7px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  transition: transform var(--dur) var(--ease-out), background-color var(--dur-fast);
}
.linklist a:hover .linklist__domain .icon { background: var(--accent); color: var(--on-accent); transform: translate(2px, -2px); }

/* ---------- Contact ---------- */

.contact__title {
  max-width: 16ch;
  font-size: var(--step-4);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.042em;
  text-wrap: balance;
}
.contact__lead { margin-top: 20px; color: var(--muted); max-width: 40rem; font-size: 1.0625rem; }

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 16px;
  margin-top: clamp(36px, 5vw, 64px);
  align-items: stretch;
}
.contact__info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 32px 28px;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--r-lg);
  background: var(--panel);
  border: 1px solid var(--line);
}
.cblock { display: grid; gap: 2px; align-content: start; }
.cblock__label {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 6px;
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--muted);
}
.cblock__label .icon {
  width: 32px; height: 32px; padding: 8px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-text);
}
.cblock__value { font-size: var(--step-1); font-weight: 600; line-height: 1.4; }
.cblock__big {
  display: inline-block;
  width: fit-content;
  min-height: var(--tap);
  padding-block: 6px;
  font-size: clamp(1.5rem, 2.3vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0 3px;
  background-position: 0 calc(100% - 4px);
  background-repeat: no-repeat;
  transition: background-size var(--dur-slow) var(--ease-out);
}
.cblock__big:hover { background-size: 100% 3px; }
.cblock__big--mail { font-size: clamp(1.25rem, 1.9vw, 1.5rem); overflow-wrap: anywhere; }

.map {
  grid-column: 1 / -1;
  position: relative;
  aspect-ratio: 16 / 8;
  overflow: hidden;
  border-radius: 20px;
  background-color: var(--surface);
  background-image: radial-gradient(color-mix(in srgb, var(--text) 16%, transparent) 1px, transparent 1.2px);
  background-size: 20px 20px;
}
.map__facade {
  position: absolute; inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
}
.map__pin {
  display: grid; place-items: center;
  width: 56px; height: 56px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 0 0 10px var(--accent-soft);
}
.map__pin .icon { width: 24px; height: 24px; stroke-width: 2; }
.map__addr { margin-top: 8px; font-size: var(--step-1); font-weight: 700; }
.map__note { font-size: var(--step--1); color: var(--muted); max-width: 34ch; }
.map__note a { color: var(--accent-text); font-weight: 600; text-underline-offset: 3px; }
.map iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
  filter: var(--map-filter);
}

/* Form */
.form {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--r-lg);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.form__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 4px; }
.form__title { font-size: var(--step-2); font-weight: 800; letter-spacing: -0.03em; }
.form__legend { font-size: var(--step--1); color: var(--muted); }
.req { color: var(--accent-text); }

.field { display: grid; gap: 8px; min-width: 0; align-content: start; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { font-size: var(--step--1); font-weight: 600; color: var(--text); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line-ui);
  border-radius: 14px;
  padding: 13px 16px;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.field textarea { resize: vertical; min-height: 128px; }
.field select {
  appearance: none;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 17px) 52%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 44px;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.field [aria-invalid="true"] { border-color: var(--danger); }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger) 22%, transparent); }
.field__error { display: flex; gap: 6px; font-size: var(--step--1); color: var(--danger); }
.field__error::before { content: "!"; font-weight: 800; }
.form__error {
  padding: 12px 16px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--danger) 12%, transparent);
  color: var(--danger);
  font-size: 0.9375rem;
  font-weight: 500;
}
.form__submit { justify-self: start; margin-top: 4px; }
.form__hint { font-size: var(--step--1); color: var(--muted); }
.form__hint a { color: var(--accent-text); text-underline-offset: 3px; }
.form__done {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--accent-soft);
  font-size: 0.9375rem;
  color: var(--muted);
}
.form__done:empty { display: none; }
.form__done .icon { color: var(--accent-text); margin-top: 3px; }
.form__done strong { display: block; color: var(--text); font-weight: 600; }
.form__done a { color: var(--accent-text); text-underline-offset: 3px; }

/* ---------- CTA band (subpages) ---------- */

.cta-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px 48px;
  margin: 0 var(--inset) var(--inset);
  padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 72px);
  border-radius: var(--r-frame);
  background:
    radial-gradient(60% 90% at 90% 10%, rgba(255, 255, 255, .28), transparent 60%),
    linear-gradient(135deg, #FF8A4C, #FF5B14 55%, #EC4A0A);
  color: #161618;
  overflow: hidden;
}
.cta-band__title {
  max-width: 14ch;
  font-size: clamp(2.25rem, 5.4vw, 4.75rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.048em;
  text-wrap: balance;
}
.cta-band p { margin-top: 16px; font-size: 1.125rem; font-weight: 500; max-width: 36ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band :focus-visible { outline-color: #161618; }

/* ---------- Subpages: page hero, breadcrumb, prose ---------- */

.page-hero {
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(40px, 5vw, 64px);
  background: radial-gradient(40% 80% at 95% 0%, var(--glow-2), transparent 70%);
}
.page-hero__title {
  max-width: 20ch;
  font-size: clamp(2.5rem, 6.2vw, 5.25rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.048em;
  text-wrap: balance;
}
.page-hero__lead {
  margin-top: 24px;
  max-width: 44rem;
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}

.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px;
  margin-bottom: 28px;
  font-size: var(--step--1);
  color: var(--muted);
}
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--line-strong); }
.crumbs a {
  display: inline-flex; align-items: center;
  min-height: var(--tap);
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
}
.crumbs a:hover { color: var(--text); }

.article-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.article-meta p {
  padding: 10px 18px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  font-size: var(--step--1);
  color: var(--muted);
  line-height: 1.35;
}
.article-meta strong { display: block; color: var(--text); font-weight: 700; }

.page-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 18rem);
  gap: 48px clamp(40px, 6vw, 96px);
  padding-block: clamp(32px, 5vw, 64px) clamp(64px, 8vw, 112px);
  align-items: start;
}
.page-aside {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 16px;
  font-size: 0.9375rem;
}
.page-aside nav {
  padding: 22px;
  border-radius: var(--r-lg);
  background: var(--panel);
  border: 1px solid var(--line);
}
.page-aside h2 { margin-bottom: 10px; font-size: var(--step--1); font-weight: 700; color: var(--text); }
.toc a {
  display: block;
  min-height: var(--tap);
  padding: 11px 12px;
  margin-inline: -12px;
  border-radius: 12px;
  color: var(--muted);
  text-decoration: none;
  line-height: 1.4;
  transition: background-color var(--dur-fast), color var(--dur-fast);
}
.toc a:hover { background: var(--surface); color: var(--text); }

.aside-cta {
  padding: 24px;
  border-radius: var(--r-lg);
  background: #161618;
  color: #F4F2ED;
}
.aside-cta p { color: #A9A9B2; margin-bottom: 16px; }
.aside-cta strong { display: block; margin-bottom: 8px; font-weight: 800; font-size: var(--step-1); letter-spacing: -0.02em; }
.aside-cta .btn { width: 100%; }

.prose { max-width: 44rem; min-width: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 {
  margin-top: 2.2em;
  font-size: var(--step-3);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.prose h3 { margin-top: 1.8em; font-size: var(--step-1); font-weight: 700; line-height: 1.3; }
.prose h2 + *, .prose h3 + * { margin-top: 0.7em; }
.prose p, .prose li { color: color-mix(in srgb, var(--text) 84%, var(--bg)); }
.prose a { color: var(--accent-text); font-weight: 600; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2.5px; }
.prose strong { color: var(--text); font-weight: 700; }
.prose ul > li, .prose ol > li { position: relative; padding-left: 30px; }
.prose ul > li + li, .prose ol > li + li { margin-top: 0.55em; }
.prose ul > li::before {
  content: "";
  position: absolute; left: 4px; top: 0.68em;
  width: 9px; height: 9px;
  border-radius: 999px;
  background: var(--accent);
}
.prose ol { counter-reset: item; }
.prose ol > li { counter-increment: item; }
.prose ol > li::before {
  content: counter(item);
  position: absolute; left: 0; top: 0.1em;
  display: grid; place-items: center;
  width: 22px; height: 22px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.75rem;
  font-weight: 800;
}
.prose .table-wrap {
  overflow-x: auto;
  padding: 4px 20px;
  border-radius: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.prose th, .prose td {
  padding: 14px 16px 14px 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.prose tbody tr:last-child td { border-bottom: 0; }
.prose th { font-weight: 700; color: var(--text); }
.prose td { color: var(--muted); }
.prose td:first-child { color: var(--text); font-weight: 600; }

.summary {
  padding: 24px 28px;
  border-radius: var(--r-lg);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.summary h2 {
  display: inline-flex;
  margin: 0 0 14px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0;
}
.summary ul > li + li { margin-top: 0.45em; }

.disclaimer {
  margin-top: 2.4em;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: var(--step--1);
  color: var(--muted);
}
.prose .disclaimer { color: var(--muted); }

.article-cta {
  margin-top: 2.4em;
  padding: clamp(28px, 4vw, 40px);
  border-radius: var(--r-lg);
  background: #161618;
  color: #F4F2ED;
}
.prose .article-cta h2 { margin: 0 0 10px; color: #F4F2ED; font-size: var(--step-3); }
.prose .article-cta p { color: #A9A9B2; }
.article-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.article-cta .btn--line { color: #F4F2ED; border-color: #F4F2ED; }
.article-cta .btn--line:hover { background: #F4F2ED; color: #161618; }

.related { padding-block: clamp(56px, 7vw, 96px); }
.related h2 { margin-bottom: 28px; font-size: var(--step-3); font-weight: 800; letter-spacing: -0.035em; }

.storage-reset { margin-top: 1em; }

/* ---------- Footer (always dark) ---------- */

.site-footer {
  --bg: var(--footer-bg);
  --knock: var(--footer-bg);
  --text: #F4F2ED;
  --muted: #A9A9B2;
  --line: rgba(255, 255, 255, .1);
  margin: 0 var(--inset) var(--inset);
  padding-block: clamp(48px, 6vw, 72px) 32px;
  border-radius: var(--r-frame);
  background: var(--footer-bg);
  color: var(--text);
}
.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 5fr) repeat(2, minmax(0, 3fr));
  gap: 40px 48px;
}
.brand--footer { min-height: 0; }
.site-footer__legal { margin-top: 20px; font-size: var(--step--1); color: var(--muted); line-height: 1.8; }
.site-footer__legal a { color: var(--muted); text-decoration: none; padding-block: 12px; }
.site-footer__legal a:hover { color: var(--text); }
.footer-col h2 { margin-bottom: 10px; font-size: var(--step--1); font-weight: 700; color: var(--text); }
.footer-col a {
  display: inline-flex; align-items: center;
  min-height: var(--tap);
  font-size: 0.9375rem;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--dur-fast);
}
.footer-col a:hover { color: var(--text); }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: var(--step--1);
  color: var(--muted);
}
.social { display: flex; gap: 8px; }
.social a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--tap); min-width: var(--tap);
  padding-inline: 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  transition: background-color var(--dur-fast), color var(--dur-fast);
}
.social a:hover { background: var(--text); color: var(--bg); }

/* inline text links: a bigger tap area without changing the line box */
.qa__a a, .map__note a, .form__hint a, .prose p a, .prose li a { padding-block: 12px; }

/* ---------- Mobile call dock ---------- */

.dock { display: none; }

/* ---------- 404 ---------- */

.notfound { padding-block: clamp(80px, 14vw, 180px); }
.notfound .page-hero__title { max-width: 16ch; }
.notfound__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- Desktop scrollbar: the thumb is the ledger double rule ---------- */

@media (hover: hover) and (pointer: fine) {
  html { scrollbar-color: var(--accent) var(--canvas); scrollbar-width: thin; }

  @supports selector(::-webkit-scrollbar) {
    html { scrollbar-color: auto; scrollbar-width: auto; }
    ::-webkit-scrollbar { width: 14px; height: 14px; }
    ::-webkit-scrollbar-track {
      background:
        linear-gradient(to right, transparent 6.5px, var(--line) 6.5px 7.5px, transparent 7.5px)
        var(--canvas);
    }
    ::-webkit-scrollbar-thumb {
      min-height: 48px;
      border-radius: 2px;
      background:
        linear-gradient(to right,
          transparent 4px, var(--accent) 4px 5.5px,
          transparent 5.5px 8.5px, var(--accent) 8.5px 10px,
          transparent 10px)
        var(--canvas);
    }
    ::-webkit-scrollbar-thumb:hover {
      background:
        linear-gradient(to right,
          transparent 3.5px, var(--accent-hi) 3.5px 5.5px,
          transparent 5.5px 8.5px, var(--accent-hi) 8.5px 10.5px,
          transparent 10.5px)
        color-mix(in srgb, var(--accent) 12%, var(--canvas));
    }
    ::-webkit-scrollbar-corner { background: var(--canvas); }
    textarea::-webkit-scrollbar { width: 10px; }
    textarea::-webkit-scrollbar-track { background: var(--bg); }
    textarea::-webkit-scrollbar-thumb { background: var(--line-ui); border: 3px solid var(--bg); border-radius: 999px; }
  }
}

/* ---------- Mobile: reading progress along the top edge ---------- */

.progress { display: none; }

@media (max-width: 860px) {
  .progress {
    display: block;
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 60;
    height: 3px;
    pointer-events: none;
  }
  .progress span {
    display: block;
    height: 100%;
    background: var(--accent);
    transform-origin: 0 50%;
    transform: scaleX(var(--progress, 0));
    will-change: transform;
  }
  @supports (animation-timeline: scroll()) {
    .progress span {
      animation: progress-grow linear both;
      animation-timeline: scroll(root block);
      animation-duration: auto !important;
    }
  }
}
@keyframes progress-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__visual { min-height: 520px; margin-top: 48px; }
  .glass-card { left: 28px; }
  .linklist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1000px) {
  .steps, .pledges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact__grid, .areas__grid, .page-body { grid-template-columns: minmax(0, 1fr); }
  .page-aside { position: static; }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .site-footer__top > :first-child { grid-column: 1 / -1; }
  .cta-band { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
  html { scroll-padding-top: calc(var(--header-h) + 16px); }
  .menu-btn { display: block; }
  .masthead__tag { display: none; }

  .frame { margin: 0; border-radius: 0; }
  .announce { padding: 12px 56px 12px 20px; text-align: left; font-size: 0.875rem; }
  .announce__close { top: 50%; transform: translateY(-50%); right: 6px; }

  .masthead,
  .announce-off .masthead {
    position: sticky;
    top: 0;
    margin: 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: color-mix(in srgb, var(--panel) 92%, transparent);
    -webkit-backdrop-filter: saturate(150%) blur(14px);
    backdrop-filter: saturate(150%) blur(14px);
  }
  .masthead__inner { min-height: var(--header-h); gap: 12px; padding: 8px 16px; }
  .header-actions { gap: 8px; }
  .call-pill { width: var(--tap); height: var(--tap); padding: 0; }
  .call-pill span { display: none; }
  .wordmark { font-size: 1.3125rem; }
  .logo-mark { width: 28px; height: 28px; }

  .navbar-sentinel { display: none; }
  .navbar,
  .navbar.is-stuck {
    position: fixed;
    top: var(--menu-top, var(--header-h));
    left: 0; right: 0;
    margin: 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0 0 24px 24px;
    background: var(--panel);
    box-shadow: var(--shadow-lg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur), transform var(--dur-slow) var(--ease-out), visibility 0s var(--dur-slow);
  }
  .navbar.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
    transition: opacity var(--dur), transform var(--dur-slow) var(--ease-out), visibility 0s;
  }
  .navbar__inner { flex-direction: column; align-items: stretch; gap: 8px; padding: 12px 16px 20px; }
  .navbar__links { flex-direction: column; align-items: stretch; gap: 4px; }
  .navbar__links a { min-height: 56px; padding: 0 18px; font-size: var(--step-1); font-weight: 600; }
  .navbar__aside, .navbar.is-stuck .navbar__aside { display: inline-flex; margin: 8px 0 0; padding: 0 18px; }
  .navbar.is-stuck .navbar__mark, .navbar.is-stuck .navbar__call { display: none; }

  .about__grid, .faq__grid, .ledger__row { grid-template-columns: minmax(0, 1fr); }
  .faq__side { position: static; }
  .section--alt { margin-inline: 8px; border-radius: 24px; }
  .cta-band, .site-footer { margin-inline: 8px; border-radius: 24px; }
}

@media (max-width: 640px) {
  .hero { padding-top: 32px; }
  .hero__kicker .chip { font-size: 0.875rem; }
  .hero__title { font-size: clamp(2.875rem, 13.4vw, 4.25rem); line-height: 0.96; }
  .hero__title br { display: none; }
  .hero__intro { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hero__tile { display: none; }
  .hero__lead { font-size: 1.125rem; }
  .hero__actions .btn { width: 100%; }
  .stats { gap: 18px; padding-top: 36px; }
  .stat { flex: 1 1 100%; }
  .hero__visual {
    display: flex; flex-direction: column; justify-content: flex-end;
    min-height: 600px;
    padding: 12px;
    border-radius: 24px;
  }
  .bars { top: 72px; right: 6%; width: 86%; }
  .toast { top: 14px; left: 14px; right: 14px; max-width: none; }
  .glass-card { position: relative; left: auto; bottom: auto; width: auto; padding: 22px; }

  .pledges, .steps, .posts, .posts--2, .linklist { grid-template-columns: minmax(0, 1fr); }

  .tabs { display: flex; flex-direction: column; border-radius: 24px; width: 100%; }
  .tab { text-align: left; }
  .tabs__ink { display: none; }
  .tab[aria-selected="true"] { background: var(--text); }

  .ledger { padding-inline: 20px; }
  .ledger__row { padding-block: 22px; }
  .ledger__list { columns: 1; }

  .contact__info { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .map { aspect-ratio: 4 / 3; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .form__submit { justify-self: stretch; }

  .qa summary { padding: 20px 68px 20px 20px; font-size: 1.0625rem; }
  .qa summary::before { right: 14px; }
  .qa__a { padding: 0 20px 22px; }

  .article-cta__actions .btn, .cta-band__actions .btn { width: 100%; }
  .site-footer__top { grid-template-columns: minmax(0, 1fr); }

  /* the frame leaves room for the sticky call bar */
  .frame { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }

  .dock {
    position: fixed;
    left: 10px; right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 40;
    display: flex; gap: 8px;
    padding: 8px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--panel) 90%, transparent);
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow-lg);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    backdrop-filter: blur(14px) saturate(150%);
  }
  .dock__call {
    flex: 1;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 54px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--on-accent);
    font-size: 1.0625rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--accent) 80%, transparent);
    transition: transform var(--dur-fast);
  }
  .dock__call .icon { width: 20px; height: 20px; stroke-width: 2.25; }
  .dock__call span { font-weight: 500; font-variant-numeric: tabular-nums; }
  .dock__mail {
    display: grid; place-items: center;
    width: 54px; height: 54px;
    flex: none;
    border-radius: 999px;
    border: 1px solid var(--line-ui);
    color: var(--text);
    transition: transform var(--dur-fast);
  }
  .dock__call:active, .dock__mail:active { transform: scale(.97); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
  }
}
