/* ==========================================================================
   WiseShift — site styles (2026-10 refresh)
   Idea: "the shift" — one variable typeface (Archivo, width + weight axes).
   Headlines are set wide; the home headline widens once on load.
   Structure is drawn as circuit traces: thin lines that end in gold nodes,
   echoing the circuit-globe logo. Brand: blue #3D84F5, gold #F9A602.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-var-latin.woff2") format("woff2");
}

:root {
  /* colour */
  --paper: #F4F7FC;       /* page base: cool blue-white */
  --surface: #FFFFFF;
  --ink: #0E1B3D;         /* headings, dark bands */
  --text: #2A3550;
  --muted: #586380;
  --signal: #3D84F5;      /* brand blue: marks, icons */
  --signal-deep: #1E54C6; /* brand blue for text and buttons (AA on white) */
  --gold: #F9A602;        /* nodes, primary action */
  --gold-deep: #DB9000;
  --trace: #BFD0EC;       /* circuit lines */
  --line: #DDE5F2;

  /* legacy names still used by a few components */
  --blue: var(--signal); --blue-dark: var(--signal-deep); --heading: var(--ink);
  --navy: var(--ink); --navy-deep: #091433; --bg-light: var(--paper); --bg-tint: #E9F0FC; --white: #fff;

  /* type */
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --wide: 115%;  /* display headlines: semi-wide (easier to read than 125%) */
  --semi: 106%;

  /* shape and rhythm */
  --radius: 6px;
  --radius-sm: 4px;
  --node: 9px;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 9vw, 120px);
  --header-h: 72px;
  --shadow: 0 1px 2px rgba(14, 27, 61, .06), 0 10px 30px rgba(14, 27, 61, .08);
  --shadow-lg: 0 24px 60px rgba(14, 27, 61, .22);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.62;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  font-kerning: normal;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--signal-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); text-decoration-thickness: 2px; }
h1, h2, h3, h4 { color: var(--ink); margin: 0 0 .5em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.25rem); font-stretch: var(--wide); font-weight: 800; line-height: 1.02; letter-spacing: -.025em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.55rem); font-stretch: var(--semi); line-height: 1.1; letter-spacing: -.018em; }
h3 { font-size: 1.2rem; line-height: 1.3; font-weight: 650; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
::selection { background: #FFE3A3; color: var(--ink); }

.skip-link { position: absolute; left: 16px; top: -100px; z-index: 1000; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius); }
.skip-link:focus { top: 12px; color: #fff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--light { background: var(--surface); }
.section--tint { background: var(--surface); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.28rem); line-height: 1.55; color: var(--text); }

/* Section heading on a trace: a short vertical line that starts at a gold node */
.section-head { position: relative; max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); padding-left: 28px; }
.section-head::before {
  content: ""; position: absolute; left: 0; top: .55em; width: var(--node); height: var(--node);
  border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(249, 166, 2, .18);
}
.section-head::after {
  content: ""; position: absolute; left: calc(var(--node) / 2 - 1px); top: calc(.55em + var(--node) + 6px); bottom: 4px;
  width: 1.5px; background: var(--trace);
}
.section-head p { font-size: 1.1rem; color: var(--muted); max-width: 62ch; }
.section-head--center { margin-left: 0; margin-right: 0; text-align: left; }

/* Small line above the home headline (sentence case, no tracking) */
.kicker { font-size: 1rem; font-weight: 600; color: var(--signal-deep); margin: 0 0 20px; display: flex; align-items: center; gap: 12px; }
.kicker::before { content: ""; flex: 0 0 36px; height: 1.5px; background: var(--signal); }
@media (max-width: 600px) { .kicker::before { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 24px;
  font: 650 1rem/1.2 var(--font); font-stretch: var(--semi); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; border-radius: var(--radius);
  transition: background-color .18s, color .18s, border-color .18s, box-shadow .18s;
}
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-deep); color: var(--ink); }
.btn--primary { background: var(--signal-deep); color: #fff; }
.btn--primary:hover { background: var(--ink); color: #fff; }
.btn--quiet, .btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--quiet:hover, .btn--outline:hover { background: var(--ink); color: #fff; }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .8); }
.btn--outline-light:hover { background: #fff; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { font-weight: 650; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244, 247, 252, .92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(255, 255, 255, .95); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand { display: inline-flex; align-items: center; }
.brand img { width: 156px; height: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: block; padding: 10px 14px; position: relative;
  color: var(--ink); font-weight: 600; font-size: .98rem; text-decoration: none;
}
.nav-list a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .2s;
}
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after { transform: scaleX(1); }
.nav-list a[aria-current="page"] { color: var(--ink); }
.nav-list .nav-cta { margin-left: 10px; }
.nav-list .nav-cta a { background: var(--gold); color: var(--ink); border-radius: var(--radius); padding: 10px 18px; font-stretch: var(--semi); }
.nav-list .nav-cta a::after { display: none; }
.nav-list .nav-cta a:hover { background: var(--gold-deep); }
.nav-list .nav-lang a {
  font-size: .85rem; font-weight: 700; padding: 6px 9px; margin-left: 6px;
  border: 1.5px solid var(--trace); border-radius: var(--radius-sm); color: var(--muted);
}
.nav-list .nav-lang a::after { display: none; }
.nav-list .nav-lang a:hover { border-color: var(--ink); color: var(--ink); }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; border-radius: var(--radius);
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .2s, background-color .2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 8px var(--gutter) 24px; display: none;
  }
  .site-nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-list a { padding: 14px 4px; font-size: 1.08rem; border-bottom: 1px solid var(--line); }
  .nav-list a::after { display: none; }
  .nav-list a[aria-current="page"] { color: var(--signal-deep); }
  .nav-list .nav-lang a { display: inline-block; margin: 14px 0 0; border-bottom: 1.5px solid var(--trace); }
  .nav-list .nav-cta { margin: 14px 0 0; }
  .nav-list .nav-cta a { text-align: center; border: 0; }
}

/* ---------- Home hero: the shift ---------- */
.hero { position: relative; background: var(--paper); border-bottom: 1.5px solid var(--trace); overflow: hidden; }
.hero .container { position: relative; padding-top: clamp(56px, 9vw, 120px); padding-bottom: clamp(56px, 8vw, 104px); }
.hero-content { max-width: none; }
.hero h1 { color: var(--ink); margin-bottom: 28px; font-size: clamp(2.3rem, 5.9vw, 5.1rem); }
.hero p { font-size: clamp(1.1rem, 1.7vw, 1.3rem); color: var(--text); max-width: 54ch; margin-bottom: 36px; }
.shift__line { display: block; font-stretch: var(--wide); }
@media (min-width: 900px) {
  .shift__line { white-space: nowrap; }
}
/* One moment of motion on the whole site: the headline widens into place. */
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .shift__line { animation: ws-shift 1.15s cubic-bezier(.16, .84, .3, 1) backwards; }
  .shift__line + .shift__line { animation-delay: .14s; }
}
@keyframes ws-shift {
  from { font-stretch: 82%; opacity: .35; }
}

/* Inner page heroes */
.page-hero { position: relative; background: var(--paper); padding: clamp(56px, 8vw, 104px) 0 clamp(44px, 6vw, 72px); border-bottom: 1.5px solid var(--trace); }
.page-hero .container { position: relative; }
.page-hero h1 { max-width: 15ch; font-size: clamp(2.3rem, 5.6vw, 4.4rem); }
.page-hero p { color: var(--muted); max-width: 58ch; font-size: clamp(1.08rem, 1.6vw, 1.25rem); margin: 0; }

/* ---------- Highlights under the hero ---------- */
.feature-strip { background: var(--surface); border-bottom: 1px solid var(--line); }
.feature-strip .grid { gap: 0; }
.feature { display: flex; gap: 16px; align-items: flex-start; padding: 32px 28px 32px 0; }
.feature + .feature { padding-left: 28px; border-left: 1px solid var(--line); }
.feature h3 { font-size: 1.08rem; margin-bottom: 4px; font-stretch: var(--semi); }
.feature p { margin: 0; font-size: .97rem; color: var(--muted); }
@media (max-width: 640px) {
  .feature { padding: 24px 0; }
  .feature + .feature { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}
.icon-badge {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--signal-deep); border: 1.5px solid var(--trace); background: var(--surface);
}
.icon-badge svg { width: 20px; height: 20px; }
.icon-badge--gold { color: var(--gold-deep); border-color: #F5D58C; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Split (text + image) ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split--reverse { grid-template-columns: .95fr 1.05fr; }
.split--reverse .split-media { order: -1; }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 860px) { .split, .split--reverse { grid-template-columns: 1fr; } .split--reverse .split-media { order: 0; } }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 36px; border-top: 1.5px solid var(--trace); }
.fact { padding: 18px 16px 0 0; }
.fact + .fact { padding-left: 16px; border-left: 1px solid var(--line); }
.fact strong { display: block; font-size: 1.9rem; line-height: 1.1; font-stretch: var(--wide); font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.fact span { font-size: .92rem; color: var(--muted); }
@media (max-width: 480px) {
  .facts { grid-template-columns: 1fr; }
  .fact + .fact { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-bottom: 14px; }
}

/* ---------- Services on the home page: a bus of connected lines ---------- */
.bus { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 72px); }
.bus__item { position: relative; border-left: 1.5px solid var(--trace); }
.bus__link {
  display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: start;
  padding: 22px 8px 22px 28px; color: inherit; text-decoration: none; position: relative;
}
.bus__link::before {
  content: ""; position: absolute; left: calc(-1 * var(--node) / 2 - .75px); top: 34px;
  width: var(--node); height: var(--node); border-radius: 50%; background: var(--surface); border: 1.5px solid var(--signal);
  transition: background-color .18s, border-color .18s;
}
.bus__icon { grid-row: span 2; color: var(--signal-deep); padding-top: 4px; }
.bus__icon svg { width: 22px; height: 22px; }
.bus__name { font-size: 1.22rem; font-weight: 700; font-stretch: var(--semi); color: var(--ink); line-height: 1.25; letter-spacing: -.01em; }
.bus__text { color: var(--muted); font-size: .98rem; margin-top: 4px; }
.bus__link:hover .bus__name, .bus__link:focus-visible .bus__name { color: var(--signal-deep); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.bus__link:hover::before, .bus__link:focus-visible::before { background: var(--gold); border-color: var(--gold); }
@media (max-width: 760px) { .bus { grid-template-columns: 1fr; } }
.center-cta { margin-top: 44px; padding-left: 28px; }

/* ---------- Why us / values: unboxed columns hanging from a trace ---------- */
.pillar, .value { position: relative; padding: 24px 0 0; border-top: 1.5px solid var(--trace); background: none; }
.pillar::before, .value::before {
  content: ""; position: absolute; left: 0; top: calc(-1 * var(--node) / 2 - .75px);
  width: var(--node); height: var(--node); border-radius: 50%; background: var(--gold);
}
.pillar .icon-badge, .value .icon-badge { margin-bottom: 16px; }
.pillar h3, .value h3 { font-stretch: var(--semi); }
.pillar p, .value p { margin: 0; color: var(--muted); }

/* ---------- Old card component (kept for safety; no longer used on home) ---------- */
.card { display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body p { margin: 0; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-banner { background: var(--signal-deep); color: #fff; position: relative; }
.cta-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px; padding-top: clamp(64px, 9vw, 112px); padding-bottom: clamp(64px, 9vw, 112px); }
.cta-banner h2 { color: #fff; margin: 0 0 12px; font-size: clamp(1.9rem, 4vw, 3.1rem); font-stretch: var(--wide); font-weight: 800; max-width: 18ch; }
.cta-banner p { margin: 0; color: rgba(255, 255, 255, .9); font-size: 1.12rem; max-width: 56ch; }
.cta-banner .btn--gold:focus-visible { outline-color: #fff; }
.cta-banner .btn--gold:hover { background: #fff; color: var(--ink); }
@media (max-width: 760px) { .cta-inner { grid-template-columns: 1fr; align-items: start; } }

/* ---------- Services page ---------- */
.service-index { display: flex; flex-wrap: wrap; gap: 8px; }
.service-index a {
  display: inline-block; padding: 8px 14px; border-radius: var(--radius-sm); font-size: .94rem; font-weight: 600;
  background: var(--paper); border: 1.5px solid var(--line); color: var(--ink); text-decoration: none;
}
.service-index a:hover { border-color: var(--signal); color: var(--signal-deep); background: var(--surface); }
.service-block { padding: clamp(56px, 8vw, 104px) 0; border-bottom: 1px solid var(--line); background: var(--paper); }
.service-block:nth-of-type(even) { background: var(--surface); }
.service-num { display: none; }
.service-block h2 { font-size: clamp(1.7rem, 3.2vw, 2.45rem); }
.service-block .tagline { font-weight: 650; color: var(--signal-deep); margin-bottom: 14px; font-size: 1.08rem; }
.service-block ul { padding-left: 0; list-style: none; margin: 0 0 30px; display: grid; gap: 10px; }
.service-block li { position: relative; padding-left: 26px; }
.service-block li::before {
  content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%;
  background: var(--surface); border: 1.5px solid var(--signal);
}

/* ---------- About: four-step approach (a real sequence, so it is numbered) ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; list-style: none; padding: 0; margin: 0; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 1.5px; background: var(--trace); }
.steps li { position: relative; padding: 0; background: none; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%; margin-bottom: 18px;
  background: var(--surface); border: 1.5px solid var(--ink); color: var(--ink);
  font-weight: 800; font-stretch: var(--wide); font-size: 1.05rem;
}
.steps li:last-child::before { background: var(--gold); border-color: var(--gold); }
.steps h3 { font-size: 1.15rem; font-stretch: var(--semi); }
.steps p { margin: 0; color: var(--muted); font-size: .98rem; }
@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps::before { display: none; }
}
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); }
.booking { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.booking h2 { margin-bottom: 8px; }
.booking .lead { margin: 0; color: var(--muted); }
@media (max-width: 720px) { .booking { grid-template-columns: 1fr; } }
.booking-embed { margin-top: 24px; }
.booking-embed iframe { width: 100%; min-height: 640px; border: 0; border-radius: var(--radius-sm); background: #fff; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin-top: 8px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: .94rem; color: var(--ink); margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--surface); border: 1.5px solid #B7C5DD; border-radius: var(--radius);
  transition: border-color .18s, box-shadow .18s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--signal-deep); box-shadow: 0 0 0 4px rgba(61, 132, 245, .2); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #B42318; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; color: var(--muted); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--signal-deep); flex: 0 0 auto; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius); font-weight: 600; display: none; }
.form-status.is-success { display: block; background: #E6F4EA; color: #1C5E33; }
.form-status.is-error { display: block; background: #FDECEC; color: #912018; }

.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.info-list li { display: flex; gap: 16px; align-items: flex-start; }
.info-list strong { display: block; color: var(--ink); }
.info-list p { margin: 0; color: var(--muted); }

/* ---------- Consent-gated embeds (Google Calendar / Maps) ---------- */
.consent-embed { border-radius: var(--radius); overflow: hidden; min-height: 380px; }
.consent-embed--booking { margin-top: 24px; min-height: 320px; }
.consent-embed.is-loaded { min-height: 0; background: #fff; }
.consent-frame { display: block; width: 100%; border: 0; }
.consent-placeholder {
  position: relative; min-height: inherit; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 40px 24px; text-align: center; color: #fff; background: var(--ink);
}
.consent-placeholder strong { font-size: 1.12rem; font-stretch: var(--semi); }
.consent-placeholder p { max-width: 480px; margin: 0 0 16px; color: rgba(255, 255, 255, .85); }
.consent-placeholder__buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.consent-placeholder__link { margin: 16px 0 0 !important; }
.consent-placeholder__link a { color: #FFD580; }

/* ---------- Consent dialog ---------- */
.consent-lock, .consent-lock body { overflow: hidden; }
.consent { position: fixed; z-index: 1000; font-size: .96rem; }
.consent--modal { inset: 0; display: flex; align-items: flex-end; justify-content: center; padding: 16px; background: rgba(9, 20, 51, .55); }
@media (min-width: 720px) { .consent--modal { align-items: center; } }
.consent--bar { left: 16px; right: 16px; bottom: 16px; }
.consent__box {
  width: 100%; max-width: 620px; max-height: calc(100vh - 32px); overflow-y: auto;
  margin: 0 auto; padding: 28px; background: #fff; color: var(--text);
  border-radius: var(--radius); border-top: 3px solid var(--gold); box-shadow: var(--shadow-lg);
}
.consent--bar .consent__box { max-width: 960px; padding: 20px 24px; }
.consent__box h2 { font-size: 1.35rem; margin-bottom: 10px; }
.consent__box p { margin: 0 0 12px; }
.consent__links { font-size: .9rem; }
/* WCAG 2.2 target size: the two policy links sit side by side, so give them at least 24px of height */
.consent__links a { display: inline-block; padding: 6px 0; }
.consent__buttons { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 8px; }
.consent__buttons .btn { min-height: 46px; padding: 10px 20px; font-size: .96rem; flex: 1 1 auto; }
@media (min-width: 560px) { .consent__buttons .btn { flex: 0 1 auto; } }
.consent-cat { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 10px; }
.consent-cat label { display: flex; gap: 10px; align-items: center; cursor: pointer; color: var(--ink); }
.consent-cat input { width: 20px; height: 20px; accent-color: var(--signal-deep); }
.consent-cat p { margin: 6px 0 0 30px; font-size: .9rem; color: var(--muted); }

/* ---------- Legal page ---------- */
.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; }
@media (max-width: 900px) { .legal-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
.legal-toc { position: sticky; top: calc(var(--header-h) + 24px); border-left: 1.5px solid var(--trace); padding: 4px 0 4px 18px; }
@media (max-width: 900px) { .legal-toc { position: static; } }
.legal-toc h2 { font-size: .95rem; font-stretch: 100%; color: var(--muted); margin: 0 0 10px; letter-spacing: 0; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.legal-toc a { display: block; padding: 6px 0; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .97rem; }
.legal-toc a:hover { color: var(--signal-deep); text-decoration: underline; }
.legal-doc { max-width: 76ch; }
.legal-doc > section { padding-top: 8px; margin-bottom: 64px; scroll-margin-top: calc(var(--header-h) + 16px); }
.legal-doc > section > h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); padding-bottom: 14px; border-bottom: 1.5px solid var(--trace); }
.legal-doc h3 { font-size: 1.15rem; margin-top: 1.8em; }
.legal-doc h4 { font-size: 1rem; margin-top: 1.4em; }
.legal-doc ul { padding-left: 1.2em; }
.legal-doc li { margin-bottom: 6px; }
.legal-updated { font-size: .92rem; color: var(--muted); }
.legal-summary { background: var(--surface); border-left: 3px solid var(--gold); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; margin: 16px 0 24px; }
.legal-table-wrap { overflow-x: auto; margin: 12px 0 20px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: .94rem; background: var(--surface); }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal-table th { color: var(--ink); font-weight: 700; }
.legal-table thead th { border-bottom: 1.5px solid var(--trace); }
.legal-table--kv th { width: 34%; }
.legal-table code { font-size: .88em; background: var(--paper); padding: 1px 6px; border-radius: 3px; }
.todo { background: #FFF4DB; color: #8A5300; border: 1px dashed var(--gold); border-radius: 3px; padding: 0 6px; font-weight: 600; }
.legal-back { font-size: .92rem; }
.prose { max-width: 76ch; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose ul { padding-left: 1.2em; }
.notice { background: #FFF4DB; border-left: 3px solid var(--gold); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: 32px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .74); padding: 72px 0 96px; font-size: .96rem; }
.site-footer a { color: rgba(255, 255, 255, .88); text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.footer-pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding-bottom: 48px; margin-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.footer-pillars h4 { color: #fff; font-size: 1.25rem; font-stretch: var(--wide); font-weight: 800; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.footer-pillars h4::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.footer-pillars p { margin: 0; }
.footer-main { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
.footer-brand img { width: 156px; margin-bottom: 16px; }
.footer-brand p { max-width: 380px; }
.site-footer h5 { color: #fff; font-size: 1rem; font-weight: 700; margin: 0 0 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .9rem; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: rgba(255, 255, 255, .88); cursor: pointer; }
.link-button:hover { color: var(--gold); text-decoration: underline; }
@media (max-width: 760px) { .footer-pillars, .footer-main { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .footer-links { gap: 2px; }
  .footer-links a { display: inline-block; padding: 10px 0; }
  .footer-legal a, .footer-legal .link-button { display: inline-block; padding: 10px 0; }
}

/* Scroll reveal is switched off: content is simply there. */
.js .reveal, .js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 404 ---------- */
.error-page { min-height: 60vh; display: flex; align-items: center; }
.error-alt { margin-top: 32px; }
.error-code { font-size: clamp(5rem, 16vw, 9rem); font-weight: 800; font-stretch: var(--wide); line-height: 1; color: var(--signal-deep); margin: 0; letter-spacing: -.03em; }

/* Contact page: form only */
.contact-single { max-width: 820px; }

/* Cloudflare Turnstile: only visible when Cloudflare asks for an interaction */
.ws-turnstile {
  position: fixed; inset: 0; z-index: 1100;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  pointer-events: none; background: transparent; transition: background-color .2s;
}
.ws-turnstile__card {
  width: min(400px, 100%); padding: 28px 24px 24px; text-align: center;
  background: #fff; border-radius: var(--radius); border-top: 3px solid var(--gold); box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(8px) scale(.98); transition: opacity .2s, transform .2s;
}
.ws-turnstile__title { margin: 0 0 6px; font-size: 1.2rem; font-weight: 700; color: var(--ink); }
.ws-turnstile__text { margin: 0 0 18px; color: var(--muted); font-size: .96rem; }
.ws-turnstile__widget { display: flex; justify-content: center; min-height: 65px; }
.ws-turnstile.is-interactive { pointer-events: auto; background: rgba(9, 20, 51, .55); }
.ws-turnstile.is-interactive .ws-turnstile__card { opacity: 1; transform: none; }
