/* ==========================================================================
   D2RUST website
   Palette sampled from the owner's D2RUST art (Documents/D2RUST art):
   #050101 near-black · #2b0605 / #4e0d08 deep blood · #621e11 / #933a19 ember
   #e7630f fire · #f7a811 / #facf1f / #fae445 gold
   ========================================================================== */

:root {
  --ink: #070202;
  --ink-2: #0d0504;
  --panel: #120706;
  --panel-2: #170a07;
  --line: #2b1510;
  --line-2: #3d1f16;
  --bone: #f2e4cf;
  --muted: #bfa88f;
  --dim: #927b67;
  --ember: #e7630f;
  --ember-2: #f28a22;
  --gold: #f7b733;
  --gold-2: #facf1f;
  --blood: #6f160c;

  --serif: "Palatino Linotype", "Book Antiqua", Palatino, "URW Palladio L", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "Cascadia Mono", Consolas, "Liberation Mono", monospace;

  --wrap: 1160px;
  --header-h: 72px;
  --radius: 5px;
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(70% 46% at 84% -10%, rgba(231, 99, 15, 0.11), transparent 62%),
    radial-gradient(52% 38% at -8% 16%, rgba(111, 22, 12, 0.15), transparent 66%),
    var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #ffd98a;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--bone);
  text-wrap: balance;
}

::selection {
  background: var(--ember);
  color: #120604;
}

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

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

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

[id] {
  scroll-margin-top: calc(var(--header-h) + 20px);
}

code {
  padding: 0.08em 0.36em;
  border: 1px solid #2b1510;
  border-radius: 3px;
  background: #1a0b08;
  color: #edc48c;
  font-family: var(--mono);
  font-size: 0.84em;
  overflow-wrap: anywhere;
}

.skip-link {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--gold);
  color: #140604;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: top 160ms ease;
}

.skip-link:focus {
  top: 0;
  color: #140604;
}

.eyebrow {
  margin: 0 0 14px;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.22em;
  line-height: 1.4;
  text-transform: uppercase;
  color: #d69a56;
}

.lede {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.section {
  padding: 96px 0;
}

.section--tight {
  padding: 48px 0 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 44px;
}

.section-head h2 {
  margin: 0 0 16px;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.section-head .lede {
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   Buttons and icon links
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease,
    transform 160ms ease, box-shadow 160ms ease;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn--primary {
  background: linear-gradient(180deg, #f28a22 0%, #dd5b0d 100%);
  border-color: #ffb35c;
  color: #160704;
  box-shadow: 0 12px 32px rgba(231, 99, 15, 0.22), inset 0 1px 0 rgba(255, 232, 190, 0.45);
}

.btn--primary:hover {
  background: linear-gradient(180deg, #ffa33c 0%, #ed680f 100%);
  color: #120602;
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(231, 99, 15, 0.3), inset 0 1px 0 rgba(255, 232, 190, 0.55);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--secondary {
  background: rgba(20, 8, 7, 0.75);
  border-color: var(--line-2);
  color: var(--gold);
}

.btn--secondary:hover {
  background: var(--panel-2);
  border-color: #7d3a1c;
  color: #ffd98a;
}

.btn--lg {
  min-height: 62px;
  padding: 0 34px;
  font-size: 0.88rem;
}

.icon-link {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: rgba(20, 8, 7, 0.55);
  color: #d8b98e;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease,
    transform 160ms ease;
}

.icon-link:hover {
  color: #ffd791;
  border-color: #9b4a1c;
  background: #1a0a07;
  transform: translateY(-1px);
}

.icon-link svg {
  width: 18px;
  height: 18px;
}

.icon-link--lg {
  width: 54px;
  height: 54px;
  border-radius: var(--radius);
}

.icon-link--lg svg {
  width: 22px;
  height: 22px;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 2, 2, 0.9);
  border-bottom: 1px solid rgba(247, 183, 51, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  border: 1px solid #4a2416;
  border-radius: 6px;
  object-fit: cover;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.14rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1;
  color: #f5cd76;
  text-transform: uppercase;
}

.brand:hover .brand-name {
  color: #ffe2a0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  position: relative;
  padding: 9px 1px;
  color: #cbb6a1;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 150ms ease;
}

.nav a:hover {
  color: var(--gold-2);
}

.nav a[aria-current="page"] {
  color: #f7d79a;
}

.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ember), transparent);
}

.socials {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: transparent;
  color: var(--gold);
  cursor: pointer;
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-open .nav-toggle .icon-menu {
  display: none;
}

.nav-open .nav-toggle .icon-close {
  display: block;
}

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

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(760px, calc(100svh - var(--header-h)));
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.hero__art {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% 40%;
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 2, 2, 0.98) 0%, rgba(7, 2, 2, 0.94) 32%, rgba(7, 2, 2, 0.64) 54%, rgba(7, 2, 2, 0.12) 78%, rgba(7, 2, 2, 0.52) 100%),
    linear-gradient(0deg, var(--ink) 0%, rgba(7, 2, 2, 0.6) 9%, transparent 30%),
    linear-gradient(180deg, rgba(7, 2, 2, 0.5) 0%, transparent 26%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--wrap);
  padding-block: 78px 88px;
}

.hero__logo {
  width: min(380px, 64vw);
  margin-bottom: 30px;
  filter: drop-shadow(0 16px 44px rgba(231, 99, 15, 0.18));
}

.hero h1 {
  max-width: 680px;
  margin: 0 0 20px;
  font-size: clamp(2.5rem, 5.2vw, 4.35rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.02;
  color: #f7ead5;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero .lede {
  max-width: 55ch;
  font-size: 1.06rem;
}

.hero .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.hero .btn--primary {
  min-height: 56px;
  padding-inline: 28px;
}

.hero-note {
  margin: 22px 0 0;
  color: var(--dim);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-note span {
  margin-inline: 8px;
  color: #5e3a25;
}

/* --------------------------------------------------------------------------
   Features, status, callouts
   -------------------------------------------------------------------------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 16px;
}

.feature {
  position: relative;
  overflow: hidden;
  padding: 28px 26px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(20, 8, 7, 0.72), rgba(10, 4, 3, 0.35));
}

.feature::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(231, 99, 15, 0.75), transparent);
  opacity: 0;
  transition: opacity 180ms ease;
}

.feature:hover::before {
  opacity: 1;
}

.feature svg {
  width: 26px;
  height: 26px;
  color: var(--ember);
}

.feature h3 {
  margin: 18px 0 9px;
  font-size: 1.2rem;
  line-height: 1.25;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.65;
}

.feature a {
  color: var(--gold);
}

.status-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 26px;
  margin-top: 44px;
  padding: 17px 22px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--ember);
  border-radius: 3px;
  background: rgba(18, 7, 6, 0.55);
  color: var(--muted);
  font-size: 0.86rem;
}

.status-band p {
  margin: 0;
}

.status-band strong {
  color: var(--gold);
  font-weight: 650;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 12px rgba(231, 99, 15, 0.9);
  vertical-align: 1px;
}

.callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 26px;
  padding: 34px 38px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background:
    radial-gradient(80% 140% at 0% 0%, rgba(78, 13, 8, 0.28), transparent 60%),
    linear-gradient(110deg, rgba(23, 9, 7, 0.9), rgba(9, 3, 2, 0.7));
}

.callout__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid #4a2416;
  border-radius: 50%;
  background: #160806;
  color: var(--gold);
}

.callout__icon svg {
  width: 25px;
  height: 25px;
}

.callout h2 {
  margin: 0 0 8px;
  font-size: 1.55rem;
  line-height: 1.2;
}

.callout p {
  max-width: 72ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.source-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 42px 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(70% 160% at 92% 0%, rgba(231, 99, 15, 0.1), transparent 60%),
    linear-gradient(180deg, rgba(18, 8, 6, 0.8), rgba(8, 3, 2, 0.55));
}

.source-card h2 {
  margin: 0 0 10px;
  font-size: clamp(1.65rem, 3vw, 2.2rem);
}

.source-card p {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.source-card .eyebrow {
  margin-bottom: 10px;
}

/* --------------------------------------------------------------------------
   Page hero (inner pages)
   -------------------------------------------------------------------------- */

.page-hero {
  padding: 78px 0 50px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(60% 130% at 12% 0%, rgba(147, 54, 25, 0.2), transparent 62%),
    radial-gradient(40% 100% at 90% 10%, rgba(231, 99, 15, 0.07), transparent 60%);
}

.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.5rem, 4.6vw, 3.7rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.page-hero .lede {
  max-width: 60ch;
}

/* --------------------------------------------------------------------------
   Downloads
   -------------------------------------------------------------------------- */

.download-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 32px;
  padding: 34px 38px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background:
    radial-gradient(70% 160% at 0% 0%, rgba(78, 13, 8, 0.32), transparent 58%),
    linear-gradient(110deg, #170a07, #0b0403);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

.download-card h2 {
  margin: 0 0 10px;
  font-size: 1.7rem;
  line-height: 1.2;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.version-line {
  min-height: 1.3em;
  max-width: 54ch;
  margin: 0;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.5;
}

.version-line[data-state="ok"] {
  color: #caa97b;
}

.version-line[data-state="error"] {
  color: var(--dim);
}

.download-note {
  margin: 14px 0 0;
  color: var(--dim);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.download-fallback {
  margin: 14px 2px 0;
  color: var(--dim);
  font-size: 0.8rem;
}

.faq-body strong,
.steps strong,
.spec dd strong {
  color: #e9d3b5;
  font-weight: 650;
}

.report-cta {
  margin-top: 28px;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--line);
}

.spec {
  padding: 22px 24px;
  background: linear-gradient(180deg, #0e0504, #0a0302);
}

.spec dt {
  margin-bottom: 7px;
  color: #c08a4e;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.spec dd {
  margin: 0;
  color: #e4d4c1;
  font-size: 0.92rem;
  line-height: 1.6;
}

.spec--wide {
  grid-column: 1 / -1;
}

.steps {
  max-width: 850px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 18px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  counter-increment: step;
}

.steps li:first-child {
  padding-top: 0;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  color: var(--ember);
  font-family: var(--serif);
  font-size: 1.75rem;
  line-height: 1.05;
}

.steps h3 {
  margin: 0 0 6px;
  font-size: 1.12rem;
  line-height: 1.3;
}

.steps p {
  max-width: 72ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.steps p + p {
  margin-top: 8px;
}

kbd {
  padding: 1px 6px;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  background: #1a0b08;
  color: #f0c98c;
  font-family: var(--mono);
  font-size: 0.82em;
}

/* --------------------------------------------------------------------------
   Support / FAQ
   -------------------------------------------------------------------------- */

.help-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}

.help-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(20, 8, 7, 0.72), rgba(10, 4, 3, 0.35));
}

.help-card svg {
  width: 24px;
  height: 24px;
  margin-bottom: 16px;
  color: var(--ember);
}

.help-card h2 {
  margin: 0 0 8px;
  font-size: 1.18rem;
}

.help-card p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.91rem;
}

.help-card .btn {
  margin-top: auto;
  min-height: 46px;
  padding-inline: 18px;
  font-size: 0.72rem;
}

.faq {
  max-width: 880px;
}

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

.faq details:first-of-type {
  border-top: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 21px 2px;
  color: #f2dfc6;
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  flex: none;
  color: var(--ember);
  font-family: var(--sans);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 150ms ease;
}

.faq details[open] summary::after {
  content: "\2013";
}

.faq summary:hover {
  color: #ffe2b0;
}

.faq-body {
  max-width: 74ch;
  padding: 0 2px 24px;
  color: var(--muted);
  font-size: 0.94rem;
}

.faq-body p {
  margin: 0 0 12px;
}

.faq-body p:last-child {
  margin-bottom: 0;
}

.faq-body ul {
  margin: 0 0 12px;
  padding-left: 20px;
}

.faq-body li + li {
  margin-top: 5px;
}

.report-list {
  max-width: 720px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 0.94rem;
}

.report-list li + li {
  margin-top: 7px;
}

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */

.error-page {
  display: grid;
  place-items: center;
  min-height: calc(100svh - var(--header-h) - 300px);
  padding: 80px 0 96px;
  text-align: center;
}

.error-inner {
  max-width: 660px;
}

.error-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 26px;
  border: 1px solid #4a2416;
  border-radius: 10px;
}

.error-code {
  margin: 0;
  color: #2b1510;
  font-family: var(--serif);
  font-size: clamp(6rem, 18vw, 10rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 0.9;
  -webkit-text-stroke: 1px rgba(247, 183, 51, 0.38);
}

.error-inner h1 {
  margin: 14px 0 14px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.error-inner .lede {
  margin-inline: auto;
}

.error-inner .actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

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

.site-footer {
  margin-top: 0;
  padding: 58px 0 30px;
  border-top: 1px solid var(--line);
  background: #050101;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 0.8fr;
  gap: 40px;
}

.footer-brand .brand {
  margin-bottom: 16px;
}

.footer-brand p {
  max-width: 34ch;
  margin: 0;
  color: var(--dim);
  font-size: 0.86rem;
}

.footer-col h2 {
  margin: 2px 0 14px;
  color: var(--dim);
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-col ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col a {
  color: var(--muted);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--gold);
  text-decoration: underline;
}

.disclaimer {
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid #1e0e0a;
  color: #8b7663;
  font-size: 0.76rem;
  line-height: 1.65;
}

.disclaimer a {
  color: #b39574;
}

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

@media (prefers-reduced-motion: no-preference) {
  .hero__logo,
  .hero .eyebrow,
  .hero h1,
  .hero .lede,
  .hero .actions,
  .hero-note {
    animation: rise 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .hero .eyebrow {
    animation-delay: 60ms;
  }

  .hero__logo {
    animation-delay: 120ms;
  }

  .hero h1 {
    animation-delay: 180ms;
  }

  .hero .lede {
    animation-delay: 240ms;
  }

  .hero .actions {
    animation-delay: 300ms;
  }

  .hero-note {
    animation-delay: 360ms;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .help-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .help-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 6px 24px 16px;
    border-bottom: 1px solid var(--line);
    background: #090303;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
  }

  .site-header.nav-open .nav {
    display: flex;
  }

  .nav a {
    padding: 14px 0;
    border-bottom: 1px solid #1e0e0a;
    font-size: 0.78rem;
  }

  .nav a:last-child {
    border-bottom: 0;
  }

  .nav a[aria-current="page"]::after {
    display: none;
  }

  .socials {
    margin-left: 12px;
  }

  .hero {
    min-height: 0;
  }

  .hero__art {
    object-position: 68% 30%;
    opacity: 0.78;
  }

  .hero__shade {
    background:
      linear-gradient(180deg, rgba(7, 2, 2, 0.42) 0%, rgba(7, 2, 2, 0.78) 34%, rgba(7, 2, 2, 0.97) 68%, var(--ink) 100%),
      linear-gradient(90deg, rgba(7, 2, 2, 0.8) 0%, rgba(7, 2, 2, 0.1) 100%);
  }

  .hero__inner {
    padding-block: 60px 70px;
  }

  .hero__logo {
    width: min(330px, 72vw);
    margin-bottom: 24px;
  }

  .hero .actions .btn--primary {
    flex: 1 1 100%;
  }

  .hero .icon-link--lg {
    width: 52px;
    height: 52px;
  }

  .callout {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 30px 28px;
  }

  .callout .btn {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .download-card {
    padding: 30px 28px;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .section {
    padding: 70px 0;
  }

  .section--tight {
    padding-top: 34px;
  }

  .section-head {
    margin-bottom: 32px;
  }

  .page-hero {
    padding: 58px 0 38px;
  }

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

  .status-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .source-card {
    padding: 32px 28px;
  }

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

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

  .help-card:last-child {
    grid-column: auto;
  }

  .steps li {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 14px;
  }

  .steps li::before {
    font-size: 1.45rem;
  }

  .download-card {
    align-items: flex-start;
  }

  .download-actions {
    width: 100%;
  }

  .download-actions .btn--primary {
    flex: 1 1 100%;
  }

  .error-inner .actions .btn {
    flex: 1 1 100%;
  }
}

@media (max-width: 460px) {
  .wrap {
    padding-inline: 18px;
  }

  .header-inner {
    gap: 12px;
    min-height: 64px;
  }

  .brand {
    gap: 10px;
  }

  .brand img {
    width: 32px;
    height: 32px;
  }

  .brand-name {
    font-size: 1rem;
    letter-spacing: 0.16em;
  }

  .socials {
    gap: 6px;
    margin-left: 6px;
  }

  .icon-link {
    width: 36px;
    height: 36px;
  }

  .icon-link svg {
    width: 16px;
    height: 16px;
  }

  .nav-toggle {
    width: 38px;
    height: 38px;
  }

  .nav {
    padding-inline: 18px;
  }

  .hero__inner {
    padding-block: 48px 62px;
  }

  .hero-note {
    font-size: 0.68rem;
    letter-spacing: 0.03em;
  }

  .hero-note span {
    margin-inline: 5px;
  }

  .callout {
    grid-template-columns: 1fr;
    padding: 26px 22px;
  }

  .callout__icon {
    width: 46px;
    height: 46px;
  }

  .download-card {
    padding: 26px 22px;
  }

  .btn--lg {
    min-height: 58px;
    padding-inline: 22px;
    font-size: 0.81rem;
  }

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

  .footer-brand {
    grid-column: auto;
  }
}

@media print {
  .site-header,
  .site-footer,
  .hero__art,
  .hero__shade,
  .actions,
  .socials {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .hero {
    min-height: 0;
  }
}
