:root {
  --bg: #182030;
  --bg-deep: #1b1e22;
  --panel: #202a3a;
  --panel-2: #263246;
  --text: #e5e9f0;
  --muted: #aab4c3;
  --line: rgba(229, 233, 240, .16);
  --red: #c62828;
  --red-bright: #ef5350;
  --yellow: #fbc02d;
  --yellow-soft: #ffe082;
  --shadow: 0 22px 60px rgba(0, 0, 0, .32);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(198, 40, 40, .18), transparent 32rem),
    linear-gradient(180deg, #182030 0%, #1b1e22 44%, #182030 100%);
  color: var(--text);
  font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0 0 1rem;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
  letter-spacing: 0;
}

h1 {
  color: var(--yellow);
  font-size: clamp(2rem, 4.8vw, 4.35rem);
  max-width: 13ch;
  background: linear-gradient(90deg, var(--yellow) 0%, #fff8df 48%, var(--red-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 3px 0 rgba(0, 0, 0, .22);
  -webkit-text-fill-color: transparent;
}

h2 {
  position: relative;
  color: #fff8df;
  font-size: clamp(1.45rem, 2.6vw, 2.35rem);
  padding-left: .85rem;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .18);
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: .12em;
  width: 4px;
  height: .92em;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--yellow), var(--red));
  box-shadow: 0 0 18px rgba(251, 192, 45, .32);
}

h3 {
  color: var(--yellow-soft);
  font-size: 1.12rem;
}

.skip-link {
  position: fixed;
  top: -4rem;
  left: 1rem;
  z-index: 100;
  background: var(--yellow);
  color: #1b1e22;
  padding: .7rem 1rem;
  border-radius: 6px;
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(24, 32, 48, .86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  container-type: inline-size;
  container-name: site-header;
}

.nav-wrap {
  width: min(var(--max), calc(100% - 2rem));
  min-height: 72px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 330px) minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-weight: 800;
  min-width: 0;
  max-width: 100%;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(251, 192, 45, .65);
  border-radius: 8px;
  background: #111722;
  color: #fff8df;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.brand-mark picture,
.brand-mark img {
  width: 100%;
  height: 100%;
}

.brand-mark img {
  object-fit: cover;
}

.brand-text {
  color: #fff;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.primary-nav {
  position: static;
  inset: auto;
  z-index: auto;
  display: flex;
  justify-content: flex-end;
  min-width: 0;
  align-items: center;
  gap: .25rem;
  padding: 0;
  background: transparent;
  border-bottom: 0;
  box-shadow: none;
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .38rem;
  white-space: nowrap;
  border-radius: 999px;
  color: var(--muted);
  padding: .56rem .86rem;
  font-size: .94rem;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.primary-nav svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  background: rgba(251, 192, 45, .14);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(251, 192, 45, .32), 0 8px 22px rgba(0, 0, 0, .22);
  transform: translateY(-1px);
}

.primary-nav .nav-cta {
  margin-left: .35rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red), #9f2020);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(198, 40, 40, .28);
}

.primary-nav .nav-cta:hover,
.primary-nav .nav-cta:focus-visible {
  background: linear-gradient(135deg, #e33a3a, #a51f1f);
  box-shadow: 0 14px 30px rgba(198, 40, 40, .42), inset 0 0 0 1px rgba(251, 192, 45, .36);
}

.nav-toggle {
  display: none;
  position: relative;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(251, 192, 45, .48);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 248, 223, .2), transparent 32%),
    linear-gradient(135deg, rgba(198, 40, 40, .92), rgba(24, 32, 48, .88));
  color: #fff8df;
  padding: 0;
  align-items: center;
  justify-content: center;
  justify-self: end;
  z-index: 120;
  box-shadow: 0 10px 26px rgba(198, 40, 40, .28), inset 0 0 0 1px rgba(255, 255, 255, .08);
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  transform: translateY(-1px) scale(1.04);
  border-color: rgba(251, 192, 45, .82);
  box-shadow: 0 14px 32px rgba(198, 40, 40, .4), 0 0 0 5px rgba(251, 192, 45, .12);
}

.primary-nav.is-open {
  display: flex;
}

.nav-toggle-icon {
  display: inline-grid;
  gap: 4px;
  width: 18px;
}

.nav-toggle .nav-line {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform .2s ease, opacity .2s ease, background .2s ease;
}

.nav-toggle-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

body.nav-open .nav-toggle {
  border-color: rgba(251, 192, 45, .55);
  color: var(--yellow);
  background: rgba(251, 192, 45, .08);
}

body.nav-open .nav-toggle .nav-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

body.nav-open .nav-toggle .nav-line:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle .nav-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (min-width: 1221px) {
  .primary-nav,
  .primary-nav.is-open {
    position: static;
    inset: auto;
    z-index: auto;
    display: flex;
    justify-content: flex-end;
    min-width: 0;
    gap: .25rem;
    padding: 0;
    background: transparent;
    border-bottom: 0;
    box-shadow: none;
  }

  .primary-nav .nav-cta {
    margin-left: .35rem;
    grid-column: auto;
  }
}

@container site-header (max-width: 760px) {
  .nav-wrap {
    grid-template-columns: minmax(0, 1fr) 52px;
    gap: .75rem;
  }

  .brand {
    max-width: none;
    min-width: 0;
    overflow: hidden;
  }

  .brand-text {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-toggle {
    display: inline-flex !important;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(251, 192, 45, .46);
    border-radius: 50%;
    background: #fff8df;
    color: var(--red);
    padding: 0;
    visibility: visible;
    opacity: 1;
    justify-self: end;
    z-index: 120;
    box-shadow: 0 10px 26px rgba(198, 40, 40, .24), inset 0 0 0 1px rgba(255, 255, 255, .4);
  }

  .primary-nav {
    position: fixed;
    inset: 72px 0 auto 0;
    z-index: 99;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .7rem;
    padding: 1rem max(1rem, calc((100vw - var(--max)) / 2));
    background:
      radial-gradient(circle at top, rgba(198, 40, 40, .22), transparent 18rem),
      linear-gradient(180deg, rgba(24, 32, 48, .98), rgba(27, 30, 34, .98));
    border-bottom: 1px solid rgba(251, 192, 45, .22);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .38);
  }

  .primary-nav.is-open {
    display: grid;
  }

  .primary-nav a {
    min-height: 48px;
    justify-content: center;
    padding: .85rem .9rem;
    background: rgba(229, 233, 240, .07);
    border: 1px solid rgba(229, 233, 240, .12);
    color: #e5e9f0;
  }

  .primary-nav .nav-cta {
    margin-left: 0;
    text-align: center;
    grid-column: 1 / -1;
  }
}

.section-band {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(27, 30, 34, .78), rgba(32, 42, 58, .64));
  border-block: 1px solid var(--line);
}

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

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, .78fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.hero-copy {
  max-width: 740px;
}

.eyebrow {
  margin: 0 0 .85rem;
  color: var(--yellow);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero-subtitle {
  max-width: 680px;
  margin-top: 1.35rem;
  color: #dbe2ed;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
}

.hero-actions,
.cta-box {
  display: flex;
  align-items: center;
  gap: .9rem;
  flex-wrap: wrap;
}

.hero-actions {
  margin: 2rem 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  gap: .55rem;
  border-radius: 999px;
  padding: .82rem 1.22rem;
  font-weight: 900;
  line-height: 1.1;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: linear-gradient(135deg, #ef3f3f, #941c1c);
  border-color: rgba(251, 192, 45, .58);
  box-shadow: 0 18px 42px rgba(198, 40, 40, .48), 0 0 0 4px rgba(251, 192, 45, .08);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(251, 192, 45, .16);
  border-color: rgba(251, 192, 45, .82);
  color: #fff8df;
  box-shadow: 0 14px 32px rgba(251, 192, 45, .12);
}

.btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-primary {
  background: linear-gradient(135deg, var(--red), #9f2020);
  color: #fff;
  box-shadow: 0 14px 32px rgba(198, 40, 40, .35);
  border: 1px solid rgba(251, 192, 45, .22);
}

.btn-secondary {
  border: 1px solid rgba(251, 192, 45, .55);
  background: rgba(251, 192, 45, .08);
  color: var(--yellow-soft);
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
  margin: 0;
}

.quick-facts div,
.info-tile,
.feature-block,
.step-card,
.feature-list article,
.faq-list details,
.cta-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(32, 42, 58, .78);
  box-shadow: var(--shadow);
}

.info-tile,
.feature-block,
.step-card,
.feature-list article,
.faq-list details {
  position: relative;
  overflow: hidden;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease;
}

.info-tile::before,
.feature-block::before,
.step-card::before,
.feature-list article::before,
.faq-list details::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(135deg, rgba(251, 192, 45, .16), transparent 42%, rgba(198, 40, 40, .16));
  transition: opacity .22s ease;
}

.info-tile:hover,
.feature-block:hover,
.step-card:hover,
.feature-list article:hover,
.faq-list details:hover {
  transform: translateY(-4px);
  border-color: rgba(251, 192, 45, .42);
  background: rgba(38, 50, 70, .88);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .38), 0 0 0 1px rgba(251, 192, 45, .08);
}

.info-tile:hover::before,
.feature-block:hover::before,
.step-card:hover::before,
.feature-list article:hover::before,
.faq-list details:hover::before {
  opacity: 1;
}

.quick-facts div {
  padding: .9rem;
  box-shadow: none;
}

.quick-facts dt {
  color: var(--muted);
  font-size: .78rem;
}

.quick-facts dd {
  margin: .15rem 0 0;
  color: #fff;
  font-weight: 800;
}

.hero-media {
  position: relative;
  margin: 0;
  align-self: stretch;
}

.hero-media picture {
  display: block;
  height: 100%;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid rgba(251, 192, 45, .35);
  border-radius: var(--radius);
  background: #111722;
  box-shadow: 0 34px 80px rgba(0, 0, 0, .45);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media figcaption,
.image-frame figcaption,
.wide-figure figcaption,
.gallery-item figcaption {
  color: var(--muted);
  font-size: .86rem;
}

.hero-media figcaption {
  margin-top: .7rem;
  text-align: right;
}

.section-head {
  max-width: 840px;
  margin-bottom: 2rem;
}

.section-head p:last-child {
  color: var(--muted);
  font-size: 1.05rem;
}

.info-grid,
.content-grid,
.steps,
.feature-list {
  display: grid;
  gap: 1rem;
}

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

.info-tile {
  padding: 1.25rem;
}

.tile-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 1rem;
  border-radius: 8px;
  background: rgba(198, 40, 40, .22);
  color: var(--yellow);
  font-weight: 900;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.split-reverse {
  grid-template-columns: minmax(280px, 510px) minmax(0, 1fr);
}

.split-reverse .text-panel {
  order: 2;
}

.text-panel p {
  color: #dbe2ed;
}

.check-list {
  display: grid;
  gap: .7rem;
  padding: 0;
  margin: 1.4rem 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.6rem;
  color: #dce3ed;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: .72rem;
  left: 0;
  width: .65rem;
  height: .65rem;
  border-radius: 3px;
  background: var(--yellow);
  box-shadow: 0 0 0 4px rgba(251, 192, 45, .12);
}

.image-frame,
.wide-figure,
.feature-block figure,
.gallery-item {
  margin: 0;
}

.image-frame picture,
.wide-figure picture,
.feature-block picture,
.gallery-item picture {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #111722;
  transition: transform .26s ease, border-color .26s ease, box-shadow .26s ease;
}

.image-frame picture:hover,
.wide-figure picture:hover,
.feature-block picture:hover,
.gallery-item picture:hover {
  transform: translateY(-3px) scale(1.01);
  border-color: rgba(251, 192, 45, .52);
  box-shadow: 0 22px 58px rgba(0, 0, 0, .36), 0 0 34px rgba(198, 40, 40, .18);
}

.image-frame img,
.wide-figure img,
.feature-block img,
.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.image-frame figcaption,
.wide-figure figcaption {
  margin-top: .7rem;
}

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

.feature-block {
  overflow: hidden;
}

.feature-block h3,
.feature-block p {
  padding-inline: 1.05rem;
}

.feature-block h3 {
  margin-top: 1.1rem;
}

.feature-block p {
  color: var(--muted);
  padding-bottom: 1.2rem;
}

.character-list {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: 1.2rem 0;
}

.character-list span {
  border: 1px solid rgba(251, 192, 45, .34);
  border-radius: 6px;
  background: rgba(251, 192, 45, .08);
  color: #fff6d8;
  padding: .45rem .68rem;
  font-weight: 800;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.character-list span:hover {
  transform: translateY(-2px);
  border-color: rgba(251, 192, 45, .76);
  background: rgba(198, 40, 40, .22);
}

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

.step-card {
  padding: 1.2rem;
}

.step-card span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: .85rem;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-weight: 900;
}

.step-card p,
.feature-list p {
  color: var(--muted);
}

.wide-figure {
  margin-top: 1.25rem;
}

.wide-figure img {
  aspect-ratio: 16 / 7;
}

.feature-list {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.feature-list article {
  padding: 1rem;
}

.gallery {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  align-items: center;
  gap: .75rem;
}

.gallery-track {
  overflow: hidden;
  border-radius: var(--radius);
}

.gallery-item {
  display: none;
}

.gallery-item.is-active {
  display: block;
}

.gallery-item img {
  aspect-ratio: 16 / 8;
}

.gallery-item figcaption {
  padding-top: .75rem;
}

.gallery-btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(32, 42, 58, .92);
  color: var(--yellow);
  font-size: 2rem;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.gallery-btn:hover,
.gallery-btn:focus-visible {
  transform: scale(1.08);
  border-color: rgba(251, 192, 45, .72);
  background: rgba(198, 40, 40, .34);
  box-shadow: 0 14px 32px rgba(198, 40, 40, .24);
}

.gallery-btn svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.timeline {
  display: grid;
  gap: .75rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 135px minmax(0, 1fr);
  gap: 1rem;
  padding: .95rem 1rem;
  border-left: 4px solid var(--red);
  border-radius: 0 8px 8px 0;
  background: rgba(32, 42, 58, .72);
  transition: transform .22s ease, background .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.timeline li:hover {
  transform: translateX(6px);
  background: rgba(38, 50, 70, .9);
  border-left-color: var(--yellow);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .28);
}

.timeline time {
  color: var(--yellow);
  font-weight: 900;
}

.faq-list {
  display: grid;
  gap: .8rem;
}

.faq-list details {
  padding: 0;
  box-shadow: none;
}

.faq-list summary {
  cursor: pointer;
  padding: 1rem 1.1rem;
  color: #fff;
  font-weight: 900;
  transition: color .2s ease;
}

.faq-list details:hover summary,
.faq-list details[open] summary {
  color: var(--yellow-soft);
}

.faq-list p {
  margin: 0;
  padding: 0 1.1rem 1rem;
  color: var(--muted);
}

.cta-section {
  padding-top: 2rem;
}

.cta-box {
  justify-content: space-between;
  padding: clamp(1.3rem, 4vw, 2rem);
}

.cta-box p {
  max-width: 720px;
  color: var(--muted);
}

.friend-links {
  padding: clamp(2.8rem, 6vw, 4.5rem) 0;
  border-top: 1px solid rgba(251, 192, 45, .16);
  background:
    radial-gradient(circle at 50% 0%, rgba(198, 40, 40, .28), transparent 28rem),
    radial-gradient(circle at 50% 100%, rgba(251, 192, 45, .16), transparent 20rem),
    linear-gradient(180deg, rgba(24, 32, 48, .98), rgba(27, 30, 34, .96));
}

.friend-links-inner {
  text-align: center;
}

.friend-links h2 {
  display: inline-block;
  padding-left: .85rem;
  margin-bottom: 1.2rem;
}

.friend-link-list {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: .8rem;
}

.friend-link-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid rgba(251, 192, 45, .28);
  border-radius: 999px;
  background: rgba(229, 233, 240, .08);
  color: #fff8df;
  padding: .72rem 1.25rem;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .24);
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.friend-link-list a:hover,
.friend-link-list a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(251, 192, 45, .64);
  background: linear-gradient(135deg, rgba(198, 40, 40, .86), rgba(251, 192, 45, .18));
  box-shadow: 0 16px 34px rgba(198, 40, 40, .28);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #141a26;
  color: var(--muted);
  padding: 1.5rem 0;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-grid p {
  margin: 0;
}

.footer-grid nav {
  display: flex;
  gap: .85rem;
  flex-wrap: wrap;
}

.footer-grid a {
  color: var(--yellow-soft);
  transition: color .2s ease, text-shadow .2s ease;
}

.footer-grid a:hover,
.footer-grid a:focus-visible {
  color: #fff8df;
  text-shadow: 0 0 18px rgba(251, 192, 45, .32);
}

@media (min-width: 1221px) and (max-width: 1280px) {
  .primary-nav a {
    padding-inline: .48rem;
    font-size: .88rem;
  }
}

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

@media (max-width: 1220px) {
  body {
    padding-top: 72px;
  }

  .site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    background: rgba(17, 23, 34, .98);
    box-shadow: 0 12px 34px rgba(0, 0, 0, .32);
  }

  .nav-wrap {
    grid-template-columns: minmax(0, 1fr) 52px;
    gap: .75rem;
  }

  .nav-toggle {
    display: inline-flex !important;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(251, 192, 45, .46);
    border-radius: 50%;
    background: #fff8df;
    color: var(--red);
    padding: 0;
    visibility: visible;
    opacity: 1;
    justify-self: end;
    z-index: 110;
    box-shadow: 0 10px 26px rgba(198, 40, 40, .24), inset 0 0 0 1px rgba(255, 255, 255, .4);
  }

  .nav-toggle:hover,
  .nav-toggle:focus-visible {
    background: #fff;
    color: #d8294a;
    border-color: rgba(216, 41, 74, .45);
    box-shadow: 0 14px 32px rgba(198, 40, 40, .32), 0 0 0 5px rgba(216, 41, 74, .1);
  }

  .brand {
    max-width: none;
    min-width: 0;
    overflow: hidden;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
  }

  .brand-text {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .primary-nav {
    position: fixed;
    inset: 72px 0 auto 0;
    z-index: 99;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .7rem;
    padding: 1rem max(1rem, calc((100vw - var(--max)) / 2));
    background:
      radial-gradient(circle at top, rgba(198, 40, 40, .22), transparent 18rem),
      linear-gradient(180deg, rgba(24, 32, 48, .98), rgba(27, 30, 34, .98));
    border-bottom: 1px solid rgba(251, 192, 45, .22);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .38);
  }

  .primary-nav.is-open {
    display: grid;
  }

  .primary-nav a {
    min-height: 48px;
    justify-content: center;
    padding: .85rem .9rem;
    background: rgba(229, 233, 240, .07);
    border: 1px solid rgba(229, 233, 240, .12);
    color: #e5e9f0;
  }

  .primary-nav .nav-cta {
    margin-left: 0;
    text-align: center;
    grid-column: 1 / -1;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid,
  .split-layout,
  .split-reverse {
    grid-template-columns: 1fr;
  }

  .split-reverse .text-panel {
    order: 0;
  }

  .hero-media picture {
    min-height: 320px;
  }

  .quick-facts,
  .info-grid,
  .content-grid,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .container,
  .hero-grid,
  .nav-wrap {
    width: min(100% - 1.25rem, var(--max));
  }

  .section-band {
    padding: 3.2rem 0;
  }

  .brand {
    gap: .55rem;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .brand-text {
    font-size: .92rem;
    max-width: calc(100vw - 160px);
  }

  .nav-toggle {
    width: 42px;
    height: 40px;
    padding: 0;
  }

  .nav-toggle-label {
    font-size: .8rem;
  }

  h1 {
    max-width: 100%;
    font-size: 2.1rem;
    overflow-wrap: anywhere;
    word-break: keep-all;
  }

  h2 {
    font-size: 1.55rem;
  }

  .hero-actions,
  .cta-box {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .quick-facts,
  .info-grid,
  .content-grid,
  .steps,
  .feature-list {
    grid-template-columns: 1fr;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: .3rem;
  }

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

  .gallery-btn {
    display: none;
  }

  .gallery-item {
    display: block;
    margin-bottom: 1rem;
  }

  .gallery-item:not(.is-active) {
    display: block;
  }

  .hero-media picture,
  .wide-figure img,
  .gallery-item img {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 1220px) {
  .site-header {
    min-height: 72px;
  }

  .nav-wrap {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .brand {
    flex: 1 1 auto;
    width: auto;
    max-width: calc(100% - 58px);
  }

  .nav-toggle {
    display: inline-flex !important;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
    position: relative;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto;
  }

  .nav-toggle-icon {
    display: inline-grid;
    place-items: center;
    gap: 4px;
    width: 20px;
    height: 16px;
  }

  .nav-toggle .nav-line {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
  }

  .primary-nav {
    left: 0;
    right: 0;
    top: 72px;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }
}

@media (max-width: 620px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    padding-top: 64px;
  }

  main {
    max-width: 100vw;
    overflow: hidden;
  }

  .site-header {
    min-height: 64px;
  }

  .nav-wrap {
    min-height: 64px;
    padding-right: 48px;
  }

  .brand {
    max-width: calc(100% - 52px);
  }

  .brand-text {
    max-width: none;
    font-size: .9rem;
  }

  .nav-toggle {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    flex-basis: 42px;
    min-width: 42px;
    min-height: 40px;
    width: 42px;
    height: 42px;
    z-index: 140;
  }

  .nav-toggle:hover,
  .nav-toggle:focus-visible {
    transform: translateY(-50%);
  }

  .primary-nav {
    top: 64px;
    grid-template-columns: 1fr;
    gap: .55rem;
    padding: .85rem .75rem 1rem;
    max-height: calc(100vh - 64px);
  }

  .container,
  .hero-grid,
  .nav-wrap {
    width: min(100% - 1rem, var(--max));
  }

  .hero {
    min-height: auto;
    padding-top: 2.2rem;
    padding-bottom: 2.4rem;
  }

  .hero-grid {
    display: block;
  }

  .hero-copy {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .eyebrow {
    max-width: 100%;
    margin-bottom: .65rem;
    font-size: .72rem;
    letter-spacing: .06em;
    overflow-wrap: anywhere;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(1.7rem, 7.2vw, 1.95rem);
    line-height: 1.18;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .hero-subtitle {
    max-width: 100%;
    margin-top: 1rem;
    font-size: .98rem;
    line-height: 1.75;
    overflow-wrap: anywhere;
  }

  .hero-actions {
    width: 100%;
    margin: 1.45rem 0 1rem;
    gap: .7rem;
  }

  .btn {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: .78rem 1rem;
  }

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

  .quick-facts div {
    min-width: 0;
    padding: .75rem .8rem;
  }

  .quick-facts dd {
    overflow-wrap: anywhere;
  }

  .hero-media {
    margin-top: 1.3rem;
  }

  .hero-media picture {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .hero-media figcaption {
    text-align: left;
  }
}

@media (max-width: 380px) {
  .brand-text {
    font-size: .82rem;
  }

  h1 {
    font-size: 1.72rem;
  }

  .quick-facts {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
