/* DAWcord website. The colours, type and motion come from the app's own tokens.css; the DAW
   switcher changes `data-accent` on the root, exactly as the app does. */

/* ---- Fonts ------------------------------------------------------------------------------------ */

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-latin-400-normal.woff2) format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-latin-500-normal.woff2) format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-latin-600-normal.woff2) format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/poppins-latin-500-normal.woff2) format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/poppins-latin-700-normal.woff2) format("woff2");
}

/* ---- Base ------------------------------------------------------------------------------------- */

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

/* Registering the accents as colours lets the whole page crossfade when the DAW changes.
   Browsers without @property simply switch at once, as before. */
@property --accent {
  syntax: "<color>";
  inherits: true;
  initial-value: #8834f5;
}

@property --accent-2 {
  syntax: "<color>";
  inherits: true;
  initial-value: #a1affd;
}

@property --accent-text {
  syntax: "<color>";
  inherits: true;
  initial-value: #bb90ff;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  transition:
    background-color var(--dur-state) var(--ease),
    --accent 450ms var(--ease),
    --accent-2 450ms var(--ease),
    --accent-text 450ms var(--ease);
}

/* What Lenis asks of the page it glides. */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation: none !important;
  }
  /* The ticker runs on a doubled row; one row is enough when it stands still. */
  .ticker__group + .ticker__group {
    display: none;
  }
}

body {
  margin: 0;
  background: var(--app);
  color: var(--fg-1);
  font: var(--weight-read) var(--text-body) / var(--leading-body) var(--font-body);
  letter-spacing: var(--track-ui);
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  line-height: var(--leading-tight);
  letter-spacing: var(--track-display);
  text-wrap: balance;
}

h1 {
  margin: var(--space-3) 0 var(--space-4);
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  font-weight: var(--weight-strong);
  letter-spacing: -0.03em;
}

h2 {
  margin: var(--space-2) 0 var(--space-3);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: var(--weight-strong);
}

h3 {
  font-size: var(--text-lead);
  font-weight: var(--weight-strong);
}

a {
  color: var(--accent-text);
  text-decoration-color: color-mix(in oklab, var(--accent) 50%, transparent);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-color: currentColor;
}

code {
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--bg-3);
  font-family: var(--font-mono);
  font-size: 0.88em;
}

kbd {
  display: inline-block;
  padding: 0 6px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--bg-3);
  color: var(--fg-1);
  font-family: var(--font-mono);
  font-size: 0.82em;
  line-height: 1.7;
}

.wrap {
  width: min(1120px, calc(100% - 2 * var(--space-5)));
  margin: 0 auto;
}

.wrap--narrow {
  width: min(760px, calc(100% - 2 * var(--space-5)));
}

.skip {
  position: absolute;
  left: -999px;
  top: var(--space-2);
  z-index: 100;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--on-accent);
}

.skip:focus {
  left: var(--space-2);
}

.word {
  font-family: var(--font-brand);
  font-size: var(--text-lead);
  line-height: 1;
  white-space: nowrap;
}

.word b {
  font-weight: 700;
}

.word span {
  font-weight: 500;
  color: var(--fg-2);
}

.eyebrow {
  font-size: var(--text-caption);
  font-weight: var(--weight-strong);
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--accent-text);
}

.lead {
  max-width: 58ch;
  font-size: var(--text-lead);
  line-height: 1.5;
  color: var(--fg-2);
}

.fine {
  font-size: var(--text-caption);
  line-height: 1.6;
  color: var(--fg-3);
}

/* ---- Buttons ---------------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 36px;
  padding: 0 var(--space-4);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-3);
  box-shadow: var(--inset-top);
  color: var(--fg-1);
  font-weight: var(--weight-ui);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--dur-press) var(--ease),
    border-color var(--dur-press) var(--ease);
}

.btn:hover {
  background: var(--bg-4);
}

.btn--big {
  min-height: 46px;
  padding: 0 var(--space-5);
  font-size: var(--text-lead);
}

.btn--primary {
  background: var(--accent);
  border-color: color-mix(in oklab, var(--accent) 65%, black);
  color: var(--on-accent);
}

.btn--primary:hover {
  background: color-mix(in oklab, var(--accent) 86%, white);
}

.btn--ghost {
  background: transparent;
  box-shadow: none;
}

.btn--ghost:hover {
  background: var(--bg-3);
}

.link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  min-height: 32px;
  font-weight: var(--weight-ui);
}

/* ---- Navigation ------------------------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in oklab, var(--bg-1) 86%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav__row {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  min-height: 60px;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--fg-1);
  text-decoration: none;
}

.nav__brand img {
  width: 22px;
  height: 25px;
  transition: filter var(--dur-state) var(--ease);
}

.nav__links {
  display: flex;
  gap: var(--space-1);
  margin-right: auto;
}

.nav__links a {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  color: var(--fg-2);
  font-weight: var(--weight-ui);
  text-decoration: none;
  transition:
    background-color var(--dur-press) var(--ease),
    color var(--dur-press) var(--ease);
}

.nav__links a:hover {
  background: var(--bg-2);
  color: var(--fg-1);
}

.nav__links a[aria-current="true"] {
  background: var(--bg-2);
  color: var(--fg-1);
}

/* How far through the page you are, in the accent of the DAW you picked. */
.nav__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

.nav__actions {
  display: flex;
  gap: var(--space-2);
}

/* ---- Hero ------------------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

/* The DAW's colour, glowing from the top right behind the screenshot. */
.hero::before {
  content: "";
  position: absolute;
  top: -320px;
  right: -120px;
  width: 900px;
  height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-wash) 0%, transparent 62%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-6) 0 var(--space-7);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: var(--space-5) 0 var(--space-3);
}

.hero__visual {
  min-width: 0;
}

.switch {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.switch__chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 34px;
  padding: 0 var(--space-3) 0 var(--space-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--bg-2);
  color: var(--fg-2);
  font: inherit;
  font-weight: var(--weight-ui);
  cursor: pointer;
  transition:
    background-color var(--dur-press) var(--ease),
    border-color var(--dur-press) var(--ease),
    color var(--dur-press) var(--ease);
}

.switch__chip img {
  width: 18px;
  height: 18px;
}

.switch__chip:hover {
  background: var(--bg-3);
  color: var(--fg-1);
}

.switch__chip {
  position: relative;
  z-index: 1;
}

.switch__chip[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--fg-1);
}

/* The highlight itself travels: a pill that slides from DAW to DAW. */
.switch__pill {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  border-radius: var(--radius-pill);
  background: color-mix(in oklab, var(--accent) 20%, var(--bg-2));
  transition:
    transform 320ms var(--ease),
    width 320ms var(--ease),
    height 320ms var(--ease);
}

/* A screenshot inside a window of its own. */
.window {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--bg-1);
  box-shadow: var(--shadow);
  transition: transform 300ms var(--ease);
  will-change: transform;
}

.window__bar {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
}

.window__bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg-4);
}

.window__shot {
  width: 100%;
  transition: opacity var(--dur-state) var(--ease);
}

.window__shot[data-changing] {
  opacity: 0.35;
}

.switch__note {
  margin-top: var(--space-3);
  text-align: center;
}

/* ---- Band of facts ---------------------------------------------------------------------------- */

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

.band__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
  padding: var(--space-5) 0;
}

.band__item {
  display: grid;
  gap: 2px;
}

.band__item strong {
  font-size: var(--text-title);
  font-weight: var(--weight-strong);
  letter-spacing: var(--track-display);
  color: var(--accent-text);
  font-variant-numeric: tabular-nums;
}

.band__item span {
  font-size: var(--text-caption);
  color: var(--fg-3);
}

/* ---- Sections --------------------------------------------------------------------------------- */

.section {
  padding: var(--space-7) 0;
}

.section--alt {
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section__head {
  max-width: 62ch;
  margin-bottom: var(--space-6);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--space-7);
}

.points {
  display: grid;
  gap: var(--space-2);
  margin: var(--space-4) 0 var(--space-5);
  padding: 0;
  list-style: none;
  color: var(--fg-2);
}

.points li {
  position: relative;
  padding-left: var(--space-5);
}

.points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---- The Discord card, rebuilt --------------------------------------------------------------- */

.demo {
  width: min(420px, 100%);
  margin: 0 auto;
  padding: var(--space-3) var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  background: var(--dc-popout);
  font-family:
    "gg sans",
    "Noto Sans",
    "Helvetica Neue",
    Helvetica,
    Arial,
    sans-serif;
  font-size: 14px;
  letter-spacing: 0;
  box-shadow: var(--shadow);
}

.demo__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--space-3);
}

.demo__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--accent-2), var(--accent));
}

.demo__user {
  font-size: 16px;
  font-weight: 600;
  color: var(--dc-text);
}

.demo__when {
  font-size: 11px;
  color: var(--dc-muted);
}

.demo__popout {
  margin-left: 46px;
  border: 1px solid var(--dc-line);
  border-radius: 8px;
  background: var(--dc-card);
}

.demo__section {
  padding: 8px 12px 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--dc-muted);
}

.demo__card {
  position: relative;
  margin: 8px;
  overflow: hidden;
  border: 1px solid var(--dc-line);
  border-radius: 8px;
}

.demo__bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--accent);
}

.demo__body {
  display: flex;
  gap: 12px;
  padding: 10px;
}

.demo__body img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
}

.demo__game {
  margin-top: -2px;
  font-size: 14px;
  font-weight: 600;
  color: var(--dc-muted);
}

.demo__details {
  font-size: 16px;
  font-weight: 600;
  color: var(--dc-text);
}

.demo__state {
  font-size: 13px;
  color: var(--dc-text);
}

.demo__elapsed {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 11px;
  color: var(--dc-muted);
}

.demo__elapsed i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--dc-playing);
}

/* ---- Features --------------------------------------------------------------------------------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.feature {
  padding: var(--space-5);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.feature img {
  margin-bottom: var(--space-3);
  padding: 10px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-wash);
}

.feature h3 {
  margin-bottom: var(--space-2);
}

.feature p {
  color: var(--fg-2);
}

.themes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.themes__item {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--bg-2);
}

.themes__item figcaption {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-caption);
  font-weight: var(--weight-strong);
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--fg-3);
}

/* ---- DAWs ------------------------------------------------------------------------------------- */

.daws {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.daw {
  position: relative;
  display: grid;
  justify-items: start;
  gap: var(--space-2);
  padding: var(--space-6) var(--space-5) var(--space-5);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition:
    background-color var(--dur-press) var(--ease),
    border-color var(--dur-press) var(--ease);
}

.daw:hover {
  background: var(--bg-2);
  border-color: var(--line-strong);
}

.daw__bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--bar, var(--accent));
}

.daw[data-accent-card="fl_studio"] {
  --bar: #ff7e1b;
}

.daw[data-accent-card="ableton"] {
  --bar: #f4bc41;
}

.daw[data-accent-card="pro_tools"] {
  --bar: #578aae;
}

.daw img {
  width: 72px;
  height: 72px;
  margin-bottom: var(--space-2);
}

.daw p {
  font-size: var(--text-caption);
  color: var(--fg-3);
}

/* ---- Statistics ------------------------------------------------------------------------------- */

.split--wide {
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  align-items: start;
}

.tall {
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.tall img {
  width: 100%;
}

.share {
  margin-top: var(--space-7);
}

.share__card {
  margin: 0 auto;
  max-width: 720px;
}

.share__card img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.share__card figcaption {
  margin-top: var(--space-3);
  text-align: center;
  font-size: var(--text-caption);
  color: var(--fg-3);
}

/* ---- Download --------------------------------------------------------------------------------- */

.downloads {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.download {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-5);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.download img {
  width: 28px;
  height: 28px;
  margin-bottom: var(--space-1);
}

.download p {
  color: var(--fg-2);
}

.download__file code {
  font-size: var(--text-caption);
}

.downloads__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: var(--space-5) 0 var(--space-4);
}

.notes {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.notes li {
  position: relative;
  padding-left: var(--space-4);
}

.notes li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fg-3);
}

/* ---- Questions -------------------------------------------------------------------------------- */

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

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) 0;
  font-weight: var(--weight-ui);
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  font-size: var(--text-title);
  line-height: 1;
  color: var(--accent-text);
}

details[open] summary::after {
  content: "−";
}

details p {
  padding: 0 0 var(--space-4);
  max-width: 64ch;
  color: var(--fg-2);
}

/* ---- Footer ----------------------------------------------------------------------------------- */

.foot {
  padding: var(--space-7) 0 var(--space-5);
  border-top: 1px solid var(--line);
}

.foot__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}

.foot__brand {
  display: grid;
  justify-items: start;
  gap: var(--space-2);
}

.foot__brand img {
  width: 28px;
  height: 32px;
}

.foot__brand p {
  max-width: 32ch;
  color: var(--fg-2);
}

.foot__brand .btn {
  margin-top: var(--space-2);
}

.foot__column {
  display: grid;
  gap: var(--space-1);
  align-content: start;
}

.foot__column h3 {
  margin-bottom: var(--space-2);
  font-size: var(--text-caption);
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--fg-3);
}

.foot__column a {
  color: var(--fg-2);
  text-decoration: none;
}

.foot__column a:hover {
  color: var(--fg-1);
  text-decoration: underline;
}

.foot__fine {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
  color: var(--fg-3);
}

/* ---- Narrow screens --------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .nav__links {
    display: none;
  }

  .hero__grid,
  .split,
  .split--wide {
    grid-template-columns: minmax(0, 1fr);
  }

  .features,
  .daws {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .band__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .foot__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .nav__actions .btn--ghost {
    display: none;
  }

  .features,
  .daws,
  .downloads,
  .themes,
  .band__grid,
  .foot__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__actions .btn {
    width: 100%;
  }
}


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

/* The waveform canvas breathes behind the hero, a little taller than the hero itself so its
   slow drift never shows an edge. */
.hero__wave {
  position: absolute;
  inset: -48px 0;
  pointer-events: none;
}

/* The hero arrives once, on load; everything else waits until you scroll to it. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes arrive {
    from {
      opacity: 0;
      transform: translateY(18px);
    }
  }

  .hero__text > * {
    animation: arrive 0.7s var(--ease) backwards;
  }

  .hero__text > *:nth-child(2) {
    animation-delay: 0.06s;
  }

  .hero__text > *:nth-child(3) {
    animation-delay: 0.12s;
  }

  .hero__text > *:nth-child(4) {
    animation-delay: 0.18s;
  }

  .hero__text > *:nth-child(5) {
    animation-delay: 0.24s;
  }

  .hero__visual {
    animation: arrive 0.8s 0.2s var(--ease) backwards;
  }

  /* The Discord card, floating very slightly, as cards on profiles do. */
  @keyframes bob {
    0%,
    100% {
      transform: translateY(0);
    }

    50% {
      transform: translateY(-7px);
    }
  }

  .demo {
    animation: bob 7s ease-in-out infinite;
  }
}

/* Sections and cards arrive as you reach them. The stagger is set per group in site.js. */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(20px);
  }

  .js [data-reveal].is-in {
    opacity: 1;
    transform: none;
    transition:
      opacity 650ms var(--ease),
      transform 650ms var(--ease);
    transition-delay: var(--stagger, 0ms);
  }
}

/* The ticker: the eight statuses and the three DAWs, passing between the hero and the facts. */
.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--bg-1);
}

.ticker__track {
  display: flex;
  width: max-content;
  white-space: nowrap;
}

.ticker__group {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-3) var(--space-5);
}

.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-5);
  font-size: var(--text-caption);
  font-weight: var(--weight-strong);
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--fg-3);
}

.ticker__item::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

@media (prefers-reduced-motion: no-preference) {
  .js .ticker__track {
    animation: ticker 46s linear infinite;
  }

  .ticker:hover .ticker__track,
  .ticker:focus-within .ticker__track {
    animation-play-state: paused;
  }
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

/* Buttons that lean toward the cursor. */
[data-magnetic] {
  transition-property: transform, background-color, border-color;
  transition-duration: 180ms, var(--dur-press), var(--dur-press);
  transition-timing-function: var(--ease);
}

/* A shine crosses the primary buttons when they are touched. */
.btn--primary {
  position: relative;
  overflow: hidden;
}

.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgb(255 255 255 / 0.22) 50%, transparent 65%);
  transform: translateX(-130%);
  transition: transform 650ms var(--ease);
  pointer-events: none;
}

.btn--primary:hover::after,
.btn--primary:focus-visible::after {
  transform: translateX(130%);
}

/* Questions fold open and closed. */
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 300ms var(--ease);
}

.faq__a > div {
  min-height: 0;
  overflow: hidden;
}

details[open]:not(.closing):not(.opening) .faq__a {
  grid-template-rows: 1fr;
}
