:root {
  color-scheme: light;
  --ink: #0e1c27;
  --heading: #0e1c27;
  --muted: #52616c;
  --canvas: #f4f7f8;
  --paper: #e7eef2;
  --surface: #ffffff;
  --surface-hover: #f5fafc;
  --line: rgba(7, 30, 44, 0.1);
  --line-strong: rgba(7, 30, 44, 0.22);
  --brand: #0e7494;
  --brand-deep: #0c5f78;
  --grid: rgba(7, 30, 44, 0.06);
  --header-bg: rgba(244, 247, 248, 0.82);
  --header-bg-scrolled: rgba(255, 255, 255, 0.94);
  --nav: #24323c;
  --nav-hover-bg: rgba(14, 116, 148, 0.08);
  --nav-hover: #0c5f78;
  --logo-filter: none;
  --btn-bg: #0e1c27;
  --btn-ink: #ffffff;
  --btn-hover: #243846;
  --field: #f3f6f8;
  --track: rgba(7, 30, 44, 0.16);
  --menu: #ffffff;
  --link-hover: #0c5f78;
  --footer: #5c6d7a;
  --footer-link: #3a4d5a;
  --danger: #b42318;
  --avatar: #d5e2ea;
  --shadow: 0 1px 2px rgba(7, 30, 44, 0.04), 0 14px 34px rgba(7, 30, 44, 0.06);
  --radius: 22px;
  --radius-sm: 14px;
  --header: 68px;
  --max: 1180px;
  --stage: 1280px;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ink: #f4f7f8;
    --heading: #ffffff;
    --muted: #9aa8b3;
    --canvas: #07080b;
    --paper: #0c1014;
    --surface: #12171d;
    --surface-hover: #171d24;
    --line: rgba(255, 255, 255, 0.1);
    --line-strong: rgba(255, 255, 255, 0.28);
    --brand: #3ec4ef;
    --brand-deep: #8fdfff;
    --grid: rgba(255, 255, 255, 0.045);
    --header-bg: rgba(7, 8, 11, 0.72);
    --header-bg-scrolled: rgba(7, 8, 11, 0.92);
    --nav: #c5d0d6;
    --nav-hover-bg: rgba(255, 255, 255, 0.08);
    --nav-hover: #ffffff;
    --logo-filter: brightness(0) invert(1);
    --btn-bg: #ffffff;
    --btn-ink: #0b0d10;
    --btn-hover: #e8eef2;
    --field: rgba(0, 0, 0, 0.28);
    --track: rgba(255, 255, 255, 0.16);
    --menu: #10141a;
    --link-hover: #ffffff;
    --footer: #8d9ba6;
    --footer-link: #b7c4cd;
    --danger: #ff9b9b;
    --avatar: #1a222a;
    --shadow: none;
  }
}

[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f4f7f8;
  --heading: #ffffff;
  --muted: #9aa8b3;
  --canvas: #07080b;
  --paper: #0c1014;
  --surface: #12171d;
  --surface-hover: #171d24;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.28);
  --brand: #3ec4ef;
  --brand-deep: #8fdfff;
  --grid: rgba(255, 255, 255, 0.045);
  --header-bg: rgba(7, 8, 11, 0.72);
  --header-bg-scrolled: rgba(7, 8, 11, 0.92);
  --nav: #c5d0d6;
  --nav-hover-bg: rgba(255, 255, 255, 0.08);
  --nav-hover: #ffffff;
  --logo-filter: brightness(0) invert(1);
  --btn-bg: #ffffff;
  --btn-ink: #0b0d10;
  --btn-hover: #e8eef2;
  --field: rgba(0, 0, 0, 0.28);
  --track: rgba(255, 255, 255, 0.16);
  --menu: #10141a;
  --link-hover: #ffffff;
  --footer: #8d9ba6;
  --footer-link: #b7c4cd;
  --danger: #ff9b9b;
  --avatar: #1a222a;
  --shadow: none;
}

[data-theme="light"] {
  color-scheme: light;
  --ink: #0e1c27;
  --heading: #0e1c27;
  --muted: #52616c;
  --canvas: #f4f7f8;
  --paper: #e7eef2;
  --surface: #ffffff;
  --surface-hover: #f5fafc;
  --line: rgba(7, 30, 44, 0.1);
  --line-strong: rgba(7, 30, 44, 0.22);
  --brand: #0e7494;
  --brand-deep: #0c5f78;
  --grid: rgba(7, 30, 44, 0.06);
  --header-bg: rgba(244, 247, 248, 0.82);
  --header-bg-scrolled: rgba(255, 255, 255, 0.94);
  --nav: #24323c;
  --nav-hover-bg: rgba(14, 116, 148, 0.08);
  --nav-hover: #0c5f78;
  --logo-filter: none;
  --btn-bg: #0e1c27;
  --btn-ink: #ffffff;
  --btn-hover: #243846;
  --field: #f3f6f8;
  --track: rgba(7, 30, 44, 0.16);
  --menu: #ffffff;
  --link-hover: #0c5f78;
  --footer: #5c6d7a;
  --footer-link: #3a4d5a;
  --danger: #b42318;
  --avatar: #d5e2ea;
  --shadow: 0 1px 2px rgba(7, 30, 44, 0.04), 0 14px 34px rgba(7, 30, 44, 0.06);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background-color: var(--canvas);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 88px 88px;
  background-position: center top;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(62, 196, 239, 0.35);
  color: white;
}

img { max-width: 100%; display: block; }

a { color: var(--brand-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--link-hover); }

h1, h2, h3, h4 {
  font-weight: 560;
  letter-spacing: -0.045em;
  line-height: 1.05;
  margin: 0 0 0.45em;
  color: var(--heading);
}

p { margin: 0 0 1em; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--heading);
  color: var(--canvas);
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header);
  display: flex;
  align-items: center;
  background: var(--header-bg);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.site-header.scrolled {
  background: var(--header-bg-scrolled);
  border-bottom-color: var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo img {
  height: 30px;
  width: auto;
  filter: var(--logo-filter);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.site-nav a:not(.btn) {
  color: var(--nav);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  padding: 8px 12px;
  border-radius: 999px;
}
.site-nav a:not(.btn):hover,
.site-nav a[aria-current="page"] {
  background: var(--nav-hover-bg);
  color: var(--nav-hover);
}

.nav-drop { position: relative; }
.nav-drop-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  color: var(--nav);
  font: inherit;
  font-weight: 500;
  font-size: 0.92rem;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.nav-drop-btn svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.4;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-drop-btn:hover,
.nav-drop-btn[aria-expanded="true"],
.nav-drop.is-current .nav-drop-btn {
  background: var(--nav-hover-bg);
  color: var(--nav-hover);
}
.nav-drop-btn:hover svg,
.nav-drop-btn[aria-expanded="true"] svg { opacity: 1; }
.nav-drop-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-drop-menu {
  display: none;
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  translate: -50% 0;
  width: 340px;
  padding: 8px;
  background: var(--menu);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(7, 30, 44, 0.08), 0 24px 48px rgba(7, 30, 44, 0.12);
  z-index: 40;
}
.nav-drop-menu.open { display: grid; gap: 2px; }
.site-nav .nav-drop-menu a {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--heading);
  font-weight: 600;
  font-size: 0.94rem;
  line-height: 1.25;
}
.site-nav .nav-drop-menu a span {
  font-weight: 450;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--muted);
}
.site-nav .nav-drop-menu a:hover,
.site-nav .nav-drop-menu a[aria-current="page"] {
  background: var(--surface-hover);
  color: var(--heading);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .nav-drop-menu {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  }
}
[data-theme="dark"] .nav-drop-menu {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 12px;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 4px auto;
  background: var(--ink);
  border-radius: 2px;
}

.theme-toggle {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
}
.theme-choice {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  color: inherit;
  cursor: pointer;
}
.theme-choice[aria-pressed="true"] {
  color: var(--ink);
}
.theme-choice:hover {
  color: var(--ink);
}
.theme-choice:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.theme-slash {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1;
  user-select: none;
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 13px 20px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1;
  letter-spacing: -0.01em;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-ink);
  box-shadow: none;
}
.btn-primary:hover {
  color: var(--btn-ink);
  background: var(--btn-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: none;
}
.btn-ghost:hover {
  background: var(--heading);
  color: var(--canvas);
  border-color: var(--heading);
}

.hero .btn-primary,
.page-hero .btn-primary,
.band .btn-light,
.band .btn-primary {
  background: #fff;
  color: #0b0d10;
}
.hero .btn-primary:hover,
.page-hero .btn-primary:hover,
.band .btn-light:hover,
.band .btn-primary:hover {
  background: #e8eef2;
  color: #0b0d10;
}
.hero .btn-ghost,
.page-hero .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  background: transparent;
}
.hero .btn-ghost:hover,
.page-hero .btn-ghost:hover {
  background: #fff;
  color: #0b0d10;
  border-color: #fff;
}

.btn-light {
  background: white;
  color: #0b0d10;
}
.btn-light:hover {
  color: #0b0d10;
  background: #e8eef2;
}

.header-cta,
.nav-cta {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  box-shadow: none;
  padding: 10px 16px;
  font-size: 0.9rem;
}
.header-cta:hover,
.nav-cta:hover {
  background: var(--heading);
  color: var(--canvas);
  border-color: var(--heading);
}
.nav-cta { display: none; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.hero,
.page-hero {
  position: relative;
  background: transparent;
  color: white;
  padding: 10px 0 8px;
  overflow: visible;
}

.hero .wrap,
.page-hero .wrap {
  position: relative;
  z-index: 1;
  width: min(var(--stage), calc(100% - 28px));
  overflow: hidden;
  border-radius: 32px;
  padding: 72px 64px;
  background:
    radial-gradient(80% 42% at 50% 112%, rgba(190, 236, 250, 0.38), transparent 60%),
    linear-gradient(180deg, #07485c 0%, #0c6a88 62%, #0f7c9e 100%);
}

.hero .wrap::before,
.page-hero .wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.28) 0.65px, transparent 0.75px);
  background-size: 7px 7px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 68%);
  pointer-events: none;
  transform: translate3d(0, var(--parallax-a, 0px), 0);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero h1,
.page-hero h1 { color: white; }

.hero h1 em,
h1 em {
  font-style: normal;
  color: inherit;
}

.hero .lead,
.page-hero .lead { color: rgba(255, 255, 255, 0.86); }

.hero .kicker,
.page-hero .kicker { color: white; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: white;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 6px 12px 6px 10px;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.eyebrow i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: white;
  display: inline-block;
}

h1 {
  font-size: clamp(2.7rem, 4.6vw, 4.35rem);
  font-weight: 560;
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 40rem;
  font-weight: 450;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }

.hero-panel { position: relative; z-index: 1; }

.hero-panel img {
  border-radius: 18px;
  width: 100%;
  height: auto;
  box-shadow: 0 24px 60px rgba(4, 30, 42, 0.28);
  outline: 1px solid rgba(255, 255, 255, 0.35);
}

.hero-shot-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero-shot-light { display: none; }
  :root:not([data-theme="light"]) .hero-shot-dark { display: block; }
}
[data-theme="dark"] .hero-shot-light { display: none; }
[data-theme="dark"] .hero-shot-dark { display: block; }
[data-theme="light"] .hero-shot-light { display: block; }
[data-theme="light"] .hero-shot-dark { display: none; }

.float-card {
  position: absolute;
  background: white;
  color: #0b0d10;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  min-width: 140px;
}
.float-card strong { display: block; font-size: 1.15rem; letter-spacing: -0.03em; color: #0b0d10; }
.float-card span { color: #52616b; font-size: 0.78rem; font-weight: 700; }
.float-a { left: 22px; bottom: 26px; }
.float-b { right: 22px; top: 22px; }

.hero + section {
  position: relative;
  z-index: 2;
  padding-top: 36px;
  padding-bottom: 12px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.stat {
  background: none;
  border: none;
  border-radius: 0;
  padding: 28px 32px 8px 0;
  box-shadow: none;
}
.stat + .stat { padding-left: 32px; border-left: 1px solid var(--line); }

.stat b {
  display: block;
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  letter-spacing: -0.055em;
  font-weight: 520;
  color: var(--heading);
  line-height: 1;
  margin-bottom: 10px;
}
.stat span {
  color: var(--muted);
  font-weight: 500;
  display: block;
  max-width: 28ch;
}

section { padding: 84px 0; }

.split:has(details) > div:last-child {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 22px 14px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: end;
  margin-bottom: 32px;
}
.section-head p { max-width: 34rem; color: var(--muted); margin: 0; }

.kicker {
  color: var(--brand);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  margin-bottom: 10px;
}

h2 { font-size: clamp(2rem, 3.2vw, 2.85rem); font-weight: 540; }

.grid-3, .grid-2 { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  height: 100%;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}
.card:hover {
  border-color: rgba(62, 196, 239, 0.5);
  background: var(--surface-hover);
}

.card h3 { font-size: 1.22rem; margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; color: var(--muted); }

.icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(62, 196, 239, 0.12);
  color: var(--brand);
  margin-bottom: 16px;
}
.icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; }

.paper {
  background: var(--paper);
  border-block: 1px solid var(--line);
}
#verticals,
#results { scroll-margin-top: calc(var(--header) + 16px); }

.steps { counter-reset: step; display: grid; gap: 12px; }
.steps-row { grid-template-columns: repeat(3, 1fr); }
.vert-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.vert-grid li {
  margin: 0;
  padding: 22px 24px;
  background: var(--surface);
}
.vert-grid strong { display: block; margin-bottom: 6px; }
.vert-grid span { color: var(--muted); font-size: 0.92rem; }
.studies {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}
.studies .study { margin: 0; }
.studies .study h3 { font-size: 1.2rem; }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--brand);
  font-size: 1.15rem;
}
.step h3 { margin-bottom: 6px; font-size: 1.12rem; }
.step p { margin: 0; color: var(--muted); }

.quotes { display: grid; grid-template-columns: 1.15fr 0.85fr 0.85fr; gap: 16px; }
.quote {
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(62, 196, 239, 0.22), transparent 50%),
    #10161c;
  color: white;
  border: 1px solid rgba(62, 196, 239, 0.28);
  border-radius: var(--radius);
  padding: 28px;
  margin: 0;
}
.quote p { font-size: 1.2rem; letter-spacing: -0.03em; font-weight: 500; line-height: 1.4; }
.quote footer { color: var(--brand); font-weight: 650; }
.quote.light {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}
.quote.light footer { color: var(--brand); }

.team {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.person {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.person img,
.person .avatar {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--avatar);
  transition: transform 0.45s ease;
}
.person:hover img { transform: scale(1.045); }
.person .avatar {
  display: grid;
  place-items: center;
  color: white;
  font-size: 2.6rem;
  font-weight: 560;
  letter-spacing: -0.04em;
}
.person div { padding: 14px 16px 16px; }
.person strong { display: block; letter-spacing: -0.03em; }
.person span { color: var(--muted); font-size: 0.9rem; font-weight: 550; }

.band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(50% 80% at 100% 130%, rgba(186, 240, 255, 0.35), transparent 50%),
    linear-gradient(115deg, #084e64 0%, #0d7596 58%, #1494b8 100%);
  color: white;
  border-radius: 28px;
  padding: 48px 52px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}
.band h2 { color: white; }
.band p { color: rgba(255, 255, 255, 0.88); max-width: 38rem; margin: 0; }
.band-actions { display: flex; flex-direction: column; align-items: stretch; gap: 10px; flex: none; }
.band-actions .btn { width: 8.75rem; }
.band .btn-light:last-child {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.band .btn-light:last-child:hover {
  background: white;
  color: #0b0d10;
}

.page-hero h1 { font-size: clamp(2.4rem, 4vw, 3.6rem); max-width: 16ch; }
.page-hero .lead { margin-bottom: 0; }

.metrics { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.metrics span {
  background: rgba(62, 196, 239, 0.12);
  color: var(--brand-deep);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.study + .study { margin-top: 16px; }
.studies .study,
.studies .study + .study { margin: 0; }
.studies .metrics { flex-direction: column; align-items: flex-start; }
.study h3 { font-size: 1.45rem; }

details.faq {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
details.faq summary {
  cursor: pointer;
  font-weight: 600;
  letter-spacing: -0.02em;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--heading);
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--brand); font-weight: 600; }
details.faq[open] summary::after { content: "–"; }
details.faq p { color: var(--muted); margin: 10px 0 4px; }

.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.9rem; color: var(--heading); }
.field input,
.field select,
.field textarea {
  font: inherit;
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--field);
  border-radius: 12px;
  padding: 12px 14px;
  width: 100%;
  color-scheme: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(62, 196, 239, 0.16);
}
.form-note { color: var(--muted); font-size: 0.92rem; }
.form-error { color: var(--danger); font-weight: 650; min-height: 1.2em; }

.calc-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
  align-items: start;
}
.slider {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}
.slider-num {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1px;
  min-width: 84px;
  width: max-content;
  justify-self: end;
  height: 40px;
  padding: 0 12px;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--brand-deep);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.slider-num input {
  width: 1.6ch;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--brand-deep);
  font: inherit;
  font-weight: 700;
  text-align: right;
  border-radius: 0;
  field-sizing: content;
}
.slider-num input:focus {
  outline: none;
  background: transparent;
  box-shadow: none;
}
.slider-num:focus-within {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--brand);
}
.slider-num input::-webkit-outer-spin-button,
.slider-num input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.slider-num input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 28px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}
input[type="range"]:focus {
  outline: none;
  background: transparent;
  box-shadow: none;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--brand) var(--fill, 0%), var(--track) var(--fill, 0%));
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -7px;
  border-radius: 50%;
  border: none;
  background: white;
  box-shadow: 0 0 0 4px rgba(62, 196, 239, 0.25);
}
input[type="range"]:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 5px rgba(62, 196, 239, 0.4);
}
input[type="range"]::-moz-range-track {
  height: 4px;
  border: none;
  border-radius: 999px;
  background: var(--track);
}
input[type="range"]::-moz-range-progress {
  height: 4px;
  border-radius: 999px;
  background: var(--brand);
}
input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: none;
  background: white;
  box-shadow: 0 0 0 4px rgba(62, 196, 239, 0.25);
}
.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.result {
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
}
.result b { display: block; font-size: 1.55rem; letter-spacing: -0.04em; color: var(--heading); }
.result span { color: var(--muted); font-size: 0.86rem; font-weight: 600; }
.result.wide {
  grid-column: 1 / -1;
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(255, 255, 255, 0.28), transparent 46%),
    linear-gradient(145deg, #0c6784, #1496bf);
  color: white;
  border-color: transparent;
}
.result.wide b,
.result.wide span { color: white; }

.prose {
  max-width: 760px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 40px 16px;
}
.prose h2 { font-size: 1.4rem; margin-top: 1.4em; }
.prose ul { color: var(--muted); padding-left: 1.15em; }
.prose li { margin: 0.35em 0; }
.prose p { color: var(--muted); }

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 22px;
}
.contact-card a { font-weight: 650; }

.site-footer {
  background: transparent;
  padding: 28px 0 32px;
  margin-top: 8px;
  color: var(--footer);
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}
.footer-links {
  display: contents;
}
.footer-badge {
  width: 100px;
  height: 100px;
  flex: none;
  border-radius: 20px;
  overflow: hidden;
}
.footer-badge .sitetrust-inline-badge {
  border-radius: 20px !important;
}
.site-footer h3 {
  color: var(--heading);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}
.site-footer a { color: var(--footer-link); text-decoration: none; display: block; padding: 4px 0; }
.site-footer a:hover { color: var(--link-hover); }
.footer-logo {
  height: 28px;
  margin-bottom: 12px;
  filter: var(--logo-filter);
  opacity: 0.95;
}
.legal {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.disclaimer { font-size: 0.82rem; }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-block; }
  .header-cta { display: none; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header);
    left: 12px;
    right: 12px;
    background: var(--menu);
    border: 1px solid var(--line);
    border-radius: 18px;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    margin: 0;
  }
  .site-nav.open {
    display: flex;
    max-height: calc(100dvh - var(--header) - 20px);
    overflow: auto;
  }
  .site-nav a:not(.btn) { padding: 12px; }
  .nav-drop { width: 100%; }
  .nav-drop-btn { width: 100%; justify-content: space-between; }
  .nav-drop-menu {
    position: static;
    left: auto;
    translate: none;
    width: auto;
    margin-top: 4px;
    padding: 4px 0 0;
    border: 0;
    box-shadow: none;
    background: transparent;
  }
  :root:not([data-theme="light"]) .nav-drop-menu,
  [data-theme="dark"] .nav-drop-menu { box-shadow: none; }
  .nav-cta { display: inline-flex; justify-content: center; margin-top: 6px; }
}

@media (max-width: 980px) {
  .hero-grid,
  .quotes,
  .calc-layout,
  .contact-grid,
  .grid-3,
  .steps-row,
  .studies,
  .vert-grid,
  .team,
  .split { grid-template-columns: 1fr 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .section-head, .band { flex-direction: column; align-items: flex-start; }
  .float-a, .float-b { position: static; margin-top: 10px; display: inline-block; }
  .hero-panel { display: grid; }
  .hero .wrap,
  .page-hero .wrap { padding: 48px 36px; }
}

@media (max-width: 760px) {
  .stats, .grid-2, .grid-3, .steps-row, .studies, .vert-grid, .team, .result-grid, .contact-grid, .calc-layout, .split, .hero-grid, .quotes {
    grid-template-columns: 1fr;
  }
  .team { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 18px 0 6px; }
  .stat b { font-size: 2.15rem; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-actions .btn { width: 100%; }
  .site-header .wrap { gap: 12px; }
  .logo, .nav-toggle, .theme-toggle { flex: none; }
  .logo img { height: 26px; }
  .quote p { font-size: 1.05rem; }
  .stat + .stat { padding-left: 0; border-left: none; border-top: 1px solid var(--line); padding-top: 22px; }
  .hero .wrap,
  .page-hero .wrap { padding: 36px 22px; border-radius: 22px; }
  section { padding: 56px 0; }
  .band { padding: 28px 22px; border-radius: 22px; }
  .wrap { width: min(var(--max), calc(100% - 28px)); }
  .hero .wrap,
  .page-hero .wrap { width: min(var(--stage), calc(100% - 16px)); }
  .prose { padding: 22px 18px 8px; }
  .footer-grid { flex-direction: column; align-items: flex-start; gap: 22px; }
  .footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 22px 18px;
    width: 100%;
  }
  h1 { font-size: clamp(2.2rem, 10vw, 2.8rem); }
}

@media (max-width: 380px) {
  .hero-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .wrap::before,
  .page-hero .wrap::before,
  .person img,
  .card {
    animation: none;
    transition: none;
  }
}
