:root {
  --black: #0b0b0d;
  --charcoal: #141416;
  --gunmetal: #1e1e20;
  --red: #c81010;
  --red-dark: #7f1212;
  --brass: #d4af37;
  --bone: #e6d7b3;
  --steel: #7a7f86;
  --copper: #a35b2b;
  --teal: #20b9ac;
  --panel: rgba(20, 20, 22, 0.82);
  --line: rgba(212, 175, 55, 0.34);
  --heading: "Cinzel", Georgia, serif;
  --body: "Inter", Arial, sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 82% 16%, rgba(200, 16, 16, 0.16), transparent 32rem),
    radial-gradient(circle at 9% 50%, rgba(212, 175, 55, 0.1), transparent 30rem),
    linear-gradient(180deg, #060607 0%, #0b0b0d 44%, #141416 100%);
  color: var(--bone);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(212, 175, 55, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.017) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.78), transparent 76%);
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

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

.skip-link:focus {
  top: 1rem;
  left: 1rem;
  z-index: 200;
  width: auto;
  height: auto;
  padding: 0.8rem 1rem;
  clip: auto;
  border-radius: 4px;
  background: var(--brass);
  color: var(--black);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 8, 9, 0.9);
  backdrop-filter: blur(18px);
}

.header-shell {
  width: min(1200px, calc(100% - 32px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
}

.brand-lockup,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.82rem;
  text-decoration: none;
}

.brand-mark {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(212, 175, 55, 0.58);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(200, 16, 16, 0.28), rgba(11, 11, 13, 0.98));
  box-shadow: 0 0 24px rgba(200, 16, 16, 0.22);
}

.brand-mark svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: var(--red);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-lockup strong,
.footer-brand strong {
  display: block;
  color: var(--bone);
  font-family: var(--heading);
  font-size: clamp(1.08rem, 2vw, 1.42rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0;
}

.brand-lockup small,
.footer-brand small {
  display: block;
  margin-top: 0.18rem;
  color: var(--brass);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  color: rgba(230, 215, 179, 0.8);
  font-size: 0.84rem;
  font-weight: 900;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--brass);
}

.menu-toggle {
  display: none;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(20, 20, 22, 0.78);
  color: var(--brass);
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: clamp(720px, 90vh, 940px);
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(7, 7, 8, 0.92), rgba(7, 7, 8, 0.68) 39%, rgba(7, 7, 8, 0.08) 78%),
    linear-gradient(180deg, rgba(7, 7, 8, 0.1), rgba(7, 7, 8, 0.92));
}

.hero-shell,
.section,
.crew-shell,
.site-footer {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-shell {
  position: relative;
  z-index: 1;
  padding: 7rem 0 4rem;
}

.hero-copy {
  width: min(690px, 100%);
}

.eyebrow {
  margin-bottom: 0.82rem;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

h1,
h2,
h3 {
  color: var(--bone);
  font-family: var(--heading);
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 1.1rem;
  font-size: clamp(3.1rem, 7.2vw, 6.75rem);
  line-height: 0.98;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.05rem, 4.6vw, 4.35rem);
  line-height: 1.04;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.24rem;
  line-height: 1.18;
}

.hero-copy p:not(.eyebrow),
.section-heading p,
.pit-copy > p,
.crew-shell > p {
  color: rgba(230, 215, 179, 0.88);
  font-size: clamp(1.04rem, 1.8vw, 1.25rem);
}

.hero-actions,
.crew-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 0.86rem 1.15rem;
  font-weight: 900;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

.button-primary {
  border: 1px solid rgba(230, 215, 179, 0.32);
  background: linear-gradient(180deg, #d52a20, #8f1515);
  color: #fff7e2;
}

.button-secondary {
  border: 1px solid rgba(212, 175, 55, 0.48);
  background: rgba(8, 8, 9, 0.66);
  color: var(--bone);
}

.signal-band {
  border-bottom: 1px solid var(--line);
  background: rgba(12, 12, 14, 0.94);
}

.signal-band div {
  width: min(1200px, calc(100% - 32px));
  min-height: 64px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  align-items: center;
  color: rgba(212, 175, 55, 0.92);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.section {
  padding: clamp(4.4rem, 8vw, 7.4rem) 0;
}

.section-heading {
  width: min(850px, 100%);
  margin-bottom: 2.1rem;
}

.lane-grid,
.episode-grid,
.character-grid,
.pit-list {
  display: grid;
  gap: 1rem;
}

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

.lane-grid article,
.episode-card,
.character-card,
.pit-list article {
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.24);
}

.lane-grid article {
  min-height: 276px;
  padding: 1.2rem;
}

.lane-grid p,
.episode-card p,
.character-card p,
.pit-list p,
.care-note {
  color: rgba(230, 215, 179, 0.78);
}

.lane-icon {
  width: 62px;
  height: 62px;
  display: block;
  margin-bottom: 1.15rem;
  border: 1px solid rgba(212, 175, 55, 0.48);
  border-radius: 50%;
  background: rgba(8, 8, 9, 0.9);
  position: relative;
}

.lane-icon::before,
.lane-icon::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 2px solid var(--red);
}

.play::before {
  width: 0;
  height: 0;
  left: 24px;
  top: 18px;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-left: 18px solid var(--red);
  border-right: 0;
}

.book::before {
  border-radius: 3px;
}

.book::after {
  inset: 18px 29px;
  border-width: 0 2px 0 0;
}

.chat::before {
  border-radius: 50%;
}

.chat::after {
  inset: 36px 18px 12px 36px;
  border-width: 0 0 2px 2px;
}

.crew::before {
  border-radius: 50%;
}

.crew::after {
  inset: 35px 13px 13px;
  border-radius: 0 0 18px 18px;
}

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

.episode-card {
  overflow: hidden;
}

.episode-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.episode-card div {
  padding: 1.2rem;
}

.companions-section {
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  background: rgba(20, 20, 22, 0.34);
}

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

.character-card {
  overflow: hidden;
}

.character-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

.character-card.mae img {
  object-position: 50% 8%;
}

.character-card div {
  padding: 1.25rem;
}

.pit-section {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(1.4rem, 5vw, 4.2rem);
  align-items: center;
}

.pit-media {
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.34);
  border-radius: 8px;
  background: var(--panel);
}

.pit-media img {
  width: 100%;
  min-height: 560px;
  object-fit: cover;
}

.pit-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.5rem;
}

.pit-list article {
  min-height: 166px;
  padding: 1.1rem;
}

.crew-section {
  padding: clamp(4.5rem, 8vw, 7.5rem) 0;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(11, 11, 13, 0.96), rgba(127, 18, 18, 0.22)),
    #0b0b0d;
}

.crew-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 0.66fr);
  gap: 1.5rem 3rem;
  align-items: end;
}

.crew-shell .eyebrow,
.crew-shell h2,
.crew-shell > p:first-of-type {
  grid-column: 1;
}

.crew-actions,
.care-note {
  grid-column: 2;
}

.care-note {
  margin: 1rem 0 0;
  font-size: 0.92rem;
}

.site-footer {
  padding: 2.2rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(230, 215, 179, 0.68);
}

.site-footer p {
  margin: 0;
}

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

  .pit-section,
  .crew-shell {
    grid-template-columns: 1fr;
  }

  .crew-actions,
  .care-note {
    grid-column: 1;
  }
}

@media (max-width: 760px) {
  .header-shell {
    min-height: 74px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 74px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(8, 8, 9, 0.98);
  }

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

  .site-nav a {
    padding: 0.9rem;
    border-radius: 6px;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    background: rgba(200, 16, 16, 0.14);
  }

  .hero {
    min-height: 780px;
    align-items: end;
  }

  .hero-media {
    object-position: 36% center;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(7, 7, 8, 0.04), rgba(7, 7, 8, 0.72) 42%, rgba(7, 7, 8, 0.98)),
      linear-gradient(90deg, rgba(7, 7, 8, 0.5), rgba(7, 7, 8, 0.12));
  }

  .hero-shell {
    padding: 5.2rem 0 3rem;
  }

  .signal-band div {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding: 1rem 0;
  }

  .lane-grid,
  .episode-grid,
  .character-grid,
  .pit-list {
    grid-template-columns: 1fr;
  }

  .character-card img {
    aspect-ratio: 5 / 4;
  }

  .character-card.mae img {
    aspect-ratio: 4 / 5;
  }

  .pit-media img {
    min-height: auto;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 15px;
  }

  .hero-shell,
  .section,
  .crew-shell,
  .site-footer,
  .header-shell,
  .signal-band div {
    width: min(100% - 24px, 1200px);
  }

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

  .brand-lockup strong,
  .footer-brand strong {
    font-size: 1rem;
  }

  .brand-lockup small {
    font-size: 0.64rem;
  }

  h1 {
    font-size: clamp(2.58rem, 12.6vw, 4.2rem);
  }

  h2 {
    font-size: clamp(1.9rem, 9vw, 2.85rem);
  }

  .button {
    width: 100%;
  }

  .lane-grid article,
  .pit-list article {
    min-height: auto;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
