/* Signal palette. Dark is the default. Inter and JetBrains Mono are self-hosted (SIL OFL). */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inter-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/jetbrains-mono-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --p0-aubergine: #1f0917;
  --p0-night: #2c0f24;
  --p0-deep-plum: #4b1239;
  --p0-damson: #7f3296;
  --p0-claret: #b0214f;
  --p0-ripe: #e04a77;
  --p0-bloom: #c4b0d6;
  --p0-milk: #f7eef3;
  --p0-skin: #eadce4;
  --p0-mist: #d9c6d2;
  --p0-dusk: #6a3f59;

  --bg: var(--p0-aubergine);
  --surface: var(--p0-night);
  --border: var(--p0-deep-plum);
  --text: var(--p0-milk);
  --text-muted: var(--p0-bloom);
  --accent: var(--p0-ripe);
  --accent-fill: var(--p0-claret);
  --focus: var(--p0-bloom);
  --code-bg: var(--p0-aubergine);

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-height: 4.5rem;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
}

:root[data-theme="light"] {
  --bg: var(--p0-milk);
  --surface: var(--p0-skin);
  --border: var(--p0-mist);
  --text: var(--p0-aubergine);
  --text-muted: var(--p0-dusk);
  --accent: var(--p0-claret);
  --focus: var(--p0-damson);
  --code-bg: var(--p0-milk);
  color-scheme: light;
  -webkit-font-smoothing: auto;
}

/* No script: follow the OS. With a script, data-theme wins. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --bg: var(--p0-milk);
    --surface: var(--p0-skin);
    --border: var(--p0-mist);
    --text: var(--p0-aubergine);
    --text-muted: var(--p0-dusk);
    --accent: var(--p0-claret);
    --focus: var(--p0-damson);
    --code-bg: var(--p0-milk);
    color-scheme: light;
    -webkit-font-smoothing: auto;
  }
}

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

[hidden] {
  display: none !important;
}

html {
  background: var(--bg);
  /* Anchor targets clear the sticky header (its min-height plus the 1px border). */
  scroll-padding-top: calc(var(--header-height) + 1px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
}

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

h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-wrap: balance;
}

h1 {
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  max-width: 11em;
}

h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

h3 {
  margin: 0;
  font-size: 1.125rem;
  letter-spacing: -0.015em;
}

p {
  margin: 0;
}

a {
  color: var(--accent);
  text-underline-offset: 0.16em;
}

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

:focus {
  outline: none;
}

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

::selection {
  background: var(--p0-claret);
  color: var(--p0-milk);
}

code,
pre {
  font-family: var(--font-mono);
  font-variant-ligatures: none;
}

p code,
li code,
dd code {
  font-size: 0.88em;
  font-weight: 500;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.05em 0.35em;
  overflow-wrap: anywhere;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 5;
  background: var(--accent-fill);
  color: var(--p0-milk);
  text-decoration: none;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 0.6rem 0.9rem;
  border-radius: 6px;
}

.skip:focus {
  top: 1rem;
}

/* Layout: a rhythm of 6rem sections, a 72rem column, and split rows
   (heading left, detail right). Colors come only from the variables above. */

.wrap {
  width: min(72rem, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 4;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-height);
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex: none;
}

.brand img {
  display: block;
  height: 3.35rem;
  width: auto;
}

img.theme-only-light {
  display: none;
}

:root[data-theme="light"] img.theme-only-dark {
  display: none;
}

:root[data-theme="light"] img.theme-only-light {
  display: block;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) img.theme-only-dark {
    display: none;
  }

  :root:not([data-theme]) img.theme-only-light {
    display: block;
  }
}

.nav-sections {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-sections a,
.nav-links a,
.theme-toggle {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text);
  text-decoration: none;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  min-height: 2.75rem;
  padding: 0.35rem 0.7rem;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.nav-sections a {
  color: var(--text-muted);
}

.nav-sections a:hover,
.nav-links a:hover,
.theme-toggle:hover {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem 0.35rem;
}

.theme-toggle {
  border-color: var(--border);
  font-weight: 700;
  min-width: 4.75rem;
  justify-content: center;
  cursor: pointer;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  color: var(--text);
  border-radius: 6px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links .social-link {
  padding: 0;
  justify-content: center;
}

.social-link:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

.icon {
  display: block;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

main:focus {
  outline: none;
}

.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;
}

/* Hero: centered, one soft glow behind it, tool names underneath. */

.hero {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0 0;
  text-align: center;
}

.hero-glow {
  position: absolute;
  inset: auto -20% -35% -20%;
  height: 70%;
  background:
    radial-gradient(ellipse 45% 55% at 35% 60%, color-mix(in srgb, var(--p0-claret) 30%, transparent), transparent 70%),
    radial-gradient(ellipse 40% 50% at 65% 55%, color-mix(in srgb, var(--p0-damson) 32%, transparent), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

.hero-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(color-mix(in srgb, var(--text) 16%, transparent) 1px, transparent 1.2px);
  background-size: 14px 14px;
  mask-image: linear-gradient(to bottom, transparent, #000 45%, transparent);
  opacity: 0.6;
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-mark {
  width: 4rem;
  height: auto;
  margin-bottom: 1.5rem;
  user-select: none;
}

.eyebrow,
.kicker {
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin-inline: auto;
  max-width: 13em;
  font-size: clamp(2.25rem, 5.6vw, 4rem);
  letter-spacing: -0.03em;
}

.lede {
  margin: 1.35rem auto 0;
  max-width: 40rem;
  color: var(--text-muted);
  font-size: 1.125rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.hero-actions .command,
.hero-actions .button {
  margin-top: 0;
}

.hero .micro {
  margin-inline: auto;
}

.hero-strip {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 2.5rem;
  margin-top: 4.5rem;
  padding: 1.75rem 0 2rem;
  border-top: 1px solid var(--border);
}

.strip-label {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.strip-names {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--text);
}

/* Buttons and the command box */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  margin-top: 1.5rem;
  padding: 0.55rem 1.05rem;
  background: var(--accent-fill);
  color: var(--p0-milk);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: filter 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.button:hover {
  filter: brightness(0.92);
  text-decoration: none;
}

.button-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.button-ghost:hover {
  filter: none;
  color: var(--accent);
  border-color: var(--accent);
}

.arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.button:hover .arrow {
  transform: translateX(3px);
}

.command {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  max-width: 36rem;
  margin-top: 1rem;
  padding: 0.4rem 0.4rem 0.4rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  text-align: left;
  transition: border-color 0.2s ease;
}

.command:hover,
.command:focus-within {
  border-color: var(--accent);
}

.command-line {
  margin: 0;
  min-width: 0;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.4;
}

.prompt {
  color: var(--accent);
  margin-right: 0.45rem;
}

.command code {
  font: inherit;
  background: none;
  border: 0;
  padding: 0;
}

.copy {
  flex: none;
  min-width: 5.5rem;
  min-height: 2.5rem;
  padding: 0.4rem 0.95rem;
  background: var(--accent-fill);
  color: var(--p0-milk);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.875rem;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: filter 0.2s ease;
}

.copy:hover {
  filter: brightness(0.92);
}

.micro {
  margin-top: 0.85rem;
  max-width: 36rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* Sections */

.section {
  padding: 6rem 0;
  border-top: 1px solid var(--border);
}

.section-band {
  background: var(--surface);
}

.section-head {
  max-width: 42rem;
}

.section-intro {
  margin-top: 0.85rem;
  max-width: 40rem;
  color: var(--text-muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 2.5rem 4rem;
  align-items: start;
}

.split-head {
  position: sticky;
  top: 7rem;
}

.split-head h2,
.section-head h2 {
  font-size: clamp(1.875rem, 3.4vw, 2.75rem);
  letter-spacing: -0.025em;
}

.aside-note {
  margin-top: 1.25rem;
  max-width: 28rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.note {
  margin-top: 2rem;
  max-width: 44rem;
  color: var(--text-muted);
}

/* Value: rows with an icon, separated by rules. */

.props {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}

.props li {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 1rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
}

.prop-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  color: var(--accent);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.prop-icon svg {
  display: block;
}

.props li:hover .prop-icon {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.props h3 {
  margin: 0.55rem 0 0.55rem;
  font-size: 1.25rem;
}

.props p {
  color: var(--text-muted);
}

/* Quickstart: three cards. */

.steps {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.steps li,
.flow li,
.tools div {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.steps li {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

.steps li:hover,
.flow li:hover,
.tools div:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.step-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.steps h3 {
  margin-bottom: 0.6rem;
  font-size: 1.25rem;
}

.steps p {
  color: var(--text-muted);
}

.steps pre {
  margin: auto 0 0;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.55;
}

.steps p + pre {
  margin-top: 1.25rem;
}

.steps pre code {
  font: inherit;
  background: none;
  border: 0;
  padding: 0;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

.comment {
  color: var(--text-muted);
}

/* How it works: four connected nodes. */

.flow {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.flow li {
  position: relative;
  min-width: 0;
  padding: 1.5rem 1.35rem;
  background: var(--surface);
}

.flow li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(-1.5rem - 1px);
  width: 1.5rem;
  height: 1px;
  background: linear-gradient(90deg, var(--accent) 50%, transparent 50%);
  background-size: 6px 1px;
}

.flow-num {
  margin: 0 0 0.75rem;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--accent);
}

.flow h3 {
  margin-bottom: 0.35rem;
}

.flow p:last-child {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

/* Works with: a two-by-two grid of cards. */

.tools {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.tools div {
  padding: 1.35rem 1.35rem 1.5rem;
}

.tools dt {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
}

.tools dt::before {
  content: "";
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.6rem;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: 0.12em;
}

.tools dd {
  margin: 0.6rem 0 0;
  color: var(--text-muted);
}

/* Trust: a list with drawn check marks. */

.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}

.facts li {
  position: relative;
  padding: 1.1rem 0 1.1rem 2.25rem;
  border-bottom: 1px solid var(--border);
}

.facts li::before {
  content: "";
  position: absolute;
  left: 0.3rem;
  top: 1.45rem;
  width: 0.4rem;
  height: 0.75rem;
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Closing call to action: one deep plum panel in both themes. */

.cta {
  padding: 0 0 6rem;
}

.cta-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem 3rem;
  align-items: center;
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: 20px;
  color: var(--p0-milk);
  background:
    radial-gradient(ellipse 60% 120% at 100% 100%, color-mix(in srgb, var(--p0-claret) 70%, transparent), transparent 70%),
    linear-gradient(135deg, var(--p0-night), var(--p0-deep-plum));
  border: 1px solid var(--p0-deep-plum);
}

.cta-panel h2 {
  font-size: clamp(1.875rem, 3.4vw, 2.75rem);
  letter-spacing: -0.025em;
}

.cta-panel .section-intro,
.cta-panel .micro {
  color: var(--p0-bloom);
}

.cta-panel .command {
  margin-top: 0;
  background: var(--p0-aubergine);
  border-color: var(--p0-dusk);
  color: var(--p0-milk);
}

.cta-panel .prompt {
  color: var(--p0-ripe);
}

.cta-panel :focus-visible {
  outline-color: var(--p0-bloom);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 2rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2.5rem 4rem;
}

.footer-brand .brand img {
  height: 2.9rem;
}

.affiliation {
  margin-top: 1rem;
  max-width: 22rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(9rem, auto));
  gap: 2rem 4rem;
}

.footer-title {
  margin-bottom: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-cols ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-cols li:has(> [hidden]) {
  display: none;
}

.footer-cols a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  color: var(--text);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-cols a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.footer-note {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.socials {
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.copy-sink {
  position: fixed;
  left: -9999px;
  top: 0;
}

/* Motion. Everything below is skipped when the reader asks for less motion.
   site.js adds .reveal-ready to <html>, so with no script nothing is hidden. */

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * {
    animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .hero-copy > :nth-child(2) { animation-delay: 0.04s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.08s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.14s; }
  .hero-copy > :nth-child(5) { animation-delay: 0.2s; }
  .hero-copy > :nth-child(6) { animation-delay: 0.26s; }
  .hero-copy > :nth-child(7) { animation-delay: 0.32s; }

  .hero-mark {
    animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both, float 7s ease-in-out 0.7s infinite;
  }

  .hero-glow {
    animation: drift 18s ease-in-out infinite alternate;
  }

  .reveal-ready [data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.25s ease;
  }

  .reveal-ready [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }

  .reveal-ready .steps li.is-visible:hover,
  .reveal-ready .tools div.is-visible:hover {
    transform: translateY(-3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  /* No hover lifts or nudges either. Color and border changes stay. */
  .social-link:hover,
  .button:hover .arrow,
  .props li:hover .prop-icon,
  .steps li:hover,
  .flow li:hover,
  .tools div:hover {
    transform: none;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

@keyframes float {
  50% {
    transform: translateY(-6px);
  }
}

@keyframes drift {
  to {
    transform: translate3d(4%, -3%, 0) scale(1.05);
  }
}

/* The light show rule is :root[data-theme="light"] img.theme-only-light.
   A plain .hero-mark hide would lose to it, so these selectors match it. */
@media (forced-colors: active) {
  :root[data-theme] img.hero-mark,
  :root:not([data-theme]) img.hero-mark {
    display: none;
  }

  .button,
  .copy,
  .theme-toggle,
  .command,
  .steps li,
  .flow li,
  .tools div,
  .cta-panel {
    border: 1px solid ButtonText;
  }

  .hero-glow {
    display: none;
  }
}

/* Responsive */

@media (max-width: 1080px) {
  .nav-sections {
    display: none;
  }
}

@media (max-width: 960px) {
  .split,
  .cta-panel {
    grid-template-columns: 1fr;
  }

  .split-head {
    position: static;
  }

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

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

  .flow li::after {
    display: none;
  }
}

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

  .hero {
    padding-top: 3.5rem;
  }

  .hero-strip {
    margin-top: 3rem;
  }

  .section {
    padding: 4rem 0;
  }

  .cta {
    padding-bottom: 4rem;
  }

  .wrap {
    width: min(72rem, calc(100% - 2rem));
  }
}

@media (max-width: 520px) {
  .brand img {
    height: 2.7rem;
  }

  .nav-links a,
  .theme-toggle {
    padding-inline: 0.45rem;
  }

  .theme-toggle {
    min-width: 3.5rem;
  }

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

  .hero-actions {
    width: 100%;
  }

  .hero-actions .command,
  .hero-actions .button {
    width: 100%;
  }

  .command {
    padding-left: 1rem;
  }

  .strip-names {
    gap: 0.5rem 1.5rem;
  }

  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    width: 100%;
  }
}
