:root,
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000;
  --surface: #0a0a0a;
  --elevated: #111111;
  --terminal: #050505;
  --text: #fafafa;
  --secondary: #a1a1aa;
  --muted: #71717a;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.14);
  --border-strong: rgba(255, 255, 255, 0.18);
  --nav-bg: rgba(0, 0, 0, 0.8);
  --nav-active: rgba(255, 255, 255, 0.35);
  --shadow: rgba(0, 0, 0, 0.3);
  --shadow-lg: rgba(0, 0, 0, 0.45);
  --selection: rgba(255, 255, 255, 0.18);
  --btn-pop-bg: linear-gradient(180deg, #fafafa 0%, #e4e4e7 100%);
  --btn-pop-text: #09090b;
  --btn-pop-shadow:
    0 0 0 1px rgba(255,255,255,0.45) inset,
    0 1px 0 0 rgba(255,255,255,0.85) inset,
    0 -1px 0 0 rgba(0,0,0,0.06) inset,
    0 1px 2px rgba(0,0,0,0.25),
    0 2px 0 #d4d4d8,
    0 4px 0 #a1a1aa,
    0 8px 20px rgba(0,0,0,0.3);
  --btn-pop-shadow-hover:
    0 0 0 1px rgba(255,255,255,0.5) inset,
    0 1px 0 0 rgba(255,255,255,0.9) inset,
    0 -1px 0 0 rgba(0,0,0,0.06) inset,
    0 2px 4px rgba(0,0,0,0.2),
    0 3px 0 #d4d4d8,
    0 5px 0 #a1a1aa,
    0 12px 28px rgba(0,0,0,0.35);
  --btn-ghost-bg: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
  --btn-ghost-border: rgba(255, 255, 255, 0.14);
  --copy-hover-bg: #1a1a1a;
  --mobile-nav-bg: #000000;
  --success: #22c55e;
  --font: Inter, system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f4f4f5;
  --elevated: #ffffff;
  --terminal: #f4f4f5;
  --text: #09090b;
  --secondary: #52525b;
  --muted: #71717a;
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.14);
  --border-strong: rgba(0, 0, 0, 0.18);
  --nav-bg: rgba(255, 255, 255, 0.82);
  --nav-active: rgba(0, 0, 0, 0.35);
  --shadow: rgba(0, 0, 0, 0.08);
  --shadow-lg: rgba(0, 0, 0, 0.12);
  --selection: rgba(0, 0, 0, 0.12);
  --btn-pop-bg: linear-gradient(180deg, #18181b 0%, #09090b 100%);
  --btn-pop-text: #fafafa;
  --btn-pop-shadow:
    0 0 0 1px rgba(0,0,0,0.5) inset,
    0 1px 0 0 rgba(255,255,255,0.12) inset,
    0 -1px 0 0 rgba(0,0,0,0.3) inset,
    0 1px 2px rgba(0,0,0,0.15),
    0 2px 0 #27272a,
    0 4px 0 #3f3f46,
    0 8px 20px rgba(0,0,0,0.18);
  --btn-pop-shadow-hover:
    0 0 0 1px rgba(0,0,0,0.55) inset,
    0 1px 0 0 rgba(255,255,255,0.15) inset,
    0 -1px 0 0 rgba(0,0,0,0.3) inset,
    0 2px 4px rgba(0,0,0,0.12),
    0 3px 0 #27272a,
    0 5px 0 #3f3f46,
    0 12px 28px rgba(0,0,0,0.2);
  --btn-ghost-bg: linear-gradient(180deg, rgba(0,0,0,0.03) 0%, rgba(0,0,0,0.01) 100%);
  --btn-ghost-border: rgba(0, 0, 0, 0.12);
  --copy-hover-bg: #e4e4e7;
  --mobile-nav-bg: #ffffff;
}

@media (prefers-color-scheme: light) {
  :root[data-theme="system"] {
    color-scheme: light;
    --bg: #ffffff;
    --surface: #f4f4f5;
    --elevated: #ffffff;
    --terminal: #f4f4f5;
    --text: #09090b;
    --secondary: #52525b;
    --muted: #71717a;
    --border: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.14);
    --border-strong: rgba(0, 0, 0, 0.18);
    --nav-bg: rgba(255, 255, 255, 0.82);
    --nav-active: rgba(0, 0, 0, 0.35);
    --shadow: rgba(0, 0, 0, 0.08);
    --shadow-lg: rgba(0, 0, 0, 0.12);
    --selection: rgba(0, 0, 0, 0.12);
    --btn-pop-bg: linear-gradient(180deg, #18181b 0%, #09090b 100%);
    --btn-pop-text: #fafafa;
    --btn-pop-shadow:
      0 0 0 1px rgba(0,0,0,0.5) inset,
      0 1px 0 0 rgba(255,255,255,0.12) inset,
      0 -1px 0 0 rgba(0,0,0,0.3) inset,
      0 1px 2px rgba(0,0,0,0.15),
      0 2px 0 #27272a,
      0 4px 0 #3f3f46,
      0 8px 20px rgba(0,0,0,0.18);
    --btn-pop-shadow-hover:
      0 0 0 1px rgba(0,0,0,0.55) inset,
      0 1px 0 0 rgba(255,255,255,0.15) inset,
      0 -1px 0 0 rgba(0,0,0,0.3) inset,
      0 2px 4px rgba(0,0,0,0.12),
      0 3px 0 #27272a,
      0 5px 0 #3f3f46,
      0 12px 28px rgba(0,0,0,0.2);
    --btn-ghost-bg: linear-gradient(180deg, rgba(0,0,0,0.03) 0%, rgba(0,0,0,0.01) 100%);
    --btn-ghost-border: rgba(0, 0, 0, 0.12);
    --copy-hover-bg: #e4e4e7;
    --mobile-nav-bg: #ffffff;
  }
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] { color-scheme: dark; }
}

/* Logo swap */
.logo-img--light { display: none; }
:root[data-theme="light"] .logo-img--dark { display: none; }
:root[data-theme="light"] .logo-img--light { display: block; }
@media (prefers-color-scheme: light) {
  :root[data-theme="system"] .logo-img--dark { display: none; }
  :root[data-theme="system"] .logo-img--light { display: block; }
}
:root[data-theme="dark"] .logo-img--dark { display: block; }
:root[data-theme="dark"] .logo-img--light { display: none; }
@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] .logo-img--dark { display: block; }
  :root[data-theme="system"] .logo-img--light { display: none; }
}

::selection { background: var(--selection); }

body {
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}

/* Linear hero entrance — from linear.app motion-gtFycFvA.js */
@keyframes linear-hero-in {
  from {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(20%);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

.hero-in {
  display: block;
  opacity: 0;
  animation: linear-hero-in 1s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
  will-change: opacity, filter, transform;
}

.hero-in--title { animation-delay: 0.4s; }
.hero-in--desc { animation-delay: 0.6s; }
.hero-in--cta { animation-delay: 0.85s; }
.hero-in--media { animation-delay: 1s; }

/* Scroll reveal for below-fold sections */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.6s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: 0.05s; }
.reveal[data-delay="2"] { transition-delay: 0.1s; }
.reveal[data-delay="3"] { transition-delay: 0.15s; }
.reveal[data-delay="4"] { transition-delay: 0.2s; }
.reveal[data-delay="5"] { transition-delay: 0.25s; }
.reveal[data-delay="6"] { transition-delay: 0.3s; }
.reveal[data-delay="7"] { transition-delay: 0.35s; }
.reveal[data-delay="8"] { transition-delay: 0.4s; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--secondary); text-decoration: none; }
a:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  .hero-in { opacity: 1; filter: none; transform: none; animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; padding: 0 1.5rem;
  max-width: 64rem; margin: 0 auto;
  background: var(--nav-bg); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.logo { display: flex; align-items: center; gap: 0.65rem; color: var(--text); text-decoration: none; font-size: 0.875rem; font-weight: 500; }
.nav-links { display: flex; gap: 1.5rem; }
.nav-links a { font-size: 0.875rem; color: var(--secondary); text-decoration: none; transition: color 0.2s var(--ease); position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--nav-active);
  transform: scaleX(1);
  transition: transform 0.3s var(--ease);
}

.nav-actions { display: flex; align-items: center; gap: 0.75rem; }

.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--secondary);
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s, background 0.2s;
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-hover); background: var(--elevated); }
.theme-icon { display: none; }
:root[data-theme="system"] .theme-icon--system { display: block; }
:root[data-theme="light"] .theme-icon--sun { display: block; }
:root[data-theme="dark"] .theme-icon--moon { display: block; }

.btn-pop {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.5625rem 1.125rem; border-radius: 9999px;
  background: var(--btn-pop-bg);
  color: var(--btn-pop-text); font-size: 0.875rem; font-weight: 500;
  border: none;
  box-shadow: var(--btn-pop-shadow);
  cursor: pointer;
  transition: transform 0.12s var(--ease), box-shadow 0.12s var(--ease);
  text-decoration: none;
}
.btn-pop:hover {
  transform: translateY(-2px);
  box-shadow: var(--btn-pop-shadow-hover);
}
.btn-pop:active {
  transform: translateY(2px);
  box-shadow:
    0 1px 2px var(--shadow),
    0 1px 0 var(--muted),
    0 2px 8px var(--shadow);
}

.btn-ghost {
  display: inline-flex; align-items: center;
  padding: 0.625rem 1.25rem; border-radius: 9999px;
  background: var(--btn-ghost-bg);
  color: var(--text);
  border: 1px solid var(--btn-ghost-border);
  font-size: 0.875rem; font-weight: 500; cursor: pointer;
  text-decoration: none;
  box-shadow: 0 2px 8px var(--shadow);
  transition: transform 0.12s var(--ease), border-color 0.15s, box-shadow 0.12s;
}
.btn-ghost:hover {
  border-color: var(--border-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--shadow);
}
.btn-ghost:active { transform: translateY(1px); }

main { max-width: 64rem; margin: 0 auto; padding: 0 1.5rem 4rem; }

.section-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero { padding: 6rem 0 4rem; }
.hero-kicker { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); margin-bottom: 1.5rem; }
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 48rem;
  text-shadow:
    0 0 28px color-mix(in srgb, var(--text) 14%, transparent),
    0 0 56px color-mix(in srgb, var(--text) 8%, transparent),
    -1px 0 rgba(255, 96, 96, 0.14),
    1px 0 rgba(96, 196, 255, 0.14);
}

.section h2 {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-shadow:
    0 0 20px color-mix(in srgb, var(--text) 10%, transparent),
    -0.5px 0 rgba(255, 96, 96, 0.1),
    0.5px 0 rgba(96, 196, 255, 0.1);
}
.hero-sub { margin-top: 1.25rem; font-size: 1.125rem; color: var(--secondary); max-width: 36rem; line-height: 1.6; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.5rem; width: 100%; }

.video-frame { margin-top: 4rem; border-radius: 0.75rem; border: 1px solid var(--border); overflow: hidden; background: var(--surface); transition: border-color 0.2s; }
.video-frame:hover { border-color: var(--border-hover); }
.video-frame video { width: 100%; display: block; }
.video-meta { display: flex; justify-content: space-between; padding: 0.75rem 1rem; border-top: 1px solid var(--border); font-family: var(--mono); font-size: 0.75rem; color: var(--muted); }

.section { border-top: 1px solid var(--border); padding: 6rem 0; }
.section > p { margin-top: 0.75rem; color: var(--secondary); max-width: 32rem; }

/* Stack */
.stack-layers { margin-top: 3rem; display: flex; flex-direction: column; gap: 0.75rem; }
.stack-layer {
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--surface);
  transition: border-color 0.2s, transform 0.2s var(--ease), background 0.2s;
}
.stack-layer:hover { border-color: var(--border-hover); transform: translateX(3px); transition: border-color 0.25s var(--ease), transform 0.35s var(--ease), background 0.25s; }
.stack-layer--active {
  background: var(--elevated);
  border-color: var(--border-strong);
  box-shadow: 0 0 0 1px var(--border);
}
.stack-tag { font-family: var(--mono); font-size: 0.6875rem; color: var(--muted); }
.stack-layer h3 { margin-top: 0.35rem; font-size: 0.9375rem; font-weight: 500; }
.stack-layer p { margin-top: 0.35rem; font-size: 0.875rem; color: var(--muted); }

/* Grid */
.grid {
  margin-top: 3rem;
  display: grid; gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
}
@media (min-width: 768px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.grid article { background: var(--surface); padding: 1.5rem; transition: background 0.25s var(--ease), transform 0.35s var(--ease), border-color 0.25s; }
.grid article:hover { background: var(--elevated); transform: translateY(-3px); }
.grid h3 { font-size: 0.875rem; font-weight: 500; }
.grid p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted); line-height: 1.5; }

/* Compare */
.compare-grid { margin-top: 3rem; display: grid; gap: 1rem; }
@media (min-width: 768px) { .compare-grid { grid-template-columns: 1fr 1fr; } }
.compare-card {
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  transition: transform 0.2s var(--ease);
}
.compare-card:hover { transform: translateY(-3px); }
.compare-card--bad { background: var(--surface); }
.compare-card--good { background: var(--elevated); border-color: var(--border-hover); }
.compare-label { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); }
.compare-card ul { margin-top: 1.25rem; list-style: none; }
.compare-card li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  color: var(--secondary);
  line-height: 1.5;
  margin-bottom: 0.65rem;
}
.compare-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--muted);
}
.compare-card--good li::before { background: var(--success); }

/* Arsenal */
.arsenal-grid {
  margin-top: 3rem;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) { .arsenal-grid { grid-template-columns: repeat(4, 1fr); } }
.arsenal-item {
  display: block;
  padding: 1rem 1.125rem;
  border: 1px solid var(--border);
  border-radius: 0.625rem;
  background: var(--surface);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.arsenal-item:hover {
  background: var(--elevated);
  border-color: var(--border-hover);
  color: var(--text);
  transform: translateY(-2px);
}

/* Workflow */
.steps { margin-top: 2.5rem; border: 1px solid var(--border); border-radius: 0.75rem; overflow: hidden; }
.step {
  display: flex; gap: 1.5rem; padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border); align-items: center;
  transition: background 0.2s, padding-left 0.2s var(--ease);
}
.step:last-child { border-bottom: none; }
.step:hover { background: var(--surface); padding-left: 1.5rem; }
.step span { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); width: 2rem; }
.step h3 { font-size: 0.875rem; font-weight: 500; flex: 1; }
.step p { font-size: 0.875rem; color: var(--muted); }

/* Preflight */
.checklist {
  margin-top: 2.5rem;
  display: grid;
  gap: 0.5rem;
}
@media (min-width: 768px) { .checklist { grid-template-columns: 1fr 1fr; } }
.check-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--surface);
  font-size: 0.875rem;
  color: var(--secondary);
  transition: border-color 0.2s, background 0.2s;
}
.check-item:hover { background: var(--elevated); border-color: var(--border-hover); }
.check-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.12);
  color: var(--success);
  font-size: 0.625rem;
  font-weight: 600;
  flex-shrink: 0;
}

/* Install */
.install-section { padding-bottom: 5rem; }
.install-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 900px) {
  .install-grid { grid-template-columns: 1fr 1.1fr; gap: 3rem; }
}
.install-copy h2 { font-size: 1.75rem; }
.install-copy > p { max-width: 28rem; }

.agent-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.75rem;
}
.agent-pills span {
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--muted);
  background: var(--surface);
  transition: border-color 0.15s, color 0.15s;
}
.agent-pills span:hover { border-color: var(--border-hover); color: var(--secondary); }

.install-steps {
  margin-top: 2rem;
  padding-left: 1.25rem;
  color: var(--secondary);
  font-size: 0.875rem;
  line-height: 1.7;
}
.install-steps li { margin-bottom: 0.5rem; }
.install-steps strong { color: var(--text); font-weight: 500; }

.terminal {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--terminal);
  box-shadow: 0 24px 48px var(--shadow-lg);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
}
.terminal-dot:first-child { background: rgba(255,95,87,0.6); }
.terminal-dot:nth-child(2) { background: rgba(255,189,46,0.6); }
.terminal-dot:nth-child(3) { background: rgba(39,201,63,0.6); }
.terminal-title {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--muted);
}
.terminal-body { padding: 1.25rem; }
.cmd-block + .cmd-block { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.cmd-label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cmd-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.prompt {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--muted);
  flex-shrink: 0;
}
.cmd-row code {
  flex: 1;
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--text);
  word-break: break-all;
}
.copy-btn {
  flex-shrink: 0;
  padding: 0.3rem 0.65rem;
  border-radius: 0.375rem;
  border: 1px solid var(--border);
  background: var(--elevated);
  color: var(--secondary);
  font-size: 0.75rem;
  font-family: var(--font);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.copy-btn:hover { color: var(--text); border-color: var(--border-hover); background: var(--copy-hover-bg); }
.copy-btn.copied { color: var(--success); border-color: rgba(34,197,94,0.3); }
.terminal-hint {
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.5;
}

.install-footer {
  margin-top: 3rem;
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 640px) { .install-footer { grid-template-columns: repeat(3, 1fr); } }
.install-link-card {
  display: block;
  padding: 1.125rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 0.625rem;
  background: var(--surface);
  transition: border-color 0.2s, transform 0.2s var(--ease), background 0.2s;
}
.install-link-card:hover {
  border-color: var(--border-hover);
  background: var(--elevated);
  transform: translateY(-2px);
  color: var(--text);
}
.install-link-title { display: block; font-size: 0.875rem; font-weight: 500; color: var(--text); }
.install-link-desc { display: block; margin-top: 0.25rem; font-size: 0.75rem; color: var(--muted); }

footer { border-top: 1px solid var(--border); padding: 2rem; text-align: center; font-size: 0.875rem; color: var(--muted); }

/* Gallery carousel */
.gallery-section { overflow: hidden; }
.gallery-section > p { max-width: 36rem; }
.gallery-track {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--muted) transparent;
}
.gallery-track::-webkit-scrollbar { height: 6px; }
.gallery-track::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 99px; }
.gallery-card {
  flex: 0 0 min(78vw, 420px);
  scroll-snap-align: start;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--surface);
  transition: border-color 0.2s, transform 0.25s var(--ease);
  cursor: pointer;
}
.gallery-card:hover, .gallery-card.is-active {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}
.gallery-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000;
  object-fit: cover;
}
.gallery-card-meta {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}
.gallery-card-title { color: var(--text); font-weight: 500; }
.gallery-hint {
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--muted);
  text-align: center;
}

.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.25rem; cursor: pointer; }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links, .btn-nav-hide { display: none; }
  .nav-actions .btn-nav-hide { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: 100%; left: 0; right: 0; background: var(--mobile-nav-bg);
    padding: 1rem 1.5rem; border-bottom: 1px solid var(--border);
  }
  .nav { position: relative; flex-wrap: wrap; }
  .step { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
}
