/* NBOT Labs site styles: design tokens, light/dark themes, shared components and page sections. */

/* ---------- Tokens: dark is the default, light overrides under [data-theme="light"] ---------- */
:root {
  --bg: #060e1d;
  --sf: #0b1830;
  --sf2: #0f2140;
  --ft: #040a16;
  --ink: #eaf2fb;
  --m1: #8ea3bf;
  --m2: #b7c6da;
  --m3: #9db0c8;
  --m4: #d5e0ee;
  --m5: #5f7899;
  --ac: #5cc0f2;
  --onac: #041026;
  --hi: #ffffff;
  --ln: 234, 242, 251;
  --acr: 92, 192, 242;
  --bgr: 6, 14, 29;
  --sfr: 11, 24, 48;
  --hir: 255, 255, 255;
  --deep: 20, 50, 110;
  --grad: linear-gradient(100deg, #7fd8fa 0%, #3b9ae8 50%, #4b63e0 100%);
  --logo-d: block;
  --logo-l: none;

  --font: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --gutter: clamp(20px, 4vw, 32px);
  --section-y: clamp(80px, 11vw, 120px);
  --nav-h: 72px;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f3f7fb;
  --sf: #ffffff;
  --sf2: #dfe9f5;
  --ft: #e7eef8;
  --ink: #0a1a2e;
  --m1: #4d6280;
  --m2: #314660;
  --m3: #44597a;
  --m4: #1c2f48;
  --m5: #5b7090;
  --ac: #1c6fbf;
  --onac: #ffffff;
  --hi: #0a1a2e;
  --ln: 10, 26, 46;
  --acr: 28, 111, 191;
  --bgr: 243, 247, 251;
  --sfr: 255, 255, 255;
  --hir: 255, 255, 255;
  --deep: 190, 215, 240;
  --grad: linear-gradient(100deg, #1690d0 0%, #2b67a8 55%, #2a3f9c 100%);
  --logo-d: none;
  --logo-l: block;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .3s, color .3s;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
button { font: inherit; }

:focus-visible { outline: 2px solid var(--ac); outline-offset: 3px; }

[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }

.container { max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ac); color: var(--onac); font-weight: 600;
  padding: 10px 16px; border-radius: 999px;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.logo-dark { display: var(--logo-d); }
.logo-light { display: var(--logo-l); }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ac);
}
.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid rgba(var(--acr), .3); border-radius: 999px;
  padding: 8px 14px; background: rgba(var(--acr), .05);
}
.meta { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--m5); }

.h1 {
  font-size: clamp(44px, 6.4vw, 92px); line-height: .98;
  letter-spacing: -.045em; font-weight: 500; text-wrap: balance;
}
.h2 {
  font-size: clamp(32px, 3.6vw, 52px); line-height: 1.05;
  letter-spacing: -.035em; font-weight: 500; text-wrap: balance;
}
.h2-cta {
  font-size: clamp(38px, 5vw, 72px); line-height: 1.02;
  letter-spacing: -.04em; font-weight: 500; text-wrap: balance;
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.lede {
  font-size: clamp(18px, 1.6vw, 21px); line-height: 1.45;
  font-weight: 500; color: var(--ink); max-width: 600px; text-wrap: pretty;
}
.body-copy { font-size: 16px; line-height: 1.65; color: var(--m3); text-wrap: pretty; }
.accent { color: var(--ac); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 26px; border-radius: 999px; font-size: 15px;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.btn-lg { padding: 17px 30px; font-size: 16px; }
.btn-primary { background: var(--ac); color: var(--onac); font-weight: 600; border: 0; }
.btn-primary:hover { background: var(--ink); color: var(--onac); }
.btn-ghost { color: var(--ink); border: 1px solid rgba(var(--ln), .2); background: transparent; }
.btn-ghost:hover { border-color: var(--ac); color: var(--ac); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Site nav ---------- */
.site-nav { position: sticky; top: -40px; z-index: 50; }

.utility-bar {
  height: 40px; background: var(--bg);
  border-bottom: 1px solid rgba(var(--ln), .08);
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--m1);
  transition: background .3s;
}
.utility-bar .container {
  height: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.utility-tag {
  display: flex; align-items: center; gap: 10px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.pulse-dot {
  width: 6px; height: 6px; border-radius: 50%; flex: none;
  background: var(--ac); box-shadow: 0 0 10px var(--ac);
}
.utility-social { display: flex; gap: 22px; flex: none; }
.utility-social a { color: var(--m1); transition: color .2s; }
.utility-social a:hover { color: var(--ink); }

.main-bar {
  background: rgba(var(--bgr), .94);
  border-bottom: 1px solid rgba(var(--ln), .08);
}
.main-bar .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding-top: 16px; padding-bottom: 16px;
}
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 30px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 2px; font-size: 14px; }
.nav-link {
  display: flex; align-items: center; gap: 7px;
  color: var(--m2); padding: 8px 12px; border-radius: 999px;
  background: none; border: 0; cursor: pointer; white-space: nowrap;
  transition: background .2s, color .2s;
}
.nav-link:hover, .nav-link[aria-expanded="true"] { background: rgba(var(--ln), .06); color: var(--ink); }
.nav-link.is-active::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--ac);
}
.nav-caret { font-size: 10px; opacity: .7; }

.nav-dropdown { position: relative; }
.dropdown-panel {
  position: absolute; top: 100%; left: -12px; width: 340px;
  padding-top: 10px; z-index: 60;
  visibility: hidden; opacity: 0; transform: translateY(-8px) scale(.98); transform-origin: 20% 0;
  transition: opacity .2s ease, transform .25s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .25s;
}
.nav-dropdown.is-open .dropdown-panel {
  visibility: visible; opacity: 1; transform: none;
  transition: opacity .2s ease, transform .3s cubic-bezier(.2, .8, .2, 1), visibility 0s;
}
.dropdown-inner {
  background: var(--sf); border: 1px solid rgba(var(--acr), .18);
  border-radius: 16px; padding: 8px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45);
}
.dropdown-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 14px; border-radius: 10px; color: var(--m4); font-size: 14px;
  transition: background .2s, color .2s;
}
.dropdown-item:hover { background: rgba(var(--acr), .08); color: var(--hi); }
.dropdown-item[aria-current="page"] { color: var(--ac); }
.dropdown-num { font-family: var(--mono); font-size: 11px; color: var(--m5); }

.nav-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.btn-shop { padding: 11px 20px; font-size: 14px; }

.theme-toggle {
  display: flex; align-items: center; gap: 8px;
  background: none; border: 1px solid rgba(var(--ln), .18); color: var(--m2);
  font-size: 13px; padding: 10px 14px; border-radius: 999px; cursor: pointer;
  transition: border-color .2s, color .2s;
}
.theme-toggle:hover { border-color: var(--ac); color: var(--ac); }
.theme-icon {
  width: 12px; height: 12px; border-radius: 50%; flex: none;
  border: 1.5px solid currentColor;
  background: linear-gradient(90deg, currentColor 50%, transparent 50%);
}
/* The label names the mode you'd switch to; CSS picks it so it never flashes. */
.theme-to-dark { display: none; }
[data-theme="light"] .theme-to-light { display: none; }
[data-theme="light"] .theme-to-dark { display: inline; }

.menu-button {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 999px; cursor: pointer;
  background: none; border: 1px solid rgba(var(--ln), .18); color: var(--ink);
}
.menu-button span, .menu-button span::before, .menu-button span::after {
  display: block; width: 18px; height: 1.5px; background: currentColor; position: relative;
}
.menu-button span::before, .menu-button span::after { content: ""; position: absolute; left: 0; }
.menu-button span::before { top: -6px; }
.menu-button span::after { top: 6px; }

/* Mobile overlay menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 100; display: none; flex-direction: column;
  background: var(--bg); overflow-y: auto;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--gutter); border-bottom: 1px solid rgba(var(--ln), .08);
}
.mobile-close {
  width: 44px; height: 44px; border-radius: 999px; cursor: pointer; font-size: 22px; line-height: 1;
  background: none; border: 1px solid rgba(var(--ln), .18); color: var(--ink);
}
.mobile-menu-body { padding: 12px var(--gutter) 40px; display: flex; flex-direction: column; }
.mobile-link {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 0; font-size: 22px; letter-spacing: -.015em;
  border-bottom: 1px solid rgba(var(--ln), .08); color: var(--ink);
}
.mobile-link.is-active::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ac);
}
.mobile-apps { padding: 14px 0 8px; border-bottom: 1px solid rgba(var(--ln), .08); }
.mobile-apps .eyebrow { display: block; margin-bottom: 6px; }
.mobile-app {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 0; font-size: 17px; color: var(--m4);
}
.mobile-app[aria-current="page"] { color: var(--ac); }
.mobile-menu-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.mobile-social { display: flex; gap: 22px; margin-top: 28px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.mobile-social a { color: var(--m1); }
.mobile-social a:hover { color: var(--ink); }
body.menu-open { overflow: hidden; }

@media (max-width: 1320px) {
  .nav-link { padding: 8px 9px; }
  .main-bar .container { gap: 12px; }
}
@media (max-width: 1160px) {
  .nav-links, .nav-actions .theme-toggle, .nav-actions .btn-shop { display: none; }
  .menu-button { display: inline-flex; }
}
@media (max-width: 560px) {
  .utility-social { display: none; }
}

/* ---------- Bubble field ---------- */
.bubble-field { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.bubble {
  position: absolute; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle at 32% 30%, rgba(var(--hir), .55), rgba(var(--acr), .18) 45%, rgba(var(--acr), .04) 70%);
  border: 1px solid rgba(var(--acr), .35);
  animation: rise var(--dur, 16s) linear var(--delay, 0s) infinite;
}
@keyframes rise {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 1; }
  50%  { transform: translateY(-50vh) translateX(12px); }
  90%  { opacity: .9; }
  100% { transform: translateY(-105vh) translateX(-8px); opacity: 0; }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: .55; }
  50% { transform: scale(1.06); opacity: .9; }
}

/* ---------- Sections ---------- */
.section { border-bottom: 1px solid rgba(var(--ln), .08); }
.section-pad { padding-top: var(--section-y); padding-bottom: var(--section-y); }

/* Two-column "label + content": flex-wrap, never a span-2 grid */
.split { display: flex; flex-wrap: wrap; gap: 48px; }
.split-label { flex: 1 1 260px; max-width: 440px; }
.split-body { flex: 999 1 480px; min-width: 0; }

.wash { position: absolute; inset: 0; pointer-events: none; }

/* ---------- Home: hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid rgba(var(--ln), .08); }
.hero .wash {
  background:
    radial-gradient(60% 70% at 78% 40%, rgba(var(--acr), .14), transparent 70%),
    radial-gradient(40% 50% at 10% 100%, rgba(75, 99, 224, .16), transparent 70%);
}
.hero-grid {
  position: relative; display: grid; align-items: center; gap: 56px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 7vw, 88px);
}
.hero .h1 { margin-top: 28px; }
.hero .lede { margin-top: 28px; }
.hero .body-copy { margin-top: 18px; max-width: 580px; }
.hero .btn-row { margin-top: 36px; }

.orb-wrap { position: relative; aspect-ratio: 1 / 1; max-width: 560px; width: 100%; justify-self: center; }
.orb-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(var(--acr), .22); }
.orb-ring-inner { inset: 9%; border-style: solid; border-color: rgba(var(--acr), .12); }
.orb {
  position: absolute; inset: 18%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(var(--hir), .22), rgba(var(--acr), .16) 30%, rgba(var(--deep), .35) 65%, rgba(var(--bgr), .2) 100%);
  border: 1px solid rgba(var(--acr), .4);
  box-shadow: 0 0 80px rgba(var(--acr), .18), inset 0 0 60px rgba(var(--acr), .12);
  animation: pulse 7s ease-in-out infinite;
}
.orb-stat {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
}
.orb-value {
  font-size: clamp(56px, 7vw, 96px); font-weight: 500;
  letter-spacing: -.05em; line-height: 1; margin-top: 10px;
}
.orb-note { font-size: 14px; color: var(--m3); margin-top: 10px; }
.chip {
  position: absolute; font-family: var(--mono); font-size: 12px; color: var(--m4);
  background: rgba(var(--bgr), .9); border: 1px solid rgba(var(--acr), .25);
  border-radius: 999px; padding: 8px 14px;
}
.chip-1 { top: 8%; left: -2%; }
.chip-2 { top: 20%; right: -4%; }
.chip-3 { bottom: 14%; left: 0; }
.chip-4 { bottom: 6%; right: 6%; }

/* Process strip: cell hairlines drawn with box-shadow so wrapped rows stay clean */
.process { position: relative; padding-bottom: 64px; }
.process-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  border: 1px solid rgba(var(--ln), .1); border-radius: 20px; overflow: hidden;
  background: rgba(var(--sfr), .86);
}
.process-cell {
  padding: 26px 28px;
  box-shadow: 1px 0 0 rgba(var(--ln), .08), 0 1px 0 rgba(var(--ln), .08);
}
.process-title { font-size: 19px; font-weight: 500; margin-top: 10px; }
.process-text { font-size: 14px; color: var(--m3); margin-top: 6px; line-height: 1.5; }
.process-cell.is-output .meta, .process-cell.is-output .process-title { color: var(--ac); }

/* ---------- Quote ---------- */
.quote {
  font-size: clamp(28px, 3.4vw, 48px); line-height: 1.18;
  letter-spacing: -.025em; font-weight: 400; text-wrap: pretty;
}
.quote-by { margin-top: 40px; display: flex; align-items: center; gap: 16px; }
.quote-rule { width: 44px; height: 1px; background: var(--ac); flex: none; }
.quote-name { font-weight: 600; font-size: 15px; letter-spacing: .04em; }
.quote-role { font-size: 14px; color: var(--m3); margin-top: 4px; }

/* ---------- Feature cards ---------- */
.section-head {
  display: flex; justify-content: space-between; align-items: end;
  gap: 24px; flex-wrap: wrap; margin-bottom: 44px;
}
.card-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}
.feature-card {
  display: flex; flex-direction: column; border-radius: 22px; overflow: hidden;
  background: var(--sf); border: 1px solid rgba(var(--ln), .08); color: var(--ink);
  transition: border-color .25s, transform .25s;
}
.feature-card:hover { border-color: rgba(var(--acr), .45); transform: translateY(-4px); }
.feature-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sf2); }
.feature-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(.75) contrast(1.05);
}
.feature-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(var(--bgr), 0) 40%, rgba(var(--sfr), .95) 100%);
}
.num-chip {
  position: absolute; top: 18px; left: 18px; z-index: 1;
  font-family: var(--mono); font-size: 12px; color: var(--ink);
  background: rgba(var(--bgr), .78); padding: 6px 11px; border-radius: 999px;
}
.feature-body { padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.feature-body h3 { font-size: 26px; font-weight: 500; letter-spacing: -.02em; }
.feature-body p { font-size: 15px; line-height: 1.6; color: var(--m3); flex: 1; }
.learn-more {
  margin-top: 10px; display: flex; align-items: center; gap: 8px;
  color: var(--ac); font-size: 14px; font-weight: 500;
}

/* ---------- Applications index ---------- */
.app-list { border-top: 1px solid rgba(var(--ln), .1); }
.app-row {
  display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 16px;
  padding: 22px 4px; border-bottom: 1px solid rgba(var(--ln), .1); color: var(--ink);
  transition: padding .2s, color .2s;
}
.app-row:hover { padding-left: 14px; color: var(--ac); }
.app-num { font-family: var(--mono); font-size: 12px; color: var(--m5); }
.app-name { font-size: clamp(18px, 1.8vw, 24px); letter-spacing: -.015em; }
.app-arrow { font-size: 18px; }

/* ---------- Bottom CTA ---------- */
.cta { position: relative; overflow: hidden; }
.cta .wash { background: radial-gradient(50% 80% at 50% 110%, rgba(var(--acr), .18), transparent 70%); }
.cta-inner {
  position: relative; max-width: 1000px; margin: 0 auto; text-align: center;
  padding: clamp(88px, 12vw, 130px) var(--gutter);
}
.cta .h2-cta { margin-top: 22px; }
.cta p {
  margin: 26px auto 0; font-size: 17px; line-height: 1.65;
  color: var(--m3); max-width: 640px; text-wrap: pretty;
}
.cta .btn-row { justify-content: center; margin-top: 40px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid rgba(var(--ln), .08); background: var(--ft); transition: background .3s; }
.footer-main { display: flex; flex-wrap: wrap; gap: 48px; padding-top: 72px; padding-bottom: 36px; }
.footer-about { flex: 2 1 440px; min-width: 0; }
.footer-about img { height: 34px; width: auto; }
.footer-about p { margin-top: 12px; font-size: 15px; line-height: 1.65; color: var(--m3); max-width: 520px; text-wrap: pretty; }
.footer-col { flex: 1 1 200px; }
.footer-label { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--m5); }
.footer-about .footer-label { margin-top: 28px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; font-size: 15px; }
.footer-links a { color: var(--m4); transition: color .2s; }
.footer-links a:hover { color: var(--ac); }
.footer-links a.footer-email { color: var(--ac); }
.footer-links a.footer-email:hover { color: var(--ink); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 22px; padding-bottom: 34px; border-top: 1px solid rgba(var(--ln), .06);
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--m5);
}

/* ---------- Shared helpers ---------- */
.split-label .eyebrow + .h2 { margin-top: 18px; }
.split-label .body-copy { margin-top: 22px; max-width: 480px; }
.card {
  background: var(--sf); border: 1px solid rgba(var(--ln), .08); border-radius: 22px;
  transition: border-color .25s;
}
.card-outline { border: 1px solid rgba(var(--ln), .1); border-radius: 22px; }
.card-accent { border: 1px solid rgba(var(--acr), .35); background: rgba(var(--acr), .05); border-radius: 20px; }
.glass { background: rgba(var(--sfr), .86); }
.stat-xl { font-weight: 500; letter-spacing: -.05em; line-height: 1; }
.unit { font-size: .5em; color: var(--m3); }
.tag {
  font-family: var(--mono); font-size: 12px; color: var(--m4);
  border: 1px solid rgba(var(--acr), .25); border-radius: 999px; padding: 6px 12px;
}

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; overflow: hidden; border-bottom: 1px solid rgba(var(--ln), .08); }
.page-hero .wash { background: radial-gradient(55% 80% at var(--wash-at, 85% 10%), rgba(var(--acr), .14), transparent 70%); }
.page-hero-inner {
  position: relative;
  padding-top: clamp(64px, 8vw, 96px); padding-bottom: clamp(64px, 7vw, 88px);
}
.crumbs {
  display: flex; gap: 10px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--m5);
}
.crumbs a { color: var(--m5); transition: color .2s; }
.crumbs a:hover { color: var(--ac); }
.crumbs [aria-current] { color: var(--ac); }
.page-hero .h1 { margin-top: 28px; max-width: 1100px; }
.page-hero .lede { margin-top: 30px; max-width: 680px; line-height: 1.5; }

/* ---------- About ---------- */
.statement { font-size: clamp(28px, 3.4vw, 48px); line-height: 1.18; letter-spacing: -.025em; text-wrap: pretty; }
.statement + .body-copy { margin-top: 28px; font-size: 17px; max-width: 620px; }
.principle-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.principle { padding: 34px 30px; display: flex; flex-direction: column; gap: 18px; }
.principle .stat-xl { font-size: 64px; color: var(--ac); }
.principle .stat-xl small { font-size: 32px; }
.principle-caption { font-size: 14px; color: var(--m3); }
.principle p {
  margin-top: 8px; font-size: 15px; line-height: 1.65; color: var(--m4);
  border-top: 1px solid rgba(var(--ln), .08); padding-top: 20px;
}
.meta-12 { font-family: var(--mono); font-size: 12px; color: var(--m5); }

.two-col {
  display: grid; gap: 56px; align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
}
.two-col .h2 { margin-top: 18px; }
.two-col .body-copy { margin-top: 22px; max-width: 480px; }
.bars { display: flex; flex-direction: column; gap: 28px; }
.bar-head { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; margin-bottom: 10px; color: var(--m3); }
.bar-head .mono { font-family: var(--mono); }
.bar-head.is-nbot .bar-name { color: var(--ink); font-weight: 500; }
.bar-head.is-nbot .mono { color: var(--ac); }
.bar-track { height: 14px; border-radius: 999px; background: rgba(var(--ln), .06); }
.bar-fill { height: 100%; border-radius: 999px; background: var(--m5); }
.bar-fill.is-nbot {
  background: linear-gradient(90deg, rgba(var(--acr), .35), var(--ac));
  box-shadow: 0 0 24px rgba(var(--acr), .35);
}

.cta .h2-cta:first-child { margin-top: 0; }
.h2-cta.is-sm { font-size: clamp(36px, 4.6vw, 64px); line-height: 1.04; }

/* ---------- PFAS ---------- */
.stat-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  border: 1px solid rgba(var(--ln), .1); border-radius: 20px; overflow: hidden;
}
.stat-strip-cell { padding: 30px; box-shadow: 1px 0 0 rgba(var(--ln), .08), 0 1px 0 rgba(var(--ln), .08); }
.stat-strip-cell .stat-xl { font-size: clamp(40px, 4.4vw, 60px); letter-spacing: -.045em; }
.stat-note { font-size: 14px; color: var(--m3); margin-top: 12px; line-height: 1.5; }
.hero-strip { position: relative; padding-bottom: 72px; }
.problem { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.problem-copy { flex: 1 1 340px; max-width: 560px; }
.problem-copy .h2 { margin-top: 18px; }
.problem-copy .body-copy { margin-top: 22px; }
.problem-stats {
  flex: 999 1 420px; min-width: 0; display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}
.problem-stats .card-outline { padding: 32px; }
.problem-stats .stat-xl { font-size: clamp(56px, 6vw, 88px); }
.problem-stats .stat-note { font-size: 15px; margin-top: 14px; }
.step-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.step { padding: 32px 30px; }
.step.is-final { border-color: rgba(var(--acr), .3); }
.step-num {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(var(--acr), .4);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 13px; color: var(--ac);
}
.step.is-final .step-num { background: var(--ac); border-color: var(--ac); color: var(--onac); }
.step h3 { margin-top: 26px; font-size: 24px; font-weight: 500; letter-spacing: -.02em; }
.step p { margin-top: 12px; font-size: 15px; line-height: 1.65; color: var(--m3); }
.compare {
  display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.compare > div { padding: 30px; border-radius: 20px; }
.compare-list { display: flex; flex-direction: column; gap: 16px; margin: 22px 0 0; padding: 0; list-style: none; font-size: 16px; }
.compare-list li { display: flex; gap: 12px; }
.compare-list.is-old { color: var(--m3); }
.compare-list.is-old li::before { content: "—"; color: var(--m5); }
.compare-list.is-new li::before { content: "●"; color: var(--ac); }
.meta.is-accent { color: var(--ac); }
.meta-lg { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--m5); }

/* ---------- Applications ---------- */
.app-hero {
  position: relative; display: grid; gap: 48px; align-items: end;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  padding-top: clamp(64px, 8vw, 88px); padding-bottom: 80px;
}
.app-count { margin-top: 28px; font-family: var(--mono); font-size: 14px; color: var(--ac); }
.app-hero .h1-app {
  margin-top: 12px; font-size: clamp(42px, 5.6vw, 84px); line-height: 1;
  letter-spacing: -.045em; font-weight: 500; text-wrap: balance;
}
.app-hero .lede { margin-top: 26px; max-width: 620px; line-height: 1.5; }
.app-stat {
  justify-self: end; width: 100%; max-width: 420px; padding: 30px;
  border: 1px solid rgba(var(--acr), .25); border-radius: 22px;
}
.app-stat .stat-xl { font-size: clamp(48px, 5vw, 72px); margin-top: 14px; }
.app-stat .stat-note { font-size: 14px; }
.tags {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding-top: 20px;
  border-top: 1px solid rgba(var(--ln), .08);
}
.app-body { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; padding-top: 80px; padding-bottom: 110px; }
.app-rail { flex: 1 1 260px; max-width: 440px; min-width: 0; position: sticky; top: 100px; }
.rail-label { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--m5); margin-bottom: 14px; }
.rail-list { display: flex; flex-direction: column; border-top: 1px solid rgba(var(--ln), .1); }
.rail-item {
  display: grid; grid-template-columns: 36px 1fr; gap: 8px; padding: 14px 4px;
  border-bottom: 1px solid rgba(var(--ln), .1); color: var(--m3); font-size: 15px;
  transition: color .2s;
}
.rail-item:hover { color: var(--ac); }
.rail-item .rail-num { font-family: var(--mono); font-size: 11px; color: var(--m5); padding-top: 3px; }
.rail-item[aria-current] {
  color: var(--ac); font-weight: 500; padding-left: 12px;
  background: rgba(var(--acr), .06); border-left: 2px solid var(--ac);
}
.rail-item[aria-current] .rail-num { color: inherit; }
.app-sections { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.app-section {
  padding: 38px 36px; display: grid; gap: 24px 40px;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
}
@media (max-width: 640px) {
  .app-section { grid-template-columns: 1fr; padding: 28px 24px; }
}
.app-section img {
  grid-column: 1 / -1; width: 100%; aspect-ratio: 21 / 9; object-fit: cover;
  border-radius: 14px; display: block; background: var(--sf2); height: auto;
}
.app-section-num { font-family: var(--mono); font-size: 12px; color: var(--ac); }
.app-section h2 {
  margin-top: 12px; font-size: clamp(24px, 2.4vw, 32px); font-weight: 500;
  letter-spacing: -.025em; line-height: 1.15; text-wrap: balance;
}
.app-section p { font-size: 16px; line-height: 1.7; color: var(--m3); text-wrap: pretty; }
.next-card {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  margin-top: 20px; padding: 30px 36px; border-radius: 22px;
  border: 1px solid rgba(var(--ln), .12); color: var(--ink);
  transition: border-color .2s, color .2s;
}
.next-card:hover { border-color: var(--ac); color: var(--ac); }
.next-name { font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.02em; margin-top: 8px; }
.next-arrow { font-size: 28px; }
@media (max-width: 900px) {
  .app-rail { position: static; max-width: none; }
  .app-stat { justify-self: stretch; max-width: none; }
}

/* ---------- Team ---------- */
.team-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.member { overflow: hidden; display: block; color: var(--ink); }
.member:hover { border-color: rgba(var(--acr), .45); }
.member-media, .bio-media {
  position: relative; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 40%, rgba(var(--acr), .16), var(--sf2) 70%);
}
.member-media::before, .bio-media::before {
  content: ""; position: absolute; inset: 14%; border-radius: 50%;
  border: 1px dashed rgba(var(--acr), .25);
}
.member-media img, .bio-media img {
  position: relative; width: 64%; height: auto; aspect-ratio: 1 / 1; border-radius: 50%; object-fit: cover;
  border: 1px solid rgba(var(--acr), .45); box-shadow: 0 0 60px rgba(var(--acr), .18);
}
.member-body { padding: 26px 26px 28px; }
.member-body h3 { font-size: 26px; font-weight: 500; letter-spacing: -.02em; }
.role {
  margin-top: 8px; font-family: var(--mono); font-size: 12px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ac);
}
.member-body .learn-more { margin-top: 18px; }
.partners .h2 { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.08; }
.partner-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  border-top: 1px solid rgba(var(--ln), .1); border-left: 1px solid rgba(var(--ln), .1);
}
.partner-grid > div {
  padding: 26px 24px; min-height: 64px; display: flex; align-items: center;
  border-right: 1px solid rgba(var(--ln), .1); border-bottom: 1px solid rgba(var(--ln), .1);
  font-size: 17px; letter-spacing: -.01em;
}

/* Bio pages */
.bio { display: grid; gap: 56px; align-items: start; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.bio-media { border-radius: 22px; overflow: hidden; border: 1px solid rgba(var(--ln), .08); max-width: 520px; }
.bio-list { list-style: none; margin: 22px 0 0; padding: 0; border-top: 1px solid rgba(var(--ln), .1); }
.bio-list li {
  display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 22px 0;
  border-bottom: 1px solid rgba(var(--ln), .1); font-size: 17px; line-height: 1.6; color: var(--m4);
}
.bio-list .num { font-family: var(--mono); font-size: 12px; color: var(--ac); padding-top: 5px; }
.bio .btn-row { margin-top: 36px; }

/* ---------- Studies ---------- */
.filter-bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter {
  font-size: 14px; padding: 10px 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(var(--ln), .18); background: none; color: var(--m2);
  transition: border-color .2s, color .2s, background .2s;
}
.filter:hover { border-color: var(--ac); color: var(--ac); }
.filter[aria-pressed="true"] { background: var(--ac); border-color: var(--ac); color: var(--onac); font-weight: 600; }
.study-list { display: flex; flex-direction: column; gap: 16px; }
.study {
  padding: 34px 36px; display: grid; gap: 32px; align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  animation: fade-in .2s ease;
}
.study:hover { border-color: rgba(var(--acr), .35); }
.study[hidden] { display: none; }
.study-meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.study-cat {
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--ac);
  border: 1px solid rgba(var(--acr), .3); border-radius: 999px; padding: 5px 10px;
}
.study-place { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--m5); }
.study h2 {
  margin-top: 18px; font-size: clamp(22px, 2.2vw, 28px); font-weight: 500;
  letter-spacing: -.02em; line-height: 1.2; text-wrap: balance;
}
.study p { font-size: 15px; line-height: 1.7; color: var(--m3); text-wrap: pretty; }
.study-stat { border-left: 1px solid rgba(var(--ln), .1); padding-left: 28px; }
.study-stat .stat-xl { font-size: clamp(36px, 3.6vw, 52px); letter-spacing: -.045em; color: var(--ac); }
.study-stat .stat-note { margin-top: 10px; }
.study-images {
  grid-column: 1 / -1; display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.study-images img {
  width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; display: block;
  border: 1px solid rgba(var(--ln), .08); background: var(--sf2);
}
.study-images figcaption {
  margin-top: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--m3);
}
.quote.is-sm { font-size: clamp(26px, 3vw, 42px); line-height: 1.2; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Contact ---------- */
.contact-grid {
  position: relative; display: grid; gap: 56px; align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  padding-top: clamp(64px, 8vw, 96px); padding-bottom: 110px;
}
.contact-grid .h1 { margin-top: 28px; font-size: clamp(44px, 6vw, 88px); }
.contact-grid .lede { margin-top: 28px; max-width: 520px; line-height: 1.5; }
.contact-list { margin-top: 48px; display: flex; flex-direction: column; border-top: 1px solid rgba(var(--ln), .1); max-width: 520px; }
.contact-row { padding: 22px 0; border-bottom: 1px solid rgba(var(--ln), .1); }
a.contact-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--ink); transition: color .2s; }
a.contact-row:hover { color: var(--ac); }
.contact-key { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--m5); }
.contact-val { font-size: 20px; margin-top: 6px; }
.contact-val.is-sm { font-size: 18px; line-height: 1.5; }
.contact-social { display: flex; gap: 20px; flex-wrap: wrap; }
.contact-social a { color: var(--m4); transition: color .2s; }
.contact-social a:hover { color: var(--ac); }
.form-card {
  background: rgba(var(--sfr), .9);
  border: 1px solid rgba(var(--acr), .2); border-radius: 24px; padding: clamp(24px, 3vw, 40px);
}
.inquiry { display: flex; flex-direction: column; gap: 20px; }
.field-row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--m3); }
.field input, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--bg);
  border: 1px solid rgba(var(--ln), .14); border-radius: 12px; padding: 14px 16px;
  outline: none; transition: border-color .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--ac); }
.req { color: var(--ac); }
.topics { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; border: 0; font-size: 13px; color: var(--m3); }
.topics legend { padding: 0; margin-bottom: 10px; }
.topic-list { display: flex; flex-wrap: wrap; gap: 8px; }
.topic {
  font-size: 13px; padding: 8px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(var(--ln), .16); background: none; color: var(--m2);
  transition: border-color .2s, color .2s, background .2s;
}
.topic:hover { border-color: var(--ac); }
.topic[aria-pressed="true"] { border-color: var(--ac); background: rgba(var(--acr), .12); color: var(--ac); }
.inquiry .btn { justify-content: center; margin-top: 6px; }
.sent { padding: 40px 0; text-align: center; }
.sent[hidden], .inquiry[hidden] { display: none; }
.check {
  width: 64px; height: 64px; margin: 0 auto; border-radius: 50%;
  background: var(--ac); color: var(--onac); font-size: 28px;
  display: flex; align-items: center; justify-content: center;
}
.sent h2 { margin-top: 24px; font-size: 32px; font-weight: 500; letter-spacing: -.03em; }
.sent p { margin: 12px auto 0; font-size: 16px; line-height: 1.6; color: var(--m3); max-width: 360px; }
.sent .btn { margin-top: 28px; font-size: 15px; padding: 13px 24px; }

.form-error {
  font-size: 14px; line-height: 1.5; color: var(--ink); padding: 12px 14px; border-radius: 12px;
  border: 1px solid rgba(255, 120, 120, .5); background: rgba(255, 120, 120, .08);
}
.form-error[hidden] { display: none; }
.form-error a { color: var(--ac); text-decoration: underline; }
.inquiry .btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Shop ---------- */
.shop-top { position: relative; padding-top: 72px; padding-bottom: 100px; }
.shop-grid {
  margin-top: 36px; display: grid; gap: 56px; align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
}
.product {
  position: relative; aspect-ratio: 1 / 1; border-radius: 28px; overflow: hidden;
  background: radial-gradient(circle at 50% 45%, rgba(var(--acr), .18), var(--sf2) 70%);
  border: 1px solid rgba(var(--ln), .08);
}
.product-img {
  position: absolute; top: 10%; left: 10%; width: 80%; height: 74%; object-fit: contain;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35)); transition: opacity .2s;
}
.product-caption {
  position: absolute; left: 24px; right: 24px; bottom: 22px;
  display: flex; justify-content: space-between; gap: 12px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em;
}
.product-caption .accent { flex: none; }
.product .num-chip { top: 20px; left: 20px; padding: 7px 12px; }
.shop-info .h1-shop { margin-top: 16px; font-size: clamp(40px, 5vw, 72px); line-height: 1; letter-spacing: -.045em; font-weight: 500; }
.shop-info .body-copy { margin-top: 24px; font-size: 17px; max-width: 560px; }
.config-label { margin-top: 36px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--m5); }
.configs { margin: 12px 0 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 10px; }
.config {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 20px; border-radius: 16px; cursor: pointer;
  border: 1px solid rgba(var(--ln), .12); transition: border-color .2s, background .2s;
}
.config:hover { border-color: rgba(var(--acr), .5); }
.config-name { display: flex; align-items: center; gap: 14px; font-size: 17px; }
.radio {
  width: 16px; height: 16px; border-radius: 50%; flex: none;
  border: 1.5px solid var(--m5); transition: border .15s;
}
.config-weight { font-family: var(--mono); font-size: 13px; color: var(--m3); flex: none; }
.config:has(input:checked) { border-color: var(--ac); background: rgba(var(--acr), .07); }
.config:has(input:checked) .config-name { font-weight: 500; }
.config:has(input:checked) .radio { border: 5px solid var(--ac); }
.config:has(input:checked) .config-weight { color: var(--ac); }
.config:has(input:focus-visible) { outline: 2px solid var(--ac); outline-offset: 3px; }
.shop-info .btn-row { margin-top: 28px; }
.spec-grid {
  display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  background: rgba(var(--ln), .1); border: 1px solid rgba(var(--ln), .1); border-radius: 20px; overflow: hidden;
}
.spec { padding: 26px 28px; background: var(--bg); transition: background .3s; }
.spec-key { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--m5); }
.spec-val { font-size: 20px; font-weight: 500; letter-spacing: -.015em; margin-top: 10px; line-height: 1.4; }
.shop-extras { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 20px; }
.included { flex: 1 1 300px; border: 1px solid rgba(var(--ln), .1); border-radius: 20px; padding: 28px; }
.included ul { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.quote-card { flex: 2 1 400px; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.quote-card-text { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -.02em; margin-top: 12px; line-height: 1.25; }
.quote-card .btn { align-self: flex-start; }
.section-head .h2.is-sm { font-size: clamp(30px, 3.2vw, 44px); }

/* =====================================================================
   MOTION
   Everything below is progressive: without JS, without View Transitions
   support, or with reduced motion requested, pages render fully static.
   ===================================================================== */
:root { --ease: cubic-bezier(.16, 1, .3, 1); --ease-io: cubic-bezier(.7, 0, .2, 1); }

/* ---------- Page-to-page transitions (cross-document View Transitions) ---------- */
@view-transition { navigation: auto; }
.site-nav { view-transition-name: site-nav; }
html.vt-theme .site-nav, html.vt-local .site-nav { view-transition-name: none; }

/* New page opens as a circle from where you clicked; old page sinks back and fades */
::view-transition-old(root) { animation: vt-sink .5s var(--ease-io) both; }
::view-transition-new(root) { animation: vt-open .6s var(--ease-io) both; }
::view-transition-group(site-nav) { animation-duration: .6s; animation-timing-function: var(--ease); }
@keyframes vt-sink {
  to { opacity: .25; transform: scale(.96); }
}
@keyframes vt-open {
  from { clip-path: circle(0 at var(--vt-x, 50%) var(--vt-y, 35%)); }
  to { clip-path: circle(150vmax at var(--vt-x, 50%) var(--vt-y, 35%)); }
}

/* Theme switch: the new theme spreads out from the toggle */
html.vt-theme *, html.vt-theme *::before, html.vt-theme *::after { transition: none !important; }
html.vt-theme::view-transition-old(root) { animation: none; }
html.vt-theme::view-transition-new(root) { animation: vt-open .6s var(--ease-io) both; }

/* In-page swaps (studies filter, shop picker): only the named pieces animate */
html.vt-local::view-transition-old(root) { display: none; }
html.vt-local::view-transition-new(root) { animation: none; }
html.vt-local::view-transition-group(*) { animation-duration: .45s; animation-timing-function: var(--ease); }

/* Browsers without View Transitions still get a soft page entrance */
@supports not (view-transition-name: none) {
  main { animation: page-in .7s var(--ease) both; }
}
@keyframes page-in { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Scroll reveals ---------- */
/* Hero content is pre-hidden (only when JS motion is on) so it never flashes before animating in */
.reveal-on [data-r]:not(.is-in),
.reveal-on :is(.hero-grid > div:first-child > *, .page-hero-inner > *, .app-hero > div:first-child > *, .contact-grid > div:first-child > *, .shop-top > .crumbs, .shop-info > *):not(.is-in) {
  opacity: 0; transform: translateY(var(--rv, 28px));
}
.reveal-on [data-r] {
  transition: opacity .8s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal-on [data-r].is-card:not(.is-in) { transform: translateY(calc(var(--rv, 28px) * 1.4)) scale(.98); }

/* Big headlines sweep in left to right, like a scan line */
.reveal-on .h1.is-in, .reveal-on .h1-app.is-in, .reveal-on .h1-shop.is-in {
  -webkit-mask-image: linear-gradient(90deg, #000 50%, transparent 60%);
  mask-image: linear-gradient(90deg, #000 50%, transparent 60%);
  -webkit-mask-size: 220% 100%; mask-size: 220% 100%;
  animation: h-sweep 1.4s var(--ease) var(--d, 0ms) both;
}
@keyframes h-sweep {
  from { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
  to { -webkit-mask-position: 0 0; mask-position: 0 0; }
}


/* Hero content drifts and fades as you scroll away (Chromium/Safari scroll timelines) */
@supports (animation-timeline: view()) {
  .hero-grid, .app-hero, .page-hero-inner:not(:has(.bio)) {
    animation: hero-exit linear both;
    animation-timeline: view();
    animation-range: exit 0% exit 100%;
  }
}
@keyframes hero-exit { to { opacity: .15; transform: translateY(10%) scale(.97); } }

/* ---------- Nav ---------- */
.main-bar { position: relative; transition: box-shadow .3s, background .3s; }
.site-nav.is-scrolled .main-bar { background: rgba(var(--bgr), .97); box-shadow: 0 12px 40px -18px rgba(0, 0, 0, .55); }
/* Reading progress line under the nav */
.main-bar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--grad); transform-origin: 0 50%; transform: scaleX(0);
}
@supports (animation-timeline: scroll()) {
  .main-bar::after { animation: read-progress linear both; animation-timeline: scroll(root); }
}
@keyframes read-progress { to { transform: scaleX(1); } }
  70%, 100% { box-shadow: 0 0 0 6px rgba(var(--acr), 0); }
}
.nav-dropdown.is-open .dropdown-item { animation: item-in .4s var(--ease) both; }
.dropdown-item:nth-child(2) { animation-delay: 25ms !important; } .dropdown-item:nth-child(3) { animation-delay: 50ms !important; }
.dropdown-item:nth-child(4) { animation-delay: 75ms !important; } .dropdown-item:nth-child(5) { animation-delay: 100ms !important; }
.dropdown-item:nth-child(6) { animation-delay: 125ms !important; } .dropdown-item:nth-child(7) { animation-delay: 150ms !important; }
.dropdown-item:nth-child(8) { animation-delay: 175ms !important; }
.dropdown-item .dropdown-num { transition: color .2s, transform .25s var(--ease); }
.dropdown-item:hover .dropdown-num { color: var(--ac); transform: translateX(-3px); }
@keyframes item-in { from { opacity: 0; transform: translateX(-10px); } }

.mobile-menu.is-open { animation: menu-in .35s var(--ease) both; }
.mobile-menu.is-open .mobile-menu-body > * { animation: item-in .55s var(--ease) both; }
.mobile-menu-body > :nth-child(2) { animation-delay: 40ms !important; } .mobile-menu-body > :nth-child(3) { animation-delay: 80ms !important; }
.mobile-menu-body > :nth-child(4) { animation-delay: 120ms !important; } .mobile-menu-body > :nth-child(5) { animation-delay: 160ms !important; }
.mobile-menu-body > :nth-child(6) { animation-delay: 200ms !important; } .mobile-menu-body > :nth-child(7) { animation-delay: 240ms !important; }
.mobile-menu-body > :nth-child(8) { animation-delay: 280ms !important; }
@keyframes menu-in { from { opacity: 0; clip-path: inset(0 0 100% 0); } to { opacity: 1; clip-path: inset(0); } }

/* ---------- Buttons & links ---------- */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%);
}
.btn-primary:hover::after { transform: translateX(120%); transition: transform .8s var(--ease); }
.btn [aria-hidden="true"] { display: inline-block; transition: transform .3s var(--ease); }
.btn:hover [aria-hidden="true"] { transform: translateX(4px); }
.btn.is-magnetic { transition: background .2s, color .2s, border-color .2s, translate .35s var(--ease); }
.learn-more span, .next-arrow, .app-arrow { display: inline-block; transition: transform .35s var(--ease); }
.feature-card:hover .learn-more span, .member:hover .learn-more span, .next-card:hover .next-arrow, .app-row:hover .app-arrow { transform: translateX(6px); }
.footer-links a, .contact-social a, .utility-social a {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: color .2s, background-size .35s var(--ease);
}
.footer-links a:hover, .contact-social a:hover, .utility-social a:hover { background-size: 100% 1px; }

/* ---------- Cursor spotlight on cards (pointer devices only) ---------- */
.spot { position: relative; }
.spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--acr), .11), transparent 45%);
  opacity: 0; transition: opacity .35s;
}
.spot:hover::after { opacity: 1; }
.spot:hover { border-color: rgba(var(--acr), .35); }


/* ---------- Home hero orb ---------- */
.orb-ring { animation: spin 90s linear infinite; }
.orb-ring-inner { animation: spin 140s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.orb-wrap::before, .orb-wrap::after {
  content: ""; position: absolute; inset: 18%; border-radius: 50%; pointer-events: none;
  border: 1px solid rgba(var(--acr), .45); animation: sonar 5s cubic-bezier(0, 0, .2, 1) infinite;
}
.orb-wrap::after { animation-delay: 2.5s; }
@keyframes sonar { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.55); opacity: 0; } }
.orb, .orb-stat, .orb-ring, .chip { transition: translate 1s var(--ease); }
.orb { translate: calc(var(--px, 0) * 10px) calc(var(--py, 0) * 10px); }
.orb-stat { translate: calc(var(--px, 0) * 16px) calc(var(--py, 0) * 16px); }
.orb-ring-inner { translate: calc(var(--px, 0) * -6px) calc(var(--py, 0) * -6px); }
.chip { translate: calc(var(--px, 0) * 26px) calc(var(--py, 0) * 26px); animation: float 6s ease-in-out infinite; }
.chip-2 { animation-duration: 7s; animation-delay: -2s; }
.chip-3 { animation-duration: 5.5s; animation-delay: -4s; }
.chip-4 { animation-duration: 6.5s; animation-delay: -1s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Process strip lights up 01 → 04 */
.process-cell { position: relative; }
.process-cell::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, rgba(var(--acr), 0), var(--ac));
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .7s var(--ease);
}
.process-strip.is-live .process-cell::before { transform: scaleX(1); }
.process-cell:nth-child(2)::before { transition-delay: .35s; }
.process-cell:nth-child(3)::before { transition-delay: .7s; }
.process-cell:nth-child(4)::before { transition-delay: 1.05s; }
.process-strip.is-live .process-cell.is-output { animation: out-glow 1.2s ease 1.5s both; }
@keyframes out-glow { to { background: rgba(var(--acr), .07); } }

/* CTA glow breathes */
.cta .wash { animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }

/* ---------- Feature, team & study imagery ---------- */
.feature-media img, .study-images img, .app-section img, .member-media img {
  transition: transform 1.2s var(--ease), filter .6s;
}
.feature-card:hover .feature-media img { transform: scale(1.06); filter: saturate(.95) contrast(1.05); }
.study-images figure { overflow: hidden; border-radius: 14px; margin: 0; }
.study-images figure:hover img { transform: scale(1.04); }
.reveal-on .app-section[data-r]:not(.is-in) img { transform: scale(1.1); }
.member-media::before { animation: spin 60s linear infinite paused; }
.member:hover .member-media::before { animation-play-state: running; border-color: rgba(var(--acr), .5); }
.member:hover .member-media img { transform: scale(1.04); }
.bio-media::before { animation: spin 60s linear infinite; }
.bio-media::after {
  content: ""; position: absolute; inset: 18%; border-radius: 50%; pointer-events: none;
  border: 1px solid rgba(var(--acr), .4); animation: sonar 5s cubic-bezier(0, 0, .2, 1) infinite;
}
.partner-grid > div { transition: background .3s, color .3s; }
.partner-grid > div:hover { background: rgba(var(--acr), .06); color: var(--ac); }
.app-row { position: relative; }
.app-row::before {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%;
  background: var(--ac); transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s var(--ease);
}
.app-row:hover::before { transform: scaleX(1); }
.rail-item { transition: color .2s, padding .3s var(--ease); }
.rail-item:not([aria-current]):hover { padding-left: 10px; }

/* ---------- About bars fill in ---------- */
.bar-fill { position: relative; overflow: hidden; transform-origin: 0 50%; transition: transform 1.6s var(--ease); }
.reveal-on .bars:not(.is-live) .bar-fill { transform: scaleX(0); }
.bars .bar-fill.is-nbot { transition-delay: .35s; }
.bar-fill.is-nbot::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent);
  width: 30%; animation: sheen 2.8s ease-in-out 2s infinite; transform: translateX(-120%);
}
@keyframes sheen { 0% { transform: translateX(-120%); } 60%, 100% { transform: translateX(380%); } }

/* ---------- PFAS ---------- */
.step.is-final .step-num { position: relative; }
.step.is-final .step-num::after {
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  border: 1px solid var(--ac); animation: sonar 3s cubic-bezier(0, 0, .2, 1) infinite;
}
.compare-list li { transition: transform .3s var(--ease); }
.compare-list li:hover { transform: translateX(4px); }

/* ---------- Studies & shop ---------- */
.filter { transition: border-color .2s, color .2s, background .25s, transform .2s var(--ease); }
.filter:active { transform: scale(.96); }
.product-img { animation: hover-float 7s ease-in-out infinite; }
@keyframes hover-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.config .radio { transition: border .25s var(--ease); }
.spec { transition: background .3s; }
.spec:hover { background: rgba(var(--acr), .05); }

/* ---------- Contact ---------- */
.field input, .field textarea { transition: border-color .2s, box-shadow .3s; }
.field input:focus, .field textarea:focus { box-shadow: 0 0 0 4px rgba(var(--acr), .14); }
.topic { transition: border-color .2s, color .2s, background .2s, transform .2s var(--ease); }
.topic:active { transform: scale(.95); }
.sent:not([hidden]) .check { animation: pop .7s var(--ease) both; position: relative; }
.sent:not([hidden]) .check::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--ac);
  animation: sonar 1.2s var(--ease) .15s both;
}
.sent:not([hidden]) > :not(.check) { animation: page-in .7s var(--ease) both; }
.sent:not([hidden]) > h2 { animation-delay: .15s; }
.sent:not([hidden]) > p { animation-delay: .25s; }
.sent:not([hidden]) > .btn { animation-delay: .35s; }
@keyframes pop { 0% { transform: scale(.3); opacity: 0; } 60% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); } }

/* Sections that are off screen stop their looping animations (set by the script) */
.is-offscreen, .is-offscreen *, .is-offscreen::before, .is-offscreen::after,
.is-offscreen *::before, .is-offscreen *::after { animation-play-state: paused !important; }
.bubble { will-change: transform, opacity; }

/* =====================================================================
   PHONE & TABLET
   ===================================================================== */

/* Bigger hit areas for small links without changing their layout */
.crumbs a { padding: 12px 0; margin: -12px 0; }
.brand { padding: 7px 0; margin: -7px 0; }

/* Touch feedback: things you tap give a little */
@media (hover: none) {
  .card, .feature-card, .member, .next-card, .config, .rail-item, .app-row, .filter, .topic {
    transition: transform .18s var(--ease), border-color .2s, background .2s, color .2s;
  }
  .card:active, .feature-card:active, .member:active, .next-card:active, .config:active { transform: scale(.98); }
  .app-row:active, .rail-item:active { transform: scale(.985); }
  .btn:active { transform: scale(.97); }
}

@media (max-width: 900px) {
  /* Applications: the side list becomes a sticky, swipeable strip of pills under the nav */
  .app-body { padding-top: 0; gap: 28px; }
  .app-rail {
    position: sticky; top: 76px; z-index: 20; flex: 1 1 100%; max-width: none;
    margin: 0 calc(var(--gutter) * -1); padding: 12px 0;
    background: rgba(var(--bgr), .97);
    border-bottom: 1px solid rgba(var(--ln), .08);
  }
  .rail-label { display: none; }
  .rail-list {
    display: flex; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 8px; border-top: 0;
    padding: 0 var(--gutter); scroll-snap-type: x proximity; scroll-padding: 0 var(--gutter);
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - 28px), transparent);
  }
  .rail-list::-webkit-scrollbar { display: none; }
  .rail-item {
    flex: none; display: flex; align-items: center; gap: 8px; min-height: 40px;
    padding: 8px 14px; border: 1px solid rgba(var(--ln), .14); border-radius: 999px;
    font-size: 14px; white-space: nowrap; scroll-snap-align: start;
  }
  .rail-item .rail-num { padding-top: 0; }
  .rail-item[aria-current] { padding-left: 14px; border: 1px solid var(--ac); background: rgba(var(--acr), .1); }
  .rail-item:not([aria-current]):hover { padding-left: 14px; }
  .app-sections { flex-basis: 100%; }
}

@media (max-width: 640px) {
  :root { --section-y: 72px; --rv: 18px; }
  .section-head { margin-bottom: 28px; }
  .split { gap: 28px; }

  /* Buttons share a row when they fit and go full width when they don't */
  .btn-row > .btn { flex: 1 1 auto; justify-content: center; }

  /* Home hero: tighter orb, 2×2 process grid */
  .hero-grid { gap: 36px; }
  .orb-wrap { max-width: 320px; }
  .chip { font-size: 11px; padding: 6px 11px; }
  .process { padding-bottom: 48px; }
  .process-strip { grid-template-columns: 1fr 1fr; }
  .process-cell { padding: 18px 16px; }
  .process-title { font-size: 16px; }
  .process-text { font-size: 13px; }

  /* Feature cards become a swipeable carousel with the next card peeking in */
  .card-grid {
    display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 14px; scroll-snap-type: x mandatory;
    margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 10px; scroll-padding: 0 var(--gutter);
    scrollbar-width: none;
  }
  .card-grid::-webkit-scrollbar { display: none; }
  .card-grid > * { flex: 0 0 84%; scroll-snap-align: start; }
  .feature-media { aspect-ratio: 16 / 11; }
  .feature-body { padding: 22px 20px 24px; }
  .feature-body h3 { font-size: 22px; }

  .quote { font-size: 26px; }
  .app-row { padding: 18px 2px; grid-template-columns: 40px 1fr auto; }

  /* Cards breathe a little less */
  .principle, .step, .study, .app-section, .problem-stats .card-outline, .compare > div { padding: 26px 22px; }
  .principle .stat-xl { font-size: 56px; }
  .next-card { padding: 24px 22px; }

  /* Studies: sticky, swipeable filters and side-by-side before/after photos */
  .filter-bar {
    position: sticky; top: 76px; z-index: 20; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 8px;
    margin: 0 calc(var(--gutter) * -1) 20px; padding: 12px 0 10px;
    background: rgba(var(--bgr), .97);
    border-bottom: 1px solid rgba(var(--ln), .08);
  }
  .filters {
    flex-wrap: nowrap; overflow-x: auto; padding: 0 var(--gutter); scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - 28px), transparent);
  }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; min-height: 40px; }
  .filter-bar > .meta-lg { padding: 0 var(--gutter); }
  .study { gap: 22px; }
  .study-stat { padding-left: 20px; }
  .study-images { grid-template-columns: 1fr 1fr; gap: 10px; }
  .study-images img { aspect-ratio: 4 / 3; border-radius: 10px; }
  .study-images figure { border-radius: 10px; }
  .study-images figcaption { font-size: 11px; letter-spacing: .04em; line-height: 1.4; }

  /* Team: compact cards, two-column partner grid */
  .team-grid { gap: 12px; }
  .member { display: grid; grid-template-columns: 116px 1fr; align-items: center; }
  .member-media img { width: 70%; }
  .member-media .num-chip { display: none; }
  .member-body { padding: 16px 18px; }
  .member-body h3 { font-size: 21px; }
  .member-body .learn-more { margin-top: 10px; }
  .partner-grid { grid-template-columns: 1fr 1fr; }
  .partner-grid > div { padding: 18px 14px; font-size: 15px; min-height: 72px; }

  /* Hero bubbles stay behind text without competing with it on narrow screens */
  .page-hero .bubble-field { opacity: .55; }

  /* Bio pages: smaller portrait */
  .bio { gap: 28px; margin-top: 28px !important; }
  .bio-media { max-width: 260px; }
  .bio-list li { font-size: 16px; grid-template-columns: 36px 1fr; padding: 18px 0; }

  /* Contact & shop */
  .topic { min-height: 40px; }
  .contact-social a { padding: 10px 0; }
  .contact-list { margin-top: 36px; }
  .shop-top { padding-top: 48px; padding-bottom: 64px; }
  .shop-grid { gap: 32px; margin-top: 24px; }
  .config { padding: 16px; }
  .config-name { font-size: 16px; }
  .spec { padding: 20px 22px; }
  .spec-val { font-size: 18px; }

  /* Footer: site and contact links side by side, with thumb-sized rows */
  .footer-main { gap: 36px 20px; padding-top: 56px; }
  .footer-col { flex: 1 1 40%; }
  .footer-links { gap: 0; margin-top: 8px; }
  .footer-links a { padding: 11px 0; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

/* Theme toggle tooltip: says what the switch will do (mouse and keyboard only) */
.theme-toggle { position: relative; white-space: nowrap; }
@media (hover: hover) {
  .nav-actions .theme-toggle[aria-label]::after {
    content: attr(aria-label); position: absolute; top: calc(100% + 10px); left: 50%; z-index: 70;
    padding: 7px 11px; border-radius: 8px; white-space: nowrap; pointer-events: none;
    background: var(--sf); color: var(--ink); border: 1px solid rgba(var(--acr), .25);
    font-size: 12px; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5);
    opacity: 0; transform: translate(-50%, -4px); transition: opacity .2s, transform .25s var(--ease);
  }
  .nav-actions .theme-toggle:hover::after, .nav-actions .theme-toggle:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------- Hydrotherapy ---------- */
.flow { border-top: 1px solid rgba(var(--ln), .1); }
.flow-row {
  display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: baseline;
  padding: 22px 4px; border-bottom: 1px solid rgba(var(--ln), .1);
  font-size: 17px; line-height: 1.6; color: var(--m4);
}
.flow-row.is-step { grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.4fr); }
.flow-title { font-size: clamp(18px, 1.6vw, 21px); letter-spacing: -.015em; color: var(--ink); }
.flow-text { font-size: 15px; color: var(--m3); }
.section-intro { max-width: 760px; margin: -16px 0 40px; font-size: 17px; }
.step .meta-12 + h3 { margin-top: 18px; }
.spec-sub { font-size: 14px; color: var(--m3); margin-top: 6px; line-height: 1.5; }
.guest-list li { position: relative; padding-left: 20px; font-size: 15px; line-height: 1.6; color: var(--m4); }
.guest-list li::before { content: "•"; position: absolute; left: 0; color: var(--ac); }
.notice { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; letter-spacing: -.01em; margin-top: 12px; text-wrap: pretty; }
.notice.is-muted { font-size: 14px; color: var(--m3); letter-spacing: 0; margin-top: 16px; }
@media (max-width: 640px) {
  .flow-row, .flow-row.is-step { grid-template-columns: 40px 1fr; padding: 18px 2px; font-size: 16px; }
  .flow-row.is-step .flow-text { grid-column: 2; margin-top: -10px; }
  .section-intro { margin: -8px 0 28px; font-size: 16px; }
}

/* ---------- Reduced motion: everything holds still ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  @view-transition { navigation: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .bubble { animation: none; }
  .orb { animation: none; opacity: .75; }
  .feature-card:hover { transform: none; }
  .study { animation: none; }
  .orb-ring, .orb-ring-inner, .chip, .product-img, .cta .wash,
  .member-media::before, .bio-media::before, .bar-fill.is-nbot::after, .main-bar::after,
  .hero-grid, .app-hero, .page-hero-inner, main, .mobile-menu.is-open, .mobile-menu.is-open .mobile-menu-body > *,
  .nav-dropdown.is-open .dropdown-item, .sent:not([hidden]) .check, .sent:not([hidden]) > * { animation: none !important; }
  .orb-wrap::before, .orb-wrap::after, .bio-media::after, .step.is-final .step-num::after, .sent .check::after { display: none; }
  .main-bar::after { transform: scaleX(0); }
  .orb, .orb-stat, .orb-ring-inner, .chip { translate: none !important; }
  .feature-card:hover .feature-media img, .member:hover .member-media img, .study-images figure:hover img { transform: none; }
}
