/* ECHO Integration: shared stylesheet v0.2 (tech-led). Source of truth for design-system.html. */

:root {
  /* Brand */
  --blue:        #0592F8;   /* brand accent from the existing site: rails, nodes, focus, glow */
  --blue-bright: #5CB8FF;   /* accent text on dark */
  --blue-deep:   #0068B8;   /* accent text on light, primary button fill (AA with white) */
  --blue-darker: #00569A;   /* button hover */
  --blue-tint:   rgba(5,146,248,.10);
  --blue-glow:   rgba(5,146,248,.38);

  /* Fixed darks (always dark, both themes) */
  --black:   #060709;
  --char:    #0C0E11;
  --char-2:  #13161A;
  --char-3:  #1B1F24;
  --text-on-dark:       #F2F4F7;
  --text-on-dark-muted: #9BA3AE;
  --line-dark:          rgba(255,255,255,.08);
  --line-dark-strong:   rgba(255,255,255,.16);

  /* Themeable surfaces (light default) */
  --surface:    #F5F6F8;
  --surface-2:  #FFFFFF;
  --ink:        #0A0C0F;
  --ink-muted:  #535A65;
  --line:       #DFE2E7;
  --line-strong:#C6CBD2;
  --accent-ink: var(--blue-deep);
  --field-bg:   #FFFFFF;
  --grid-line:  rgba(10,12,15,.05);

  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 12px;
  --radius-pill: 999px;

  --shadow-card: 0 18px 40px -24px rgba(6,7,9,.35);
  --shadow-lift: 0 30px 70px -30px rgba(6,7,9,.55);
  --shadow-overlay: 0 24px 60px -20px rgba(6,7,9,.5);
  --shadow-glow: 0 0 0 1px rgba(5,146,248,.55), 0 10px 36px -10px var(--blue-glow);

  --font-display: 'Roboto Condensed', 'Arial Narrow', system-ui, sans-serif;
  --font: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Roboto Mono', ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.22,1,.36,1);
  --speed: 200ms;

  /* Cookie modal mapping (opt-out block below) */
  --paper: #F2F4F7;
  --accent: var(--blue);
  --accent-ink-on: #060709;
}
[data-theme="dark"] {
  --surface:    #08090C;
  --surface-2:  #0F1216;
  --ink:        #F2F4F7;
  --ink-muted:  #9BA3AE;
  --line:       rgba(255,255,255,.09);
  --line-strong:rgba(255,255,255,.18);
  --accent-ink: var(--blue-bright);
  --field-bg:   #0F1216;
  --grid-line:  rgba(255,255,255,.04);
  --shadow-card: 0 18px 40px -24px rgba(0,0,0,.8);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
:target { scroll-margin-top: 90px; }
html, body {
  margin: 0; padding: 0;
  background: var(--surface); color: var(--ink);
  font-family: var(--font); font-size: 16px; font-weight: 400; line-height: 1.65;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--blue); color: #fff; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); transition: color var(--speed) ease, text-decoration-color var(--speed) ease; }
a:hover { color: var(--ink); text-decoration-color: var(--blue); }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4, h5, h6, p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 900px) { .container { padding: 0 20px; } }

/* ===========================================================
   SECTIONS (max two backgrounds per page: surface + black)
   =========================================================== */
.section { position: relative; padding: clamp(72px, 10vw, 140px) 0; background: var(--surface); color: var(--ink); }
.section--alt { background: var(--surface-2); }
.section--dark { background: var(--black); color: var(--text-on-dark); --ink: var(--text-on-dark); --ink-muted: var(--text-on-dark-muted); --line: var(--line-dark); --line-strong: var(--line-dark-strong); --accent-ink: var(--blue-bright); --grid-line: rgba(255,255,255,.045); --field-bg: var(--char-2); }
.section--dark a:hover { color: #fff; }

/* ===========================================================
   MOTIFS: tech grid, glow, corner ticks, segmented rule
   =========================================================== */
.tech-grid { position: relative; isolation: isolate; }
.tech-grid::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px; background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 30%, transparent 80%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 30%, transparent 80%);
}
.glow-top { position: relative; isolation: isolate; }
.glow-top::after { content: ""; position: absolute; left: 50%; top: 0; width: min(900px, 90%); height: 420px; transform: translate(-50%, -55%); z-index: -1; pointer-events: none; background: radial-gradient(closest-side, rgba(5,146,248,.28), transparent 75%); filter: blur(10px); }
.ticks { position: relative; }
.ticks::before, .ticks::after { content: ""; position: absolute; width: 10px; height: 10px; border-color: var(--blue); border-style: solid; pointer-events: none; transition: transform 300ms var(--ease), opacity 300ms ease; }
.ticks::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.ticks::after { right: -1px; bottom: -1px; border-width: 0 1px 1px 0; }
.seg-rule { display: flex; align-items: center; gap: 6px; height: 1px; margin: 0; border: 0; }
.seg-rule::before { content: ""; flex: 0 0 48px; height: 1px; background: var(--blue); }
.seg-rule::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 28px; padding: 4px 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.chip__dot { width: 6px; height: 6px; background: var(--blue); box-shadow: 0 0 10px var(--blue); }

/* ===========================================================
   TYPE
   =========================================================== */
.h1, .h2, .h3, .h4 { font-family: var(--font-display); margin: 0; }
.h1 { font-size: clamp(48px, 8vw, 112px); font-weight: 300; line-height: .92; letter-spacing: -.01em; text-transform: uppercase; }
.h2 { font-size: clamp(34px, 5vw, 64px); font-weight: 300; line-height: .98; letter-spacing: -.005em; text-transform: uppercase; }
.h1 strong, .h2 strong { font-weight: 450; }
.h1 em, .h2 em { font-style: normal; color: var(--accent-ink); }
.h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; line-height: 1.1; letter-spacing: .02em; text-transform: uppercase; }
.h4 { font-size: 20px; font-weight: 500; line-height: 1.3; letter-spacing: .01em; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; margin: 0; font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-muted); }
.eyebrow::before { content: ""; width: 7px; height: 7px; background: var(--blue); box-shadow: 0 0 12px var(--blue); }
.eyebrow__idx { color: var(--accent-ink); }
.lead { font-size: clamp(18px, 1.6vw, 21px); font-weight: 300; line-height: 1.6; color: var(--ink-muted); margin: 0; max-width: 58ch; }
.body { font-size: 16px; line-height: 1.7; margin: 0; max-width: 64ch; }
/* On black (signed-off homepage): intro lines and body copy are 16px, light, white */
.section--dark .lead, .section--dark .body { font-size: 16px; font-weight: 300; line-height: 1.75; color: #fff; }
.small { font-size: 14px; line-height: 1.55; color: var(--ink-muted); margin: 0; }
.mono { font-family: var(--font-mono); font-size: 13px; letter-spacing: .06em; }

/* ===========================================================
   BUTTONS (glow on by default, cursor light, segmented ghost)
   =========================================================== */
.btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 50px; padding: 14px 26px;
  border-radius: var(--radius-sm); border: 1px solid transparent;
  font-family: var(--font-display); font-size: 15px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background var(--speed) ease, color var(--speed) ease, border-color var(--speed) ease, box-shadow 400ms var(--ease), transform 400ms var(--ease);
}
/* cursor light: follows --mx / --my (set by the shared spotlight script) */
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 300ms ease;
  background: radial-gradient(90px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.3), transparent 70%); }
.btn:hover::before { opacity: 1; }
.btn .arrow { display: inline-block; transition: transform 400ms var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }
.btn:active { transform: translateY(1px); }

/* Primary: lit from below, always glowing */
.btn--primary {
  background: linear-gradient(180deg, #0A7FD6 0%, var(--blue-deep) 100%); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 0 0 1px rgba(5,146,248,.7), 0 10px 34px -10px var(--blue-glow);
}
.btn--primary::after { content: ""; position: absolute; left: 14%; right: 14%; bottom: -10px; height: 20px; z-index: -2; pointer-events: none; border-radius: 50%;
  background: var(--blue); filter: blur(16px); opacity: .55; transition: opacity 400ms ease, transform 400ms var(--ease); }
.btn--primary:hover { color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 0 0 1px rgba(92,184,255,.9), 0 14px 44px -8px rgba(5,146,248,.6); }
.btn--primary:hover::after { opacity: .95; transform: scaleX(1.15); }

/* Outline: hairline at rest, lights up blue with a glow on hover */
.btn--outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--outline::before { background: radial-gradient(110px circle at var(--mx, 50%) var(--my, 50%), rgba(5,146,248,.22), transparent 70%); }
.btn--outline:hover { color: var(--ink); border-color: var(--blue); box-shadow: 0 0 0 1px rgba(5,146,248,.35), 0 10px 30px -12px var(--blue-glow); }
.btn--outline-light { background: rgba(255,255,255,.02); color: #fff; border-color: rgba(255,255,255,.26); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn--outline-light::before { background: radial-gradient(110px circle at var(--mx, 50%) var(--my, 50%), rgba(5,146,248,.3), transparent 70%); }
.btn--outline-light:hover { color: #fff; border-color: var(--blue); box-shadow: 0 0 0 1px rgba(5,146,248,.4), 0 10px 34px -10px var(--blue-glow); }

/* Ghost: text over a segmented rule; the blue segment runs the full width on hover */
.btn--ghost { min-height: 44px; padding: 10px 0 12px; background: transparent; color: var(--ink); border: 0; border-radius: 0; }
.btn--ghost::before { inset: auto 0 0 0; height: 1px; opacity: 1; border-radius: 0; background: var(--line-strong); }
.btn--ghost::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 28px; background: var(--blue); box-shadow: 0 0 8px var(--blue); transition: width 500ms var(--ease); }
.btn--ghost:hover { color: var(--ink); }
.btn--ghost:hover::after { width: 100%; }
.btn--ghost .arrow { color: var(--accent-ink); }

.btn:disabled, .btn[aria-disabled="true"] { opacity: .4; cursor: not-allowed; pointer-events: none; box-shadow: none; }
.btn:disabled::after, .btn[aria-disabled="true"]::after { display: none; }

/* ===========================================================
   FORMS
   =========================================================== */
.field { margin-bottom: 18px; }
.field__label { display: block; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 8px; }
.input {
  width: 100%; min-height: 50px;
  background: var(--field-bg); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 16px; padding: 13px 15px;
  outline: none; transition: border-color var(--speed) ease, box-shadow var(--speed) ease, background var(--speed) ease;
}
.input::placeholder { color: var(--ink-muted); opacity: .75; }
.input:hover { border-color: var(--line-strong); }
.input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(5,146,248,.18), 0 0 24px -6px var(--blue-glow); }
.input.is-invalid { border-color: #E5484D; box-shadow: 0 0 0 3px rgba(229,72,77,.14); }
.input:disabled { opacity: .5; cursor: not-allowed; }
textarea.input { min-height: 130px; resize: vertical; }
.field__error { display: flex; align-items: center; gap: 8px; color: #C9302C; font-size: 14px; margin: 7px 0 0; }
.field__error[hidden] { display: none; }
.field__error::before { content: ""; width: 6px; height: 6px; background: currentColor; }
[data-theme="dark"] .field__error, .section--dark .field__error { color: #FF7B7F; }
.cta-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Custom select / dropdown (required on every form) */
.cselect { position: relative; }
.cselect__trigger {
  width: 100%; min-height: 50px; text-align: left; font: inherit; font-size: 16px;
  color: var(--ink-muted); background: var(--field-bg);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px 46px 13px 15px; cursor: pointer;
  transition: border-color var(--speed) ease, box-shadow var(--speed) ease;
}
.cselect__trigger:hover { border-color: var(--line-strong); }
.cselect.is-filled .cselect__trigger { color: var(--ink); }
.cselect__trigger:focus-visible, .cselect.is-open .cselect__trigger { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(5,146,248,.18); }
.cselect.is-invalid .cselect__trigger { border-color: #E5484D; box-shadow: 0 0 0 3px rgba(229,72,77,.14); }
.cselect__chev { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: var(--accent-ink); pointer-events: none; display: inline-flex; }
.cselect__chev svg { width: 18px; height: 18px; transition: transform 260ms var(--ease); }
.cselect.is-open .cselect__chev svg { transform: rotate(180deg); }
.cselect__native { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.cmenu {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40;
  margin: 0; padding: 6px; list-style: none;
  background: color-mix(in srgb, var(--field-bg) 92%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong); border-radius: var(--radius-md);
  box-shadow: var(--shadow-overlay); max-height: 300px; overflow-y: auto;
  opacity: 0; transform: translateY(-6px); transition: opacity 180ms ease, transform 220ms var(--ease);
}
.cmenu[hidden] { display: none; }
.cselect.is-open .cmenu { opacity: 1; transform: translateY(0); }
.cmenu__opt { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 16px; color: var(--ink); cursor: pointer; transition: background 120ms ease, color 120ms ease; }
.cmenu__opt.is-active { background: var(--blue-tint); color: var(--accent-ink); }
.cmenu__opt[aria-selected="true"] { font-weight: 500; color: var(--accent-ink); }
.cmenu__opt[aria-selected="true"]::after { content: ""; width: 6px; height: 6px; background: var(--blue); box-shadow: 0 0 8px var(--blue); }

/* ===========================================================
   CARDS (cursor spotlight + glowing edge, segmented index rule)
   =========================================================== */
.card {
  position: relative; display: flex; flex-direction: column; gap: 14px; isolation: isolate;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 28px 28px 26px; color: var(--ink); text-decoration: none;
  transition: transform 400ms var(--ease), box-shadow 400ms ease, border-color 400ms ease;
}
/* fill light that follows the pointer */
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 400ms ease;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(5,146,248,.13), transparent 65%); }
/* edge light: the border glows nearest the pointer */
.card::after { content: ""; position: absolute; inset: -1px; z-index: 2; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity 400ms ease;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 0%), var(--blue), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.card:hover::before, .card:hover::after, .card:focus-visible::before, .card:focus-visible::after { opacity: 1; }
a.card:hover, .card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-card), 0 30px 60px -40px var(--blue-glow); }
a.card { color: var(--ink); }
a.card:hover { color: var(--ink); }
.card--spot { }
/* index row: mono label, then a segmented rule whose blue segment extends on hover */
.card__idx { display: flex; align-items: center; gap: 12px; margin: 0; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.card__idx::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--blue) 0 var(--seg, 20px), var(--line) var(--seg, 20px)); transition: --seg 500ms var(--ease); }
@property --seg { syntax: "<length>"; inherits: true; initial-value: 20px; }
.card:hover .card__idx::after { --seg: 64px; }
.card__title { font-family: var(--font-display); font-size: 26px; font-weight: 300; letter-spacing: .01em; text-transform: uppercase; margin: 0; line-height: 1.05; }
.card__title strong { font-weight: 450; }
.card__body { font-size: 16px; line-height: 1.6; color: var(--ink-muted); margin: 0; }
.card__go { display: inline-flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 6px; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); transition: color var(--speed) ease; }
.card__go .arrow { display: inline-block; color: var(--accent-ink); transition: transform 400ms var(--ease); }
.card:hover .card__go { color: var(--ink); }
.card:hover .card__go .arrow { transform: translateX(5px); }

/* Media card: photo with spotlight on top, content below */
.card--media { padding: 0; overflow: hidden; gap: 0; }
.card--media .card__img { position: relative; aspect-ratio: 16 / 10; background: var(--char); overflow: hidden; }
.card--media .card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1200ms var(--ease), filter 600ms ease; filter: saturate(.85) brightness(.8); }
.card--media:hover .card__img img { transform: scale(1.05); filter: saturate(1) brightness(1); }
.card--media .card__img::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 45%, rgba(6,7,9,.6)); }
.card--media .card__inner { display: flex; flex-direction: column; gap: 12px; padding: 22px 24px 24px; flex: 1; }
.card__tag { position: absolute; left: 14px; top: 14px; z-index: 1; }

/* Dark card, for black sections */
.card--dark, .section--dark .card { background: var(--char); border-color: var(--line-dark); color: var(--text-on-dark); }
.card--dark .card__body, .section--dark .card .card__body { color: var(--text-on-dark-muted); }
.card--dark .card__idx { color: var(--blue-bright); }
.card--dark .card__idx::after { background: linear-gradient(90deg, var(--blue) 0 var(--seg, 20px), var(--line-dark) var(--seg, 20px)); }
.card--dark:hover::before { background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(5,146,248,.2), transparent 65%); }

/* Image placeholder (flagged, never ships) */
.ph { position: relative; display: grid; place-items: center; background: repeating-linear-gradient(135deg, var(--surface) 0 10px, var(--surface-2) 10px 20px); color: var(--ink-muted); font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-align: center; padding: 16px; border: 1px dashed var(--line-strong); }
.section--dark .ph, .card--dark .ph { background: repeating-linear-gradient(135deg, var(--char) 0 10px, var(--char-2) 10px 20px); color: var(--text-on-dark-muted); border-color: var(--line-dark-strong); }

/* ===========================================================
   INTERACTIVE: PROCESS TIMELINE (rail + tabs + detail panel)
   =========================================================== */
.process-rail { position: relative; padding-top: 40px; container-type: inline-size; }
.process-rail__track { position: absolute; left: 0; right: 0; top: 17px; height: 1px; background: var(--line-strong); }
.process-rail__fill { position: absolute; left: 0; top: 0; height: 100%; width: 0; background: var(--blue); box-shadow: 0 0 12px var(--blue); transition: width 700ms var(--ease); }
.process-rail__fill::after { content: ""; position: absolute; right: -4px; top: -3.5px; width: 8px; height: 8px; background: var(--blue); box-shadow: 0 0 14px 2px var(--blue); }
.process-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; }
.step { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; min-height: 44px; padding: 0 0 4px; background: none; border: 0; text-align: left; color: var(--ink-muted); cursor: pointer; transition: color var(--speed) ease; overflow-wrap: anywhere; }
.step__node { position: absolute; top: -30px; left: 0; width: 15px; height: 15px; background: var(--surface); border: 1px solid var(--line-strong); transition: background 300ms ease, border-color 300ms ease, box-shadow 300ms ease; }
.section--dark .step__node { background: var(--black); }
.step__num { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; margin: 0; }
.step__title { font-family: var(--font-display); font-size: clamp(20px, 2vw, 24px); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; line-height: 1.1; margin: 0; color: inherit; }
.step__body { font-size: 15px; line-height: 1.5; margin: 0; }
.step:hover { color: var(--ink); }
.step.is-done .step__node { background: var(--blue); border-color: var(--blue); }
.step.is-active { color: var(--ink); }
.step.is-active .step__node { background: var(--blue); border-color: var(--blue); box-shadow: 0 0 0 5px rgba(5,146,248,.18), 0 0 18px var(--blue); }
.step.is-active .step__num { color: var(--accent-ink); }
.process-detail { position: relative; display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: clamp(20px, 4vw, 56px); align-items: start; margin-top: 48px; padding: clamp(24px, 4vw, 44px); border: 1px solid var(--line); border-radius: var(--radius-md); background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.section--dark .process-detail { background: var(--char); }
.process-detail__num { font-family: var(--font-display); font-size: clamp(64px, 9vw, 120px); font-weight: 300; line-height: .8; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.process-detail__body { transition: opacity 220ms ease, transform 300ms var(--ease), filter 300ms ease; }
.process-detail.is-swapping .process-detail__body, .process-detail.is-swapping .process-detail__num { opacity: 0; transform: translateY(8px); filter: blur(4px); }
.process-detail__num { transition: opacity 220ms ease, transform 300ms var(--ease), filter 300ms ease; }
.process-detail__label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); margin: 0 0 10px; }
.process-detail__title { font-family: var(--font-display); font-size: clamp(26px, 3vw, 36px); font-weight: 600; letter-spacing: .03em; text-transform: uppercase; line-height: 1.05; margin: 0 0 14px; }
.process-detail__copy { font-size: 17px; line-height: 1.7; color: var(--ink-muted); margin: 0; max-width: 62ch; }
.process-detail__nav { display: flex; gap: 8px; }
.process-detail__btn { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; background: transparent; color: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); transition: border-color var(--speed) ease, background var(--speed) ease, color var(--speed) ease; }
.process-detail__btn:hover { border-color: var(--blue); background: var(--blue-tint); color: var(--accent-ink); }
.process-progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--blue); }
@container (max-width: 760px) {
  .process-steps { grid-template-columns: repeat(2, minmax(0,1fr)); row-gap: 52px; }
  .process-rail__track { display: none; }
  .step__node { top: -26px; }
}
@media (max-width: 860px) {
  .process-detail { grid-template-columns: minmax(0,1fr); }
  .process-detail__nav { order: 3; }
}

/* ===========================================================
   INTERACTIVE: TESTIMONIAL SPOTLIGHT (dark sections only)
   =========================================================== */
.tspot { position: relative; }
.tspot__viewport { overflow-x: clip; overflow-y: visible; margin-top: 44px; padding: 28px 0 36px; -webkit-user-select: none; user-select: none; cursor: grab; }
.tspot__viewport.is-dragging { cursor: grabbing; }
.tspot__track { position: relative; display: flex; align-items: flex-start; gap: 32px; transition: transform 800ms var(--ease); will-change: transform; }
.tspot__track.no-anim { transition: none; }
.tspot__card {
  flex: 0 0 auto; width: min(880px, 80vw);
  background: var(--char); border: 1px solid var(--line-dark); border-radius: var(--radius-md);
  padding: 52px 60px 44px; opacity: .3; transform: scale(.92); filter: blur(1px);
  transition: opacity 500ms ease, transform 500ms var(--ease), border-color 500ms ease, box-shadow 500ms ease, filter 500ms ease;
}
.tspot__card.is-active { opacity: 1; transform: scale(1); filter: none; border-color: rgba(5,146,248,.5); box-shadow: 0 50px 120px -50px var(--blue-glow); }
.tspot__mark { font-family: var(--font-display); font-size: 64px; line-height: .6; font-weight: 700; color: var(--blue); margin: 0 0 22px; height: 26px; }
.tspot__quote { font-size: 24px; line-height: 1.5; font-weight: 300; color: #fff; margin: 0; text-wrap: pretty; }
.tspot__quote.is-clamped { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tspot__more { margin-top: 16px; display: none; background: none; border: none; padding: 0; min-height: 44px; cursor: pointer; font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-bright); align-items: center; gap: 6px; }
.tspot__card.has-overflow .tspot__more { display: inline-flex; }
.tspot__more .chev { transition: transform 200ms ease; }
.tspot__card.is-open .tspot__more .chev { transform: rotate(180deg); }
.tspot__foot { display: flex; align-items: center; gap: 16px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line-dark); }
.tspot__author { display: flex; align-items: center; gap: 14px; }
.tspot__avatar { width: 48px; height: 48px; flex-shrink: 0; background: var(--char-2); border: 1px solid rgba(5,146,248,.5); color: #fff; font-family: var(--font-mono); font-weight: 500; font-size: 14px; letter-spacing: .06em; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); }
.tspot__name { font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #fff; margin: 0 0 2px; }
.tspot__role { font-size: 14px; color: var(--text-on-dark-muted); margin: 0; }
.tspot__controls { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 44px; }
.tspot__dots { display: flex; gap: 2px; align-items: center; }
.tspot__dot { position: relative; width: 44px; height: 44px; border: none; padding: 0; cursor: pointer; background: transparent; }
.tspot__dot::after { content: ""; position: absolute; left: 8px; right: 8px; top: 50%; height: 2px; transform: translateY(-50%); background: rgba(255,255,255,.2); transition: background 200ms ease, box-shadow 200ms ease; }
.tspot__dot:hover::after { background: rgba(255,255,255,.5); }
.tspot__dot.is-active::after { background: var(--blue); box-shadow: 0 0 10px var(--blue); }
.tspot__navwrap { display: flex; align-items: center; gap: 16px; }
.tspot__count { font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em; color: var(--text-on-dark-muted); margin: 0; }
.tspot__count strong { color: #fff; font-weight: 500; }
.tspot__nav { display: flex; gap: 8px; }
.tspot__btn { width: 48px; height: 48px; border-radius: var(--radius-sm); background: transparent; border: 1px solid var(--line-dark-strong); color: #fff; display: inline-flex; align-items: center; justify-content: center; transition: background var(--speed) ease, border-color var(--speed) ease; }
.tspot__btn:hover { background: rgba(5,146,248,.14); border-color: var(--blue); }
.tspot__btn:disabled { opacity: .3; cursor: not-allowed; }
@media (max-width: 720px) {
  .tspot__card { width: 84vw; padding: 34px 26px 30px; }
  .tspot__quote { font-size: 19px; }
  .tspot__controls { flex-wrap: wrap; gap: 16px; }
}

/* ===========================================================
   INTERACTIVE: FILTERS (tab rail with a sliding signal)
   =========================================================== */
.filters { position: relative; display: flex; flex-wrap: wrap; align-items: stretch; gap: 0 4px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.filter-btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 12px 16px 14px; margin-bottom: -1px;
  border: 0; background: transparent; color: var(--ink-muted);
  font-family: var(--font-display); font-size: 17px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  cursor: pointer; transition: color var(--speed) ease;
}
.filter-btn__n { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; color: var(--ink-muted); transition: color var(--speed) ease; }
.filter-btn:hover { color: var(--ink); }
.filter-btn::before { content: ""; position: absolute; inset: 6px 0; z-index: -1; border-radius: var(--radius-sm); background: radial-gradient(80px circle at var(--mx, 50%) var(--my, 50%), rgba(5,146,248,.14), transparent 70%); opacity: 0; transition: opacity 300ms ease; }
.filter-btn:hover::before { opacity: 1; }
.filter-btn.is-active { color: var(--ink); }
.filter-btn.is-active .filter-btn__n { color: var(--accent-ink); }
/* the signal: a glowing segment with a node, slid under the active tab by script */
.filters__signal { position: absolute; left: 0; top: 0; height: 2px; width: 0; pointer-events: none; background: var(--blue); box-shadow: 0 0 12px var(--blue), 0 0 2px var(--blue);
  transition: transform 600ms var(--ease), width 600ms var(--ease); }
.filters__signal::after { content: ""; position: absolute; right: -4px; top: -3px; width: 8px; height: 8px; background: var(--blue); box-shadow: 0 0 14px 2px var(--blue); }
.filters__signal::before { content: ""; position: absolute; left: 50%; bottom: 2px; width: 120%; height: 40px; transform: translateX(-50%); background: radial-gradient(closest-side at 50% 100%, rgba(5,146,248,.22), transparent); pointer-events: none; }
.no-js .filter-btn.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--blue); }
.filter-empty { padding: 40px 0; color: var(--ink-muted); text-align: center; font-family: var(--font-mono); font-size: 14px; }
.is-filtered-out { display: none !important; }
.filter-fade { animation: filterIn 600ms var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes filterIn { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@media (max-width: 600px) { .filter-btn { font-size: 15px; padding: 12px 12px 14px; } }

/* ===========================================================
   INTERACTIVE: ANIMATED STATS
   =========================================================== */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); border-top: 1px solid var(--line); }
.stat { position: relative; padding: 30px 24px 10px 0; border-right: 1px solid var(--line); }
.stat::before { content: ""; position: absolute; left: 0; top: -1px; width: 32px; height: 1px; background: var(--blue); }
.stat:last-child { border-right: none; }
.stat + .stat { padding-left: 24px; }
.stat + .stat::before { left: 24px; }
.stat__num { font-family: var(--font-display); font-size: clamp(56px, 7vw, 88px); font-weight: 300; line-height: 1; margin: 0; font-variant-numeric: tabular-nums; }
.stat__num .unit { color: var(--accent-ink); font-weight: 300; }
.stat__label { font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); margin: 14px 0 0; }
@media (max-width: 600px) { .stat, .stat + .stat { border-right: none; border-bottom: 1px solid var(--line); padding: 24px 0; } .stat + .stat::before { left: 0; } }

/* ===========================================================
   INTERACTIVE: FAQ ACCORDION
   =========================================================== */
.faq { border-top: 1px solid var(--line); counter-reset: faq; }
.faq__item { border-bottom: 1px solid var(--line); counter-increment: faq; transition: background var(--speed) ease; }
.faq__q {
  list-style: none; display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center; gap: 12px;
  min-height: 72px; padding: 18px 0; cursor: pointer;
  font-family: var(--font-display); font-size: clamp(19px, 1.9vw, 23px); font-weight: 500; letter-spacing: .02em; color: var(--ink);
}
.faq__q::before { content: counter(faq, decimal-leading-zero); font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; color: var(--ink-muted); }
.faq__q::-webkit-details-marker { display: none; }
.faq__icon { position: relative; flex: none; width: 36px; height: 36px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); color: var(--ink); transition: border-color var(--speed) ease, background var(--speed) ease, color var(--speed) ease; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform 300ms var(--ease); }
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__q::before { color: var(--accent-ink); }
.faq__item[open] .faq__icon { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 0 18px -4px var(--blue-glow); }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__q:hover .faq__icon { border-color: var(--blue); }
.faq__a { overflow: hidden; }
.faq__a-inner { padding: 0 60px 26px 60px; color: var(--ink-muted); max-width: 78ch; }
.faq__a-inner p { margin: 0 0 12px; }
@media (max-width: 600px) { .faq__q { grid-template-columns: 32px minmax(0,1fr) auto; } .faq__a-inner { padding: 0 0 22px 44px; } }

/* ===========================================================
   INTERACTIVE: CLICK-TO-LOAD MAP
   =========================================================== */
.map-embed { position: relative; aspect-ratio: 16 / 9; background: var(--char); border: 1px solid var(--line-dark); border-radius: var(--radius-md); overflow: hidden; color: #fff; isolation: isolate; }
.map-embed__poster { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center;
  background-image: radial-gradient(circle at 50% 45%, rgba(5,146,248,.18), transparent 45%), linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px; background-position: center; }
.map-embed__pin { position: relative; width: 14px; height: 14px; background: var(--blue); box-shadow: 0 0 16px var(--blue); }
.map-embed__pin::before, .map-embed__pin::after { content: ""; position: absolute; inset: -12px; border: 1px solid rgba(5,146,248,.6); animation: pinPulse 2.4s var(--ease) infinite; }
.map-embed__pin::after { animation-delay: 1.2s; }
@keyframes pinPulse { from { transform: scale(.4); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
.map-embed__addr { font-family: var(--font-display); font-size: 20px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; margin: 8px 0 0; }
.map-embed__note { font-size: 14px; color: var(--text-on-dark-muted); margin: 0; max-width: 42ch; }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.4) contrast(1.05); }
@media (max-width: 600px) { .map-embed { aspect-ratio: 4 / 5; } }

/* ===========================================================
   INTERACTIVE: LOGO STRIP (marquee)
   =========================================================== */
.logo-strip { position: relative; overflow: hidden; padding: 8px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.logo-strip__track { display: flex; gap: 72px; align-items: center; width: max-content; padding: 18px 0; animation: logoScroll 40s linear infinite; }
.logo-strip:hover .logo-strip__track, .logo-strip:focus-within .logo-strip__track { animation-play-state: paused; }
.logo-strip__item { flex: none; height: 40px; min-width: 120px; display: grid; place-items: center; opacity: .55; filter: grayscale(1); transition: opacity var(--speed) ease, filter var(--speed) ease; }
.logo-strip__item:hover { opacity: 1; filter: none; }
.logo-strip__item img { max-height: 40px; width: auto; }
[data-theme="dark"] .logo-strip__item img, .section--dark .logo-strip__item img { filter: invert(1) grayscale(1); }
@keyframes logoScroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .logo-strip__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } .logo-strip { -webkit-mask-image: none; mask-image: none; } }

/* ===========================================================
   THEME TOGGLE (fixed pill, bottom-right)
   =========================================================== */
.theme-toggle {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 44px; height: 86px; border-radius: 999px;
  background: rgba(6,7,9,.82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--line-dark-strong); box-shadow: 0 8px 24px rgba(0,0,0,.35);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 5px; cursor: pointer; overflow: hidden;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.theme-toggle:hover { border-color: rgba(5,146,248,.7); box-shadow: 0 0 24px -4px var(--blue-glow); }
.theme-toggle:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.theme-toggle__thumb { position: absolute; left: 5px; top: 5px; width: 32px; height: 32px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 14px var(--blue-glow); transition: transform 360ms var(--ease); pointer-events: none; }
[data-theme="dark"] .theme-toggle__thumb { transform: translateY(42px); }
.theme-toggle__icon { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; color: rgba(255,255,255,.5); z-index: 1; transition: color 320ms ease; }
.theme-toggle__icon svg { width: 16px; height: 16px; }
.theme-toggle__icon--sun { color: #fff; }
[data-theme="dark"] .theme-toggle__icon--sun { color: rgba(255,255,255,.5); }
[data-theme="dark"] .theme-toggle__icon--moon { color: #fff; }
@media (max-width: 700px) { .theme-toggle { right: 14px; bottom: 14px; } }

/* ===========================================================
   FOOTER CREDIT (verbatim on every footer)
   =========================================================== */
.footer__credit { text-align: center; font-size: 14px; color: var(--text-on-dark-muted); margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--line-dark); }
.footer__credit a { color: inherit; text-decoration: underline; }
.footer__credit a:hover { color: #fff; }

/* ===========================================================
   MOTION: reveal on scroll (gated by reduced motion)
   =========================================================== */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity 1000ms var(--ease) var(--d, 0ms), transform 1000ms var(--ease) var(--d, 0ms), filter 1000ms var(--ease) var(--d, 0ms); }
  .js .reveal.is-in { opacity: 1; transform: none; filter: none; }
  /* headings: the bold phrase settles a beat after the light one */
  .js .reveal .h2 strong, .js .reveal .h1 strong { display: inline-block; opacity: 0; transform: translateY(10px); transition: opacity 900ms var(--ease) calc(var(--d, 0ms) + 220ms), transform 900ms var(--ease) calc(var(--d, 0ms) + 220ms); }
  .js .reveal.is-in .h2 strong, .js .reveal.is-in .h1 strong { opacity: 1; transform: none; }
  /* lines draw in from the left */
  .js [data-draw] { position: relative; }
  .js [data-draw]::after { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--line-dark-strong); transform: scaleX(0); transform-origin: left; transition: transform 1400ms var(--ease); }
  .js [data-draw].is-in::after { transform: scaleX(1); }
  /* images: soft unmask from the bottom with a slow settle */
  .js .reveal-img { clip-path: inset(18% 0 0 0); opacity: 0; transition: clip-path 1400ms var(--ease), opacity 900ms ease; }
  .js .reveal-img.is-in { clip-path: inset(0 0 0 0); opacity: 1; }
  .js .reveal-img img { transform: scale(1.12); transition: transform 1800ms var(--ease); }
  .js .reveal-img.is-in img { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* ==========================================================================
   COOKIE SETTINGS (OPT-OUT, no banner): modal only.
   From the 2xN reference kit css/opt-out-cookie.css, mapped to Echo tokens:
   --ink -> --char (panel), --paper (text), --accent -> --blue, --accent-ink -> --accent-ink-on.
   Panel stays dark in both themes.
   ========================================================================== */
.cookie {
  --cookie-muted: #C4C9D0;
  --cookie-dim: #9BA3AE;
  --cookie-accent-hover: #5CB8FF;
  --cookie-border: rgba(5,146,248,.35);
  --cookie-backdrop: rgba(6,7,9,.62);
  --cookie-line: rgba(255,255,255,.09);
  --cookie-line-strong: rgba(255,255,255,.2);
  --cookie-track: rgba(255,255,255,.12);
  position: fixed; inset: 0; z-index: 999;
  display: flex; align-items: flex-end; justify-content: flex-start;
  padding: clamp(16px, 4vw, 32px);
  pointer-events: none;
  font-family: var(--font);
}
.cookie[hidden] { display: none; }
.cookie--modal { align-items: center; justify-content: center; }
.cookie__backdrop { position: fixed; inset: 0; background: var(--cookie-backdrop); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: cookieFadeIn .26s ease both; pointer-events: auto; }
.cookie__backdrop[hidden] { display: none; }
@keyframes cookieFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes cookieFadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes cookiePanelIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes cookiePanelOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(10px); } }
.cookie__panel { position: relative; pointer-events: auto; width: 100%; max-width: 420px; background: var(--char); color: var(--paper); border: 1px solid var(--cookie-border); box-shadow: 0 40px 90px -30px rgba(0,0,0,.8), 0 0 60px -30px var(--blue-glow); border-radius: var(--radius-md); padding: 26px 26px 24px; }
.cookie--modal .cookie__panel { max-width: 540px; }
.cookie.is-in .cookie__panel { animation: cookiePanelIn .34s var(--ease) forwards; }
.cookie.is-out .cookie__panel { animation: cookiePanelOut .22s ease forwards; }
.cookie.is-out .cookie__backdrop { animation: cookieFadeOut .22s ease both; }
.cookie__view[hidden] { display: none !important; }
.cookie__title { font-family: var(--font-mono); font-weight: 500; line-height: 1.2; text-transform: uppercase; letter-spacing: .16em; font-size: 13px; margin: 0 0 10px; color: var(--paper); }
.cookie__copy { font-size: 15px; line-height: 1.6; color: var(--cookie-muted); margin: 0; text-wrap: pretty; }
.cookie__copy a { color: var(--paper); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.cookie__copy a:hover { color: var(--accent); }
.cookie__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 20px; }
.cookie__btn { font-family: var(--font-display); font-size: 15px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; min-height: 44px; padding: 12px 20px; border-radius: var(--radius-sm); cursor: pointer; border: 1px solid transparent; transition: background var(--speed) var(--ease), color var(--speed) var(--ease), border-color var(--speed) var(--ease); }
.cookie__btn--primary { background: var(--accent); color: var(--accent-ink-on); min-width: 120px; }
.cookie__btn--primary:hover { background: var(--cookie-accent-hover); }
.cookie__prefs-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 6px; }
.cookie__close { position: relative; width: 44px; height: 44px; flex: none; background: transparent; border: 1px solid var(--cookie-line-strong); border-radius: var(--radius-sm); cursor: pointer; transition: border-color var(--speed) var(--ease); }
.cookie__close:hover { border-color: var(--accent); }
.cookie__close span { position: absolute; top: 50%; left: 50%; width: 13px; height: 1.5px; background: var(--cookie-muted); }
.cookie__close span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
.cookie__close span:last-child { transform: translate(-50%, -50%) rotate(-45deg); }
.cookie__cats { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; }
.cookie__cat { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid var(--cookie-line); }
.cookie__cat:first-child { border-top: none; }
.cookie__cat-text { min-width: 0; }
.cookie__cat-name { display: block; font-size: 16px; font-weight: 500; color: var(--paper); margin-bottom: 4px; }
.cookie__cat-desc { display: block; font-size: 14px; line-height: 1.55; color: var(--cookie-dim); text-wrap: pretty; }
.cookie__always { flex: none; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink-on); background: var(--accent); padding: 4px 9px; margin-top: 2px; border-radius: var(--radius-sm); }
.cookie__switch { position: relative; flex: none; width: 46px; height: 26px; cursor: pointer; }
.cookie__switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cookie__track { position: absolute; inset: 0; border-radius: 999px; background: var(--cookie-track); border: 1px solid var(--cookie-line-strong); transition: background .22s ease, border-color .22s ease; }
.cookie__track::after { content: ""; position: absolute; top: 50%; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--cookie-muted); transform: translateY(-50%); transition: transform .22s var(--ease), background .22s ease; }
.cookie__switch input:checked ~ .cookie__track { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 14px -2px var(--blue-glow); }
.cookie__switch input:checked ~ .cookie__track::after { transform: translateY(-50%) translateX(20px); background: var(--black); }
.cookie__switch input:focus-visible ~ .cookie__track { outline: 2px solid var(--accent); outline-offset: 2px; }
.cookie__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cookie__actions--prefs { margin-top: 24px; }
@media (max-width: 540px) {
  .cookie { padding: 14px; }
  .cookie__panel { max-width: none; }
  .cookie__actions { flex-direction: column-reverse; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie__panel, .cookie.is-in .cookie__panel, .cookie__backdrop, .cookie__track, .cookie__track::after { animation: none; transition: none; }
}


/* ===========================================================
   SITE HEADER + NAV + MOBILE MENU (shared markup on every page)
   =========================================================== */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 12px 18px; background: var(--blue-deep); color: #fff; text-decoration: none; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; color: #fff; }
.site-header { position: sticky; top: 0; z-index: 50; color: #fff; background: rgba(6,7,9,.86); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid var(--line-dark); transition: background 400ms ease, border-color 400ms ease; }
.site-header--overlay { position: fixed; left: 0; right: 0; background: linear-gradient(180deg, rgba(6,7,9,.6), transparent); border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-header--overlay.is-scrolled, body.menu-open .site-header--overlay { background: rgba(6,7,9,.84); border-color: var(--line-dark); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); }
.site-header a { text-decoration: none; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.site-header__logo { display: inline-flex; align-items: center; min-height: 44px; }
.site-header__logo img { height: 32px; width: auto; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav__link { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; font-family: var(--font-display); font-size: 15px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--text-on-dark-muted); transition: color var(--speed) ease; }
.nav__link::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 8px; height: 1px; background: var(--blue); box-shadow: 0 0 8px var(--blue); transform: scaleX(0); transform-origin: left; transition: transform 400ms var(--ease); }
.nav__link:hover, .nav__link[aria-current="page"] { color: #fff; }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.site-header__cta { justify-self: end; min-height: 44px; padding: 10px 20px; font-size: 14px; }
@media (min-width: 1001px) { .site-header__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); } .site-header__logo { justify-self: start; } }
.nav-toggle { display: none; position: relative; width: 48px; height: 48px; align-items: center; justify-content: center; background: transparent; color: #fff; border: 1px solid var(--line-dark-strong); border-radius: var(--radius-sm); }
.nav-toggle span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: currentColor; transition: transform 400ms var(--ease), top 400ms var(--ease); }
.nav-toggle span:first-child { top: 19px; } .nav-toggle span:last-child { top: 27px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 23px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 23px; transform: rotate(-45deg); }
@media (max-width: 1000px) { .nav, .site-header__cta { display: none; } .nav-toggle { display: inline-flex; } }
.mobile-menu { position: fixed; inset: 0; z-index: 49; display: flex; flex-direction: column; gap: 32px; padding: 104px 20px 32px; overflow-y: auto; background: var(--black); color: #fff; opacity: 0; visibility: hidden; transition: opacity 400ms var(--ease), visibility 0s linear 400ms; }
.mobile-menu::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000, transparent 75%); mask-image: radial-gradient(ellipse at 50% 30%, #000, transparent 75%); }
.mobile-menu.is-open { opacity: 1; visibility: visible; transition: opacity 400ms var(--ease); }
.mobile-menu__nav { display: flex; flex-direction: column; border-top: 1px solid var(--line-dark); }
.mobile-menu__nav a:not(.btn) { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; border-bottom: 1px solid var(--line-dark); font-family: var(--font-display); font-size: 30px; font-weight: 300; letter-spacing: .02em; text-transform: uppercase; color: #fff; text-decoration: none; transform: translateY(12px); opacity: 0; transition: transform 600ms var(--ease), opacity 600ms ease, color var(--speed) ease; }
.mobile-menu__nav a:not(.btn) .n { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; color: var(--blue-bright); }
.mobile-menu.is-open .mobile-menu__nav a:not(.btn) { transform: none; opacity: 1; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(2) { transition-delay: 50ms; } .mobile-menu.is-open .mobile-menu__nav a:nth-child(3) { transition-delay: 100ms; } .mobile-menu.is-open .mobile-menu__nav a:nth-child(4) { transition-delay: 150ms; } .mobile-menu.is-open .mobile-menu__nav a:nth-child(5) { transition-delay: 200ms; }
.mobile-menu__nav a:not(.btn):hover { color: var(--blue-bright); }
.mobile-menu__foot { margin-top: auto; display: flex; flex-direction: column; gap: 16px; }
.mobile-menu__foot .btn { width: 100%; }
.mobile-menu__foot a:not(.btn) { color: var(--text-on-dark-muted); text-decoration: none; font-family: var(--font-mono); font-size: 14px; letter-spacing: .06em; min-height: 44px; display: inline-flex; align-items: center; }
body.menu-open { overflow: hidden; }

/* ===========================================================
   ENQUIRY FORM (shared)
   =========================================================== */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.field--full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 8px; }
.form-note { font-size: 14px; color: var(--ink-muted); margin: 0; }
.form-status { display: none; align-items: center; gap: 10px; margin: 18px 0 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 15px; }
.form-status::before { content: ""; flex: none; width: 7px; height: 7px; background: currentColor; }
.form-status.is-ok, .form-status.is-err, .form-status.is-busy { display: flex; }
.form-status.is-ok { color: var(--accent-ink); border-color: var(--blue); box-shadow: 0 0 24px -10px var(--blue-glow); }
.form-status.is-err { color: #C9302C; border-color: #E5484D; }
.section--dark .form-status.is-err, [data-theme="dark"] .form-status.is-err { color: #FF7B7F; }
.form-status.is-busy { color: var(--ink-muted); }

/* ===========================================================
   SITE FOOTER (shared markup on every page; layout follows the existing site)
   =========================================================== */
.site-footer { position: relative; background: var(--black); color: var(--text-on-dark); padding: clamp(40px, 6vw, 64px) 0 24px; }
.site-footer a { text-decoration: none; }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px clamp(20px, 5vw, 72px); padding-bottom: clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line-dark); }
.footer__nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; font-family: var(--font-display); font-size: 15px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: #fff; transition: color var(--speed) ease; }
.footer__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: var(--blue); box-shadow: 0 0 8px var(--blue); transform: scaleX(0); transform-origin: left; transition: transform 400ms var(--ease); }
.footer__nav a:hover::after { transform: scaleX(1); }
.footer__main { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 32px; padding: clamp(32px, 5vw, 56px) 0 clamp(20px, 3vw, 28px); }
.footer__meta { display: flex; flex-direction: column; gap: 6px; font-size: 16px; }
.footer__meta p { margin: 0; color: #fff; }
.site-footer .footer__credit { margin: 0; padding: 0; border: 0; text-align: left; font-size: 16px; line-height: 1.6; color: var(--blue-bright); max-width: 36ch; }
.site-footer .footer__credit a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.site-footer .footer__credit a:hover { color: #fff; }
.footer__brand { display: flex; flex-direction: column; align-items: center; gap: clamp(22px, 3vw, 34px); }
.footer__logo { display: inline-flex; }
.footer__logo img { width: clamp(170px, 18vw, 240px); height: auto; }
.footer__badge { width: 199px; height: auto; }
.footer__social { list-style: none; margin: 0; padding: 0; display: flex; justify-content: flex-end; gap: 8px; }
.footer__social a { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; color: #fff; border-radius: var(--radius-sm); transition: color var(--speed) ease, background var(--speed) ease; }
.footer__social a:hover { color: var(--blue-bright); background: rgba(5,146,248,.1); }
.footer__tagline { margin: 0; text-align: center; font-family: var(--font-display); font-size: clamp(17px, 1.7vw, 22px); font-weight: 400; letter-spacing: .04em; text-transform: uppercase; color: #fff; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 22px; margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--line-dark); }
.footer__legal a, .footer__legal button { display: inline-flex; align-items: center; min-height: 44px; padding: 0; background: none; border: 0; font: inherit; font-size: 14px; color: var(--text-on-dark-muted); cursor: pointer; text-decoration: none; }
.footer__legal a:hover, .footer__legal button:hover { color: #fff; }
@media (max-width: 860px) {
  .footer__main { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .footer__brand { order: -1; }
  .footer__meta { align-items: center; }
  .site-footer .footer__credit { text-align: center; }
  .footer__social { justify-content: center; }
}

/* ===========================================================
   PREVIEW TWEAKS PANEL (only with ?tweaks in the URL; not in production)
   =========================================================== */
.tweaks { position: fixed; left: 16px; bottom: 16px; z-index: 70; width: min(300px, calc(100% - 32px)); padding: 18px; background: rgba(12,14,17,.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--line-dark-strong); border-radius: var(--radius-md); color: #fff; font-size: 14px; box-shadow: var(--shadow-lift); }
.tweaks__h { display: flex; justify-content: space-between; align-items: center; margin: 0 0 12px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-on-dark-muted); }
.tweaks__close { width: 36px; height: 36px; background: none; border: 1px solid var(--line-dark-strong); color: #fff; border-radius: var(--radius-sm); }
.tweaks__lbl { display: block; margin: 12px 0 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-on-dark-muted); }
.tweaks__row { display: flex; flex-wrap: wrap; gap: 6px; }
.tweaks__opt { min-height: 40px; padding: 8px 12px; display: inline-flex; align-items: center; gap: 8px; background: transparent; color: #fff; border: 1px solid var(--line-dark-strong); border-radius: var(--radius-sm); font: inherit; font-size: 13px; }
.tweaks__opt i { width: 12px; height: 12px; border-radius: 50%; }
.tweaks__opt[aria-pressed="true"] { border-color: var(--blue); box-shadow: 0 0 14px -4px var(--blue-glow); }

/* ===========================================================
   404
   =========================================================== */
.nf { min-height: max(560px, calc(100svh - 76px)); display: flex; align-items: center; padding-top: 140px; overflow: hidden; }
.nf__glow { position: absolute; left: -10%; top: 20%; width: 60%; height: 60%; z-index: -1; pointer-events: none; background: radial-gradient(closest-side, rgba(5,146,248,.22), transparent); filter: blur(20px); }
.nf__inner { position: relative; width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.nf__code { position: absolute; right: 0; top: 50%; transform: translateY(-50%); z-index: -1; margin: 0; font-family: var(--font-mono); font-size: clamp(120px, 26vw, 360px); font-weight: 500; line-height: 1; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1px rgba(5,146,248,.35); pointer-events: none; user-select: none; }
.nf .h1 { color: #fff; }
.nf__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.nf__links { display: flex; flex-wrap: wrap; gap: 4px 28px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line-dark); }
.nf__links a { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--font-mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-on-dark-muted); text-decoration: none; }
.nf__links a:hover { color: #fff; }
@media (max-width: 700px) { .nf__code { top: 0; transform: none; opacity: .6; } }

/* Glows and parallax never cause sideways scroll */
html, body { overflow-x: clip; }
