/* =====================================================================
   XLOO: main stylesheet
   Mobile-first. Brand colours, type, spacing and motion live in :root.
   Swap the colour tokens once the original logo palette is confirmed.

   Motion system (all disabled for prefers-reduced-motion):
   - .anim-in / .anim-frame / .words--load  play once on page load (CSS only)
   - .reveal / .stagger / .reveal-words / .reveal-media  play when scrolled
     into view (main.js adds .is-visible; html.motion gates the hidden state)
   - .spot  cursor-following glow on hover-capable devices
   ===================================================================== */

/* ---------- Fonts (self-hosted, no third-party requests) ---------- */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@property --angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

/* ---------- Design tokens ---------- */
:root {
  --ink: #0e2433;
  --ink-2: #16374b;
  --text: #1c2d37;
  --muted: #55666f;
  --line: #e1e8ec;
  --line-strong: #c6d2d8;
  --bg: #ffffff;
  --bg-soft: #f4f7f9;
  --bg-tint: #ecf7f9;
  --accent: #14a5b7;
  --accent-hover: #2bbccd;
  --accent-ink: #0a7584;
  --accent-soft: #dcf2f5;
  --accent-light: #8fe1eb;
  --danger: #b42318;
  --danger-soft: #fef3f2;

  /* Accessibility-driven colours (WCAG 2.2 AA; measured, see ACCESSIBILITY-CHECK.md).
     --field-border: outline of inputs and checkboxes, 3:1 or better against white and tinted panels.
     --placeholder:  placeholder text, 4.5:1 or better on white.
     --caption:      small grey captions that can sit over soft shadows.
     --focus:        keyboard focus ring; dark sections override it with a light colour below. */
  --field-border: #7a8a94;
  --field-border-hover: #55666f;
  --placeholder: #647680;
  --caption: #4b5c65;
  --focus: var(--accent-ink);

  /* Gradient for accent words in large headings. Its lightest stop is 3:1 or better on the
     palest and the most tinted page backgrounds, so keep it at this depth or darker. */
  --grad-accent: linear-gradient(100deg, #0a7584 0%, #0f93a5 70%, #0e8e9f 100%);
  --grad-accent-dark: linear-gradient(100deg, #5fd4e0 0%, #b9f2f8 100%);

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Manrope", var(--font-sans);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgb(14 36 51 / 0.05), 0 2px 6px rgb(14 36 51 / 0.05);
  --shadow: 0 14px 36px -16px rgb(14 36 51 / 0.22);
  --shadow-lg: 0 30px 70px -28px rgb(14 36 51 / 0.35);
  --shadow-xl: 0 50px 100px -40px rgb(14 36 51 / 0.45);

  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section-y: clamp(4.5rem, 3rem + 6vw, 9rem);
  --header-h: 72px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

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

/* The hidden attribute must always win, even over components that set their own display
   (e.g. .form is a grid: without this the form stayed visible behind its thank-you message). */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem); letter-spacing: -0.04em; line-height: 1.02; }
h2 { font-size: clamp(2rem, 1.35rem + 2.5vw, 3.4rem); letter-spacing: -0.035em; }
h3 { font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem); letter-spacing: -0.02em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--accent-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.2s;
}
a:hover { color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}
main:focus { outline: none; }
/* On dark backgrounds the focus ring switches to a light colour so it stays clearly visible. */
.strip, .site-footer, .section--ink, .cta-band { --focus: var(--accent-light); }
::selection { background: var(--accent-soft); color: var(--ink); }

.icon { width: 1.25em; height: 1.25em; flex: none; }

.visually-hidden {
  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: absolute;
  left: 1rem; top: -100px;
  z-index: 200;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(46rem + 2 * var(--gutter)); }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 2rem + 3vw, 5rem); }
.section--flush-top { padding-top: 0; }
.section--soft { background: var(--bg-soft); }
.section--ink {
  background:
    radial-gradient(900px 420px at 50% -10%, rgb(20 165 183 / 0.2), transparent 65%),
    var(--ink);
  color: rgb(255 255 255 / 0.8);
}
.section--ink h2, .section--ink h3 { color: #fff; }

.section-head { max-width: 50rem; margin-bottom: clamp(2.25rem, 1.5rem + 2.5vw, 4rem); }
.section-head--center { text-align: center; margin-inline: auto; }
.section-head h2:last-child { margin-bottom: 0; }

/* Single-column grids use minmax(0, 1fr) so a long word can never stretch the column
   wider than the screen (matters at 400% zoom and with user text-spacing). */
.grid, .split, .hero__grid, .product__grid, .future, .ks-grid, .contact-grid, .cta-band { grid-template-columns: minmax(0, 1fr); }

.grid { display: grid; gap: clamp(1rem, 0.75rem + 1vw, 1.75rem); }
@media (min-width: 720px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.split { display: grid; gap: 2.75rem; align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(3rem, 2rem + 4vw, 6rem); }
  .split--top { align-items: start; }
}

.stack { display: grid; gap: 1rem; align-content: start; }

/* ---------- Type helpers ---------- */
.lead {
  font-size: clamp(1.125rem, 1.04rem + 0.4vw, 1.35rem);
  line-height: 1.55;
  color: var(--text);
}
.section--ink .lead { color: rgb(255 255 255 / 0.85); }

.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.text-accent {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Pill label with live pulse */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.75rem;
  padding: 0.55rem 1rem 0.55rem 0.8rem;
  border: 1px solid rgb(14 36 51 / 0.08);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.75);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 2px rgb(14 36 51 / 0.05), 0 10px 28px -14px rgb(14 36 51 / 0.3);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.14em;
  color: var(--ink);
}
.pill--dark {
  border-color: rgb(255 255 255 / 0.14);
  background: rgb(255 255 255 / 0.06);
  box-shadow: none;
  color: #fff;
}
.pill--sm { margin-bottom: 1rem; font-size: 0.66rem; }

.pulse {
  position: relative;
  display: inline-block;
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
}
.pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: pulse 2.2s var(--ease) infinite;
}

.product-label {
  display: flex;
  align-items: center;
  margin-bottom: 0.9rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--accent-ink);
}
.product-index {
  display: inline-grid;
  place-items: center;
  min-width: 2.1rem;
  height: 2.1rem;
  margin-right: 0.8rem;
  padding: 0 0.5rem;
  border: 1px solid rgb(10 117 132 / 0.35);
  border-radius: 999px;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat;
  padding-bottom: 0.2rem;
  transition: background-size 0.5s var(--ease), color 0.2s;
}
.link-arrow .icon { color: var(--accent-ink); transition: transform 0.4s var(--ease); }
.link-arrow:hover { color: var(--ink); background-size: 100% 2px; }
.link-arrow:hover .icon { transform: translateX(5px); }

/* Word-by-word headline animation (markup from the {% words %} shortcode) */
.words .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0 0.05em 0.14em;
  margin: 0 -0.05em -0.14em;
  max-width: calc(100% + 0.1em);
}
/* Last resort at extreme zoom or with user text-spacing: a single word wider than the line
   breaks instead of being cut off. Never triggers at normal sizes. */
.words .w > span { display: inline-block; max-width: 100%; overflow-wrap: anywhere; }
.w--accent > span {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section--ink .w--accent > span,
.cta-band .w--accent > span { background-image: var(--grad-accent-dark); }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0.875rem 1.6rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.06em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.4s var(--ease), translate 0.4s var(--ease);
}
.btn > span { position: relative; }
.btn__arrow { width: 1.1em; height: 1.1em; transition: transform 0.45s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn:active { translate: 0 1px; }

/* light sweep on hover */
.btn--primary::after,
.btn--dark::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 25%, rgb(255 255 255 / 0.45) 50%, transparent 75%);
  transform: translateX(-120%);
  transition: transform 0.9s var(--ease);
}
.btn--dark::after { background: linear-gradient(110deg, transparent 25%, rgb(255 255 255 / 0.14) 50%, transparent 75%); }
.btn--primary:hover::after,
.btn--dark:hover::after { transform: translateX(120%); }

.btn--primary {
  background: var(--accent);
  color: var(--ink);
  box-shadow: 0 10px 26px -12px rgb(20 165 183 / 0.85), inset 0 1px 0 rgb(255 255 255 / 0.35);
}
.btn--primary:hover {
  background: var(--accent-hover);
  color: var(--ink);
  translate: 0 -2px;
  box-shadow: 0 18px 36px -14px rgb(20 165 183 / 0.95), inset 0 1px 0 rgb(255 255 255 / 0.35);
}

.btn--secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--secondary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
  transform: translateY(102%);
  transition: transform 0.5s var(--ease);
}
.btn--secondary:hover { color: #fff; border-color: var(--ink); }
.btn--secondary:hover::before { transform: none; }

.btn--dark { background: var(--ink); color: #fff; box-shadow: 0 14px 30px -16px rgb(14 36 51 / 0.8); }
.btn--dark:hover { background: var(--ink-2); color: #fff; translate: 0 -2px; }

.btn--sm { min-height: 2.75rem; padding: 0.625rem 1.15rem; font-size: 0.75rem; }
.btn--lg { min-height: 3.6rem; padding: 1rem 1.9rem; font-size: 0.875rem; }
.btn--block { width: 100%; }
.btn[aria-busy="true"] { opacity: 0.75; cursor: progress; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.actions--center { justify-content: center; }
@media (max-width: 479.98px) {
  .actions > .btn { flex: 1 1 100%; }
}

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.1em;
  background: var(--accent-soft);
  color: var(--accent-ink);
  white-space: nowrap;
}
.badge--concept { background: var(--ink); color: #fff; }
.badge__dot { width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--accent); }
.badge--save {
  background: var(--ink);
  color: #fff;
  font-size: 0.78rem;
  padding: 0.65rem 1.05rem;
  box-shadow: 0 10px 22px -12px rgb(14 36 51 / 0.8);
}

/* ---------- Campaign strip ---------- */
.strip {
  position: relative;
  z-index: 51;
  background: var(--ink);
  color: rgb(255 255 255 / 0.85);
  font-size: 0.8125rem;
  line-height: 1.45;
}
.strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 1.25rem;
  padding-block: 0.6rem;
  text-align: center;
}
.strip__text { margin: 0; }
.strip__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.strip__label .pulse { width: 0.4rem; height: 0.4rem; }
.strip__sep { margin-inline: 0.35rem; opacity: 0.35; }
.strip__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
  white-space: nowrap;
}
.strip__cta .icon { width: 1em; height: 1em; transition: transform 0.4s var(--ease); }
.strip__cta:hover { color: #fff; }
.strip__cta:hover .icon { transform: translateX(4px); }

@media (max-width: 759.98px) {
  .strip { font-size: 0.75rem; }
  .strip__inner { gap: 0.15rem 1rem; padding-block: 0.5rem; }
  .strip__label { letter-spacing: 0.04em; gap: 0.4rem; }
  .strip__sep { margin-inline: 0.2rem; }
}

/* Mobile: short text is shown visually, full text stays available to screen readers */
.strip__full {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
@media (min-width: 760px) {
  .strip__full { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }
  .strip__short { display: none; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  isolation: isolate;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(255 255 255 / 0.8);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background-color 0.3s;
}
/* No drop shadow here on purpose. A shadow under a sticky header darkens whatever is scrolling
   directly beneath it (white measured as light grey for the first 16px), which took text passing
   through that strip below AA contrast. The hairline border separates the header instead.
   See ACCESSIBILITY-CHECK.md. */
.site-header.is-scrolled::before {
  background: rgb(255 255 255 / 0.88);
  border-bottom-color: var(--line);
}
/* scroll progress line (browsers with scroll-driven animations) */
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-ink), var(--accent));
  transform: scaleX(0);
  transform-origin: 0 50%;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
  transition: min-height 0.4s var(--ease);
}
@media (min-width: 1080px) {
  .site-header.is-scrolled .header__inner { min-height: 64px; }
}
/* On very short viewports (400% zoom, phones held sideways) the header scrolls away with the
   page instead of sticking, so it does not cover a quarter of the screen. */
@media (max-height: 420px) {
  .site-header { position: relative; }
}

.logo { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; }
.logo:hover { color: var(--ink); }
.logo__img { height: 38px; width: auto; transition: transform 0.6s var(--ease); }
.logo:hover .logo__img { transform: scale(1.04); }
.site-footer .logo__img { height: 44px; }
.wordmark {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}
.wordmark__x { color: var(--accent); display: inline-block; transition: transform 0.6s var(--ease); }
.logo:hover .wordmark__x { transform: rotate(90deg); }
.logo--light, .logo--light:hover { color: #fff; }

.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle__bars { position: relative; display: block; width: 1.2rem; height: 0.85rem; }
.nav-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.45s var(--ease), top 0.45s var(--ease), opacity 0.2s;
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: calc(50% - 1px); }
.nav-toggle__bars span:nth-child(3) { top: calc(100% - 2px); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { top: calc(50% - 1px); transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { top: calc(50% - 1px); transform: rotate(-45deg); }

.site-nav__list { list-style: none; margin: 0; padding: 0; }
.nav-link { text-decoration: none; }

@media (max-width: 1079.98px) {
  .js .site-nav {
    position: fixed;
    inset: var(--nav-top, 7rem) 0 0 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    padding: 0.5rem var(--gutter) 2rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    border-top: 1px solid var(--line);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s var(--ease), transform 0.45s var(--ease), visibility 0s 0.45s;
  }
  .js .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.3s var(--ease), transform 0.45s var(--ease), visibility 0s;
  }
  .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.15rem 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
  }
  .nav-link__arrow { color: var(--accent-ink); transition: transform 0.4s var(--ease); }
  .nav-link:hover .nav-link__arrow { transform: translateX(4px); }
  .nav-link[aria-current="page"] { color: var(--accent-ink); }
  .site-nav__cta { width: 100%; min-height: 3.4rem; font-size: 0.875rem; }
  html.nav-open { overflow: hidden; }

  /* Without JavaScript: show the links inline instead of a menu */
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .header__inner { flex-wrap: wrap; padding-block: 1rem; }
  html:not(.js) .site-nav__list { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
  html:not(.js) .nav-link { padding: 0.25rem 0; border: 0; font-size: 1rem; }
  html:not(.js) .nav-link__arrow, html:not(.js) .site-nav__cta-wrap { display: none; }
}

@media (min-width: 1080px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; align-items: center; gap: 1.75rem; }
  .site-nav__list { display: flex; gap: 0.25rem; }
  .nav-link {
    position: relative;
    display: block;
    padding: 0.5rem 0.8rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
    transition: color 0.2s;
  }
  .nav-link::after {
    content: "";
    position: absolute;
    left: 0.8rem;
    right: 0.8rem;
    bottom: 0.15rem;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform 0.5s var(--ease);
  }
  .nav-link:hover { color: var(--ink); }
  .nav-link:hover::after { transform: scaleX(1); transform-origin: left center; }
  .nav-link[aria-current="page"] { color: var(--ink); }
  .nav-link[aria-current="page"]::after { transform: scaleX(1); }
  .nav-link__arrow { display: none; }

  /* The header button keeps its glow inside the header. The standard button glow reaches 24px
     below the button, so it spilled out under the sticky header and tinted the text scrolling
     beneath it (white measured as #def2f5), lowering that text's contrast.
     See ACCESSIBILITY-CHECK.md. */
  .site-header .btn--primary { box-shadow: 0 4px 9px -8px rgb(20 165 183 / 0.85), inset 0 1px 0 rgb(255 255 255 / 0.35); }
  .site-header .btn--primary:hover { box-shadow: 0 5px 10px -8px rgb(20 165 183 / 0.95), inset 0 1px 0 rgb(255 255 255 / 0.35); }
}

/* ---------- Hero backgrounds (blobs + fine grid) ---------- */
.hero, .page-hero { position: relative; isolation: isolate; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hero-bg__blob {
  position: absolute;
  width: min(75vw, 950px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(20 165 183 / 0.2), transparent 62%);
}
.hero-bg__blob--1 { top: -40%; right: -20%; animation: drift-a 24s var(--ease-io) infinite alternate; }
.hero-bg__blob--2 {
  top: 5%;
  left: -35%;
  width: min(65vw, 800px);
  background: radial-gradient(circle, rgb(10 117 132 / 0.1), transparent 62%);
  animation: drift-b 30s var(--ease-io) infinite alternate;
}
.hero-bg__lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(14 36 51 / 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgb(14 36 51 / 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 78% 0%, #000, transparent 72%);
  mask-image: radial-gradient(ellipse 60% 70% at 78% 0%, #000, transparent 72%);
}

/* ---------- Media (images, videos, placeholders) ---------- */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-soft);
  aspect-ratio: var(--ratio-override, var(--media-ratio, 4/3));
  container-type: inline-size;
}
.media img, .media video, .media iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--media-focus, 50% 50%);
  border: 0;
}

/* Product cut-outs (transparent PNG/WebP) on a soft studio backdrop */
.media--contain {
  background:
    radial-gradient(110% 85% at 50% 12%, #ffffff 0%, rgb(255 255 255 / 0) 62%),
    radial-gradient(120% 90% at 88% 0%, rgb(20 165 183 / 0.1), transparent 55%),
    linear-gradient(170deg, #f5f8fa, #e9f0f3);
}
.media--contain::after {
  /* soft floor shadow under the product */
  content: "";
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: 7%;
  height: 7%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(14 36 51 / 0.14), transparent);
  pointer-events: none;
}
.media--contain img {
  position: relative;
  z-index: 1;
  object-fit: contain;
  padding: var(--contain-pad, 7%);
}
.thumb .media--contain { --contain-pad: 9%; }
.thumb .media--contain::after { display: none; }

.media--placeholder {
  display: grid;
  place-items: center;
  padding: 1rem;
  text-align: center;
  background:
    radial-gradient(120% 90% at 88% 0%, rgb(20 165 183 / 0.16), transparent 55%),
    radial-gradient(90% 80% at 0% 100%, rgb(14 36 51 / 0.07), transparent 60%),
    linear-gradient(160deg, #f5f9fa, #e7eff2);
  box-shadow: inset 0 0 0 1px rgb(14 36 51 / 0.07);
}
.media--placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgb(14 36 51 / 0.09) 1px, transparent 1.2px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 10%, transparent 75%);
  pointer-events: none;
}
.ph {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  max-width: 36ch;
  color: var(--muted);
}
.ph__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.3rem;
  border-radius: 14px;
  background: rgb(255 255 255 / 0.85);
  color: var(--accent-ink);
  box-shadow: 0 8px 20px -10px rgb(14 36 51 / 0.35);
}
.ph__play, .play-icon {
  position: relative;
  display: grid;
  place-items: center;
  color: var(--accent);
}
.ph__play { margin-bottom: 0.5rem; }
.ph__play > svg, .play-icon > svg {
  grid-area: 1 / 1;
  width: clamp(48px, 11cqi, 84px);
  height: auto;
  filter: drop-shadow(0 10px 24px rgb(20 165 183 / 0.45));
  transition: transform 0.5s var(--ease);
}
.ph__play::before, .play-icon::before {
  content: "";
  grid-area: 1 / 1;
  width: clamp(48px, 11cqi, 84px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: ring 2.6s var(--ease) infinite;
}
.ph__id {
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.85);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgb(10 117 132 / 0.15);
}
.ph__title { font-family: var(--font-display); font-size: 0.98rem; line-height: 1.3; color: var(--ink); }
.ph__find { font-size: 0.8rem; line-height: 1.45; }
@container (max-width: 260px) {
  .ph__find { display: none; }
  .ph__title { font-size: 0.8rem; }
  .ph__icon { width: 2rem; height: 2rem; border-radius: 10px; }
}
@container (max-width: 150px) {
  .ph__title { display: none; }
  .ph__id { font-size: 0.58rem; padding: 0.25rem 0.45rem; }
}

.media-figure { margin: 0; }
.media-figure figcaption {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--caption);
}
.media-figure figcaption .icon { color: var(--accent-ink); }

/* Placeholder with a poster / ambient loop behind the label (video file still to come) */
.media--has-backdrop { background: var(--ink); }
.media--has-backdrop::before { display: none; }
.media--has-backdrop .ph-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}
.media--has-backdrop .ph {
  padding: 1.1rem 1.4rem;
  border-radius: 18px;
  background: rgb(255 255 255 / 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px -20px rgb(0 0 0 / 0.5);
}
@container (max-width: 260px) {
  .media--has-backdrop .ph { padding: 0.6rem 0.8rem; }
}

/* Self-hosted video player: ambient loop or poster, then the full video with controls */
.video-player { position: absolute; inset: 0; background: var(--ink); }
.video-player__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.video-player__cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: opacity 0.5s var(--ease), visibility 0s 0.5s;
}
.video-player__cover > video,
.video-player__cover > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.video-player__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgb(14 36 51 / 0.05), rgb(14 36 51 / 0.35));
  pointer-events: none;
}
.video-player__play {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
/* Focus rings over video imagery are drawn inside the frame (the frame clips anything outside)
   as a white line backed by a dark band, so they show on light and dark footage alike. */
.video-player__play:focus-visible,
.video-player__video:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -8px;
  box-shadow: inset 0 0 0 5px var(--ink);
  border-radius: 0;
}
.video-player:hover .video-player__cover > video,
.video-player:hover .video-player__cover > img { transform: scale(1.03); }
.video-player:hover .play-icon > svg { transform: scale(1.08); }
.video-player.is-playing .video-player__cover { opacity: 0; visibility: hidden; }
html:not(.js) .video-player__cover { display: none; }

/* ---------- Home: hero ---------- */
.hero { padding-top: clamp(2.75rem, 1.5rem + 4.5vw, 6rem); padding-bottom: clamp(3.5rem, 2.5rem + 4vw, 6.5rem); }
.hero__grid { display: grid; gap: 1.75rem; }
@media (min-width: 1000px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); gap: 4rem; align-items: end; }
}
.hero__title {
  margin: 0;
  font-size: clamp(2.8rem, 1.5rem + 5.2vw, 5.85rem);
  letter-spacing: -0.045em;
  line-height: 0.98;
}
@media (max-width: 359.98px) { .hero__title { font-size: 2.35rem; } }
.hero__copy p { margin-bottom: 0.9rem; }
.hero__copy .actions { margin-top: 1.9rem; }

.hero__media {
  position: relative;
  margin-top: clamp(2.75rem, 2rem + 3.5vw, 5rem);
  --ratio-override: 4/3;
}
@media (min-width: 720px) { .hero__media { --ratio-override: 2/1; } }
@media (min-width: 1100px) { .hero__media { --ratio-override: 21/9; } }
.hero__frame {
  --frame-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}
.hero__frame .media { border-radius: 0; }

.hero__chip-wrap {
  position: absolute;
  top: clamp(1rem, 3vw, 2.25rem);
  right: clamp(1rem, 3vw, 2.25rem);
  z-index: 2;
}
.hero__chip {
  display: grid;
  gap: 0.35rem;
  max-width: 16rem;
  padding: 0.95rem 1.15rem;
  border-radius: 18px;
  animation: float 7s var(--ease-io) infinite;
}
.glass {
  border: 1px solid rgb(255 255 255 / 0.7);
  background: rgb(255 255 255 / 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  backdrop-filter: blur(16px) saturate(170%);
  box-shadow: 0 16px 40px -18px rgb(14 36 51 / 0.4);
}
.hero__chip-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.18em;
  color: var(--accent-ink);
}
.hero__chip-text {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}
@media (max-width: 639.98px) { .hero__chip-wrap { display: none; } }

.hero__inset {
  --d: 12;
  position: absolute;
  right: clamp(0.75rem, 3vw, 2.5rem);
  bottom: clamp(-2.75rem, -3vw, -1.25rem);
  z-index: 2;
  width: clamp(7rem, 22vw, 15rem);
  padding: 6px;
  border-radius: calc(var(--radius) + 6px);
  background: #fff;
  box-shadow: var(--shadow-lg);
  --ratio-override: 1/1;
}
.hero__inset .media { border-radius: var(--radius); }

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding-block: clamp(1.1rem, 0.8rem + 1vw, 1.75rem);
  border-block: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; flex-shrink: 0; }
.marquee__item {
  padding-inline: clamp(1.25rem, 0.9rem + 1.5vw, 2.5rem);
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1rem + 1.3vw, 2.2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
  color: var(--ink);
}
/* alternate words are paler, but still 3:1 or better against white (large text, AA) */
.marquee__item:nth-child(4n + 3) { color: rgb(14 36 51 / 0.56); }
.marquee__sep { display: grid; place-items: center; color: var(--accent); }
.marquee__sep .icon { width: 1.1rem; height: 1.1rem; stroke-width: 2.75; }

/* ---------- Home: pain points ---------- */
.pain-list { display: grid; gap: 0.75rem; margin: 1.75rem 0 1.75rem; padding: 0; list-style: none; }
.pain-list li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(120deg, var(--bg-soft), #fff);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}
.pain-list__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--accent);
}
.pain-list__icon .icon { width: 0.95rem; height: 0.95rem; stroke-width: 2.75; }

/* ---------- Spotlight hover (cursor-following glow + border light) ---------- */
.spot { position: relative; isolation: isolate; }
.spot::before,
.spot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
}
.spot::before {
  z-index: -1;
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 0%), rgb(20 165 183 / 0.11), transparent 45%);
}
.spot::after {
  z-index: 3;
  padding: 1px;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgb(20 165 183 / 0.8), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
@media (hover: hover) {
  .spot:hover::before, .spot:hover::after { opacity: 1; }
}
.section--ink .spot::before {
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 0%), rgb(20 165 183 / 0.22), transparent 45%);
}

/* ---------- Home: product cards ---------- */
.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: translate 0.6s var(--ease), box-shadow 0.6s var(--ease), border-color 0.3s;
}
.product-card:hover {
  color: inherit;
  translate: 0 -6px;
  border-color: transparent;
  box-shadow: var(--shadow-xl);
}
.product-card__media { padding: 0.75rem 0.75rem 0; }
.product-card__media .media > * { transition: transform 1.4s var(--ease); }
.product-card:hover .product-card__media .media > * { transform: scale(1.05); }
.product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem 1.5rem 1.75rem;
}
@media (min-width: 900px) { .product-card__body { padding: 2rem 2.25rem 2.25rem; } }
.product-card__title { margin: 0; font-size: clamp(1.45rem, 1.2rem + 0.9vw, 2rem); }
.product-card p { margin: 0; color: var(--muted); }
.product-card__foot { margin-top: auto; padding-top: 1.5rem; }
.round-arrow {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--ink);
  transition: background-color 0.3s, translate 0.5s var(--ease), rotate 0.5s var(--ease);
}
.product-card:hover .round-arrow { background: var(--accent); translate: 6px 0; rotate: -45deg; }

/* ---------- Home: environment tiles ---------- */
.tiles {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; } }
/* Very narrow screens (e.g. 400% zoom): one tile per row so long labels always fit. */
@media (max-width: 359.98px) { .tiles { grid-template-columns: minmax(0, 1fr); } }
.tile {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  height: 100%;
  min-height: 9.5rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, #fff, var(--bg-soft));
  color: var(--ink);
  text-decoration: none;
  transition: translate 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.3s;
}
@media (min-width: 900px) { .tile { min-height: 11rem; padding: 1.6rem 1.75rem; } }
.tile:hover { color: var(--ink); translate: 0 -4px; border-color: transparent; box-shadow: var(--shadow-lg); }
.tile__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 14px;
  background: #fff;
  color: var(--accent-ink);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color 0.4s, color 0.4s, rotate 0.6s var(--ease), box-shadow 0.4s;
}
.tile:hover .tile__icon { background: var(--accent); color: var(--ink); rotate: -8deg; box-shadow: 0 10px 22px -10px rgb(20 165 183 / 0.8); }
.tile__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 0.75rem; margin-top: auto; }
.tile__label {
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.92rem + 0.35vw, 1.2rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.tile__arrow { opacity: 0.3; transition: opacity 0.3s, transform 0.5s var(--ease); }
.tile:hover .tile__arrow { opacity: 1; transform: translateX(4px); color: var(--accent-ink); }

/* ---------- Home: video + offer ---------- */
.video-grid { display: grid; gap: 1.25rem; max-width: 1000px; margin-inline: auto; }
.video-grid:has(> :nth-child(2)) { max-width: none; }
@media (min-width: 900px) { .video-grid:has(> :nth-child(2)) { grid-template-columns: 1fr 1fr; } }
.video-grid .media { box-shadow: var(--shadow-lg); }

.offer-section { position: relative; isolation: isolate; overflow: hidden; }
.aurora { position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.aurora span {
  position: absolute;
  width: min(85vw, 1050px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(20 165 183 / 0.3), transparent 60%);
}
.aurora span:nth-child(1) { top: -55%; left: -15%; animation: drift-a 22s var(--ease-io) infinite alternate; }
.aurora span:nth-child(2) {
  right: -20%;
  bottom: -60%;
  background: radial-gradient(circle, rgb(43 188 205 / 0.2), transparent 60%);
  animation: drift-b 28s var(--ease-io) infinite alternate;
}
.grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.08;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.offer-section .section-head h2 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.9rem); }

.price-grid { display: grid; gap: 1rem; max-width: 920px; margin-inline: auto; }
@media (min-width: 720px) { .price-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }

.offer-note {
  max-width: 40rem;
  margin: 2.25rem auto 0;
  text-align: center;
  color: rgb(255 255 255 / 0.75);
}

/* ---------- Price cards ---------- */
.price-card {
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: translate 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.price-card:hover { translate: 0 -4px; box-shadow: var(--shadow-lg); }
.price-card__name { margin: 0 0 1.4rem; font-size: 1.15rem; letter-spacing: 0.16em; }
.price-card__rows { display: grid; gap: 0.9rem; margin: 0; }
.price-card__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}
.price-card__row dt { font-size: 0.95rem; color: var(--muted); }
.price-card__row dd { margin: 0; font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.price-card__row--offer { padding-bottom: 0; border-bottom: 0; }
.price-card__row--offer dt { font-weight: 600; color: var(--ink); }
.price-card__row--offer dd {
  font-size: clamp(2.2rem, 1.6rem + 2vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.price-card__save {
  display: inline-block;
  margin: 1.4rem 0 0;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
}

.section--ink .price-card {
  border-color: rgb(255 255 255 / 0.12);
  background: linear-gradient(160deg, rgb(255 255 255 / 0.09), rgb(255 255 255 / 0.02));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08);
}
.section--ink .price-card:hover { box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08), 0 30px 70px -30px rgb(20 165 183 / 0.5); }
.section--ink .price-card__name,
.section--ink .price-card__row dd,
.section--ink .price-card__row--offer dt { color: #fff; }
.section--ink .price-card__row dt { color: rgb(255 255 255 / 0.68); }
.section--ink .price-card__row { border-color: rgb(255 255 255 / 0.12); }
.section--ink .price-card__row--offer dd {
  background: var(--grad-accent-dark);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section--ink .price-card__save { background: rgb(20 165 183 / 0.18); color: var(--accent-light); }

/* Kickstarter variant */
.price-stack { display: grid; gap: 1rem; }
.price-card--compact { padding: 1.6rem 1.85rem; }
.price-card__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.price-card__top .price-card__name { margin: 0; }
.ks-price { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin: 0; color: var(--muted); }
.ks-price strong { font-family: var(--font-display); font-weight: 800; color: var(--ink); }
.ks-price__rrp strong { font-size: 1.2rem; }
.ks-price__offer strong {
  font-size: clamp(1.9rem, 1.5rem + 1.3vw, 2.5rem);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.ks-price__offer { color: var(--ink); font-weight: 600; }
.ks-price__arrow { color: var(--accent-ink); }

/* Products variant */
.offer-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-top: 2rem;
  padding: 1.35rem 1.6rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--bg-tint), #fff 70%);
  box-shadow: inset 0 0 0 1px #cbe9ee, var(--shadow-sm);
}
.section--soft .offer-panel { background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); }
.offer-panel__prices { display: flex; flex-wrap: wrap; gap: 0.75rem 2.5rem; margin: 0; }
.offer-panel__prices dt { margin-bottom: 0.35rem; font-size: 0.82rem; color: var(--muted); }
.offer-panel__prices dd { margin: 0; font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; line-height: 1; color: var(--ink); }
.offer-panel__prices .is-offer dt { color: var(--ink); font-weight: 600; }
.offer-panel__prices .is-offer dd { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }

/* ---------- Page heroes ---------- */
.page-hero { padding-block: clamp(3.25rem, 2rem + 4.5vw, 6.5rem) clamp(2.75rem, 2rem + 3vw, 5rem); }
.page-hero__inner { max-width: 54rem; }
.page-hero--center .page-hero__inner { margin-inline: auto; text-align: center; }
.page-hero--compact { padding-bottom: 2.25rem; }
.page-hero--tall { padding-block: clamp(5rem, 4rem + 6vw, 9rem); }
.split--hero h1 { font-size: clamp(2.4rem, 1.5rem + 3.2vw, 4rem); }
.about-collage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.75rem, 2vw, 1.25rem);
  width: 100%;
  max-width: 34rem;
  margin-inline: auto;
}
.about-collage__item .media { box-shadow: var(--shadow-xl); }
.about-collage__item:first-child { margin-top: clamp(1.5rem, 4vw, 3rem); }
.about-collage__item:last-child { margin-bottom: clamp(1.5rem, 4vw, 3rem); }
.about-collage__item .media > img { transition: transform 1.2s var(--ease); }
.about-collage__item:hover .media > img { transform: scale(1.04); }

.jump { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2.25rem; }
.jump__link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.1rem 0.55rem 0.55rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.8);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.3s, background-color 0.3s, color 0.3s, translate 0.4s var(--ease);
}
.jump__num {
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--bg-soft);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  transition: background-color 0.3s, color 0.3s;
}
.jump__link .icon { width: 1rem; height: 1rem; color: var(--accent-ink); transition: transform 0.4s var(--ease); }
.jump__link:hover { color: #fff; background: var(--ink); border-color: var(--ink); translate: 0 -2px; }
.jump__link:hover .jump__num { background: var(--accent); color: var(--ink); }
.jump__link:hover .icon { color: var(--accent); transform: translateY(3px); }

/* ---------- Products page ---------- */
.product { scroll-margin-top: var(--header-h); }
.product__grid { display: grid; gap: 2.75rem; align-items: start; }
@media (min-width: 960px) {
  .product__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(3rem, 2rem + 4vw, 6rem); }
  .product__grid--reverse > :first-child { order: 2; }
  .product__info { position: sticky; top: calc(var(--header-h) + 2rem); }
}
.product__grid--fit { margin-top: clamp(2.75rem, 2rem + 2.5vw, 4.5rem); }
.product__title { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.2rem); margin-bottom: 1.1rem; }
.product__video { max-width: 1000px; margin: clamp(2.75rem, 2rem + 2.5vw, 4.5rem) auto 0; }
.product__video .media { box-shadow: var(--shadow-lg); }

/* Gallery */
.gallery { display: grid; gap: 0.75rem; }
.gallery__main { --ratio-override: 1/1; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.gallery--wide .gallery__main { --ratio-override: 4/3; }
.gallery__main .media { border-radius: var(--radius-lg); }
.thumbs { display: grid; gap: 0.6rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.thumbs--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.thumb {
  --ratio-override: 1/1;
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: none;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s, translate 0.4s var(--ease);
}
.thumb .media { border-radius: 12px; }
.thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 2px transparent;
  transition: box-shadow 0.3s;
  pointer-events: none;
}
.thumb:hover { opacity: 1; translate: 0 -2px; }
.thumb:focus-visible { opacity: 1; } /* never dim the keyboard focus ring */
.thumb.is-active { opacity: 1; }
.thumb.is-active::after { box-shadow: inset 0 0 0 2px var(--accent-ink), 0 0 0 4px rgb(20 165 183 / 0.18); }

.info-block { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.info-block--first { margin-top: 0; padding-top: 0; border-top: 0; }
.info-block--highlight {
  padding: 1.5rem 1.6rem;
  border-top: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--bg-tint), #fff 75%);
  box-shadow: inset 0 0 0 1px #cbe9ee;
}
.section--soft .info-block--highlight { background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); }
.info-block__label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.info-block__label::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgb(20 165 183 / 0.15);
}
.info-block p { margin: 0; }

/* Future concepts */
.future { display: grid; gap: 2.75rem; }
@media (min-width: 960px) {
  .future { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 4.5rem; align-items: center; }
}
.future__head h2 { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.75rem); }
.future__head p { color: var(--muted); }

.concepts { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .concepts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.concept {
  padding: 0.75rem 0.75rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: translate 0.6s var(--ease), box-shadow 0.6s var(--ease), border-color 0.3s;
}
.concept:hover { translate: 0 -5px; border-color: transparent; box-shadow: var(--shadow-lg); }
.concept .media { border-radius: calc(var(--radius-lg) - 8px); }
.concept .media > * { transition: transform 1.4s var(--ease); }
.concept:hover .media > * { transform: scale(1.06); }
.concept__body { padding: 1.1rem 0.5rem 0; }
.concept__title { margin: 0.85rem 0 0; font-size: 1.08rem; line-height: 1.3; letter-spacing: -0.015em; }

@media (max-width: 639.98px) {
  .concepts--small .concept {
    display: grid;
    grid-template-columns: 6.5rem 1fr;
    gap: 1rem;
    align-items: center;
    padding: 0.6rem;
    border-radius: var(--radius);
  }
  .concepts--small .concept .media { --ratio-override: 1/1; border-radius: 10px; }
  .concepts--small .concept__body { padding: 0; }
  .concepts--small .concept__title { margin-top: 0.5rem; font-size: 0.98rem; }
}

.ip-card {
  padding: clamp(1.75rem, 1.25rem + 2vw, 2.75rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(140deg, var(--bg-tint), var(--bg-soft));
  box-shadow: inset 0 0 0 1px #d4ecf0;
}

/* CTA band */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: clamp(2.25rem, 1.5rem + 3.5vw, 4.5rem);
  border-radius: calc(var(--radius-lg) + 4px);
  background: var(--ink);
  color: #fff;
}
.cta-band__glow {
  position: absolute;
  z-index: -1;
  top: -380px;
  right: -260px;
  width: 760px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 20%, rgb(20 165 183 / 0.6) 35%, transparent 50%, rgb(43 188 205 / 0.35) 72%, transparent 88%);
  filter: blur(60px);
  animation: spin 18s linear infinite;
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 100% 0%, #000, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 90% at 100% 0%, #000, transparent 70%);
}
.cta-band h2 { margin: 0; color: #fff; font-size: clamp(1.75rem, 1.2rem + 2vw, 2.9rem); }
.cta-band .pill { margin-bottom: 1.25rem; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1fr auto; gap: 3rem; } }

/* ---------- Kickstarter page ---------- */
.ks-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 1040px;
  margin: clamp(2.25rem, 1.5rem + 2.5vw, 4rem) auto 0;
}
@media (min-width: 720px) { .ks-media { gap: 1.5rem; } }
.ks-media__item .media {
  box-shadow: var(--shadow-xl);
  transition: rotate 0.8s var(--ease), translate 0.8s var(--ease);
}
@media (min-width: 720px) {
  .ks-media__item:first-child .media { rotate: -2deg; translate: 0 10px; }
  .ks-media__item:last-child .media { rotate: 2deg; }
  .ks-media:hover .ks-media__item .media { rotate: 0deg; translate: 0 0; }
}

.ks-grid { display: grid; gap: 2rem; padding-top: clamp(1rem, 0.5rem + 3vw, 4rem); }
@media (min-width: 960px) {
  .ks-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 30rem); gap: 3.5rem; align-items: start; }
  .ks-grid .ks-form { position: sticky; top: calc(var(--header-h) + 1.5rem); }
  .ks-offers { padding-top: 0.5rem; }
}
.ks-note { margin-top: 1.5rem; color: var(--muted); }
.ks-video { max-width: 1000px; margin-top: clamp(3rem, 2.5rem + 2.5vw, 5.5rem); }
#waitlist { scroll-margin-top: calc(var(--header-h) + 1.5rem); }

/* ---------- Forms ---------- */
.form-card {
  padding: clamp(1.5rem, 1rem + 2vw, 2.6rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.form-card--glow {
  position: relative;
  border-color: transparent;
  box-shadow: 0 40px 90px -40px rgb(20 165 183 / 0.55), var(--shadow-lg);
}
.form-card--glow::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1.5px;
  border-radius: inherit;
  background: conic-gradient(from var(--angle), rgb(20 165 183 / 0.15), var(--accent) 12%, rgb(20 165 183 / 0.15) 30%, rgb(20 165 183 / 0.15) 60%, var(--accent-ink) 72%, rgb(20 165 183 / 0.15) 90%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: spin-angle 7s linear infinite;
  pointer-events: none;
}

.form { display: grid; gap: 1.35rem; }
.form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.form__question {
  margin-bottom: 1rem;
  padding: 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.form-row { display: grid; gap: 1.35rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.field { display: grid; gap: 0.5rem; align-content: start; }
.field__label { font-size: 0.94rem; font-weight: 600; color: var(--ink); transition: color 0.2s; }
.field:focus-within > .field__label { color: var(--accent-ink); }
.req { color: var(--accent-ink); font-weight: 700; }
.optional { font-weight: 400; color: var(--muted); }

.input, .select, .textarea {
  width: 100%;
  min-height: 3.35rem;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--field-border);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.3s var(--ease), background-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.input::placeholder, .textarea::placeholder { color: var(--placeholder); opacity: 1; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--field-border-hover); }
/* Focus: the border thickens to a solid teal ring (clearly visible on its own), plus a soft glow. */
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--accent-ink);
  box-shadow: 0 0 0 2px var(--accent-ink), 0 0 0 6px rgb(20 165 183 / 0.2);
}
.select {
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e2433' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.1rem;
  cursor: pointer;
}
.textarea { min-height: 9.5rem; resize: vertical; line-height: 1.55; }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); }
.input[aria-invalid="true"]:focus, .select[aria-invalid="true"]:focus, .textarea[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 2px var(--danger), 0 0 0 6px rgb(180 35 24 / 0.14);
}

.field__error { margin: 0; font-size: 0.875rem; font-weight: 500; color: var(--danger); }
.field__error:not([hidden]) { animation: error-in 0.4s var(--ease); }

/* Checkboxes */
.check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 1rem 1.1rem;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.3s, box-shadow 0.3s;
}
.check:hover { border-color: #97aab3; }
.check:has(input:checked) { border-color: var(--accent-ink); background: var(--bg-tint); box-shadow: 0 0 0 4px rgb(20 165 183 / 0.1); }
.check:has(input[aria-invalid="true"]) { border-color: var(--danger); }
.check input {
  display: grid;
  place-content: center;
  width: 1.4rem;
  height: 1.4rem;
  margin: 0.05rem 0 0;
  border: 1.5px solid var(--field-border);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background-color 0.2s, border-color 0.2s, transform 0.3s var(--ease);
}
.check input::before {
  content: "";
  width: 0.8rem;
  height: 0.8rem;
  background: #fff;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  transform: scale(0);
  transition: transform 0.3s var(--ease);
}
.check input:checked { background: var(--accent-ink); border-color: var(--accent-ink); }
.check input:checked::before { transform: scale(1); }
.check input:active { transform: scale(0.9); }
.check input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.check--plain { padding: 0; border: 0; background: none; font-weight: 400; font-size: 0.95rem; color: var(--text); }
.check--plain:has(input:checked) { background: none; box-shadow: none; }
.check--plain:hover { border-color: transparent; }
.field--checks { gap: 1rem; padding-top: 0.25rem; }

.conditional {
  display: grid;
  gap: 1.25rem;
  padding: 1.25rem !important;
  border: 1px solid #cbe9ee !important;
  border-radius: 14px;
  background: var(--bg-tint);
}
.conditional:not([hidden]) { animation: fade-up 0.5s var(--ease); }
.conditional[hidden] { display: none; }
.conditional__title {
  float: left;
  width: 100%;
  margin: 0;
  padding: 0;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.conditional__title + * { clear: both; }

.form__note { margin: 0; font-size: 0.85rem; line-height: 1.55; color: var(--muted); }
.form__submit { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.form__hint { margin: 0; font-size: 0.85rem; color: var(--muted); }
@media (max-width: 479.98px) { .form__submit .btn { width: 100%; } }

.form__status {
  margin: 0;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 0.94rem;
}

/* Honeypot (spam trap) */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-success { display: grid; justify-items: center; gap: 0.6rem; padding: 1.75rem 0.5rem; text-align: center; }
.form-success[hidden] { display: none; }
.form-success:not([hidden]) { animation: fade-up 0.7s var(--ease); }
.form-success:focus { outline: none; }
.form-success__icon {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  margin-bottom: 0.6rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  box-shadow: 0 0 0 10px var(--accent-soft), 0 20px 40px -16px rgb(20 165 183 / 0.8);
  animation: pop 0.7s var(--ease) 0.1s backwards;
}
.form-success__icon .icon { width: 2rem; height: 2rem; stroke-width: 2.5; }
.form-success__icon path { stroke-dasharray: 24; animation: draw 0.8s var(--ease) 0.4s backwards; }
.form-success__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.form-success p { margin: 0; }
.form-success__preview {
  margin-top: 0.75rem !important;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  background: var(--bg-soft);
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- Contact page ---------- */
.contact-grid { display: grid; gap: 2rem; }
@media (min-width: 960px) {
  .contact-grid { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
  .contact-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}
.contact-aside { display: grid; gap: 1.25rem; }
.contact-card {
  display: grid;
  gap: 0.25rem;
  padding: 1.6rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--bg-tint), var(--bg-soft));
  box-shadow: inset 0 0 0 1px #d4ecf0;
}
.contact-card__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.85rem;
  border-radius: 14px;
  background: var(--accent);
  color: var(--ink);
  box-shadow: 0 12px 24px -12px rgb(20 165 183 / 0.8);
}
.contact-card__label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-card__value {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.contact-card__value:hover { color: var(--accent-ink); text-decoration: underline; }

/* ---------- Dialog (waitlist pop-up) ---------- */
.dialog {
  width: min(100% - 2rem, 31rem);
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: #fff;
  color: var(--text);
  box-shadow: 0 40px 120px -30px rgb(0 0 0 / 0.5);
  overflow: auto;
  overscroll-behavior: contain;
}
.dialog::backdrop {
  background: rgb(14 36 51 / 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.dialog[open] { animation: dialog-in 0.5s var(--ease); }
.dialog[open]::backdrop { animation: fade-in 0.4s var(--ease); }
.dialog__glow {
  position: absolute;
  inset: 0 0 auto;
  height: 200px;
  background: radial-gradient(70% 100% at 50% 0%, rgb(20 165 183 / 0.2), transparent);
  pointer-events: none;
}
.dialog__inner { position: relative; padding: clamp(1.5rem, 1rem + 2vw, 2.4rem); }
.dialog__title { padding-right: 2.5rem; font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); }
.dialog .form__question { font-size: 1.05rem; }
.dialog__close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.2s, rotate 0.5s var(--ease);
}
.dialog__close:hover { background: var(--line); rotate: 90deg; }
html:has(.dialog[open]) { overflow: hidden; }

/* ---------- Legal pages ---------- */
.legal__meta { margin: 0; font-size: 0.9rem; color: var(--muted); }
.legal h1 { font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem); }
.prose { font-size: 1.02rem; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 2.75rem 0 0.85rem; font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.7rem); letter-spacing: -0.025em; }
.prose h3 { margin: 1.75rem 0 0.6rem; font-size: 1.1rem; letter-spacing: -0.01em; }
.prose ul, .prose ol { margin: 0 0 1.25em; padding-left: 1.25rem; }
.prose li { margin-bottom: 0.4rem; }
.prose li::marker { color: var(--accent-ink); }
/* Tables sit in a scroll container: on narrow screens the table scrolls sideways inside it
   (keyboard-focusable when it does, see main.js) and the page itself never scrolls sideways. */
.table-scroll { margin: 1.5rem 0; overflow-x: auto; }
.table-scroll:focus-visible { outline-offset: 2px; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.prose th, .prose td { padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--bg-soft); color: var(--ink); font-weight: 700; white-space: nowrap; }
mark.tbc {
  padding: 0.05em 0.4em;
  border-radius: 4px;
  background: #fff3c4;
  color: #7a4a00;
  font-size: 0.9em;
  font-weight: 600;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: clamp(4rem, 3rem + 4vw, 6.5rem);
  background: var(--ink);
  color: rgb(255 255 255 / 0.72);
  font-size: 0.95rem;
}
.footer__glow {
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: -55%;
  width: min(120vw, 1200px);
  aspect-ratio: 1;
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(20 165 183 / 0.2), transparent 60%);
  pointer-events: none;
}
.footer__grid { display: grid; gap: 2.5rem 2rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer__brand { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .footer__grid { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 3rem; }
  .footer__brand { grid-column: auto; }
}
.footer__strap {
  max-width: 22ch;
  margin: 1.25rem 0 0.6rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #fff;
}
.footer__tagline { max-width: 34ch; }
.footer__heading {
  margin: 0 0 1.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
}
.site-footer ul { display: grid; gap: 0.8rem; margin: 0; padding: 0; list-style: none; }
.footer__link {
  color: rgb(255 255 255 / 0.75);
  text-decoration: none;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1px no-repeat;
  padding-bottom: 0.15rem;
  transition: color 0.2s, background-size 0.5s var(--ease);
}
.footer__link:hover { color: #fff; background-size: 100% 1px; }
.footer__updated { margin: 1.25rem 0 0; font-size: 0.82rem; color: rgb(255 255 255 / 0.62); }
.footer__contact { display: inline-flex; align-items: center; gap: 0.6rem; overflow-wrap: anywhere; }
.footer__contact .icon { color: var(--accent); width: 1.1rem; height: 1.1rem; }
.footer__col:last-child { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer__col:last-child { grid-column: auto; } }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: clamp(3rem, 2.5rem + 2vw, 4.5rem);
  padding-block: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  font-size: 0.82rem;
  color: rgb(255 255 255 / 0.58);
}
.footer__bottom p { margin: 0; }
.footer__mark {
  margin: clamp(0.5rem, 2vw, 2rem) 0 -0.08em;
  font-family: var(--font-display);
  font-size: clamp(5.5rem, 25vw, 23rem);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.06em;
  text-align: center;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.13), rgb(255 255 255 / 0) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
  pointer-events: none;
}

/* =====================================================================
   Motion
   ===================================================================== */
@keyframes pulse { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(3.2); opacity: 0; } }
@keyframes ring { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-angle { to { --angle: 360deg; } }
@keyframes drift-a { to { transform: translate(-8%, 12%) scale(1.12); } }
@keyframes drift-b { to { transform: translate(10%, -8%) scale(0.9); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(26px); } }
@keyframes reveal-up { from { opacity: 0; transform: translateY(40px); } }
@keyframes word-up { from { transform: translateY(112%); } }
@keyframes frame-in {
  from { opacity: 0; transform: translateY(50px) scale(0.97); clip-path: inset(14% 7% 0 7% round 36px); }
  to { opacity: 1; transform: none; clip-path: inset(0 0 0 0 round var(--frame-radius, 16px)); }
}
@keyframes media-reveal {
  from { opacity: 0.4; clip-path: inset(10% 10% 10% 10% round var(--radius)); }
  to { opacity: 1; clip-path: inset(0 0 0 0 round var(--radius)); }
}
@keyframes media-zoom { from { transform: scale(1.18); } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(24px) scale(0.96); } }
@keyframes error-in { from { opacity: 0; transform: translateY(-4px); } }
@keyframes pop { from { opacity: 0; transform: scale(0.4); } }
@keyframes draw { from { stroke-dashoffset: 24; } }
@keyframes hero-parallax {
  from { transform: translateY(-3%) scale(1.1); }
  to { transform: translateY(7%) scale(1.1); }
}
@keyframes progress { to { transform: scaleX(1); } }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

@media (prefers-reduced-motion: no-preference) {
  /* Smooth cross-fade between pages (browsers with cross-document view transitions) */
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-out 0.25s var(--ease-io) both; }
  ::view-transition-new(root) { animation: vt-in 0.45s var(--ease) both; }

  /* On page load */
  .anim-in { animation: fade-up 1s var(--ease) backwards; animation-delay: calc(var(--d, 0) * 80ms + 120ms); }
  .anim-frame { animation: frame-in 1.6s var(--ease) 0.45s backwards; }
  .words--load .w > span { animation: word-up 1.2s var(--ease) backwards; animation-delay: calc(var(--i) * 70ms + 100ms); }

  /* Mobile menu items cascade in */
  .js .site-nav.is-open .site-nav__list > li,
  .js .site-nav.is-open .site-nav__cta-wrap { animation: fade-up 0.6s var(--ease) backwards; animation-delay: calc(var(--i) * 50ms + 80ms); }

  /* On scroll (html.motion is set before first paint; main.js adds .is-visible) */
  .motion .reveal:not(.is-visible),
  .motion .stagger:not(.is-visible) > * { opacity: 0; }
  .motion .reveal.is-visible { animation: reveal-up 1.1s var(--ease) backwards; }
  .motion .stagger.is-visible > * { animation: reveal-up 1s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 110ms); }

  .motion .reveal-words:not(.is-visible) .w > span { transform: translateY(112%); }
  .motion .reveal-words.is-visible .w > span { animation: word-up 1.1s var(--ease) backwards; animation-delay: calc(var(--i) * 55ms); }

  .motion .reveal-media:not(.is-visible) .media { opacity: 0; }
  .motion .reveal-media.is-visible .media { animation: media-reveal 1.4s var(--ease) backwards; }
  .motion .reveal-media.is-visible .media > * { animation: media-zoom 1.9s var(--ease) backwards; }
  .motion .reveal-media.is-visible .thumb:nth-child(2) .media { animation-delay: 0.1s; }
  .motion .reveal-media.is-visible .thumb:nth-child(3) .media { animation-delay: 0.2s; }
  .motion .reveal-media.is-visible .thumb:nth-child(4) .media { animation-delay: 0.3s; }

  /* Revealed by keyboard focus (main.js adds .is-instant): show at once, no entrance animation,
     so a focused control is never invisible while it waits to fade in. */
  .motion .reveal.is-instant,
  .motion .stagger.is-instant > *,
  .motion .reveal-words.is-instant .w > span,
  .motion .reveal-media.is-instant .media,
  .motion .reveal-media.is-instant .media > * { animation: none; }

  /* Scroll-driven: hero parallax + header progress line */
  @supports (animation-timeline: scroll()) {
    .hero__parallax { animation: hero-parallax linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    .site-header::after { animation: progress linear both; animation-timeline: scroll(root); }
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marquee__track { animation: none; }
  /* the mobile menu opens and closes instantly (its fade uses a delay that would otherwise remain) */
  .js .site-nav, .js .site-nav.is-open { transition: none; }
}
