@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ss3-400.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/ss3-600.woff2") format("woff2");
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ss4-400.woff2") format("woff2");
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/ss4-600.woff2") format("woff2");
}

:root {
  --ink: #f4f7fb;
  --muted: #c5d0e0;
  --line: #314056;
  --teal: #7ae7ff;
  --teal-dark: #5ad4f0;
  --soft: #0b1020;
  --field: #1a2436;
  --copper: #ffb088;
  --sand: #2c211c;
  --mint: #123040;
  --white: #151c2e;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --warn-bg: #2c211c;
  --warn-ink: #ffb088;
  --warn-line: #8a5340;
  --danger: #6e1212;
  --danger-line: #6e300e;
  --agent-bg: #13262e;
  --live-bg: #123040;
  --chip: #1a2436;
  --video: #1c1915;
  --max: 1180px;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}

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

html {
  color-scheme: dark;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--soft);
  background-image:
    radial-gradient(880px 520px at 0% -10%, rgba(90, 220, 255, 0.16), transparent 58%),
    radial-gradient(720px 480px at 100% 0%, rgba(150, 130, 255, 0.2), transparent 52%),
    radial-gradient(640px 420px at 70% 110%, rgba(80, 190, 255, 0.1), transparent 50%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.55;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

::selection {
  background: #1d4e6a;
  color: #f4f7fb;
}

body.home {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

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

h1,
h2,
.tagline {
  font-family: var(--serif);
}

a {
  color: var(--teal);
}

a:hover {
  text-decoration-thickness: 2px;
}

a,
button,
input,
select,
textarea,
summary {
  touch-action: manipulation;
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  background: var(--white);
  color: var(--ink);
  padding: 8px 12px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  z-index: 3;
}

.skip:focus {
  top: 12px;
}

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

.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "brand clock nav";
  align-items: center;
  gap: 8px 20px;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 16px 0 8px;
}

.brand {
  --mark: 44px;
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-inline-end: var(--mark);
  color: var(--teal);
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0;
  min-height: 44px;
}

.mark {
  width: auto;
  height: var(--mark);
  color: var(--teal);
  display: block;
  flex: none;
}

.wordmark {
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1;
  white-space: nowrap;
}

.clock {
  grid-area: clock;
  justify-self: center;
  color: var(--muted);
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.nav {
  grid-area: nav;
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 4px;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 10px 10px;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
}

.nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav a.demo-link {
  color: var(--teal);
  font-weight: 600;
}

.stage {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  grid-template-areas:
    "copy viewer"
    "points viewer"
    "status viewer";
  column-gap: 40px;
  row-gap: 14px;
  align-content: center;
  padding: 8px 0 20px;
}

.stage .copy {
  grid-area: copy;
}

.badge,
.tag {
  display: inline-block;
  background: var(--mint);
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  border-radius: 999px;
}

.tag.validation,
.tag.planned {
  background: var(--sand);
  color: var(--copper);
}

h1 {
  margin-top: 12px;
  font-size: clamp(2.35rem, 4.6vw, 4.4rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.02;
  text-wrap: balance;
  max-width: 12ch;
}

.tagline {
  margin-top: 14px;
  max-width: 28ch;
  color: var(--teal);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.25;
}

.sub {
  margin-top: 12px;
  max-width: 38ch;
  color: var(--muted);
  font-size: 1.05rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  background-color: #67e8f9;
  background-image: linear-gradient(115deg, #67e8f9 0%, #a5b4fc 55%, #c4b5fd 100%);
  color: #07131c;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}

.button:hover {
  background-color: #9ae8ff;
  background-image: linear-gradient(115deg, #9ae8ff 0%, #c4b5fd 100%);
  color: #07131c;
}

.button-quiet {
  background-color: transparent;
  background-image: none;
  color: var(--teal);
  box-shadow: inset 0 0 0 1.5px var(--teal);
}

.button-quiet:hover {
  background-color: var(--mint);
  background-image: none;
  color: var(--teal);
}

.button:disabled,
button.button:disabled {
  background-color: #243044;
  background-image: none;
  color: #c5d0e0;
  cursor: not-allowed;
}

.code-field {
  flex: 1 1 220px;
  min-width: 0;
}

.code-field input,
.form input,
.form textarea {
  width: 100%;
  min-height: 52px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--field);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  padding: 0 16px;
}

.join-code {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}

.join-code input {
  flex: 1 1 auto;
  min-width: 0;
  background: var(--white);
  color: var(--ink);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.join-code input::placeholder {
  color: var(--muted);
  letter-spacing: normal;
  text-transform: none;
}

.join-code input[aria-invalid="true"] {
  border-color: var(--copper);
  box-shadow: 0 0 0 1px var(--copper);
}

.join-code .join-go {
  flex: 0 0 auto;
  width: auto;
  min-width: 88px;
}

.join-error {
  color: var(--copper);
}

.form textarea {
  border-radius: 16px;
  padding: 12px 16px;
  min-height: 96px;
  resize: vertical;
}

input:disabled,
textarea:disabled {
  opacity: 1;
  color: var(--muted);
  background: var(--field);
  cursor: not-allowed;
}

input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.note,
.status {
  color: var(--muted);
  font-size: 0.92rem;
}

.note {
  margin-top: 10px;
  max-width: 52ch;
}

.phone-steps {
  margin: 14px 0 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 8px;
  max-width: 42ch;
}

.note strong,
.status strong {
  color: var(--ink);
  font-weight: 600;
}

.stage .points {
  grid-area: points;
}

.points {
  list-style: none;
  padding: 0;
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.points a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  height: 100%;
  color: var(--ink);
  text-decoration: none;
  padding: 16px;
  min-height: 44px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.points a span {
  color: var(--muted);
}

.points a:hover strong {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.plain-points {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.plain-points li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.plain-points li span {
  color: var(--muted);
}

.demo-covers {
  margin-top: 36px;
}

.copy-mail {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: center;
  color: var(--muted);
}

.link-button {
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--teal);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.link-button:hover {
  color: var(--teal-dark);
}

.stage .status {
  grid-area: status;
}

.stage .viewer {
  grid-area: viewer;
}

.viewer {
  align-self: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 16px;
  min-width: 0;
}

.viewer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.tabs {
  display: flex;
  gap: 4px;
}

.tabs button,
.pause {
  font: inherit;
  font-size: 0.95rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.tabs button[aria-selected="true"] {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
  font-weight: 600;
}

.slide[hidden] {
  display: none;
}

.room {
  display: grid;
  gap: 8px;
}

.lead-row {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 8px;
}

.agent-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.tile {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
  min-height: 72px;
}

.tile.is-speaking {
  box-shadow: inset 0 0 0 1.5px var(--teal);
}

.tile-name {
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.3;
}

.tile-role,
.flag {
  font-size: 0.75rem;
  line-height: 1.3;
}

.tile-role {
  color: var(--muted);
}

.flag {
  margin-top: 6px;
  color: var(--copper);
  font-weight: 600;
}

.flag.quiet {
  color: var(--teal);
  font-weight: 600;
}

.dot::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: currentColor;
  vertical-align: 0;
}

.transcript,
.diagram,
.record {
  margin-top: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
}

.kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.transcript ol,
.flow {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 6px;
}

.who {
  font-weight: 600;
}

.flow {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 64px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--soft);
}

.box.is-changed {
  border-style: dashed;
  border-color: var(--copper);
  background: var(--sand);
}

.chg {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--copper);
}

.marks {
  margin-top: 8px;
  display: grid;
  gap: 4px;
  font-size: 0.88rem;
}

.record-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.record dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
}

.record dt {
  font-size: 0.75rem;
  color: var(--muted);
}

.record dd {
  margin: 0;
  font-weight: 600;
}

.milestone {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.88rem;
}

.figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.78rem;
}

.page {
  width: min(740px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 72px;
}

.page h1 {
  max-width: 16ch;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 500;
  line-height: 1.05;
}

.lede {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 46ch;
}

.block {
  margin-top: 36px;
}

.block h2 {
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.block p + p,
.block ul,
.block ol {
  margin-top: 8px;
}

.steps {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 28px;
  margin-top: 36px;
}

.steps h2 {
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.step-no {
  display: block;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.team {
  margin-top: 8px;
  padding-left: 1.1rem;
}

.team li + li {
  margin-top: 4px;
}

.cases {
  display: grid;
  gap: 28px;
  margin-top: 36px;
}

.case {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.case h2 {
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.rules {
  padding-left: 1.2rem;
  display: grid;
  gap: 12px;
}

.rules li::marker {
  color: var(--teal);
  font-weight: 600;
}

.cap-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.cap-list h3 {
  font-size: 1.05rem;
  font-weight: 600;
}

.banner {
  margin-top: 22px;
  background: var(--sand);
  color: var(--ink);
  border-radius: 14px;
  padding: 12px 14px;
}

.form {
  margin-top: 22px;
  display: grid;
  gap: 14px;
}

.form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-inline-size: 0;
  display: grid;
  gap: 14px;
}

.foot {
  width: min(740px, calc(100% - 48px));
  margin: 0 auto;
  padding: 8px 0 40px;
  color: var(--muted);
  font-size: 0.92rem;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-top: 10px;
}

.foot nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 6px;
}

.foot a {
  color: var(--teal);
}

.disclaimer {
  margin-top: 14px;
  max-width: 68ch;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.foot > .disclaimer:first-child {
  margin-top: 0;
}

.credit {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.78rem;
}

.foot > .credit:first-child {
  margin-top: 0;
}

body.home .foot {
  width: min(var(--max), calc(100% - 48px));
  padding-bottom: 18px;
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand clock"
      "nav nav";
    width: min(var(--max), calc(100% - 32px));
  }

  .brand {
    --mark: 36px;
    gap: 8px;
    margin-inline-end: 12px;
  }

  .wordmark {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
  }

  .stage {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "viewer"
      "points"
      "status";
    width: min(var(--max), calc(100% - 32px));
    align-content: start;
    padding-top: 18px;
    row-gap: 18px;
  }

  body.home .foot {
    width: min(var(--max), calc(100% - 32px));
  }

  h1,
  .page h1 {
    max-width: 16ch;
  }

  .points {
    grid-template-columns: 1fr 1fr;
  }

  .points a {
    gap: 4px;
  }
}

@media (max-width: 420px) {
  .viewer-bar {
    flex-wrap: wrap;
  }

  .agent-row,
  .flow,
  .record dl {
    grid-template-columns: 1fr 1fr;
  }

  .actions,
  .button,
  .code-field {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .topbar {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "clock"
      "nav";
  }

  .clock {
    justify-self: start;
    white-space: normal;
  }

  .tabs {
    flex-wrap: wrap;
  }
}

@media (min-width: 1000px) and (max-height: 860px) {
  .topbar {
    padding-top: 10px;
  }

  .page h1 {
    font-size: 2.4rem;
  }

  .tagline {
    margin-top: 8px;
    font-size: 1.15rem;
  }

  .sub {
    margin-top: 8px;
    font-size: 1rem;
  }

  .actions {
    margin-top: 14px;
  }

  .tile {
    min-height: 64px;
    padding: 7px 8px;
  }
}

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

  /* Phones: wrap whole links onto extra rows. A scrolling row cut the last
     visible label (Governance) against the screen edge. */
  .nav {
    /* Labels are not translated, so the wrap keeps one direction. */
    direction: ltr;
    justify-self: stretch;
    min-width: 0;
    flex-wrap: wrap;
    overflow: visible;
  }

  .nav a {
    white-space: nowrap;
  }
}

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

  /* No cross-document motion. Navigation stays an instant cut. */
  @view-transition {
    navigation: none;
  }

  .topbar,
  .hero h1,
  main.page > h1,
  #lobby-heading {
    view-transition-name: none;
  }
}

img {
  max-width: 100%;
}

.home-main {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-bottom: 36px;
  min-width: 0;
}

.hero {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(300px, 0.98fr);
  gap: 36px 40px;
  align-items: center;
  min-height: calc(100svh - 92px);
  padding: 8px 0 12px;
}

.hero-copy .sub {
  font-size: 1.12rem;
  max-width: 38ch;
}

.hero-visual {
  position: relative;
  align-self: center;
  min-height: 0;
  border-radius: 28px;
  overflow: hidden;
  background: #071018;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(148px, 0.78fr);
  align-items: center;
  gap: 8px;
  padding: 16px;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-room {
  position: relative;
  z-index: 2;
  align-self: center;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 200 / 220;
  display: grid;
  place-items: center;
  color: inherit;
  text-decoration: none;
}

.hero-room .hero-live {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  pointer-events: auto;
}

.hero-live-glow {
  fill: #7ae7ff;
  opacity: 0.16;
}

.hero-live-line {
  fill: none;
  stroke: #7ae7ff;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.hero-pip {
  fill: #7ae7ff;
  stroke: #071018;
  stroke-width: 1;
}

.hero-live-orbit {
  fill: #f4f7fb;
}

.band {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.phone-steps {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 16px 16px 2.2rem;
  max-width: none;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 16ch;
}

.walk {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 28px 40px;
  align-items: start;
  min-width: 0;
}

.walk > * {
  min-width: 0;
}

.walk-lead {
  position: sticky;
  top: 16px;
}

.walk-lead p {
  margin-top: 12px;
  color: var(--muted);
  max-width: 36ch;
}

.walk-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.walk-tabs button {
  font: inherit;
  font-size: 0.95rem;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.walk-tabs button[aria-selected="true"] {
  background-color: #67e8f9;
  background-image: linear-gradient(115deg, #67e8f9 0%, #a5b4fc 55%, #c4b5fd 100%);
  border-color: transparent;
  color: #07131c;
  font-weight: 600;
}

.walk-panel {
  margin-top: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
}

.walk-panel img {
  display: block;
  width: 100%;
  height: auto;
  background: #10182a;
}

.walk-copy {
  padding: 16px 18px 18px;
}

.walk-copy p {
  color: var(--muted);
  max-width: 52ch;
}

.walk-copy a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 8px;
  font-weight: 600;
}

.journal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.72fr);
  gap: 24px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
}

.journal-copy {
  padding: 28px 8px 28px 28px;
}

.journal-copy p {
  margin-top: 12px;
  color: var(--muted);
  max-width: 42ch;
}

.journal-copy .button {
  margin-top: 18px;
}

.journal img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  display: block;
}

.essay-photo {
  margin-top: 28px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.essay-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.stories {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.story {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 12px;
  min-height: 44px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--ink);
  text-decoration: none;
}

.story img {
  width: 100%;
  height: 112px;
  object-fit: cover;
  border-radius: 14px;
  background: var(--mint);
  display: block;
}

.story h2 {
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.story p {
  margin-top: 6px;
  color: var(--muted);
}

.article-illu {
  margin-top: 22px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
}

.article-illu img {
  display: block;
  width: 100%;
  height: auto;
}

.prose p {
  margin-top: 14px;
  max-width: 62ch;
}

.back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 28px;
  font-weight: 600;
}

@media (max-width: 980px) {
  .hero {
    width: min(var(--max), calc(100% - 32px));
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 0;
    padding-top: 4px;
  }

  .hero-visual {
    order: -1;
    align-self: stretch;
    width: 100%;
    min-height: 0;
    height: auto;
    max-height: none;
    display: block;
    border-radius: 24px;
    padding: 8px;
  }

  .hero-copy {
    position: relative;
    margin-top: 12px;
    padding: 22px 18px 8px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
  }

  .hero h1 {
    font-size: clamp(2.15rem, 9vw, 3rem);
  }

  .band {
    width: min(var(--max), calc(100% - 32px));
  }

  body.home .foot {
    width: min(var(--max), calc(100% - 32px));
  }

  .walk,
  .journal {
    grid-template-columns: 1fr;
  }

  .walk-lead {
    position: static;
  }

  .journal-copy {
    padding: 22px 18px 8px;
  }

  .journal img {
    min-height: 200px;
    max-height: 280px;
  }

  .hero-room {
    position: absolute;
    z-index: 3;
    top: 8px;
    inset-inline-end: 8px;
    width: 56px;
    height: auto;
    min-height: 0;
    margin: 0;
    aspect-ratio: 200 / 220;
  }

  .hero-copy {
    margin-top: 0;
    padding-top: 10px;
  }
}

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

  .story img {
    height: 160px;
  }
}

/* Cross-document view transitions between public pages.
   The header (brand, clock, and nav) shares one name, so it stays put.
   The page title shares one name and cross-fades in place.
   The rest of the page fades and slides a few pixels. Transform and opacity only.
   Browsers that do not understand @view-transition ignore this and cut as before. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }

  .topbar {
    view-transition-name: site-header;
  }

  .hero h1,
  main.page > h1,
  #lobby-heading {
    view-transition-name: page-title;
  }

  ::view-transition {
    background: #0b1020;
  }

  ::view-transition-group(site-header) {
    animation: none;
    z-index: 2;
  }

  ::view-transition-old(site-header),
  ::view-transition-new(site-header) {
    animation: none;
    mix-blend-mode: normal;
  }

  /* The title cross-fades where it lands. It does not fly across the page. */
  ::view-transition-group(page-title) {
    animation: none;
    z-index: 1;
  }

  ::view-transition-group(root) {
    animation-duration: 240ms;
    animation-timing-function: ease;
  }

  ::view-transition-old(root),
  ::view-transition-old(page-title) {
    animation: 200ms ease both vt-leave;
    mix-blend-mode: normal;
  }

  ::view-transition-new(root),
  ::view-transition-new(page-title) {
    animation: 240ms ease both vt-enter;
    mix-blend-mode: normal;
  }

  html[dir="rtl"]::view-transition-old(root),
  html[dir="rtl"]::view-transition-old(page-title) {
    animation-name: vt-leave-rtl;
  }

  html[dir="rtl"]::view-transition-new(root),
  html[dir="rtl"]::view-transition-new(page-title) {
    animation-name: vt-enter-rtl;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .hero-photo {
    transform-origin: center center;
    animation: hero-settle 14s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .hero-live-ring,
  .hero-live-core {
    transform-box: view-box;
    transform-origin: center;
  }

  .hero-live-ring {
    animation: live-ring 6.4s ease-in-out infinite;
  }

  .hero-live-ring-b {
    animation-duration: 4.8s;
    animation-delay: -1.6s;
  }

  .hero-live-core {
    animation: live-core 3.6s ease-in-out infinite;
  }

  .hero-live-glow {
    transform-box: view-box;
    transform-origin: center;
    animation: live-core 3.6s ease-in-out infinite;
  }

  .hero-live-orbit {
    transform-box: view-box;
    transform-origin: 50% 47.3%;
    animation: hero-spin 11s linear infinite;
  }

  .hero-live-line {
    animation: hero-draw 3.2s ease-in-out infinite;
  }

  .hero-pip {
    animation: hero-pip 3.4s ease-in-out infinite;
  }

  .hero-pip-2 { animation-delay: -1.1s; }
  .hero-pip-3 { animation-delay: -2.2s; }

  .hero-live.is-paused,
  .hero-live.is-paused * {
    animation-play-state: paused;
  }

  .points a,
  .story,
  .button,
  .nav a,
  .scene,
  .concept {
    transition: transform 460ms cubic-bezier(0.22, 1.35, 0.36, 1);
  }

  .points a:hover,
  .story:hover,
  .scene:hover,
  .concept:hover,
  .button:hover:not(:disabled) {
    transform: translateY(-2px);
  }

  .button:active:not(:disabled),
  .points a:active,
  .story:active,
  .nav a:active,
  .scene:active,
  .concept:active {
    transform: scale(0.98);
  }

  .reveal.is-in:not(:has(.scene, .story, .concept, .points li)),
  .prose.is-in,
  .cta-next.is-in {
    animation: rise 640ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .reveal.is-in .points li,
  .scene-grid.is-in > .scene,
  .stories.is-in > .story,
  .concept-pair.is-in > .concept,
  .concept-grid.is-in > .concept,
  .steps.is-in > li {
    animation: rise 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .reveal.is-in .points li:nth-child(2),
  .scene-grid.is-in > .scene:nth-child(2),
  .stories.is-in > .story:nth-child(2),
  .concept-pair.is-in > .concept:nth-child(2),
  .steps.is-in > li:nth-child(2) {
    animation-delay: 80ms;
  }

  .reveal.is-in .points li:nth-child(3),
  .scene-grid.is-in > .scene:nth-child(3),
  .stories.is-in > .story:nth-child(3),
  .steps.is-in > li:nth-child(3) {
    animation-delay: 160ms;
  }
}

@keyframes hero-settle {
  from { transform: scale(1.045); }
  to { transform: scale(1); }
}

@keyframes live-ring {
  0%, 100% { transform: scale(0.96); opacity: 0.42; }
  50% { transform: scale(1.06); opacity: 0.88; }
}

@keyframes live-core {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.16); opacity: 1; }
}

@keyframes hero-spin {
  to { transform: rotate(360deg); }
}

@keyframes hero-draw {
  0% { stroke-dashoffset: 1; }
  42%, 68% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 1; }
}

@keyframes hero-pip {
  0%, 18% { fill: #243044; opacity: 0.55; }
  38%, 72% { fill: #7ae7ff; opacity: 1; }
  100% { fill: #243044; opacity: 0.55; }
}

@keyframes rise {
  from { transform: translateY(12px); }
  to { transform: none; }
}

@keyframes vt-leave {
  to {
    opacity: 0;
    transform: translate3d(-12px, 0, 0);
  }
}

@keyframes vt-enter {
  from {
    opacity: 0;
    transform: translate3d(12px, 8px, 0);
  }
}

@keyframes vt-leave-rtl {
  to {
    opacity: 0;
    transform: translate3d(12px, 0, 0);
  }
}

@keyframes vt-enter-rtl {
  from {
    opacity: 0;
    transform: translate3d(-12px, 8px, 0);
  }
}

/* ---------- Blog field. Same dark page, no photograph. ---------- */
body.grove .topbar {
  background: transparent;
  border-bottom: 0;
  color: #f6f2e8;
}
body.grove .topbar a,
body.grove .topbar .brand,
body.grove .topbar .wordmark,
body.grove .topbar .clock { color: #f6f2e8; }
body.grove .topbar .demo-link {
  background: rgba(246, 242, 232, 0.14);
  /* Inset ring, not a border, so the link keeps the same height as the rest of the phone nav row. */
  box-shadow: inset 0 0 0 1px rgba(246, 242, 232, 0.4);
  color: #fff;
  backdrop-filter: blur(6px);
}
body.grove .page {
  position: relative;
  padding-top: clamp(48px, 14vh, 140px);
  padding-bottom: 72px;
}
body.grove .page > .badge,
body.grove .page > h1,
body.grove .page > .lede { color: #f9f6ee; text-shadow: 0 1px 18px rgba(12, 22, 33, 0.45); }
body.grove .page > .badge {
  background: rgba(246, 242, 232, 0.16);
  border-color: rgba(246, 242, 232, 0.45);
}
body.grove .page > h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.3rem, 6vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  max-width: 18ch;
}
body.grove .page > .lede { font-size: clamp(1.08rem, 2.2vw, 1.3rem); max-width: 46ch; }
/* Content flows through the scene: translucent mist, no hard frame */
body.grove .prose,
body.grove .stories {
  margin-top: clamp(48px, 18vh, 180px);
  padding: clamp(28px, 5vw, 56px);
  border-radius: 36px 36px 28px 28px;
  background: linear-gradient(180deg, rgba(246, 242, 232, 0.86), rgba(246, 242, 232, 0.97) 140px);
  backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: 0 -30px 80px rgba(28, 39, 39, 0.18);
}
body.grove .prose p {
  font-size: 1.12rem;
  line-height: 1.75;
  color: #2a2c24;
  max-width: 64ch;
  margin-top: 1.1em;
}
body.grove .prose > p:first-child { margin-top: 0; }
body.grove .prose > p:first-child::first-letter {
  font-family: var(--serif);
  float: left;
  font-size: 3.4em;
  line-height: 0.9;
  padding: 0.06em 0.1em 0 0;
  color: var(--moss);
}
body.grove .article-illu {
  margin: 28px 0 0;
  border: 0;
  border-radius: 28px;
  background: rgba(246, 242, 232, 0.12);
  max-width: 520px;
  opacity: 0.94;
}
body.grove .stories { display: grid; gap: 22px; }
body.grove .story {
  border: 0;
  border-radius: 26px;
  background: rgba(255, 252, 247, 0.7);
  transition: transform 0.5s cubic-bezier(.2,.7,.2,1), box-shadow 0.5s;
}
body.grove .story:hover,
body.grove .story:focus-visible { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(62, 72, 47, 0.16); }
body.grove .story h2 { font-family: var(--serif); font-weight: 500; color: var(--canopy); }
body.grove .story .kicker { color: var(--olive); }
body.grove .note {
  background: rgba(246, 242, 232, 0.92);
  border-color: rgba(118, 112, 62, 0.35);
  border-radius: 20px;
}
body.grove .back { color: var(--moss); }
body.grove .foot { background: transparent; }
@media (max-width: 700px) {
  body.grove .topbar .demo-link { background: rgba(28, 39, 39, 0.5); }
}
@media (prefers-reduced-motion: reduce) {
  body.grove .story { transition: none; }
}

/* ---------- Next step and related notes ---------- */
.cta-next {
  margin-top: 56px;
  padding: clamp(24px, 4vw, 40px);
  background: var(--mint);
  border: 1px solid var(--line);
  border-radius: 24px;
}
.cta-next .section-title { max-width: 20ch; }
.cta-next > p:not(.kicker):not(.actions) { margin-top: 12px; max-width: 52ch; color: var(--ink); }
.cta-next .kicker { color: var(--teal-dark); }
.related { margin-top: 40px; }
.related-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.related ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.related li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.related a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.read-time { color: var(--muted); font-size: 0.92rem; white-space: nowrap; }
.badge .read-time { color: inherit; font-size: inherit; }
body.grove .related,
body.grove .cta-next { background: rgba(246, 242, 232, 0.94); border-color: rgba(118, 112, 62, 0.3); }
body.grove .related { padding: clamp(20px, 4vw, 32px); border-radius: 24px; border: 1px solid rgba(118, 112, 62, 0.3); }
body.grove .related a { color: var(--moss); }
body.grove .cta-next .section-title { font-family: var(--serif); font-weight: 400; color: var(--canopy); }
body.grove .cta-next .kicker { color: var(--olive); }
body.grove .read-time { color: #5a5640; }
body.grove .badge .read-time { color: inherit; }

/* ---------- Longer notes: headings, diagrams, viewpoints, sources ---------- */
body.grove .prose h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.45rem, 3.2vw, 1.85rem);
  line-height: 1.2;
  color: var(--canopy);
  margin-top: 1.9em;
  max-width: 30ch;
}
body.grove .prose ul {
  margin-top: 1em;
  padding-left: 1.2em;
  max-width: 64ch;
}
body.grove .prose li {
  font-size: 1.08rem;
  line-height: 1.7;
  color: #2a2c24;
  margin-top: 0.55em;
}
body.grove .prose li strong { color: var(--canopy); }
.prose .diagram {
  margin: 1.6em 0 0;
  max-width: 640px;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
}
.prose .diagram img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}
.prose .diagram figcaption {
  margin-top: 10px;
  padding: 0 6px 4px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
}
.viewpoint {
  margin-top: 1.1em;
  max-width: 64ch;
  padding: 14px 20px 16px;
  background: rgba(231, 242, 241, 0.7);
  border-left: 4px solid #76703e;
  border-radius: 0 18px 18px 0;
}
body.grove .prose .viewpoint p { margin-top: 0.35em; font-size: 1.05rem; }
body.grove .prose .viewpoint .viewpoint-title {
  margin-top: 0;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #3e482f;
}
body.grove .prose .sources li {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--muted);
  overflow-wrap: anywhere;
}

/* ---------- Concept illustrations ---------- */
.concepts-lede {
  margin-top: 10px;
  max-width: 60ch;
  color: var(--muted);
}
.concept-grid,
.concept-pair {
  display: grid;
  gap: 18px;
  margin-top: 22px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.concept {
  margin: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
}
.concept img {
  display: block;
  width: 100%;
  height: auto;
}
.concept figcaption {
  padding: 12px 18px 18px;
  line-height: 1.5;
  color: var(--muted);
}
.concept figcaption strong {
  display: block;
  font-size: 1.05rem;
  color: var(--ink);
}

/* Inline concept scenes. One picture per idea, stacked so the drawing stays large enough to read. */
.scene-grid {
  display: grid;
  gap: 18px;
  margin-top: 22px;
  min-width: 0;
}
.scene {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
}
.scene svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}
.scene-rtl {
  display: none;
}
[dir="rtl"] .scene-ltr {
  display: none;
}
[dir="rtl"] .scene-rtl {
  display: block;
}
.scene figcaption {
  padding: 12px 18px 18px;
  line-height: 1.5;
  color: var(--muted);
}
.scene figcaption strong {
  display: block;
  font-size: 1.05rem;
  color: var(--ink);
}
.what-is .scene-grid {
  margin-top: 26px;
}
@media (min-width: 1100px) {
  .what-is .scene-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
body.grove .scene-band {
  margin-top: clamp(48px, 18vh, 180px);
  padding: clamp(22px, 4vw, 36px);
  border-radius: 36px 36px 28px 28px;
  background: linear-gradient(180deg, rgba(246, 242, 232, 0.92), rgba(246, 242, 232, 0.98) 120px);
  backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: 0 -30px 80px rgba(28, 39, 39, 0.18);
}
body.grove .scene-band + .stories {
  margin-top: 22px;
}
@media (prefers-reduced-motion: reduce) {
  .scene,
  .scene svg {
    transition: none;
    animation: none;
  }
}

/* Blog pages sit on the same dark field. Spacing is unchanged. */
.cta-next {
  border-color: var(--line);
}

body.grove .topbar,
body.grove .topbar a,
body.grove .topbar .wordmark {
  color: var(--ink);
  text-shadow: none;
}

body.grove .topbar .clock {
  color: var(--muted);
}

body.grove .topbar .brand,
body.grove .topbar .demo-link {
  background: transparent;
  box-shadow: none;
  color: var(--teal);
  backdrop-filter: none;
}

body.grove .page > .badge,
body.grove .page > h1,
body.grove .page > .lede {
  color: var(--ink);
  text-shadow: none;
}

body.grove .page > .lede {
  color: var(--muted);
}

body.grove .page > .badge {
  background: var(--mint);
  border-color: transparent;
  color: var(--teal);
}

body.grove .prose,
body.grove .stories,
body.grove .scene-band,
body.grove .note,
body.grove .related,
body.grove .cta-next {
  background: var(--white);
  border-color: var(--line);
  box-shadow: none;
  backdrop-filter: none;
}

body.grove .prose p,
body.grove .prose li,
body.grove .prose h2,
body.grove .prose li strong,
body.grove .prose > p:first-child::first-letter,
body.grove .story h2,
body.grove .cta-next .section-title {
  color: var(--ink);
}

body.grove .story {
  background: var(--field);
}

body.grove .story .kicker,
body.grove .cta-next .kicker,
body.grove .back,
body.grove .related a,
body.grove .prose .viewpoint .viewpoint-title {
  color: var(--teal);
}

body.grove .read-time,
body.grove .prose .sources li {
  color: var(--muted);
}

body.grove .prose .viewpoint {
  background: var(--mint);
  border-left-color: var(--teal);
}

body.grove .article-illu {
  background: transparent;
}

/* Sample generative UI. Transform and opacity only. */
.xp {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.xp button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  min-height: 92px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--field);
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: start;
  cursor: pointer;
}

.xp button:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

.xp button.is-on[data-xp="talk"] {
  background: #67e8f9;
  color: #07131c;
  border-color: transparent;
}

.xp button.is-on[data-xp="show"] {
  background: #c4b5fd;
  color: #07131c;
  border-color: transparent;
}

.xp button.is-on[data-xp="play"] {
  background: #ffb088;
  color: #07131c;
  border-color: transparent;
}

.xp-motion {
  position: relative;
  display: block;
  width: 36px;
  height: 18px;
}

.xp button[data-xp="talk"] .xp-motion::before,
.xp button[data-xp="talk"] .xp-motion::after,
.xp button[data-xp="show"] .xp-motion::before,
.xp button[data-xp="show"] .xp-motion::after,
.xp button[data-xp="play"] .xp-motion::before,
.xp button[data-xp="play"] .xp-motion::after {
  content: "";
  position: absolute;
}

.xp button[data-xp="talk"] .xp-motion::before,
.xp button[data-xp="talk"] .xp-motion::after {
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.xp button[data-xp="talk"] .xp-motion::before {
  left: 4px;
  top: 4px;
  width: 10px;
  height: 10px;
}

.xp button[data-xp="talk"] .xp-motion::after {
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
}

.xp button[data-xp="show"] .xp-motion::before,
.xp button[data-xp="show"] .xp-motion::after {
  width: 16px;
  height: 11px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
}

.xp button[data-xp="show"] .xp-motion::before {
  left: 0;
  top: 2px;
}

.xp button[data-xp="show"] .xp-motion::after {
  left: 8px;
  top: 6px;
}

.xp button[data-xp="play"] .xp-motion::before {
  left: 0;
  right: 10px;
  top: 8px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.xp button[data-xp="play"] .xp-motion::after {
  right: 0;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
}

.hero-visual .gen-canvas,
.gen-stage .gen-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.gen-hud {
  position: absolute;
  z-index: 1;
  inset: 14px 16px auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  max-width: calc(100% - 32px);
  pointer-events: none;
}

.gen-sample {
  margin: 0;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(7, 19, 28, 0.78);
  color: #f4f7fb;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gen-prompt {
  margin: 0;
  min-height: 1.35em;
  color: #f4f7fb;
  font-weight: 600;
  font-size: 1.02rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
}

.gen-pieces {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 40px;
}

.gen-part {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: #67e8f9;
  color: #07131c;
  font-size: 0.86rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(8px);
}

.gen-part.is-in,
.gen-stage.is-still .gen-part {
  opacity: 1;
  transform: none;
}

.gen-card,
.gen-goal {
  min-width: 7.5rem;
  border-radius: 12px;
  background: #151c2e;
  color: #f4f7fb;
  box-shadow: inset 0 0 0 1px #7ae7ff;
}

.gen-meter {
  width: 5.5rem;
  background-color: #67e8f9;
  background-image: linear-gradient(90deg, #67e8f9, #c4b5fd);
}

.gen-pieces.is-out .gen-part {
  opacity: 0;
  transform: translateY(6px);
}

.gen-compact {
  margin: 14px 0 8px;
}

.gen-compact .xp button {
  min-height: 72px;
}

.gen-compact .gen-stage {
  position: relative;
  height: 150px;
  min-height: 0;
  margin-top: 10px;
  border-radius: 16px;
  overflow: hidden;
  background: #071018;
  border: 1px solid var(--line);
}

.essay-photo.gen-stage {
  position: relative;
  min-height: 240px;
  margin-top: 28px;
  border-radius: 24px;
  overflow: hidden;
  background: #071018;
  border: 1px solid var(--line);
}

.signal-art {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  background: #071018;
}

@media (max-width: 980px) {
  .journal .signal-art {
    min-height: 200px;
    max-height: 280px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .xp button[data-xp="talk"] .xp-motion::after {
    animation: xp-pulse 2.4s ease-in-out infinite;
  }

  .xp button[data-xp="show"] .xp-motion::after {
    animation: xp-card 2.8s ease-in-out infinite;
  }

  .xp button[data-xp="play"] .xp-motion::after {
    animation: xp-dot 1.8s ease-in-out infinite;
  }

  .gen-part {
    transition: opacity 320ms ease, transform 420ms cubic-bezier(0.22, 1.2, 0.36, 1);
  }
}

@keyframes xp-pulse {
  50% { transform: scale(1.12); }
}

@keyframes xp-card {
  50% { transform: translateY(-3px); }
}

@keyframes xp-dot {
  50% { transform: translateX(-8px); }
}

@media (prefers-reduced-motion: reduce) {
  .xp-motion::before,
  .xp-motion::after,
  .gen-part,
  .gen-canvas {
    animation: none;
  }

  .gen-part {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Article takeaway: three short beats, then the note. Transform and opacity only. */
.takeaway {
  margin-top: 16px;
  padding: 12px 12px 10px;
  border: 1px solid transparent;
  border-radius: 18px;
  background:
    linear-gradient(180deg, #151c2e, #12182a) padding-box,
    linear-gradient(115deg, #67e8f9, #a5b4fc 55%, #c4b5fd) border-box;
  box-shadow: 0 0 24px rgba(122, 231, 255, 0.12);
}

.takeaway-label {
  margin: 0 0 8px;
  color: #7ae7ff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.takeaway[dir="rtl"] .takeaway-label {
  letter-spacing: 0;
}

.takeaway-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.takeaway-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 6px 10px;
  border-radius: 12px;
  background: #1a2436;
  color: #f4f7fb;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.25;
}

.takeaway-points li > span:last-child {
  min-width: 0;
}

.glyph {
  position: relative;
  flex: none;
  width: 28px;
  height: 28px;
  color: #67e8f9;
}

.glyph::before,
.glyph::after {
  content: "";
  position: absolute;
}

.glyph-person::before {
  left: 3px;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.glyph-person::after {
  right: 4px;
  top: 5px;
  width: 2px;
  height: 18px;
  border-radius: 2px;
  background: #c4b5fd;
  box-shadow: 0 0 8px #c4b5fd;
}

.glyph-tries::before {
  left: 3px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 8px 0 0 currentColor;
}

.glyph-tries::after {
  left: 19px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c4b5fd;
  box-shadow: 0 0 8px #c4b5fd;
}

.glyph-back::before {
  left: 8px;
  top: 13px;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.glyph-back::after {
  left: 6px;
  top: 9px;
  width: 8px;
  height: 8px;
  border-left: 2px solid #c4b5fd;
  border-bottom: 2px solid #c4b5fd;
  transform: rotate(45deg);
}

.glyph-line::before {
  left: 2px;
  right: 2px;
  top: 13px;
  height: 2px;
  border-radius: 2px;
  background-image: linear-gradient(90deg, #67e8f9, #c4b5fd);
}

.glyph-line::after {
  left: 2px;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f4f7fb;
  box-shadow: 0 0 8px #67e8f9;
}

.glyph-speaker::before {
  left: 4px;
  top: 8px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid currentColor;
}

.glyph-speaker::after {
  left: 16px;
  top: 9px;
  width: 8px;
  height: 2px;
  border-radius: 2px;
  background: #c4b5fd;
  box-shadow: 0 8px 0 #c4b5fd;
}

.glyph-quiet::before {
  left: 6px;
  top: 6px;
  width: 3px;
  height: 16px;
  border-radius: 2px;
  background: currentColor;
  transform-origin: center;
  box-shadow: 7px 3px 0 currentColor, 14px 0 0 #c4b5fd;
}

.glyph-rehearse::before,
.glyph-rehearse::after {
  border-radius: 50%;
  border: 1.5px solid currentColor;
}

.glyph-rehearse::before {
  left: 9px;
  top: 9px;
  width: 8px;
  height: 8px;
  background: rgba(103, 232, 249, 0.35);
}

.glyph-rehearse::after {
  left: 4px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-color: #c4b5fd;
}

.glyph-one::before {
  left: 10px;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.glyph-one::after {
  left: 5px;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid #c4b5fd;
}

.glyph-plan::before {
  left: 3px;
  top: 7px;
  width: 22px;
  height: 14px;
  border-radius: 4px;
  border: 1.5px dashed #c4b5fd;
}

.glyph-plan::after {
  left: 7px;
  top: 12px;
  width: 12px;
  height: 3px;
  border-radius: 2px;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.read-rail {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(49, 64, 86, 0.9);
  pointer-events: none;
}

.read-rail-fill {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background-color: #67e8f9;
  background-image: linear-gradient(90deg, #67e8f9, #a5b4fc 55%, #c4b5fd);
  box-shadow: 0 0 10px rgba(122, 231, 255, 0.85);
}

@media (min-width: 720px) {
  .takeaway {
    margin-top: 22px;
    padding: 14px 14px 12px;
  }

  .takeaway-points {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  body.grove .page:has(.takeaway) {
    padding-top: 8px;
    padding-bottom: 40px;
  }

  body.grove .page:has(.takeaway) > h1 {
    font-size: clamp(1.65rem, 7.2vw, 2.15rem);
    max-width: 22ch;
  }

  body.grove .page:has(.takeaway) > .lede {
    margin-top: 8px;
    font-size: 1rem;
  }

  body.grove .page:has(.takeaway) .article-illu,
  body.grove .page:has(.takeaway) .scene-grid {
    margin-top: 14px;
  }

  body.grove .page:has(.takeaway) .prose {
    margin-top: 16px;
    padding: 16px 14px 18px;
    border-radius: 20px;
  }

  body.grove .page:has(.takeaway) .prose p,
  body.grove .page:has(.takeaway) .prose li {
    font-size: 1.02rem;
    line-height: 1.65;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .takeaway-points li {
    animation: take-in 640ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .takeaway-points li:nth-child(2) {
    animation-delay: 80ms;
  }

  .takeaway-points li:nth-child(3) {
    animation-delay: 160ms;
  }

  .glyph-person::before,
  .glyph-speaker::before {
    animation: signal-step 2.6s ease-in-out infinite;
  }

  .glyph-tries::after {
    animation: xp-pulse 2.4s ease-in-out infinite;
  }

  .glyph-back {
    animation: signal-return 2.6s ease-in-out infinite;
  }

  .glyph-line::after {
    animation: signal-run 2.8s ease-in-out infinite;
  }

  .glyph-quiet::before {
    animation: signal-dip 2.4s ease-in-out infinite;
  }

  .glyph-rehearse::after,
  .glyph-one::after {
    animation: live-ring 3.6s ease-in-out infinite;
  }

  .glyph-plan::after {
    animation: signal-glow 2.4s ease-in-out infinite;
  }

  .read-rail-fill {
    transition: transform 140ms linear;
  }
}

@keyframes take-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes signal-step {
  50% { transform: translateX(6px); }
}

@keyframes signal-return {
  50% { transform: translateX(-3px); }
}

@keyframes signal-run {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(14px); }
}

@keyframes signal-dip {
  50% { transform: scaleY(0.55); }
}

@keyframes signal-glow {
  50% { opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
  .takeaway-points li,
  .glyph,
  .glyph::before,
  .glyph::after,
  .read-rail-fill {
    animation: none;
    transition: none;
  }
}

.hero-copy .gen-hud {
  position: static;
  inset: auto;
  max-width: none;
  margin-top: 14px;
  pointer-events: none;
}

.hero-copy .gen-prompt {
  color: var(--ink);
  text-shadow: none;
}

.home-reel {
  position: relative;
  z-index: 2;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border-radius: 18px;
  background: #0d1524;
  border: 1px solid rgba(122, 231, 255, 0.35);
}

.reel-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.reel-sample {
  margin: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: #07131c;
  color: #f4f7fb;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reel-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-width: 48px;
  min-height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background-color: #67e8f9;
  background-image: linear-gradient(115deg, #67e8f9 0%, #a5b4fc 55%, #c4b5fd 100%);
  color: #07131c;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.reel-toggle:focus-visible {
  outline: 3px solid #f4f7fb;
  outline-offset: 3px;
}

.reel-stage {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.reel-card {
  min-width: 0;
  padding: 7px 10px 8px;
  border-radius: 14px;
  background: #151c2e;
  border: 1px solid #314056;
  border-inline-start-width: 3px;
  border-inline-start-color: #67e8f9;
  opacity: 0;
  transform: translateY(8px);
}

.reel-card[data-reel-card="summary"] {
  border-inline-start-color: #c4b5fd;
}

.reel-card[data-reel-card="diagram"] {
  border-inline-start-color: #ffb088;
}

.reel-card.is-shown,
.home-reel.is-still .reel-card {
  opacity: 1;
  transform: none;
}

.reel-kicker {
  margin: 0;
  color: #9ae8ff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.15;
  text-transform: uppercase;
}

.reel-body {
  margin: 2px 0 0;
  color: #f4f7fb;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.reel-flow {
  display: flex;
  gap: 0;
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.reel-step {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #f4f7fb;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  overflow-wrap: anywhere;
}

.reel-step:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 10px;
  inset-inline-start: 50%;
  width: 100%;
  height: 2px;
  background: #314056;
}

.reel-step.is-complete:not(:last-child)::after {
  background: #67e8f9;
}

.reel-mark {
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #7ae7ff;
  background: #0d1524;
  color: #07131c;
  display: grid;
  place-items: center;
}

.reel-step.is-working .reel-mark {
  box-shadow: inset 0 0 0 3px #7ae7ff;
}

.reel-step.is-complete .reel-mark {
  background: #67e8f9;
  border-color: #67e8f9;
}

.reel-check {
  width: 14px;
  height: 14px;
  opacity: 0;
}

.reel-step.is-complete .reel-check {
  opacity: 1;
}

.reel-objective {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin: 8px 0 0;
}

.reel-status {
  color: #f4f7fb;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #9ae8ff;
  background: #0d1524;
}

.reel-status-done {
  display: none;
}

.home-reel.is-done .reel-status-working {
  display: none;
}

.home-reel.is-done .reel-status-done {
  display: inline;
}

.reel-meter {
  flex: 1 1 64px;
  height: 8px;
  min-width: 48px;
  border-radius: 999px;
  background: #243044;
  border: 1px solid #314056;
  overflow: hidden;
}

.reel-meter-fill {
  display: block;
  height: 100%;
  width: 38%;
  border-radius: inherit;
  background: #67e8f9;
}

.home-reel.is-done .reel-meter-fill {
  width: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  .reel-card {
    transition: opacity 420ms ease, transform 520ms cubic-bezier(0.22, 1.2, 0.36, 1);
  }

  .reel-check,
  .reel-meter-fill {
    transition: opacity 280ms ease, width 480ms ease;
  }

  .home-reel.is-paused .reel-card,
  .home-reel.is-paused .reel-check,
  .home-reel.is-paused .reel-meter-fill {
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-reel .reel-card {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .home-reel .reel-check,
  .home-reel .reel-meter-fill,
  .home-reel .reel-card {
    animation: none;
    transition: none;
  }

  .home-reel [data-step="open"] .reel-check,
  .home-reel [data-step="review"] .reel-check {
    opacity: 1;
  }

  .home-reel [data-step="open"] .reel-mark,
  .home-reel [data-step="review"] .reel-mark {
    background: #67e8f9;
    border-color: #67e8f9;
    color: #07131c;
  }

  .home-reel .reel-status-working {
    display: none;
  }

  .home-reel .reel-status-done {
    display: inline;
  }

  .home-reel .reel-meter-fill {
    width: 100%;
  }
}

@media (max-width: 980px) {
  .home-reel {
    gap: 6px;
    padding: 8px;
  }

  .reel-bar {
    min-height: 48px;
    padding-inline-end: 64px;
  }

  .reel-stage {
    gap: 4px;
  }

  .reel-card {
    padding: 4px 8px;
  }

  .reel-card[data-reel-card="diagram"] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 8px;
    row-gap: 4px;
  }

  .reel-flow {
    flex: 1 0 100%;
    margin-top: 0;
  }

  .reel-objective {
    margin-top: 0;
  }
}

/* Explorer mark. One node per public page. Space is reserved by the button box. */
.explore {
  grid-area: explore;
  justify-self: center;
  align-self: center;
  width: 64px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  border: 0;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: #7ae7ff;
  background-color: #12192a;
  background-image: radial-gradient(circle at 50% 40%, rgba(122, 231, 255, 0.28), rgba(18, 25, 42, 0.15) 72%);
  box-shadow: inset 0 0 0 1px rgba(122, 231, 255, 0.5), 0 0 14px rgba(122, 231, 255, 0.22);
  cursor: pointer;
}

.explore-mark {
  width: 56px;
  height: 34px;
  display: block;
}

.explore[dir="rtl"] .explore-mark {
  transform: scaleX(-1);
}

.explore-lines {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.1;
  opacity: 0.4;
}

.explore-node {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  opacity: 0.5;
}

.explore-node.is-lit {
  fill: currentColor;
  stroke: none;
  opacity: 1;
  filter: drop-shadow(0 0 2px currentColor);
}

.explore-beam {
  fill: currentColor;
  opacity: 0;
  pointer-events: none;
}

@media (min-width: 1200px) {
  .topbar:has(.explore) {
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    grid-template-areas: "brand explore clock nav";
  }
}

@media (max-width: 1199px) {
  .topbar:has(.explore) {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "brand clock explore"
      "nav nav nav";
  }

  .topbar:has(.explore) .explore {
    justify-self: end;
    z-index: 2;
  }

  .topbar:has(.explore) .clock,
  .topbar:has(.explore) .nav {
    min-width: 0;
  }

  .topbar:has(.explore) .clock {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .topbar:has(.explore) .nav {
    align-self: start;
  }
}

@media (max-width: 700px) {
  .topbar:has(.explore) {
    grid-template-columns: auto auto minmax(0, 1fr);
    grid-template-areas:
      "brand explore clock"
      "nav nav nav";
  }

  .topbar:has(.explore) .explore {
    justify-self: start;
    z-index: 2;
  }

  .topbar:has(.explore) .clock {
    justify-self: end;
    align-self: center;
  }
}

@media (max-width: 360px) {
  .topbar:has(.explore) {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "brand explore"
      "clock clock"
      "nav nav";
  }
}

body.is-phone .explore {
  display: none;
}

dialog.explore-sheet {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  width: min(440px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  height: fit-content;
  max-height: none;
  overflow: visible;
  inset: auto;
}

.explore-sheet::backdrop {
  background: rgba(6, 10, 18, 0.78);
}

dialog.explore-sheet[open] {
  display: block;
}

.explore-panel {
  max-height: min(78vh, 640px);
  overflow: auto;
  border-radius: 22px;
  padding: 16px 16px 18px;
  background-color: #101726;
  background-image:
    radial-gradient(280px 140px at 0% 0%, rgba(122, 231, 255, 0.2), transparent 70%),
    radial-gradient(240px 140px at 100% 0%, rgba(165, 180, 252, 0.24), transparent 68%);
  box-shadow:
    inset 0 0 0 1px rgba(122, 231, 255, 0.45),
    0 24px 60px rgba(0, 0, 0, 0.45);
}

.explore-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.explore-title {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
}

.explore-status {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.95rem;
}

.explore-done {
  margin-top: 6px;
  color: #dff8ff;
  font-weight: 600;
}

.explore-done[hidden] {
  display: none;
}

.explore-close {
  min-width: 48px;
  min-height: 48px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  box-shadow: inset 0 0 0 1.5px rgba(122, 231, 255, 0.55);
  cursor: pointer;
  flex: none;
}

.explore-cards {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.explore-cards li {
  min-width: 0;
}

.explore-card {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  grid-template-areas:
    "pip name"
    "pip state";
  column-gap: 8px;
  row-gap: 2px;
  align-items: center;
  min-height: 48px;
  padding: 8px 10px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--ink);
  background-color: #151c2c;
  background-image: linear-gradient(150deg, rgba(122, 231, 255, 0.06), rgba(165, 180, 252, 0.08));
  box-shadow: inset 0 0 0 1px rgba(197, 208, 224, 0.32);
}

.explore-card.is-lit {
  background-image: linear-gradient(150deg, rgba(122, 231, 255, 0.34), rgba(165, 180, 252, 0.22) 55%, rgba(196, 181, 253, 0.26));
  box-shadow: inset 0 0 0 1px rgba(122, 231, 255, 0.75), 0 0 16px rgba(122, 231, 255, 0.18);
}

.explore-pip {
  grid-area: pip;
  width: 12px;
  height: 12px;
  box-sizing: border-box;
  border-radius: 50%;
  border: 2px solid #c5d0e0;
  background: transparent;
}

.explore-card.is-lit .explore-pip {
  border-color: #7ae7ff;
  background: #7ae7ff;
  box-shadow: 0 0 8px rgba(122, 231, 255, 0.85);
}

.explore-name {
  grid-area: name;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.explore-state {
  grid-area: state;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  color: #d5deea;
  overflow-wrap: anywhere;
}

.explore-card.is-lit .explore-state {
  color: #f4f7fb;
}

@media (max-width: 700px) {
  dialog.explore-sheet {
    margin-top: auto;
    margin-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    margin-left: auto;
    margin-right: auto;
  }

  body.has-demo-bar dialog.explore-sheet {
    margin-bottom: calc(148px + env(safe-area-inset-bottom, 0px));
  }
}

@media (min-width: 701px) {
  dialog.explore-sheet {
    margin-top: 64px;
    margin-bottom: auto;
    margin-left: auto;
    margin-right: 20px;
  }
}

@media (max-width: 380px) {
  .explore-cards {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .explore.is-sweep .explore-beam {
    animation: explore-sweep 1.4s ease-in-out 1;
  }

  .explore.is-paused .explore-beam {
    animation-play-state: paused;
  }

  .explore-sheet[open] .explore-card.is-next .explore-pip {
    animation: explore-pulse 2.4s ease-in-out infinite;
  }

  .explore-sheet.is-paused .explore-pip {
    animation-play-state: paused;
  }
}

@keyframes explore-sweep {
  0% { transform: translateX(0); opacity: 0; }
  16% { opacity: 0.9; }
  100% { transform: translateX(96px); opacity: 0; }
}

@keyframes explore-pulse {
  0%, 100% { transform: scale(0.92); opacity: 0.55; }
  50% { transform: scale(1.12); opacity: 1; }
}
