/* IBM Plex Sans — self-hosted (brand font, matches the simulator) */
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/cyrillic-500-normal.woff2") format("woff2");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/cyrillic-600-normal.woff2") format("woff2");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/cyrillic-700-normal.woff2") format("woff2");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

:root {
  color-scheme: dark;
  --bg: #07080a;
  --bg-2: #0a0c0e;
  --bg-3: #0e1113;
  --text: #f5f3ec;
  --muted: #c4c0b6;
  --dim: #8b867b;
  --line: rgba(245, 243, 236, 0.14);
  --line-strong: rgba(245, 243, 236, 0.28);
  --field: rgba(10, 12, 11, 0.72);
  --accent: #14b8a6;
  --accent-strong: #5eead4;
  --accent-soft: rgba(20, 184, 166, 0.14);
  --error: #ff9e8f;
  --success: #a7dfb5;

  --shell: 1180px;
  --pad: clamp(20px, 5vw, 64px);
  --radius: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;

  --font:
    "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.02em;
  font-weight: 700;
}

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

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--accent);
  color: #04231f;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

:where(a, button, input, [tabindex]):focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Buttons ------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.25s var(--ease),
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    color 0.25s var(--ease);
}

.btn--primary {
  background: var(--accent);
  border-color: rgba(20, 184, 166, 0.7);
  color: #04231f;
  box-shadow: 0 16px 40px -18px rgba(20, 184, 166, 0.7);
}

.btn--primary:hover {
  background: var(--accent-strong);
  transform: translateY(-2px);
}

.btn--ghost {
  background: rgba(245, 243, 236, 0.04);
  border-color: var(--line-strong);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--accent-strong);
  color: var(--accent-strong);
  transform: translateY(-2px);
}

/* ---------- Eyebrow ----------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow--accent {
  color: var(--accent-strong);
}

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

/* ---------- Header (shared chrome — markup in src/partials/header.html) - */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 30px);
  height: var(--header-h);
  padding: 0 var(--pad);
  transition:
    background 0.3s var(--ease),
    border-color 0.3s var(--ease),
    backdrop-filter 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-elevated,
.site-header.nav-open {
  background: rgba(7, 8, 10, 0.78);
  border-bottom-color: var(--line);
  backdrop-filter: blur(14px) saturate(1.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand__mark {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.brand__name {
  font-size: 0.98rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 26px);
  margin-left: auto;
  font-size: 0.92rem;
}

.site-nav a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.site-nav a:hover {
  color: var(--text);
}

/* Active-path marker: stamped at build time by scripts/build-chrome.mjs. */
.site-nav a[aria-current="page"] {
  color: var(--text);
}

.site-nav a[aria-current="page"]:not(.site-nav__cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

/* Home is implied by the brand on desktop; shown in the mobile panel. */
.site-nav__home,
.site-nav__anchors {
  display: none;
}

.site-nav__cta {
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text) !important;
  white-space: nowrap;
}

.site-nav__cta:hover {
  border-color: var(--accent-strong);
  color: var(--accent-strong) !important;
}

.site-header__tools {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 16px);
  flex: 0 0 auto;
}

/* Sign-in / account (state driven by /scripts/chrome.js via GET /api/me) */
.auth {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.auth__signin {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 20px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #06110f;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition:
    border-color 0.2s var(--ease),
    background 0.2s var(--ease),
    color 0.2s var(--ease);
}

.auth__signin:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.auth__signin[hidden] {
  display: none;
}

.auth__account {
  position: relative;
}

.auth__account[hidden] {
  display: none;
}

.auth__toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 38px;
  max-width: 240px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(245, 243, 236, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s var(--ease);
}

.auth__toggle:hover {
  border-color: var(--accent-strong);
}

.auth__dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-strong);
}

.auth__email {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth__caret {
  flex: 0 0 auto;
  color: var(--muted);
}

.auth__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 60;
  min-width: 230px;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg-2);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.9);
}

.auth__menu[hidden] {
  display: none;
}

.auth__menu-id {
  margin: 0 0 4px;
  padding: 9px 12px 11px;
  border-bottom: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth__menu-item {
  display: block;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}

.auth__menu-item:hover {
  background: rgba(245, 243, 236, 0.06);
  color: var(--text);
}

.auth__menu-item[hidden] {
  display: none;
}

.auth__signout {
  color: var(--error);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(245, 243, 236, 0.04);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: background 0.2s var(--ease);
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s var(--ease), top 0.25s var(--ease);
}

.nav-toggle__bars::before {
  top: -5px;
}

.nav-toggle__bars::after {
  top: 5px;
}

.nav-open .nav-toggle__bars {
  background: transparent;
}

.nav-open .nav-toggle__bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-open .nav-toggle__bars::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Language selector */
.lang {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.lang__icon {
  position: absolute;
  left: 11px;
  display: inline-flex;
  color: var(--muted);
  pointer-events: none;
}

.lang__select {
  appearance: none;
  -webkit-appearance: none;
  height: 38px;
  padding: 0 30px 0 33px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(245, 243, 236, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  /* custom caret */
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.lang__select:hover {
  border-color: var(--accent-strong);
}

.lang__select option {
  background: var(--bg-2);
  color: var(--text);
}

/* Collapse the nav into a panel once the full set no longer fits. */
@media (max-width: 980px) {
  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin: 0;
    padding: 14px var(--pad) 22px;
    max-height: calc(100svh - var(--header-h));
    overflow-y: auto;
    background: rgba(7, 8, 10, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px) saturate(1.1);
    font-size: 1rem;
  }

  .site-header.nav-open .site-nav {
    display: flex;
  }

  .site-nav > a {
    padding: 11px 12px;
    border-radius: 8px;
  }

  .site-nav > a:hover {
    background: rgba(245, 243, 236, 0.05);
  }

  .site-nav a[aria-current="page"]:not(.site-nav__cta)::after {
    content: none;
  }

  .site-nav a[aria-current="page"] {
    color: var(--accent-strong);
  }

  .site-nav__home {
    display: block;
  }

  .site-nav__anchors {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }

  .site-nav__anchors a {
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--dim);
    font-size: 0.92rem;
  }

  .site-nav__anchors a:hover {
    background: rgba(245, 243, 236, 0.05);
    color: var(--text);
  }

  .site-nav__cta {
    align-self: flex-start;
    margin-top: 12px;
  }

  .lang__select {
    height: 36px;
  }
}

@media (max-width: 560px) {
  /* Phones: keep brand + sign-in + menu; language moves out of the way of the
     sign-in affordance (it stays available in the menu-less pages via i18n). */
  .brand__name {
    display: none;
  }

  .auth__toggle {
    max-width: 150px;
  }

  .lang__select {
    width: 62px;
    padding-left: 30px;
    color: transparent;
  }
}

/* ---------- Hero -------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding-block: clamp(110px, 18vh, 200px) clamp(80px, 14vh, 140px);
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(0.94) brightness(0.7);
  transform: scale(1.06);
  animation: heroDrift 26s var(--ease) infinite alternate;
}

@keyframes heroDrift {
  from {
    transform: scale(1.06) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.14) translate3d(-2%, -2%, 0);
  }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(96deg, rgba(5, 6, 8, 0.95) 0%, rgba(6, 7, 9, 0.74) 44%, rgba(6, 7, 9, 0.28) 100%),
    linear-gradient(0deg, var(--bg) 2%, rgba(7, 8, 10, 0) 32%),
    radial-gradient(120% 90% at 16% 48%, rgba(0, 0, 0, 0) 38%, rgba(2, 3, 4, 0.55) 100%);
}

.hero__content {
  position: relative;
}

.hero .eyebrow {
  opacity: 0;
  animation: riseIn 0.8s var(--ease) 0.05s forwards;
}

h1 {
  max-width: 12ch;
  font-size: clamp(3.6rem, 11vw, 9rem);
  line-height: 0.86;
  letter-spacing: -0.04em;
  opacity: 0;
  animation: riseIn 0.9s var(--ease) 0.12s forwards;
}

.tagline {
  max-width: 22ch;
  margin: clamp(20px, 3vw, 34px) 0 0;
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  opacity: 0;
  animation: riseIn 0.9s var(--ease) 0.22s forwards;
}

.intro {
  max-width: 56ch;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.4vw, 1.22rem);
  line-height: 1.6;
  opacity: 0;
  animation: riseIn 0.9s var(--ease) 0.32s forwards;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(28px, 4vw, 44px);
  opacity: 0;
  animation: riseIn 0.9s var(--ease) 0.42s forwards;
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 10px;
  margin: clamp(34px, 5vw, 56px) 0 0;
  padding: 0;
  list-style: none;
  opacity: 0;
  animation: riseIn 0.9s var(--ease) 0.52s forwards;
}

.hero__chips li {
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(245, 243, 236, 0.03);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  backdrop-filter: blur(6px);
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  width: 26px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transform: translateX(-50%);
  opacity: 0.7;
}

.scroll-cue span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent-strong);
  transform: translateX(-50%);
  animation: scrollDot 1.8s var(--ease) infinite;
}

@keyframes scrollDot {
  0% {
    opacity: 0;
    transform: translate(-50%, 0);
  }
  40% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 16px);
  }
}

@media (max-width: 720px) {
  .scroll-cue {
    display: none;
  }
}

/* ---------- Sections ---------------------------------------------------- */
.section {
  position: relative;
  padding-block: clamp(72px, 12vw, 150px);
  scroll-margin-top: 84px;
}

.section--demo {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

.section--conditions {
  background: var(--bg-2);
}

.section--capabilities {
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
}

.section__head {
  /* full shell width so the heading left-aligns with the content below it;
     readable line-length is capped on the text itself, not the container */
  max-width: var(--shell);
  margin-bottom: clamp(38px, 5vw, 64px);
}

.section__head h2 {
  max-width: 22ch;
}

.section__head .section__lede {
  max-width: 62ch;
}

.section__head h2 {
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1.02;
}

.section__lede {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  line-height: 1.62;
}

/* ---------- Compare slider --------------------------------------------- */
.compare {
  position: relative;
  width: 100%;
  aspect-ratio: 1484 / 844;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 50px 120px -50px rgba(0, 0, 0, 0.9);
  --pos: 52%;
  touch-action: pan-y;
  user-select: none;
}

.compare__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.compare__before {
  position: absolute;
  inset: 0;
  overflow: hidden;
  /* reveal only the left strip; inner image stays full-size and aligned */
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.compare__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  background: rgba(94, 234, 212, 0.9);
  transform: translateX(-1px);
  pointer-events: none;
  box-shadow: 0 0 24px rgba(94, 234, 212, 0.5);
}

.compare__grip {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(8, 9, 8, 0.72);
  border: 1.5px solid var(--accent-strong);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(6px);
}

.compare__grip::before,
.compare__grip::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-block: 6px solid transparent;
}

.compare__grip::before {
  left: 11px;
  border-right: 7px solid var(--accent-strong);
}

.compare__grip::after {
  right: 11px;
  border-left: 7px solid var(--accent-strong);
}

.compare__tag {
  position: absolute;
  bottom: 16px;
  z-index: 3;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(7, 8, 10, 0.66);
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.compare__tag--left {
  left: 16px;
  color: var(--muted);
}

.compare__tag--right {
  right: 16px;
  color: var(--accent-strong);
}

.compare__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: ew-resize;
  opacity: 0;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}

.compare__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 56px;
  height: 100%;
  cursor: ew-resize;
}

.compare__range::-moz-range-thumb {
  width: 56px;
  height: 360px;
  border: 0;
  background: transparent;
  cursor: ew-resize;
}

@media (max-width: 720px) {
  .compare__tag {
    font-size: 0.66rem;
    padding: 5px 9px;
  }
}

/* ---------- Scene grid -------------------------------------------------- */
/* Carousel = centered shell wrapper holding the prev/next buttons and the
   horizontally-scrolling track. .shell keeps it max-width + margin-inline:auto,
   so the whole row stays centered on the page. */
.scene-carousel {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.6vw, 18px);
}

.scene-grid {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  gap: clamp(12px, 1.6vw, 20px);
  list-style: none;
  margin: 0;
  padding: 2px 0;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  /* no visible scrollbar — navigation is via the prev/next buttons (and swipe) */
  scrollbar-width: none;
}

.scene-grid::-webkit-scrollbar {
  display: none;
}

/* Prev / next controls */
.scene-nav {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: clamp(40px, 5vw, 48px);
  height: clamp(40px, 5vw, 48px);
  padding: 0;
  color: var(--text);
  background: var(--field);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
  transition:
    color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    background 0.25s var(--ease),
    opacity 0.25s var(--ease);
}

.scene-nav:hover {
  color: var(--accent-strong);
  border-color: var(--accent);
  background: var(--accent-soft);
}

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

.scene-nav:disabled {
  opacity: 0.32;
  cursor: default;
  color: var(--text);
  border-color: var(--line);
  background: var(--field);
}

.scene-card {
  position: relative;
  flex: 0 0 clamp(240px, 72vw, 340px);
  aspect-ratio: 4 / 3;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.scene-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.scene-card:hover img {
  transform: scale(1.06);
}

.scene-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 6, 8, 0.82) 0%, rgba(5, 6, 8, 0) 52%);
}

.scene-card__label {
  position: absolute;
  left: 14px;
  bottom: 13px;
  z-index: 1;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

@media (max-width: 600px) {
  .scene-card {
    flex-basis: 66vw;
  }
}

/* ---------- Feature rows ------------------------------------------------ */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding-block: clamp(30px, 5vw, 56px);
}

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

.feature--reverse .feature__media {
  order: -1;
}

.feature__index {
  margin: 0 0 14px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.feature__text h3 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.08;
}

.feature__text p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.62;
}

.feature__media {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 0.9);
}

.feature__media img {
  width: 100%;
  aspect-ratio: 1484 / 844;
  object-fit: cover;
}

@media (max-width: 860px) {
  .feature {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .feature--reverse .feature__media {
    order: 0;
  }
}

/* ---------- Coming soon: vision-based navigation ----------------------- */
.section--teaser {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(140% 120% at 88% 12%, rgba(20, 184, 166, 0.12) 0%, rgba(20, 184, 166, 0) 52%),
    var(--bg-3);
  border-top: 1px solid var(--line);
}

.teaser__field {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.55;
  /* keep the left (text) side calm, let the motif breathe on the right */
  -webkit-mask-image: linear-gradient(90deg, transparent 6%, #000 54%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 6%, #000 54%, #000 100%);
}

.teaser__lines line {
  opacity: 0;
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  animation: matchDraw 3.4s var(--ease) infinite;
}

.teaser__lines line:nth-child(2n) {
  animation-delay: 0.7s;
}
.teaser__lines line:nth-child(3n) {
  animation-delay: 1.4s;
}
.teaser__lines line:nth-child(5n) {
  animation-delay: 2.1s;
}

@keyframes matchDraw {
  0% {
    opacity: 0;
    stroke-dashoffset: 260;
  }
  30% {
    opacity: 1;
  }
  70% {
    opacity: 1;
    stroke-dashoffset: 0;
  }
  100% {
    opacity: 0;
    stroke-dashoffset: 0;
  }
}

.teaser__dots circle {
  animation: kpTwinkle 3.6s ease-in-out infinite;
}

.teaser__dots circle:nth-child(odd) {
  animation-delay: 0.9s;
}
.teaser__dots circle:nth-child(3n) {
  animation-delay: 1.8s;
}
.teaser__dots circle:nth-child(4n) {
  animation-delay: 2.6s;
}

@keyframes kpTwinkle {
  0%,
  100% {
    opacity: 0.25;
  }
  50% {
    opacity: 1;
  }
}

.teaser {
  position: relative;
  max-width: var(--shell);
}

.teaser .section__lede {
  max-width: 52ch;
}

.eyebrow--live {
  color: var(--accent-strong);
}

.eyebrow--live::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-strong);
  box-shadow: 0 0 0 0 rgba(94, 234, 212, 0.6);
  animation: livePulse 2.2s var(--ease) infinite;
}

@keyframes livePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(94, 234, 212, 0.55);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(94, 234, 212, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(94, 234, 212, 0);
  }
}

.section--teaser h2 {
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1.02;
}

.teaser__points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.teaser__points li {
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(245, 243, 236, 0.03);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.teaser__cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 30px;
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration: none;
}

.teaser__cta span {
  transition: transform 0.25s var(--ease);
}

.teaser__cta:hover span {
  transform: translateX(5px);
}

@media (prefers-reduced-motion: reduce) {
  .teaser__lines line {
    opacity: 0.7;
    stroke-dashoffset: 0;
  }
}

/* ---------- Sign-up ----------------------------------------------------- */
.section--signup {
  background:
    radial-gradient(120% 120% at 80% 0%, rgba(20, 184, 166, 0.1) 0%, rgba(20, 184, 166, 0) 46%),
    var(--bg);
  border-top: 1px solid var(--line);
}

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

.signup .section__lede {
  max-width: 60ch;
}

.signup h2 {
  font-size: clamp(2.1rem, 5vw, 3.8rem);
  line-height: 1.0;
}

.waitlist {
  max-width: 600px;
  margin-top: clamp(28px, 4vw, 40px);
}

.waitlist label {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.waitlist__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.waitlist input {
  min-width: 0;
  height: 56px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--field);
  color: var(--text);
  font: inherit;
  padding: 0 18px;
  outline: none;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.waitlist input::placeholder {
  color: var(--dim);
}

.waitlist input:focus {
  border-color: var(--accent-strong);
  background: rgba(14, 16, 15, 0.9);
}

.waitlist button {
  height: 56px;
  border: 1px solid rgba(20, 184, 166, 0.74);
  border-radius: 8px;
  background: var(--accent);
  color: #04231f;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 0 24px;
  white-space: nowrap;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.waitlist button:hover {
  background: var(--accent-strong);
  transform: translateY(-2px);
}

.waitlist button:disabled {
  cursor: progress;
  opacity: 0.7;
  transform: none;
}

.waitlist__trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.consent {
  margin: 14px 0 0;
  color: var(--dim);
  font-size: 0.85rem;
  line-height: 1.5;
}

.form-status {
  min-height: 1.5em;
  margin: 14px 0 0;
  font-size: 0.96rem;
  font-weight: 700;
}

.form-status[data-state="success"] {
  color: var(--success);
}

.form-status[data-state="error"] {
  color: var(--error);
}

@media (max-width: 560px) {
  .waitlist__row {
    grid-template-columns: 1fr;
  }

  .waitlist button {
    width: 100%;
  }
}

/* ---------- Footer (shared chrome — markup in src/partials/footer.html) - */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
  color: var(--dim);
  font-size: 0.9rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 48px);
  padding-block: clamp(44px, 6vw, 64px) clamp(32px, 5vw, 48px);
}

.site-footer__brand p {
  margin: 16px 0 0;
  max-width: 30ch;
  color: var(--dim);
  line-height: 1.6;
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
}

.site-footer__col h2 {
  margin: 0 0 4px;
  color: var(--dim);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
  text-underline-offset: 4px;
}

.site-footer a:hover {
  color: var(--text);
  text-decoration: underline;
}

.site-footer__base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px 24px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
}

.site-footer__base nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

@media (max-width: 900px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .site-footer__base {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- Reveal-on-scroll ------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
  will-change: opacity, transform;
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal,
  .hero .eyebrow,
  h1,
  .tagline,
  .intro,
  .hero__actions,
  .hero__chips {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- Consent banner --------------------------------------------- */
.consent-banner {
  position: fixed;
  z-index: 80;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  left: clamp(14px, 3vw, 28px);
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  max-width: 720px;
  margin-left: auto;
  padding: 18px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(11, 13, 14, 0.92);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(14px) saturate(1.1);
  transform: translateY(140%);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}

.consent-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.consent-banner__text {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.consent-banner__actions {
  display: flex;
  flex-shrink: 0;
  gap: 10px;
}

.consent-banner__btn {
  height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.consent-banner__btn--primary {
  background: var(--accent);
  border-color: rgba(20, 184, 166, 0.7);
  color: #04231f;
}

.consent-banner__btn--primary:hover {
  background: var(--accent-strong);
}

.consent-banner__btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--muted);
}

.consent-banner__btn--ghost:hover {
  border-color: var(--text);
  color: var(--text);
}

@media (max-width: 620px) {
  .consent-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .consent-banner__actions {
    justify-content: flex-end;
  }
}

@media (prefers-reduced-motion: reduce) {
  .consent-banner {
    transition: opacity 0.2s linear;
    transform: none;
  }
}

/* ---------- 404 --------------------------------------------------------- */
.error-page {
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: var(--pad);
  text-align: center;
}

.error-page__code {
  margin: 0;
  font-size: clamp(4rem, 16vw, 9rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--accent-strong);
}

.error-page h1 {
  max-width: none;
  margin: 14px 0 0;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  opacity: 1;
  animation: none;
}

.error-page p {
  margin: 16px auto 28px;
  max-width: 46ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ---------- Privacy page (existing) ------------------------------------ */
.privacy-page {
  background: var(--bg);
}

.privacy {
  width: min(100% - 40px, 760px);
  margin: 0 auto;
  padding: 110px 0 72px;
}

.privacy h1 {
  margin-top: 0;
  font-size: clamp(2.6rem, 8vw, 5rem);
  opacity: 1;
  animation: none;
}

.privacy p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.back-link {
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration: none;
}

/* ---------- Page scaffolding (shared across sub-pages) ------------------ */
/* Clears the fixed header on pages without a full-bleed hero. */
.page-offset {
  padding-top: var(--header-h);
}

.page-head {
  padding: calc(var(--header-h) + clamp(44px, 8vw, 84px)) 0 clamp(30px, 5vw, 52px);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
}

.page-head h1 {
  max-width: 24ch;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.02;
  opacity: 1;
  animation: none;
}

.page-head .section__lede {
  max-width: 62ch;
}

.page-body {
  padding-block: clamp(36px, 6vw, 64px) clamp(64px, 9vw, 110px);
}

/* Quiet informational panel for empty / gated / offline states. */
.state-card {
  display: grid;
  justify-items: start;
  gap: 14px;
  max-width: 560px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(245, 243, 236, 0.02);
  color: var(--muted);
}

.state-card h2 {
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.state-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.state-card--center {
  justify-items: center;
  margin-inline: auto;
  text-align: center;
}

/* Small status chip (discretion labels, live badges, table states) */
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tag-chip--accent {
  color: var(--accent-strong);
  border-color: rgba(20, 184, 166, 0.45);
}

/* ---------- Video gallery (/videos) ------------------------------------- */
.vg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: clamp(16px, 2.2vw, 26px);
}

.vg-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
  transition:
    border-color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.vg-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.vg-card__poster {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  background: radial-gradient(120% 120% at 30% 20%, #101416 0%, #07080a 100%);
  cursor: pointer;
}

.vg-card__poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.vg-card:hover .vg-card__poster img {
  transform: scale(1.04);
}

.vg-card__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(0deg, rgba(5, 6, 8, 0.55) 0%, rgba(5, 6, 8, 0.08) 55%);
  color: var(--text);
  opacity: 0.92;
  transition: opacity 0.25s var(--ease);
}

.vg-card__play span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1.5px solid rgba(245, 243, 236, 0.75);
  border-radius: 50%;
  background: rgba(7, 8, 10, 0.55);
  backdrop-filter: blur(6px);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.vg-card:hover .vg-card__play span {
  border-color: var(--accent-strong);
  color: var(--accent-strong);
}

.vg-card__duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(7, 8, 10, 0.78);
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.vg-card__disc {
  position: absolute;
  left: 10px;
  top: 10px;
  background: rgba(7, 8, 10, 0.72);
  backdrop-filter: blur(6px);
}

.vg-card__body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px 16px 16px;
}

.vg-card__title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.vg-card__meta {
  margin: 0;
  color: var(--dim);
  font-size: 0.82rem;
}

/* Album sections */
.vg-album + .vg-album {
  margin-top: clamp(40px, 6vw, 64px);
}

.vg-album__head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.vg-album__title {
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  letter-spacing: -0.015em;
}

.vg-album__desc {
  margin: 0;
  color: var(--dim);
  font-size: 0.9rem;
}

/* Loading skeletons */
.vg-skel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
}

.vg-skel::before {
  content: "";
  display: block;
  aspect-ratio: 16 / 9;
  background: rgba(245, 243, 236, 0.05);
  animation: skelPulse 1.6s ease-in-out infinite;
}

.vg-skel::after {
  content: "";
  display: block;
  height: 14px;
  margin: 16px;
  border-radius: 4px;
  background: rgba(245, 243, 236, 0.06);
  animation: skelPulse 1.6s ease-in-out infinite;
}

@keyframes skelPulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

/* Player lightbox */
.vplayer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 4vw, 48px);
  background: rgba(4, 5, 6, 0.92);
  backdrop-filter: blur(10px);
}

.vplayer[hidden] {
  display: none;
}

.vplayer__panel {
  width: min(1080px, 100%);
}

.vplayer__bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.vplayer__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.vplayer__meta {
  margin: 8px 0 0;
  color: var(--dim);
  font-size: 0.84rem;
}

.vplayer__close {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(7, 8, 10, 0.6);
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.vplayer__close:hover {
  border-color: var(--accent-strong);
  color: var(--accent-strong);
}

.vplayer video {
  display: block;
  width: 100%;
  max-height: min(72vh, 640px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #000;
}

/* ---------- Owner console (/admin) -------------------------------------- */
.admin-section {
  margin-top: clamp(36px, 6vw, 60px);
}

.admin-section > h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  letter-spacing: -0.015em;
}

.admin-section > .section__lede {
  margin-top: 10px;
  font-size: 0.98rem;
}

.admin-note {
  margin: 12px 0 0;
  color: var(--dim);
  font-size: 0.85rem;
  line-height: 1.55;
}

/* Data tables */
.table-wrap {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table th {
  padding: 11px 16px;
  border-bottom: 1px solid var(--line-strong);
  background: var(--bg-3);
  color: var(--dim);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
}

.data-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  vertical-align: middle;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover td {
  background: rgba(245, 243, 236, 0.025);
}

.data-table .num {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* Engagement cards */
.content-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: 16px;
  margin-top: 18px;
}

.content-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.content-card:hover,
.content-card.is-active {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.content-card.is-active {
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.content-card__title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.content-card__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  margin: 0;
}

.content-card__stats > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.content-card__stats dd {
  order: -1;
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.content-card__stats dt {
  color: var(--dim);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

/* Watch-progress meter */
.meter {
  position: relative;
  flex: 1 1 auto;
  min-width: 70px;
  height: 6px;
  border-radius: 999px;
  background: rgba(245, 243, 236, 0.09);
  overflow: hidden;
}

.meter > span {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 999px;
  background: var(--accent);
}

.meter-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 150px;
}

.meter-cell .pct {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
  font-size: 0.84rem;
}

/* Drill-down + share panels */
.admin-panel {
  margin-top: 18px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-2);
}

.admin-panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-panel__head h3 {
  font-size: 1.1rem;
}

/* Forms (share tool, CRM settings) */
.fld {
  display: block;
  margin-top: 16px;
}

.fld > span,
.fld__label {
  display: block;
  margin-bottom: 7px;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 700;
}

.fld input,
.fld select,
.fld textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--field);
  color: var(--text);
  font: inherit;
  font-size: 0.94rem;
  outline: none;
  transition: border-color 0.2s var(--ease);
}

.fld textarea {
  resize: vertical;
}

.fld input:focus,
.fld select:focus,
.fld textarea:focus {
  border-color: var(--accent-strong);
}

.fld input::placeholder,
.fld textarea::placeholder {
  color: var(--dim);
}

.fld--check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.fld--check input {
  width: 18px;
  height: 18px;
  min-height: 0;
  accent-color: var(--accent);
}

.fld--check > span {
  margin: 0;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.9rem;
}

.fld-hint {
  margin: 8px 0 0;
  color: var(--dim);
  font-size: 0.8rem;
  line-height: 1.5;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

/* Typeahead */
.ta {
  position: relative;
}

.ta__list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
  max-height: 250px;
  margin: 0;
  padding: 6px;
  list-style: none;
  overflow-y: auto;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg-2);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.9);
}

.ta__list[hidden] {
  display: none;
}

.ta__item {
  display: block;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
}

.ta__item:hover,
.ta__item.is-focused {
  background: var(--accent-soft);
  color: var(--text);
}

.ta__item small {
  display: block;
  color: var(--dim);
}

.ta__empty {
  padding: 10px 12px;
  color: var(--dim);
  font-size: 0.86rem;
}

.pick {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 7px 9px 7px 14px;
  border: 1px solid rgba(20, 184, 166, 0.5);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
}

.pick button {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgba(245, 243, 236, 0.1);
  color: var(--text);
  font-size: 0.8rem;
  line-height: 1;
  cursor: pointer;
}

/* Inline result notes (share confirmation, CRM test) */
.result-note {
  margin-top: 16px;
  padding: 13px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(245, 243, 236, 0.03);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.result-note--ok {
  border-color: rgba(167, 223, 181, 0.45);
  background: rgba(167, 223, 181, 0.07);
  color: var(--success);
}

.result-note--err {
  border-color: rgba(255, 158, 143, 0.45);
  background: rgba(255, 158, 143, 0.07);
  color: var(--error);
}

.result-note code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86em;
  color: var(--text);
  word-break: break-all;
}

.btn--compact {
  height: 44px;
  padding: 0 20px;
  font-size: 0.92rem;
}

/* Video studio (admin) */
.vs-h3 {
  margin: 26px 0 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

.vs-queue {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
  gap: 16px;
  margin-top: 14px;
}

.vs-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
}

.vs-card__poster {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  aspect-ratio: 16 / 9;
  border: 0;
  cursor: pointer;
  background: radial-gradient(120% 120% at 30% 20%, #101416 0%, #07080a 100%);
}

.vs-card__poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vs-card__poster video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

/* Play badge, centred on the poster. Hidden once the reel is playing. */
.vs-card__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #07080a;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease, background 0.15s ease;
}

.vs-card__play svg {
  margin-left: 2px;
}

.vs-card__poster:hover .vs-card__play {
  transform: scale(1.06);
  background: #fff;
}

.vs-card__poster.is-playing .vs-card__play {
  display: none;
}

.vs-preview__err {
  position: absolute;
  inset: 0;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 12px;
  text-align: center;
  color: var(--dim);
  font-size: 0.8rem;
}

/* Album-row inline preview */
.vs-rowwrap {
  border-top: 1px solid var(--line);
  margin-top: 10px;
}

.vs-rowwrap:first-of-type {
  margin-top: 12px;
}

.vs-rowwrap .vs-row {
  border-top: 0;
  margin-top: 0;
}

.vs-row__thumbbtn {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  line-height: 0;
}

.vs-row__preview {
  padding: 4px 0 12px;
}

.vs-row__preview video {
  width: 100%;
  max-height: 420px;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #000;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.vs-row__preview .vs-preview__err {
  position: static;
  padding: 20px;
}

.vs-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 13px 14px 14px;
}

.vs-card__title {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.vs-card__meta {
  margin: 0;
  color: var(--dim);
  font-size: 0.8rem;
}

.vs-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.vs-card__actions select {
  flex: 1 1 130px;
  min-width: 0;
  min-height: 38px;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--field);
  color: var(--text);
  font: inherit;
  font-size: 0.86rem;
}

.btn--tiny {
  height: 38px;
  padding: 0 14px;
  font-size: 0.84rem;
}

.btn--danger {
  background: transparent;
  border-color: rgba(255, 158, 143, 0.4);
  color: var(--error);
}

.btn--danger:hover {
  border-color: var(--error);
  color: var(--error);
  background: rgba(255, 158, 143, 0.08);
}

.vs-albums-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
}

.vs-albums-head .vs-h3 {
  margin-top: 18px;
}

.vs-album {
  margin-top: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
}

.vs-album__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.vs-album__empty {
  margin: 10px 0 0;
  color: var(--dim);
  font-size: 0.86rem;
}

.vs-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  margin-top: 10px;
}

.vs-row:first-of-type {
  margin-top: 12px;
}

.vs-row__thumb {
  flex: 0 0 auto;
  width: 88px;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  object-fit: cover;
  background: var(--bg-3);
  border: 1px solid var(--line);
}

.vs-row__thumb--empty {
  display: grid;
  place-items: center;
  color: var(--dim);
  font-size: 0.7rem;
}

.vs-row__text {
  flex: 1 1 auto;
  min-width: 0;
}

.vs-row__title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vs-row__meta {
  margin: 2px 0 0;
  color: var(--dim);
  font-size: 0.78rem;
}

/* Key-value summary line (CRM connection state) */
.kv-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.88rem;
}

.kv-line dt {
  display: inline;
  color: var(--dim);
}

.kv-line dd {
  display: inline;
  margin: 0;
  font-weight: 600;
}

.kv-line > div {
  white-space: nowrap;
}
