/* ==========================================================================
   Everette & Knights: custom styles (on top of Tailwind)
   Flat colour only: no gradients, no glows. Depth comes from hairline
   borders, subtle shadows and typography.

   Theming: every colour below is a token. Light values live on :root,
   dark values on [data-theme="dark"] (set on <html> by the inline script
   in index.html and the toggle in main.js). Tailwind's brand-* colours
   point at the same tokens, so utility classes switch theme too.
   ========================================================================== */

:root {
  /* Fixed brand colours */
  --brand-blue: #0B3C5D;
  --brand-navy: #072A42;
  --teal: #1CA7A8;
  --green: #3CCB7F;
  --green-hover: #2FB86E;

  /* Surfaces & text */
  --bg: #F7FAFC;
  --surface: #FFFFFF;
  --surface-muted: #F1F5F9;
  --ink: #1A202C;
  --muted: #5F6B7D;
  --heading: #0B3C5D;
  --accent-text: #0E7C7D;          /* teal, darkened for AA on light */
  --link: #0B3C5D;
  --link-underline: rgba(11, 60, 93, .3);
  --line: #E2E8F0;
  --line-strong: #CBD5E1;

  /* Large colour blocks (hero band, mission card, why-us) and footer */
  --band: #0B3C5D;
  --footer-bg: #072A42;

  /* Buttons */
  --btn-bg: #0B3C5D;
  --btn-text: #FFFFFF;
  --btn-hover: #072A42;
  --btn-outline: #0B3C5D;
  --btn-outline-hover-text: #FFFFFF;

  /* Form */
  --field-bg: #FFFFFF;
  --field-border: #CBD5E1;
  --field-hover: #94A3B8;
  --field-focus: #0B3C5D;
  --focus-ring: rgba(11, 60, 93, .15);
  --danger: #B42318;
  --danger-ring: rgba(180, 35, 24, .15);
  --ok-bg: #E8F8EF;  --ok-text: #14532D;  --ok-border: #B7EBCD;
  --err-bg: #FEF3F2; --err-text: #912018; --err-border: #FECDCA;

  /* Tints */
  --tint-teal: #E6F6F6;
  --tint-blue: #E7EEF3;

  /* Product accents: base / text / soft background */
  --accent-teal: #1CA7A8;  --accent-teal-ink: #0E7C7D;  --accent-teal-soft: #E6F6F6;
  --accent-blue: #0B3C5D;  --accent-blue-ink: #0B3C5D;  --accent-blue-soft: #E7EEF3;
  --accent-green: #3CCB7F; --accent-green-ink: #1E7A4A; --accent-green-soft: #E8F8EF;

  /* Chrome */
  --header-bg: rgba(255, 255, 255, .9);
  --header-shadow: 0 6px 24px -12px rgba(11, 60, 93, .18);
  --shadow-rgb: 7, 42, 66;
  --shot-frame-bg: #FFFFFF;
  --shot-frame-border: rgba(11, 60, 93, .12);
  --phone-bezel: #072A42;

  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

/* ---------- Dark theme ----------
   Deep navy-ink rather than black, so it still feels like the brand.
   Headings go near-white, accents brighten for contrast, and the solid
   blue blocks become a slightly lifted navy band. */
:root[data-theme="dark"] {
  --bg: #0B1520;
  --surface: #101D2B;
  --surface-muted: #15263A;
  --ink: #E5ECF2;
  --muted: #95A3B4;
  --heading: #F2F6F9;
  --accent-text: #45D0D1;
  --link: #7FD8D9;
  --link-underline: rgba(127, 216, 217, .35);
  --line: #1F3244;
  --line-strong: #2C445B;

  --band: #0F2C44;
  --footer-bg: #070F18;

  --btn-bg: #E8F1F6;
  --btn-text: #072A42;
  --btn-hover: #FFFFFF;
  --btn-outline: #C9D6E2;
  --btn-outline-hover-text: #072A42;

  --field-bg: #0D1926;
  --field-border: #2C445B;
  --field-hover: #3D5873;
  --field-focus: #45D0D1;
  --focus-ring: rgba(69, 208, 209, .2);
  --danger: #F97066;
  --danger-ring: rgba(249, 112, 102, .2);
  --ok-bg: rgba(60, 203, 127, .12);   --ok-text: #7EE2AC;  --ok-border: rgba(60, 203, 127, .3);
  --err-bg: rgba(249, 112, 102, .1);  --err-text: #FDA29B; --err-border: rgba(249, 112, 102, .3);

  --tint-teal: rgba(28, 167, 168, .14);
  --tint-blue: #17304A;

  --accent-teal: #1CA7A8;  --accent-teal-ink: #45D0D1;  --accent-teal-soft: rgba(28, 167, 168, .14);
  --accent-blue: #5B9BD5;  --accent-blue-ink: #8EC1EE;  --accent-blue-soft: rgba(91, 155, 213, .14);
  --accent-green: #3CCB7F; --accent-green-ink: #5EDB98; --accent-green-soft: rgba(60, 203, 127, .12);

  --header-bg: rgba(11, 21, 32, .85);
  --header-shadow: 0 1px 0 rgba(255, 255, 255, .02), 0 10px 30px -12px rgba(0, 0, 0, .6);
  --shadow-rgb: 0, 0, 0;
  --shot-frame-bg: #16283A;
  --shot-frame-border: rgba(255, 255, 255, .08);
  --phone-bezel: #050C14;
  color-scheme: dark;
}

/* Smooth cross-fade when the visitor switches theme (class added briefly by main.js) */
html.theme-anim *,
html.theme-anim *::before,
html.theme-anim *::after {
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), fill .35s var(--ease) !important;
}

html { overflow-x: clip; scroll-padding-top: var(--header-h); }
body { overflow-x: clip; }

::selection { background: var(--teal); color: #fff; }

/* Show one of two elements depending on theme (used for the logo mark) */
[data-theme="dark"] .only-light,
:root:not([data-theme="dark"]) .only-dark { display: none; }

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--btn-bg); color: var(--btn-text); padding: .75rem 1rem; border-radius: .5rem;
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  height: 44px; padding: 0 1.15rem;
  border-radius: .75rem;
  font-weight: 600; font-size: .9375rem; letter-spacing: -.005em;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-lg { height: 52px; padding: 0 1.5rem; font-size: 1rem; }

.btn-primary { background: var(--btn-bg); color: var(--btn-text); }
.btn-primary:hover { background: var(--btn-hover); }

.btn-outline { border: 1.5px solid var(--btn-outline); color: var(--btn-outline); background: transparent; }
.btn-outline:hover { background: var(--btn-outline); color: var(--btn-outline-hover-text); }

/* Green accent: dark text on green keeps AA contrast in both themes */
.btn-accent { background: var(--green); color: var(--brand-navy); }
.btn-accent:hover { background: var(--green-hover); }
.btn[disabled] { opacity: .65; cursor: progress; }

.link { color: var(--link); text-decoration: underline; text-decoration-color: var(--link-underline); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.link:hover { text-decoration-color: var(--link); }

/* ---------- Header / nav ---------- */
.site-header {
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.is-scrolled,
.site-header.menu-open {
  background: var(--header-bg);
  border-bottom-color: var(--line);
  box-shadow: var(--header-shadow);
}
.site-header.menu-open { background: var(--surface); }
@supports (backdrop-filter: blur(8px)) {
  .site-header.is-scrolled { backdrop-filter: blur(8px); }
}

.nav-link {
  position: relative; display: inline-block;
  padding: .5rem .85rem; border-radius: .5rem;
  font-size: .9375rem; font-weight: 500; color: var(--muted);
  transition: color .2s;
}
.nav-link:hover, .nav-link.is-active { color: var(--heading); }

/* Square icon buttons in the header (theme toggle, hamburger) */
.icon-btn {
  position: relative; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: .75rem;
  border: 1px solid var(--line); background: var(--surface); color: var(--heading);
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.icon-btn:hover { border-color: var(--line-strong); }

/* Language switcher: globe + current code; menu drops down under it.
   On phones the globe shows alone, and the header buttons and wordmark
   shrink a little so logo + globe + theme + menu fit on a 360px screen. */
.lang-switch { position: relative; }
.lang-toggle { display: inline-flex; gap: .4rem; width: auto; padding: 0 .75rem; }
.lang-toggle svg { width: 18px; height: 18px; }
.lang-code { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .75rem; font-weight: 500; letter-spacing: .06em; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + .5rem); z-index: 60; min-width: 11rem; padding: .375rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: .875rem;
  box-shadow: 0 20px 40px -20px rgba(var(--shadow-rgb), .45);
}
.lang-menu[hidden] { display: none; }
@media (max-width: 639px) {
  .site-header .icon-btn { width: 40px; height: 40px; }
  .site-header .lang-toggle { padding: 0; }
}
@media (max-width: 399px) {
  .site-header nav > a:first-child span { font-size: 15px; }
}
.lang-menu button {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: .6rem .75rem; border-radius: .55rem; font-size: .9375rem; font-weight: 500; color: var(--ink); text-align: left;
}
.lang-menu button:hover, .lang-menu button:focus-visible { background: var(--surface-muted); color: var(--heading); }
.lang-menu button[aria-current="true"] { color: var(--accent-text); font-weight: 600; }
.lang-menu button[aria-current="true"]::after { content: "✓"; }

/* Hide Google Translate's own banner, tooltip and highlight; keep the page from shifting down */
body > .skiptranslate, iframe.skiptranslate, .goog-te-banner-frame, #goog-gt-tt, .goog-te-balloon-frame,
.VIpgJd-ZVi9od-ORHb-OEVmcd, .VIpgJd-ZVi9od-aZ2wEe-wOHMyf { display: none !important; }
body { top: 0 !important; }
.goog-text-highlight, font[style] { background: none !important; box-shadow: none !important; }
#google_translate_element { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Theme toggle: moon in light mode, sun in dark mode, with a quarter-turn swap */
.theme-toggle svg {
  position: absolute; width: 19px; height: 19px;
  transition: transform .45s var(--ease), opacity .3s var(--ease);
}
.theme-toggle .icon-sun { opacity: 0; transform: rotate(-90deg) scale(.6); }
[data-theme="dark"] .theme-toggle .icon-sun { opacity: 1; transform: none; }
[data-theme="dark"] .theme-toggle .icon-moon { opacity: 0; transform: rotate(90deg) scale(.6); }

/* Hamburger: two bars that cross into an X */
.nav-toggle-bar {
  position: absolute; left: 13px; right: 13px; height: 1.75px; background: currentColor;
  border-radius: 2px; transition: transform .25s var(--ease), top .25s var(--ease);
}
.nav-toggle-bar:nth-child(1) { top: 17px; }
.nav-toggle-bar:nth-child(2) { top: 25px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .3s var(--ease);
}
.mobile-menu > ul { overflow: hidden; min-height: 0; }
.mobile-menu.is-open { grid-template-rows: 1fr; }
.mobile-link {
  display: block; padding: .9rem 0; border-bottom: 1px solid var(--line);
  font-family: "Inter Tight", Inter, sans-serif; font-size: 1.25rem; font-weight: 600; color: var(--heading);
}

/* ---------- Typographic patterns ---------- */
.eyebrow,
.section-index {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-text);
}
.eyebrow::before {
  content: ""; display: inline-block; width: 8px; height: 8px; margin-right: .6rem;
  background: var(--green); border-radius: 2px; vertical-align: 1px;
}
.section { padding: 6rem 0; }
@media (min-width: 1024px) { .section { padding: 8rem 0; } }
.section-title {
  font-family: "Inter Tight", Inter, sans-serif;
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.75rem);
  font-weight: 600; line-height: 1.1; letter-spacing: -.025em;
  color: var(--heading);
}

/* ---------- Hero ---------- */
.hero-chip {
  display: inline-flex; align-items: center; gap: .65rem; max-width: 100%;
  padding: .35rem .85rem .35rem .35rem;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  font-size: .875rem; font-weight: 500; color: var(--ink);
  transition: border-color .2s var(--ease);
}
.hero-chip:hover { border-color: var(--teal); }
.hero-chip > span:nth-child(2) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-chip svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--accent-text); transition: transform .2s var(--ease); }
.hero-chip:hover svg { transform: translateX(3px); }
.hero-chip-tag {
  display: inline-flex; align-items: center; gap: .4rem; flex-shrink: 0;
  padding: .2rem .6rem; border-radius: 999px; background: var(--tint-teal); color: var(--accent-text);
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .6875rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
}
.hero-chip-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }

.hero-title {
  font-family: "Inter Tight", Inter, sans-serif;
  font-size: clamp(2.6rem, 1.5rem + 4.6vw, 5.25rem);
  font-weight: 600; line-height: 1.0; letter-spacing: -.038em;
  color: var(--heading);
  text-wrap: balance;
}
.hero-title-accent { color: var(--accent-text); }

/* The stage: a solid band starts partway behind the screenshots */
.hero-stage { position: relative; }
.hero-stage::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; top: 14rem;
  background: var(--band);
}
@media (min-width: 640px) { .hero-stage::before { top: 12rem; } }
@media (min-width: 1024px) { .hero-stage::before { top: 17rem; } }
.hero-stage > * { position: relative; z-index: 1; }

/* ---------- Hero guided tour ----------
   Phones: only the device in focus is shown (legible at small sizes).
   640px+: dashboard with the phone overlapping its lower-left; the
   device not in focus dims. Images cross-fade; highlight boxes mark
   the area each step talks about. */
.tour-stage { position: relative; }
@media (min-width: 640px) { .tour-stage { padding-left: 4.5rem; } }
@media (min-width: 1024px) { .tour-stage { padding-left: 6rem; } }

.shot-desktop {
  padding: 6px;
  border: 1px solid var(--shot-frame-border); border-radius: 1.1rem; background: var(--shot-frame-bg);
  box-shadow: 0 2px 4px rgba(var(--shadow-rgb), .04), 0 40px 80px -32px rgba(var(--shadow-rgb), .55);
}
.shot-phone {
  width: 72%; max-width: 280px; margin: 0 auto;
  padding: 7px; border-radius: 2rem; background: var(--phone-bezel);
  box-shadow: 0 30px 60px -20px rgba(var(--shadow-rgb), .6), 0 0 0 1px rgba(255, 255, 255, .08) inset;
}
.tour-device { transition: opacity .5s var(--ease), filter .5s var(--ease); translate: 0 var(--py, 0); }
.tour-screen { position: relative; overflow: hidden; }
.shot-desktop .tour-screen { aspect-ratio: 2103 / 1191; border-radius: .8rem; }
.shot-phone .tour-screen { aspect-ratio: 390 / 760; border-radius: 1.55rem; }
.tour-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top;
  opacity: 0; transition: opacity .6s var(--ease);
}
.tour-img.is-active { opacity: 1; }
[data-theme="dark"] .tour-img { filter: brightness(.9) contrast(1.02); }

.tour-mark {
  position: absolute; pointer-events: none;
  border: 2px solid var(--green); border-radius: 12px;
  box-shadow: 0 0 0 4px rgba(60, 203, 127, .2);
  opacity: 0; transform: scale(.985);
  transition: opacity .45s var(--ease) .15s, transform .45s var(--ease) .15s;
}
.tour-mark.is-active { opacity: 1; transform: none; animation: mark-pulse 2.4s ease-in-out .6s infinite; }
@keyframes mark-pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(60, 203, 127, .2); } 50% { box-shadow: 0 0 0 8px rgba(60, 203, 127, .08); } }

/* Small screens: show only the device in focus */
.shot-desktop { display: none; }
.tour-stage[data-focus="desktop"] .shot-desktop { display: block; }
.tour-stage[data-focus="desktop"] .shot-phone { display: none; }
@media (min-width: 640px) {
  .shot-desktop, .tour-stage[data-focus="desktop"] .shot-desktop { display: block; }
  .shot-phone, .tour-stage[data-focus="desktop"] .shot-phone {
    display: block; position: absolute; left: 0; bottom: -3.5rem; width: 22%; max-width: 215px; min-width: 150px; margin: 0;
  }
  /* Device not in focus: muted with a filter (stays solid over the band) */
  .tour-stage[data-focus="phone"] .shot-desktop,
  .tour-stage[data-focus="desktop"] .shot-phone { filter: saturate(.45) brightness(.86); }
  [data-theme="dark"] .tour-stage[data-focus="phone"] .shot-desktop,
  [data-theme="dark"] .tour-stage[data-focus="desktop"] .shot-phone { filter: saturate(.45) brightness(.6); }
}

/* Controls on the band */
.tour-controls { margin-top: 2.25rem; display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .tour-controls { margin-top: 5.5rem; } }
.tour-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.tour-tab {
  position: relative; padding-top: .9rem; text-align: left;
  font-size: .875rem; font-weight: 600; color: rgba(255, 255, 255, .6);
  transition: color .2s var(--ease);
}
.tour-tab:hover, .tour-tab[aria-selected="true"] { color: #fff; }
.tour-tab-num { display: block; margin-bottom: .15rem; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .6875rem; font-weight: 500; color: var(--green); }
@media (min-width: 640px) { .tour-tab-num { display: inline; margin-right: .4rem; } }
.tour-tab-bar { position: absolute; top: 0; left: 0; right: 0; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.tour-tab-bar i { display: block; height: 100%; background: var(--green); transform-origin: left; transform: scaleX(0); }
.tour-tab.is-done .tour-tab-bar i { transform: scaleX(1); }
.tour-tab[aria-selected="true"] .tour-tab-bar i { animation: tour-progress var(--tour-dur, 6s) linear forwards; }
.tour.is-paused .tour-tab[aria-selected="true"] .tour-tab-bar i { animation: none; transform: scaleX(1); }
@keyframes tour-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.tour-caption { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; min-height: 3.4em; }
.tour-panel p { max-width: 62ch; line-height: 1.6; color: rgba(255, 255, 255, .8); animation: panel-in .4s var(--ease); }
.tour-panel strong { font-weight: 600; color: #fff; }
.tour-play {
  display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25); color: #fff; transition: background-color .2s, border-color .2s;
}
.tour-play:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .45); }
.tour-play svg { width: 14px; height: 14px; }
.tour-play .icon-play, .tour.is-paused .tour-play .icon-pause { display: none; }
.tour.is-paused .tour-play .icon-play { display: block; }
.hero-stage :focus-visible { outline-color: var(--green); }

@keyframes panel-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- How it works: animated flow (on the band) ----------
   A dot travels ambulance → hospital → regional hub along a track; each
   step lights up as the dot reaches it. One loop = --fl-dur. */
.flowline { position: relative; --fl-dur: 9s; }
.flowline-steps { display: grid; gap: 2.25rem; }
.flowline-step { position: relative; padding-left: 4rem; animation: fl-txt-1 var(--fl-dur) infinite; }
.flowline-step:nth-child(2) { animation-name: fl-txt-2; }
.flowline-step:nth-child(3) { animation-name: fl-txt-3; }
.flowline-node {
  position: absolute; left: 0; top: 0; z-index: 1;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--band); border: 1.5px solid rgba(255, 255, 255, .25); color: rgba(255, 255, 255, .8);
  animation: fl-on-1 var(--fl-dur) infinite;
}
.flowline-step:nth-child(2) .flowline-node { animation-name: fl-on-2; }
.flowline-step:nth-child(3) .flowline-node { animation-name: fl-on-3; }
.flowline-node svg { width: 22px; height: 22px; }
.flowline-track { display: none; }
.flowline .flow-num { display: block; }

@media (min-width: 768px) {
  .flowline-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
  .flowline-step { padding-left: 0; }
  .flowline-node { position: relative; margin-bottom: 1.4rem; }
  .flowline-track {
    display: block; position: absolute; top: 22px; left: 22px; right: calc((100% - 5rem) / 3 - 22px);
    height: 2px; margin-top: -1px; background: rgba(255, 255, 255, .15); border-radius: 2px;
  }
  .flowline-track::after {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0;
    background: var(--green); opacity: .55; border-radius: 2px;
    animation: fl-fill var(--fl-dur) infinite;
  }
  .flowline-dot {
    position: absolute; top: 50%; left: 0; z-index: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px;
    border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(60, 203, 127, .22);
    animation: fl-dot var(--fl-dur) infinite;
  }
}
/* Only animate while on screen (class set by main.js) */
.flowline *, .flowline-step, .flowline-track::after { animation-play-state: paused; }
.flowline.is-playing *, .flowline.is-playing .flowline-step, .flowline.is-playing .flowline-track::after { animation-play-state: running; }

@keyframes fl-dot {
  0% { left: 0; opacity: 0; } 4% { opacity: 1; } 10% { left: 0; }
  40%, 52% { left: 50%; } 82%, 94% { left: 100%; opacity: 1; } 100% { left: 100%; opacity: 0; }
}
@keyframes fl-fill { 0%, 10% { width: 0; opacity: .55; } 40%, 52% { width: 50%; } 82%, 94% { width: 100%; opacity: .55; } 100% { width: 100%; opacity: 0; } }
@keyframes fl-on-1 {
  0%, 38% { background: var(--green); border-color: var(--green); color: var(--brand-navy); }
  42%, 100% { background: var(--band); border-color: rgba(255, 255, 255, .25); color: rgba(255, 255, 255, .8); }
}
@keyframes fl-on-2 {
  0%, 38%, 84%, 100% { background: var(--band); border-color: rgba(255, 255, 255, .25); color: rgba(255, 255, 255, .8); }
  42%, 80% { background: var(--green); border-color: var(--green); color: var(--brand-navy); }
}
@keyframes fl-on-3 {
  0%, 80%, 100% { background: var(--band); border-color: rgba(255, 255, 255, .25); color: rgba(255, 255, 255, .8); }
  84%, 96% { background: var(--green); border-color: var(--green); color: var(--brand-navy); }
}
@keyframes fl-txt-1 { 0%, 38% { opacity: 1; } 42%, 100% { opacity: .55; } }
@keyframes fl-txt-2 { 0%, 38%, 84%, 100% { opacity: .55; } 42%, 80% { opacity: 1; } }
@keyframes fl-txt-3 { 0%, 80%, 100% { opacity: .55; } 84%, 96% { opacity: 1; } }

.flow-num {
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .75rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--green);
}
.flow-title {
  margin-top: .75rem;
  font-family: "Inter Tight", Inter, sans-serif; font-size: 1.375rem; font-weight: 600;
  letter-spacing: -.015em; color: #fff;
}
.flow-text { margin-top: .5rem; max-width: 34ch; line-height: 1.6; color: rgba(255, 255, 255, .8); }

/* ---------- Impact numbers (hidden until real figures exist) ---------- */
.stats-section { background: var(--surface); }
.stat { padding: 2rem 1rem 2rem 0; }
.stat + .stat { padding-left: 1.25rem; border-left: 1px solid var(--line); }
.stat:nth-child(3) { border-left: 0; padding-left: 0; }
@media (min-width: 1024px) { .stat:nth-child(3) { border-left: 1px solid var(--line); padding-left: 1.25rem; } }
.stat-label { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.stat-value { margin-top: .5rem; font-family: "Inter Tight", Inter, sans-serif; font-size: clamp(2rem, 1.5rem + 2vw, 3rem); font-weight: 600; letter-spacing: -.03em; color: var(--heading); font-variant-numeric: tabular-nums; }
.stat-value small { margin-left: .2rem; font-size: .4em; font-weight: 500; color: var(--muted); letter-spacing: 0; }

/* ---------- Partners (hidden until permission is given) ---------- */
.partner-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2.5rem; }
.partner-slot {
  display: grid; place-items: center; width: 150px; height: 52px;
  border: 1px dashed var(--line-strong); border-radius: .75rem;
  font-size: .75rem; color: var(--muted);
}
.partner-logo { height: 34px; width: auto; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.partner-logo:hover { filter: none; opacity: 1; }
[data-theme="dark"] .partner-logo { filter: grayscale(1) invert(1) brightness(1.4); }

/* ---------- Value cards ---------- */
.value-card { background: var(--surface); padding: 2rem 1.75rem 2.25rem; }
.value-num {
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .8125rem; font-weight: 500;
  color: var(--accent-text);
}
.value-title {
  margin-top: 2.5rem;
  font-family: "Inter Tight", Inter, sans-serif; font-size: 1.25rem; font-weight: 600;
  letter-spacing: -.015em; color: var(--heading);
}
.value-text { margin-top: .6rem; line-height: 1.6; color: var(--muted); }

/* ---------- Product cards ---------- */
.accent-teal  { --accent: var(--accent-teal);  --accent-ink: var(--accent-teal-ink);  --accent-soft: var(--accent-teal-soft); }
.accent-blue  { --accent: var(--accent-blue);  --accent-ink: var(--accent-blue-ink);  --accent-soft: var(--accent-blue-soft); }
.accent-green { --accent: var(--accent-green); --accent-ink: var(--accent-green-ink); --accent-soft: var(--accent-green-soft); }

.product-card {
  position: relative; display: flex; flex-direction: column;
  padding: 2rem 1.75rem 1.75rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 1rem;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.product-card::before {
  content: ""; position: absolute; left: 1.75rem; top: -1px; width: 48px; height: 3px;
  background: var(--accent); border-radius: 0 0 3px 3px;
  transition: width .35s var(--ease);
}
.product-card:hover { border-color: var(--line-strong); box-shadow: 0 18px 40px -20px rgba(var(--shadow-rgb), .3); transform: translateY(-2px); }
.product-card:hover::before { width: calc(100% - 3.5rem); }

.product-badge {
  position: absolute; top: 2rem; right: 1.75rem;
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .25rem .6rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink);
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .6875rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
}
.product-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.product-glyph {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: .875rem;
  background: var(--accent-soft); color: var(--accent-ink);
}
.product-glyph svg { width: 28px; height: 28px; }
.product-family {
  margin-top: 1.75rem;
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .75rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink);
}
.product-name {
  margin-top: .25rem;
  font-family: "Inter Tight", Inter, sans-serif; font-size: 1.875rem; font-weight: 600;
  letter-spacing: -.025em; line-height: 1.1; color: var(--ink);
}
.product-tagline { margin-top: .5rem; font-weight: 500; color: var(--heading); }
.product-desc { margin-top: 1rem; line-height: 1.65; color: var(--muted); }
.product-features { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); display: grid; gap: .65rem; }
.product-features li { position: relative; padding-left: 1.4rem; font-size: .9375rem; color: var(--ink); }
.product-features li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px;
  border-radius: 2px; background: var(--accent);
}
.product-more {
  margin-top: auto; align-self: flex-start;
  display: inline-flex; align-items: center; gap: .4rem;
  padding-top: 1.75rem;
  font-weight: 600; color: var(--accent-ink);
}
.product-more span[aria-hidden] { transition: transform .2s var(--ease); }
.product-more:hover span[aria-hidden] { transform: translateX(4px); }

/* ---------- Product modal ---------- */
.product-modal {
  width: min(640px, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 0; border: 1px solid var(--line); border-radius: 1.25rem; background: var(--surface); color: var(--ink);
  box-shadow: 0 30px 80px -20px rgba(var(--shadow-rgb), .45);
}
.product-modal::backdrop { background: rgba(7, 20, 32, .6); }
.product-modal[open] { animation: modal-in .28s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.modal-bar { height: 4px; background: var(--modal-accent, var(--teal)); }
.modal-close {
  display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px;
  border-radius: .65rem; border: 1px solid var(--line); color: var(--heading);
}
.modal-close:hover { background: var(--surface-muted); }
.modal-close svg { width: 16px; height: 16px; }
.modal-body { line-height: 1.65; color: var(--muted); }
.modal-body h4 {
  margin: 1.75rem 0 .75rem;
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .75rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--heading);
}
.modal-body ul { display: grid; gap: .55rem; }
.modal-body li { position: relative; padding-left: 1.4rem; color: var(--ink); }
.modal-body li::before {
  content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 2px;
  background: var(--modal-accent, var(--teal));
}

/* ---------- Why us ---------- */
.why-item { border-top: 1px solid rgba(255, 255, 255, .2); padding-top: 1.25rem; }
.why-num { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .8125rem; color: var(--green); }
.why-title {
  margin-top: .75rem;
  font-family: "Inter Tight", Inter, sans-serif; font-size: 1.25rem; font-weight: 600; letter-spacing: -.015em; color: #fff;
}
.why-text { margin-top: .5rem; line-height: 1.6; color: rgba(255, 255, 255, .78); }

/* ---------- Team ----------
   Two cards per row on large screens (a lone last card is centred); each is horizontal from 640px
   (4:5 portrait left, summary right). Full bios open in #profile-modal. */
.team-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: 1.25rem;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.team-card:hover { border-color: var(--line-strong); box-shadow: 0 24px 48px -28px rgba(var(--shadow-rgb), .35); }
.team-portrait { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-muted); }
.team-portrait img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%;
  transition: transform .8s var(--ease);
}
.team-card:hover .team-portrait img { transform: scale(1.03); }
[data-theme="dark"] .team-portrait img,
[data-theme="dark"] .profile-portrait img { filter: brightness(.94); }
.team-body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 1.5rem 1.5rem 1.75rem; }
.team-body h3 { font-size: 1.375rem; }
@media (min-width: 640px) {
  .team-card { flex-direction: row; }
  .team-portrait { flex: 0 0 210px; aspect-ratio: 4 / 5; align-self: stretch; }
  .team-portrait img { object-position: top; }
  .team-body { padding: 1.75rem; }
}
/* Actions pinned to the bottom so both cards line up */
.team-actions { display: flex; align-items: center; gap: .5rem; margin-top: auto; padding-top: 1.5rem; }
.team-actions .team-link { margin-top: 0; }
.team-link span[aria-hidden] { transition: transform .2s var(--ease); }
.team-link:hover span[aria-hidden] { transform: translateX(3px); }

/* Full profile pop-up */
.profile-modal {
  width: min(880px, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem);
  padding: 0; border: 1px solid var(--line); border-radius: 1.25rem; background: var(--surface); color: var(--ink);
  box-shadow: 0 30px 80px -20px rgba(var(--shadow-rgb), .5); overflow: hidden;
}
.profile-modal::backdrop { background: rgba(7, 20, 32, .65); }
.profile-modal[open] { animation: modal-in .28s var(--ease); }
.profile-grid { display: block; max-height: calc(100dvh - 2rem); overflow-y: auto; }
.profile-portrait { margin: 0; height: 260px; overflow: hidden; background: var(--surface-muted); }
.profile-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.profile-content { position: relative; padding: 1.75rem 1.5rem 2rem; }
.profile-close { position: absolute; top: 1rem; right: 1rem; }
.profile-creds { margin-top: .6rem; padding-right: 2.5rem; font-size: .9375rem; font-weight: 500; color: var(--ink); }
.profile-bio { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.profile-bio p { line-height: 1.75; color: var(--muted); }
.profile-bio p + p { margin-top: 1rem; }
@media (min-width: 720px) {
  .profile-grid { display: grid; grid-template-columns: 320px 1fr; overflow: hidden; }
  .profile-portrait { height: auto; min-height: 100%; }
  .profile-portrait img { object-position: top; }
  .profile-content { padding: 2.5rem 2.5rem 2.25rem; overflow-y: auto; max-height: calc(100dvh - 2rem); }
}
.team-link { margin-top: auto; }
.team-link {
  margin-top: 1.5rem; display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem .9rem; border: 1px solid var(--line); border-radius: .65rem;
  font-size: .875rem; font-weight: 600; color: var(--heading);
  transition: border-color .2s, background-color .2s;
}
.team-link:hover { border-color: var(--heading); background: var(--surface-muted); }

/* ---------- Contact ---------- */
.contact-row { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding: 1rem 0; }
.contact-label {
  padding-top: .2rem;
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .6875rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}
.contact-value { font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.contact-value.link { color: var(--link); }

.social-btn {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: .75rem;
  border: 1px solid var(--line); color: var(--heading); background: var(--surface);
  transition: background-color .2s, color .2s, border-color .2s;
}
.social-btn svg { width: 18px; height: 18px; }
.social-btn:hover { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-text); }

/* ---------- Form ---------- */
.field-label { display: block; margin-bottom: .45rem; font-size: .875rem; font-weight: 600; color: var(--ink); }
.req { color: var(--danger); }
.field-input {
  width: 100%; min-height: 48px; padding: .75rem .95rem;
  background: var(--field-bg); border: 1px solid var(--field-border); border-radius: .75rem;
  font-size: 1rem; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field-input:hover { border-color: var(--field-hover); }
.field-input:focus { outline: none; border-color: var(--field-focus); box-shadow: 0 0 0 3px var(--focus-ring); }
.field.has-error .field-input { border-color: var(--danger); }
.field.has-error .field-input:focus { box-shadow: 0 0 0 3px var(--danger-ring); }
.field-error { min-height: 0; margin-top: .4rem; font-size: .8125rem; font-weight: 500; color: var(--danger); }
.field-error:empty { display: none; }
select.field-input option { background: var(--surface); color: var(--ink); }

.form-status { margin-top: 1.25rem; padding: 1rem 1.1rem; border-radius: .75rem; font-weight: 500; }
.form-status.is-success { background: var(--ok-bg); color: var(--ok-text); border: 1px solid var(--ok-border); }
.form-status.is-error { background: var(--err-bg); color: var(--err-text); border: 1px solid var(--err-border); }

/* ---------- Footer ---------- */
[data-theme="dark"] footer { border-top: 1px solid var(--line); }
.footer-heading {
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .6875rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .6);
}
.footer-link { color: rgba(255, 255, 255, .85); transition: color .2s; }
.footer-link:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
footer :focus-visible { outline-color: var(--green); }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40;
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: .875rem;
  background: var(--btn-bg); color: var(--btn-text);
  box-shadow: 0 10px 24px -10px rgba(var(--shadow-rgb), .5);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s, background-color .2s;
}
.back-to-top svg { width: 18px; height: 18px; }
.back-to-top:hover { background: var(--btn-hover); }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* ==========================================================================
   Interactive components
   ========================================================================== */

/* ---------- Navbar: sliding indicator + reading progress ---------- */
.nav-list { position: relative; }
.nav-indicator {
  position: absolute; left: 0; bottom: .2rem; height: 2px; width: var(--w, 0);
  background: var(--teal); border-radius: 2px; pointer-events: none;
  transform: translateX(var(--x, 0)); opacity: 0;
  transition: transform .4s var(--ease), width .4s var(--ease), opacity .2s;
}
.nav-list.has-active .nav-indicator { opacity: 1; }
.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: var(--teal); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* ---------- Headline: words rise in on load ---------- */
.hero-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.hero-title .w > span {
  display: inline-block; transform: translateY(105%);
  animation: word-up .75s var(--ease) forwards; animation-delay: calc(var(--i) * 45ms + 120ms);
}
@keyframes word-up { to { transform: none; } }

/* ---------- Product cards: spotlight border, tabs, thumbnails ---------- */
.product-card[data-spotlight]::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  border: 1.5px solid var(--accent); opacity: 0; transition: opacity .3s var(--ease);
  -webkit-mask: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), #000, transparent 70%);
          mask: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), #000, transparent 70%);
}
.product-card[data-spotlight]:hover::after { opacity: 1; }
.product-badge.is-dev { background: var(--surface-muted); color: var(--muted); }
.product-badge.is-dev::before { background: #E59A3B; }

.card-tabs { margin-top: 1.25rem; }
.card-tablist { display: flex; gap: 1.1rem; border-bottom: 1px solid var(--line); }
.card-tablist [role="tab"] {
  position: relative; padding: .55rem 0; font-size: .875rem; font-weight: 600; color: var(--muted);
  transition: color .2s var(--ease);
}
.card-tablist [role="tab"]:hover, .card-tablist [role="tab"][aria-selected="true"] { color: var(--ink); }
.card-tablist [role="tab"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px;
  background: var(--accent); transform: scaleX(0); transition: transform .3s var(--ease);
}
.card-tablist [role="tab"][aria-selected="true"]::after { transform: scaleX(1); }
.card-panel { padding-top: 1.1rem; animation: panel-in .35s var(--ease); }
.card-panel .product-desc { margin-top: 0; }
.card-panel .product-features { margin-top: 1.25rem; }

.thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: 1rem; }
.thumbs li:first-child { grid-column: span 2; }
.thumb {
  display: block; width: 100%; text-align: left; overflow: hidden;
  border: 1px solid var(--line); border-radius: .7rem; background: var(--surface-muted);
  transition: border-color .2s var(--ease);
}
.thumb:hover { border-color: var(--accent); }
.thumb img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.thumb span { display: block; padding: .45rem .65rem; font-size: .75rem; font-weight: 600; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem;
  padding: 1.3rem 0; cursor: pointer; list-style: none;
  font-family: "Inter Tight", Inter, sans-serif; font-size: 1.125rem; font-weight: 600; letter-spacing: -.01em;
  color: var(--heading);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex-shrink: 0; width: 1.5rem; text-align: center;
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 1.35rem; font-weight: 400; line-height: 1.2;
  color: var(--accent-text); transition: transform .3s var(--ease);
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent-text); }
.faq-body { overflow: hidden; }
.faq-body p { padding-bottom: 1.4rem; max-width: 62ch; line-height: 1.7; color: var(--muted); }

/* ---------- Contact: card, segmented tabs, smart fields, booking ---------- */
.contact-card { padding: 1.5rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); }
@media (min-width: 640px) { .contact-card { padding: 2.25rem; } }
.seg { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: .85rem; background: var(--surface-muted); }
.seg [role="tab"] { padding: .5rem 1rem; border-radius: .6rem; font-size: .875rem; font-weight: 600; color: var(--muted); transition: background-color .2s, color .2s; }
.seg [role="tab"]:hover { color: var(--heading); }
.seg [role="tab"][aria-selected="true"] { background: var(--surface); color: var(--heading); box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(var(--shadow-rgb), .08); }
[role="tabpanel"]:not([hidden]) { animation: panel-in .35s var(--ease); }

.select-chevron { position: absolute; right: 1rem; top: 50%; width: 1rem; height: 1rem; transform: translateY(-50%); color: var(--muted); pointer-events: none; }

.cond {
  margin: 0; padding: 1.25rem; min-width: 0;
  border: 0; border-left: 3px solid var(--teal); border-radius: .85rem; background: var(--surface-muted);
}
.cond:not([hidden]) { animation: panel-in .35s var(--ease); }
.cond-legend {
  float: left; width: 100%; margin-bottom: 1rem;
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .6875rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent-text);
}
.cond-legend + * { clear: both; }

.booking iframe { display: block; width: 100%; height: 680px; border: 0; border-radius: .75rem; background: var(--surface); }

/* ---------- WhatsApp quick chat (hidden on large screens) ---------- */
.wa-fab {
  position: fixed; left: 1rem; bottom: 1.25rem; z-index: 40;
  display: inline-flex; align-items: center; gap: .5rem; height: 46px; padding: 0 1.05rem 0 .85rem;
  border-radius: 999px; background: var(--green); color: var(--brand-navy); font-size: .9rem; font-weight: 600;
  box-shadow: 0 10px 24px -10px rgba(var(--shadow-rgb), .5);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s, background-color .2s;
}
.wa-fab svg { width: 20px; height: 20px; }
.wa-fab:hover { background: var(--green-hover); }
.wa-fab.is-visible { opacity: 1; visibility: visible; transform: none; }
@media (min-width: 1024px) { .wa-fab { display: none; } }

/* ---------- Screenshot lightbox ---------- */
.lightbox {
  width: min(1200px, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem);
  padding: 0; border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); color: var(--ink);
  box-shadow: 0 30px 80px -20px rgba(var(--shadow-rgb), .5);
}
.lightbox::backdrop { background: rgba(7, 20, 32, .75); }
.lightbox[open] { animation: modal-in .28s var(--ease); }
.lightbox figure { margin: 0; }
.lightbox img { display: block; width: auto; max-width: 100%; max-height: calc(100dvh - 7rem); margin: 0 auto; background: var(--surface-muted); }
.lightbox figcaption { padding: .9rem 4rem .9rem 1.1rem; font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); }
.lightbox-close { position: absolute; top: .75rem; right: .75rem; background: var(--surface); }

/* ---------- Subpages (Connexus, Insights) ---------- */
.page-hero { padding: calc(72px + 4rem) 0 4rem; }
@media (min-width: 1024px) { .page-hero { padding: calc(72px + 6rem) 0 5rem; } }
.role-card { padding: 1.75rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); }
.role-card .role-shot { margin: -1.75rem -1.75rem 1.5rem; border-bottom: 1px solid var(--line); border-radius: 1rem 1rem 0 0; overflow: hidden; background: var(--surface-muted); }
.role-card .role-shot img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.check-list { display: grid; gap: .7rem; }
.check-list li { position: relative; padding-left: 1.6rem; color: var(--ink); line-height: 1.55; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 14px; height: 14px; border-radius: 4px;
  background: var(--tint-teal); box-shadow: inset 0 0 0 1.5px var(--accent-text);
}
.check-list li::after {
  content: ""; position: absolute; left: 4px; top: calc(.3em + 3px); width: 6px; height: 4px;
  border-left: 1.5px solid var(--accent-text); border-bottom: 1.5px solid var(--accent-text); transform: rotate(-45deg);
}
.empty-state { padding: 3rem 1.5rem; border: 1px dashed var(--line-strong); border-radius: 1rem; text-align: center; background: var(--surface); }
.prose { max-width: 68ch; }
.prose p { margin-top: 1.25rem; line-height: 1.75; color: var(--ink); }
.prose h2 { margin-top: 2.5rem; font-family: "Inter Tight", Inter, sans-serif; font-size: 1.6rem; font-weight: 600; letter-spacing: -.02em; color: var(--heading); }
.prose ul { margin-top: 1rem; padding-left: 1.25rem; list-style: disc; }
.prose li { margin-top: .4rem; line-height: 1.7; }
.prose a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }


/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero-title .w > span { transform: none; }
  .flowline-step { opacity: 1; }
}
