/* ==========================================================================
   KYBOS SITE ATLAS — STYLES
   --------------------------------------------------------------------------
   Mobile-first. Breakpoints: 40em (640px), 48em (768px), 64em (1024px),
   80em (1280px), plus a "wide story" query for landscape desktops that must
   match WIDE_MIN_WIDTH / WIDE_MIN_ASPECT in atlas-scene.js.
   Every .section carries data-theme="light|dark", which swaps the colour
   tokens below; the navigation bar adopts the theme of the section under it.
   ========================================================================== */

/* ---- Tokens ------------------------------------------------------------- */
:root {
  --font: -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Arial, sans-serif;

  /* Kybos brand: ink, slate, bone, paper, copper and its glow. */
  --ink-950: #060a0b;
  --ink-900: #0a0f11;
  --slate: #111b20;
  --bone: #ede6da;
  --paper: #e9e1d2;
  --paper-2: #ddd3c1;
  --copper: #c8893b;
  --glow: #e6ae66;
  --on-copper: #0a0f11;

  --nav-h: 3.25rem;
  --gutter: clamp(1rem, 5vw, 3rem);
  --wrap: 76rem;
  --radius: 1.25rem;
  --radius-lg: 1.75rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --fs-display-1: clamp(2.5rem, 1.35rem + 5.6vw, 6rem);
  --fs-display-2: clamp(2.125rem, 1.25rem + 4vw, 4.75rem);
  --fs-h3: clamp(1.375rem, 1.1rem + 1.1vw, 2rem);
  --fs-lead: clamp(1.125rem, 1rem + 0.55vw, 1.5rem);
  --fs-body: 1.0625rem;
  --fs-eyebrow: 0.8125rem;
}

/* Every pairing below meets WCAG AA for body text (lowest: 5.5:1). */
[data-theme="dark"] {
  --bg: var(--ink-900);
  --bg-raised: var(--slate);
  --fg: var(--bone);
  --fg-2: #b3ac9f;
  --fg-3: #968f84;
  --line: rgba(237, 230, 218, 0.13);
  --line-strong: rgba(237, 230, 218, 0.32);
  --card: rgba(237, 230, 218, 0.05);
  --accent-text: var(--glow);
  --focus: var(--glow);
  --figure: linear-gradient(115deg, var(--bone) 10%, var(--glow) 130%);
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: var(--paper);
  --bg-raised: #f3eee5;
  --fg: var(--ink-900);
  --fg-2: #4a453e;
  --fg-3: #5a544b;
  --line: rgba(10, 15, 17, 0.13);
  --line-strong: rgba(10, 15, 17, 0.32);
  --card: #f3eee5;
  --accent-text: #7d4c12;
  --focus: #7d4c12;
  --figure: linear-gradient(115deg, var(--ink-900) 30%, #7d4c12 130%);
  color-scheme: light;
}

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

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  background: var(--ink-900);
}

html.menu-open {
  overflow: hidden;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.5;
  color: #f3f5f6;
  background: var(--ink-900);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote {
  margin: 0;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
}

img, svg, canvas, picture {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: rgba(200, 137, 59, 0.35);
}

:focus-visible {
  outline: 2px solid var(--focus, #e6ae66);
  outline-offset: 3px;
  border-radius: 6px;
}

main:focus {
  outline: none;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  background: var(--copper);
  color: var(--on-copper);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease-out);
}

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

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

.section {
  position: relative;
  background: var(--bg);
  color: var(--fg);
}

.noscript {
  max-width: 40rem;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 3rem) var(--gutter) 3rem;
  color: #f3f5f6;
}

.noscript p + p {
  margin-top: 1rem;
  color: #a8b3bb;
}

/* ---- Type --------------------------------------------------------------- */
.display-1 {
  font-size: var(--fs-display-1);
  line-height: 1.02;
  letter-spacing: -0.042em;
  font-weight: 600;
  text-wrap: balance;
}

.display-2 {
  font-size: var(--fs-display-2);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 600;
  text-wrap: balance;
}

.lead {
  max-width: 38em;
  font-size: var(--fs-lead);
  line-height: 1.45;
  letter-spacing: -0.012em;
  color: var(--fg-2);
  text-wrap: pretty;
}

.eyebrow {
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.section-head {
  display: grid;
  gap: 1.1rem;
  max-width: 52rem;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
  justify-items: center;
}

/* ---- Buttons and links --------------------------------------------------- */
.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.875rem;
  padding: 0.7rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s, transform 0.25s var(--ease-out);
}

.button:active {
  transform: scale(0.97);
}

.button--primary {
  background: var(--copper);
  color: var(--on-copper);
}

.button--primary:hover {
  background: var(--glow);
}

.button--ghost {
  border-color: var(--line-strong);
  color: var(--fg);
  background: transparent;
}

.button--ghost:hover {
  border-color: var(--fg-2);
  background: var(--card);
}

.button--small {
  min-height: 2.25rem;
  padding: 0.4rem 0.95rem;
  font-size: 0.875rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-height: 2.75rem;
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: none;
}

.link-arrow::after {
  content: "";
  width: 0.42em;
  height: 0.42em;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease-out);
}

.link-arrow:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.link-arrow:hover::after {
  transform: translateX(3px) rotate(45deg);
}

/* ---- Navigation ---------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  color: var(--fg);
  transition: color 0.4s var(--ease-out);
}

.site-header[data-theme="dark"] {
  --nav-bg: rgba(11, 18, 23, 0.66);
  --nav-line: rgba(255, 255, 255, 0.07);
  --panel-bg: rgba(11, 18, 23, 0.97);
}

.site-header[data-theme="light"] {
  --nav-bg: rgba(245, 245, 242, 0.8);
  --nav-line: rgba(14, 19, 22, 0.08);
  --panel-bg: rgba(245, 245, 242, 0.98);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-line);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  transition: background-color 0.4s var(--ease-out), border-color 0.4s, opacity 0.4s;
}

.site-header:not(.is-scrolled):not([data-open])::before {
  opacity: 0;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header[data-theme="dark"] { --nav-bg: rgba(11, 18, 23, 0.95); }
  .site-header[data-theme="light"] { --nav-bg: rgba(245, 245, 242, 0.97); }
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  margin-right: auto;
  text-decoration: none;
  color: var(--fg);
}

.brand__mark {
  width: 1.6rem;
  height: 1.6rem;
  flex: none;
}

.brand__name {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand__product {
  padding-left: 0.6rem;
  border-left: 1px solid var(--line-strong);
  font-size: 0.8125rem;
  color: var(--fg-2);
  white-space: nowrap;
}

.nav__toggle {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-right: -0.6rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.nav__toggle-icon {
  position: relative;
  width: 1.15rem;
  height: 0.75rem;
}

.nav__toggle-icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.35s var(--ease-out), top 0.35s var(--ease-out);
}

.nav__toggle-icon span:first-child { top: 0.125rem; }
.nav__toggle-icon span:last-child { top: 0.55rem; }

[data-open] .nav__toggle-icon span:first-child {
  top: 0.34rem;
  transform: rotate(45deg);
}

[data-open] .nav__toggle-icon span:last-child {
  top: 0.34rem;
  transform: rotate(-45deg);
}

.nav__panel {
  position: fixed;
  inset: var(--nav-h) 0 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 1.25rem var(--gutter) 2.5rem;
  overflow-y: auto;
  background: var(--panel-bg);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s var(--ease-out), visibility 0s linear 0.3s;
}

[data-open] .nav__panel {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.3s var(--ease-out);
}

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

.nav__link {
  display: block;
  padding: 0.55rem 0;
  font-size: clamp(1.75rem, 1.2rem + 3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  text-decoration: none;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.4s var(--ease-out), transform 0.5s var(--ease-out), color 0.2s;
}

[data-open] .nav__link {
  opacity: 1;
  transform: none;
}

[data-open] .nav__links li:nth-child(2) .nav__link { transition-delay: 40ms; }
[data-open] .nav__links li:nth-child(3) .nav__link { transition-delay: 80ms; }
[data-open] .nav__links li:nth-child(4) .nav__link { transition-delay: 120ms; }
[data-open] .nav__links li:nth-child(5) .nav__link { transition-delay: 160ms; }
[data-open] .nav__links li:nth-child(6) .nav__link { transition-delay: 200ms; }

.nav__cta {
  align-self: flex-start;
}

@media (min-width: 64em) {
  .nav__toggle {
    display: none;
  }

  .nav__panel {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    padding: 0;
    overflow: visible;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    visibility: visible;
    opacity: 1;
    transition: none;
  }

  .nav__links {
    flex-direction: row;
    gap: 1.75rem;
  }

  .nav__link {
    padding: 0.5rem 0;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: -0.005em;
    color: var(--fg-2);
    opacity: 1;
    transform: none;
  }

  .nav__link:hover {
    color: var(--fg);
  }

  .nav__cta {
    align-self: center;
  }
}

/* ---- Atlas: hero + 3D scroll story -------------------------------------- */
.atlas {
  background: var(--ink-950);
}

.atlas__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

/* The gradient doubles as the no-WebGL / loading background. */
.atlas__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 45% at 50% 78%, rgba(200, 137, 59, 0.1), transparent 70%),
    radial-gradient(120% 90% at 50% 75%, #1a2830 0%, #0d161c 50%, #070b0e 100%);
}

.atlas__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.4s var(--ease-out);
}

.atlas__stage.is-ready .atlas__canvas {
  opacity: 1;
}

.atlas__fallback {
  position: absolute;
  top: 62%;
  left: 50%;
  width: min(100%, 76rem, 150svh);
  transform: translateX(-50%);
  transition: top 0.9s var(--ease-out), left 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.atlas__fallback img {
  width: 100%;
}

/* Past the hero, the static image steps aside for the story cards. */
.atlas.is-past-hero .atlas__fallback {
  top: 14%;
}

@media (min-width: 56.25em) and (min-aspect-ratio: 23/20) {
  .atlas.is-past-hero .atlas__fallback {
    top: 50%;
    left: 64%;
    width: min(64%, 60rem);
    transform: translate(-50%, -50%);
  }
}

.atlas__scrim {
  position: absolute;
  inset: 0 0 auto;
  height: 55%;
  background: linear-gradient(to bottom, rgba(7, 11, 14, 0.72) 0%, rgba(7, 11, 14, 0.35) 45%, transparent 100%);
  pointer-events: none;
}

.atlas__track {
  position: relative;
  z-index: 1;
  margin-top: -100vh;
  margin-top: -100svh;
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--nav-h) + clamp(2.25rem, 7vh, 5.5rem));
  padding-bottom: 1.5rem;
  text-align: center;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}

.hero__title {
  max-width: 12em;
}

.hero__lead {
  max-width: 33em;
}

.hero__actions {
  margin-top: 0.5rem;
}

/* Frosted backing keeps the secondary action legible over the model. */
.hero .button--ghost {
  background: rgba(11, 18, 23, 0.5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.hero .button--ghost:hover {
  background: rgba(30, 42, 50, 0.7);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.25rem;
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  color: var(--fg-2);
}

.hero__meta li {
  text-shadow: 0 1px 8px rgba(7, 11, 14, 0.9);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

@media (max-width: 40em) and (max-height: 700px) {
  .hero__meta {
    display: none;
  }
}

.hero__meta li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--copper);
}

/* Story: one screen per beat; cards sit low on phones, left on desktops. */
.story__intro,
.story-step {
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: calc(var(--nav-h) + 1rem) clamp(1.25rem, 5vh, 3rem);
}

.story__intro-card,
.story-step__card {
  width: 100%;
  max-width: 30rem;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(11, 18, 23, 0.74);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
  transition: opacity 0.6s var(--ease-out);
}

.story__intro-card {
  display: grid;
  gap: 0.9rem;
}

.story__title {
  font-size: clamp(2rem, 1.4rem + 2vw, 3rem);
}

.story__lead {
  font-size: 1.0625rem;
}

.story-step__kicker {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.story-step__num {
  color: var(--fg-2);
  font-variant-numeric: tabular-nums;
}

.story-step__title {
  margin-top: 0.75rem;
  font-size: clamp(1.75rem, 1.25rem + 2vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -0.032em;
  font-weight: 600;
  text-wrap: balance;
}

.story-step__body {
  margin-top: 0.8rem;
  color: var(--fg-2);
}

@media (min-width: 56.25em) and (min-aspect-ratio: 23/20) {
  .story__intro,
  .story-step {
    align-items: center;
    padding-bottom: 0;
  }

  .story__intro-card,
  .story-step__card {
    max-width: 27rem;
    padding: 2.25rem;
  }

  .story__intro-card {
    max-width: 30rem;
  }
}

/* Live site-report readout over the model */
.atlas-hud {
  position: absolute;
  top: calc(var(--nav-h) + 0.75rem);
  left: var(--gutter);
  right: var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: rgba(11, 18, 23, 0.74);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  font-size: 0.75rem;
  color: var(--fg-2);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  pointer-events: none;
}

.atlas-hud.is-visible {
  opacity: 1;
  transform: none;
}

.is-fallback .atlas-hud {
  display: none;
}

.atlas-hud__title {
  grid-column: 1 / -1;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.atlas-hud__count {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}

.atlas-hud__bar {
  grid-column: 1 / -1;
  display: flex;
  gap: 2px;
  height: 4px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
}

.atlas-hud__bar span {
  min-width: 0;
  transition: flex-grow 0.5s var(--ease-out);
}

.atlas-hud__legend,
.atlas-hud__tower {
  display: none;
}

@media (min-width: 64em) {
  .atlas-hud {
    left: auto;
    width: 17.5rem;
    grid-template-columns: 1fr;
    padding: 1.1rem 1.25rem 1.2rem;
  }

  .atlas-hud__count {
    font-size: 2.25rem;
  }

  .atlas-hud__legend {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.3rem 1.1rem;
    margin: 0.4rem 0 0;
    padding: 0;
    list-style: none;
  }

  .atlas-hud__legend li {
    display: flex;
    align-items: center;
    gap: 0.45rem;
  }

  .atlas-hud__legend li::before {
    content: "";
    flex: none;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--dot);
  }

  .atlas-hud__n {
    margin-left: auto;
    color: var(--fg);
    font-variant-numeric: tabular-nums;
  }

  .atlas-hud__tower {
    display: block;
    margin-top: 0.35rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--fg);
  }
}

/* ---- Overview ------------------------------------------------------------ */
.overview {
  padding-block: clamp(5rem, 12vw, 10rem);
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.25rem 1.5rem;
  margin-top: clamp(3rem, 7vw, 5.5rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}

.stat {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 0.55rem;
}

.stat__value {
  font-size: clamp(2.25rem, 1.5rem + 3vw, 4rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.stat__label {
  max-width: 16em;
  font-size: 0.9375rem;
  color: var(--fg-2);
}

@media (min-width: 64em) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---- Feature showcase ---------------------------------------------------- */
.feature {
  padding-top: clamp(5rem, 11vw, 9rem);
  overflow: hidden;
}

.feature__copy {
  display: grid;
  gap: 1.5rem;
}

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

.feature__text {
  display: grid;
  gap: 1.5rem;
  align-content: end;
}

.feature__points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.feature__points li {
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.875rem;
}

.feature__media {
  margin-top: clamp(3rem, 7vw, 5.5rem);
}

.feature__frame {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0d151a;
}

.feature__frame img,
.feature__frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus, 50% 50%);
  transform: scale(var(--zoom, 1.1));
  will-change: transform;
}

.feature__caption {
  padding-block: 1rem clamp(2.5rem, 5vw, 4rem);
  font-size: 0.8125rem;
  color: var(--fg-2);
}

@media (min-width: 48em) {
  .feature__frame { aspect-ratio: 16 / 9; }
}

@media (min-width: 64em) {
  .feature__copy {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: end;
    column-gap: clamp(3rem, 6vw, 6rem);
  }

  .feature--end .feature__head {
    order: 2;
    justify-items: end;
    text-align: right;
  }

  .feature--end .feature__text {
    order: 1;
  }
}

@media (min-width: 80em) {
  .feature__frame {
    aspect-ratio: 2 / 1;
    max-height: 92vh;
  }
}

/* ---- Capabilities -------------------------------------------------------- */
.specs {
  padding-block: clamp(5rem, 12vw, 10rem);
}

.specs__grid {
  display: grid;
  margin-top: clamp(3rem, 7vw, 5rem);
  border-top: 1px solid var(--line);
}

.spec {
  display: grid;
  align-content: start;
  gap: 1rem;
  padding-block: 2rem;
  border-bottom: 1px solid var(--line);
}

.spec__title {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--fg-2);
}

.spec__highlight {
  display: grid;
  gap: 0.3rem;
}

.spec__figure {
  font-size: clamp(2.5rem, 1.8rem + 2.5vw, 3.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--fg);
  background: var(--figure);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.spec__figure-label {
  font-size: 0.9375rem;
  color: var(--fg-2);
}

.spec__list {
  display: grid;
  gap: 0.45rem;
  font-size: 0.9375rem;
}

.spec__list li {
  display: flex;
  gap: 0.6rem;
}

.spec__list li::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  margin-top: 0.6em;
  border-radius: 50%;
  background: var(--accent-text);
}

@media (min-width: 40em) {
  .specs__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2.5rem;
  }
}

@media (min-width: 64em) {
  .specs__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 3.5rem;
  }
}

@media (forced-colors: active) {
  .spec__figure {
    background: none;
    -webkit-text-fill-color: currentColor;
  }
}

/* ---- Brand devices ------------------------------------------------------- */
/* Survey-sheet contour lines and corner ticks, as on the Site Atlas site. */
.contours {
  background-image:
    repeating-radial-gradient(ellipse 110% 80% at 85% 10%, transparent 0 52px, rgba(10, 15, 17, 0.06) 52px 53px),
    repeating-radial-gradient(ellipse 80% 120% at 5% 95%, transparent 0 64px, rgba(125, 76, 18, 0.08) 64px 65px);
}

[data-theme="dark"].contours {
  background-image:
    repeating-radial-gradient(ellipse 120% 90% at 12% 18%, transparent 0 46px, rgba(200, 137, 59, 0.075) 46px 47px),
    repeating-radial-gradient(ellipse 90% 130% at 92% 78%, transparent 0 58px, rgba(237, 230, 218, 0.04) 58px 59px);
}

.ticks {
  position: relative;
}

.ticks::before,
.ticks::after {
  content: "";
  position: absolute;
  z-index: 3;
  width: 14px;
  height: 14px;
  border-color: var(--copper);
  border-style: solid;
  pointer-events: none;
}

.ticks::before {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
}

.ticks::after {
  right: -1px;
  bottom: -1px;
  border-width: 0 2px 2px 0;
}

/* ---- Looping media (features and film) ----------------------------------- */
.media-frame {
  position: relative;
}

.media-frame__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus, 50% 50%);
  background: #0d151a;
}

.media-toggle {
  position: absolute;
  right: max(var(--gutter), 1rem);
  bottom: 1rem;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(237, 230, 218, 0.35);
  border-radius: 999px;
  background: rgba(10, 15, 17, 0.62);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--bone);
  cursor: pointer;
  transition: background-color 0.25s, transform 0.25s var(--ease-out);
}

.media-toggle:hover {
  background: rgba(10, 15, 17, 0.85);
}

.media-toggle:active {
  transform: scale(0.94);
}

.media-toggle svg {
  width: 1.15rem;
  height: 1.15rem;
}

.media-toggle:focus-visible {
  outline: 2px solid var(--glow);
  outline-offset: 3px;
}

/* ---- Flight film --------------------------------------------------------- */
.film {
  padding-top: clamp(5rem, 11vw, 9rem);
  overflow: hidden;
}

.film__head {
  display: grid;
  gap: 1.1rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.film__head > * {
  max-width: 52rem;
}

.film__frame {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #000;
}

.film__caption {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-block: 1rem clamp(3rem, 6vw, 5rem);
  font-size: 0.8125rem;
  color: var(--fg-2);
  min-height: 1.5em;
}

.film__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--copper);
  flex: none;
}

@media (min-width: 48em) {
  .film__frame { aspect-ratio: 16 / 9; }
}

@media (min-width: 80em) {
  .film__frame { max-height: 92vh; }
}

/* ---- Explore a capture --------------------------------------------------- */
.explore {
  padding-block: clamp(5rem, 12vw, 10rem);
  background:
    radial-gradient(80% 60% at 50% 100%, rgba(200, 137, 59, 0.08), transparent 70%),
    var(--bg);
}

.explore__head {
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.explore__stage {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 82vh;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #111b20;
}

.explore__poster,
.explore__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.explore__poster {
  object-fit: cover;
  transition: opacity 0.8s var(--ease-out), filter 0.8s var(--ease-out);
}

.explore__canvas {
  opacity: 0;
  cursor: grab;
  touch-action: none;
  transition: opacity 0.9s var(--ease-out);
}

.explore__canvas:active {
  cursor: grabbing;
}

.explore__canvas:focus-visible {
  outline: 2px solid var(--glow);
  outline-offset: -4px;
  border-radius: 0;
}

.explore__stage.is-ready .explore__canvas {
  opacity: 1;
}

.explore__stage.is-loading .explore__poster {
  filter: saturate(0.6) brightness(0.7);
}

.explore__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.75rem;
  padding: 1.5rem;
  background: radial-gradient(60% 50% at 50% 50%, rgba(10, 15, 17, 0.55), rgba(10, 15, 17, 0.1) 80%);
}

.explore__load svg {
  width: 1.25rem;
  height: 1.25rem;
}

.explore__load:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.explore__size {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(10, 15, 17, 0.6);
  font-size: 0.8125rem;
  color: var(--fg-2);
}

.explore__controls {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  display: flex;
  gap: 0.375rem;
  padding: 0.375rem;
  border: 1px solid rgba(237, 230, 218, 0.14);
  border-radius: 999px;
  background: rgba(10, 15, 17, 0.7);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--bone);
  cursor: pointer;
  transition: background-color 0.2s;
}

.icon-button:hover {
  background: rgba(237, 230, 218, 0.12);
}

.icon-button svg {
  width: 1.25rem;
  height: 1.25rem;
}

.explore__status {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 2;
  max-width: calc(100% - 2rem);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(10, 15, 17, 0.72);
  font-size: 0.8125rem;
  color: var(--bone);
}

.explore__status:empty {
  display: none;
}

.explore__stage.is-loading .explore__status::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: var(--copper);
  vertical-align: 0.05em;
  animation: pulse 1.2s ease-in-out infinite;
}

.explore__stage.is-ready .explore__status {
  bottom: auto;
  top: 1rem;
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.explore__help {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--fg-2);
}

.explore__note {
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  color: var(--fg-3);
}

.explore__disclaimer {
  color: var(--accent-text);
}

@media (max-width: 30em) {
  /* Two rows of controls on the narrowest phones keep every target 44px. */
  .explore__controls {
    left: 1rem;
    justify-content: space-between;
  }

  .explore__stage.is-ready .explore__status {
    left: 1rem;
  }
}

@media (min-width: 48em) {
  .explore__stage { aspect-ratio: 16 / 9; }
}

/* ---- Plans: survey index + panel --------------------------------------- */
.plans-section {
  padding-block: clamp(5rem, 12vw, 10rem);
}

.plan-index {
  display: grid;
  gap: 1.5rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.plan-index__tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.plan-tab {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: start;
  gap: 0.2rem 0.6rem;
  min-height: 2.75rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.875rem;
  background: transparent;
  color: var(--fg-2);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.3s, background-color 0.3s, color 0.3s;
}

.plan-tab:hover {
  color: var(--fg);
  border-color: var(--line-strong);
}

.plan-tab__num {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--fg-3);
  font-variant-numeric: tabular-nums;
  padding-top: 0.2em;
}

.plan-tab__name {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.plan-tab__tag {
  grid-column: 2;
  font-size: 0.8125rem;
  color: var(--fg-3);
}

.plan-tab[aria-selected="true"] {
  border-color: var(--copper);
  background: var(--card);
  color: var(--fg);
}

.plan-tab[aria-selected="true"] .plan-tab__num {
  color: var(--accent-text);
}

.plan-panel {
  display: grid;
  gap: 1.5rem;
}

.plan-panel:focus-visible {
  outline-offset: 6px;
}

.plan-panel__media {
  margin: 0;
}

.plan-panel__media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #0d151a;
}

.plan-panel__media figcaption {
  margin-top: 0.6rem;
  font-size: 0.8125rem;
  color: var(--fg-3);
}

.plan-panel__body {
  display: grid;
  gap: 0.9rem;
  align-content: start;
}

.plan-panel__tag {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8125rem;
  color: var(--fg-2);
}

.plan-panel__tag::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dot, var(--copper));
  flex: none;
}

.plan-panel__name {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
}

.plan__price {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.plan__features {
  display: grid;
  gap: 0.75rem;
  font-size: 1rem;
}

.plan__features li {
  display: flex;
  gap: 0.75rem;
}

.plan__features li::before {
  content: "";
  flex: none;
  width: 0.75rem;
  height: 0.4rem;
  margin-top: 0.4em;
  border-left: 2px solid var(--accent-text);
  border-bottom: 2px solid var(--accent-text);
  transform: rotate(-45deg);
}

.plan__cta {
  justify-self: start;
}

.plans__quote {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.plans__note {
  max-width: 40rem;
  font-size: 1rem;
  color: var(--fg-2);
}

@media (min-width: 48em) {
  .plan-panel__body {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    grid-template-areas:
      "tag   feat"
      "name  feat"
      "price feat"
      "cta   feat";
    column-gap: 2.5rem;
  }

  .plan-panel__tag { grid-area: tag; }
  .plan-panel__name { grid-area: name; }
  .plan__price { grid-area: price; }
  .plan__cta { grid-area: cta; align-self: end; }
  .plan__features { grid-area: feat; align-content: start; padding-left: 2.5rem; border-left: 1px solid var(--line); }
}

@media (min-width: 64em) {
  .plan-index {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.7fr);
    gap: clamp(2.5rem, 5vw, 4.5rem);
    align-items: start;
  }

  /* The index reads as a numbered survey list rather than buttons. */
  .plan-index__tabs {
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 1px solid var(--line);
  }

  .plan-tab {
    padding: 1.35rem 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    column-gap: 1.25rem;
  }

  .plan-tab::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--copper);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s var(--ease-out);
  }

  .plan-tab[aria-selected="true"] {
    background: transparent;
  }

  .plan-tab[aria-selected="true"]::after {
    transform: scaleX(1);
  }

  .plan-tab__name {
    font-size: clamp(1.5rem, 0.9rem + 1.3vw, 2.25rem);
    letter-spacing: -0.03em;
  }

  .plan-tab:focus-visible {
    outline-offset: 4px;
  }
}

/* ---- Live sites ---------------------------------------------------------- */
.live-sites {
  padding-block: clamp(5rem, 12vw, 10rem);
}

.sites {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

.site__card {
  display: grid;
  gap: 1.5rem;
}

.site__media {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  background: #0d151a;
}

.site__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 25% 50%;
  transition: transform 1.2s var(--ease-out);
}

.site__card:hover .site__media img {
  transform: scale(1.03);
}

.site__body {
  display: grid;
  align-content: center;
  gap: 0.75rem;
}

.site__label {
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.site__name {
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.site__text {
  color: var(--fg-2);
  max-width: 34em;
}

.site__points {
  display: grid;
  gap: 0.45rem;
  font-size: 0.9375rem;
}

.site__points li {
  display: flex;
  gap: 0.6rem;
}

.site__points li::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  margin-top: 0.6em;
  border-radius: 50%;
  background: var(--accent-text);
}

.site__note {
  font-size: 0.8125rem;
  color: var(--fg-3);
}

.site__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  margin-top: 0.5rem;
}

@media (min-width: 40em) {
  .site__media { aspect-ratio: 1400 / 754; }
}

@media (min-width: 64em) {
  .site__card {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
  }

  .site:nth-child(even) .site__media {
    order: 2;
  }
}

/* ---- Questions ----------------------------------------------------------- */
.faq {
  padding-block: clamp(5rem, 12vw, 10rem);
}

.faq__inner {
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
}

.faq__list {
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 3.5rem;
  padding-block: 1.1rem;
  cursor: pointer;
  list-style: none;
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__q h3 {
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.faq__q::after {
  content: "+";
  flex: none;
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1;
  color: var(--accent-text);
  transition: transform 0.3s var(--ease-out);
}

.faq__item[open] > .faq__q::after {
  transform: rotate(45deg);
}

.faq__q:focus-visible {
  outline-offset: 4px;
}

.faq__a {
  max-width: 44em;
  padding-bottom: 1.4rem;
  color: var(--fg-2);
}

@media (min-width: 64em) {
  .faq__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
    align-items: start;
  }

  .faq__head {
    position: sticky;
    top: calc(var(--nav-h) + 2rem);
  }
}

/* ---- Closing CTA --------------------------------------------------------- */
.cta {
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(6rem, 14vw, 12rem);
  text-align: center;
}

.cta__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 55% at 50% 105%, rgba(200, 137, 59, 0.3), transparent 70%),
    radial-gradient(45% 40% at 50% -5%, rgba(90, 168, 240, 0.12), transparent 70%);
}

.cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.cta__mark {
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 0.5rem;
  color: var(--fg);
}

.cta .lead {
  max-width: 30em;
}

.cta .actions {
  margin-top: 0.5rem;
}

.cta__fineprint {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--fg-3);
}

/* ---- Footer -------------------------------------------------------------- */
.site-footer {
  padding-block: clamp(3.5rem, 7vw, 5rem) 2.5rem;
  background: var(--ink-950);
  font-size: 0.875rem;
  color: var(--fg-2);
}

.footer__top {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}

.footer__tagline {
  max-width: 22rem;
  margin-top: 1rem;
}

.footer__columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.footer__heading {
  margin-bottom: 0.6rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--fg);
}

.footer__column a {
  display: inline-block;
  padding-block: 0.3rem;
  text-decoration: none;
}

.footer__column a:hover {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-top: 2rem;
}

.footer__disclaimer {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.footer__legal {
  color: var(--fg-3);
}

@media (min-width: 40em) {
  .footer__columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 64em) {
  .footer__top { grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr); }
}

/* ---- Word-by-word headings (motion.js) and smooth scroll ----------------- */
.word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}

.word__inner {
  display: inline-block;
  will-change: transform;
}

html.lenis,
html.lenis body {
  height: auto;
}

html.lenis {
  scroll-behavior: auto;
}

/* ---- Scroll reveal (only armed by main.js when motion is allowed) -------- */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}

.reveal-ready [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---- Reduced motion ------------------------------------------------------ */
@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;
    transition-delay: 0s !important;
  }

  .feature__frame img,
  .feature__frame video,
  .site__card:hover .site__media img {
    transform: none;
  }
}
