@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/outfit-latin-wght.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #e8eef5;
  --ink: #15202b;
  --muted: #5a6876;
  --accent: #0f766e;
  --accent-strong: #0b5f59;
  --accent-rgb: 15, 118, 110;
  --accent-soft: rgba(var(--accent-rgb), 0.14);
  --accent-mid: rgba(var(--accent-rgb), 0.28);
  --glass: rgba(255, 255, 255, 0.42);
  --glass-strong: rgba(255, 255, 255, 0.68);
  --glass-border: rgba(255, 255, 255, 0.72);
  --glass-edge: rgba(21, 32, 43, 0.1);
  --glass-highlight: rgba(255, 255, 255, 0.78);
  --shadow-soft: 0 18px 50px rgba(21, 32, 43, 0.1);
  --shadow-deep: 0 28px 70px rgba(21, 32, 43, 0.16);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --header-h: calc(4.5rem + var(--safe-top));
  --max: 72rem;
  --gutter: clamp(1.15rem, 4.2vw, 2.5rem);
  --radius-xl: 1.85rem;
  --radius-lg: 1.45rem;
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-glass: cubic-bezier(0.34, 1.3, 0.64, 1);
  --blur: 32px;
  --theme-meta: #e8eef5;
  --orb-a: rgba(125, 186, 232, 0.45);
  --orb-b: rgba(110, 198, 186, 0.38);
  --orb-c: rgba(168, 184, 214, 0.35);
  --grad-base: linear-gradient(165deg, #eef3f8 0%, #e4ebf3 48%, #dde7f0 100%);
  --line-soft: rgba(21, 32, 43, 0.08);
  --sch-case-stroke: #9aa8b8;
  --sch-inner-fill: #fbfcfe;
  --sch-inner-stroke: #c5d0dc;
  --sch-wash-a: #f7fafc;
  --sch-wash-b: #e7eef5;
  --sch-module: rgba(255, 255, 255, 0.92);
  --sch-chip: #eef4f8;
  --sch-label: #5a6876;
  --sch-grid: rgba(183, 196, 210, 0.4);
  --sch-tick: #7f8f9f;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d1218;
  --ink: #eef3f8;
  --muted: #9aa6b4;
  --glass: rgba(22, 28, 38, 0.55);
  --glass-strong: rgba(30, 38, 50, 0.78);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-edge: rgba(255, 255, 255, 0.12);
  --glass-highlight: rgba(255, 255, 255, 0.16);
  --shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.35);
  --shadow-deep: 0 28px 70px rgba(0, 0, 0, 0.45);
  --theme-meta: #0d1218;
  --orb-a: rgba(56, 120, 170, 0.28);
  --orb-b: rgba(var(--accent-rgb), 0.22);
  --orb-c: rgba(90, 110, 150, 0.2);
  --grad-base: linear-gradient(165deg, #10161e 0%, #0d1218 48%, #0a0f14 100%);
  --line-soft: rgba(255, 255, 255, 0.1);
  --sch-case-stroke: #5a6a7c;
  --sch-inner-fill: #151c26;
  --sch-inner-stroke: #3a4656;
  --sch-wash-a: #1a2330;
  --sch-wash-b: #121820;
  --sch-module: rgba(28, 36, 48, 0.95);
  --sch-chip: #0f151d;
  --sch-label: #9aa6b4;
  --sch-grid: rgba(120, 140, 160, 0.22);
  --sch-tick: #7a8a9c;
}

html[data-theme="light"] {
  color-scheme: light;
}

body[data-accent="teal"] {
  --accent: #0f766e;
  --accent-strong: #0b5f59;
  --accent-rgb: 15, 118, 110;
}

body[data-accent="azure"] {
  --accent: #1d6fd8;
  --accent-strong: #1557ad;
  --accent-rgb: 29, 111, 216;
}

body[data-accent="amber"] {
  --accent: #c27803;
  --accent-strong: #9a5f02;
  --accent-rgb: 194, 120, 3;
}

body[data-accent="rose"] {
  --accent: #c45b6a;
  --accent-strong: #a34452;
  --accent-rgb: 196, 91, 106;
}

body[data-accent="forest"] {
  --accent: #3f7d4e;
  --accent-strong: #2f5f3b;
  --accent-rgb: 63, 125, 78;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  font-family: var(--font);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-strong);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection {
  background: var(--accent);
  color: #fff;
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  padding: 0.7rem 1rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.75rem;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

.page-bg {
  position: relative;
  isolation: isolate;
}

.page-bg::before {
  content: "";
  position: fixed;
  inset: 0;
  top: calc(-1 * var(--safe-top));
  right: calc(-1 * var(--safe-right));
  bottom: calc(-1 * var(--safe-bottom));
  left: calc(-1 * var(--safe-left));
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 12% -5%, var(--orb-a), transparent 58%),
    radial-gradient(ellipse 55% 45% at 92% 8%, var(--orb-b), transparent 55%),
    radial-gradient(ellipse 50% 40% at 70% 95%, var(--orb-c), transparent 60%),
    var(--grad-base);
}

.page-bg::after {
  content: "";
  position: fixed;
  inset: 0;
  top: calc(-1 * var(--safe-top));
  right: calc(-1 * var(--safe-right));
  bottom: calc(-1 * var(--safe-bottom));
  left: calc(-1 * var(--safe-left));
  z-index: -1;
  pointer-events: none;
  opacity: 0.3;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 4rem 4rem;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 30%, #000 15%, transparent 78%);
}

.wrap {
  width: min(100%, var(--max));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.glass-panel {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow:
    var(--shadow-soft),
    inset 0 1px 0 var(--glass-highlight),
    inset 0 -1px 0 rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(var(--blur)) saturate(1.45);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.45);
}

/* Header
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  min-height: var(--header-h);
  height: auto;
  display: flex;
  align-items: center;
  padding: calc(0.45rem + var(--safe-top)) var(--safe-right) 0.55rem var(--safe-left);
  pointer-events: none;
}

body.nav-open .site-header {
  z-index: 160;
}

.site-header .wrap,
.site-header .header-inner,
.site-header a,
.site-header button,
.site-header nav {
  pointer-events: auto;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  width: 100%;
  min-height: 3.5rem;
  padding: 0.4rem 0.55rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  box-shadow: var(--shadow-soft), inset 0 1px 0 var(--glass-highlight);
  backdrop-filter: blur(28px) saturate(1.5);
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
}

.site-header .wrap {
  width: min(100% - 1.25rem, var(--max));
  margin-inline: auto;
  padding-inline: 0;
}

.theme-controls {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.theme-swatch {
  position: relative;
  z-index: 3;
  width: 2.15rem;
  height: 2.15rem;
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.55), transparent 45%),
    var(--accent);
  box-shadow:
    0 8px 20px rgba(var(--accent-rgb), 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
  transition: transform 0.25s var(--ease-glass), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.theme-swatch:hover {
  transform: scale(1.06);
}

.theme-swatch:active {
  transform: scale(0.94);
}

.theme-mode {
  position: relative;
  z-index: 3;
  min-height: 2.15rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass-strong);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: inset 0 1px 0 var(--glass-highlight), 0 8px 18px rgba(21, 32, 43, 0.08);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  transition: transform 0.25s var(--ease-glass), background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.theme-mode:hover {
  transform: scale(1.04);
  border-color: rgba(var(--accent-rgb), 0.35);
  color: var(--accent-strong);
}

.theme-mode:active {
  transform: scale(0.96);
}

.logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  text-align: center;
  max-width: min(52%, 18rem);
  z-index: 1;
  pointer-events: auto;
}

.logo:hover {
  color: var(--ink);
  transform: translateX(-50%);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.logo-text strong {
  font-size: clamp(0.78rem, 2.8vw, 0.98rem);
  font-weight: 650;
  letter-spacing: -0.015em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logo-text span {
  font-size: 0.66rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-toggle {
  position: relative;
  z-index: 3;
  box-sizing: border-box;
  flex: 0 0 2.2rem;
  width: 2.2rem;
  height: 2.2rem;
  min-width: 2.2rem;
  min-height: 2.2rem;
  max-width: 2.2rem;
  max-height: 2.2rem;
  margin-left: auto;
  aspect-ratio: 1 / 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.18));
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  box-shadow:
    0 8px 20px rgba(21, 32, 43, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -0.5px 0 rgba(21, 32, 43, 0.06);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  transition: transform 0.3s var(--ease-glass), background 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

html[data-theme="dark"] .nav-toggle {
  border-color: rgba(255, 255, 255, 0.2);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -0.5px 0 rgba(0, 0, 0, 0.25);
}

.nav-toggle:hover {
  transform: scale(1.06);
  border-color: rgba(var(--accent-rgb), 0.4);
}

.nav-toggle[aria-expanded="true"] {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.5), rgba(var(--accent-rgb), 0.28));
  border-color: rgba(var(--accent-rgb), 0.45);
  color: var(--accent-strong);
  box-shadow:
    0 8px 20px rgba(var(--accent-rgb), 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.hamburger {
  position: relative;
  width: 12px;
  height: 1.25px;
  background: currentColor;
  display: block;
  border-radius: 999px;
  opacity: 0.9;
  transition: background 0.2s, opacity 0.2s;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 12px;
  height: 1.25px;
  background: currentColor;
  border-radius: 999px;
  transition: transform 0.3s var(--ease-glass);
}

.hamburger::before { top: -4.5px; }
.hamburger::after { top: 4.5px; }

.nav-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
  opacity: 1;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
  transform: translateY(4.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
  transform: translateY(-4.5px) rotate(-45deg);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(10, 14, 20, 0.42);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}

.nav-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.site-nav {
  position: fixed;
  top: calc(var(--header-h) + 0.35rem);
  right: 0.85rem;
  left: 0.85rem;
  z-index: 150;
  max-height: calc(100dvh - var(--header-h) - 1.25rem);
  overflow-y: auto;
  padding: 0.85rem;
  border-radius: 1.75rem;
  background: rgba(248, 251, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-deep), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(48px) saturate(1.7);
  -webkit-backdrop-filter: blur(48px) saturate(1.7);
  transform: translateY(-0.65rem) scale(0.96);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    transform 0.45s var(--ease-glass),
    opacity 0.3s var(--ease),
    visibility 0.3s;
}

html[data-theme="dark"] .site-nav {
  background: rgba(16, 22, 32, 0.96);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-deep), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.site-nav.is-open {
  transform: none;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.site-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0.55rem 1rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.12rem;
  font-weight: 600;
  border-radius: 999px;
  position: relative;
  transition: color 0.2s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.site-nav a:hover {
  color: var(--accent-strong);
  background: rgba(var(--accent-rgb), 0.1);
}

.site-nav a[aria-current="page"] {
  color: var(--accent-strong);
  background: rgba(var(--accent-rgb), 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 8px 22px rgba(var(--accent-rgb), 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 92%, white), var(--accent));
  color: #fff;
  box-shadow: 0 12px 28px rgba(var(--accent-rgb), 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn-primary:hover {
  background: var(--accent-strong);
  color: #fff;
}

.btn-glass {
  background: var(--glass);
  color: var(--ink);
  border-color: var(--glass-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 var(--glass-highlight), 0 10px 24px rgba(21, 32, 43, 0.06);
}

.btn-glass:hover {
  background: var(--glass-strong);
  color: var(--accent-strong);
  border-color: rgba(var(--accent-rgb), 0.28);
}

/* Slide rail
   ========================================================================== */

.slide-rail {
  position: fixed;
  right: max(0.65rem, var(--safe-right));
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 0.5rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  box-shadow: var(--shadow-soft), inset 0 1px 0 var(--glass-highlight);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
}

.slide-rail a {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 22%, transparent);
  text-decoration: none;
  transition: height 0.35s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

.slide-rail a.is-active,
.slide-rail a[aria-current="true"] {
  height: 1.45rem;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.16);
}

.slide-rail a:hover {
  background: var(--accent-mid);
}

/* Snap panels
   ========================================================================== */

.snap-root {
  height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: auto;
  overscroll-behavior-y: contain;
}

.snap-root.is-animating {
  scroll-snap-type: none;
  pointer-events: none;
}

.snap-track {
  min-height: 100%;
}

.panel {
  position: relative;
  min-height: 100dvh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 1.25rem) 0 2.5rem;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.panel-inner {
  width: 100%;
}

.panel-copy {
  margin-bottom: 1.75rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(var(--accent-rgb), 0.14);
}

.panel h1,
.panel h2 {
  margin: 0 0 1rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--ink);
}

.panel h1 {
  font-size: clamp(2.35rem, 7.5vw, 4.5rem);
  max-width: 14ch;
}

.panel h2 {
  font-size: clamp(1.85rem, 4.8vw, 3rem);
  max-width: 22ch;
}

.lede,
.section-intro {
  margin: 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.lede {
  margin-bottom: 1.75rem;
}

/* Hero + schematic
   ========================================================================== */

.hero-grid {
  display: grid;
  gap: 2.25rem;
  align-items: center;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.schematic-frame {
  width: min(100%, 24rem);
  padding: 1rem;
  border-radius: calc(var(--radius-xl) + 0.35rem);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft), inset 0 1px 0 var(--glass-highlight);
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
}

.schematic {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

.sch-wash-a { stop-color: var(--sch-wash-a); }
.sch-wash-b { stop-color: var(--sch-wash-b); }
.sch-case { fill: url(#boardWash); stroke: var(--sch-case-stroke); stroke-width: 1.25; }
.sch-inner { fill: var(--sch-inner-fill); stroke: var(--sch-inner-stroke); stroke-width: 1; }
.sch-grid { stroke: var(--sch-grid); stroke-width: 0.6; }
.sch-ticks { stroke: var(--sch-tick); stroke-width: 1; stroke-linecap: square; }
.sch-board { fill: var(--sch-module); stroke: var(--sch-case-stroke); stroke-width: 1.2; }
.sch-board-line { stroke: var(--sch-inner-stroke); stroke-width: 1; }
.sch-module { fill: var(--sch-module); }
.sch-chip { fill: var(--sch-chip); stroke: var(--sch-case-stroke); stroke-width: 1; }
.sch-accent-stroke { stroke: var(--accent); stroke-width: 1.35; }
.sch-accent-stroke.sch-thin { stroke-width: 1.35; fill: none; stroke-linecap: round; }
.sch-mute-stroke { stroke: var(--sch-case-stroke); stroke-width: 1.2; }
.sch-accent-fill { fill: var(--accent); }
.sch-mute-fill { fill: var(--sch-case-stroke); }
.sch-trace { fill: none; stroke: var(--accent); stroke-opacity: 0.35; stroke-width: 1.2; }
.sch-bar { fill: var(--accent); opacity: 0.28; }
.sch-bar-dim { opacity: 0.14; }
.sch-fan { fill: var(--sch-chip); stroke: var(--sch-case-stroke); }
.sch-fan-hub { opacity: 0.25; }
.sch-label {
  fill: var(--sch-label);
  font-family: Outfit, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
}
.sch-callout { stroke: var(--accent); stroke-opacity: 0.45; stroke-width: 1; fill: var(--accent); }

/* About / services
   ========================================================================== */

.about-panel {
  display: grid;
  gap: 1.75rem;
  padding: clamp(1.35rem, 3.5vw, 2.25rem);
}

.quote {
  margin: 0;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.quote p { margin: 0; }

.about-notes {
  display: grid;
  gap: 0.85rem;
  margin: 0;
}

.about-notes div {
  padding: 0.95rem 0 0;
  border-top: 1px solid var(--line-soft);
}

.about-notes dt {
  margin: 0 0 0.3rem;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.about-notes dd {
  margin: 0;
  color: var(--muted);
}

.service-grid {
  display: grid;
  gap: 0.9rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.4rem 1.3rem 1.5rem;
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.service-card:hover {
  transform: translateY(-3px);
  background: var(--glass-strong);
  border-color: rgba(var(--accent-rgb), 0.28);
  color: inherit;
}

.service-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.price {
  margin: 0 0 0.75rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.price span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

/* Process carousel
   ========================================================================== */

.process-carousel {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
  width: min(100%, 24rem);
  margin-inline: auto;
}

.process-arrow {
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass-strong);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-soft), inset 0 1px 0 var(--glass-highlight);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  transition: transform 0.25s var(--ease-glass), background 0.2s var(--ease), color 0.2s var(--ease);
}

.process-arrow:hover {
  transform: scale(1.06);
  color: var(--accent-strong);
  background: rgba(var(--accent-rgb), 0.14);
}

.process-arrow:active {
  transform: scale(0.94);
}

.process-arrow svg {
  width: 1.05rem;
  height: 1.05rem;
}

.process-stage {
  position: relative;
  flex: 0 1 auto;
  width: min(100%, 17.5rem);
  min-width: 0;
}

.process-stack {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  height: auto;
  min-height: 11.5rem;
  perspective: 900px;
}

.process-step {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 1.05rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  opacity: 0;
  pointer-events: none;
  transform: translateX(14%) scale(0.94) rotateY(-6deg);
  transition:
    transform 0.5s var(--ease),
    opacity 0.4s var(--ease),
    filter 0.4s var(--ease);
  filter: blur(2px);
}

.process-step.is-active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  transform: none;
  filter: none;
  z-index: 4;
}

.process-step.is-prev,
.process-step.is-next {
  position: absolute;
}

.process-step.is-prev {
  opacity: 0.3;
  transform: translateX(-8%) scale(0.95) rotateY(5deg);
  z-index: 2;
  filter: blur(1px);
}

.process-step.is-next {
  opacity: 0.4;
  transform: translateX(6%) scale(0.96) translateY(0.4rem);
  z-index: 3;
  filter: blur(0.5px);
}

.process-index {
  display: inline-block;
  margin-bottom: 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.process-label {
  display: inline-block;
  margin-bottom: 0.3rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.process-step h3 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.process-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.process-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.process-dots span {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 18%, transparent);
  transition: width 0.3s var(--ease), background 0.25s var(--ease);
}

.process-dots span.is-active {
  width: 1.25rem;
  background: var(--accent);
}

/* Contact / footer
   ========================================================================== */

.panel-contact {
  justify-content: space-between;
  padding-bottom: 0;
}

.panel-contact > .panel-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 2rem;
}

.contact-grid {
  display: grid;
  gap: 0.9rem;
  margin-top: 0.25rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 8.5rem;
  padding: 1.4rem;
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.contact-card:hover {
  transform: translateY(-3px);
  background: var(--glass-strong);
  border-color: rgba(var(--accent-rgb), 0.28);
  color: inherit;
}

.contact-card span {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.contact-card strong {
  font-size: clamp(1.02rem, 2.2vw, 1.35rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  word-break: break-word;
}

.contact-note {
  margin: 1.25rem 0 0;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 1.35rem 0 calc(1.6rem + var(--safe-bottom));
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.15rem;
}

.footer-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
}

/* 404
   ========================================================================== */

body:not(:has(.snap-root)) .site-header {
  position: sticky;
  pointer-events: auto;
}

body:not(:has(.snap-root)) main.section {
  padding: calc(var(--header-h) + 2rem) 0 4rem;
}

body:not(:has(.snap-root)) .section-kicker {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Desktop
   ========================================================================== */

@media (min-width: 768px) {
  .header-inner {
    padding-inline: 0.65rem 0.55rem;
  }

  .logo {
    max-width: min(36%, 20rem);
  }

  .nav-toggle,
  .nav-backdrop {
    display: none !important;
  }

  .site-nav {
    position: static;
    top: auto;
    right: auto;
    left: auto;
    max-height: none;
    overflow: visible;
    margin-left: auto;
    background: none;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    filter: none;
  }

  .site-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 0.15rem;
    padding: 0.15rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--glass) 70%, transparent);
    border: 1px solid color-mix(in srgb, var(--glass-border) 80%, transparent);
    box-shadow: inset 0 1px 0 var(--glass-highlight);
  }

  .site-nav a {
    min-height: 2.45rem;
    padding: 0.4rem 0.9rem;
    font-size: 0.9rem;
  }

  .site-nav a[aria-current="page"] {
    background: rgba(var(--accent-rgb), 0.18);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.5),
      0 6px 18px rgba(var(--accent-rgb), 0.18);
  }

  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.5rem;
  }

  .schematic-frame {
    width: min(100%, 26rem);
  }

  .about-panel {
    grid-template-columns: 1.35fr 0.85fr;
    gap: 2.25rem;
    align-items: start;
  }

  .about-notes { gap: 0; }

  .about-notes div {
    padding: 1rem 0;
  }

  .about-notes div:first-child {
    padding-top: 0;
    border-top: 0;
  }

  .service-grid {
    grid-template-columns: 1fr 1fr;
  }

  .process-carousel {
    gap: 0.75rem;
    width: min(100%, 26rem);
  }

  .process-arrow {
    width: 2.65rem;
    height: 2.65rem;
  }

  .process-stage {
    width: min(100%, 18.25rem);
  }

  .process-stack {
    min-height: 11.5rem;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .slide-rail {
    right: max(1rem, var(--safe-right));
  }
}

@media (min-width: 1024px) {
  .hero-grid { gap: 3.5rem; }

  .service-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .panel-inner {
    padding-right: 2.5rem;
  }

  .logo-text strong {
    font-size: 1.02rem;
  }
}

@media (min-width: 1440px) {
  :root { --max: 78rem; }
}

/* Mobile pager mode helpers
   ========================================================================== */

@media (max-width: 767px) {
  html.pager-lock,
  html.pager-lock body,
  body.pager-lock {
    overscroll-behavior-y: none;
    overscroll-behavior: none;
  }

  .snap-root.is-pager {
    overflow: hidden;
    scroll-snap-type: none;
    /* Own all vertical gestures so the browser cannot pull-to-refresh */
    touch-action: none;
    overscroll-behavior: none;
  }

  .snap-root.is-pager .snap-track {
    height: 100%;
    transition: transform 0.55s var(--ease);
    will-change: transform;
  }

  .snap-root.is-pager .snap-track.is-dragging {
    transition: none;
  }

  .snap-root.is-pager .panel {
    height: 100%;
    min-height: 100%;
    max-height: 100%;
    overflow-y: auto;
    overscroll-behavior: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-align: none;
    justify-content: flex-start;
    padding-top: calc(var(--header-h) + 1rem);
    padding-bottom: calc(2rem + var(--safe-bottom));
    padding-left: var(--safe-left);
    padding-right: var(--safe-right);
    transform-origin: 50% 50%;
    transition: transform 0.2s var(--ease);
    touch-action: none;
  }

  .snap-root.is-pager .panel.is-stretching {
    transition: none;
    will-change: transform;
  }

  .snap-root.is-pager .panel.is-stretching::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 2.75rem;
    height: 0.28rem;
    border-radius: 999px;
    background: rgba(var(--accent-rgb), 0.5);
    box-shadow: 0 0 0 6px rgba(var(--accent-rgb), 0.14);
    transform: translateX(-50%);
    pointer-events: none;
    opacity: 0.95;
    z-index: 5;
  }

  .snap-root.is-pager .panel.is-stretching[data-stretch="next"]::after {
    top: calc(var(--header-h) + 0.35rem);
    bottom: auto;
  }

  .snap-root.is-pager .panel.is-stretching[data-stretch="prev"]::after {
    top: auto;
    bottom: 0.85rem;
  }

  .schematic-frame {
    width: min(100%, 18.5rem);
    padding: 0.75rem;
  }

  .process-carousel {
    gap: 0.4rem;
    width: min(100%, 100%);
    padding-inline: 0;
  }

  .process-arrow {
    width: 2.35rem;
    height: 2.35rem;
    flex-shrink: 0;
  }

  .process-stage {
    width: min(100%, 17.5rem);
    min-width: 0;
  }

  .process-stack {
    min-height: 12.25rem;
  }

  .process-step {
    padding: 0.95rem 1rem 1.05rem;
  }

  .process-step p {
    font-size: 0.88rem;
  }

  .service-card {
    padding: 1.05rem 1.1rem 1.15rem;
  }
}

@media (max-height: 720px) and (min-width: 768px) {
  .panel {
    justify-content: flex-start;
    padding-top: calc(var(--header-h) + 1rem);
    padding-bottom: 1.5rem;
  }

  .panel h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
  .panel h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }

  .schematic-frame {
    width: min(100%, 20rem);
    padding: 0.75rem;
  }

  .process-stack { min-height: 11rem; }
}

@media (prefers-reduced-motion: reduce) {
  html,
  .snap-root,
  .snap-root.is-pager .snap-track {
    scroll-behavior: auto;
    transition: none !important;
  }

  .btn,
  .service-card,
  .contact-card,
  .site-nav,
  .slide-rail a,
  .process-step,
  .process-arrow,
  .nav-toggle,
  .theme-swatch,
  .theme-mode,
  .hamburger::before,
  .hamburger::after,
  .nav-backdrop {
    transition: none !important;
  }

  .btn:hover,
  .service-card:hover,
  .contact-card:hover,
  .process-arrow:hover {
    transform: none;
  }

  .snap-root {
    scroll-snap-type: y proximity;
  }

  .site-nav {
    filter: none;
  }
}
