/*
 * Vestra Transmissions (vestracorp.com/news)
 * Loaded after /static/css/styles.css and built from its tokens. Deliberately quiet:
 * photos, type and space do the work; one hairline where a divider is really needed.
 */

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

/* A single, gentle fade as the page arrives. */
@media (prefers-reduced-motion: no-preference) {
  .news main {
    animation: news-fade 0.7s var(--ease-out) both;
  }
}

@keyframes news-fade {
  from { opacity: 0; }
}

/* ---------------------------------------------------------------- Nav */

.nav-section {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  min-height: 40px;
  margin-left: -0.35rem;
  font-size: 0.9rem;
  color: var(--ink-2);
  transition: color 0.25s var(--ease-out);
}

.nav-section::before {
  content: "";
  width: 1px;
  height: 1.1rem;
  background: var(--line-2);
}

.nav-section[aria-current="page"],
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

@media (hover: hover) {
  .nav-section:hover { color: var(--ink); }
}

/* ---------------------------------------------------------- Shared */

.sep {
  margin-inline: 0.45rem;
  color: var(--muted);
}

.flag {
  color: var(--signal);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2.1rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.empty {
  padding-block: 2rem;
  color: var(--ink-2);
}

/* --------------------------------------------------------- Page head */

.page-head {
  padding-top: calc(var(--nav-h) + clamp(3rem, 2rem + 5vw, 6.5rem));
  padding-bottom: clamp(2rem, 1.5rem + 2.5vw, 4rem);
}

.page-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 1.5rem + 4.2vw, 5.25rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.page-lede {
  margin-top: 0.9rem;
  font-size: clamp(1.06rem, 1rem + 0.3vw, 1.25rem);
  color: var(--ink-2);
}

/* ------------------------------------------------------------ Stories */

.story {
  position: relative;
}

.story-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: clamp(12px, 0.6rem + 0.6vw, 18px);
  background: #0d0f13;
  /* Keeps the rounded corners while the photo scales inside (Safari). */
  isolation: isolate;
}

.story-media img,
.post-cover-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-media img {
  transition: transform 1s var(--ease-out), opacity 0.5s var(--ease-out);
}

/* Until a photo is added: a plain, dark, neutral block. */
.story-media.is-empty {
  background: linear-gradient(160deg, #191c22 0%, #101215 55%, #0b0c0e 100%);
}

.story-meta {
  margin-top: 1.1rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.story-title {
  margin-top: 0.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 1.12rem + 0.45vw, 1.5rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.story-title a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.3s var(--ease-out);
}

/* The whole story is clickable: the title link is stretched over it. */
.story-title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.story-title a:focus-visible {
  outline: none;
}

.story:has(.story-title a:focus-visible) .story-media {
  outline: 2px solid var(--signal);
  outline-offset: 4px;
}

.story-arrow {
  display: inline-block;
  width: 0.8em;
  height: 0.8em;
  margin-left: 0.3em;
  vertical-align: -0.02em;
  opacity: 0;
  transform: translateX(-0.35em);
  transition: opacity 0.35s var(--ease-out), transform 0.45s var(--ease-out);
}

.story-summary {
  display: -webkit-box;
  margin-top: 0.55rem;
  overflow: hidden;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-2);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-wrap: pretty;
}

@media (hover: hover) {
  .story:hover .story-media img { transform: scale(1.035); }
  .story:hover .story-title a { text-decoration-color: var(--line-2); }
  .story:hover .story-arrow { opacity: 1; transform: none; }
}

.story:has(.story-title a:focus-visible) .story-arrow {
  opacity: 1;
  transform: none;
}

/* ---------------------------------------------------- Featured carousel */

.page-head-index {
  padding-top: calc(var(--nav-h) + clamp(2.5rem, 1.5rem + 4vw, 5rem));
  padding-bottom: clamp(1.75rem, 1.25rem + 2vw, 3rem);
}

.featured {
  padding-bottom: clamp(0.5rem, 0.25rem + 1vw, 1rem);
}

/* A row of slides that scrolls sideways inside itself (swipe, trackpad, keyboard), bleeding to
   the screen edge so the next slide peeks in on phones. Works without JavaScript. */
.fc-track {
  display: flex;
  gap: var(--col-gap);
  margin-inline: calc(-1 * var(--gutter));
  padding-inline: var(--gutter);
  scroll-padding-inline: var(--gutter);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}

.js .fc-track {
  scrollbar-width: none;
}

.js .fc-track::-webkit-scrollbar {
  display: none;
}

.fc-slide {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
}

.is-carousel .fc-slide {
  flex-basis: 88%;
}

@media (min-width: 760px) {
  .is-carousel .fc-slide { flex-basis: 100%; }
  .fc-track { margin-inline: 0; padding-inline: 0; scroll-padding-inline: 0; }
}

.fc-media {
  border-radius: clamp(14px, 0.7rem + 0.8vw, 22px);
}

@media (min-width: 760px) {
  .fc-media { aspect-ratio: 2.15 / 1; }
}

.is-carousel .fc-slide:not(.is-active) .fc-media img {
  opacity: 0.5;
}

.fc-text {
  display: grid;
  gap: 0.85rem;
  margin-top: clamp(1.25rem, 1rem + 1vw, 1.9rem);
}

.fc-title {
  margin-top: 0;
  font-size: clamp(1.85rem, 1.2rem + 2.3vw, 3.25rem);
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.fc-summary {
  max-width: 34rem;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}

.fc-side .story-meta {
  margin-top: 0.75rem;
}

/* Wide screens: the words sit on the photo, so the whole story fits the first screen. */
@media (min-width: 960px) {
  .fc-story { display: grid; }
  .fc-media { grid-area: 1 / 1; aspect-ratio: 2.25 / 1; }
  .fc-text {
    grid-area: 1 / 1;
    align-self: end;
    z-index: 1;
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    column-gap: clamp(2rem, 1rem + 3vw, 4.5rem);
    align-items: end;
    margin: 0;
    padding: clamp(5rem, 3rem + 6vw, 9rem) clamp(1.75rem, 1rem + 2vw, 3rem) clamp(1.75rem, 1rem + 1.6vw, 2.75rem);
    border-radius: 0 0 clamp(14px, 0.7rem + 0.8vw, 22px) clamp(14px, 0.7rem + 0.8vw, 22px);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.62) 50%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
  }
  .fc-title a { pointer-events: auto; }
  .fc-title { color: #fff; text-shadow: 0 1px 24px rgba(0, 0, 0, 0.35); }
  .fc-summary { color: rgba(255, 255, 255, 0.86); }
  .fc-side .story-meta { color: rgba(255, 255, 255, 0.7); }
}

.fc-controls {
  display: none;
}

.js .fc-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(1.25rem, 1rem + 1vw, 2rem);
}

.fc-dots {
  display: flex;
  align-items: center;
}

.fc-dot {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
}

.fc-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--line-2);
  transition: width 0.5s var(--ease-expo), background-color 0.3s var(--ease-out);
}

.fc-dot[aria-current="true"]::before {
  width: 22px;
  background: var(--ink);
}

.fc-arrows {
  display: flex;
  gap: 0.6rem;
}

.fc-arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--ink);
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out), border-color 0.25s var(--ease-out), opacity 0.25s var(--ease-out);
}

.fc-arrow[aria-disabled="true"] {
  opacity: 0.3;
  cursor: default;
}

@media (hover: hover) {
  .fc-dot:hover::before { background: var(--ink-2); }
  .fc-dot[aria-current="true"]:hover::before { background: var(--ink); }
  .fc-arrow:not([aria-disabled="true"]):hover { background: var(--ink); border-color: var(--ink); color: #000; }
}

/* ------------------------------------------------------- Changelog strip */

.cl-strip {
  padding-top: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);
}

.cl-strip-list {
  display: grid;
  gap: 0 var(--col-gap);
}

@media (min-width: 760px) {
  .cl-strip-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.cl-strip-link {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  height: 100%;
  padding-block: 1.15rem 1.35rem;
  border-top: 1px solid var(--line-2);
  transition: border-color 0.35s var(--ease-out);
}

.cl-strip-meta {
  font-size: 0.85rem;
  color: var(--muted);
}

.cl-strip-title {
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: pretty;
  transition: color 0.25s var(--ease-out);
}

@media (hover: hover) {
  .cl-strip-link:hover { border-color: var(--ink-2); }
  .cl-strip-link:hover .cl-strip-title { color: var(--signal); }
}

/* --------------------------------------------------------- All stories */

.latest {
  padding-top: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);
  padding-bottom: clamp(3rem, 2rem + 3vw, 5rem);
}

.latest-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: clamp(1.25rem, 1rem + 1.25vw, 2.25rem);
}

.list-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  min-width: 0;
}

@media (max-width: 759px) {
  .list-tools { width: 100%; }
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 2rem + 2vw, 3.75rem) clamp(1.25rem, 1rem + 1.5vw, 2.25rem);
}

@media (min-width: 760px) {
  .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
  .story-grid.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

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

/* Category filter: quiet pills (shown with JavaScript only). */
.tabs {
  display: none;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.js .tabs {
  display: flex;
}

/* Phones: one row of pills that scrolls sideways, rather than a wrapping block. */
@media (max-width: 759px) {
  .js .tabs {
    flex-wrap: nowrap;
    width: calc(100% + 2 * var(--gutter));
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    overflow-x: auto;
    scrollbar-width: none;
  }
  .js .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; }
}

.tab {
  min-height: 36px;
  padding: 0 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--ink-2);
  transition: color 0.25s var(--ease-out), background-color 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}

.tab[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: #000;
}

@media (hover: hover) {
  .tab:hover { border-color: var(--line-2); color: var(--ink); }
  .tab[aria-pressed="true"]:hover { color: #000; border-color: var(--ink); }
}

/* Instant search (JavaScript only). */
.search {
  display: none;
}

.js .search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 13rem;
  max-width: 17rem;
  min-height: 40px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

@media (max-width: 759px) {
  .js .search { max-width: none; }
}

.search .ico {
  position: absolute;
  left: 0.85rem;
  color: var(--muted);
  pointer-events: none;
}

.search input {
  width: 100%;
  min-height: 38px;
  padding: 0 1rem 0 2.35rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  outline: none;
}

.search input::placeholder {
  color: var(--muted);
}

.search:focus-within {
  border-color: var(--signal);
  box-shadow: 0 0 0 3px rgba(var(--glow), 0.18);
}

.text-link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 0.2em;
}

/* --------------------------------------------------------------- Post */

.post-head,
.post-main {
  width: 100%;
  max-width: calc(680px + 2 * var(--gutter));
  margin-inline: auto;
}

.post-main {
  max-width: 680px;
  min-width: 0;
}

.post-head {
  padding-top: calc(var(--nav-h) + clamp(3rem, 2rem + 5vw, 6.5rem));
}

.post-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 1.4rem + 3.2vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -0.042em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.post-meta {
  margin-top: 1.1rem;
  font-size: 0.94rem;
  color: var(--muted);
}

.post-cover {
  margin-top: clamp(2.25rem, 1.75rem + 2.5vw, 4rem);
}

.post-cover-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: clamp(14px, 0.7rem + 1vw, 24px);
  background: #0d0f13;
}

.post-layout {
  display: grid;
  margin-top: clamp(2.5rem, 2rem + 2.5vw, 4.5rem);
}

.toc {
  display: none;
}

@media (min-width: 1180px) {
  .post-layout.has-toc {
    grid-template-columns: minmax(0, 1fr) minmax(0, 680px) minmax(0, 1fr);
    column-gap: clamp(2rem, 4vw, 4rem);
  }
  .has-toc .post-main {
    grid-column: 2;
    margin-inline: 0;
  }
  .toc {
    display: block;
    grid-column: 1;
    grid-row: 1;
    justify-self: end;
    align-self: start;
    position: sticky;
    top: calc(var(--nav-h) + 2.5rem);
    width: min(100%, 13rem);
  }
  .toc ol { display: grid; gap: 0.15rem; }
  .toc a {
    display: block;
    padding-block: 0.3rem;
    font-size: 0.86rem;
    line-height: 1.4;
    color: var(--muted);
    transition: color 0.25s var(--ease-out);
  }
  .toc a.is-active,
  .toc a:hover { color: var(--ink); }
}

/* -------------------------------------------------------------- Prose */

.prose {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink-2);
  overflow-wrap: break-word;
}

.prose > * + * {
  margin-top: 1.25em;
}

.prose > p:first-child {
  font-size: clamp(1.15rem, 1.05rem + 0.35vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink);
}

.prose h2,
.prose h3 {
  position: relative;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  text-wrap: balance;
  scroll-margin-top: calc(var(--nav-h) + 1.5rem);
}

.prose h2 {
  margin-top: 2.1em;
  font-size: clamp(1.45rem, 1.25rem + 0.8vw, 1.85rem);
  line-height: 1.15;
  letter-spacing: -0.028em;
}

.prose h3 {
  margin-top: 1.8em;
  font-size: clamp(1.15rem, 1.08rem + 0.3vw, 1.3rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.prose h2 + *,
.prose h3 + * {
  margin-top: 0.6em;
}

.prose .anchor {
  position: absolute;
  right: 100%;
  padding-right: 0.45em;
  color: var(--muted);
  font-weight: 400;
  opacity: 0;
  transition: opacity 0.25s var(--ease-out);
}

@media (hover: hover) and (min-width: 820px) {
  .prose h2:hover .anchor,
  .prose h3:hover .anchor { opacity: 1; }
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.prose a:not(.anchor),
.cl-body a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: text-decoration-color 0.25s var(--ease-out);
}

@media (hover: hover) {
  .prose a:not(.anchor):hover,
  .cl-body a:hover { text-decoration-color: var(--ink-2); }
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }

.prose li + li {
  margin-top: 0.55em;
}

.prose li::marker {
  color: var(--muted);
}

.prose blockquote {
  padding-left: 1.25rem;
  border-left: 2px solid var(--line-2);
  color: var(--ink);
}

.prose code,
.cl-body code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: var(--ink);
}

.prose pre {
  overflow-x: auto;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  background: var(--surface);
  font-size: 0.86rem;
  line-height: 1.65;
}

.prose hr {
  height: 1px;
  margin-block: 2.5em;
  border: 0;
  background: var(--line);
}

.prose img {
  height: auto;
  border-radius: 12px;
}

.prose figcaption {
  margin-top: 0.7rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.prose th,
.prose td {
  padding: 0.65rem 0.9rem 0.65rem 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose th {
  font-weight: 600;
  color: var(--ink);
}

/* End of a post: who wrote it, and one way to pass it on. */
.post-end {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-top: clamp(3rem, 2.5rem + 2vw, 4.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}

.post-share {
  display: flex;
  gap: 1.5rem;
}

.text-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.9rem;
  color: var(--ink-2);
  transition: color 0.25s var(--ease-out);
}

button.text-btn {
  display: none;
}

.js button.text-btn {
  display: inline-flex;
}

.text-btn.is-done {
  color: var(--ink);
}

@media (hover: hover) {
  .text-btn:hover { color: var(--ink); }
}

.related {
  padding-top: clamp(4.5rem, 3.5rem + 4vw, 8rem);
}

/* ---------------------------------------------------------- Changelog */

.cl {
  padding-bottom: clamp(3rem, 2rem + 3vw, 5rem);
}

.cl-day {
  display: grid;
  gap: 1.25rem;
  padding-block: clamp(2rem, 1.5rem + 2vw, 3.25rem);
  border-top: 1px solid var(--line);
}

.cl-date {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-2);
}

.cl-entries {
  display: grid;
  gap: clamp(2rem, 1.5rem + 1.5vw, 2.75rem);
}

.cl-entry {
  scroll-margin-top: calc(var(--nav-h) + 1.5rem);
}

.cl-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 1.1rem + 0.45vw, 1.45rem);
  line-height: 1.2;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

.cl-title a {
  transition: color 0.25s var(--ease-out);
}

.cl-entry:target .cl-title a {
  color: var(--signal);
}

.cl-meta {
  margin-top: 0.3rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.cl-body {
  max-width: 40rem;
  margin-top: 0.7rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-2);
}

.cl-body > * + * {
  margin-top: 0.8em;
}

@media (min-width: 900px) {
  .cl-day {
    grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
    column-gap: var(--col-gap);
  }
  .cl-date {
    position: sticky;
    top: calc(var(--nav-h) + 1.5rem);
    align-self: start;
    padding-top: 0.2rem;
  }
}

@media (hover: hover) {
  .cl-title a:hover { color: var(--signal); }
}

/* ------------------------------------------------------------- Launch */

.launch-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-start;
  min-height: min(100svh, 64rem);
  padding-top: calc(var(--nav-h) + clamp(3.5rem, 2rem + 8vh, 7rem));
  padding-bottom: clamp(3rem, 2rem + 6vh, 6rem);
  overflow: clip;
  text-align: center;
}

@media (min-width: 760px) {
  .launch-hero {
    align-items: center;
    padding-top: var(--nav-h);
    padding-bottom: 14vh;
  }
}

.launch-hero.is-plain {
  min-height: 0;
  padding-top: calc(var(--nav-h) + clamp(4rem, 3rem + 6vw, 8rem));
}

.launch-hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #02040a;
}

.launch-hero-media img,
.launch-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Legibility: darken under the nav and blend the bottom edge into the page. */
.launch-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 22%),
    linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.35) 22%, rgba(0, 0, 0, 0) 45%);
}

.launch-hero-copy {
  position: relative;
}

.launch-title {
  max-width: 13em;
  margin-inline: auto;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.7rem, 1.2rem + 6.4vw, 6.75rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.launch-dek {
  max-width: 34rem;
  margin: clamp(1.1rem, 0.9rem + 1vw, 1.75rem) auto 0;
  font-size: clamp(1.06rem, 0.98rem + 0.4vw, 1.35rem);
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}

.launch-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
}

.launch-ctas .btn-ghost {
  background: rgba(0, 0, 0, 0.25);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.launch-meta {
  margin-top: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
  font-size: 0.875rem;
  color: var(--muted);
}

.launch-video-toggle {
  display: none;
}

.js .launch-video-toggle.is-ready {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(1.25rem, 1rem + 1vw, 2rem);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--ink);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.launch-video-toggle svg { width: 14px; height: 14px; }
.launch-video-toggle .when-paused,
.launch-video-toggle[aria-pressed="true"] .when-playing { display: none; }
.launch-video-toggle[aria-pressed="true"] .when-paused { display: inline; }

/* Section nav: sticks under the site nav once the hero has scrolled away. */
.launch-nav {
  position: sticky;
  top: var(--nav-h);
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
}

.launch-nav-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 52px;
}

.launch-nav-list {
  display: flex;
  flex: 1;
  gap: 0.15rem;
  min-width: 0;
  margin-inline: -0.75rem;
  padding-inline: 0.75rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 0.75rem, #000 calc(100% - 2rem), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 0.75rem, #000 calc(100% - 2rem), transparent 100%);
}

.launch-nav-list::-webkit-scrollbar {
  display: none;
}

.launch-nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 0.8rem;
  border-radius: 999px;
  font-size: 0.86rem;
  white-space: nowrap;
  color: var(--muted);
  transition: color 0.3s var(--ease-out), background-color 0.3s var(--ease-out);
}

.launch-nav-list a.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.launch-nav-list a:focus-visible {
  outline-offset: -2px;
}

.launch-nav-cta {
  display: none;
}

@media (min-width: 900px) {
  .launch-nav-cta {
    display: inline-flex;
    align-items: center;
    flex: none;
    min-height: 34px;
    padding: 0 1rem;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 0.86rem;
    font-weight: 600;
    transition: background-color 0.25s var(--ease-out);
  }
}

@media (hover: hover) {
  .launch-nav-list a:hover { color: var(--ink); }
  .launch-nav-cta:hover { background: var(--accent-hover); }
}

/* Body: a 680px reading column; components marked .c-wide get up to 1080px. */
.launch-body {
  padding: clamp(3.5rem, 2.5rem + 4vw, 7rem) var(--gutter) 0;
}

.prose-launch > .launch-section > *,
.launch-end {
  max-width: 680px;
  margin-inline: auto;
}

.prose-launch > .launch-section > .c-wide {
  max-width: 1080px;
}

.prose-launch > .launch-section > * + * {
  margin-top: 1.25em;
}

.prose-launch .launch-section + .launch-section {
  margin-top: clamp(4.5rem, 3rem + 5vw, 8.5rem);
}

.prose-launch h2 {
  margin-top: 0;
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: -0.042em;
  scroll-margin-top: calc(var(--nav-h) + 52px + 1.5rem);
}

.prose-launch h2 + * {
  margin-top: 1rem;
}

.prose-launch .launch-intro > p:first-of-type {
  font-size: clamp(1.15rem, 1.05rem + 0.45vw, 1.4rem);
  line-height: 1.55;
  color: var(--ink);
}

.prose-launch .launch-section > .c {
  margin-top: clamp(2rem, 1.5rem + 2vw, 3.25rem);
}

.prose-launch .launch-section > .c + p {
  margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);
}

.news-launch .post-end {
  margin-top: clamp(4.5rem, 3rem + 5vw, 8rem);
}

/* --------------------------------------------------------- Components */

.c-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--muted);
}

/* Stats */
.c-stats-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.25rem var(--col-gap);
}

@media (min-width: 900px) {
  .c-stats-list[data-n="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .c-stats-list[data-n="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.c-stats-list[data-n="1"] { grid-template-columns: minmax(0, 1fr); }

.c-stat {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-2);
}

.c-stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 1.5rem + 3vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--ink);
  white-space: nowrap;
}

.c-stat-label {
  max-width: 16rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--ink-2);
}

/* Shared segmented control (benchmark metrics, tabbed examples). Built by news.js. */
.c-seg {
  position: relative;
  display: inline-flex;
  max-width: 100%;
  padding: 4px;
  gap: 2px;
  overflow-x: auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  scrollbar-width: none;
}

.c-seg::-webkit-scrollbar {
  display: none;
}

.c-seg-btn {
  position: relative;
  z-index: 1;
  flex: none;
  min-height: 34px;
  padding: 0 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--ink-2);
  transition: color 0.35s var(--ease-out);
}

.c-seg-btn[aria-selected="true"] {
  color: #000;
}

.c-seg-btn:focus-visible {
  outline-offset: 0;
  border-radius: 999px;
}

.c-seg-ind {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 0;
  border-radius: 999px;
  background: var(--ink);
  transition: transform 0.5s var(--ease-expo), width 0.5s var(--ease-expo);
}

@media (hover: hover) {
  .c-seg-btn:not([aria-selected="true"]):hover { color: var(--ink); }
}

/* Benchmark */
.c-bench {
  padding: clamp(1.25rem, 0.9rem + 2vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: clamp(16px, 0.8rem + 1vw, 24px);
  background: var(--surface);
  --bar-ours: #3d7bff;
  --bar-other: #5f6672;
}

.c-bench-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
}

.c-bench-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
}

.c-bench-metric {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.c-bench-panel + .c-bench-panel {
  margin-top: 2.25rem;
}

.c-bench.is-live .c-bench-panel + .c-bench-panel {
  margin-top: 0;
}

.c-bench.is-live .c-bench-metric {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.c-bars {
  display: grid;
  gap: 0.85rem;
}

.c-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name value" "track track";
  align-items: center;
  gap: 0.4rem 1rem;
  transition: opacity 0.3s var(--ease-out);
}

@media (min-width: 640px) {
  .c-bar {
    grid-template-columns: minmax(6rem, 10rem) minmax(0, 1fr) 4.25rem;
    grid-template-areas: "name track value";
  }
}

.c-bar-name {
  grid-area: name;
  font-size: 0.92rem;
  color: var(--ink-2);
}

.c-bar-track {
  grid-area: track;
  display: block;
  height: 22px;
  border-left: 1px solid var(--line-2);
}

.c-bar-fill {
  display: block;
  width: calc(var(--v) * 100%);
  height: 100%;
  border-radius: 0 4px 4px 0;
  background: var(--bar-other);
  transition: width 0.8s var(--ease-expo);
}

.c-bar.is-ours .c-bar-fill {
  background: var(--bar-ours);
}

.c-bench.is-pending .c-bar-fill {
  width: 0;
}

.c-bar-value {
  grid-area: value;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--ink-2);
}

.c-bar.is-ours .c-bar-name,
.c-bar.is-ours .c-bar-value {
  font-weight: 600;
  color: var(--ink);
}

@media (hover: hover) {
  .c-bars:hover .c-bar:not(:hover) { opacity: 0.45; }
}

details.c-bench-table {
  margin-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.c-bench-table summary,
.c-disclosure {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  font-size: 0.875rem;
  color: var(--ink-2);
  cursor: pointer;
  list-style: none;
  transition: color 0.25s var(--ease-out);
}

.c-bench-table summary::-webkit-details-marker {
  display: none;
}

.c-bench-table summary::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  margin-top: -0.2rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease-out);
}

.c-bench-table[open] summary::after {
  margin-top: 0.2rem;
  transform: rotate(-135deg);
}

@media (hover: hover) {
  .c-bench-table summary:hover { color: var(--ink); }
}

.c-bench-tbl,
.c-pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.c-bench-tbl th,
.c-bench-tbl td {
  padding: 0.6rem 1rem 0.6rem 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.c-bench-tbl td {
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}

.c-bench-tbl thead th {
  font-weight: 500;
  color: var(--muted);
}

/* Tabbed examples */
.c-tabs .c-seg {
  margin-bottom: 1.25rem;
}

.c-tabpanel + .c-tabpanel {
  margin-top: 2rem;
}

.c-tabs.is-live .c-tabpanel + .c-tabpanel {
  margin-top: 0;
}

.c-tabpanel-title {
  margin-bottom: 0.9rem;
  font-family: var(--font-text);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink);
}

.c-tabs.is-live .c-tabpanel-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.c-tabpanel:focus-visible {
  outline-offset: 6px;
  border-radius: 20px;
}

@media (prefers-reduced-motion: no-preference) {
  .c-tabs.is-live .c-tabpanel:not([hidden]),
  .c-bench.is-live .c-bench-panel:not([hidden]) .c-bar-value {
    animation: c-in 0.45s var(--ease-out) both;
  }
}

@keyframes c-in {
  from { opacity: 0; transform: translateY(6px); }
}

.c-chat,
.c-tab-body {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.1rem, 0.8rem + 1.6vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.c-chat-prompt {
  justify-self: end;
  max-width: min(88%, 32rem);
  padding: 0.75rem 1.05rem;
  border-radius: 18px 18px 6px 18px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.55;
}

.c-chat-response {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-2);
}

.c-chat-response > * + *,
.c-tab-body > * + *,
.c-chat-prompt > * + * {
  margin-top: 0.8em;
}

/* Before / after */
.c-compare-frame {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .c-compare-frame { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.c-compare-pane {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #0d0f13;
}

.c-compare-pane img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.c-compare-tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.c-compare.is-live .c-compare-frame {
  position: relative;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  border-radius: clamp(16px, 0.8rem + 1vw, 24px);
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.c-compare.is-live .c-compare-pane {
  grid-area: 1 / 1;
  border-radius: 0;
}

.c-compare.is-live .is-after {
  clip-path: inset(0 0 0 var(--pos, 50%));
}

.c-compare.is-live .is-after .c-compare-tag {
  left: auto;
  right: 0.75rem;
}

.c-compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos, 50%);
  width: 2px;
  margin-left: -1px;
  background: rgba(255, 255, 255, 0.9);
  pointer-events: none;
}

.c-compare-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #000;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease-out);
}

.c-compare-knob svg {
  width: 20px;
  height: 20px;
}

.c-compare-frame.is-dragging .c-compare-knob {
  transform: translate(-50%, -50%) scale(0.92);
}

.c-compare-frame:has(.c-compare-range:focus-visible) .c-compare-knob {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

/* Gallery + lightbox */
.c-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.6rem, 0.4rem + 0.8vw, 1rem);
}

@media (min-width: 900px) {
  .c-gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .c-gallery-grid[data-n="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .c-gallery-grid[data-n="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.c-gallery-link {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  background: #0d0f13;
  cursor: zoom-in;
  isolation: isolate;
}

.c-gallery-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out), opacity 0.4s var(--ease-out);
}

.c-gallery-cap {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
}

@media (hover: hover) {
  .c-gallery-link:hover img { transform: scale(1.04); }
}

.lb {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: clamp(3.75rem, 3rem + 3vw, 5rem) clamp(0.75rem, 0.5rem + 4vw, 6rem);
  border: 0;
  background: rgba(0, 0, 0, 0.9);
  color: var(--ink);
}

.lb[open] {
  display: grid;
  place-items: center;
}

.lb::backdrop {
  background: rgba(0, 0, 0, 0.5);
}

.lb-figure {
  display: grid;
  justify-items: center;
  gap: 0.8rem;
  max-width: 100%;
}

.lb-img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100svh - 10rem);
  border-radius: 12px;
}

.lb-cap {
  font-size: 0.875rem;
  color: var(--ink-2);
  text-align: center;
}

.lb-btn {
  position: fixed;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(20, 23, 28, 0.8);
  color: var(--ink);
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
}

.lb-btn svg {
  width: 16px;
  height: 16px;
}

.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

@media (max-width: 759px) {
  .lb-prev,
  .lb-next { top: auto; bottom: 1rem; transform: none; }
}

.lb-count {
  position: fixed;
  top: 1.6rem;
  left: 1.25rem;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

@media (hover: hover) {
  .lb-btn:hover { background: var(--ink); color: #000; }
}

@media (prefers-reduced-motion: no-preference) {
  .lb[open] .lb-figure { animation: lb-in 0.4s var(--ease-out) both; }
}

@keyframes lb-in {
  from { opacity: 0; transform: scale(0.97); }
}

html.lb-open {
  overflow: hidden;
}

/* Pricing / availability */
.c-pricing-table th,
.c-pricing-table td {
  padding: 1rem 1rem 1rem 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.c-pricing-table thead th {
  padding-top: 0;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
}

.c-pricing-table tbody th {
  font-weight: 600;
  color: var(--ink);
}

.c-pricing-table td {
  color: var(--ink-2);
}

.c-pricing-table tr.is-highlight > * {
  background: rgba(37, 99, 235, 0.1);
}

.c-pricing-table tr.is-highlight > :first-child {
  padding-left: 1rem;
  box-shadow: inset 2px 0 0 var(--accent);
}

.c-pricing-table tbody tr:not(.is-highlight) > :first-child {
  padding-left: 1rem;
}

.c-pricing-table thead th:first-child {
  padding-left: 1rem;
}

@media (max-width: 719px) {
  .c-pricing-table,
  .c-pricing-table tbody,
  .c-pricing-table tr,
  .c-pricing-table th,
  .c-pricing-table td {
    display: block;
  }
  .c-pricing-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .c-pricing-table tr {
    padding: 1rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: 16px;
  }
  .c-pricing-table tr + tr { margin-top: 0.75rem; }
  .c-pricing-table tr.is-highlight { border-color: rgba(61, 123, 255, 0.55); background: rgba(37, 99, 235, 0.1); }
  .c-pricing-table tr.is-highlight > * { background: none; }
  .c-pricing-table tbody th,
  .c-pricing-table tbody tr > :first-child,
  .c-pricing-table tr.is-highlight > :first-child {
    padding: 0 0 0.5rem;
    border: 0;
    box-shadow: none;
    font-size: 1.05rem;
  }
  .c-pricing-table td {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.4rem 0;
    border: 0;
    text-align: right;
  }
  .c-pricing-table td::before {
    content: attr(data-label);
    color: var(--muted);
    text-align: left;
  }
}

/* Pull quote */
.prose-launch > .launch-section > .c-quote {
  max-width: 880px;
}

.c-quote blockquote {
  padding: 0;
  border: 0;
}

.c-quote blockquote p {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 1.1rem + 2vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.032em;
  color: var(--ink);
  text-wrap: balance;
}

.c-quote figcaption {
  margin-top: 1.25rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.c-quote figcaption::before {
  content: "— ";
}

/* Callout */
.c-callout {
  display: flex;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  font-size: 0.95rem;
  line-height: 1.6;
}

.c-callout-icon {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 0.1rem;
  color: var(--signal);
}

.c-callout.is-warning {
  border-color: rgba(245, 180, 84, 0.3);
  background: rgba(245, 180, 84, 0.06);
}

.c-callout.is-warning .c-callout-icon {
  color: #f5b454;
}

.c-callout-title {
  font-weight: 600;
  color: var(--ink);
}

.c-callout-body {
  min-width: 0;
}

.c-callout-body > * + * {
  margin-top: 0.3rem;
}

/* ------------------------------------------------------------- Motion */

/* Gentle reveal, once (news.js adds .rv only below the fold and only without reduced motion). */
.rv {
  opacity: 0;
  transform: translateY(12px);
}

.rv.rv-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s var(--ease-out), transform 0.9s var(--ease-out);
}

@media print {
  .rv { opacity: 1 !important; transform: none !important; }
}

/* Components sit inside .prose; undo the prose list and heading rules where they don't apply. */
.prose .c-stats-list,
.prose .c-bars,
.prose .c-gallery-grid {
  padding-left: 0;
  list-style: none;
}

.prose .c-stats-list > li + li,
.prose .c-bars > li + li,
.prose .c-gallery-grid > li + li {
  margin-top: 0;
}

.prose .c-tabs .c-tabpanel-title {
  margin-top: 0;
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.4;
  letter-spacing: 0;
}

.prose .c figcaption.c-note {
  margin-top: 1rem;
}

/* ------------------------------------------------- Launch: galaxy hero */

/* A fixed backdrop behind the whole page; launch-scene.js draws into it. Without WebGL (or with
   reduced motion) it stays a quiet navy gradient and the hero shows a still frame instead. */
.scene-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 75% at 50% 30%, #0b1630 0%, #060c1a 42%, #020409 78%, #000 100%);
}

.scene-bg canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.4s var(--ease-out);
}

.scene-bg.is-ready canvas {
  opacity: 1;
}

.news-scene main,
.news-scene .footer {
  position: relative;
  z-index: 1;
}

.scene {
  position: relative;
}

.scene-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: var(--nav-h) var(--gutter) 0;
  overflow: clip;
}

.scene-still {
  position: absolute;
  inset: 0;
  z-index: -1;
  transition: opacity 1.2s var(--ease-out);
}

.scene-still img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scene-still::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0) 30%);
}

.scene-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-areas: "left num right";
  align-items: center;
  width: 100%;
  max-width: calc(var(--max) - 2 * var(--gutter));
  font-family: var(--font-text);
  font-weight: 500;
  font-size: clamp(2rem, 1.2rem + 3vw, 3.75rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

.scene-word {
  display: block;
  will-change: transform, opacity;
}

.scene-word.is-left { grid-area: left; justify-self: start; }
.scene-word.is-right { grid-area: right; justify-self: end; }

.scene-num {
  grid-area: num;
  padding-inline: 0.15em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(6.5rem, 2rem + 17vw, 15rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  text-shadow: 0 0 40px rgba(var(--glow), 0.35);
}

@media (max-width: 759px) {
  .scene-title {
    grid-template-columns: auto auto;
    grid-template-areas: "left right" "num num";
    justify-content: center;
    column-gap: 0.28em;
    row-gap: 0.3em;
    font-size: clamp(1.9rem, 1.2rem + 3vw, 2.4rem);
  }
  .scene-word.is-left,
  .scene-word.is-right { justify-self: center; }
  .scene-num { justify-self: center; font-size: clamp(8rem, 4rem + 18vw, 11rem); }
}

.scene-line {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(3rem, 10vh, 8rem);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 1.1rem + 2.4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-align: center;
  text-wrap: balance;
}

.scene-cue {
  display: none;
}

/* With the WebGL scene running: a long scroll with the stage pinned, the number drawn in light. */
.scene.is-sequence {
  height: 290vh;
}

.scene.is-sequence .scene-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 0;
}

.scene.is-sequence .scene-line {
  opacity: 0;
  visibility: hidden;
}

.scene.is-live .scene-still {
  opacity: 0;
}

.scene.is-sequence .scene-num {
  color: transparent;
  text-shadow: none;
}

.scene.is-sequence .scene-cue {
  position: absolute;
  bottom: clamp(1.5rem, 4vh, 2.5rem);
  left: 50%;
  display: block;
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.7));
}

@media (prefers-reduced-motion: no-preference) {
  .scene.is-sequence .scene-cue { animation: cue 2.4s var(--ease-out) infinite; transform-origin: top; }
}

@keyframes cue {
  0% { transform: scaleY(0); opacity: 0; }
  40% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

.scene-intro {
  padding-top: clamp(2.5rem, 2rem + 3vw, 5rem);
  padding-bottom: clamp(3rem, 2rem + 4vw, 6rem);
  text-align: center;
}

.scene-intro .launch-dek {
  margin-top: 0;
  max-width: 38rem;
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem);
  color: var(--ink);
}

.news-scene .launch-nav {
  background: rgba(2, 4, 10, 0.7);
}

.news-scene .launch-body {
  padding-top: clamp(3rem, 2rem + 3vw, 5.5rem);
}

/* Cards on the starfield need a little more body. */
.news-scene .c-bench,
.news-scene .c-chat,
.news-scene .c-answer,
.news-scene .c-callout {
  background: rgba(10, 13, 20, 0.82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* ----------------------------------------- Answers (same question, two) */

.c-answers-q {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.c-answers-label {
  font-size: 0.8rem;
  color: var(--muted);
}

.c-answers-question {
  justify-self: start;
  max-width: 40rem;
  padding: 0.8rem 1.1rem;
  border-radius: 18px 18px 18px 6px;
  background: var(--surface-2);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
}

.c-answers-grid {
  display: grid;
  gap: 0.9rem;
}

@media (min-width: 820px) {
  .c-answers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.c-answer {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(1.1rem, 0.9rem + 1vw, 1.6rem);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.c-answer.is-ours {
  border-color: rgba(61, 123, 255, 0.45);
}

.c-answer-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
}

.prose .c-answer-name {
  margin: 0;
  font-family: var(--font-text);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink);
}

.c-answer-count {
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  white-space: nowrap;
}

.c-answer.is-ours .c-answer-count {
  color: var(--signal);
}

.c-answer-body {
  font-size: 0.93rem;
  line-height: 1.65;
  color: var(--ink-2);
}

.c-answer-body > * + * {
  margin-top: 0.75em;
}

.prose .c-answer-body ul,
.prose .c-answer-body ol {
  padding-left: 1.1rem;
}

.prose .c-answer-body li + li {
  margin-top: 0.3em;
}

.c-answer-body .tk {
  transition: opacity 0.25s linear;
}

.c-answer-body .tk.is-off {
  opacity: 0;
}

.c-answers-replay {
  display: none;
}

.c-answers.is-live .c-answers-replay {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 40px;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--ink-2);
}

@media (hover: hover) {
  .c-answers.is-live .c-answers-replay:hover { color: var(--ink); }
}

/* ------------------------------------------------------------ Timeline */

.prose .c-steps {
  padding-left: 0;
  list-style: none;
}

.c-step {
  position: relative;
  display: grid;
  gap: 0.25rem 1.5rem;
  padding: 0 0 1.75rem 1.6rem;
}

.prose .c-steps > li + li {
  margin-top: 0;
}

.c-step::before {
  content: "";
  position: absolute;
  top: 0.45rem;
  left: 0;
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--signal);
  border-radius: 999px;
  background: var(--bg);
}

.c-step::after {
  content: "";
  position: absolute;
  top: 1.25rem;
  bottom: 0.1rem;
  left: 4px;
  width: 1px;
  background: var(--line-2);
}

.c-step:last-child {
  padding-bottom: 0;
}

.c-step:last-child::after {
  display: none;
}

@media (min-width: 640px) {
  .c-step { grid-template-columns: 9.5rem minmax(0, 1fr); }
}

.c-step-when {
  font-size: 0.9rem;
  color: var(--muted);
}

.c-step-what {
  font-weight: 600;
  color: var(--ink);
}

.c-step-detail {
  margin-top: 0.25rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-2);
}

/* ------------------------------------------- Launch: aim-trace hero (`hero: trace`) */

/* A warm graphite page with one signal colour (amber), used only for "what gives it away".
   Buttons stay neutral so the amber keeps its meaning. */
.news-trace {
  --bg: #0b0a09;
  --surface: #141311;
  --surface-2: #1c1a17;
  --ink: #f3f0ea;
  --ink-2: #c4beb3;
  --muted: #968f84;
  --line: rgba(255, 240, 220, 0.09);
  --line-2: rgba(255, 240, 220, 0.17);
  --hy: #ffb224;          /* amber: 10.8:1 on --bg */
  --hy-ink: 243, 240, 234;
  --signal: var(--hy);
  background: var(--bg);
}

html:has(> body.news-trace) {
  background: #0b0a09;
}

.trace {
  position: relative;
}

.trace-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: var(--nav-h) var(--gutter) 0;
  overflow: clip;
  background: radial-gradient(90% 70% at 50% 50%, #1a1814 0%, #11100e 50%, #0b0a09 100%);
}

.trace-still,
.trace-canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

.trace-still {
  transition: opacity 1s var(--ease-out);
}

.trace-still img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The still has every trace drawn; soften it behind the title. */
.trace-still::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(42% 26% at 50% 50%, rgba(11, 10, 9, 0.55) 0%, rgba(11, 10, 9, 0) 100%),
    linear-gradient(to top, #0b0a09 0%, rgba(11, 10, 9, 0) 28%);
}

.trace-title {
  max-width: 9em;
  margin-top: -2vh;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.6rem, 1.3rem + 9.4vw, 10rem);
  line-height: 0.9;
  letter-spacing: -0.058em;
  text-align: center;
  text-wrap: balance;
  text-shadow: 0 0 48px rgba(11, 10, 9, 0.9);
  will-change: transform, opacity;
}

.trace-line {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(3rem, 11vh, 7.5rem);
  max-width: 21em;
  margin-inline: auto;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 1.05rem + 2.1vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-align: center;
  text-wrap: balance;
  text-shadow: 0 0 32px rgba(11, 10, 9, 0.95);
}

.trace-cue {
  display: none;
}

/* With the script running: a long scroll with the stage pinned while the traces converge. */
.trace.is-sequence {
  height: 260vh;
}

.trace.is-sequence .trace-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 0;
}

.trace.is-sequence .trace-line {
  opacity: 0;
  visibility: hidden;
}

.trace.is-live .trace-still {
  opacity: 0;
}

.trace.is-sequence .trace-cue {
  position: absolute;
  bottom: clamp(1.5rem, 4vh, 2.5rem);
  left: 50%;
  display: block;
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, rgba(255, 240, 220, 0), rgba(255, 240, 220, 0.6));
}

@media (prefers-reduced-motion: no-preference) {
  .trace.is-sequence .trace-cue { animation: cue 2.4s var(--ease-out) infinite; transform-origin: top; }
}

.news-trace .trace-intro .launch-dek {
  color: var(--ink);
}

.news-trace .launch-nav,
.news-trace .nav.is-scrolled {
  background: rgba(11, 10, 9, 0.78);
}

.news-trace .btn-primary,
.news-trace .launch-nav-cta {
  background: var(--ink);
  color: #0b0a09;
}

.news-trace .launch-ctas .btn-ghost {
  background: rgba(11, 10, 9, 0.3);
}

@media (hover: hover) {
  .news-trace .btn-primary:hover,
  .news-trace .launch-nav-cta:hover { background: #fff; }
}

.news-trace .launch-nav-list a.is-active {
  background: rgba(255, 240, 220, 0.08);
}

.news-trace .c-callout {
  background: var(--surface);
}

.news-trace .c-callout.is-warning {
  border-color: rgba(255, 178, 36, 0.32);
  background: rgba(255, 178, 36, 0.06);
}

.news-trace .c-callout.is-warning .c-callout-icon {
  color: var(--hy);
}

.news-trace .c-seg {
  background: rgba(255, 240, 220, 0.07);
}

/* Review flow: the timeline, laid out as three steps in a row on wider screens. */
.news-trace .c-step::before {
  border-color: var(--ink-2);
}

.news-trace .c-step:first-child::before {
  border-color: var(--hy);
  background: var(--hy);
}

.news-trace .c-step:last-child::before {
  border-color: var(--ink);
  background: var(--ink);
}

.news-trace .c-step-when {
  color: var(--muted);
}

.news-trace .c-step:first-child .c-step-when {
  color: var(--hy);
}

@media (min-width: 760px) {
  .news-trace .prose-launch > .launch-section > .c-timeline {
    max-width: 1080px;
  }
  .news-trace .c-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
  }
  .news-trace .c-step {
    display: block;
    padding: 2.1rem 0 0;
  }
  .news-trace .c-step::before {
    top: 0;
  }
  .news-trace .c-step::after {
    top: 4px;
    bottom: auto;
    left: 1.6rem;
    right: -1.6rem;
    width: auto;
    height: 1px;
    background: linear-gradient(to right, var(--line-2), var(--line-2) calc(100% - 10px), transparent calc(100% - 10px));
  }
  .news-trace .c-step:last-child::after {
    display: none;
  }
  .news-trace .c-step-what {
    margin-top: 0.35rem;
    font-size: 1.15rem;
  }
}

/* --------------------------------------------- Aim playback (`aimtrace`) */

.c-aim,
.c-dots {
  --hy: #ffb224;
  --hy-ink: 243, 240, 234;
  padding: clamp(1.1rem, 0.7rem + 2vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: clamp(16px, 0.8rem + 1vw, 24px);
  background: var(--surface);
}

.c-aim-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.c-aim-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
  letter-spacing: -0.025em;
  color: var(--ink);
}

.c-aim-label {
  padding: 0.2rem 0.7rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--ink-2);
}

.c-aim-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-top: 1.1rem;
}

/* Phones: the four scenarios share the row instead of scrolling sideways. */
@media (max-width: 559px) {
  .c-aim .c-seg { display: flex; width: 100%; }
  .c-aim .c-seg-btn { flex: 1 1 auto; padding: 0 0.45rem; font-size: 0.8rem; }
  .c-aim,
  .c-dots { padding: 1rem; }
}

.c-aim-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.c-aim-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 34px;
  padding: 0 0.85rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--ink-2);
  transition: color 0.25s var(--ease-out), background-color 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}

.c-aim-btn svg {
  width: 14px;
  height: 14px;
}

.c-aim-btn[aria-pressed="true"] {
  border-color: rgba(var(--hy-ink), 0.4);
  background: rgba(var(--hy-ink), 0.1);
  color: var(--ink);
}

@media (hover: hover) {
  .c-aim-btn:hover { color: var(--ink); border-color: rgba(var(--hy-ink), 0.4); }
}

.c-aim-panels {
  margin-top: 1.25rem;
}

.c-aim-panel + .c-aim-panel {
  margin-top: 2.5rem;
}

.c-aim.is-live .c-aim-panel + .c-aim-panel {
  margin-top: 0;
}

.c-aim-panel:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 6px;
  border-radius: 8px;
}

.prose .c-aim .c-aim-name {
  margin: 0 0 0.85rem;
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.4;
  letter-spacing: 0;
}

.c-aim.is-live .c-aim-name {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.c-aim-grid {
  display: grid;
  gap: 1.25rem 2.25rem;
}

@media (min-width: 900px) {
  .c-aim-grid {
    grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
    align-items: center;
  }
}

.c-aim-fig {
  min-width: 0;
}

.c-aim-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-2);
}

.c-aim-readout {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.c-aim-view {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: radial-gradient(80% 90% at 70% 50%, #191714 0%, #0e0d0b 100%);
}

.c-aim-view pattern circle { fill: rgba(var(--hy-ink), 0.14); }
.c-aim-trail { fill: rgba(var(--hy-ink), 0.22); }
.c-aim-target circle { fill: rgba(var(--hy-ink), 0.13); stroke: rgba(var(--hy-ink), 0.28); stroke-width: 1; }
.c-aim-mouse { stroke: rgba(var(--hy-ink), 0.5); stroke-width: 1.4; stroke-dasharray: 3 4; }
.c-aim-mdot { fill: rgba(var(--hy-ink), 0.4); }
.c-aim-seg { stroke: rgba(var(--hy-ink), 0.6); stroke-width: 1.4; stroke-linecap: round; }
.c-aim-dot { fill: rgba(var(--hy-ink), 0.95); }
.c-aim-seg.is-signal { stroke: var(--hy); stroke-width: 2.2; }
.c-aim-dot.is-signal { fill: var(--hy); }
.c-aim-shot circle,
.c-aim-shot path { fill: none; stroke: var(--ink); stroke-width: 1.6; }
.c-aim-shot line { stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; }
.c-aim-shot.is-signal circle,
.c-aim-shot.is-signal line { stroke: var(--hy); }
.c-aim-shot.is-signal path { stroke: var(--hy); stroke-width: 2; stroke-dasharray: 5 4; }
.c-aim-xhair path { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.c-aim-xhair circle { fill: var(--ink); }

.c-aim [data-t] {
  transition: opacity 0.12s linear;
}

.c-aim .is-future {
  opacity: 0;
  transition: none;
}

/* Lanes: what the server receives, one column per tick. */
.c-aim-lanes {
  display: grid;
  gap: 5px;
  margin-top: 0.9rem;
}

.c-aim-lane {
  display: grid;
  grid-template-columns: 5.25rem minmax(0, 1fr);
  align-items: center;
  gap: 0.6rem;
}

@media (min-width: 640px) {
  .c-aim-lane { grid-template-columns: 6.25rem minmax(0, 1fr); }
}

.c-aim-lane-name {
  font-size: 0.75rem;
  line-height: 1;
  white-space: nowrap;
  color: var(--muted);
}

.c-aim-lane-strip {
  position: relative;
  display: block;
  height: 18px;
  border-radius: 3px;
  background:
    linear-gradient(to right, rgba(var(--hy-ink), 0.07) 0 1px, transparent 1px) 0 0 / calc(100% / 36) 100%,
    rgba(var(--hy-ink), 0.025);
}

.c-aim-lane-strip svg {
  display: block;
  width: 100%;
  height: 100%;
}

.c-aim-lane-strip rect { fill: rgba(var(--hy-ink), 0.55); }
.c-aim-lane-strip rect.is-on { fill: rgba(var(--hy-ink), 0.2); }
.c-aim-lane-strip rect.is-shot { fill: var(--ink); }
.c-aim-lane-strip rect.is-signal { fill: var(--hy); }
.c-aim-lane-strip rect.is-ghost { fill: none; stroke: rgba(var(--hy-ink), 0.6); stroke-width: 1; stroke-dasharray: 2 2; vector-effect: non-scaling-stroke; }

.c-aim-playhead {
  position: absolute;
  top: -2px;
  bottom: -2px;
  left: 0;
  width: 1px;
  background: rgba(var(--hy-ink), 0.5);
  pointer-events: none;
}

.c-aim-axis {
  position: relative;
  display: block;
  height: 1rem;
  font-size: 0.7rem;
  color: var(--muted);
}

.c-aim-axis span {
  position: absolute;
  top: 0.1rem;
  white-space: nowrap;
}

.c-aim-axis-row .c-aim-lane-name {
  visibility: hidden;
}

.prose .c-aim-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 1.5rem;
  padding: 1rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  font-size: 0.82rem;
  color: var(--muted);
}

.prose .c-aim-legend > li + li {
  margin-top: 0;
}

.c-aim-legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.c-aim-sw {
  flex: none;
  width: 24px;
  height: 12px;
}

.c-aim-sw line { stroke-width: 1.5; }
.c-aim-sw.is-view line { stroke: rgba(var(--hy-ink), 0.6); }
.c-aim-sw.is-view circle { fill: var(--ink); }
.c-aim-sw.is-mouse line { stroke: rgba(var(--hy-ink), 0.55); stroke-dasharray: 3 3; }
.c-aim-sw.is-signal line { stroke: var(--hy); stroke-width: 2; }
.c-aim-sw.is-signal circle { fill: var(--hy); }

/* ------------------------------------------------- Dots (`dots`) */

.c-dots-panel + .c-dots-panel {
  margin-top: 2.5rem;
}

.c-dots.is-live .c-dots-panel + .c-dots-panel {
  margin-top: 0;
}

.c-dots.is-live .c-seg {
  margin-bottom: 1.75rem;
}

.c-dots-panel:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 6px;
  border-radius: 8px;
}

.prose .c-dots .c-dots-title {
  margin: 0 0 1.25rem;
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--ink);
}

.c-dots-body {
  display: grid;
  gap: 1.75rem 3.5rem;
}

@media (min-width: 760px) {
  .c-dots-body {
    grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
    align-items: center;
  }
}

.c-dots-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: clamp(9px, 0.5rem + 0.8vw, 16px);
  max-width: 360px;
}

.c-dot {
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(var(--hy-ink), 0.2);
}

.c-dot.is-flag { background: var(--hy); }
.c-dot.is-miss { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(var(--hy-ink), 0.6); }

.c-dots.is-live .c-dot {
  transition: transform 0.6s var(--ease-expo), opacity 0.6s var(--ease-out);
  transition-delay: calc(var(--i) * 6ms);
}

.c-dots-panel.is-enter .c-dot {
  opacity: 0;
  transform: scale(0.3);
  transition: none;
}

.prose .c-dots-legend {
  display: grid;
  gap: 1.5rem;
  padding: 0;
  list-style: none;
}

.prose .c-dots-legend > li + li {
  margin-top: 0;
}

.c-dots-legend li {
  display: grid;
  gap: 0.35rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-2);
}

.c-dots-n {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 1.6rem + 2.6vw, 4rem);
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--ink);
}

.c-dots-legend .is-flag .c-dots-n { color: var(--hy); }

.c-dots-of {
  margin-left: 0.35rem;
  font-family: var(--font-text);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0;
  color: var(--muted);
}

.c-dots-l {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.95rem;
  color: var(--ink-2);
}

.c-dots-l::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(var(--hy-ink), 0.2);
}

.is-flag > .c-dots-l::before { background: var(--hy); }
.is-miss > .c-dots-l::before { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(var(--hy-ink), 0.6); }
