@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f5f7fa;
  --paper-deep: #e8edf1;
  --paper-light: #fbfcfd;
  --ink: #0a1310;
  --ink-soft: #1c2a23;
  --muted: #55635c;
  --muted-soft: #7a877f;
  --line: #d5dee3;
  --line-strong: #b9c7cd;
  --cobalt: #0b8f4d;
  --cobalt-deep: #06713c;
  --cyan: #12c97e;
  --violet: #0a6b3f;
  --amber: #ff9e2c;
  --machine: #050c0a;
  --machine-soft: #0a1f1a;
  --white: #ffffff;
  --shell: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius-xl: 36px;
  --radius-lg: 26px;
  --radius-md: 16px;
  --radius-sm: 11px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --shadow-soft: 0 24px 70px -32px rgba(16, 17, 20, 0.32);
  --shadow-hard: 0 40px 90px -30px rgba(10, 12, 25, 0.55);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Instrument Sans", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

::selection {
  background: var(--cobalt);
  color: var(--white);
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-color: var(--cobalt);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding-left: 1.2em;
}

li + li {
  margin-top: 0.45em;
}

strong {
  font-weight: 650;
}

code,
kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

.shell {
  width: min(var(--shell), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 180ms var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- first-paint intro ---------- */

.intro {
  display: none;
}

.intro-pending .intro {
  position: fixed;
  inset: 0;
  z-index: 240;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--paper);
  pointer-events: none;
  animation: intro-visibility 1ms step-end 2000ms forwards;
}

.intro__panel {
  position: absolute;
  left: 0;
  width: 100%;
  height: calc(50% + 1px);
  background: #0a0b0f;
  will-change: transform;
}

.intro__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 38px 38px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 68%);
  mask-image: radial-gradient(circle at 50% 50%, #000, transparent 68%);
  opacity: 0.7;
}

.intro__panel--top {
  top: 0;
  background-image:
    radial-gradient(ellipse at 50% 100%, rgba(0, 230, 118, 0.2), transparent 58%),
    linear-gradient(180deg, #0b0c11, #08090d);
  animation: intro-lift-top 780ms cubic-bezier(0.76, 0, 0.24, 1) 1160ms forwards;
}

.intro__panel--bottom {
  bottom: 0;
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(0, 184, 94, 0.18), transparent 58%),
    linear-gradient(0deg, #0b0c11, #08090d);
  animation: intro-lift-bottom 780ms cubic-bezier(0.76, 0, 0.24, 1) 1160ms forwards;
}

.intro__seam {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--cobalt), var(--violet), transparent);
  opacity: 0;
  transform: scaleX(0);
  animation: intro-seam 1050ms var(--ease-out) 140ms both;
}

.intro__core {
  position: relative;
  z-index: 4;
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 0 20px;
  text-align: center;
  animation:
    intro-core-in 640ms var(--ease-out) 40ms both,
    intro-core-out 340ms var(--ease-in-out) 960ms forwards;
}

.intro__brand {
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro__mark {
  width: 72px;
  height: 75px;
  flex: none;
  filter: drop-shadow(0 18px 34px rgba(0, 230, 118, 0.28));
  animation: intro-mark 820ms cubic-bezier(0.34, 1.56, 0.64, 1) 60ms both;
}

/* The wordmark is clipped at the mascot's edge and slides out from behind it. */
.intro__word {
  display: block;
  width: 196px;
  height: 50px;
  overflow: hidden;
  margin-left: -2px;
}

.intro__word img {
  width: 196px;
  height: 50px;
  object-fit: contain;
  object-position: left center;
  animation: intro-word 600ms var(--ease-out) 170ms both;
}

@keyframes intro-word {
  from {
    transform: translateX(-104%);
  }
  to {
    transform: translateX(0);
  }
}

.intro__name {
  font-family: "Bricolage Grotesque", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  font-size: 2.35rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.055em;
}

.intro__rule {
  width: 122px;
  height: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.intro__rule i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--cobalt) 55%, var(--violet));
  transform: scaleX(0);
  transform-origin: left;
  animation: intro-rule 720ms var(--ease-in-out) 230ms both;
}

.intro__status {
  color: rgba(241, 239, 232, 0.48);
  font-size: 0.6rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  animation: intro-status 480ms var(--ease-out) 330ms both;
}

@keyframes intro-core-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes intro-core-out {
  to {
    opacity: 0;
    transform: translateY(-12px) scale(0.98);
    filter: blur(3px);
  }
}

@keyframes intro-mark {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.7) rotate(-8deg);
  }
  55% {
    opacity: 1;
    transform: translateY(-4px) scale(1.04) rotate(2deg);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes intro-rule {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes intro-status {
  from {
    opacity: 0;
    letter-spacing: 0.24em;
  }
  to {
    opacity: 1;
    letter-spacing: 0.14em;
  }
}

@keyframes intro-seam {
  0% {
    opacity: 0;
    transform: scaleX(0);
  }
  22% {
    opacity: 0.85;
  }
  62% {
    opacity: 0.7;
  }
  100% {
    opacity: 0;
    transform: scaleX(1);
  }
}

@keyframes intro-lift-top {
  to {
    transform: translateY(-101%);
  }
}

@keyframes intro-lift-bottom {
  to {
    transform: translateY(101%);
  }
}

@keyframes intro-visibility {
  to {
    visibility: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro-pending .intro {
    display: none;
  }
}

/* ---------- type ---------- */

.display,
h1,
h2,
h3 {
  font-family: "Bricolage Grotesque", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.display {
  font-size: clamp(2.8rem, 6.4vw, 6.2rem);
}

h1 {
  font-size: clamp(2.7rem, 6vw, 5.6rem);
}

h2 {
  font-size: clamp(2.1rem, 4.2vw, 3.9rem);
}

h3 {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.lede {
  max-width: 52ch;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.4vw, 1.2rem);
  line-height: 1.55;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--cobalt-deep);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cobalt);
  box-shadow: 0 0 0 4px rgba(0, 230, 118, 0.12);
}

.eyebrow {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

/* ---------- buttons ---------- */

.button {
  --button-bg: var(--ink);
  --button-fg: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--button-bg);
  color: var(--button-fg);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 160ms var(--ease-out),
    background-color 180ms var(--ease-out),
    border-color 180ms var(--ease-out),
    color 180ms var(--ease-out);
}

.button:hover {
  background: var(--cobalt);
  color: var(--white);
}

.button:active {
  transform: scale(0.97);
}

.button svg {
  width: 17px;
  height: 17px;
  flex: none;
}

.button--small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.86rem;
}

.button--large {
  min-height: 56px;
  padding: 0 26px;
  font-size: 1rem;
}

.button--secondary {
  --button-bg: transparent;
  --button-fg: var(--ink);
  border-color: var(--line-strong);
}

.button--secondary:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* The companion is always a dark panel, so its secondary action needs the
   inverted pair rather than the page ink. */
.companion .button--secondary {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--paper);
}

.companion .button--secondary:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.button--ghost {
  --button-bg: transparent;
  --button-fg: var(--ink);
  min-height: 40px;
  padding: 0 0;
  border-radius: 0;
  border-bottom: 1px solid var(--line-strong);
}

.button--ghost:hover {
  background: transparent;
  color: var(--cobalt);
  border-color: var(--cobalt);
}

.button[aria-disabled="true"],
.button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  pointer-events: none;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  transition:
    background-color 240ms var(--ease-out),
    border-color 240ms var(--ease-out);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-right: auto;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand-mark {
  width: 32px;
  height: 34px;
  padding: 3px;
  box-sizing: border-box;
  background: #0a1f1a;
  border-radius: 9px;
  box-shadow: 0 6px 16px -9px rgba(0, 0, 0, 0.55);
}

/* The custom wordmark ships as two SVGs; the visible one follows the theme. */
.brand-word {
  display: block;
  width: 86px;
  height: 22px;
  background: url("/assets/img/hopper-wordmark-dark.svg?v=2026") no-repeat left center / contain;
}

[data-theme="dark"] .brand-word {
  background-image: url("/assets/img/hopper-wordmark-light.svg?v=2026");
}

.footer-brand .brand-word {
  width: 100px;
  height: 25px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  position: relative;
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 550;
  text-decoration: none;
  transition:
    color 160ms var(--ease-out),
    background-color 160ms var(--ease-out);
}

.nav-link:hover {
  color: var(--ink);
  background: color-mix(in srgb, var(--ink) 5%, transparent);
}

.nav-link[aria-current="page"] {
  color: var(--ink);
}

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cobalt);
  transform: translateX(-50%);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 16px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 200ms var(--ease-out);
}

.nav-toggle span {
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -5px;
}

.nav-toggle span::after {
  top: 5px;
}

.theme-toggle {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition:
    background-color 180ms var(--ease-out),
    border-color 180ms var(--ease-out),
    transform 160ms var(--ease-out);
}

.theme-toggle:hover {
  border-color: var(--line-strong);
  background: color-mix(in srgb, var(--ink) 6%, transparent);
}

.theme-toggle:active {
  transform: scale(0.94);
}

.theme-toggle__icon {
  grid-area: 1 / 1;
  width: 17px;
  height: 17px;
  pointer-events: none;
  transition:
    opacity 220ms var(--ease-out),
    transform 380ms var(--ease-out);
}

.theme-toggle__icon--moon {
  opacity: 0;
  transform: rotate(-45deg) scale(0.55);
}

[data-theme="dark"] .theme-toggle__icon--sun {
  opacity: 0;
  transform: rotate(45deg) scale(0.55);
}

[data-theme="dark"] .theme-toggle__icon--moon {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .theme-toggle,
  .theme-toggle__icon {
    transition: none;
  }
}

.mobile-nav {
  width: min(420px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  margin: 12px 12px 12px auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--paper-light);
  color: var(--ink);
  box-shadow: var(--shadow-hard);
}

.mobile-nav::backdrop {
  background: rgba(10, 11, 15, 0.42);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.mobile-nav__inner {
  padding: 20px;
}

.mobile-nav__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.mobile-nav__close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.mobile-nav__links {
  display: grid;
  gap: 4px;
}

.mobile-nav__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.mobile-nav__links a span {
  color: var(--muted-soft);
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0;
}

.mobile-nav__cta {
  display: grid;
  margin-top: 24px;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: clip;
  padding: clamp(64px, 8vw, 112px) 0 clamp(54px, 7vw, 84px);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 24px 0;
}

.hero-copy .kicker {
  margin-bottom: 26px;
}

.hero h1 {
  max-width: 12ch;
  text-wrap: balance;
}

.hero-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}

.hero-line > span {
  display: block;
  white-space: nowrap;
  animation: line-rise 1000ms var(--ease-out) both;
}

.hero-line:nth-child(1) > span {
  animation-delay: 160ms;
}

.hero-line:nth-child(2) > span {
  animation-delay: 270ms;
}

.hero-line:nth-child(3) > span {
  animation-delay: 380ms;
}

.hero h1 em {
  position: relative;
  font-style: normal;
  white-space: nowrap;
}

.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.03em;
  height: 0.08em;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--cobalt) 55%, var(--violet));
  opacity: 0.82;
  transform: scaleX(0);
  transform-origin: left;
  animation: underline-in 700ms var(--ease-out) 960ms both;
}

.hero .lede {
  margin-top: 28px;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 42px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 550;
}

.hero-facts li {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 0 16px;
  border-left: 1px solid var(--line);
}

.hero-facts li:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero-facts svg {
  width: 15px;
  height: 15px;
  color: var(--cobalt);
}

.hero-note {
  margin-top: 16px;
  color: var(--muted-soft);
  font-size: 0.78rem;
}

/* ---------- machine ---------- */

.machine-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 740px;
  padding: 10px 0 54px;
  perspective: 1400px;
}

/* ---------- auto-detect card ---------- */

.detect-card {
  position: relative;
  z-index: 6;
  display: block;
  width: min(332px, 84%);
  padding: 0;
  border: 1px solid rgba(16, 17, 20, 0.12);
  -webkit-appearance: none;
  appearance: none;
  border-radius: 15px;
  background: var(--paper-light);
  color: var(--ink);
  box-shadow:
    0 22px 48px -26px rgba(16, 17, 20, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  text-align: left;
  cursor: pointer;
  transform: rotate(-1.4deg);
  transition:
    transform 220ms var(--ease-out),
    box-shadow 220ms var(--ease-out);
  animation: detect-in 900ms var(--ease-out) 460ms both;
}

.detect-card::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + 1px);
  width: 1px;
  height: 18px;
  background: linear-gradient(var(--line-strong), transparent);
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .detect-card:hover {
    transform: rotate(0deg) translateY(-3px);
    box-shadow:
      0 28px 56px -28px rgba(16, 17, 20, 0.54),
      inset 0 1px 0 rgba(255, 255, 255, 0.7);
  }
}

.detect-card:active {
  transform: rotate(0deg) scale(0.985);
}

.detect-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border-bottom: 1px solid var(--line);
  border-radius: 14px 14px 0 0;
  background: var(--paper-deep);
}

.detect-dots {
  display: flex;
  gap: 4px;
}

.detect-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line-strong);
}

.detect-address {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--paper-light);
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detect-live {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--cobalt-deep);
  font-size: 0.56rem;
  font-weight: 700;
  white-space: nowrap;
}

.detect-live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #22b573;
  box-shadow: 0 0 0 3px rgba(34, 181, 115, 0.14);
}

.detect-body {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 11px;
}

.detect-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: 78px;
  height: 52px;
  flex: none;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(145deg, #24283b, #0b0d14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.detect-play {
  width: 0;
  height: 0;
  margin-left: 2px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid rgba(255, 255, 255, 0.8);
}

.detect-scan {
  position: absolute;
  left: -20%;
  right: -20%;
  top: 5px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--violet), transparent);
  opacity: 0;
}

.detect-frame__time {
  position: absolute;
  right: 6px;
  bottom: 4px;
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.5);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.48rem;
}

.detect-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.detect-label {
  color: var(--muted);
  font-size: 0.56rem;
  font-weight: 600;
}

.detect-copy strong {
  font-family: "Bricolage Grotesque", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.detect-copy > span:last-child {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.58rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detect-badge {
  margin-left: auto;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(34, 181, 115, 0.12);
  color: #16845a;
  font-size: 0.52rem;
  font-weight: 700;
  white-space: nowrap;
}

.detect-card.is-scanning .detect-scan {
  animation: scan-sweep 1.1s var(--ease-in-out) infinite;
}

.detect-card.is-scanning .detect-badge {
  background: rgba(0, 230, 118, 0.12);
  color: var(--cobalt-deep);
}

.detect-card.is-scanning .detect-live i {
  background: var(--cobalt);
  box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.14);
}

.detect-card.is-found .detect-badge {
  background: rgba(34, 181, 115, 0.12);
  color: #16845a;
}

.machine-aura {
  position: absolute;
  inset: 4% 0 10%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 45%, rgba(0, 230, 118, 0.18), transparent 62%),
    radial-gradient(circle at 68% 30%, rgba(0, 184, 94, 0.12), transparent 55%);
  filter: blur(24px);
  pointer-events: none;
}

.machine-tilt {
  position: relative;
  z-index: 2;
  transform-style: preserve-3d;
  transform:
    rotateX(calc(7deg + var(--tilt-y, 0) * 3.2deg))
    rotateY(calc(-8deg + var(--tilt-x, 0) * 4.2deg));
  transition: transform 520ms var(--ease-out);
  will-change: transform;
}

.machine {
  position: relative;
  width: min(426px, 76vw);
  aspect-ratio: 0.84;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 38px;
  background:
    linear-gradient(155deg, #1a1c26 0%, #0b0c11 54%, #08090c 100%);
  box-shadow:
    0 45px 100px -28px rgba(10, 12, 25, 0.62),
    0 8px 24px -8px rgba(10, 12, 25, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.13);
  color: var(--white);
}

.machine::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent 78%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent 78%);
  pointer-events: none;
}

.machine::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.machine-bar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.machine-id {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.machine-id img {
  width: 21px;
  height: 21px;
  border-radius: 6px;
}

.machine-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: #b9bcc8;
  font-size: 0.64rem;
  font-weight: 600;
  white-space: nowrap;
}

.machine-pill::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #3ddc97;
  box-shadow: 0 0 0 3px rgba(61, 220, 151, 0.12);
}

.machine-body {
  position: absolute;
  inset: 58px 0 0;
}

.funnel {
  position: absolute;
  top: 8%;
  left: 50%;
  width: 78%;
  height: 57%;
  transform: translateX(-50%);
  clip-path: polygon(0 0, 100% 0, 63% 72%, 57% 100%, 43% 100%, 37% 72%);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.025) 38%, rgba(0, 230, 118, 0.08));
  isolation: isolate;
}

.funnel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      180deg,
      transparent 0 16px,
      rgba(255, 255, 255, 0.06) 16px 17px
    );
  opacity: 0.7;
  mix-blend-mode: overlay;
}

.funnel::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  top: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(155, 251, 196, 0.03), rgba(0, 230, 118, 0.24) 66%, rgba(0, 184, 94, 0.4));
  filter: blur(18px);
  opacity: 0.9;
}

.funnel-glow {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 42%;
  height: 30%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 184, 94, 0.5), rgba(0, 230, 118, 0.16) 48%, transparent 72%);
  filter: blur(14px);
  pointer-events: none;
  animation: pulse-glow 5.5s ease-in-out infinite;
}

.funnel-pin {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 62.5%;
  width: 66px;
  height: 6px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--cobalt) 52%, var(--violet));
  box-shadow:
    0 0 22px rgba(92, 107, 242, 0.82),
    0 0 48px rgba(155, 251, 196, 0.34);
}

.funnel-pin::before,
.funnel-pin::after {
  content: "";
  position: absolute;
  top: -15px;
  bottom: -15px;
  width: 1px;
  background: linear-gradient(transparent, rgba(255, 255, 255, 0.24), transparent);
}

.funnel-pin::before {
  left: -18px;
}

.funnel-pin::after {
  right: -18px;
}

.machine-ticks {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 7%;
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.22);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.output-tray {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 7%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  box-shadow: inset 0 12px 24px -20px rgba(0, 0, 0, 0.9);
}

.output-tray::before {
  content: "";
  position: absolute;
  inset: -1px 12% auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
}

.output-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
  padding: 11px 13px 11px 11px;
  border-radius: 13px;
  background: var(--paper-light);
  color: var(--ink);
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.55);
  transition:
    transform 320ms var(--ease-out),
    opacity 220ms var(--ease-out);
}

.output-chip.is-working {
  opacity: 0.72;
  transform: translateY(4px) scale(0.98);
}

.output-chip.is-fresh {
  animation: output-in 520ms var(--ease-out);
}

.output-chip__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 9px;
  background: linear-gradient(145deg, rgba(155, 251, 196, 0.16), rgba(0, 184, 94, 0.16));
  color: var(--cobalt);
}

.output-chip__icon svg {
  width: 17px;
  height: 17px;
}

.output-chip__copy {
  display: grid;
  gap: 1px;
  line-height: 1.15;
}

.output-chip__name {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.output-chip__meta {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 550;
}

.output-chip__check {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--cobalt);
  color: var(--white);
}

.output-chip__check svg {
  width: 11px;
  height: 11px;
}

.trim-flag {
  position: absolute;
  top: -11px;
  right: 12px;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--amber);
  color: #2a1a02;
  font-size: 0.55rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 12px -4px rgba(255, 158, 44, 0.5);
}

.machine-note {
  position: absolute;
  left: 50%;
  bottom: 2.4%;
  z-index: 3;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.34);
  font-size: 0.55rem;
  font-weight: 550;
  white-space: nowrap;
}

.file-rail {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.file-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 92px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(16, 17, 20, 0.94);
  color: var(--paper);
  box-shadow:
    0 14px 30px -14px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-size: 0.7rem;
  font-weight: 650;
  cursor: grab;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  transition:
    transform 200ms var(--ease-out),
    border-color 200ms var(--ease-out),
    background-color 200ms var(--ease-out);
  animation: chip-in 700ms var(--ease-out) both;
}

.file-chip:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(26, 28, 36, 0.98);
  transform: translateY(-3px);
}

.file-chip:active {
  cursor: grabbing;
  transform: scale(0.97);
}

.file-chip.is-dragging {
  position: fixed;
  z-index: 80;
  pointer-events: none;
  cursor: grabbing;
  transform: rotate(-2deg) scale(1.03);
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.7);
}

.file-chip.is-sent {
  opacity: 0;
  transform: translateY(-12px) scale(0.9);
  transition:
    opacity 260ms var(--ease-out),
    transform 260ms var(--ease-out);
}

.file-chip__icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #d9dbe4;
}

.file-chip__icon svg {
  width: 12px;
  height: 12px;
}

.file-chip--a {
  top: 7%;
  left: 0;
  animation-delay: 780ms;
}

.file-chip--b {
  top: 17%;
  right: 0;
  animation-delay: 900ms;
}

.file-chip--c {
  top: 30%;
  left: -3%;
  animation-delay: 1020ms;
}

.file-chip--d {
  bottom: 25%;
  right: -2%;
  animation-delay: 1140ms;
}

.format-switch {
  position: absolute;
  bottom: 0;
  left: 50%;
  z-index: 5;
  display: flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper-light) 92%, transparent);
  box-shadow: 0 18px 40px -26px rgba(16, 17, 20, 0.35);
  transform: translateX(-50%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.format-option {
  min-height: 34px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 650;
  cursor: pointer;
  transition:
    background-color 180ms var(--ease-out),
    color 180ms var(--ease-out),
    transform 160ms var(--ease-out);
}

.format-option:hover {
  color: var(--ink);
}

.format-option:active {
  transform: scale(0.96);
}

.format-option[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

.machine-hint {
  position: absolute;
  bottom: 48px;
  left: 50%;
  z-index: 5;
  transform: translateX(-50%);
  color: var(--muted-soft);
  font-size: 0.68rem;
  font-weight: 550;
  white-space: nowrap;
}

/* ---------- proof strip ---------- */

.proof-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.proof-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.proof-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px 26px;
  border-left: 1px solid var(--line);
}

.proof-item:first-child {
  border-left: 0;
  padding-left: 0;
}

.proof-item:last-child {
  padding-right: 0;
}

.proof-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--cobalt);
}

.proof-icon svg {
  width: 16px;
  height: 16px;
}

.proof-copy {
  display: grid;
  gap: 1px;
}

.proof-copy strong {
  font-size: 0.84rem;
  font-weight: 650;
}

.proof-copy span {
  color: var(--muted);
  font-size: 0.72rem;
}

/* ---------- web download demo ---------- */

.web-section {
  position: relative;
}

.web-section .shell {
  position: relative;
  z-index: 1;
}

.web-flow {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 10% 14%, rgba(155, 251, 196, 0.13), transparent 42%),
    radial-gradient(circle at 90% 82%, rgba(0, 184, 94, 0.17), transparent 48%),
    #08090d;
  color: var(--paper);
  box-shadow: var(--shadow-hard);
}

.web-flow::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.027) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.027) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000, transparent 75%);
  mask-image: radial-gradient(circle at 50% 40%, #000, transparent 75%);
  pointer-events: none;
}

.web-flow__stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) 94px minmax(0, 0.7fr);
  gap: clamp(16px, 2.4vw, 30px);
  align-items: center;
  padding: clamp(24px, 4.4vw, 54px) clamp(20px, 4.4vw, 54px) clamp(18px, 3vw, 32px);
}

/* the page */

.web-browser {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow:
    0 30px 70px -40px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.web-browser__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.web-browser__dots {
  display: flex;
  flex: none;
  gap: 4px;
}

.web-browser__dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.web-browser__url {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.28);
  color: #8d92a2;
  font-size: 0.6rem;
  white-space: nowrap;
}

.web-browser__url svg {
  width: 10px;
  height: 10px;
  flex: none;
  color: #7ee2b8;
}

.web-browser__url > span:not(.web-browser__scan) {
  overflow: hidden;
  text-overflow: ellipsis;
}

.web-browser__scan {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -32%;
  width: 32%;
  background: linear-gradient(90deg, transparent, rgba(155, 251, 196, 0.2), transparent);
  opacity: 0;
}

.web-flow.is-scanning .web-browser__scan {
  animation: web-url-scan 1.15s var(--ease-in-out) infinite;
  opacity: 1;
}

.web-browser__auto {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 5px;
  color: #7ee2b8;
  font-size: 0.58rem;
  font-weight: 700;
  white-space: nowrap;
}

.web-browser__auto i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #3ddc97;
  box-shadow: 0 0 0 3px rgba(61, 220, 151, 0.12);
}

.web-browser__page {
  position: relative;
  padding: 14px;
}

.web-browser__poster {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 11px;
  background:
    radial-gradient(circle at 64% 32%, rgba(0, 230, 118, 0.42), transparent 46%),
    linear-gradient(145deg, #262b40, #0a0c14 74%);
}

.web-browser__poster::before {
  content: "";
  position: absolute;
  inset: 18% 16%;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.055), transparent 62%);
  transform: skewX(-7deg);
}

.web-browser__glow {
  position: absolute;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 184, 94, 0.48), rgba(155, 251, 196, 0.12) 52%, transparent 72%);
  filter: blur(18px);
}

.web-browser__play {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(8, 9, 13, 0.4);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.web-browser__play::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid rgba(255, 255, 255, 0.88);
}

.web-browser__scanline {
  position: absolute;
  z-index: 2;
  top: 0;
  left: -14%;
  right: -14%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--violet), transparent);
  opacity: 0;
  pointer-events: none;
}

.web-flow.is-scanning .web-browser__scanline {
  animation: web-scan 1.4s var(--ease-in-out) infinite;
  opacity: 1;
}

.web-browser__time {
  position: absolute;
  z-index: 2;
  right: 8px;
  bottom: 7px;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.48);
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.5rem;
}

.web-browser__meta {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.web-browser__meta span {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.web-browser__meta span:first-child {
  width: 56%;
}

.web-browser__meta span:last-child {
  width: 32%;
}

.web-browser__toast {
  position: absolute;
  z-index: 3;
  left: 22px;
  right: 22px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(8, 9, 13, 0.92);
  box-shadow: 0 14px 30px -16px rgba(0, 0, 0, 0.9);
  opacity: 0;
  transform: translateY(8px) scale(0.985);
  transform-origin: bottom;
  transition:
    opacity 260ms var(--ease-out),
    transform 380ms var(--ease-out);
}

.web-flow.is-found .web-browser__toast,
.web-flow.is-saving .web-browser__toast,
.web-flow.is-saved .web-browser__toast {
  opacity: 1;
  transform: none;
}

.web-browser__toast-mark {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
  overflow: hidden;
  border-radius: 6px;
}

.web-browser__toast-mark img {
  width: 22px;
  height: 22px;
}

.web-browser__toast-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.web-browser__toast-copy strong {
  color: var(--paper);
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.web-browser__toast-copy span {
  overflow: hidden;
  color: #8d92a2;
  font-size: 0.56rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.web-browser__toast-badge {
  margin-left: auto;
  flex: none;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(61, 220, 151, 0.12);
  color: #7ee2b8;
  font-size: 0.5rem;
  font-weight: 700;
}

/* the handoff */

.web-transfer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.web-transfer__label,
.web-transfer__note {
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.52rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.web-transfer__note {
  color: rgba(255, 255, 255, 0.24);
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
}

.web-transfer__line {
  position: relative;
  width: 100%;
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.25) 0 4px, transparent 4px 9px);
}

.web-transfer__line::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -1px;
  width: 5px;
  height: 5px;
  border-top: 1px solid rgba(255, 255, 255, 0.34);
  border-right: 1px solid rgba(255, 255, 255, 0.34);
  transform: translateY(-50%) rotate(45deg);
}

.web-transfer__line i {
  position: absolute;
  top: 50%;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 16px rgba(155, 251, 196, 0.85);
  opacity: 0;
  transform: translate(-50%, -50%);
}

.web-flow.is-saving .web-transfer__line i {
  animation: web-transfer 1.35s var(--ease-in-out) infinite;
}

/* the file */

.web-save {
  position: relative;
  overflow: hidden;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  opacity: 0.55;
  transform: translateY(4px);
  transition:
    opacity 320ms var(--ease-out),
    transform 420ms var(--ease-out),
    border-color 320ms var(--ease-out);
}

.web-flow.is-found .web-save,
.web-flow.is-saving .web-save,
.web-flow.is-saved .web-save {
  border-color: rgba(255, 255, 255, 0.19);
  opacity: 1;
  transform: none;
}

.web-save__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #8d92a2;
  font-size: 0.6rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.web-save__top [data-web-state] {
  color: #7ee2b8;
  font-size: 0.52rem;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.web-save__file {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
}

.web-save__icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 9px;
  background: linear-gradient(145deg, rgba(155, 251, 196, 0.18), rgba(0, 230, 118, 0.22));
  color: #a9b8ff;
}

.web-save__icon svg {
  width: 15px;
  height: 15px;
}

.web-save__copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.web-save__copy strong {
  overflow: hidden;
  color: var(--paper);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.web-save__copy span {
  overflow: hidden;
  color: #8d92a2;
  font-size: 0.56rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.web-save__check {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-left: auto;
  flex: none;
  border-radius: 50%;
  background: #22b573;
  color: var(--white);
  opacity: 0;
  transform: scale(0.6);
  transition:
    opacity 220ms var(--ease-out),
    transform 320ms var(--ease-out);
}

.web-save__check svg {
  width: 10px;
  height: 10px;
}

.web-flow.is-saved .web-save__check {
  opacity: 1;
  transform: none;
  animation: web-check 460ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.web-save__progress {
  height: 3px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.web-save__progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--cobalt) 55%, var(--violet));
  transition: width 1.35s var(--ease-out);
}

.web-flow__bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 clamp(20px, 4.4vw, 54px) clamp(20px, 3.4vw, 30px);
}

.web-flow__caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  color: #8d92a2;
  font-size: 0.72rem;
}

.web-flow__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #b9bcc8;
  font-size: 0.58rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.web-flow__live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #3ddc97;
  box-shadow: 0 0 0 3px rgba(61, 220, 151, 0.12);
  animation: live-pulse 2.8s ease-in-out infinite;
}

.web-flow__replay {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #d9dbe4;
  font-size: 0.68rem;
  font-weight: 650;
  cursor: pointer;
  transition:
    background-color 180ms var(--ease-out),
    border-color 180ms var(--ease-out),
    transform 160ms var(--ease-out);
}

.web-flow__replay:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
}

.web-flow__replay:active {
  transform: scale(0.96);
}

.web-flow__replay:focus-visible {
  outline-color: var(--cyan);
}

.web-flow + .steps {
  margin-top: clamp(32px, 4.4vw, 56px);
}

/* ---------- sections ---------- */

.section {
  padding: clamp(76px, 10vw, 132px) 0;
}

.section--tight {
  padding: clamp(54px, 7vw, 88px) 0;
}

.section--line {
  border-top: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr);
  gap: 40px;
  align-items: end;
  margin-bottom: clamp(42px, 6vw, 72px);
}

.section-head h2 {
  max-width: 15ch;
  text-wrap: balance;
}

.section-head .lede {
  max-width: 44ch;
  justify-self: end;
}

.section-kicker {
  display: block;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.section-note {
  margin-top: 26px;
  color: var(--muted-soft);
  font-size: 0.78rem;
}

/* ---------- steps ---------- */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.step {
  position: relative;
  padding: 34px 30px 0 0;
}

.step + .step {
  padding-left: 30px;
  border-left: 1px solid var(--line);
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 650;
}

.step h3 {
  margin-bottom: 12px;
  font-size: 1.55rem;
}

.step p {
  max-width: 32ch;
  color: var(--muted);
  font-size: 0.94rem;
}

.step-rail {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--cobalt) 52%, var(--violet));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.4s var(--ease-out);
}

.steps.is-in .step-rail {
  transform: scaleX(1);
}

/* ---------- workbench ---------- */

.workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 20px;
}

.feature-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 3.6vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper-light);
}

.feature-panel--dark {
  display: grid;
  align-content: space-between;
  min-height: 520px;
  background:
    radial-gradient(circle at 75% 20%, rgba(0, 230, 118, 0.2), transparent 52%),
    linear-gradient(150deg, #171923, #0a0b0f 72%);
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.1);
}

.feature-panel__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.feature-panel__top > svg {
  width: 26px;
  height: 26px;
  flex: none;
  color: var(--muted-soft);
}

.feature-panel--dark .feature-panel__top > svg {
  color: #b9bcc8;
}

.feature-number {
  color: var(--muted-soft);
  font-size: 0.7rem;
  font-weight: 650;
}

.feature-panel h3 {
  max-width: 11ch;
  margin-top: 40px;
  font-size: clamp(2.1rem, 3.5vw, 3.4rem);
}

.feature-panel--dark h3 {
  color: var(--paper);
}

.feature-panel p {
  max-width: 42ch;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.96rem;
}

.feature-panel--dark p {
  color: #b9bcc8;
}

.feature-stack {
  display: grid;
  gap: 20px;
}

.feature-stack .feature-panel {
  min-height: 250px;
  padding: clamp(24px, 3vw, 34px);
}

.feature-stack .feature-panel h3 {
  max-width: 16ch;
  margin-top: 24px;
  font-size: clamp(1.7rem, 2.6vw, 2.35rem);
}

.feature-stack .feature-panel p {
  margin-top: 14px;
}

.format-dial {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  max-width: 320px;
  margin-top: 40px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.format-dial button {
  min-height: 54px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #9b9eab;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  cursor: pointer;
  transition:
    background-color 180ms var(--ease-out),
    color 180ms var(--ease-out),
    transform 160ms var(--ease-out);
}

.format-dial button:hover {
  color: var(--paper);
  background: rgba(255, 255, 255, 0.05);
}

.format-dial button:active {
  transform: scale(0.97);
}

.format-dial button[aria-pressed="true"] {
  background: var(--paper);
  color: var(--ink);
}

.format-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 26px;
}

.format-strip span {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 650;
}

.format-strip span.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.detect-mini {
  position: relative;
  overflow: hidden;
  margin-top: 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.detect-mini__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.detect-mini__dots {
  display: flex;
  gap: 4px;
}

.detect-mini__dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.detect-mini__address {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.24);
  color: #8d92a2;
  font-size: 0.6rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detect-mini__signal {
  color: #7ee2b8;
  font-size: 0.58rem;
  font-weight: 650;
  white-space: nowrap;
}

.detect-mini__body {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px;
}

.detect-mini__thumb {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 42px;
  flex: none;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(140deg, #2b2f45, #0c0e16);
}

.detect-mini__thumb::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 2px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid rgba(255, 255, 255, 0.75);
}

.detect-mini__thumb i {
  position: absolute;
  left: -30%;
  right: -30%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--violet), transparent);
  animation: mini-scan 4s var(--ease-in-out) infinite;
}

.detect-mini__copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.detect-mini__copy strong {
  color: var(--paper);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.detect-mini__copy span {
  overflow: hidden;
  color: #9a9eac;
  font-size: 0.62rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detect-mini__pill {
  margin-left: auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(61, 220, 151, 0.12);
  color: #7ee2b8;
  font-size: 0.56rem;
  font-weight: 650;
  white-space: nowrap;
}

.trim-visual {
  position: relative;
  margin-top: 28px;
  padding: 20px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}

.trim-track {
  position: relative;
  height: 40px;
  border-radius: 8px;
  background:
    repeating-linear-gradient(90deg, rgba(16, 17, 20, 0.12) 0 1px, transparent 1px 12px),
    linear-gradient(180deg, rgba(0, 230, 118, 0.16), rgba(16, 17, 20, 0.05));
}

.trim-selection {
  position: absolute;
  top: -5px;
  bottom: -5px;
  left: 22%;
  right: 18%;
  border: 1.5px solid var(--cobalt);
  border-radius: 9px;
  background: rgba(0, 230, 118, 0.08);
}

.trim-handle {
  position: absolute;
  top: 50%;
  width: 9px;
  height: 22px;
  border-radius: 4px;
  background: var(--paper-light);
  border: 1.5px solid var(--cobalt);
  transform: translateY(-50%);
}

.trim-handle--start {
  left: -5px;
}

.trim-handle--end {
  right: -5px;
}

.trim-times {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.68rem;
}

.local-diagram {
  position: relative;
  display: grid;
  place-items: center;
  height: 132px;
  margin-top: 22px;
}

.local-orbit {
  position: absolute;
  width: 118px;
  height: 118px;
  border: 1px dashed var(--line-strong);
  border-radius: 50%;
}

.local-orbit::before,
.local-orbit::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cobalt);
}

.local-orbit::before {
  top: 8px;
  left: 18px;
}

.local-orbit::after {
  right: 8px;
  bottom: 20px;
  background: var(--violet);
}

.local-device {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow-soft);
}

.local-device svg {
  width: 30px;
  height: 30px;
}

/* ---------- format lab ---------- */

.format-lab {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 20px;
  align-items: stretch;
}

.format-picker {
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper-light);
}

.format-picker button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  text-align: left;
  cursor: pointer;
  transition:
    color 180ms var(--ease-out),
    padding-left 240ms var(--ease-out);
}

.format-picker button:last-child {
  border-bottom: 0;
}

.format-picker button:hover {
  color: var(--ink);
  padding-left: 10px;
}

.format-picker button[aria-pressed="true"] {
  color: var(--ink);
}

.format-picker button svg {
  width: 20px;
  height: 20px;
  opacity: 0;
  color: var(--cobalt);
  transform: translateX(-8px);
  transition:
    opacity 180ms var(--ease-out),
    transform 240ms var(--ease-out);
}

.format-picker button[aria-pressed="true"] svg {
  opacity: 1;
  transform: translateX(0);
}

.format-specimen {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: space-between;
  min-height: 430px;
  padding: clamp(28px, 4vw, 46px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 80% 15%, rgba(155, 251, 196, 0.18), transparent 46%),
    radial-gradient(circle at 20% 90%, rgba(0, 184, 94, 0.16), transparent 50%),
    #0a0b0f;
  color: var(--paper);
}

.format-specimen__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.format-specimen__label {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.7rem;
  font-weight: 600;
}

.format-specimen__format {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: clamp(4.2rem, 9vw, 8rem);
  font-weight: 600;
  line-height: 0.82;
  letter-spacing: -0.07em;
}

.format-specimen__meta {
  max-width: 34ch;
  color: #b9bcc8;
  font-size: 0.92rem;
}

.format-specimen__meta strong {
  color: var(--paper);
}

.specimen-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 78px;
  margin-top: 34px;
}

.specimen-bars span {
  flex: 1;
  min-width: 3px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--cyan), var(--cobalt) 65%, var(--violet));
  opacity: 0.62;
  transform-origin: bottom;
  transition:
    height 500ms var(--ease-out),
    opacity 500ms var(--ease-out);
}

/* ---------- gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 18px;
  align-items: start;
}

.gallery-item {
  display: grid;
  gap: 14px;
}

.gallery-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--ink);
  box-shadow: var(--shadow-soft);
}

.gallery-frame img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.gallery-caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.76rem;
}

.gallery-caption strong {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 650;
}

/* ---------- privacy / companion ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(38px, 6vw, 80px);
  align-items: center;
}

.split--reverse {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.split h2 {
  max-width: 13ch;
}

.split .lede {
  margin-top: 22px;
}

.split-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.loop {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 390px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 230, 118, 0.08), transparent 62%),
    var(--paper-light);
  overflow: hidden;
}

.loop::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border: 1px dashed var(--line-strong);
  border-radius: 50%;
}

.loop::after {
  content: "";
  position: absolute;
  width: 178px;
  height: 178px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.loop-core {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border-radius: 32px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow-soft);
}

.loop-core img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

.loop-label {
  position: absolute;
  z-index: 3;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-light);
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 600;
}

.loop-label--a {
  top: 18%;
  left: 16%;
}

.loop-label--b {
  top: 24%;
  right: 13%;
}

.loop-label--c {
  bottom: 18%;
  left: 20%;
}

.loop-label--d {
  right: 17%;
  bottom: 22%;
}

.companion {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  background: var(--ink);
  color: var(--paper);
}

.companion-copy {
  padding: clamp(30px, 5vw, 58px);
}

.companion-copy h2 {
  max-width: 10ch;
  color: var(--paper);
}

.companion-copy p {
  max-width: 44ch;
  margin-top: 20px;
  color: #b9bcc8;
  font-size: 0.95rem;
}

.companion-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: #d9dbe4;
  font-size: 0.68rem;
  font-weight: 600;
}

.companion-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
}

.companion-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 340px;
  overflow: hidden;
  background:
    radial-gradient(circle at 55% 45%, rgba(0, 230, 118, 0.26), transparent 55%),
    radial-gradient(circle at 25% 85%, rgba(0, 184, 94, 0.2), transparent 48%),
    #0d0e13;
}

.companion-art::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.companion-art::after {
  content: "";
  position: absolute;
  width: 310px;
  height: 310px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.companion-window {
  position: relative;
  z-index: 2;
  width: min(260px, 72%);
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(20, 22, 30, 0.86);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.companion-window__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.companion-window__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3ddc97;
  box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.12);
}

.companion-window__title {
  font-size: 0.66rem;
  font-weight: 650;
}

.companion-window__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #b9bcc8;
  font-size: 0.62rem;
}

.companion-window__row strong {
  color: var(--paper);
  font-weight: 600;
}

/* ---------- faq ---------- */

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  color: var(--ink);
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  transition:
    transform 220ms var(--ease-out),
    background-color 220ms var(--ease-out),
    color 220ms var(--ease-out);
}

.faq-item[open] .faq-question::after {
  content: "−";
  transform: rotate(180deg);
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.faq-answer {
  max-width: 72ch;
  padding: 0 46px 24px 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.faq-answer p + p {
  margin-top: 12px;
}

/* ---------- CTA ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(60px, 8vw, 104px) 0;
  border-top: 1px solid var(--line);
}

.cta-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.cta-inner h2 {
  max-width: 14ch;
}

.cta-inner p {
  max-width: 34ch;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.98rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 4px;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 0.55fr));
  gap: 40px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.footer-brand img {
  width: 32px;
  height: 34px;
  padding: 3px;
  box-sizing: border-box;
  background: #0a1f1a;
  border-radius: 9px;
}

.footer-note {
  max-width: 34ch;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-col h3 {
  margin-bottom: 14px;
  color: var(--muted-soft);
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.footer-col a {
  display: block;
  padding: 5px 0;
  color: var(--muted);
  font-size: 0.86rem;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 52px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted-soft);
  font-size: 0.72rem;
}

.footer-credit {
  color: var(--muted-soft);
}

.footer-credit a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  transition: color 160ms ease, border-color 160ms ease;
}

.footer-credit a::after {
  content: "↗";
  display: inline-block;
  margin-left: 3px;
  font-size: 0.92em;
  transition: transform 160ms ease;
}

.footer-credit a:hover {
  color: var(--cobalt);
  border-bottom-color: currentColor;
}

.footer-credit a:hover::after {
  transform: translate(1px, -1px);
}

@media (prefers-reduced-motion: reduce) {
  .footer-credit a,
  .footer-credit a::after {
    transition: none;
  }
}

.footer-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 8px;
  border-radius: 50%;
  background: var(--line-strong);
  vertical-align: middle;
}

/* ---------- page hero ---------- */

.page-hero {
  padding: clamp(60px, 7vw, 100px) 0 clamp(42px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}

.page-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.78fr);
  gap: 44px;
  align-items: end;
}

.page-hero h1 {
  max-width: 18ch;
}

.page-hero .lede {
  justify-self: end;
  max-width: 46ch;
}

.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 22px;
  color: var(--muted-soft);
  font-size: 0.76rem;
}

/* ---------- download ---------- */

.download-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 20px;
  align-items: start;
}

.download-panel {
  position: relative;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper-light);
}

.download-panel--dark {
  background:
    radial-gradient(circle at 82% 8%, rgba(0, 230, 118, 0.2), transparent 48%),
    linear-gradient(150deg, #171923, #0a0b0f 78%);
  border-color: rgba(255, 255, 255, 0.11);
  color: var(--paper);
}

.download-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.download-panel h2 {
  max-width: 12ch;
  font-size: clamp(2rem, 3.4vw, 3rem);
}

.download-panel--dark h2 {
  color: var(--paper);
}

.download-panel p {
  max-width: 48ch;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.94rem;
}

.download-panel--dark p {
  color: #b9bcc8;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 650;
  white-space: nowrap;
}

.status-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
}

.status-badge--live::before {
  background: #1ca66b;
}

.download-panel--dark .status-badge {
  border-color: rgba(255, 255, 255, 0.14);
  color: #d9dbe4;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}

.download-panel--dark .button--secondary {
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--paper);
}

.download-panel--dark .button--secondary:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.download-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 18px;
  color: var(--muted-soft);
  font-size: 0.72rem;
}

.download-panel--dark .download-meta {
  color: rgba(255, 255, 255, 0.42);
}

.download-warning {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(255, 158, 44, 0.38);
  border-radius: 14px;
  background: rgba(255, 158, 44, 0.08);
}

.download-warning > strong {
  display: block;
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.35;
}

.download-warning p {
  max-width: none;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

.download-warning p strong {
  color: var(--ink);
}

.download-warning p a {
  color: var(--cobalt-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.download-warning .hash-row {
  margin-top: 12px;
}

.download-warning .hash-row code {
  overflow: visible;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}

.note-panel.note-panel--warn {
  border-color: rgba(255, 158, 44, 0.38);
  background: rgba(255, 158, 44, 0.08);
}

.download-guide {
  max-width: 82ch;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.download-guide strong {
  color: var(--ink);
}

.download-grid.download-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.download-grid--three .download-panel {
  min-width: 0;
}

.download-grid--three .download-panel h2 {
  max-width: 13ch;
  font-size: clamp(1.65rem, 2.2vw, 2.35rem);
}

.download-grid--three .download-panel .download-actions {
  margin-top: 22px;
}

.download-grid--three .download-list {
  margin-top: 18px;
}

.download-text-link {
  display: inline-flex;
  align-items: center;
  margin-top: 16px;
  color: var(--cobalt-deep);
  font-size: 0.8rem;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.download-panel--dark .download-text-link {
  color: var(--cyan);
}

.download-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 16px;
}

.download-links .download-text-link {
  margin-top: 0;
}

.download-note {
  max-width: none;
  margin-top: 14px;
  color: var(--muted-soft);
  font-size: 0.74rem;
  line-height: 1.5;
}

.install-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.install-card {
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper-light);
  scroll-margin-top: 96px;
}

.install-card h3 {
  font-size: clamp(1.35rem, 1.8vw, 1.7rem);
}

.install-card .install-steps {
  margin-top: 18px;
  border-top: 0;
}

.install-card .install-steps li {
  grid-template-columns: 28px minmax(0, 1fr);
  padding: 14px 0;
  font-size: 0.84rem;
}

.install-card .install-steps li:first-child {
  padding-top: 0;
}

.install-card .install-steps li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.install-card .install-steps li::before {
  width: 26px;
  height: 26px;
}

.install-note {
  margin-top: 16px;
  color: var(--muted-soft);
  font-size: 0.74rem;
  line-height: 1.5;
}

#install,
#windows,
#android-install,
#windows-download,
#android {
  scroll-margin-top: 96px;
}

@media (max-width: 1080px) {
  .download-grid.download-grid--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .download-grid.download-grid--three > :last-child {
    grid-column: 1 / -1;
  }

  .install-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .install-grid > :last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .download-grid.download-grid--three {
    grid-template-columns: 1fr;
  }

  .download-grid.download-grid--three > :last-child {
    grid-column: auto;
  }

  .install-grid {
    grid-template-columns: 1fr;
  }

  .install-grid > :last-child {
    grid-column: auto;
  }

  .download-grid--three .download-panel h2 {
    font-size: 1.9rem;
  }
}

.download-list {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.download-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 0.87rem;
}

.download-list svg {
  width: 15px;
  height: 15px;
  flex: none;
  margin-top: 2px;
  color: var(--cobalt);
}

.download-panel--dark .download-list li {
  color: #b9bcc8;
}

.download-panel--dark .download-list svg {
  color: var(--cyan);
}

/* Release notes: the bolding carries the headline of each entry, so it has to
   sit at ink weight instead of inheriting the muted body colour. */
.download-list--notes li strong {
  color: var(--ink);
  font-weight: 650;
}

.hash-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}

.hash-row code {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.62rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-button {
  flex: none;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 650;
  cursor: pointer;
  transition:
    background-color 160ms var(--ease-out),
    color 160ms var(--ease-out);
}

.copy-button:hover {
  background: var(--ink);
  color: var(--paper);
}

.copy-button.is-copied {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: var(--white);
}

.download-panel--dark .hash-row {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
}

.download-panel--dark .hash-row code {
  color: rgba(255, 255, 255, 0.55);
}

.download-panel--dark .copy-button {
  border-color: rgba(255, 255, 255, 0.16);
  color: #d9dbe4;
}

.download-panel--dark .copy-button:hover {
  background: var(--paper);
  color: var(--ink);
}

.section-subhead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-subhead h2 {
  font-size: clamp(1.9rem, 3.4vw, 3rem);
}

.section-subhead p {
  max-width: 40ch;
  color: var(--muted);
  font-size: 0.92rem;
}

.install-steps {
  counter-reset: install;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.install-steps li {
  counter-increment: install;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.install-steps li::before {
  content: counter(install);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 650;
}

.install-steps strong {
  color: var(--ink);
}

.requirements {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.requirements th,
.requirements td {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.requirements th {
  width: 38%;
  color: var(--muted);
  font-weight: 550;
}

.requirements td {
  color: var(--ink-soft);
}

.requirements tr:last-child th,
.requirements tr:last-child td {
  border-bottom: 0;
}

/* ---------- android ---------- */

.android-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 88% 6%, rgba(155, 251, 196, 0.16), transparent 46%),
    radial-gradient(circle at 6% 96%, rgba(0, 184, 94, 0.2), transparent 52%),
    linear-gradient(150deg, #12151f, #08090e 78%);
  color: var(--paper);
}

.android-copy {
  padding: clamp(30px, 5vw, 56px);
}

.android-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: #d9dbe4;
  font-size: 0.68rem;
  font-weight: 600;
}

.android-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}

.android-panel h2 {
  max-width: 11ch;
  color: var(--paper);
}

.android-copy p {
  max-width: 46ch;
  margin-top: 18px;
  color: #b9bcc8;
  font-size: 0.95rem;
}

.android-panel .download-actions {
  margin-top: 28px;
}

.android-panel .download-meta {
  color: rgba(255, 255, 255, 0.42);
}

.android-panel .button--secondary {
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--paper);
}

.android-panel .button--secondary:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.android-spec {
  display: grid;
  /* One explicit, shrinkable track. Without it the implicit column sizes to the
     widest row — the 64-character hash — and the card is clipped inside the
     panel on a phone instead of letting the hash ellipsise. */
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  padding: clamp(26px, 4vw, 42px);
  border-left: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.018);
}

.android-spec__label {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.6rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.android-spec__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
}

.android-spec__row span {
  flex: none;
  color: rgba(255, 255, 255, 0.5);
}

.android-spec__row strong {
  color: var(--paper);
  font-weight: 600;
  text-align: right;
}

.android-spec__hash {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.android-spec__hash span {
  flex: none;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.6rem;
  font-weight: 650;
  letter-spacing: 0.06em;
}

.android-spec__hash code {
  min-width: 0;
  overflow-wrap: anywhere;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.62rem;
  /* The hash is the point of the row: let it take a second line instead of
     hiding characters behind an ellipsis or clipping the card. */
  white-space: normal;
}

.android-spec .copy-button {
  border-color: rgba(255, 255, 255, 0.16);
  color: #d9dbe4;
}

.android-spec .copy-button:hover {
  background: var(--paper);
  color: var(--ink);
}

.accordion {
  border-top: 1px solid var(--line);
}

.accordion details {
  border-bottom: 1px solid var(--line);
}

.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: transform 220ms var(--ease-out);
}

.accordion details[open] summary::after {
  content: "−";
  transform: rotate(180deg);
}

.accordion .accordion-body {
  padding: 0 40px 20px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- legal ---------- */

.legal-wrap {
  display: grid;
  grid-template-columns: 220px minmax(0, 780px);
  gap: clamp(40px, 7vw, 96px);
  align-items: start;
  padding: clamp(42px, 6vw, 72px) 0 clamp(78px, 10vw, 128px);
}

.legal-toc {
  position: sticky;
  top: 100px;
}

.legal-toc h2 {
  margin-bottom: 14px;
  color: var(--muted-soft);
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.legal-toc a {
  display: block;
  padding: 5px 0;
  color: var(--muted);
  font-size: 0.8rem;
  text-decoration: none;
}

.legal-toc a:hover {
  color: var(--cobalt);
}

.legal-body {
  min-width: 0;
}

.legal-body > p:first-of-type {
  color: var(--muted);
  font-size: 1.05rem;
}

.legal-body h2 {
  margin: 48px 0 14px;
  font-size: clamp(1.55rem, 2.4vw, 2.2rem);
  line-height: 1.02;
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body h3 {
  margin: 30px 0 10px;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.legal-body p,
.legal-body li {
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.68;
}

.legal-body p + p,
.legal-body p + ul,
.legal-body ul + p,
.legal-body ol + p {
  margin-top: 14px;
}

.legal-body ul,
.legal-body ol {
  margin: 14px 0 0;
}

.legal-body a {
  color: var(--cobalt-deep);
}

.legal-callout {
  margin: 24px 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--cobalt);
  border-radius: 0 12px 12px 0;
  background: var(--paper-light);
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-meta {
  margin-bottom: 30px;
  color: var(--muted-soft);
  font-size: 0.78rem;
}

/* ---------- support ---------- */

.support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  gap: 20px;
  align-items: start;
}

.contact-panel {
  padding: clamp(28px, 4vw, 42px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 80% 10%, rgba(0, 230, 118, 0.22), transparent 48%),
    linear-gradient(150deg, #171923, #0a0b0f 78%);
  color: var(--paper);
}

.contact-panel h2 {
  max-width: 10ch;
  color: var(--paper);
}

.contact-panel p {
  max-width: 40ch;
  margin-top: 16px;
  color: #b9bcc8;
  font-size: 0.94rem;
}

.contact-panel .section-kicker {
  color: rgba(255, 255, 255, 0.62);
}

.email-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 26px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.055);
}

.email-box a {
  overflow: hidden;
  color: var(--paper);
  font-size: 0.88rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.email-box .copy-button {
  border-color: rgba(255, 255, 255, 0.18);
  color: #d9dbe4;
}

.email-box .copy-button:hover {
  background: var(--paper);
  color: var(--ink);
}

.support-panel {
  padding: clamp(26px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper-light);
}

.support-panel h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
}

.support-panel p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.checklist {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.checklist li::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--cobalt);
}

/* ---------- FAQ page ---------- */

.faq-index {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 42px;
}

.faq-index a {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    background-color 160ms var(--ease-out),
    color 160ms var(--ease-out);
}

.faq-index a:hover {
  background: var(--ink);
  color: var(--paper);
}

.faq-category {
  padding-top: 12px;
  margin-top: 48px;
  scroll-margin-top: 100px;
}

.faq-category:first-of-type {
  margin-top: 0;
}

.faq-category > h2 {
  margin-bottom: 18px;
  font-size: clamp(1.75rem, 2.8vw, 2.5rem);
}

.faq-category .faq-list {
  border-top: 0;
}

/* ---------- 404 ---------- */

.not-found {
  display: grid;
  place-items: center;
  min-height: 70vh;
  padding: 80px 0;
  text-align: center;
}

.not-found__mark {
  width: 54px;
  height: 54px;
  margin: 0 auto 28px;
  border-radius: 16px;
  opacity: 0.9;
}

.not-found h1 {
  max-width: 12ch;
  margin-inline: auto;
}

.not-found p {
  max-width: 38ch;
  margin: 18px auto 0;
  color: var(--muted);
}

.not-found__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

/* ---------- reveal / motion ---------- */

.js .reveal {
  opacity: 0;
  translate: 0 26px;
  transition:
    opacity 760ms var(--ease-out),
    translate 760ms var(--ease-out);
  transition-delay: var(--delay, 0ms);
}

.js .reveal.is-in {
  opacity: 1;
  translate: 0 0;
}

.hero-copy > .kicker,
.hero-copy > .lede,
.hero-copy > .hero-actions,
.hero-copy > .hero-facts,
.hero-copy > .hero-note {
  animation: rise-in 900ms var(--ease-out) both;
}

.hero-copy > .kicker {
  animation-delay: 80ms;
}

.hero-copy > .lede {
  animation-delay: 500ms;
}

.hero-copy > .hero-actions {
  animation-delay: 580ms;
}

.hero-copy > .hero-facts {
  animation-delay: 660ms;
}

.hero-copy > .hero-note {
  animation-delay: 730ms;
}

.machine {
  animation: machine-in 1100ms var(--ease-out) 180ms both;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes line-rise {
  from {
    transform: translateY(110%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes underline-in {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes detect-in {
  from {
    opacity: 0;
    translate: 0 18px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes scan-sweep {
  0% {
    opacity: 0;
    transform: translateY(0);
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(42px);
  }
}

@keyframes mini-scan {
  0%,
  100% {
    opacity: 0;
    transform: translateY(3px);
  }
  18% {
    opacity: 1;
  }
  50% {
    opacity: 1;
    transform: translateY(38px);
  }
  82% {
    opacity: 0;
    transform: translateY(38px);
  }
}

@keyframes machine-in {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes chip-in {
  from {
    opacity: 0;
    translate: 0 12px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes output-in {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  60% {
    opacity: 1;
    transform: translateY(-2px) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.72;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.08);
  }
}

@keyframes web-url-scan {
  from {
    left: -32%;
  }
  to {
    left: 100%;
  }
}

@keyframes web-scan {
  0% {
    opacity: 0;
    transform: translateY(0);
  }
  12% {
    opacity: 1;
  }
  78% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(132px);
  }
}

@keyframes web-transfer {
  0% {
    left: 0;
    opacity: 0;
  }
  14% {
    opacity: 1;
  }
  86% {
    opacity: 1;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}

@keyframes web-check {
  0% {
    opacity: 0;
    transform: scale(0.3) rotate(-18deg);
  }
  65% {
    opacity: 1;
    transform: scale(1.18) rotate(4deg);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes live-pulse {
  0%,
  100% {
    opacity: 0.55;
    box-shadow: 0 0 0 3px rgba(61, 220, 151, 0.1);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 0 6px rgba(61, 220, 151, 0);
  }
}

@keyframes kicker-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(0, 230, 118, 0.12);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(0, 230, 118, 0);
  }
}

/* intro choreography: keep the entrance behind the curtain */

.intro-pending .hero-copy > .kicker {
  animation-delay: 900ms;
}

.intro-pending .hero-line:nth-child(1) > span {
  animation-delay: 980ms;
}

.intro-pending .hero-line:nth-child(2) > span {
  animation-delay: 1080ms;
}

.intro-pending .hero-line:nth-child(3) > span {
  animation-delay: 1180ms;
}

.intro-pending .hero h1 em::after {
  animation-delay: 1660ms;
}

.intro-pending .hero-copy > .lede {
  animation-delay: 1200ms;
}

.intro-pending .hero-copy > .hero-actions {
  animation-delay: 1300ms;
}

.intro-pending .hero-copy > .hero-facts {
  animation-delay: 1380ms;
}

.intro-pending .hero-copy > .hero-note {
  animation-delay: 1440ms;
}

.intro-pending .machine {
  animation-delay: 1100ms;
}

.intro-pending .detect-card {
  animation-delay: 1460ms;
}

.intro-pending .file-chip--a {
  animation-delay: 1560ms;
}

.intro-pending .file-chip--b {
  animation-delay: 1660ms;
}

.intro-pending .file-chip--c {
  animation-delay: 1760ms;
}

.intro-pending .file-chip--d {
  animation-delay: 1860ms;
}

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    gap: 24px;
  }

  .machine-stage {
    min-height: 700px;
  }

  .detect-card {
    width: min(310px, 84%);
  }

  .machine {
    width: min(380px, 76vw);
  }

  .file-chip--c {
    left: -1%;
  }

  .file-chip--d {
    right: -1%;
  }
}

@media (max-width: 980px) {
  .site-nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-inner {
    min-height: 68px;
  }

  .hero-inner,
  .page-hero__inner,
  .section-head,
  .split,
  .split--reverse,
  .workbench,
  .format-lab,
  .download-grid,
  .android-panel,
  .support-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .android-spec {
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    border-left: 0;
  }

  .hero-inner {
    gap: 12px;
  }

  .hero-copy {
    padding-top: 10px;
  }

  .hero h1 {
    max-width: 12ch;
  }

  .machine-stage {
    min-height: 700px;
    margin-top: 14px;
  }

  .detect-card {
    width: min(318px, 86%);
  }

  .machine {
    width: min(390px, 76vw);
  }

  .section-head .lede,
  .page-hero .lede {
    justify-self: start;
  }

  .section-head {
    gap: 18px;
  }

  .proof-inner {
    grid-template-columns: 1fr;
  }

  .proof-item,
  .proof-item:first-child,
  .proof-item:last-child {
    padding: 18px 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .proof-item:first-child {
    border-top: 0;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .step,
  .step + .step {
    padding: 26px 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .step:first-child {
    border-top: 0;
    padding-top: 0;
  }

  .step-rail {
    display: none;
  }

  .workbench {
    gap: 16px;
  }

  .feature-panel--dark {
    min-height: 430px;
  }

  .feature-stack {
    grid-template-columns: 1fr 1fr;
  }

  .feature-stack .feature-panel {
    min-height: 280px;
  }

  .format-lab {
    gap: 16px;
  }

  .format-specimen {
    min-height: 380px;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-item:first-child {
    grid-column: 1 / -1;
  }

  .split,
  .split--reverse {
    gap: 34px;
  }

  .loop {
    min-height: 340px;
  }

  .companion {
    grid-template-columns: 1fr;
  }

  .companion-art {
    min-height: 280px;
  }

  .cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand-col {
    grid-column: 1 / -1;
  }

  .legal-wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .legal-toc {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
  }

  .legal-toc h2 {
    width: 100%;
    margin-bottom: 4px;
  }

  .legal-toc a {
    padding: 3px 0;
  }

  .feature-stack {
    grid-template-columns: 1fr;
  }

  .feature-stack .feature-panel {
    min-height: 240px;
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 20px;
  }

  body {
    font-size: 16px;
  }

  .header-actions .button {
    display: none;
  }

  .hero {
    padding-top: 42px;
  }

  .hero-copy .kicker {
    margin-bottom: 20px;
  }

  .hero h1 {
    max-width: 11ch;
  }

  .hero h1 em {
    white-space: normal;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-facts {
    display: grid;
    gap: 9px;
    margin-top: 30px;
  }

  .hero-facts li,
  .hero-facts li:first-child {
    padding: 0;
    border-left: 0;
  }

  .machine-stage {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 10px 0 0;
    gap: 18px;
  }

  .detect-card {
    order: -2;
    width: min(340px, 100%);
    transform: none;
  }

  .detect-card::after {
    display: none;
  }

  .detect-card:hover,
  .detect-card:active {
    transform: none;
  }

  .machine-tilt {
    transform: none;
    width: 100%;
    display: grid;
    place-items: center;
  }

  .machine {
    width: min(360px, 88vw);
    aspect-ratio: 0.82;
  }

  .file-rail {
    position: static;
    order: -1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    width: 100%;
    pointer-events: auto;
  }

  .file-chip {
    position: static;
    animation: none;
    opacity: 1;
  }

  .file-chip--a,
  .file-chip--b,
  .file-chip--c,
  .file-chip--d {
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    animation-delay: 0ms;
  }

  .format-switch {
    position: static;
    transform: none;
    order: 3;
  }

  .machine-hint {
    position: static;
    order: 4;
    transform: none;
    white-space: normal;
    text-align: center;
  }

  .format-option {
    padding: 0 11px;
  }

  .proof-copy span {
    font-size: 0.7rem;
  }

  .section {
    padding: 64px 0;
  }

  .section-head {
    margin-bottom: 36px;
  }

  .feature-panel,
  .format-picker,
  .format-specimen,
  .download-panel,
  .support-panel,
  .contact-panel {
    border-radius: 22px;
  }

  .feature-panel h3 {
    max-width: 12ch;
  }

  .format-picker button {
    font-size: 2.2rem;
  }

  .format-specimen {
    min-height: 340px;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery-item:first-child {
    grid-column: auto;
  }

  .gallery-frame img {
    aspect-ratio: 16 / 10;
  }

  .loop {
    min-height: 300px;
  }

  .loop::before {
    width: 210px;
    height: 210px;
  }

  .loop::after {
    width: 145px;
    height: 145px;
  }

  .loop-core {
    width: 88px;
    height: 88px;
    border-radius: 26px;
  }

  .companion-copy {
    padding: 28px 24px;
  }

  .companion-art {
    min-height: 240px;
  }

  .faq-question {
    padding: 18px 0;
  }

  .faq-answer {
    padding-right: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand-col {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .page-hero {
    padding-top: 48px;
  }

  .download-panel,
  .support-panel,
  .contact-panel,
  .android-copy,
  .android-spec {
    padding: 24px;
  }

  .download-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .download-actions .button {
    width: 100%;
  }

  .section-subhead {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .requirements th {
    width: 42%;
  }

  .legal-body h2 {
    margin-top: 38px;
  }

  .faq-category {
    margin-top: 38px;
  }
}

@media (max-width: 420px) {
  .header-inner {
    gap: 12px;
  }

  .brand {
    font-size: 0.94rem;
  }

  .brand-mark {
    width: 30px;
    height: 32px;
    padding: 3px;
  }

  .brand-word {
    width: 78px;
    height: 20px;
  }

  .machine {
    width: min(345px, 100%);
    border-radius: 30px;
  }

  .machine-bar {
    padding: 14px 15px;
  }

  .machine-pill {
    display: none;
  }

  .funnel {
    width: 82%;
  }

  .output-tray {
    left: 6%;
    right: 6%;
  }

  .format-switch {
    width: 100%;
    justify-content: space-between;
  }

  .format-option {
    flex: 1;
    padding: 0 6px;
  }

  .feature-stack {
    gap: 14px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand-col {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js .reveal {
    opacity: 1;
    translate: none;
  }

  .machine-tilt {
    transform: none;
  }

  .file-chip {
    opacity: 1;
    translate: none;
  }

  .machine {
    opacity: 1;
    transform: none;
  }

  .hero-line > span {
    animation: none;
    transform: none;
  }

  .hero h1 em::after {
    animation: none;
    transform: scaleX(1);
  }

  .detect-card {
    animation: none;
    transform: none;
  }

  .detect-card:active {
    transform: none;
  }

  .detect-scan,
  .detect-mini__thumb i {
    animation: none;
    opacity: 0;
  }

  .funnel-glow {
    animation: none;
  }

  .steps.is-in .step-rail {
    transform: scaleX(1);
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header,
  .format-switch,
  .companion-window {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: var(--paper);
  }

  .companion-window {
    background: var(--ink);
  }
}

@media (prefers-contrast: more) {
  :root {
    --muted: #4c4e55;
    --line: #a9a497;
    --line-strong: #807b70;
  }

  .site-header {
    background: var(--paper);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-bottom-color: var(--line-strong);
  }

  .button--secondary {
    border-width: 2px;
  }
}

@media print {
  .site-header,
  .site-footer,
  .cta-band,
  .legal-toc,
  .skip-link {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  .legal-wrap {
    display: block;
    padding: 0;
  }

  .legal-body {
    max-width: 100%;
  }

  a {
    color: #000;
  }
}

/* ---------- page additions ---------- */

[hidden] {
  display: none !important;
}

.prose {
  max-width: 780px;
}

.format-dial__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border-radius: 12px;
  color: #9b9eab;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.format-dial__item.is-active {
  background: var(--paper);
  color: var(--ink);
}

.download-side {
  display: grid;
  gap: 20px;
}

.download-panel--dark .button:not(.button--secondary) {
  background: var(--paper);
  color: var(--ink);
}

.download-panel--dark .button:not(.button--secondary):hover {
  background: var(--cobalt);
  color: var(--white);
}

.note-panel {
  margin-top: 28px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--cobalt);
  border-radius: 0 14px 14px 0;
  background: var(--paper-light);
}

.note-panel strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 0.92rem;
}

.note-panel p {
  color: var(--muted);
  font-size: 0.9rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.info-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper-light);
}

.info-card h3 {
  font-size: 1.35rem;
}

.info-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.info-card p a {
  color: var(--cobalt-deep);
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.check-list li::before {
  content: "✓";
  flex: none;
  margin-top: 1px;
  color: var(--cobalt);
  font-size: 0.78rem;
  font-weight: 700;
}

.support-card {
  display: grid;
  align-content: start;
  gap: 0;
  color: inherit;
  text-decoration: none;
  transition:
    transform 200ms var(--ease-out),
    border-color 200ms var(--ease-out);
}

.support-card:hover {
  transform: translateY(-3px);
  border-color: var(--cobalt);
}

.support-card__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--cobalt);
}

.support-card__icon svg {
  width: 19px;
  height: 19px;
}

.support-card h2 {
  font-size: 1.55rem;
  line-height: 1.05;
}

.support-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-panel__actions {
  display: grid;
  justify-items: start;
  gap: 10px;
  margin-top: 26px;
}

.contact-panel .button {
  background: var(--paper);
  color: var(--ink);
}

.contact-panel .button:hover {
  background: var(--cobalt);
  color: var(--white);
}

.contact-panel__note {
  margin: 0;
  color: #b9bcc8;
  font-size: 0.76rem;
}

.faq-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 52px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper-light);
}

.faq-contact h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.faq-contact p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .info-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq-contact {
    align-items: flex-start;
    flex-direction: column;
  }

  .support-card:hover {
    transform: none;
  }
}

.not-found .kicker {
  margin: 18px 0 14px;
}

.not-found p {
  font-size: 1.02rem;
}

.file-chip.is-sending {
  opacity: 0.22;
  translate: 0 8px;
}

.machine.is-over {
  border-color: rgba(0, 230, 118, 0.7);
  box-shadow:
    0 45px 100px -28px rgba(0, 230, 118, 0.5),
    0 8px 24px -8px rgba(10, 12, 25, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.machine.is-processing .funnel-glow {
  opacity: 1;
  animation-duration: 0.7s;
}

/* ---------- interaction polish ---------- */

.button svg {
  transition: transform 220ms var(--ease-out);
}

.button:hover svg {
  transform: translateY(2px);
}

.kicker::before {
  animation: kicker-pulse 3.6s ease-in-out infinite;
}

.hero-facts {
  row-gap: 10px;
}

ol.steps {
  list-style: none;
}

#auto-detect {
  scroll-margin-top: 92px;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  height: 2px;
  pointer-events: none;
  background: transparent;
}

.scroll-progress i {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--cobalt) 45%, var(--violet));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 80ms linear;
}

/* ---------- web flow responsive ---------- */

@media (max-width: 980px) {
  .web-flow__stage {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .web-browser {
    width: 100%;
    max-width: 580px;
    margin-inline: auto;
  }

  .web-transfer {
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    width: 100%;
  }

  .web-transfer__line {
    width: 92px;
    flex: none;
  }

  .web-transfer__note {
    display: none;
  }

  .web-save {
    width: 100%;
    max-width: 420px;
    margin-inline: auto;
  }
}

@media (max-width: 720px) {
  .web-flow__stage {
    gap: 14px;
    padding: 20px 16px 16px;
  }

  .web-browser__bar {
    gap: 7px;
    padding: 9px 10px;
  }

  .web-browser__page {
    padding: 10px;
  }

  .web-browser__toast {
    left: 16px;
    right: 16px;
    bottom: 18px;
  }

  .web-browser__toast-copy span {
    display: none;
  }

  .web-save {
    padding: 14px;
  }

  .web-flow__bottom {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    padding: 0 16px 18px;
  }

  .web-flow__caption {
    gap: 8px;
    font-size: 0.68rem;
  }

  .web-flow__replay {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro-pending .intro {
    display: none !important;
  }

  .intro-pending .hero-copy > .kicker,
  .intro-pending .hero-copy > .lede,
  .intro-pending .hero-copy > .hero-actions,
  .intro-pending .hero-copy > .hero-facts,
  .intro-pending .hero-copy > .hero-note,
  .intro-pending .hero-line > span,
  .intro-pending .hero h1 em::after,
  .intro-pending .machine,
  .intro-pending .detect-card,
  .intro-pending .file-chip--a,
  .intro-pending .file-chip--b,
  .intro-pending .file-chip--c,
  .intro-pending .file-chip--d {
    animation-delay: 0ms !important;
  }

  .web-flow.is-scanning .web-browser__scan,
  .web-flow.is-scanning .web-browser__scanline,
  .web-flow.is-saving .web-transfer__line i,
  .web-flow__live i,
  .kicker::before {
    animation: none;
  }

  .scroll-progress i {
    transition: none;
  }
}

@media print {
  .intro,
  .scroll-progress {
    display: none !important;
  }
}

/* ---------- dimensional hero ---------- */

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.machine-stage > [data-depth] {
  translate: calc(var(--scene-x, 0) * var(--depth, 0px)) calc(var(--scene-y, 0) * var(--depth, 0px));
  will-change: translate;
}

.detect-float {
  position: relative;
  z-index: 6;
  display: flex;
  justify-content: center;
  width: 100%;
}

.machine-sheen {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background: radial-gradient(
    380px circle at var(--sheen-x, 50%) var(--sheen-y, 44%),
    rgba(255, 255, 255, 0.14),
    transparent 48%
  );
  mix-blend-mode: screen;
  pointer-events: none;
}

.machine-body {
  z-index: 2;
}

.machine-tilt {
  transform:
    rotateX(calc(7deg + var(--tilt-y, 0) * 3.2deg + var(--orbit-y, 0) * 1deg))
    rotateY(calc(-8deg + var(--tilt-x, 0) * 4.2deg + var(--orbit-x, 0) * 1deg));
  cursor: grab;
  user-select: none;
}

.machine-stage.is-orbiting .machine-tilt {
  transition: none;
  cursor: grabbing;
}

.scene-ring {
  position: absolute;
  top: 53%;
  left: 50%;
  z-index: 0;
  width: 560px;
  height: 560px;
  border: 1px dashed rgba(0, 230, 118, 0.2);
  border-radius: 50%;
  pointer-events: none;
  transform-style: preserve-3d;
  transform: translate(-50%, -50%) rotateX(var(--ring-tilt, 76deg));
  animation: ring-spin 42s linear infinite;
}

.scene-ring::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 16px rgba(155, 251, 196, 0.72);
}

.scene-ring--a {
  --ring-tilt: 76deg;
}

.scene-ring--b {
  --ring-tilt: 82deg;
  width: 660px;
  height: 660px;
  border-style: solid;
  border-color: rgba(0, 184, 94, 0.13);
  animation-direction: reverse;
  animation-duration: 56s;
}

.scene-ring--b::before {
  top: auto;
  bottom: -3px;
  left: 22%;
  background: var(--violet);
  box-shadow: 0 0 16px rgba(0, 184, 94, 0.7);
}

.machine-stage::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6%;
  z-index: 0;
  width: min(420px, 80%);
  height: 68px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(16, 17, 20, 0.24), transparent 70%);
  filter: blur(18px);
  pointer-events: none;
}

.machine-hint__touch {
  display: none;
}

@keyframes ring-spin {
  from {
    transform: translate(-50%, -50%) rotateX(var(--ring-tilt, 76deg)) rotateZ(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotateX(var(--ring-tilt, 76deg)) rotateZ(360deg);
  }
}

/* ---------- 3D format deck ---------- */

.format-lab--deck {
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
}

.format-picker__label {
  display: grid;
  gap: 3px;
}

.format-picker__name {
  display: block;
  line-height: 0.9;
}

.format-picker__note {
  display: block;
  color: var(--muted-soft);
  font-family: "Instrument Sans", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 550;
  letter-spacing: 0;
  line-height: 1.3;
  transition: color 180ms var(--ease-out);
}

.format-picker button[aria-pressed="true"] .format-picker__note {
  color: var(--cobalt-deep);
}

.format-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 590px;
  padding: 42px 20px 58px;
  overflow: clip;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 50% 40%, rgba(0, 230, 118, 0.18), transparent 52%),
    radial-gradient(circle at 72% 78%, rgba(0, 184, 94, 0.13), transparent 48%),
    linear-gradient(155deg, #151821, #08090d 72%);
  box-shadow: var(--shadow-hard);
  color: var(--paper);
  perspective: 1600px;
  perspective-origin: 50% 44%;
  cursor: grab;
  touch-action: pan-y;
}

.format-stage.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.format-stage__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.038) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(circle at 50% 42%, #000, transparent 76%);
  mask-image: radial-gradient(circle at 50% 42%, #000, transparent 76%);
  pointer-events: none;
}

.format-stage__halo {
  position: absolute;
  z-index: 0;
  width: min(520px, 82%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--lab-accent, #00b85e), transparent 66%);
  filter: blur(46px);
  opacity: 0.28;
  pointer-events: none;
}

.format-stage::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 7%;
  z-index: 0;
  width: min(460px, 80%);
  height: 80px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, var(--lab-accent, #00b85e), transparent 68%);
  filter: blur(24px);
  opacity: 0.3;
  pointer-events: none;
}

.format-deck {
  position: relative;
  z-index: 2;
  width: min(316px, 58%);
  aspect-ratio: 0.73;
  transform-style: preserve-3d;
  transform:
    translateX(var(--drag-x, 0px))
    rotateX(var(--deck-rx, 0deg))
    rotateY(calc(var(--deck-ry, 0deg) + var(--drag-rotate, 0deg)));
  transition: transform 680ms var(--ease-out);
  will-change: transform;
}

.format-stage.is-dragging .format-deck {
  transition: none;
}

.format-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 3.4vw, 30px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  background:
    radial-gradient(circle at 82% 0%, var(--card-wash, rgba(0, 230, 118, 0.3)), transparent 46%),
    linear-gradient(160deg, #1b1e29, #0a0b10 72%);
  box-shadow:
    0 40px 80px -34px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translate3d(0, 6%, -280px) scale(0.78);
  transform-origin: center center;
  opacity: 0;
  backface-visibility: hidden;
  pointer-events: none;
  transition:
    transform 900ms var(--ease-out),
    opacity 600ms var(--ease-out),
    border-color 500ms var(--ease-out),
    box-shadow 500ms var(--ease-out);
  will-change: transform, opacity;
}

.format-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(circle at 28% 18%, #000, transparent 74%);
  mask-image: radial-gradient(circle at 28% 18%, #000, transparent 74%);
  pointer-events: none;
}

.format-card > * {
  position: relative;
  z-index: 1;
}

.format-card[data-format-card="mp4"] {
  --card-accent: #8ba5ff;
  --card-wash: rgba(0, 230, 118, 0.35);
}

.format-card[data-format-card="webm"] {
  --card-accent: #7ee8f4;
  --card-wash: rgba(155, 251, 196, 0.3);
}

.format-card[data-format-card="mp3"] {
  --card-accent: #ffc266;
  --card-wash: rgba(255, 158, 44, 0.3);
}

.format-card[data-format-card="m4a"] {
  --card-accent: #b9a5ff;
  --card-wash: rgba(0, 184, 94, 0.34);
}

.format-card[data-position="active"] {
  z-index: 5;
  opacity: 1;
  transform: translate3d(0, 0, 80px) rotateY(0deg) scale(1);
  border-color: color-mix(in srgb, var(--card-accent) 46%, transparent);
  box-shadow:
    0 50px 90px -32px rgba(0, 0, 0, 0.82),
    0 0 0 1px color-mix(in srgb, var(--card-accent) 18%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  pointer-events: auto;
  cursor: grab;
}

.format-card[data-position="next"] {
  z-index: 3;
  opacity: 0.58;
  transform: translate3d(42%, 3%, -130px) rotateY(-34deg) scale(0.9);
  pointer-events: auto;
  cursor: pointer;
}

.format-card[data-position="prev"] {
  z-index: 3;
  opacity: 0.58;
  transform: translate3d(-42%, 3%, -130px) rotateY(34deg) scale(0.9);
  pointer-events: auto;
  cursor: pointer;
}

.format-card[data-position="back"] {
  z-index: 1;
  opacity: 0.14;
  transform: translate3d(0, 5%, -260px) scale(0.76);
}

.format-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.format-card__index {
  color: var(--card-accent);
}

.format-card__name {
  margin-top: 26px;
  font-family: "Bricolage Grotesque", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(3.5rem, 5vw, 4.7rem);
  font-weight: 600;
  line-height: 0.8;
  letter-spacing: -0.08em;
}

.format-card__codec {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.72rem;
  font-weight: 550;
}

.format-card__bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 64px;
  margin-top: 24px;
}

.format-card__bars span {
  flex: 1;
  min-width: 2px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--card-accent), rgba(255, 255, 255, 0.14));
  opacity: 0.62;
  transform-origin: bottom;
}

.format-card[data-position="active"] .format-card__bars span {
  animation: format-bar-rise 720ms var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 18ms);
}

.format-card__use {
  margin-top: 20px;
  color: #b9bcc8;
  font-size: 0.82rem;
  line-height: 1.45;
}

.format-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.format-card__tag {
  padding: 5px 9px;
  border: 1px solid color-mix(in srgb, var(--card-accent) 38%, transparent);
  border-radius: 999px;
  color: var(--card-accent);
  font-size: 0.62rem;
  font-weight: 650;
}

.format-card__ext {
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
}

.format-drag-hint {
  position: absolute;
  left: 50%;
  bottom: 20px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 6px;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.64rem;
  font-weight: 550;
  white-space: nowrap;
  pointer-events: none;
}

.format-drag-hint svg {
  width: 14px;
  height: 14px;
}

@keyframes format-bar-rise {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}

/* ---------- gallery interactions ---------- */

.gallery-frame {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--ink);
  box-shadow: var(--shadow-soft);
  cursor: zoom-in;
  transform: perspective(1000px) rotateX(var(--shot-rx, 0deg)) rotateY(var(--shot-ry, 0deg));
  transform-origin: center center;
  transition:
    transform 360ms var(--ease-out),
    box-shadow 360ms var(--ease-out),
    border-color 360ms var(--ease-out);
  will-change: transform;
}

.gallery-frame img {
  display: block;
  transition: transform 700ms var(--ease-out);
}

.gallery-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    420px circle at var(--shot-x, 50%) var(--shot-y, 50%),
    rgba(255, 255, 255, 0.16),
    transparent 56%
  );
  opacity: 0;
  transition: opacity 260ms var(--ease-out);
  pointer-events: none;
}

.gallery-frame__zoom {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(10, 11, 15, 0.72);
  color: var(--paper);
  opacity: 0;
  transform: translateY(5px) scale(0.94);
  transition:
    opacity 220ms var(--ease-out),
    transform 260ms var(--ease-out);
  pointer-events: none;
}

.gallery-frame__zoom svg {
  width: 16px;
  height: 16px;
}

@media (hover: hover) and (pointer: fine) {
  .gallery-frame:hover {
    border-color: var(--line-strong);
    box-shadow: 0 34px 72px -34px rgba(16, 17, 20, 0.5);
  }

  .gallery-frame:hover img {
    transform: scale(1.035);
  }

  .gallery-frame:hover::after {
    opacity: 1;
  }

  .gallery-frame:hover .gallery-frame__zoom {
    opacity: 1;
    transform: none;
  }
}

.gallery-frame:focus-visible .gallery-frame__zoom {
  opacity: 1;
  transform: none;
}

.shot-dialog {
  width: min(1080px, calc(100vw - 48px));
  max-width: none;
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  color: var(--paper);
}

.shot-dialog::backdrop {
  background: rgba(8, 9, 12, 0.74);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.shot-dialog[open] {
  animation: shot-dialog-in 380ms var(--ease-out);
}

.shot-dialog__panel {
  position: relative;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  background: #0a0b0f;
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.72);
}

.shot-dialog__frame {
  overflow: hidden;
  border-radius: 16px;
  background: #000;
}

.shot-dialog__frame img {
  width: 100%;
  height: auto;
  max-height: calc(100dvh - 180px);
  object-fit: contain;
}

.shot-dialog__close {
  position: absolute;
  top: -16px;
  right: -16px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 180ms var(--ease-out);
}

.shot-dialog__close:hover {
  background: var(--white);
}

.shot-dialog__close:active {
  transform: scale(0.95);
}

.shot-dialog__close svg {
  width: 16px;
  height: 16px;
}

.shot-dialog__caption {
  margin: 14px 4px 2px;
  color: #b9bcc8;
  font-size: 0.8rem;
}

body:has(.shot-dialog[open]) {
  overflow: hidden;
}

@keyframes shot-dialog-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- button light + 3D reveals ---------- */

.button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.button::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(
    120px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.24),
    transparent 62%
  );
  opacity: 0;
  transition: opacity 220ms var(--ease-out);
  pointer-events: none;
}

.button:hover::after {
  opacity: 0.75;
}

.js .section-head.reveal {
  transform: perspective(1200px) rotateX(6deg) translateY(10px);
  transform-origin: 50% 100%;
  transition:
    opacity 760ms var(--ease-out),
    translate 760ms var(--ease-out),
    transform 900ms var(--ease-out);
  transition-delay: var(--delay, 0ms);
}

.js .section-head.reveal.is-in {
  transform: none;
}

@media (max-width: 1100px) {
  .scene-ring {
    width: 500px;
    height: 500px;
  }

  .scene-ring--b {
    width: 590px;
    height: 590px;
  }

  .format-lab--deck {
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  }

  .format-deck {
    width: min(300px, 58%);
  }
}

@media (max-width: 980px) {
  .format-lab--deck {
    grid-template-columns: minmax(0, 1fr);
  }

  .format-picker {
    grid-template-columns: 1fr 1fr;
    column-gap: 26px;
  }

  .format-picker button {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
  }

  .format-picker button:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .format-stage {
    min-height: 560px;
  }

  .format-deck {
    width: min(310px, 58%);
  }
}

@media (max-width: 720px) {
  .scene-ring,
  .machine-stage::after {
    display: none;
  }

  .detect-float {
    order: -2;
  }

  .machine-tilt {
    transform: none;
    cursor: default;
  }

  .machine-stage.is-orbiting .machine-tilt {
    cursor: default;
  }

  .machine-hint__pointer {
    display: none;
  }

  .machine-hint__touch {
    display: inline;
  }

  .format-picker {
    grid-template-columns: minmax(0, 1fr);
    column-gap: 0;
    padding: 14px 20px;
  }

  .format-picker button {
    padding: 16px 4px;
    font-size: 2rem;
  }

  .format-picker button:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .format-picker button:last-child {
    border-bottom: 0;
  }

  .format-picker__note {
    font-size: 0.68rem;
  }

  .format-stage {
    min-height: 490px;
    padding: 36px 10px 48px;
  }

  .format-deck {
    width: min(270px, 70%);
  }

  .format-card {
    padding: 22px;
    border-radius: 22px;
  }

  .format-card__name {
    margin-top: 20px;
    font-size: 3.2rem;
  }

  .format-card__bars {
    height: 50px;
    margin-top: 18px;
  }

  .format-card__use {
    margin-top: 16px;
    font-size: 0.76rem;
  }

  .format-card__foot {
    padding-top: 14px;
  }

  .format-card[data-position="next"] {
    transform: translate3d(28%, 3%, -130px) rotateY(-30deg) scale(0.86);
  }

  .format-card[data-position="prev"] {
    transform: translate3d(-28%, 3%, -130px) rotateY(30deg) scale(0.86);
  }

  .format-drag-hint {
    bottom: 16px;
    font-size: 0.6rem;
  }

  .gallery-frame__zoom {
    opacity: 0.9;
    transform: none;
  }

  .shot-dialog {
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
  }

  .shot-dialog__panel {
    padding: 10px;
    border-radius: 20px;
  }

  .shot-dialog__frame {
    border-radius: 12px;
  }

  .shot-dialog__frame img {
    max-height: calc(100dvh - 130px);
  }

  .shot-dialog__close {
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    background: rgba(10, 11, 15, 0.84);
    color: var(--paper);
    border-color: rgba(255, 255, 255, 0.18);
  }

  .shot-dialog__caption {
    margin-top: 10px;
    font-size: 0.72rem;
  }
}

@media (max-width: 420px) {
  .format-deck {
    width: min(240px, 76%);
  }

  .format-card {
    padding: 18px;
  }

  .format-card__name {
    font-size: 2.8rem;
  }

  .format-card__codec {
    font-size: 0.64rem;
  }

  .format-card__use {
    font-size: 0.7rem;
  }

  .format-card__tag {
    padding: 4px 7px;
    font-size: 0.56rem;
  }
}

@media (hover: none) {
  .machine-hint__pointer {
    display: none;
  }

  .machine-hint__touch {
    display: inline;
  }
}

@media (prefers-reduced-motion: reduce) {
  .machine-stage > [data-depth] {
    translate: none;
  }

  .machine-tilt,
  .format-deck,
  .gallery-frame {
    transform: none;
  }

  .scene-ring,
  .format-card[data-position="active"] .format-card__bars span {
    animation: none;
  }

  .format-card {
    transition: none;
  }

  .js .section-head.reveal {
    transform: none;
  }

  .shot-dialog[open] {
    animation: none;
  }

  .button::after {
    display: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .shot-dialog::backdrop {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(8, 9, 12, 0.9);
  }
}

@media print {
  .scene-ring,
  .shot-dialog,
  .format-stage {
    display: none !important;
  }
}

/* ---------- night mode ---------- */

html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #050c0a;
  --paper-deep: #030806;
  --paper-light: #0b1712;
  --ink: #f1f7f2;
  --ink-soft: #d5e2da;
  --muted: #9fb1a6;
  --muted-soft: #84968b;
  --line: #1d3027;
  --line-strong: #2c4639;
  --cobalt: #00e676;
  --cobalt-deep: #9bfbc4;
  --cyan: #4ce49a;
  --violet: #39d98a;
  --amber: #ffbc6b;
  --machine: #040a08;
  --machine-soft: #0a1f1a;
  --shadow-soft: 0 24px 70px -32px rgba(0, 0, 0, 0.78);
  --shadow-hard: 0 40px 90px -30px rgba(0, 0, 0, 0.9);
}

html[data-theme="dark"] body {
  background:
    radial-gradient(1100px 560px at 88% -8%, rgba(0, 230, 118, 0.10), transparent 62%),
    radial-gradient(900px 480px at -10% 16%, rgba(0, 230, 118, 0.05), transparent 58%),
    var(--paper);
}

/* Dark panels keep their original light-on-dark palette so their internal
   paper cards, labels, and controls keep the contrast they were drawn for. */
html[data-theme="dark"] :is(
  .intro,
  .machine,
  .web-flow,
  .feature-panel--dark,
  .format-specimen,
  .format-stage,
  .companion,
  .android-panel,
  .download-panel--dark,
  .contact-panel,
  .shot-dialog
) {
  --paper: #f1efe8;
  --paper-deep: #e7e3d8;
  --paper-light: #f8f6f0;
  --ink: #101114;
  --ink-soft: #2a2c32;
  --muted: #62646c;
  --muted-soft: #85878e;
  --line: #d6d1c4;
  --line-strong: #bdb7a8;
}

html[data-theme="dark"] .detect-card {
  border-color: var(--line);
  box-shadow:
    0 26px 56px -28px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

@media (hover: hover) and (pointer: fine) {
  html[data-theme="dark"] .detect-card:hover {
    box-shadow:
      0 32px 64px -30px rgba(0, 0, 0, 0.85),
      inset 0 1px 0 rgba(255, 255, 255, 0.07);
  }
}

html[data-theme="dark"] .detect-badge,
html[data-theme="dark"] .detect-card.is-found .detect-badge {
  background: rgba(61, 220, 151, 0.13);
  color: #7ee2b8;
}

html[data-theme="dark"] .file-chip {
  color: #f1efe8;
}

html[data-theme="dark"] .button--ghost:hover,
html[data-theme="dark"] .legal-toc a:hover,
html[data-theme="dark"] .footer-credit a:hover {
  color: var(--cobalt-deep);
}

html[data-theme="dark"] .trim-track {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 12px),
    linear-gradient(180deg, rgba(53, 100, 255, 0.24), rgba(255, 255, 255, 0.05));
}

html[data-theme="dark"] .trim-handle {
  background: #f4f1e9;
}

html[data-theme="dark"] .machine {
  box-shadow:
    0 45px 100px -28px rgba(0, 0, 0, 0.9),
    0 0 90px -34px rgba(53, 100, 255, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.13);
}

html[data-theme="dark"] .machine-stage::after {
  background: radial-gradient(ellipse, rgba(53, 100, 255, 0.2), transparent 70%);
}

html[data-theme="dark"] .format-stage {
  border-color: rgba(255, 255, 255, 0.14);
}

html[data-theme="dark"] .gallery-frame {
  background: #05060a;
  box-shadow: 0 26px 60px -34px rgba(0, 0, 0, 0.9);
}

html[data-theme="dark"] .gallery-frame__zoom {
  color: #f1efe8;
}

@media (hover: hover) and (pointer: fine) {
  html[data-theme="dark"] .gallery-frame:hover {
    box-shadow: 0 34px 76px -34px rgba(0, 0, 0, 0.85);
  }
}


/* Very narrow phones: the legal-page language select, theme button and menu
   must still fit beside the brand. */
@media (max-width: 400px) {
  .header-inner {
    gap: 8px;
  }

  .header-actions {
    gap: 6px;
  }

  .theme-toggle,
  .nav-toggle {
    width: 38px;
    height: 38px;
  }

  .brand-word {
    width: 70px;
    height: 19px;
  }

  .header-actions select {
    max-width: 96px;
    padding-left: 8px;
    padding-right: 22px;
  }
}

@media (max-width: 340px) {
  .brand-word {
    display: none;
  }
}


/* Grid tracks must be allowed to shrink below the card's min-content width on
   very narrow phones (the SHA and the two-column head otherwise widen it). */
.download-side {
  grid-template-columns: minmax(0, 1fr);
}

.download-side > * {
  min-width: 0;
}

@media (max-width: 400px) {
  .download-panel__head {
    flex-wrap: wrap;
    row-gap: 10px;
  }
}
