/* ==========================================================================
   SAMARPAK LABS — LIQUID GLASS DESIGN SYSTEM
   --------------------------------------------------------------------------
   Obsidian · Silver · Electric Blue

   Contents
   01. Design tokens
   02. Reset & base elements
   03. Typography
   04. Layout primitives
   05. Liquid Glass surfaces
   06. Buttons & controls
   07. Status pills, tags & notices
   08. Site header & navigation
   09. Hero (Chapter 01)
   10. Section scaffolding & scroll reveals
   11. Chapter 02 — The reason we build
   12. Chapter 03 — Idea to experience timeline
   13. Chapter 04 — Product universe
   14. Chapter 05 — Principles
   15. Chapter 06 — The future
   16. Product detail pages
   17. About page
   18. Contact page
   19. Privacy page
   20. 404 page
   21. Site footer
   22. Accessibility, motion & feature fallbacks
   23. Print
   ========================================================================== */

/* ==========================================================================
   01. DESIGN TOKENS
   ========================================================================== */

:root {
  /* --- Core palette ---------------------------------------------------- */
  --obsidian: #080a0f;
  --graphite: #10141c;
  --surface: #171d27;
  --surface-2: #1d2431;
  --silver: #c7cfda;
  --white: #f5f7fa;
  --blue: #4c8dff;
  --cyan: #69e1ff;
  --muted: #99a4b5;

  /* --- Derived --------------------------------------------------------- */
  --ink: var(--white);
  --ink-soft: #d6dde8;
  --ink-muted: var(--muted);

  --line: rgba(199, 207, 218, 0.12);
  --line-soft: rgba(199, 207, 218, 0.07);
  --line-strong: rgba(199, 207, 218, 0.22);

  --glass-bg: rgba(23, 29, 39, 0.55);
  --glass-bg-strong: rgba(16, 20, 28, 0.78);
  --glass-hi: rgba(255, 255, 255, 0.09);
  --glass-edge: rgba(255, 255, 255, 0.28);

  --blue-glow: rgba(76, 141, 255, 0.35);
  --cyan-glow: rgba(105, 225, 255, 0.28);

  /* --- Radii ----------------------------------------------------------- */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 36px;
  --r-2xl: 44px;
  --r-full: 999px;

  /* --- Elevation ------------------------------------------------------- */
  --sh-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --sh-2: 0 10px 24px -14px rgba(0, 0, 0, 0.85);
  --sh-3: 0 26px 60px -32px rgba(0, 0, 0, 0.95);
  --sh-4: 0 48px 110px -48px rgba(0, 0, 0, 1);
  --sh-blue: 0 22px 60px -30px rgba(76, 141, 255, 0.55);

  /* --- Type ------------------------------------------------------------ */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji";
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;

  --fs-eyebrow: 0.75rem;
  --fs-body: 1rem;
  --fs-lead: clamp(1.0625rem, 0.98rem + 0.4vw, 1.1875rem);
  --fs-h4: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --fs-h3: clamp(1.25rem, 1.15rem + 0.6vw, 1.5rem);
  --fs-h2: clamp(1.875rem, 1.5rem + 2.2vw, 3.25rem);
  --fs-h1: clamp(2.5rem, 1.6rem + 5.4vw, 5.25rem);
  --fs-display: clamp(3rem, 1.5rem + 8vw, 7rem);

  --lh-tight: 1.04;
  --lh-snug: 1.16;
  --lh-body: 1.65;

  --tr-fast: 140ms cubic-bezier(0.32, 0.72, 0, 1);
  --tr: 260ms cubic-bezier(0.32, 0.72, 0, 1);
  --tr-slow: 620ms cubic-bezier(0.16, 1, 0.3, 1);

  /* --- Layout ---------------------------------------------------------- */
  --shell: 1200px;
  --shell-wide: 1360px;
  --shell-narrow: 760px;
  --gutter: clamp(1.125rem, 0.7rem + 2.4vw, 2.75rem);
  --header-h: 68px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  color-scheme: dark;
}

@media (min-width: 900px) {
  :root {
    --header-h: 78px;
  }
}

/* ==========================================================================
   02. RESET & BASE ELEMENTS
   ========================================================================== */

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Offset anchor targets so the fixed header never covers them. */
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

body {
  min-height: 100vh;
  min-height: 100svh;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink-soft);
  background-color: var(--obsidian);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis-weight: none;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

/* Atmospheric depth: layered light sources, painted once, never animated. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(
      68% 44% at 78% -6%,
      rgba(76, 141, 255, 0.2),
      transparent 62%
    ),
    radial-gradient(52% 38% at 6% 12%, rgba(105, 225, 255, 0.11), transparent 60%),
    radial-gradient(
      90% 60% at 50% 118%,
      rgba(76, 141, 255, 0.13),
      transparent 64%
    ),
    linear-gradient(180deg, #0a0d14 0%, var(--obsidian) 38%, #06080c 100%);
}

/* Faint engineered grid — the studio's signature measurement motif. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 92px 92px;
  -webkit-mask-image: radial-gradient(
    120% 90% at 50% 0%,
    #000 0%,
    transparent 78%
  );
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 0%, transparent 78%);
}

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

img,
svg {
  border-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: var(--cyan);
  text-decoration-color: rgba(105, 225, 255, 0.35);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color var(--tr-fast), text-decoration-color var(--tr-fast);
}

a:hover {
  color: var(--white);
  text-decoration-color: currentColor;
}

:where(h1, h2, h3, h4) {
  text-wrap: balance;
  color: var(--white);
  font-weight: 600;
  letter-spacing: -0.022em;
}

p {
  text-wrap: pretty;
}

hr {
  height: 1px;
  border: 0;
  background: linear-gradient(
    90deg,
    transparent,
    var(--line-strong) 18%,
    var(--line-strong) 82%,
    transparent
  );
}

::selection {
  background: rgba(76, 141, 255, 0.32);
  color: var(--white);
}

/* ==========================================================================
   03. TYPOGRAPHY
   ========================================================================== */

h1,
.h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  font-weight: 650;
  letter-spacing: -0.035em;
}

h2,
.h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-snug);
  letter-spacing: -0.03em;
}

h3,
.h3 {
  font-size: var(--fs-h3);
  line-height: 1.28;
  letter-spacing: -0.02em;
}

h4,
.h4 {
  font-size: var(--fs-h4);
  line-height: 1.35;
  letter-spacing: -0.012em;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 62ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor);
}

.eyebrow--plain::before {
  display: none;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.8125em;
  letter-spacing: 0.02em;
}

.text-muted {
  color: var(--ink-muted);
}

.text-silver {
  color: var(--silver);
}

.gradient-text {
  background: linear-gradient(
    100deg,
    var(--white) 8%,
    var(--silver) 42%,
    var(--cyan) 78%,
    var(--blue) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* Fallback for engines that ignore background-clip: text */
  -webkit-text-fill-color: transparent;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .gradient-text {
    color: var(--white);
    -webkit-text-fill-color: currentColor;
    background: none;
  }
}

/* ==========================================================================
   04. LAYOUT PRIMITIVES
   ========================================================================== */

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

.shell--wide {
  max-width: var(--shell-wide);
}

.shell--narrow {
  max-width: var(--shell-narrow);
}

.section {
  position: relative;
  padding-block: clamp(4.5rem, 3rem + 8vw, 9rem);
}

.section--tight {
  padding-block: clamp(3.5rem, 2.5rem + 5vw, 6rem);
}

.section__head {
  max-width: 68ch;
  margin-bottom: clamp(2.5rem, 2rem + 3vw, 4.5rem);
}

.section__head .eyebrow {
  margin-bottom: 1.1rem;
}

.section__head h2 {
  margin-bottom: 1.15rem;
}

.section__head .lead {
  max-width: 58ch;
}

.stack {
  display: flex;
  flex-direction: column;
}

.stack--xs > * + * {
  margin-top: 0.5rem;
}
.stack--sm > * + * {
  margin-top: 0.85rem;
}
.stack--md > * + * {
  margin-top: 1.4rem;
}
.stack--lg > * + * {
  margin-top: 2.25rem;
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.cluster--lg {
  gap: 1.15rem;
}

.grid {
  display: grid;
  gap: clamp(1rem, 0.6rem + 1.4vw, 1.75rem);
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

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

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 50%;
  z-index: 200;
  transform: translate(-50%, -180%);
  padding: 0.7rem 1.25rem;
  border-radius: var(--r-full);
  background: var(--surface-2);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--line-strong);
  box-shadow: var(--sh-3);
  transition: transform var(--tr);
}

.skip-link:focus-visible {
  transform: translate(-50%, 0);
  color: var(--white);
}

#main {
  display: block;
  /* Anchor offset for the skip link target. */
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

:where(a, button, [tabindex], summary, input, textarea, select):focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

/* ==========================================================================
   05. LIQUID GLASS SURFACES
   ========================================================================== */

/*
   The recipe, layer by layer:
   1. a translucent body with a soft internal vertical gradient
   2. a 1px gradient border drawn with mask-composite (a real edge highlight)
   3. a specular sheen across the top-left, brightest where light would hit
   4. an optional ambient blue pool of light bottom-right
   5. an outer drop shadow that grounds the panel in space
*/

.glass {
  position: relative;
  isolation: isolate;
  border-radius: var(--r-lg);
  background-color: var(--glass-bg);
  background-image: linear-gradient(
    158deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.02) 34%,
    rgba(255, 255, 255, 0) 62%,
    rgba(105, 225, 255, 0.05) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    inset 0 -1px 0 rgba(255, 255, 255, 0.03),
    var(--sh-2);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
}

/* Gradient edge highlight */
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    165deg,
    var(--glass-edge) 0%,
    rgba(255, 255, 255, 0.06) 26%,
    rgba(255, 255, 255, 0) 52%,
    rgba(105, 225, 255, 0.22) 100%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

/* Specular sheen */
.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background: radial-gradient(
    130% 78% at 14% -14%,
    rgba(255, 255, 255, 0.16),
    rgba(255, 255, 255, 0.04) 38%,
    transparent 66%
  );
  pointer-events: none;
}

.glass > * {
  position: relative;
  z-index: 3;
}

/* Variants -----------------------------------------------------------------*/

.glass--strong {
  background-color: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  backdrop-filter: blur(26px) saturate(160%);
}

.glass--flat {
  background-color: rgba(23, 29, 39, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    var(--sh-1);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  backdrop-filter: blur(10px) saturate(130%);
}

.glass--blue {
  border-color: transparent;
  background-image: linear-gradient(
      158deg,
      rgba(255, 255, 255, 0.08),
      rgba(255, 255, 255, 0) 55%
    ),
    radial-gradient(
      120% 100% at 88% 108%,
      rgba(76, 141, 255, 0.26),
      transparent 62%
    );
}

.glass--cyan {
  background-image: linear-gradient(
      158deg,
      rgba(255, 255, 255, 0.08),
      rgba(255, 255, 255, 0) 55%
    ),
    radial-gradient(
      120% 100% at 88% 108%,
      rgba(105, 225, 255, 0.22),
      transparent 62%
    );
}

.glass--silver {
  background-image: linear-gradient(
      158deg,
      rgba(255, 255, 255, 0.1),
      rgba(255, 255, 255, 0) 55%
    ),
    radial-gradient(
      120% 100% at 88% 108%,
      rgba(199, 207, 218, 0.18),
      transparent 62%
    );
}

/* Padding scale ----------------------------------------------------------- */

.glass-pad {
  padding: clamp(1.35rem, 1rem + 1.6vw, 2.15rem);
}

.glass-pad--lg {
  padding: clamp(1.6rem, 1.1rem + 2.6vw, 3rem);
}

/* Pointer-responsive lighting (desktop, fine pointer only).
   --px / --py are written by main.js as percentages. */
.glass--lit {
  background-image: linear-gradient(
    158deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.02) 34%,
    rgba(255, 255, 255, 0) 62%
  );
}

.glass--lit::after {
  background:
    radial-gradient(
      26rem 26rem at var(--px, 50%) var(--py, 0%),
      rgba(105, 225, 255, 0.16),
      transparent 68%
    ),
    radial-gradient(
      130% 78% at 14% -14%,
      rgba(255, 255, 255, 0.14),
      transparent 62%
    );
  transition: background-position 400ms var(--ease-out);
}

/* Reflective hairline used to separate stacked glass layers */
.hairline {
  height: 1px;
  border: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(199, 207, 218, 0.28),
    transparent
  );
}

/* ==========================================================================
   06. BUTTONS & CONTROLS
   ========================================================================== */

.btn {
  --btn-bg: rgba(255, 255, 255, 0.05);
  --btn-fg: var(--white);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 0.7rem 1.4rem;
  border-radius: var(--r-full);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  color: var(--btn-fg);
  background-color: var(--btn-bg);
  border: 1px solid var(--line-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    var(--sh-1);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  transition:
    transform var(--tr-fast),
    box-shadow var(--tr),
    background-color var(--tr),
    border-color var(--tr),
    color var(--tr-fast);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn:hover {
  color: var(--btn-fg);
  border-color: rgba(199, 207, 218, 0.36);
  background-color: rgba(255, 255, 255, 0.09);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    var(--sh-2);
}

.btn:active {
  transform: translateY(0.5px) scale(0.985);
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.45),
    var(--sh-1);
  transition-duration: 60ms;
}

/* Primary — electric blue core with a glass rim */
.btn--primary {
  --btn-fg: #04101f;
  border-color: rgba(255, 255, 255, 0.34);
  background-image: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.34),
    rgba(255, 255, 255, 0) 46%
  );
  background-color: #6fa4ff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -8px 18px -8px rgba(4, 16, 31, 0.55),
    0 14px 34px -16px rgba(76, 141, 255, 0.85);
}

.btn--primary:hover {
  background-color: #86b6ff;
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -8px 18px -8px rgba(4, 16, 31, 0.4),
    0 20px 44px -16px rgba(76, 141, 255, 0.95);
}

.btn--primary:active {
  background-color: #5b96f2;
}

/* Secondary — pure glass */
.btn--glass {
  background-color: rgba(23, 29, 39, 0.62);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
}

.btn--glass:hover {
  background-color: rgba(31, 39, 53, 0.8);
}

/* Ghost — quiet text link with a chevron */
.btn--ghost {
  min-height: 44px;
  padding-inline: 0.85rem;
  border-color: transparent;
  background: none;
  box-shadow: none;
  color: var(--ink-soft);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.btn--ghost:hover {
  color: var(--white);
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--line);
  box-shadow: none;
  transform: none;
}

.btn--sm {
  min-height: 40px;
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
}

.btn--lg {
  min-height: 54px;
  padding: 0.85rem 1.7rem;
  font-size: 1rem;
}

.btn--block {
  width: 100%;
}

.btn__arrow {
  display: inline-block;
  transition: transform var(--tr);
}

.btn:hover .btn__arrow {
  transform: translateX(3px);
}

.btn[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
}

/* Inline text link with animated rule */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--cyan);
  text-decoration: none;
}

.link-arrow span:last-child {
  transition: transform var(--tr);
}

.link-arrow:hover span:last-child {
  transform: translateX(4px);
}

/* ==========================================================================
   07. STATUS PILLS, TAGS & NOTICES
   ========================================================================== */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.34rem 0.8rem 0.34rem 0.62rem;
  border-radius: var(--r-full);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  white-space: nowrap;
}

.pill__dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  flex: none;
}

.pill--positive .pill__dot {
  background: #55e6a5;
  box-shadow: 0 0 0 3px rgba(85, 230, 165, 0.18);
}

.pill--progress .pill__dot {
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(105, 225, 255, 0.18);
}

.pill--progress .pill__dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid rgba(105, 225, 255, 0.55);
  animation: pulse-ring 2.6s var(--ease-out) infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.6);
    opacity: 0.9;
  }
  70%,
  100% {
    transform: scale(2.1);
    opacity: 0;
  }
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: var(--r-xs);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
}

.note {
  display: flex;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  border-left: 2px solid var(--cyan);
  background: rgba(105, 225, 255, 0.05);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ink-muted);
}

.note strong {
  color: var(--white);
  font-weight: 600;
}

.note code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--silver);
}

.note__icon {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  color: var(--cyan);
}

/* ==========================================================================
   08. SITE HEADER & NAVIGATION
   ========================================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition:
    background-color var(--tr),
    border-color var(--tr),
    box-shadow var(--tr),
    -webkit-backdrop-filter var(--tr),
    backdrop-filter var(--tr);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
}

/* Scrolled state — applied by JS, with a no-JS fallback via :target-less CSS */
.site-header.is-stuck {
  background: rgba(8, 10, 15, 0.72);
  border-bottom-color: var(--line);
  box-shadow: 0 18px 40px -34px rgba(0, 0, 0, 1);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
}

/* --- Brand ------------------------------------------------------------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--white);
  margin-right: auto;
  border-radius: var(--r-sm);
}

.brand__mark {
  width: 34px;
  height: 34px;
  flex: none;
  filter: drop-shadow(0 4px 12px rgba(76, 141, 255, 0.35));
  transition: transform var(--tr);
}

.brand:hover .brand__mark {
  transform: rotate(-6deg) scale(1.04);
}

.brand__word {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand__name {
  font-size: 0.9375rem;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.brand__sub {
  margin-top: 0.28em;
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

@media (max-width: 400px) {
  .brand__sub {
    display: none;
  }
}

/* --- Desktop nav ------------------------------------------------------- */

.nav {
  display: none;
}

@media (min-width: 940px) {
  .nav {
    display: flex;
    align-items: center;
    gap: 0.15rem;
  }
}

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.85rem;
  border-radius: var(--r-full);
  font-size: 0.875rem;
  font-weight: 550;
  letter-spacing: -0.005em;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color var(--tr-fast), background-color var(--tr-fast);
}

.nav__link:hover {
  color: var(--white);
  background-color: rgba(255, 255, 255, 0.05);
}

.nav__link[aria-current="page"] {
  color: var(--white);
}

.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.15rem;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 0 10px rgba(105, 225, 255, 0.8);
}

.header__cta {
  display: none;
}

@media (min-width: 940px) {
  .header__cta {
    display: inline-flex;
  }
}

/* --- Mobile toggle ----------------------------------------------------- */

.nav-toggle {
  position: relative;
  z-index: 130;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: rgba(23, 29, 39, 0.6);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--white);
}

@media (min-width: 940px) {
  .nav-toggle {
    display: none;
  }
}

.nav-toggle__bars {
  position: relative;
  width: 18px;
  height: 12px;
}

.nav-toggle__bars span {
  position: absolute;
  left: 0;
  height: 1.5px;
  width: 100%;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--tr), opacity var(--tr-fast), top var(--tr);
}

.nav-toggle__bars span:nth-child(1) {
  top: 0;
}
.nav-toggle__bars span:nth-child(2) {
  top: 5.25px;
  width: 72%;
}
.nav-toggle__bars span:nth-child(3) {
  top: 10.5px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) {
  top: 5.25px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) {
  opacity: 0;
  transform: translateX(-6px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) {
  top: 5.25px;
  transform: rotate(-45deg);
}

/* --- Mobile panel ------------------------------------------------------ */

.nav-panel {
  position: fixed;
  inset: var(--header-h) 0 auto;
  z-index: 120;
  padding: 0 var(--gutter) 1.5rem;
  visibility: hidden;
  transform: translateY(-14px);
  opacity: 0;
  /* `visibility` is delayed so the panel can finish fading out, but flips
     instantly when opening — otherwise focus() would land on a still-hidden
     element and the menu would be unreachable by keyboard. */
  transition:
    transform var(--tr) var(--ease-out),
    opacity var(--tr) var(--ease-out),
    visibility 0s linear var(--tr);
}

.nav-panel__inner {
  border-radius: var(--r-lg);
  padding: 0.85rem;
  background: rgba(10, 13, 19, 0.9);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  backdrop-filter: blur(26px) saturate(160%);
  border: 1px solid var(--line-strong);
  box-shadow: var(--sh-4);
}

/* The panel is a sibling of the header so that backdrop-filter on the stuck
   header can never become its containing block. */
.site-header[data-open="true"] ~ .nav-panel {
  visibility: visible;
  transform: translateY(0);
  opacity: 1;
  transition:
    transform var(--tr) var(--ease-out),
    opacity var(--tr) var(--ease-out),
    visibility 0s;
}

.nav-panel__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border-radius: var(--r-md);
  font-size: 1.0625rem;
  font-weight: 550;
  color: var(--ink-soft);
  text-decoration: none;
  transition: background-color var(--tr-fast), color var(--tr-fast);
}

.nav-panel__link:hover,
.nav-panel__link:focus-visible {
  color: var(--white);
  background-color: rgba(255, 255, 255, 0.06);
}

.nav-panel__link[aria-current="page"] {
  color: var(--white);
  background-color: rgba(76, 141, 255, 0.14);
}

.nav-panel__link small {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.nav-panel__link[aria-current="page"] small {
  color: var(--cyan);
}

.nav-panel__cta {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

/* Below the header (100) so the open panel and the toggle stay clickable. */
.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(4, 6, 10, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--tr), visibility var(--tr);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.site-header[data-open="true"] ~ .nav-scrim,
.site-header[data-open="true"] + .nav-scrim {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   09. HERO (CHAPTER 01)
   ========================================================================== */

.hero {
  position: relative;
  padding-block: calc(var(--header-h) + clamp(3rem, 2rem + 6vw, 6.5rem))
    clamp(3.5rem, 2.5rem + 6vw, 7rem);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  gap: clamp(2.5rem, 2rem + 4vw, 4rem);
  align-items: center;
}

@media (min-width: 1000px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(2rem, 1rem + 3vw, 4.5rem);
  }
}

.hero__content {
  position: relative;
  z-index: 3;
  max-width: 40rem;
}

.hero__title {
  margin-block: 1.4rem 1.5rem;
  font-size: var(--fs-h1);
  font-weight: 650;
  line-height: var(--lh-tight);
  letter-spacing: -0.04em;
}

.hero__title span {
  display: block;
}

.hero__title .line-2 {
  background: linear-gradient(
    96deg,
    var(--white) 0%,
    var(--silver) 34%,
    var(--cyan) 72%,
    var(--blue) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero__title .line-2 {
    color: var(--cyan);
    -webkit-text-fill-color: currentColor;
    background: none;
  }
}

.hero__copy {
  max-width: 46ch;
  font-size: var(--fs-lead);
  color: var(--ink-muted);
}

.hero__actions {
  margin-top: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  margin-top: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.hero__meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}

.hero__meta li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan-glow);
}

/* --- Hero artwork ------------------------------------------------------ */

.hero__art {
  position: relative;
  z-index: 1;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 34rem;
  margin-inline: auto;
  pointer-events: none;
  perspective: 1200px;
}

@media (max-width: 999px) {
  .hero__art {
    max-width: 26rem;
    opacity: 0.92;
  }
}

.orb {
  position: absolute;
  inset: 12% 12% 12% 12%;
  transform-style: preserve-3d;
  animation: orb-float 14s var(--ease-in-out) infinite;
  will-change: transform;
}

@keyframes orb-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  33% {
    transform: translate3d(0, -14px, 0) rotate(1.6deg);
  }
  66% {
    transform: translate3d(0, 9px, 0) rotate(-1.2deg);
  }
}

.orb__glow {
  position: absolute;
  inset: -22%;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    rgba(76, 141, 255, 0.42),
    rgba(76, 141, 255, 0.1) 52%,
    transparent 72%
  );
  filter: blur(6px);
}

.orb__body {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(
      120% 120% at 30% 20%,
      rgba(255, 255, 255, 0.6),
      rgba(255, 255, 255, 0.08) 26%,
      transparent 52%
    ),
    radial-gradient(
      76% 76% at 74% 80%,
      rgba(76, 141, 255, 0.5),
      transparent 62%
    ),
    radial-gradient(
      140% 120% at 46% 128%,
      rgba(105, 225, 255, 0.32),
      transparent 58%
    ),
    linear-gradient(158deg, #212a3a 0%, #0d1118 58%, #070a0f 100%);
  box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, 0.45),
    inset 0 -26px 46px -18px rgba(76, 141, 255, 0.4),
    inset 0 30px 60px -30px rgba(0, 0, 0, 0.9),
    0 46px 90px -40px rgba(0, 0, 0, 1),
    0 0 90px -30px rgba(76, 141, 255, 0.45);
}

/* Specular sweep inside the orb — static gradient, animated only via the
   parent transform so no repaint of the gradient itself. */
.orb__sheen {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(
      44% 30% at 32% 16%,
      rgba(255, 255, 255, 0.72),
      rgba(255, 255, 255, 0.06) 46%,
      transparent 70%
    ),
    radial-gradient(
      22% 14% at 66% 26%,
      rgba(255, 255, 255, 0.42),
      transparent 68%
    );
}

/* Glass rim: a gradient ring masked to a 1.5px edge */
.orb__rim {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 1.5px;
  background: linear-gradient(
    150deg,
    rgba(255, 255, 255, 0.85) 0%,
    rgba(199, 207, 218, 0.22) 22%,
    rgba(255, 255, 255, 0.02) 46%,
    rgba(105, 225, 255, 0.55) 82%,
    rgba(76, 141, 255, 0.7) 100%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
}

/* Inner core — the "focal point" */
.orb__core {
  position: absolute;
  inset: 26%;
  border-radius: 50%;
  background:
    radial-gradient(
      60% 60% at 38% 32%,
      rgba(255, 255, 255, 0.5),
      transparent 60%
    ),
    radial-gradient(closest-side, rgba(105, 225, 255, 0.5), transparent 70%);
  box-shadow:
    inset 0 0 30px rgba(105, 225, 255, 0.35),
    0 0 40px rgba(76, 141, 255, 0.35);
  opacity: 0.85;
  animation: core-breathe 7s var(--ease-in-out) infinite;
}

@keyframes core-breathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.72;
  }
  50% {
    transform: scale(1.06);
    opacity: 0.95;
  }
}

/* Orbiting translucent glass rings */
.orb__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(199, 207, 218, 0.22);
  box-shadow:
    inset 0 0 24px rgba(105, 225, 255, 0.14),
    0 0 20px -6px rgba(76, 141, 255, 0.3);
  transform-style: preserve-3d;
}

.orb__ring--a {
  inset: -6% -22%;
  transform: rotateX(74deg) rotateZ(0deg);
  animation: ring-a 18s linear infinite;
  border-color: rgba(105, 225, 255, 0.3);
}

.orb__ring--b {
  inset: 6% -30%;
  transform: rotateX(70deg) rotateZ(24deg);
  animation: ring-b 26s linear infinite reverse;
  border-color: rgba(76, 141, 255, 0.28);
}

@keyframes ring-a {
  to {
    transform: rotateX(74deg) rotateZ(360deg);
  }
}

@keyframes ring-b {
  to {
    transform: rotateX(70deg) rotateZ(-336deg);
  }
}

/* Floating glass shards — secondary translucent layers */
.hero__shard {
  position: absolute;
  border-radius: var(--r-lg);
  background: rgba(23, 29, 39, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    var(--sh-3);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  backdrop-filter: blur(8px) saturate(140%);
}

.hero__shard--1 {
  width: 30%;
  height: 16%;
  top: 6%;
  right: 2%;
  border-radius: var(--r-md);
  animation: shard-1 16s var(--ease-in-out) infinite;
}

.hero__shard--2 {
  width: 22%;
  height: 22%;
  bottom: 8%;
  left: 0%;
  border-radius: var(--r-xl);
  animation: shard-2 21s var(--ease-in-out) infinite;
}

.hero__shard--3 {
  width: 14%;
  height: 14%;
  top: 40%;
  right: -2%;
  border-radius: 50%;
  animation: shard-1 13s var(--ease-in-out) infinite reverse;
}

@keyframes shard-1 {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-10px, 16px, 0);
  }
}

@keyframes shard-2 {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(14px, -12px, 0);
  }
}

/* Atmospheric dust — cheap, transform/opacity only */
.hero__dust {
  position: absolute;
  inset: 0;
}

.hero__dust i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: rgba(199, 207, 218, 0.75);
  box-shadow: 0 0 6px rgba(105, 225, 255, 0.55);
  opacity: 0;
  animation: dust var(--d) linear var(--dl, 0s) infinite;
}

@keyframes dust {
  0% {
    transform: translate3d(0, 12px, 0) scale(0.6);
    opacity: 0;
  }
  18% {
    opacity: 0.85;
  }
  75% {
    opacity: 0.5;
  }
  100% {
    transform: translate3d(14px, -70px, 0) scale(1);
    opacity: 0;
  }
}

/* --- Scroll cue -------------------------------------------------------- */

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: clamp(2.5rem, 2rem + 3vw, 4rem);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color var(--tr-fast);
}

.scroll-cue:hover {
  color: var(--white);
}

.scroll-cue__rail {
  position: relative;
  width: 1px;
  height: 42px;
  overflow: hidden;
  background: var(--line-strong);
}

.scroll-cue__rail::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 45%;
  background: linear-gradient(180deg, transparent, var(--cyan));
  animation: cue 2.4s var(--ease-in-out) infinite;
}

@keyframes cue {
  0% {
    transform: translateY(-100%);
  }
  60%,
  100% {
    transform: translateY(240%);
  }
}

/* --- Page hero (inner pages) ------------------------------------------ */

.page-hero {
  position: relative;
  padding-block: calc(var(--header-h) + clamp(2.75rem, 2rem + 4vw, 5rem))
    clamp(2.5rem, 2rem + 3vw, 4rem);
}

.page-hero__inner {
  max-width: 60rem;
}

.page-hero h1 {
  margin-block: 1.2rem 1.25rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.breadcrumb a {
  color: var(--ink-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--white);
}

.breadcrumb [aria-hidden="true"] {
  opacity: 0.5;
}

/* ==========================================================================
   10. SECTION SCAFFOLDING & SCROLL REVEALS
   ========================================================================== */

/* Reveal animations are only armed once the `js` class (added by a tiny
   inline snippet in every <head>) confirms scripting is available. Without
   JavaScript every section is simply visible. */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition:
    opacity 780ms var(--ease-out),
    transform 780ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   11. CHAPTER 02 — THE REASON WE BUILD
   ========================================================================== */

.reason {
  position: relative;
}

.reason__grid {
  display: grid;
  gap: clamp(2rem, 1.5rem + 3vw, 4rem);
  align-items: start;
}

@media (min-width: 940px) {
  .reason__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }
}

.reason__statement {
  font-size: clamp(1.5rem, 1.15rem + 1.9vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--white);
  font-weight: 600;
  text-wrap: balance;
}

.reason__statement em {
  font-style: normal;
  background: linear-gradient(96deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.reason__body p + p {
  margin-top: 1.15rem;
}

.reason__aside {
  display: grid;
  gap: 1rem;
}

.reason__stat {
  padding: 1.35rem 1.5rem;
  border-radius: var(--r-md);
}

.reason__stat dt {
  font-size: 0.75rem
  ;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.5rem;
}

.reason__stat dd {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ==========================================================================
   12. CHAPTER 03 — IDEA TO EXPERIENCE
   ========================================================================== */

.process {
  position: relative;
}

.process__track {
  position: relative;
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

@media (min-width: 860px) {
  .process__track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1180px) {
  .process__track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Connecting rail */
.process__track::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent,
    var(--line-strong) 8%,
    var(--line-strong) 92%,
    transparent
  );
}

@media (min-width: 860px) {
  .process__track::before {
    display: none;
  }
}

.step {
  position: relative;
  display: flex;
  gap: 1.1rem;
  padding: 1.35rem 1.5rem;
  border-radius: var(--r-md);
  counter-increment: step;
  transition:
    background-color var(--tr),
    border-color var(--tr),
    transform var(--tr),
    box-shadow var(--tr);
}

.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  right: 1.1rem;
  top: 1.05rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  opacity: 0.55;
}

.step__node {
  position: relative;
  z-index: 1;
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(23, 29, 39, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 6px 16px -8px rgba(0, 0, 0, 0.9);
  color: var(--silver);
  transition:
    border-color var(--tr),
    color var(--tr),
    box-shadow var(--tr),
    transform var(--tr);
}

.step__node svg {
  width: 15px;
  height: 15px;
}

.step__body h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.4rem;
}

.step__body p {
  font-size: 0.9375rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

.step.is-active {
  border-color: rgba(105, 225, 255, 0.32);
  background-color: rgba(76, 141, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 20px 44px -28px rgba(76, 141, 255, 0.9);
  transform: translateY(-2px);
}

.step.is-active .step__node {
  color: #04101f;
  border-color: rgba(255, 255, 255, 0.5);
  background: linear-gradient(180deg, #a9d0ff, #4c8dff);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 0 0 4px rgba(76, 141, 255, 0.16),
    0 8px 22px -10px rgba(76, 141, 255, 0.9);
  transform: scale(1.06);
}

.step.is-active .step__body p {
  color: var(--ink-soft);
}

/* ==========================================================================
   13. CHAPTER 04 — PRODUCT UNIVERSE
   ========================================================================== */

.products {
  position: relative;
}

.product-grid {
  display: grid;
  gap: clamp(1.15rem, 0.8rem + 1.6vw, 1.85rem);
}

@media (min-width: 780px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1120px) {
  .product-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* --- Product card ------------------------------------------------------ */

.p-card {
  --accent: var(--blue);
  --accent-alt: var(--cyan);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--r-lg);
  padding: 1px; /* room for the gradient edge */
  /* Fallbacks first, then color-mix() where supported. */
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.16),
    rgba(255, 255, 255, 0.02) 32%,
    rgba(255, 255, 255, 0) 58%,
    rgba(76, 141, 255, 0.4)
  );
  box-shadow: var(--sh-3);
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.16),
    rgba(255, 255, 255, 0.02) 32%,
    rgba(255, 255, 255, 0) 58%,
    color-mix(in srgb, var(--accent) 40%, transparent)
  );
  transition:
    transform var(--tr),
    box-shadow var(--tr);
}

.p-card__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: calc(var(--r-lg) - 1px);
  background-color: rgba(13, 17, 24, 0.82);
  background-color: color-mix(in srgb, var(--accent) 6%, rgba(13, 17, 24, 0.82));
  background-image: linear-gradient(
      158deg,
      rgba(255, 255, 255, 0.07),
      rgba(255, 255, 255, 0) 46%
    ),
    radial-gradient(
      120% 90% at 82% 106%,
      rgba(76, 141, 255, 0.22),
      transparent 62%
    );
  background-image: linear-gradient(
      158deg,
      rgba(255, 255, 255, 0.07),
      rgba(255, 255, 255, 0) 46%
    ),
    radial-gradient(
      120% 90% at 82% 106%,
      color-mix(in srgb, var(--accent) 22%, transparent),
      transparent 62%
    );
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
}

/* Pointer-responsive highlight — desktop only, transform-free, cheap. */
.p-card__inner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    22rem 22rem at var(--px, 50%) var(--py, 0%),
    rgba(105, 225, 255, 0.13),
    transparent 66%
  );
  transition: opacity var(--tr);
}

.p-card:hover .p-card__inner::after,
.p-card:focus-within .p-card__inner::after {
  opacity: 1;
}

.p-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-4);
  box-shadow: var(--sh-4),
    0 30px 70px -40px color-mix(in srgb, var(--accent) 70%, transparent);
}

.p-card:focus-within {
  transform: translateY(-4px);
}

/* Artwork plate */
.p-card__art {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(
      90% 80% at 24% 12%,
      rgba(76, 141, 255, 0.2),
      transparent 60%
    ),
    radial-gradient(
      90% 80% at 24% 12%,
      color-mix(in srgb, var(--accent) 20%, transparent),
      transparent 60%
    ),
    linear-gradient(160deg, rgba(255, 255, 255, 0.05), transparent 55%),
    var(--graphite);
}

.p-card__art::after {
  /* measurement grid — the studio motif, kept faint */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(199, 207, 218, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(199, 207, 218, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(80% 80% at 50% 50%, #000, transparent 78%);
  mask-image: radial-gradient(80% 80% at 50% 50%, #000, transparent 78%);
}

.p-card__art svg,
.p-card__art img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sheen sweep on hover — transform only */
.p-card__art::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 45%;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 255, 255, 0.14),
    transparent
  );
  transform: translateX(0) skewX(-12deg);
  transition: transform 900ms var(--ease-out);
  pointer-events: none;
}

.p-card:hover .p-card__art::before {
  transform: translateX(360%) skewX(-12deg);
}

.p-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.9rem;
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
}

.p-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.p-card__icon {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.14),
    rgba(23, 29, 39, 0.9)
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 8px 20px -10px rgba(0, 0, 0, 0.9);
  display: grid;
  place-items: center;
  color: var(--accent-alt);
}

.p-card__icon svg {
  width: 24px;
  height: 24px;
}

.p-card__title {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.p-card__category {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 0.3rem;
}

.p-card__desc {
  font-size: 0.9375rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

.p-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 0.35rem;
}

.p-card__link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent-alt);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
}

.p-card__link::after {
  /* stretch the hit area over the whole card */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.p-card__link span:last-child {
  transition: transform var(--tr);
}

.p-card:hover .p-card__link span:last-child {
  transform: translateX(4px);
}

.p-card__note {
  font-size: 0.75rem;
  color: var(--ink-muted);
}

/* ==========================================================================
   14. CHAPTER 05 — PRINCIPLES
   ========================================================================== */

.principles__grid {
  display: grid;
  gap: clamp(1rem, 0.7rem + 1.2vw, 1.5rem);
}

@media (min-width: 640px) {
  .principles__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .principles__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.principle {
  position: relative;
  padding: clamp(1.35rem, 1rem + 1.4vw, 1.9rem);
  border-radius: var(--r-md);
  transition:
    transform var(--tr),
    border-color var(--tr),
    background-color var(--tr);
}

.principle:hover {
  transform: translateY(-3px);
  border-color: rgba(105, 225, 255, 0.28);
  background-color: rgba(23, 29, 39, 0.7);
}

.principle__index {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: var(--cyan);
  opacity: 0.8;
}

.principle__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-block: 0.9rem 1.1rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--silver);
}

.principle__icon svg {
  width: 19px;
  height: 19px;
}

.principle h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.55rem;
}

.principle p {
  font-size: 0.9375rem;
  color: var(--ink-muted);
  line-height: 1.62;
}

/* ==========================================================================
   15. CHAPTER 06 — THE FUTURE
   ========================================================================== */

.finale {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.finale__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(2.5rem, 1.8rem + 4vw, 5rem) clamp(1.5rem, 1rem + 3vw, 4rem);
  border-radius: var(--r-2xl);
  text-align: center;
}

.finale__orb {
  position: relative;
  width: clamp(96px, 70px + 8vw, 148px);
  aspect-ratio: 1;
  margin-bottom: clamp(1.75rem, 1.4rem + 2vw, 2.75rem);
  border-radius: 50%;
  background:
    radial-gradient(
      120% 120% at 32% 22%,
      rgba(255, 255, 255, 0.6),
      rgba(255, 255, 255, 0.06) 28%,
      transparent 54%
    ),
    radial-gradient(
      80% 80% at 72% 78%,
      rgba(76, 141, 255, 0.55),
      transparent 62%
    ),
    linear-gradient(158deg, #222c3d, #0b0e14 62%);
  box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, 0.4),
    inset 0 -20px 40px -16px rgba(76, 141, 255, 0.42),
    0 30px 70px -30px rgba(0, 0, 0, 1),
    0 0 80px -24px rgba(76, 141, 255, 0.6);
  animation: orb-float 12s var(--ease-in-out) infinite;
}

.finale__orb::after {
  content: "";
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  border: 1px solid rgba(105, 225, 255, 0.22);
  animation: ring-a 22s linear infinite;
  transform: rotateX(74deg);
}

.finale h2 {
  max-width: 24ch;
  margin-inline: auto;
}

.finale .lead {
  margin-inline: auto;
  margin-top: 1.25rem;
  max-width: 52ch;
}

.finale__actions {
  margin-top: clamp(1.85rem, 1.5rem + 1.8vw, 2.75rem);
}

/* ==========================================================================
   16. PRODUCT DETAIL PAGES
   ========================================================================== */

.pd {
  --accent: var(--blue);
  --accent-alt: var(--cyan);
}

.pd__hero {
  position: relative;
  padding-block: calc(var(--header-h) + clamp(2.5rem, 2rem + 3vw, 4.5rem))
    clamp(2.5rem, 2rem + 3vw, 4rem);
  overflow: hidden;
}

.pd__hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 130%;
  background: radial-gradient(
    56% 60% at 78% 24%,
    rgba(76, 141, 255, 0.2),
    transparent 66%
  );
  background: radial-gradient(
    56% 60% at 78% 24%,
    color-mix(in srgb, var(--accent) 20%, transparent),
    transparent 66%
  );
  pointer-events: none;
}

.pd__hero-grid {
  position: relative;
  display: grid;
  gap: clamp(2rem, 1.6rem + 3vw, 3.5rem);
  align-items: center;
}

@media (min-width: 960px) {
  .pd__hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  }
}

.pd__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.35rem;
}

.pd__title {
  font-size: clamp(2.25rem, 1.5rem + 4vw, 4rem);
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.pd__tagline {
  margin-top: 1.1rem;
  font-size: var(--fs-lead);
  color: var(--silver);
  max-width: 44ch;
}

.pd__intro {
  margin-top: 1.25rem;
  color: var(--ink-muted);
  max-width: 54ch;
}

.pd__actions {
  margin-top: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
}

.pd__art {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(
      90% 80% at 26% 10%,
      rgba(76, 141, 255, 0.24),
      transparent 62%
    ),
    radial-gradient(
      90% 80% at 26% 10%,
      color-mix(in srgb, var(--accent) 24%, transparent),
      transparent 62%
    ),
    linear-gradient(160deg, rgba(255, 255, 255, 0.05), transparent 55%),
    var(--graphite);
  box-shadow: var(--sh-4);
  aspect-ratio: 4 / 3;
}

.pd__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(199, 207, 218, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(199, 207, 218, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(78% 78% at 50% 46%, #000, transparent 76%);
  mask-image: radial-gradient(78% 78% at 50% 46%, #000, transparent 76%);
}

.pd__art svg,
.pd__art img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.pd__art figcaption {
  position: absolute;
  z-index: 2;
  left: 0.9rem;
  bottom: 0.9rem;
  padding: 0.35rem 0.7rem;
  border-radius: var(--r-full);
  background: rgba(8, 10, 15, 0.72);
  border: 1px solid var(--line);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* Two column editorial layout */
.pd__layout {
  display: grid;
  gap: clamp(1.5rem, 1rem + 2.5vw, 3rem);
  align-items: start;
}

@media (min-width: 1000px) {
  .pd__layout {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.85fr);
  }
}

.pd__section + .pd__section {
  margin-top: clamp(2.25rem, 1.8rem + 2vw, 3.5rem);
}

.pd__section > h2 {
  font-size: clamp(1.375rem, 1.2rem + 1vw, 1.75rem);
  margin-bottom: 1.1rem;
}

.pd__section > h2 .eyebrow {
  display: flex;
  margin-bottom: 0.75rem;
}

.pd__section p + p {
  margin-top: 1.05rem;
}

/* Feature list */
.feature-list {
  display: grid;
  gap: 0.9rem;
}

.feature {
  display: flex;
  gap: 1rem;
  padding: 1.15rem 1.3rem;
  border-radius: var(--r-md);
  transition: border-color var(--tr), background-color var(--tr);
}

.feature:hover {
  border-color: rgba(105, 225, 255, 0.24);
  background-color: rgba(23, 29, 39, 0.66);
}

.feature__mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid rgba(76, 141, 255, 0.45);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  background: rgba(76, 141, 255, 0.14);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent-alt);
}

.feature__mark svg {
  width: 15px;
  height: 15px;
}

.feature__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.3rem;
}

.feature__detail {
  font-size: 0.9375rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* Audience list */
.audience-list {
  display: grid;
  gap: 0.6rem;
}

.audience-list li {
  display: flex;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.audience-list li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 0.62em;
  border-radius: 50%;
  background: var(--accent-alt);
  box-shadow: 0 0 10px rgba(105, 225, 255, 0.5);
  box-shadow: 0 0 10px color-mix(in srgb, var(--accent-alt) 70%, transparent);
}

/* Sidebar spec sheet */
.spec {
  padding: clamp(1.35rem, 1rem + 1.4vw, 1.85rem);
  border-radius: var(--r-lg);
}

.spec__title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.15rem;
}

.spec__list {
  display: grid;
  gap: 0;
}

.spec__row {
  display: grid;
  gap: 0.2rem;
  padding-block: 0.85rem;
  border-top: 1px solid var(--line);
}

.spec__row:first-child {
  border-top: 0;
  padding-top: 0;
}

.spec__row dt {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.spec__row dd {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

.spec__cta {
  margin-top: 1.35rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
}

/* Next-action band */
.next-action {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-2xl);
  padding: clamp(1.85rem, 1.4rem + 3vw, 3.5rem);
  text-align: center;
}

.next-action h2 {
  margin-bottom: 1rem;
}

.next-action .lead {
  margin-inline: auto;
}

.next-action__actions {
  margin-top: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
}

/* Related products */
.related__grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .related__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.related-card {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.1rem 1.3rem;
  border-radius: var(--r-md);
  text-decoration: none;
  color: inherit;
  transition:
    transform var(--tr),
    border-color var(--tr),
    background-color var(--tr);
}

.related-card:hover {
  transform: translateY(-3px);
  border-color: rgba(105, 225, 255, 0.26);
  background-color: rgba(23, 29, 39, 0.68);
  color: inherit;
}

.related-card__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--silver);
}

.related-card__icon svg {
  width: 20px;
  height: 20px;
}

.related-card__name {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
}

.related-card__meta {
  display: block;
  font-size: 0.8125rem;
  color: var(--ink-muted);
  margin-top: 0.15rem;
}

.related-card__arrow {
  margin-left: auto;
  color: var(--ink-muted);
  transition: transform var(--tr), color var(--tr);
}

.related-card:hover .related-card__arrow {
  transform: translateX(3px);
  color: var(--cyan);
}

/* ==========================================================================
   17. ABOUT PAGE
   ========================================================================== */

.about__grid {
  display: grid;
  gap: clamp(2rem, 1.5rem + 3vw, 4rem);
  align-items: start;
}

@media (min-width: 960px) {
  .about__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  }
}

.prose {
  max-width: 68ch;
}

.prose h2 {
  font-size: clamp(1.375rem, 1.2rem + 1vw, 1.75rem);
  margin-block: 2.25rem 1rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: 1.0625rem;
  margin-block: 1.6rem 0.6rem;
}

.prose p {
  color: var(--ink-muted);
  line-height: 1.72;
}

.prose p + p {
  margin-top: 1.1rem;
}

.prose ul {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.prose ul li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--ink-muted);
  line-height: 1.65;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: linear-gradient(140deg, var(--cyan), var(--blue));
}

.prose strong {
  color: var(--white);
  font-weight: 600;
}

.claim-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.claim {
  display: flex;
  gap: 0.8rem;
  padding: 0.95rem 1.15rem;
  border-radius: var(--r-md);
  font-size: 0.9375rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

.claim svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  color: var(--cyan);
}

/* ==========================================================================
   18. CONTACT PAGE
   ========================================================================== */

.contact__grid {
  display: grid;
  gap: clamp(1.25rem, 0.9rem + 1.6vw, 2rem);
}

@media (min-width: 900px) {
  .contact__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
}

.contact-card {
  padding: clamp(1.5rem, 1.1rem + 2vw, 2.5rem);
  border-radius: var(--r-lg);
}

.contact-card h2 {
  font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.5rem);
  margin-bottom: 0.9rem;
}

.mail-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.35rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
}

.mail-block__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  color: var(--cyan);
}

.mail-block__icon svg {
  width: 20px;
  height: 20px;
}

.mail-block__label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.mail-block__value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  word-break: break-all;
}

.check-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.1rem;
}

.check-list li {
  display: flex;
  gap: 0.7rem;
  font-size: 0.9375rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

.check-list svg {
  flex: none;
  width: 17px;
  height: 17px;
  margin-top: 0.2rem;
  color: var(--cyan);
}

/* ==========================================================================
   19. PRIVACY PAGE
   ========================================================================== */

.doc {
  display: grid;
  gap: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  align-items: start;
}

@media (min-width: 1000px) {
  .doc {
    grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  }
}

.doc__toc {
  padding: 1.35rem 1.5rem;
  border-radius: var(--r-lg);
}

@media (max-width: 999px) {
  .doc__toc {
    display: none;
  }
}

.doc__toc h2 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.9rem;
}

.doc__toc ol {
  display: grid;
  gap: 0.15rem;
  counter-reset: toc;
}

.doc__toc a {
  display: block;
  padding: 0.4rem 0.6rem;
  border-radius: var(--r-xs);
  font-size: 0.875rem;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color var(--tr-fast), background-color var(--tr-fast);
}

.doc__toc a:hover {
  color: var(--white);
  background-color: rgba(255, 255, 255, 0.05);
}

.doc__body h2 {
  font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.5rem);
  margin-block: 2.5rem 1rem;
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}

.doc__body h2:first-child {
  margin-top: 0;
}

.doc__body h3 {
  font-size: 1rem;
  margin-block: 1.5rem 0.55rem;
}

.doc__body p,
.doc__body li {
  color: var(--ink-muted);
  line-height: 1.72;
}

.doc__body p + p {
  margin-top: 1rem;
}

.doc__body ul {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.9rem;
}

.doc__body ul li {
  position: relative;
  padding-left: 1.3rem;
}

.doc__body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}

.doc__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

/* ==========================================================================
   20. 404 PAGE
   ========================================================================== */

.error-page {
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding-block: calc(var(--header-h) + 3rem) 3rem;
  text-align: center;
}

.error-page__inner {
  max-width: 44rem;
}

.error-page__code {
  font-family: var(--font-mono);
  font-size: clamp(4rem, 3rem + 8vw, 8rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, var(--white), rgba(76, 141, 255, 0.5));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.error-page h1 {
  margin-block: 1rem 1.15rem;
  font-size: clamp(1.5rem, 1.2rem + 1.6vw, 2.25rem);
}

.error-page__links {
  margin-top: 2.25rem;
}

.error-page__grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 2.5rem;
  text-align: left;
}

@media (min-width: 620px) {
  .error-page__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ==========================================================================
   21. SITE FOOTER
   ========================================================================== */

.site-footer {
  position: relative;
  margin-top: clamp(3rem, 2rem + 5vw, 6rem);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(16, 20, 28, 0.6), rgba(6, 8, 12, 0.9));
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.site-footer__top {
  display: grid;
  gap: clamp(2rem, 1.5rem + 3vw, 3.5rem);
  padding-block: clamp(2.75rem, 2rem + 3vw, 4.5rem);
}

@media (min-width: 860px) {
  .site-footer__top {
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 0.85fr));
  }
}

.footer-brand__blurb {
  margin-top: 1.15rem;
  font-size: 0.9375rem;
  color: var(--ink-muted);
  max-width: 34ch;
  line-height: 1.65;
}

.footer-social {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.35rem;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-muted);
  transition:
    color var(--tr-fast),
    border-color var(--tr-fast),
    background-color var(--tr-fast),
    transform var(--tr-fast);
}

.footer-social a:hover {
  color: var(--white);
  border-color: rgba(105, 225, 255, 0.35);
  background: rgba(76, 141, 255, 0.14);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 17px;
  height: 17px;
}

.footer-col h2 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-col ul {
  display: grid;
  gap: 0.15rem;
}

.footer-col a {
  display: inline-block;
  padding: 0.3rem 0;
  font-size: 0.9375rem;
  color: var(--ink-muted);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-col a .pill {
  margin-left: 0.5rem;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.5rem;
  padding-block: 1.5rem 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.site-footer__bottom p {
  margin: 0;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.15rem;
}

.site-footer__legal a {
  color: var(--ink-muted);
  text-decoration: none;
}

.site-footer__legal a:hover {
  color: var(--white);
}

.pre-launch {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 1.15rem;
  padding: 0.7rem 0.9rem;
  border-radius: var(--r-sm);
  border: 1px dashed rgba(105, 225, 255, 0.3);
  background: rgba(105, 225, 255, 0.05);
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 44ch;
}

.pre-launch svg {
  flex: none;
  width: 15px;
  height: 15px;
  margin-top: 0.1rem;
  color: var(--cyan);
}

[hidden] {
  display: none !important;
}

/* ==========================================================================
   22. ACCESSIBILITY, MOTION & FEATURE FALLBACKS
   ========================================================================== */

/* Graceful degradation when backdrop-filter is unavailable: the panels must
   stay legible, so we increase the opaque background instead of losing blur. */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .glass,
  .glass--flat,
  .glass--strong,
  .btn,
  .p-card__inner,
  .hero__shard,
  .site-header.is-stuck,
  .nav-panel__inner,
  .site-footer {
    background-color: rgba(13, 17, 24, 0.94);
  }

  .btn--primary {
    background-color: #6fa4ff;
  }
}

/* Transparent text needs a real colour when background-clip is unsupported. */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .gradient-text,
  .hero__title .line-2,
  .reason__statement em,
  .error-page__code {
    color: var(--white);
    -webkit-text-fill-color: currentColor;
    background: none;
  }
}

/* No mask-composite (older Safari): fall back to a plain 1px border so the
   edge highlight never becomes a filled box. */
@supports not ((-webkit-mask-composite: xor) or (mask-composite: exclude)) {
  .glass::before,
  .orb__rim {
    display: none;
  }

  .glass,
  .orb__body {
    border: 1px solid rgba(255, 255, 255, 0.14);
  }
}

/* Reduced motion — keep the design, remove the movement. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .hero__dust {
    display: none;
  }

  .p-card:hover {
    transform: none;
  }

  .p-card__art::before {
    display: none;
  }
}

/* Touch / coarse pointers: no hover-dependent information, no parallax. */
@media (hover: none), (pointer: coarse) {
  .glass--lit::after {
    background: radial-gradient(
      130% 78% at 14% -14%,
      rgba(255, 255, 255, 0.14),
      transparent 62%
    );
  }

  .p-card:hover {
    transform: none;
    box-shadow: var(--sh-3);
  }

  .p-card__art::before,
  .p-card__inner::after {
    display: none;
  }

  .btn:hover {
    transform: none;
  }
}

/* Forced colours / high contrast: never rely on gradients or glass alone. */
@media (forced-colors: active) {
  .glass,
  .glass::before,
  .glass::after,
  .p-card,
  .p-card__inner {
    border: 1px solid CanvasText;
    background: Canvas;
    forced-color-adjust: none;
  }

  .gradient-text,
  .hero__title .line-2,
  .error-page__code,
  .reason__statement em {
    color: CanvasText;
    -webkit-text-fill-color: currentColor;
    background: none;
  }
}

/* ==========================================================================
   23. PRINT
   ========================================================================== */

@media print {
  body {
    background: #fff;
    color: #000;
  }

  body::before,
  body::after,
  .site-header,
  .nav-panel,
  .nav-scrim,
  .site-footer,
  .scroll-cue,
  .hero__art {
    display: none !important;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .glass,
  .p-card,
  .feature {
    border: 1px solid #999;
    background: none;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
