/* ==========================================================================
   Liferoot World — core site styles
   Palette sampled from the Liferoot World emblem: ring teal, leaf green,
   bark brown, globe-grid sand and wordmark navy. Neutrals lean slightly
   toward the teal so whites and greys feel chosen, not inherited.
   ========================================================================== */

/* Metric-matched local fallbacks for the web fonts (capsize method), so text
   does not reflow when Barlow / Barlow Condensed / IBM Plex Mono finish loading.
   Arial Narrow is missing on most Android/Linux devices; there the condensed
   stack falls through to a plain-Arial face with its own size-adjust. */
@font-face {
  font-family: "Barlow Fallback";
  src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Arimo");
  font-weight: 400 500;
  size-adjust: 93.70%; ascent-override: 106.72%; descent-override: 21.34%; line-gap-override: 0%;
}
@font-face {
  font-family: "Barlow Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Arimo Bold");
  font-weight: 600 700;
  size-adjust: 90.98%; ascent-override: 109.91%; descent-override: 21.98%; line-gap-override: 0%;
}
@font-face {
  font-family: "Barlow Condensed Fallback";
  src: local("Arial Narrow Bold"), local("ArialNarrow-Bold"), local("Arial Narrow"), local("ArialNarrow");
  font-weight: 500 700;
  size-adjust: 88.66%; ascent-override: 112.79%; descent-override: 22.56%; line-gap-override: 0%;
}
@font-face {
  font-family: "Barlow Condensed Fallback Arial";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Arimo Bold"), local("Arial");
  font-weight: 500 700;
  size-adjust: 72.70%; ascent-override: 137.55%; descent-override: 27.51%; line-gap-override: 0%;
}
@font-face {
  font-family: "IBM Plex Mono Fallback";
  src: local("Courier New"), local("CourierNewPSMT"), local("Liberation Mono"), local("Cousine");
  font-weight: 400 600;
  size-adjust: 99.98%; ascent-override: 102.52%; descent-override: 27.50%; line-gap-override: 0%;
}

:root {
  /* Brand constants (identical in both themes) */
  --brand-teal: #16474B;
  --brand-teal-2: #1D5A5F;
  --brand-leaf: #568E40;
  --brand-leaf-ink: #3F7A2E;
  --brand-bark: #5D3A16;
  --brand-sand: #C0A278;
  --brand-navy: #18243C;

  /* Industrial type: DIN-style Barlow (signage, freight), a condensed display cut, and a manifest-style mono */
  --font-display: "Barlow Condensed", "Barlow Condensed Fallback", "Barlow Condensed Fallback Arial", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Barlow", "Barlow Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", "IBM Plex Mono Fallback", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Theme tokens: light */
  --bg: #FFFFFF;
  --bg-alt: #F3F6F5;
  --surface: #FFFFFF;
  --surface-2: #F7F9F8;
  --surface-hover: #EEF3F2;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-strong: rgba(255, 255, 255, 0.86);
  --glass-edge: rgba(14, 26, 28, 0.08);
  --ink: #0E1A1C;
  --ink-2: #384548;
  --ink-3: #56666A;
  --line: rgba(14, 26, 28, 0.10);
  --line-strong: rgba(14, 26, 28, 0.22);
  --control-border: rgba(14, 26, 28, 0.5);
  --primary: #16474B;
  --primary-hover: #1D5A5F;
  --on-primary: #FFFFFF;
  --accent: #3F7A2E;
  --focus: #1F7F76;
  --sand-line: rgba(192, 162, 120, 0.55);
  --danger: #B42318;
  --success: #2F7A34;
  --scrim: rgba(8, 16, 17, 0.42);
  --band: #16474B;
  --band-ink: #FFFFFF;
  --band-ink-2: rgba(255, 255, 255, 0.84);
  --shadow-1: 0 1px 2px rgba(14, 26, 28, 0.05), 0 6px 20px rgba(14, 26, 28, 0.06);
  --shadow-2: 0 2px 6px rgba(14, 26, 28, 0.06), 0 22px 48px rgba(14, 26, 28, 0.12);
  --shadow-3: 0 30px 80px rgba(8, 20, 22, 0.22);
  --img-veil: rgba(0, 0, 0, 0);

  /* Type scale */
  --step-5: clamp(2.6rem, 1.35rem + 5.2vw, 5.6rem);
  --step-4: clamp(2.05rem, 1.35rem + 2.9vw, 3.7rem);
  --step-3: clamp(1.55rem, 1.2rem + 1.4vw, 2.2rem);
  --step-2: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem);
  --step-1: clamp(1.15rem, 1.08rem + 0.3vw, 1.3rem);
  --step-0: 1.125rem;
  --step--1: 1rem;
  --step--2: 1rem;

  /* Space & shape */
  --gutter: clamp(16px, 4.2vw, 44px);
  --maxw: 1240px;
  --section-y: clamp(5rem, 3rem + 7vw, 9.5rem);
  --r-xl: 32px;
  --r-lg: 26px;
  --r-md: 18px;
  --r-sm: 12px;
  --ease: cubic-bezier(0.2, 0.75, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 68px;
  --lr-bottom-offset: 0px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0B1213;
    --bg-alt: #101A1B;
    --surface: #142022;
    --surface-2: #172527;
    --surface-hover: #1C2C2E;
    --glass: rgba(14, 24, 26, 0.70);
    --glass-strong: rgba(16, 27, 29, 0.88);
    --glass-edge: rgba(237, 243, 242, 0.09);
    --ink: #EDF3F2;
    --ink-2: #C3CFCE;
    --ink-3: #9AACAB;
    --line: rgba(237, 243, 242, 0.10);
    --line-strong: rgba(237, 243, 242, 0.24);
    --control-border: rgba(237, 243, 242, 0.46);
    --primary: #8FD3C9;
    --primary-hover: #A8E0D8;
    --on-primary: #06201F;
    --accent: #93CD7B;
    --focus: #8FD3C9;
    --sand-line: rgba(192, 162, 120, 0.30);
    --danger: #FF8A7A;
    --success: #93CD7B;
    --scrim: rgba(0, 0, 0, 0.6);
    --band: #0F3437;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 20px rgba(0, 0, 0, 0.25);
    --shadow-2: 0 2px 6px rgba(0, 0, 0, 0.35), 0 22px 48px rgba(0, 0, 0, 0.45);
    --shadow-3: 0 30px 80px rgba(0, 0, 0, 0.6);
    --img-veil: rgba(4, 10, 11, 0.08);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0B1213;
  --bg-alt: #101A1B;
  --surface: #142022;
  --surface-2: #172527;
  --surface-hover: #1C2C2E;
  --glass: rgba(14, 24, 26, 0.70);
  --glass-strong: rgba(16, 27, 29, 0.88);
  --glass-edge: rgba(237, 243, 242, 0.09);
  --ink: #EDF3F2;
  --ink-2: #C3CFCE;
  --ink-3: #9AACAB;
  --line: rgba(237, 243, 242, 0.10);
  --line-strong: rgba(237, 243, 242, 0.24);
  --control-border: rgba(237, 243, 242, 0.46);
  --primary: #8FD3C9;
  --primary-hover: #A8E0D8;
  --on-primary: #06201F;
  --accent: #93CD7B;
  --focus: #8FD3C9;
  --sand-line: rgba(192, 162, 120, 0.30);
  --danger: #FF8A7A;
  --success: #93CD7B;
  --scrim: rgba(0, 0, 0, 0.6);
  --band: #0F3437;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 20px rgba(0, 0, 0, 0.25);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, 0.35), 0 22px 48px rgba(0, 0, 0, 0.45);
  --shadow-3: 0 30px 80px rgba(0, 0, 0, 0.6);
  --img-veil: rgba(4, 10, 11, 0.08);
}

/* Large displays: scale the whole rem-based system up gently */
@media (min-width: 1920px) { :root { font-size: 112.5%; --maxw: 1320px; } }
@media (min-width: 2560px) { :root { font-size: 131.25%; --maxw: 1640px; } }
@media (max-width: 480px) { :root { --header-h: 62px; } }

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
/* FALLBACK-FACES (metric-matched to the web fonts; see tools/README) */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
  scroll-padding-bottom: calc(var(--lr-bottom-offset, 0px) + 112px + env(safe-area-inset-bottom, 0px));
}
html:not(.lenis) { scroll-behavior: smooth; }
html.is-locked { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
@media (max-width: 640px) { body { font-size: 1.0625rem; } }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.1; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
kbd { font-family: var(--font-mono); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.helpband :focus-visible, .ent-hero :focus-visible { outline-color: #FFFFFF; }
::selection { background: color-mix(in srgb, var(--brand-leaf) 30%, transparent); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ico-sm { width: 20px; height: 20px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px)); }

.skip-link {
  position: fixed; left: 16px; top: calc(env(safe-area-inset-top, 0px) + 12px); z-index: 600;
  background: var(--primary); color: var(--on-primary); padding: 12px 18px; border-radius: 999px;
  font-weight: 600; text-decoration: none; transform: translateY(-160%); transition: transform .25s var(--ease);
}
.skip-link:focus { transform: none; }

.eyebrow {
  font-family: var(--font-mono); font-size: .875rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent);
}
.section { padding-block: var(--section-y); position: relative; }
.section-head { max-width: 46rem; display: grid; gap: 1rem; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section-title { font-size: var(--step-4); font-weight: 700; text-transform: uppercase; letter-spacing: .004em; line-height: .98; }
.lead { font-size: var(--step-1); line-height: 1.55; color: var(--ink-2); max-width: 40em; }
.body-copy { color: var(--ink-2); max-width: 38em; }
.fine-note { margin-top: 1.75rem; font-size: var(--step--2); color: var(--ink-3); }

.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid var(--glass-edge);
}
@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .glass { background: var(--glass-strong); }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-h: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: var(--btn-h); padding: 0 1.4rem; border-radius: 999px; border: 0;
  font-family: var(--font-body); font-size: 1rem; font-weight: 600; line-height: 1.15; text-transform: uppercase; letter-spacing: .05em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.985); }
.btn-lg { --btn-h: 56px; padding: 0 1.7rem; font-size: 1.0625rem; }
.btn-block { width: 100%; white-space: normal; text-align: center; padding-block: .6rem; }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 1px 2px rgba(14, 26, 28, .12); }
.btn-primary:hover { background: var(--primary-hover); box-shadow: 0 10px 26px color-mix(in srgb, var(--primary) 32%, transparent); }
.btn-secondary { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn-secondary:hover { background: var(--surface-hover); box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.btn-quiet { background: transparent; color: var(--primary); text-decoration: underline; text-underline-offset: 0.2em; padding-inline: 0.9rem; }
.btn-quiet:hover { background: var(--surface-hover); }
.btn-light { background: #FFFFFF; color: #0F3437; }
.btn-light:hover { background: #F0F7F5; box-shadow: 0 12px 30px rgba(0, 0, 0, .18); }
.btn-glass { background: rgba(255, 255, 255, 0.12); color: #FFFFFF; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); }
.btn-glass:hover { background: rgba(255, 255, 255, 0.2); }
.btn[disabled], .btn[aria-busy="true"] { opacity: .7; cursor: progress; transform: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; text-decoration: none; color: var(--primary);
  min-height: 48px;
}
.link-arrow .ico { transition: transform .3s var(--ease); }
.link-arrow:hover .ico { transform: translateX(4px); }
.linklike { background: none; border: 0; padding: 0; color: inherit; text-align: left; cursor: pointer; }

.icon-btn {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 999px; border: 0;
  background: var(--surface-2); color: var(--ink); cursor: pointer; flex: none;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.icon-btn:hover { background: var(--surface-hover); }

/* Glowing orb dot used on "Ask AI" buttons — a tiny echo of the assistant */
.orb-dot {
  width: 14px; height: 14px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 35% 30%, #F6FFF9 0 12%, #6FE3D3 30%, #3FB9A9 55%, #3F8F4A 100%);
  box-shadow: 0 0 0 2px rgba(63, 216, 198, .18), 0 0 10px rgba(63, 216, 198, .5);
  position: relative;
}
.orb-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  box-shadow: 0 0 14px rgba(155, 227, 106, .8);
  animation: orb-breathe 3.2s ease-in-out infinite; /* opacity + transform only: no repaints */
}
@keyframes orb-breathe {
  0%, 100% { opacity: .25; transform: scale(.85); }
  50% { opacity: 1; transform: scale(1.1); }
}

.kbd {
  display: inline-grid; place-items: center; min-width: 1.6em; height: 1.6em; padding: 0 .35em;
  font-size: .78rem; font-weight: 500; line-height: 1; color: var(--ink-3);
  border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px; background: var(--surface);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 100;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: background-color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.is-scrolled, .site-header.mega-open {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom-color: var(--line);
}
@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .site-header { background: var(--bg); }
}
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); min-height: 48px; flex: none; min-width: 0; }
.brand-mark { width: 40px; height: 40px; border-radius: 50%; }
.brand-word {
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: .1em; text-transform: uppercase; line-height: 1;
  color: var(--brand-navy);
}
.brand-word span { font-weight: 500; color: var(--brand-teal); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand-word { color: var(--ink); } :root:not([data-theme="light"]) .brand-word span { color: var(--primary); } }
:root[data-theme="dark"] .brand-word { color: var(--ink); }
:root[data-theme="dark"] .brand-word span { color: var(--primary); }

.nav { margin-inline: auto; }
.nav-list { display: flex; align-items: center; gap: .15rem; }
.nav-link {
  display: inline-flex; align-items: center; gap: .3rem; min-height: 48px; padding: 0 .9rem; border-radius: 999px;
  font-size: 1.0625rem; font-weight: 500; color: var(--ink-2); text-decoration: none; background: none; border: 0;
  white-space: nowrap;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
@media (max-width: 1180px) { .nav-link { padding: 0 .7rem; } .header-inner { gap: .6rem; } }
.nav-link:hover, .nav-link[aria-expanded="true"] { color: var(--ink); background: var(--surface-hover); text-decoration: none; }
.nav-link .ico { transition: transform .3s var(--ease); }
.nav-link[aria-expanded="true"] .ico { transform: rotate(180deg); }
.nav-link.is-current { color: var(--ink); }

.header-tools { display: flex; align-items: center; gap: .5rem; flex: none; margin-left: auto; }
.nav + .header-tools { margin-left: 0; }
.tool-btn {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 48px; min-width: 48px; padding: 0 .95rem;
  border-radius: 999px; border: 0; background: var(--surface-2); color: var(--ink); font-size: 1rem; font-weight: 500;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.tool-btn:hover { background: var(--surface-hover); box-shadow: inset 0 0 0 1px var(--line-strong); }
.core-trigger { background: var(--glass-strong); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgba(14, 26, 28, .06); }
.core-trigger:hover { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong), 0 6px 20px rgba(63, 216, 198, .22); }
.menu-trigger { display: none; padding: 0; justify-content: center; }

/* Header breakpoints are set from measured widths so nothing is ever clipped:
   1280 search label + shortcut, 1100 desktop nav, 560 "Ask Rooty" label,
   420 the word "World", 360 the whole wordmark (the emblem carries the name). */
@media (max-width: 1280px) {
  .kbd { display: none; }
  .search-trigger .tool-label { display: none; }
  .search-trigger { padding: 0; justify-content: center; }
}
@media (max-width: 1100px) {
  .nav { display: none; }
  .menu-trigger { display: inline-flex; }
  .header-tools, .nav + .header-tools { margin-left: auto; }
}
@media (max-width: 560px) {
  .core-trigger .tool-label { display: none; }
  .core-trigger { padding: 0; justify-content: center; }
  .header-tools { gap: .35rem; }
}
/* Header only: the footer and the menu keep the full wordmark */
@media (max-width: 480px) {
  .site-header .brand-word { font-size: .98rem; letter-spacing: .07em; }
  .brand-mark { width: 36px; height: 36px; }
}
@media (max-width: 420px) {
  .site-header .brand-word span { display: none; }
}
@media (max-width: 360px) {
  .site-header .brand-word { display: none; }
}

/* Mega menu */
.mega {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 110;
  background: var(--bg); /* opaque: nested in the header's backdrop-filter, its own blur cannot reach the page */
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(8, 20, 22, .25);
  opacity: 0; transform: translateY(-8px);
  transition: opacity .28s var(--ease), transform .35s var(--ease-out);
}
.mega.is-open { opacity: 1; transform: none; }
.mega-inner { display: grid; grid-template-columns: minmax(200px, 1fr) 4fr; gap: 2.5rem; padding-block: 2rem 2.4rem; }
.mega-intro { display: grid; align-content: start; gap: .6rem; }
.mega-title { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; line-height: 1.15; letter-spacing: -.015em; }
/* One straight row, whatever the number of companies: columns are generated, never wrapped */
.mega-grid { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 1rem; }
.mega-card {
  display: grid; gap: .7rem; padding: .6rem .6rem 1rem; border-radius: var(--r-md); color: var(--ink); text-decoration: none;
  transition: background-color .25s var(--ease), transform .35s var(--ease);
}
.mega-card:hover, .mega-card:focus-visible { background: var(--surface-hover); transform: translateY(-2px); text-decoration: none; }
.mega-card img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; border-radius: 12px; background: var(--bg-alt); }
.mega-card .mc-sector { font-size: 1rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); }
.mega-card .mc-name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; line-height: 1.2; }
.mega-card .mc-tag { font-size: 1rem; color: var(--ink-2); line-height: 1.45; }
.mega-card .mc-copy { display: grid; gap: .25rem; padding-inline: .3rem; }

/* --------------------------------------------------------------------------
   Hero: full-bleed video stage with the hook, then the proof strip
   -------------------------------------------------------------------------- */
.hero { position: relative; }
.hero-stage {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end;
  min-height: clamp(560px, 84vh, 900px); min-height: clamp(560px, 84svh, 900px);
  background: #0C1E20; color: #FFFFFF;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-poster, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-video { opacity: 0; transition: opacity 1.2s var(--ease); }
.hero-media.is-playing .hero-video { opacity: 1; }
.hero-scrim {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(0deg, rgba(5, 16, 18, .9) 0%, rgba(5, 16, 18, .72) 36%, rgba(5, 16, 18, .34) 64%, rgba(5, 16, 18, .08) 88%, rgba(5, 16, 18, 0) 100%),
    linear-gradient(90deg, rgba(5, 16, 18, .62) 0%, rgba(5, 16, 18, .3) 42%, rgba(5, 16, 18, 0) 72%);
}
.hero-inner { position: relative; display: grid; justify-items: start; gap: 1.25rem; padding-block: clamp(7rem, 16vh, 11rem) clamp(2.6rem, 2rem + 3vw, 4.75rem); }
.hero-eyebrow { color: #CFEFC1; animation: fade-in .8s var(--ease) both; }
.hero-eyebrow span { color: rgba(255, 255, 255, .45); margin-inline: .2em; }
.hero-title {
  font-size: clamp(2.75rem, 1rem + 6vw, 5.75rem); font-weight: 700; text-transform: uppercase;
  letter-spacing: .004em; line-height: .9; color: #FFFFFF; display: grid; gap: .04em; max-width: 100%;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.hero-title .line > span { display: inline-block; animation: rise-in 1s var(--ease-out) both; }
.hero-title .line.accent > span { color: #A8E08A; animation-delay: .12s; }
.hero-lead { font-size: var(--step-1); line-height: 1.5; color: rgba(255, 255, 255, .9); max-width: 36em; animation: fade-up .9s var(--ease-out) .22s both; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .4rem; animation: fade-up .9s var(--ease-out) .32s both; }
.btn-on-dark { background: #FFFFFF; color: #0F3437; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.btn-on-dark:hover { background: #EAF6F3; color: #0F3437; box-shadow: 0 14px 36px rgba(0, 0, 0, .3); }
.btn-ghost-dark { background: rgba(255, 255, 255, .08); color: #FFFFFF; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6); }
.btn-ghost-dark:hover { background: rgba(255, 255, 255, .16); }
.hero-stage :focus-visible { outline-color: #FFFFFF; }

/* Pause / play for any autoplaying video (WCAG 2.2.2) */
.video-toggle {
  position: absolute; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; padding: 0;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .45); background: rgba(5, 16, 18, .45); color: #FFFFFF; cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background-color .2s var(--ease);
}
.video-toggle:hover { background: rgba(5, 16, 18, .7); }
.video-toggle .vt-play { display: none; fill: currentColor; stroke: none; }
.video-toggle.is-paused .vt-play { display: block; }
.video-toggle.is-paused .vt-pause { display: none; }
.video-toggle:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 2px; }
.hero-toggle { top: 20px; right: max(var(--gutter), env(safe-area-inset-right, 0px)); }

/* Proof strip: the hook's evidence, set like a shipping manifest */
.hero-proof {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1.5rem 3rem; align-items: center;
  padding-block: clamp(1.8rem, 1.2rem + 2vw, 2.8rem); border-bottom: 1px solid var(--line);
}
.proof-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.proof { display: grid; gap: .3rem; padding: .15rem 1.1rem; border-left: 1px solid var(--line); }
.proof:first-child { padding-left: 0; border-left: 0; }
.proof-v { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.1rem, 1.5rem + 1.6vw, 3.1rem); line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.proof-l { font-family: var(--font-mono); font-weight: 500; font-size: .875rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); line-height: 1.35; }
.proof-companies { display: grid; gap: .7rem; justify-items: start; }
.proof-companies-label { font-family: var(--font-mono); font-weight: 500; font-size: .875rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.hero-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 48px; padding: 0 1rem 0 .8rem; border-radius: 999px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); font-size: 1rem; font-weight: 600; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .25s var(--ease);
}
.chip .ico { color: var(--accent); }
.chip:hover { border-color: var(--ink-3); transform: translateY(-1px); background: var(--surface-hover); }

.globe-motif { position: absolute; color: var(--sand-line); pointer-events: none; z-index: 0; }

@media (max-width: 1100px) { .hero-proof { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .hero-stage { min-height: clamp(540px, 88vh, 760px); min-height: clamp(540px, 88svh, 760px); }
  /* The text block reaches high on narrow screens: the upper stops keep the eyebrow >= 4.5:1 over bright sky */
  .hero-scrim { background: linear-gradient(0deg, rgba(5, 16, 18, .9) 0%, rgba(5, 16, 18, .74) 45%, rgba(5, 16, 18, .6) 72%, rgba(5, 16, 18, .5) 100%); }
  .hero-eyebrow { text-shadow: 0 1px 10px rgba(5, 16, 18, .55); text-wrap: balance; }
  .proof-list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.2rem; }
  .proof:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero-ctas .btn { flex: 1 1 100%; }
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */
.about { background: var(--bg-alt); }
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2.5rem, 2rem + 4vw, 6rem); align-items: center; }
.about-copy { display: grid; gap: 1.35rem; }
.about-media { position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; align-items: end; min-height: 0; }
.about-fig { overflow: hidden; border-radius: var(--r-lg); background: var(--bg); box-shadow: var(--shadow-1); }
.about-fig img { width: 100%; height: 100%; object-fit: cover; }
.about-fig-tall { grid-column: 1 / 2; grid-row: 1 / 3; aspect-ratio: 4 / 5; }
.about-fig-wide { grid-column: 2 / 3; grid-row: 2 / 3; aspect-ratio: 3 / 2.3; margin-left: -18%; margin-bottom: -8%; border: 6px solid var(--bg-alt); position: relative; }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(3.5rem, 2.5rem + 4vw, 6.5rem); border-top: 1px solid var(--sand-line); }
.pillar { display: grid; gap: .6rem; align-content: start; padding: 1.9rem 2rem 0 0; }
.pillar + .pillar { padding-left: 2rem; border-left: 1px solid var(--line); }
.pillar-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: color-mix(in srgb, var(--brand-leaf) 14%, transparent); color: var(--accent); margin-bottom: .4rem; }
.pillar-title { font-size: var(--step-2); letter-spacing: -.012em; }
.pillar-body { color: var(--ink-2); }

@media (max-width: 1023px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 640px; }
}
@media (max-width: 760px) {
  .pillars { grid-template-columns: 1fr; border-top: 0; }
  .pillar, .pillar + .pillar { padding: 1.6rem 0; border-left: 0; border-top: 1px solid var(--sand-line); }
}

/* --------------------------------------------------------------------------
   Company hub (umbrella portal)
   -------------------------------------------------------------------------- */
.hub { overflow: clip; }
.hub-globe { width: 760px; left: -300px; bottom: -260px; opacity: .6; }
.hub .wrap { position: relative; z-index: 1; }
.hub-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: clamp(1.75rem, 1.2rem + 1.5vw, 2.5rem); }
.hub-tab {
  position: relative; display: grid; gap: .85rem; align-content: start; text-align: left;
  padding: .6rem .6rem 1.1rem; border-radius: var(--r-lg); border: 0; background: var(--surface); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1);
  transition: transform .45s var(--ease-out), box-shadow .35s var(--ease), background-color .3s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.hub-tab:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-2); }
.hub-tab[aria-selected="true"] { box-shadow: inset 0 0 0 2px var(--primary), var(--shadow-2); }
.hub-tab .ht-media { position: relative; overflow: hidden; border-radius: 18px; aspect-ratio: 16 / 10; background: var(--bg-alt); }
.hub-tab .ht-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.hub-tab:hover .ht-media img { transform: scale(1.05); }
.hub-tab .ht-copy { display: grid; gap: .2rem; padding-inline: .45rem; }
.hub-tab .ht-sector { display: inline-flex; align-items: center; gap: .4rem; font-size: 1rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); }
.hub-tab .ht-name { font-family: var(--font-display); font-size: 1.28rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
.hub-tab .ht-state {
  position: absolute; top: 1.1rem; right: 1.1rem; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary); color: var(--on-primary); transform: scale(0.4); opacity: 0; transition: transform .4s var(--ease-out), opacity .3s var(--ease);
}
.hub-tab .ht-state .ico { width: 18px; height: 18px; stroke-width: 2.4; }
.hub-tab[aria-selected="true"] .ht-state { transform: none; opacity: 1; }

.hub-panel {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(2rem, 1.5rem + 2.5vw, 4rem);
  padding: clamp(1rem, .6rem + 1.2vw, 1.5rem); border-radius: var(--r-xl); background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1); scroll-margin-top: calc(var(--header-h) + 24px);
}
.hub-panel.is-entering { animation: panel-in .6s var(--ease-out) both; }
.hub-panel.is-highlight { animation: panel-glow 1.6s var(--ease) 1; }
.hp-media { display: grid; gap: .75rem; align-content: start; }
.hp-main { position: relative; overflow: hidden; border-radius: 22px; aspect-ratio: 3 / 2; background: var(--bg-alt); }
.hp-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s var(--ease), transform 1.2s var(--ease-out); }
.hp-main img.is-leaving { opacity: 0; transform: scale(1.03); }
.hp-main img { z-index: 1; }
.hp-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--bg-alt); }
.hp-toggle { top: 12px; right: 12px; }
.hp-main:not(.is-video) .hp-toggle { display: none; }
.hp-thumbs.has-video { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hp-thumb-video img { width: 100%; height: 100%; object-fit: cover; }
.hp-thumb-badge {
  position: absolute; left: 6px; bottom: 6px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(5, 16, 18, .6); color: #FFFFFF;
}
.hp-thumb-badge .ico { width: 13px; height: 13px; fill: currentColor; stroke: none; }
.hp-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.hp-thumb {
  position: relative; padding: 0; border: 0; border-radius: 14px; overflow: hidden; aspect-ratio: 3 / 2; background: var(--bg-alt); cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--line); opacity: .78; transition: opacity .25s var(--ease), transform .3s var(--ease);
}
.hp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hp-thumb:hover { opacity: 1; transform: translateY(-2px); }
.hp-thumb[aria-pressed="true"] { opacity: 1; outline: 2px solid var(--primary); outline-offset: 2px; }
.hp-thumb:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.hp-body { display: grid; gap: 1.3rem; align-content: start; padding: clamp(.25rem, 1vw, 1rem) clamp(.25rem, 1vw, 1rem) clamp(.5rem, 1vw, 1rem) 0; }
.hp-kicker { display: inline-flex; align-items: center; gap: .5rem; }
.hp-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand-leaf) 14%, transparent); color: var(--accent); }
.hp-name { font-size: var(--step-3); letter-spacing: -.02em; }
.hp-tagline { font-family: var(--font-display); font-size: var(--step-1); font-weight: 500; color: var(--ink-2); line-height: 1.35; }
.hp-summary { color: var(--ink-2); }
.hp-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; padding-block: 1.1rem; border-block: 1px solid var(--line); }
.metric { display: grid; gap: .15rem; align-content: start; }
.metric-v { font-family: var(--font-display); font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.05; color: var(--ink); font-variant-numeric: tabular-nums; }
.metric-l { font-size: 1rem; color: var(--ink-3); line-height: 1.35; overflow-wrap: break-word; hyphens: auto; }
.hp-services { display: grid; gap: .55rem; }
.hp-services li { display: grid; grid-template-columns: 24px 1fr; gap: .7rem; align-items: start; color: var(--ink); }
.hp-services .ico { color: var(--accent); width: 22px; height: 22px; margin-top: .15em; stroke-width: 2.2; }
.hp-ctas { display: flex; flex-wrap: wrap; gap: .7rem; padding-top: .3rem; }

@media (max-width: 1023px) {
  .hub-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-panel { grid-template-columns: 1fr; }
  .hp-body { padding: 0 .4rem .6rem; }
}
@media (max-width: 520px) {
  .hub-tabs { gap: .7rem; }
  .hub-tab { padding: .45rem .45rem .85rem; border-radius: 20px; }
  .hub-tab .ht-media { border-radius: 14px; }
  .hub-tab .ht-name { font-size: 1.08rem; }
  .hub-tab .ht-sector { letter-spacing: .03em; line-height: 1.25; }
  .hub-tab .ht-sector .ico { display: none; }
  .hub-tab .ht-state { top: .8rem; right: .8rem; width: 26px; height: 26px; }
  .hp-ctas .btn { flex: 1 1 100%; }
}

/* --------------------------------------------------------------------------
   Reviews
   -------------------------------------------------------------------------- */
.reviews { background: var(--bg-alt); }
.review-empty {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.2rem 1.8rem; align-items: center;
  padding: clamp(1.4rem, 1rem + 2vw, 2.4rem); border-radius: var(--r-xl);
  background: var(--surface); border: 1.5px dashed var(--sand-line);
}
.review-empty-icon { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--brand-leaf) 14%, transparent); color: var(--accent); }
.review-empty-icon .ico { width: 28px; height: 28px; fill: currentColor; stroke: none; }
.review-empty-copy { display: grid; gap: .4rem; }
.review-empty-title { font-size: var(--step-2); }
.review-empty-copy p { color: var(--ink-2); max-width: 44em; }
.review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, .8rem + 1vw, 1.6rem); }
.review { display: grid; gap: 1rem; align-content: start; padding: clamp(1.3rem, 1rem + 1vw, 1.8rem); border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1); }
.review-stars { display: flex; gap: 2px; margin: 0; }
.review-stars .ico { width: 18px; height: 18px; color: var(--line-strong); fill: currentColor; stroke: none; }
.review-stars .ico.is-on { color: #C99A2E; }
.review-quote { margin: 0; }
.review-quote p { font-size: var(--step-1); line-height: 1.5; color: var(--ink); }
.review-quote p::before { content: "\201C"; color: var(--brand-sand); }
.review-quote p::after { content: "\201D"; color: var(--brand-sand); }
.review-by { display: grid; gap: .1rem; color: var(--ink-3); font-size: 1rem; }
.review-by strong { color: var(--ink); font-weight: 600; }
.review-sector { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-mono); font-size: .8125rem; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
@media (max-width: 1023px) { .review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .review-empty { grid-template-columns: 1fr; justify-items: start; }
  .review-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Help band
   -------------------------------------------------------------------------- */
.helpband { background: var(--band); color: var(--band-ink); position: relative; overflow: clip; }
.helpband::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 620px; height: 620px; border-radius: 50%;
  border: 1px solid rgba(192, 162, 120, .35); box-shadow: 0 0 0 90px rgba(255, 255, 255, .025), 0 0 0 180px rgba(255, 255, 255, .02);
  pointer-events: none;
}
.helpband-inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; padding-block: clamp(3rem, 2rem + 3vw, 4.75rem); }
.helpband-title { font-size: var(--step-3); letter-spacing: -.02em; color: var(--band-ink); }
.helpband-text { margin-top: .6rem; color: var(--band-ink-2); max-width: 34em; font-size: var(--step-1); line-height: 1.5; }
.helpband-ctas { display: flex; flex-wrap: wrap; gap: .8rem; }
@media (max-width: 520px) { .helpband-ctas .btn { flex: 1 1 100%; } }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 2rem + 4vw, 6rem); align-items: start; }
.contact-copy { display: grid; gap: 1.3rem; }
.contact-list { display: grid; gap: .25rem; margin-top: 1rem; border-top: 1px solid var(--line); }
.contact-item { display: grid; grid-template-columns: 48px 1fr auto; gap: 1rem; align-items: center; padding-block: 1rem; border-bottom: 1px solid var(--line); }
.contact-item .ci-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--bg-alt); color: var(--primary); }
.contact-item .ci-label { font-size: 1rem; color: var(--ink-3); }
.contact-item .ci-value { font-size: 1.125rem; font-weight: 600; color: var(--ink); word-break: break-word; user-select: all; }
.contact-item a.ci-value { text-decoration: none; }
.contact-item a.ci-value:hover { text-decoration: underline; }
.copy-btn { display: inline-flex; align-items: center; gap: .35rem; min-height: 48px; padding: 0 1rem; border-radius: 999px; border: 0; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink-2); font-size: 1rem; font-weight: 500; }
.copy-btn:hover { background: var(--surface-hover); color: var(--ink); }

.contact-card { background: var(--surface); border-radius: var(--r-xl); padding: clamp(1.4rem, 1rem + 2vw, 2.6rem); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-2); }
.form { display: grid; gap: 1.2rem; }
.form-title { font-size: var(--step-2); letter-spacing: -.012em; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: .45rem; align-content: start; }
.field label { font-size: 1rem; font-weight: 600; color: var(--ink); }
.field .req { color: var(--danger); }
.field .opt { font-weight: 400; color: var(--ink-3); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; min-height: 56px; padding: .85rem 1rem; border-radius: 14px; border: 1.5px solid var(--control-border);
  background: var(--bg); color: var(--ink); font-size: 1.125rem; line-height: 1.4;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); opacity: 1; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 4px color-mix(in srgb, var(--focus) 22%, transparent); }
.field [aria-invalid="true"] { border-color: var(--danger) !important; }
.field-err { color: var(--danger); font-size: 1rem; font-weight: 500; }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 3rem; cursor: pointer; }
.select-wrap .ico { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--ink-3); }
.field-check { grid-template-columns: 28px 1fr; gap: .8rem; align-items: start; }
.field-check input { appearance: none; -webkit-appearance: none; width: 28px; height: 28px; margin: 0; border-radius: 8px; border: 1.5px solid var(--control-border); background: var(--bg); display: grid; place-items: center; cursor: pointer; transition: background-color .2s, border-color .2s; }
.field-check input::after { content: ""; width: 12px; height: 7px; border: solid var(--on-primary); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .2s var(--ease-out); }
.field-check input:checked { background: var(--primary); border-color: var(--primary); }
.field-check input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.field-check input:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.field-check label { font-weight: 400; color: var(--ink-2); line-height: 1.5; padding-top: .1rem; }
.field-check .field-err { grid-column: 2; }
.form-status { min-height: 1.5em; color: var(--ink-3); font-size: 1rem; }
.form-status.is-error { color: var(--danger); }
.form-done { display: grid; gap: 1rem; justify-items: start; padding-block: 1rem; outline: none; }
.done-mark { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--brand-leaf) 18%, transparent); color: var(--success); animation: pop-in .6s var(--ease-out) both; }
.done-mark .ico { width: 30px; height: 30px; stroke-width: 2.4; }
.done-text { color: var(--ink-2); font-size: var(--step-1); line-height: 1.5; }

@media (max-width: 1023px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } .contact-item { grid-template-columns: 44px 1fr; } .contact-item .copy-btn { grid-column: 2; justify-self: start; } }

/* --------------------------------------------------------------------------
   Support Hub (#support): a separate view that site.js swaps in for the home
   page. Dark-teal search band, company cards, quick actions, closing band.
   -------------------------------------------------------------------------- */
.nav-link[aria-current="page"] { color: var(--ink); font-weight: 600; background: var(--surface-hover); }
.support-hero {
  position: relative; isolation: isolate; color: var(--band-ink);
  background:
    radial-gradient(ellipse 55% 90% at 92% 0%, color-mix(in srgb, var(--brand-leaf) 24%, transparent), transparent 70%),
    linear-gradient(180deg, rgba(5, 16, 18, 0) 35%, rgba(5, 16, 18, .4) 100%),
    var(--band);
}
/* The globe is decoration only: clipped to the band and kept faint */
.support-globe-clip { position: absolute; inset: 0; z-index: -1; overflow: hidden; overflow: clip; pointer-events: none; }
.support-globe { width: clamp(460px, 50vw, 780px); right: -9%; top: 50%; transform: translateY(-50%); color: var(--brand-sand); opacity: .3; }
.support-hero-inner { position: relative; display: grid; justify-items: start; gap: 1.15rem; padding-block: clamp(3.5rem, 2.4rem + 4.5vw, 6.5rem) clamp(3rem, 2rem + 3.5vw, 5rem); }
.support-hero .eyebrow { color: #CFEFC1; }
.support-title { font-size: var(--step-5); font-weight: 700; text-transform: uppercase; letter-spacing: .004em; line-height: .92; color: #FFFFFF; max-width: 11em; }
.support-search-wrap { position: relative; width: 100%; max-width: 760px; margin-top: .6rem; }
.support-search {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .65rem;
  min-height: 68px; padding: .45rem .45rem .45rem 1.3rem; border-radius: 999px; background: var(--surface); color: var(--ink);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 24px 60px rgba(3, 12, 13, .35);
  transition: box-shadow .2s var(--ease);
}
.support-search:focus-within { box-shadow: inset 0 0 0 2px var(--focus), 0 0 0 5px rgba(255, 255, 255, .3), 0 24px 60px rgba(3, 12, 13, .35); }
.support-search > .ico { color: var(--ink-3); width: 26px; height: 26px; }
.support-search input { width: 100%; min-width: 0; min-height: 52px; padding: 0; border: 0; background: transparent; font-size: 1.25rem; color: var(--ink); outline: none; text-overflow: ellipsis; }
.support-search input::placeholder { color: var(--ink-3); opacity: 1; }
.support-search input::-webkit-search-cancel-button { display: none; }
.support-search .btn { --btn-h: 54px; }
.support-suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 10px); z-index: 20; text-align: left;
  display: grid; gap: .15rem; padding: .5rem; max-height: min(400px, 52vh); max-height: min(400px, 52svh); overflow: auto; overscroll-behavior: contain;
  background: var(--surface); color: var(--ink); border-radius: var(--r-lg); box-shadow: var(--shadow-3), inset 0 0 0 1px var(--line);
}
.support-chips { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .2rem; }
.support-chips-label { font-family: var(--font-mono); font-size: .875rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--band-ink-2); margin-right: .4rem; }
.support-chips .chip { background: rgba(255, 255, 255, .08); color: #FFFFFF; border-color: rgba(255, 255, 255, .34); }
.support-chips .chip:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .62); }
.support-chips :focus-visible, .support-escalate :focus-visible { outline-color: #FFFFFF; }

.support-body { padding-block: clamp(3rem, 2rem + 3vw, 5rem) clamp(3.5rem, 2.5rem + 4vw, 6rem); }
.support-body > .section-head { gap: .5rem; margin-bottom: clamp(1.4rem, 1rem + 1.2vw, 2.2rem); }
.support-body > * + .section-head, .support-escalate { margin-top: clamp(3.5rem, 2.5rem + 3vw, 5.5rem); }
.support-h2 { font-size: var(--step-3); font-weight: 700; text-transform: uppercase; letter-spacing: .004em; line-height: 1; }

/* Company cards */
.support-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.sp-card {
  display: grid; grid-template-rows: auto auto 1fr; gap: 1.1rem; padding: 1.4rem 1.4rem .5rem; border-radius: var(--r-lg);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1);
  transition: box-shadow .3s var(--ease);
}
.sp-card:hover, .sp-card:focus-within { box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-2); }
.sp-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand-leaf) 14%, transparent); color: var(--accent); }
.sp-sector { font-family: var(--font-mono); font-size: .8125rem; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); line-height: 1.35; margin-bottom: .3rem; }
.sp-name { font-size: 1.4rem; letter-spacing: -.01em; }
.sp-links { align-self: end; display: grid; border-top: 1px solid var(--line); }
.sp-links button {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem; width: 100%; min-height: 52px; padding: .55rem .1rem;
  border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink); font-size: 1rem; font-weight: 600; line-height: 1.3; text-align: left;
  transition: color .2s var(--ease);
}
.sp-links button:last-child { border-bottom: 0; }
.sp-links button .ico { width: 20px; height: 20px; color: var(--ink-3); transition: transform .3s var(--ease), color .2s var(--ease); }
.sp-links button:hover { color: var(--primary); }
.sp-links button:hover .ico { color: var(--primary); transform: translateX(3px); }

/* Quick actions */
.support-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.sa-card {
  display: flex; flex-direction: column; gap: 1rem; padding: clamp(1.4rem, 1.1rem + 1vw, 2rem); border-radius: var(--r-lg);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1);
}
.sa-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); }
.sa-title { font-size: var(--step-2); letter-spacing: -.01em; }
.sa-text { color: var(--ink-2); }
.sa-form { display: grid; gap: .9rem; }
.sa-card > .btn:last-child { margin-top: auto; }
.sa-result { font-size: 1rem; line-height: 1.5; color: var(--ink-2); }
.sa-result:empty { height: 0; margin-top: -1rem; overflow: hidden; } /* stays in the page so the live region is announced */
.sa-result.is-ok, .sa-result.is-error { padding: .85rem 1rem; border-radius: var(--r-sm); }
.sa-result.is-ok { color: var(--ink); background: color-mix(in srgb, var(--success) 10%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--success) 40%, transparent); }
.sa-result.is-error { color: var(--danger); font-weight: 500; background: color-mix(in srgb, var(--danger) 7%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--danger) 30%, transparent); }
.sa-docs { display: grid; gap: .5rem; }
.sa-doc { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: .4rem; align-items: center; padding: .4rem .4rem .4rem 1rem; border-radius: var(--r-md); background: var(--bg-alt); }
.sa-doc-name { font-weight: 600; font-size: 1rem; line-height: 1.3; }
.sa-doc .icon-btn { background: var(--surface); color: var(--primary); box-shadow: inset 0 0 0 1px var(--line); }
.sa-doc .icon-btn:hover { background: var(--surface-hover); box-shadow: inset 0 0 0 1px var(--line-strong); }
.sa-doc .icon-btn[aria-busy="true"] { opacity: .6; cursor: progress; }
.sa-list { display: grid; gap: .55rem; color: var(--ink-2); }
.sa-list li { display: flex; gap: .6rem; align-items: start; }
.sa-list .ico { color: var(--accent); stroke-width: 2.2; margin-top: .15em; }

/* Closing band */
.support-escalate {
  position: relative; isolation: isolate; overflow: hidden; overflow: clip;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2.5rem;
  padding: clamp(1.75rem, 1.2rem + 2.2vw, 3.25rem); border-radius: var(--r-xl); background: var(--band); color: var(--band-ink);
}
.support-escalate::before {
  content: ""; position: absolute; z-index: -1; top: -240px; right: -150px; width: 500px; height: 500px; border-radius: 50%;
  border: 1px solid rgba(192, 162, 120, .35); box-shadow: 0 0 0 80px rgba(255, 255, 255, .025), 0 0 0 160px rgba(255, 255, 255, .02);
  pointer-events: none;
}
.support-escalate .support-h2 { color: var(--band-ink); }
.support-escalate .lead { color: var(--band-ink-2); }
.se-copy { display: grid; gap: .7rem; max-width: 40rem; }
.se-ctas { display: flex; flex-wrap: wrap; gap: .8rem; }

@media (max-width: 1100px) {
  .support-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .support-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sa-card:last-child { grid-column: 1 / -1; }
  .sa-card:last-child > .btn { align-self: flex-start; width: auto; padding-inline: 1.6rem; }
}
@media (max-width: 720px) {
  .support-grid, .support-actions { grid-template-columns: 1fr; }
  .sa-card:last-child > .btn { align-self: stretch; width: 100%; }
  /* One column: icon beside the name keeps the four cards short */
  .sp-card { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto 1fr; align-items: center; gap: .9rem 1rem; padding-top: 1.2rem; }
  .sp-links { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .support-globe { width: 440px; right: -220px; top: 38%; opacity: .22; }
  .support-search { min-height: 60px; gap: .5rem; padding-left: 1.05rem; }
  .support-search > .ico { width: 22px; height: 22px; }
  .support-search input { font-size: 1.0625rem; min-height: 48px; }
  .support-search .btn { --btn-h: 48px; padding-inline: 1.05rem; }
  .support-chips-label { flex-basis: 100%; }
  .se-ctas .btn { flex: 1 1 100%; }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding-top: clamp(3.5rem, 2.5rem + 3vw, 5rem); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2.5rem; padding-bottom: 3rem; }
.footer-brand { display: grid; gap: .9rem; align-content: start; }
.brand-lg .brand-mark { width: 56px; height: 56px; }
.brand-lg .brand-word { font-size: 1.25rem; }
.footer-tag { color: var(--ink-3); font-size: 1rem; }
.footer-h { font-family: var(--font-body); font-size: 1rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .9rem; }
.footer-col ul { display: grid; gap: .15rem; }
.footer-col a, .footer-col .linklike { display: inline-flex; align-items: center; min-height: 48px; color: var(--ink-2); text-decoration: none; font-size: 1.0625rem; }
.footer-col a:hover, .footer-col .linklike:hover { color: var(--ink); text-decoration: underline; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem; padding-block: 1.5rem calc(1.5rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); color: var(--ink-3); font-size: 1rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; } }

/* --------------------------------------------------------------------------
   Cookie banner
   -------------------------------------------------------------------------- */
.cookie {
  position: fixed; z-index: 250; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: min(1080px, calc(100% - 32px));
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.1rem 1.4rem; align-items: center;
  padding: 1.15rem 1.25rem; border-radius: var(--r-lg); box-shadow: var(--shadow-3);
  background: var(--glass-strong);
  transform: translate(-50%, 0); opacity: 1;
  transition: transform .6s var(--ease-out), opacity .4s var(--ease);
}
.cookie.is-entering { transform: translate(-50%, calc(100% + 40px)); opacity: 0; }
.cookie.is-leaving { transform: translate(-50%, calc(100% + 40px)); opacity: 0; transition-duration: .45s, .35s; }
.cookie-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand-sand) 22%, transparent); color: var(--brand-bark); }
.cookie-title { font-family: var(--font-display); font-size: 1.2rem; letter-spacing: -.01em; margin-bottom: .2rem; }
.cookie-text { font-size: 1rem; color: var(--ink-2); line-height: 1.5; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .55rem; justify-content: flex-end; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cookie-icon { color: var(--brand-sand); } }
:root[data-theme="dark"] .cookie-icon { color: var(--brand-sand); }
@media (max-width: 980px) {
  .cookie { grid-template-columns: auto 1fr; }
  .cookie-actions { grid-column: 1 / -1; justify-content: stretch; }
  .cookie-actions .btn { flex: 1 1 auto; }
}
@media (max-width: 560px) {
  .cookie { grid-template-columns: 1fr; padding: 1rem; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); width: calc(100% - 20px); gap: .8rem; }
  .cookie-icon { display: none; }
  .cookie-actions .btn { flex: 1 1 100%; }
}

/* --------------------------------------------------------------------------
   Dialogs (native <dialog> in the top layer)
   -------------------------------------------------------------------------- */
.dlg { padding: 0; border: 0; background: transparent; color: var(--ink); max-width: none; max-height: none; overflow: visible; }
.dlg::backdrop { background: var(--scrim, rgba(8, 16, 17, 0.42)); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.dlg[open]::backdrop { animation: fade-in .3s var(--ease) both; }
.dlg.is-closing::backdrop { animation: fade-out .22s var(--ease) both; }
.dlg-card { background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-3); outline: none; }
.dlg[open] .dlg-card { animation: dlg-in .42s var(--ease-out) both; }
.dlg.is-closing .dlg-card { animation: dlg-out .22s var(--ease) both; }

/* Search */
.dlg-search { width: min(720px, calc(100% - 24px)); margin: max(8vh, 20px) auto auto; }
.search-card { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; max-height: min(78vh, 720px); overflow: hidden; }
.search-bar { display: grid; grid-template-columns: auto 1fr auto; gap: .75rem; align-items: center; padding: .7rem .7rem .7rem 1.25rem; border-bottom: 1px solid var(--line); }
.search-bar > .ico { color: var(--ink-3); width: 26px; height: 26px; }
.search-bar input { width: 100%; min-height: 56px; border: 0; background: transparent; font-size: 1.35rem; color: var(--ink); outline: none; }
.search-bar:focus-within { box-shadow: inset 0 -2px 0 var(--focus); }
.search-bar input::placeholder { color: var(--ink-3); opacity: 1; }
.search-bar input::-webkit-search-cancel-button { display: none; }
.search-body { overflow: auto; padding: .9rem .7rem 1rem; overscroll-behavior: contain; }
.search-hint { padding: .2rem .7rem .55rem; font-size: 1rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.search-group { padding: .9rem .7rem .4rem; font-size: 1rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.search-results { display: grid; gap: .15rem; }
.sr-item { display: grid; grid-template-columns: 44px 1fr auto; gap: .9rem; align-items: center; padding: .6rem .7rem; min-height: 60px; border-radius: 14px; cursor: pointer; color: var(--ink); }
.sr-item[aria-selected="true"] { background: var(--surface-hover); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.sr-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-alt); color: var(--primary); overflow: hidden; }
.sr-icon img { width: 100%; height: 100%; object-fit: cover; }
.sr-title { font-weight: 600; font-size: 1.0625rem; line-height: 1.3; }
.sr-sub { font-size: 1rem; color: var(--ink-3); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sr-go { color: var(--ink-3); opacity: 0; transition: opacity .2s; }
.sr-item[aria-selected="true"] .sr-go { opacity: 1; }
.sr-item mark { background: color-mix(in srgb, var(--brand-leaf) 26%, transparent); color: inherit; border-radius: 3px; padding: 0 .08em; }
.search-empty { display: grid; gap: .6rem; justify-items: start; padding: 1rem .8rem 1.2rem; color: var(--ink-2); }
.search-empty-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--ink); }
.search-foot { display: flex; gap: 1.5rem; padding: .8rem 1.25rem; border-top: 1px solid var(--line); color: var(--ink-3); font-size: .9rem; }
.search-foot .kbd { margin-right: .2rem; }
@media (hover: none), (max-width: 640px) { .search-foot { display: none; } }
@media (max-width: 640px) {
  .dlg-search { width: 100%; height: 100%; margin: 0; }
  .search-card { max-height: none; height: 100dvh; border-radius: 0; padding-top: env(safe-area-inset-top, 0px); }
}

/* Sheet dialogs: company details & legal */
.dlg-sheet { width: min(1120px, calc(100% - 32px)); height: calc(100dvh - 48px); margin: auto; }
.dlg-sheet .dlg-card { height: 100%; overflow: hidden; }
.entity-card { position: relative; overflow: auto !important; overscroll-behavior: contain; }
.dlg-x { position: sticky; top: 16px; float: right; margin: 16px 16px -64px 0; z-index: 3; background: var(--glass-strong); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--shadow-1); }
@media (max-width: 640px) {
  .dlg-sheet { width: 100%; height: 100%; margin: 0; }
  .dlg-sheet .dlg-card { border-radius: 0; }
  .dlg-x { top: calc(10px + env(safe-area-inset-top, 0px)); margin: 10px 10px -58px 0; }
}

.ent-hero { position: relative; aspect-ratio: 21 / 8; min-height: 280px; overflow: hidden; background: var(--bg-alt); }
.ent-hero img { width: 100%; height: 100%; object-fit: cover; }
.ent-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 14, 15, 0) 45%, rgba(4, 14, 15, .35) 100%); }
.ent-hero-copy {
  position: absolute; left: clamp(12px, 2vw, 28px); bottom: clamp(12px, 2vw, 28px); z-index: 1;
  max-width: min(680px, calc(100% - 24px)); padding: clamp(1rem, .8rem + 1vw, 1.6rem) clamp(1.1rem, .9rem + 1vw, 1.8rem);
  border-radius: var(--r-lg); color: #FFFFFF; display: grid; gap: .45rem;
  background: rgba(4, 14, 15, .74); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) { .ent-hero-copy { background: rgba(4, 14, 15, .9); } }
.ent-hero-copy .eyebrow { color: #CFEFC1; }
.ent-title { font-size: var(--step-3); letter-spacing: -.024em; color: #FFFFFF; }
.ent-tag { font-family: var(--font-display); font-size: var(--step-1); font-weight: 500; color: rgba(255, 255, 255, .92); }
.ent-body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(2rem, 1.5rem + 2vw, 3.5rem); padding: clamp(1.25rem, 1rem + 2vw, 2.5rem); }
.ent-main { display: grid; gap: 1.6rem; align-content: start; }
.ent-summary { font-size: var(--step-1); color: var(--ink-2); line-height: 1.55; }
.ent-h { font-size: 1.3rem; letter-spacing: -.01em; }
.ent-services { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.ent-service { display: grid; grid-template-columns: 24px 1fr; gap: .7rem; padding: 1rem; border-radius: var(--r-md); background: var(--bg-alt); }
.ent-service .ico { color: var(--accent); stroke-width: 2.2; width: 22px; height: 22px; margin-top: .1em; }
.ent-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.ent-gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-md); background: var(--bg-alt); }
.ent-aside { display: grid; gap: 1.2rem; align-content: start; }
.ent-panel { padding: 1.4rem; border-radius: var(--r-lg); background: var(--bg-alt); display: grid; gap: 1rem; }
.ent-metrics { display: grid; gap: 1rem; }
.ent-metrics .metric { grid-template-columns: auto 1fr; align-items: baseline; gap: .8rem; }
.ent-note { font-size: 1rem; color: var(--ink-3); }
@media (max-width: 860px) { .ent-body { grid-template-columns: minmax(0, 1fr); } }
.ent-panel .btn { white-space: normal; text-align: center; height: auto; padding-block: .6rem; }
@media (max-width: 560px) { .ent-services, .ent-gallery { grid-template-columns: 1fr; } .ent-hero { aspect-ratio: 4 / 3.4; } }

/* Legal */
.legal-card { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.legal-head { padding: clamp(1.2rem, 1rem + 1.4vw, 2rem) clamp(1.2rem, 1rem + 1.4vw, 2rem) 0; border-bottom: 1px solid var(--line); display: grid; gap: 1rem; }
.legal-head-row { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.legal-title { font-size: var(--step-3); letter-spacing: -.02em; margin-top: .35rem; }
.legal-tabs { display: flex; gap: .3rem; overflow-x: auto; scrollbar-width: none; margin-inline: -.3rem; padding-inline: .3rem; }
.legal-tabs::-webkit-scrollbar { display: none; }
.legal-tab { flex: none; min-height: 48px; padding: 0 1rem; border: 0; background: none; color: var(--ink-3); font-weight: 600; font-size: 1rem; border-bottom: 2.5px solid transparent; border-radius: 0; }
.legal-tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--primary); }
.legal-tab:hover { color: var(--ink); }
.legal-body { position: relative; overflow: auto; overscroll-behavior: contain; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 2.5rem; padding: clamp(1.2rem, 1rem + 1.4vw, 2rem); align-items: start; }
.legal-toc { position: sticky; top: 0; display: grid; gap: .25rem; max-height: calc(100dvh - 260px); overflow: auto; }
.legal-toc p { font-size: 1rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .5rem; }
.legal-toc a { display: flex; align-items: center; min-height: 44px; padding: .45rem .7rem; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-size: 1rem; line-height: 1.35; }
.legal-toc a:hover { background: var(--surface-hover); color: var(--ink); }
.legal-toc a.is-active { background: var(--surface-hover); color: var(--ink); font-weight: 600; }
.legal-summary { font-size: var(--step-1); color: var(--ink-2); line-height: 1.55; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
@media (max-width: 860px) {
  /* minmax(0, 1fr): the column may shrink below a wide table, which then scrolls in its .table-wrap */
  .legal-body { grid-template-columns: minmax(0, 1fr); } .legal-toc { display: none; }
  .legal-body > * { min-width: 0; }
}

.prose { max-width: 44rem; color: var(--ink-2); }
.prose section { scroll-margin-top: 16px; padding-bottom: 1.2rem; }
.prose h3 { font-size: 1.4rem; color: var(--ink); letter-spacing: -.01em; margin: 1.6rem 0 .8rem; }
.prose h4 { font-size: 1.12rem; color: var(--ink); margin: 1.3rem 0 .5rem; font-family: var(--font-body); font-weight: 600; }
.prose p, .prose ul, .prose ol { margin: 0 0 1rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: .4rem; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--ink); }
.prose .table-wrap { overflow-x: auto; margin: .5rem 0 1.2rem; border-radius: var(--r-sm); }
.prose table { width: 100%; min-width: 30rem; border-collapse: collapse; font-size: 1rem; }
.prose th, .prose td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--ink); font-weight: 600; background: var(--bg-alt); }
.prose #template-notice, .prose .notice { padding: 1rem 1.2rem; border-radius: var(--r-md); background: color-mix(in srgb, var(--brand-sand) 16%, transparent); border: 1px solid var(--sand-line); }
.prose #template-notice h3 { margin-top: 0; font-size: 1.1rem; }
.prose #template-notice p:last-child { margin-bottom: 0; }

/* Cookie preferences */
.dlg-prefs { width: min(640px, calc(100% - 24px)); margin: auto; }
.prefs-card { padding: clamp(1.3rem, 1rem + 1.5vw, 2rem); display: grid; gap: 1.1rem; max-height: calc(100dvh - 40px); overflow: auto; }
.prefs-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.prefs-title { font-size: var(--step-2); letter-spacing: -.012em; }
.prefs-intro { color: var(--ink-2); }
.prefs-gpc { display: flex; gap: .6rem; align-items: start; padding: .8rem 1rem; border-radius: var(--r-sm); background: var(--bg-alt); color: var(--ink-2); font-size: 1rem; }
.prefs-gpc .ico { color: var(--accent); margin-top: .15em; }
.prefs-list { display: grid; border-top: 1px solid var(--line); }
.pref { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; padding-block: 1rem; border-bottom: 1px solid var(--line); }
.pref-name { font-weight: 600; font-size: 1.0625rem; }
.pref-desc { color: var(--ink-3); font-size: 1rem; line-height: 1.45; }
.switch { position: relative; display: inline-flex; width: 60px; height: 36px; flex: none; cursor: pointer; }
.switch input { position: absolute; inset: -6px -4px; width: auto; height: auto; margin: 0; opacity: 0; cursor: pointer; z-index: 1; } /* 48px+ hit area */
.switch-ui { position: absolute; inset: 0; border-radius: 999px; background: var(--control-border); transition: background-color .25s var(--ease); }
.switch-ui::after { content: ""; position: absolute; top: 4px; left: 4px; width: 28px; height: 28px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .3s var(--ease-out); }
.switch input:checked + .switch-ui { background: var(--primary); }
.switch input:checked + .switch-ui::after { transform: translateX(24px); }
.switch input:focus-visible + .switch-ui { outline: 3px solid var(--focus); outline-offset: 3px; }
.switch.is-locked { opacity: .6; cursor: not-allowed; }
.switch.is-locked input { cursor: not-allowed; }
.prefs-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: flex-end; padding-top: .3rem; }
@media (max-width: 560px) { .prefs-actions .btn { flex: 1 1 100%; } }

/* Mobile menu */
.dlg-menu { width: 100%; height: 100%; margin: 0; }
.menu-card { height: 100dvh; border-radius: 0; overflow: auto; padding: calc(env(safe-area-inset-top, 0px) + .6rem) var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 1.5rem); display: grid; align-content: start; gap: 1.2rem; }
.dlg-menu[open] .dlg-card { animation: menu-in .42s var(--ease-out) both; }
.dlg-menu.is-closing .dlg-card { animation: menu-out .22s var(--ease) both; }
.menu-head { display: flex; justify-content: space-between; align-items: center; min-height: var(--header-h); }
.menu-label { font-size: 1rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin: .4rem 0 .6rem; }
.menu-companies { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.menu-company { display: grid; gap: .5rem; padding: .5rem .5rem .8rem; border-radius: var(--r-md); background: var(--bg-alt); color: var(--ink); text-decoration: none; min-height: 48px; }
.menu-company img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; border-radius: 12px; }
.menu-company span { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; line-height: 1.2; padding-inline: .2rem; }
.menu-company small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 1rem; color: var(--ink-3); margin-top: .15rem; }
.menu-links { display: grid; margin-top: .6rem; border-top: 1px solid var(--line); }
.menu-links a { display: flex; align-items: center; min-height: 60px; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.menu-links a[aria-current="page"] { color: var(--primary); }
.menu-links a[aria-current="page"]::before { content: ""; width: 8px; height: 8px; margin-right: .6rem; border-radius: 50%; background: currentColor; }
.menu-tools { display: grid; gap: .7rem; margin-top: .6rem; }

/* Toast */
.toast {
  position: fixed; z-index: 500; left: 50%; bottom: calc(24px + var(--lr-bottom-offset, 0px) + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  max-width: min(520px, calc(100% - 32px)); padding: .85rem 1.2rem; border-radius: 999px;
  background: #0E1A1C; color: #FFFFFF; font-size: 1rem; font-weight: 500; box-shadow: var(--shadow-2); text-align: center;
  transition: transform .45s var(--ease-out), opacity .3s var(--ease), bottom .4s var(--ease);
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

@media (min-width: 640px) {
  html:has(#lr-core.lrc-open) .toast { left: calc(50% - 202px); max-width: min(520px, calc(100vw - 452px)); }
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */
/* Reveal: only content that starts below the fold is parked, so the first
   frame always shows what is on screen. */
.reveal-pending { opacity: 0; transform: translate3d(0, 28px, 0); }
.reveal-in { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }

@keyframes rise-in { from { transform: translate3d(0, 105%, 0); } to { transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes fade-up { from { opacity: 0; transform: translate3d(0, 22px, 0); } to { opacity: 1; transform: none; } }
@keyframes panel-in { from { opacity: 0; transform: translate3d(0, 14px, 0); } to { opacity: 1; transform: none; } }
@keyframes panel-glow { 0% { box-shadow: inset 0 0 0 1px var(--line), 0 0 0 0 color-mix(in srgb, var(--primary) 40%, transparent); } 35% { box-shadow: inset 0 0 0 2px var(--primary), 0 0 0 10px color-mix(in srgb, var(--primary) 12%, transparent); } 100% { box-shadow: inset 0 0 0 1px var(--line), 0 0 0 0 transparent; } }
@keyframes ring-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 50%, transparent); } 60% { box-shadow: 0 0 0 12px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes dlg-in { from { opacity: 0; transform: translate3d(0, 18px, 0) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes dlg-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translate3d(0, 10px, 0) scale(.99); } }
@keyframes menu-in { from { opacity: 0; transform: translate3d(0, -14px, 0); } to { opacity: 1; transform: none; } }
@keyframes menu-out { from { opacity: 1; } to { opacity: 0; transform: translate3d(0, -8px, 0); } }
@keyframes slide-up { from { transform: translate3d(0, 22px, 0); } to { transform: none; } }
@keyframes pop-in { from { transform: scale(.5); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal-pending { opacity: 1; transform: none; }
}

@media (prefers-contrast: more) {
  :root { --line: rgba(14, 26, 28, 0.28); --line-strong: rgba(14, 26, 28, 0.5); --ink-2: #1F2B2D; --ink-3: #334144; }
  .glass { background: var(--glass-strong); }
}

@media (forced-colors: active) {
  .switch-ui { border: 2px solid ButtonText; background: Canvas; }
  .switch-ui::after { background: ButtonText; }
  .switch input:checked + .switch-ui { background: Highlight; border-color: Highlight; }
  .switch input:checked + .switch-ui::after { background: HighlightText; }
  .hub-tab[aria-selected="true"], .hp-thumb[aria-pressed="true"] { outline: 3px solid Highlight; }
  .field-check input:checked { background: Highlight; }
  /* The Support Hub search draws its edge and focus ring with box-shadow, which forced colors drops. */
  .support-search { border: 1px solid CanvasText; }
  .support-search:focus-within { outline: 3px solid Highlight; outline-offset: 2px; }
}

/* Lenis (inlined from lenis@1.3.26/dist/lenis.css) */
html.lenis, html.lenis body { height: auto; }
html.lenis.lenis-stopped { overflow: hidden; } /* hidden (not clip) keeps the scrollbar gutter */
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }
