:root {
  --font-sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;

  --bg-0: #050505;
  --bg-1: #0d0d0f;
  --header-bg: rgba(10, 10, 10, 0.72);
  --panel-bg: rgba(10, 10, 10, 0.92);
  --surface: rgba(255, 255, 255, 0.06);
  --surface-2: rgba(255, 255, 255, 0.1);
  --text: #f6f6f6;
  --muted: rgba(246, 246, 246, 0.72);
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.55);

  --accent: #fd0100;
  --accent-2: #9a0f0e;
  --accent-3: #e90d05;
  --warning: #ff9f0a;

  --radius: 16px;
  --radius-sm: 12px;
  --container: 1120px;

  color-scheme: dark;
}

html[data-theme="light"] {
  --bg-0: #f5f5f6;
  --bg-1: #ffffff;
  --header-bg: rgba(255, 255, 255, 0.72);
  --panel-bg: rgba(255, 255, 255, 0.92);
  --surface: rgba(16, 24, 40, 0.05);
  --surface-2: rgba(16, 24, 40, 0.08);
  --text: #0c0c0e;
  --muted: rgba(12, 12, 14, 0.72);
  --border: rgba(2, 6, 23, 0.12);
  --shadow: 0 18px 55px rgba(2, 6, 23, 0.14);

  color-scheme: light;
}

@media (prefers-color-scheme: light) {
  html:not([data-theme]) {
    --bg-0: #f5f5f6;
    --bg-1: #ffffff;
    --header-bg: rgba(255, 255, 255, 0.72);
    --panel-bg: rgba(255, 255, 255, 0.92);
    --surface: rgba(16, 24, 40, 0.05);
    --surface-2: rgba(16, 24, 40, 0.08);
    --text: #0c0c0e;
    --muted: rgba(12, 12, 14, 0.72);
    --border: rgba(2, 6, 23, 0.12);
    --shadow: 0 18px 55px rgba(2, 6, 23, 0.14);

    color-scheme: light;
  }
}

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

html,
body {
  min-height: 100%;
}

html {
  background-color: var(--bg-0);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(1200px 800px at 10% -10%, rgba(253, 1, 0, 0.22), transparent 62%),
    radial-gradient(900px 650px at 110% 10%, rgba(253, 1, 0, 0.12), transparent 62%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1));
}

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

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.12em;
}

code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

code {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.08em 0.34em;
  border-radius: 10px;
}

:focus-visible {
  outline: 3px solid rgba(253, 1, 0, 0.55);
  outline-offset: 3px;
}

@supports (color: color-mix(in srgb, black 50%, white)) {
  :focus-visible {
    outline-color: color-mix(in srgb, var(--accent) 65%, transparent);
  }
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
}

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

.skip-link {
  position: absolute;
  left: 0.8rem;
  top: 0.8rem;
  padding: 0.6rem 0.8rem;
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow);
  transform: translateY(-140%);
  transition: transform 160ms ease;
  z-index: 999;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-weight: 750;
  letter-spacing: -0.015em;
  position: relative;
}

.brand img {
  display: block;
}

.brand-name {
  font-size: 1.02rem;
}

.header-actions {
  display: inline-flex;
  gap: 0.6rem;
}

.icon-button {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.icon-button:hover {
  background: var(--surface-2);
}

.theme-icon,
.nav-icon {
  width: 20px;
  height: 20px;
  display: block;
  background: currentColor;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

.theme-icon {
  width: 22px;
  height: 22px;
  -webkit-mask-image: url("../img/icons/theme-sun.svg");
  mask-image: url("../img/icons/theme-sun.svg");
}

html[data-theme="light"] .theme-icon {
  -webkit-mask-image: url("../img/icons/theme-moon.svg");
  mask-image: url("../img/icons/theme-moon.svg");
}

.nav-icon {
  -webkit-mask-image: url("../img/icons/nav-menu.svg");
  mask-image: url("../img/icons/nav-menu.svg");
}

body[data-nav-open="true"] .nav-icon {
  -webkit-mask-image: url("../img/icons/nav-close.svg");
  mask-image: url("../img/icons/nav-close.svg");
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 0.55rem;
  border-radius: 10px;
}

.site-nav a:hover {
  color: var(--text);
  background: var(--surface);
}

.site-nav a[aria-current="page"] {
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.site-nav .nav-cta {
  color: var(--text);
  background: linear-gradient(135deg, rgba(253, 1, 0, 0.22), rgba(255, 255, 255, 0.06));
  border: 1px solid var(--border);
}

.nav-toggle {
  display: none;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  z-index: 70;
}

.floating-theme-toggle {
  display: none;
  background: var(--panel-bg);
  box-shadow: var(--shadow);
  border-color: var(--border);
}

@supports (color: color-mix(in srgb, black 50%, white)) {
  .floating-theme-toggle {
    box-shadow:
      var(--shadow),
      0 0 0 2px color-mix(in srgb, var(--text) 34%, transparent);
    border-color: color-mix(in srgb, var(--text) 28%, var(--border));
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.78rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.btn:hover {
  background: var(--surface-2);
}

.btn.primary {
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 18px 40px rgba(253, 1, 0, 0.16);
}

.btn.primary:hover {
  filter: brightness(1.05);
}

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

.btn.subtle:hover {
  background: var(--surface);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.card-cta {
  margin-top: 0.9rem;
}

.hero {
  padding: clamp(3rem, 6vw, 5.8rem) 0 2.4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.6rem, 3vw, 3rem);
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-weight: 650;
}

.hero h1,
.page-hero h1 {
  margin: 0 0 1rem;
  letter-spacing: -0.035em;
  line-height: 1.08;
  font-size: clamp(2.35rem, 5vw, 3.55rem);
}

.lead {
  margin: 0 0 1.4rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
}

.pill-list {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill-list li {
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 650;
  font-size: 0.92rem;
}

.media-frame {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: zoom-in;
  aspect-ratio: 1150 / 838;
  position: relative;
  transition:
    transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 220ms ease;
}

.media-frame img {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  transform-origin: 0 0;
  transition: transform 120ms ease-out, opacity 600ms cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 0;
  color: transparent;
  opacity: 1;
}

.media-frame img:not(.is-loaded) {
  opacity: 0;
}

/* Image loading placeholder */
.media-loading {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--surface) 0%,
    var(--surface-2) 50%,
    var(--surface) 100%
  );
  opacity: 1;
  transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 10;
}

.media-loading.is-complete {
  opacity: 0;
  pointer-events: none;
}

.media-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(253, 1, 0, 0.06) 50%,
    transparent 100%
  );
  animation: media-shimmer 2.4s ease-in-out infinite;
  transform: translateX(-100%);
}

@keyframes media-shimmer {
  0% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Light mode adjustments */
html[data-theme="light"] .media-shimmer {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(253, 1, 0, 0.04) 50%,
    transparent 100%
  );
}

.media-frame:hover {
  transform: none;
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(253, 1, 0, 0.22);
}

.media-frame:active {
  transform: none;
  transition-duration: 90ms;
}

.media-caption {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.section {
  padding: clamp(2.6rem, 5vw, 4.2rem) 0;
}

.section-title {
  margin: 0 0 0.6rem;
  letter-spacing: -0.03em;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.section-subtitle {
  margin: 0 0 1.6rem;
  color: var(--muted);
  max-width: 66ch;
}

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

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

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

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

.card {
  padding: 1.15rem 1.15rem 1.05rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.card h3,
.card h2 {
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.shot {
  margin: 0;
}


.shot figcaption {
  margin-top: 0.65rem;
  font-weight: 700;
  color: var(--muted);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.86);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 450ms ease, visibility 450ms ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-inner {
  position: relative;
  max-width: min(1124px, 94vw);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: scale(0.9);
  transition: transform 550ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox.is-open .lightbox-inner {
  transform: scale(1);
}

.lightbox-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  appearance: none;
  transition: background 150ms ease;
}

.lightbox-close:hover {
  background: rgba(253, 1, 0, 0.55);
}

.cta-section {
  padding-top: 0;
}

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 1.4rem;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  box-shadow: var(--shadow);
}

.cta-card h2 {
  margin: 0 0 0.35rem;
  letter-spacing: -0.03em;
}

.page {
  padding-bottom: 3rem;
}

.page-hero {
  padding: clamp(2.6rem, 5.2vw, 4.4rem) 0 1.8rem;
}

.feature-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.6rem;
  align-items: center;
}

.feature-split.reverse .feature-copy {
  order: 2;
}

.checklist {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.checklist li {
  margin: 0.45rem 0;
}

.steps {
  margin: 0.9rem 0 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

.steps.big li {
  margin: 0.8rem 0;
}

.code-block {
  margin-top: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

html[data-theme="light"] .code-block {
  background: rgba(2, 6, 23, 0.03);
}

.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-weight: 700;
}

.code-block pre {
  margin: 0;
  padding: 0.95rem;
  overflow: auto;
}

.code-block code {
  border: none;
  background: transparent;
  padding: 0;
  border-radius: 0;
  color: inherit;
}

.copy-btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  font-weight: 750;
  cursor: pointer;
}

.copy-btn:hover {
  background: var(--surface-2);
}

.faq details {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  padding: 0.85rem 1rem;
  margin: 0.75rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.faq p {
  margin: 0.65rem 0 0;
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 0.9rem;
  align-items: start;
}

.timeline-dot {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  margin-top: 1.05rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 6px rgba(253, 1, 0, 0.12);
}

.timeline-card {
  padding: 1.1rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
}

.timeline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.timeline-card h2 {
  margin: 0;
  letter-spacing: -0.03em;
}

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--border);
  background: rgba(253, 1, 0, 0.12);
  color: var(--text);
  font-weight: 750;
  font-size: 0.85rem;
}

@supports (color: color-mix(in srgb, black 50%, white)) {
  .site-nav .nav-cta {
    border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  }

  .cta-card {
    border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  }

  .tag {
    border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  }
}

.site-footer {
  position: relative;
  padding: 2.2rem 0 1.6rem;
  background: transparent;
}

html[data-theme="light"] .site-footer {
  background: transparent;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 420px at 18% 20%, rgba(253, 1, 0, 0.16), transparent 60%),
    radial-gradient(780px 380px at 86% 0%, rgba(253, 1, 0, 0.08), transparent 62%),
    linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.22));
  opacity: 0.95;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, black 120px, black 100%);
  mask-image: linear-gradient(to bottom, transparent 0, black 120px, black 100%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

html[data-theme="light"] .site-footer::before {
  background:
    radial-gradient(900px 420px at 18% 20%, rgba(253, 1, 0, 0.08), transparent 60%),
    radial-gradient(780px 380px at 86% 0%, rgba(253, 1, 0, 0.05), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(2, 6, 23, 0.06));
  opacity: 1;
}

.site-footer>.container {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 1.4rem;
}

.footer-links h3 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: var(--text);
}

.footer-links a {
  display: block;
  padding: 0.25rem 0;
  color: var(--muted);
  text-decoration: none;
  font-weight: 650;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-meta {
  position: relative;
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-weight: 650;
}

.footer-meta::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      rgba(253, 1, 0, 0.32) 18%,
      rgba(255, 255, 255, 0.12) 50%,
      rgba(253, 1, 0, 0.32) 82%,
      transparent);
  opacity: 0.55;
}

html[data-theme="light"] .footer-meta::before {
  background: linear-gradient(90deg,
      transparent,
      rgba(253, 1, 0, 0.22) 18%,
      rgba(2, 6, 23, 0.16) 50%,
      rgba(253, 1, 0, 0.22) 82%,
      transparent);
  opacity: 0.8;
}

.not-found {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 3rem 0;
}

.not-found h1 {
  margin: 1rem 0 0.5rem;
  letter-spacing: -0.03em;
}

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

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

  .feature-split {
    grid-template-columns: 1fr;
  }

  .feature-split.reverse .feature-copy {
    order: 0;
  }

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

@media (max-width: 680px) {
  .section-header-row {
    flex-direction: column;
    align-items: flex-start;
  }

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

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

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

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    height: 100dvh;
    width: min(360px, 92vw);
    padding: 5.2rem 1.1rem 1.25rem;
    background: var(--panel-bg);
    border-left: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform: translateX(105%);
    transition: transform 180ms ease;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 100;
  }

  .site-nav .nav-close {
    display: none;
    position: absolute;
    top: 0.85rem;
    right: 1.1rem;
  }

  body[data-nav-open="true"] .site-nav .nav-close {
    display: inline-flex;
  }

  body[data-nav-open="true"] .site-nav {
    transform: translateX(0);
  }

  .site-nav a {
    padding: 0.85rem 0.85rem;
    border-radius: 14px;
  }

  .site-nav .nav-cta {
    margin-top: 0.35rem;
  }

  .floating-theme-toggle {
    display: inline-flex;
    position: fixed;
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
    z-index: 75;
  }

  body[data-nav-open="true"] .floating-theme-toggle {
    display: none;
  }
}

html.no-js .nav-overlay,
html.no-js .nav-toggle,
html.no-js .theme-toggle {
  display: none;
}

@media (max-width: 900px) {
  html.no-js .site-nav {
    position: static;
    height: auto;
    width: auto;
    padding: 0.8rem 0 0.2rem;
    background: transparent;
    border-left: none;
    box-shadow: none;
    transform: none;
  }

  html.no-js .header-inner {
    flex-wrap: wrap;
    align-items: flex-start;
  }
}

/* ============================================================
   SCROLL & PAGE ANIMATIONS
   ============================================================ */

/* Hero entrance — auto-play staggered on load */
.hero-copy > * {
  animation: hero-rise 1.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-copy > *:nth-child(1) { animation-delay: 50ms; }
.hero-copy > *:nth-child(2) { animation-delay: 120ms; }
.hero-copy > *:nth-child(3) { animation-delay: 200ms; }
.hero-copy > *:nth-child(4) { animation-delay: 275ms; }
.hero-copy > *:nth-child(5) { animation-delay: 350ms; }

.hero-media {
  animation: hero-media-rise 2.0s cubic-bezier(0.16, 1, 0.3, 1) 200ms both;
}

.page-hero > .container > * {
  animation: hero-rise 1.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.page-hero > .container > *:nth-child(1) { animation-delay: 30ms; }
.page-hero > .container > *:nth-child(2) { animation-delay: 100ms; }
.page-hero > .container > *:nth-child(3) { animation-delay: 165ms; }
.page-hero > .container > *:nth-child(4) { animation-delay: 230ms; }

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-media-rise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Scroll reveal — elements tagged via JS */
[data-reveal] {
  opacity: 0;
  transition:
    opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal="up"]    { transform: translateY(28px); }
[data-reveal="left"]  { transform: translateX(-28px); }
[data-reveal="right"] { transform: translateX(28px); }
[data-reveal="scale"] { transform: scale(0.96) translateY(10px); }

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

/* Staggered grid reveal — containers tagged via JS */
[data-stagger] > * {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-stagger].is-visible > *:nth-child(1) { transition-delay: 0ms; }
[data-stagger].is-visible > *:nth-child(2) { transition-delay: 75ms; }
[data-stagger].is-visible > *:nth-child(3) { transition-delay: 150ms; }
[data-stagger].is-visible > *:nth-child(4) { transition-delay: 225ms; }
[data-stagger].is-visible > *:nth-child(5) { transition-delay: 300ms; }
[data-stagger].is-visible > *:nth-child(6) { transition-delay: 375ms; }

[data-stagger].is-visible > * {
  opacity: 1;
  transform: none;
}

/* Button micro-interactions */
.btn {
  transition:
    background 180ms ease,
    filter 180ms ease,
    transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 200ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
  transition-duration: 80ms;
}

.btn.primary:hover {
  box-shadow: 0 22px 50px rgba(253, 1, 0, 0.3);
}

/* Card hover lift */
.card {
  transition:
    background 200ms ease,
    transform 260ms cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 260ms ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 26px 60px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(253, 1, 0, 0.1);
}

/* Nav & footer link transitions */
.site-nav a {
  transition: color 140ms ease, background 140ms ease;
}

.footer-links a {
  transition: color 140ms ease;
}

/* Pill list hover */
.pill-list li {
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.pill-list li:hover {
  background: linear-gradient(135deg, rgba(253, 1, 0, 0.1), rgba(255, 255, 255, 0.06));
  border-color: rgba(253, 1, 0, 0.26);
  color: var(--text);
}

/* Icon button micro-interactions */
.icon-button {
  transition:
    background 150ms ease,
    transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1),
    filter 200ms ease;
}

.icon-button.theme-toggle[data-transitioning="true"] {
  animation: theme-toggle-pulse 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes theme-toggle-pulse {
  0% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.2);
  }
  100% {
    filter: brightness(1);
  }
}

.icon-button:hover {
  transform: scale(1.07);
}

.icon-button:active {
  transform: scale(0.94);
  transition-duration: 80ms;
}

/* Brand hover */
.brand {
  transition: opacity 150ms ease;
}

.brand:hover {
  opacity: 0.8;
}

/* Header scroll-depth shadow */
.site-header {
  transition: box-shadow 250ms ease;
}

.site-header.is-scrolled {
  box-shadow: 0 4px 36px rgba(0, 0, 0, 0.45);
}

/* Ambient timeline dot pulse */
.timeline-dot {
  animation: dot-pulse 3s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% {
    box-shadow: 0 0 0 6px rgba(253, 1, 0, 0.12);
  }
  50% {
    box-shadow: 0 0 0 11px rgba(253, 1, 0, 0.05), 0 0 20px rgba(253, 1, 0, 0.16);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
