:root {
  --primary: #f4d000;
  --shadow: #c5a400;
  --outline: #7a4a2a;
  --bg: #0b0b0b;
  --orange: #ff7a1a;
  --green: #9be22d;
  --text: #fff8d1;
}

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

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Rajdhani", "Trebuchet MS", sans-serif;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
  position: relative;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(75vw 55vw at 15% 10%, rgba(244, 208, 0, 0.18), transparent 70%),
    radial-gradient(65vw 45vw at 90% 95%, rgba(255, 122, 26, 0.18), transparent 70%),
    linear-gradient(180deg, #141414, #080808);
}

.site-header {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2.1rem 1.2rem 1.1rem;
  display: grid;
  gap: 1rem;
  align-items: center;
  grid-template-columns: auto 1fr;
}

.logo {
  width: clamp(90px, 18vw, 150px);
  height: auto;
  border-radius: 22px;
  border: 3px solid var(--outline);
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--primary) 45%, transparent),
    0 12px 28px rgba(0, 0, 0, 0.45);
  background: #101010;
  transform-origin: 50% 65%;
  animation: logo-wiggle-in 920ms cubic-bezier(0.22, 0.75, 0.25, 1) both;
}

.logo:hover {
  animation: logo-wiggle-hover 560ms ease;
}

.label {
  margin: 0 0 0.4rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 700;
}

h1 {
  margin: 0;
  font-family: "Chakra Petch", sans-serif;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 0.95;
  color: var(--primary);
  text-shadow: 3px 3px 0 var(--shadow);
}

h1,
.featurette h2,
.section-title,
.blog-post h2,
.cast-card h3 {
  text-wrap: balance;
}

.copy,
.feature-copy,
.section-copy,
.blog-summary {
  text-wrap: pretty;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.studio-byline {
  margin: 0.45rem 0 0;
  color: #f0e6ba;
  font-size: 1.05rem;
  font-weight: 600;
}

main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.2rem 3rem;
}

.site-nav,
.hero,
.page-callout,
.featurette,
.cast-showcase,
.video-showcase,
.blog-feed,
.site-footer {
  opacity: 0;
  animation: fade-rise 620ms ease forwards;
}

.site-nav {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.2rem 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  animation-delay: 80ms;
  z-index: 100;
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--outline) 75%, #1b1710);
  background: rgba(15, 15, 15, 0.82);
  color: #fff1a9;
  text-decoration: none;
  font-weight: 700;
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    color 160ms ease,
    background 160ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: #fff9d8;
  border-color: var(--orange);
  transform: translateY(-2px);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown__menu {
  pointer-events: none;
  clip: rect(0 0 0 0);
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 14rem;
  padding: 0.35rem;
  border: 1px solid color-mix(in srgb, var(--outline) 75%, #1b1710);
  border-radius: 12px;
  background: rgba(15, 15, 15, 0.95);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.nav-dropdown:hover > .nav-dropdown__menu {
  pointer-events: auto;
  clip: auto;
}

.nav-dropdown__link:focus {
  pointer-events: auto;
  clip: auto;
}

.nav-dropdown:has(:focus-visible) > .nav-dropdown__menu {
  pointer-events: auto;
  clip: auto;
}

.nav-dropdown__link {
  display: block;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  color: #fff1a9;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
  transition: background 120ms ease, color 120ms ease;
}

.nav-dropdown__link:hover,
.nav-dropdown__link:focus-visible {
  color: #fff9d8;
  background: rgba(244, 208, 0, 0.1);
}

.nav-dropdown__link[aria-current="page"] {
  color: var(--primary);
  background: rgba(244, 208, 0, 0.08);
}

.nav-link[aria-current="page"] {
  color: #1e1502;
  border-color: var(--primary);
  background: linear-gradient(160deg, #ffe37d 0%, #f4d000 100%);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
}

.hero {
  margin: 1.2rem 0 1.25rem;
  animation-delay: 140ms;
}

.page-callout {
  animation-delay: 190ms;
}

.featurette,
.blog-feed {
  animation-delay: 240ms;
}

.cast-showcase {
  animation-delay: 280ms;
}

.video-showcase {
  animation-delay: 320ms;
}

.site-footer {
  animation-delay: 380ms;
}

.tag {
  margin: 0;
  font-size: clamp(1.08rem, 2.5vw, 1.45rem);
  color: #fff4b4;
}

.copy {
  margin: 0.45rem 0 0;
  font-size: 1.08rem;
  max-width: 44rem;
  color: #f0e6ba;
}

.featurette,
.page-callout,
.blog-feed,
.cast-showcase {
  border: 2px solid var(--outline);
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 1.1rem;
  background:
    linear-gradient(145deg, rgba(244, 208, 0, 0.1), rgba(255, 122, 26, 0.08)),
    rgba(15, 15, 15, 0.95);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.32);
}

.page-callout {
  border-color: color-mix(in srgb, var(--primary) 55%, var(--outline));
  background:
    linear-gradient(155deg, rgba(244, 208, 0, 0.12), rgba(255, 122, 26, 0.1)),
    rgba(14, 14, 14, 0.95);
}

.eyebrow {
  margin: 0;
  font-size: 0.86rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 700;
}

.section-title,
.featurette h2 {
  margin: 0.2rem 0 0;
  font-family: "Chakra Petch", sans-serif;
  color: var(--primary);
  font-size: clamp(1.35rem, 3.4vw, 1.9rem);
}

.section-copy,
.feature-copy {
  margin: 0.35rem 0 0;
  max-width: 44rem;
  font-size: 1.02rem;
  color: #f6ecc5;
}

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

.feature-list li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.7rem;
  border: 1px solid color-mix(in srgb, var(--outline) 78%, #1f1a12);
  border-radius: 9px;
  padding: 0 0.56rem;
  font-size: 0.84rem;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: 0.02em;
  color: #d3c485;
  background: rgba(10, 10, 10, 0.56);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.24);
}

.feature-actions {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.button-link,
.feature-link,
.blog-open-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  color: #fff3b2;
  border: 1px solid color-mix(in srgb, var(--primary) 55%, var(--outline));
  border-radius: 999px;
  padding: 0.35rem 0.72rem;
  font-size: 0.96rem;
  background: rgba(12, 12, 12, 0.8);
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    color 160ms ease;
}

.button-link:hover,
.button-link:focus-visible,
.feature-link:hover,
.feature-link:focus-visible,
.blog-open-link:hover,
.blog-open-link:focus-visible {
  color: #fff9d8;
  border-color: var(--orange);
  transform: translateY(-2px);
}

.button-link--primary {
  color: #201501;
  border-color: #ffd969;
  background: linear-gradient(160deg, #ffe792 0%, #f4d000 100%);
  font-weight: 700;
}

.button-link--primary:hover,
.button-link--primary:focus-visible {
  color: #201501;
  border-color: #fff1af;
}

.page-callout .feature-link {
  margin-top: 0.85rem;
}

.cast-showcase {
  border-color: color-mix(in srgb, var(--primary) 52%, var(--outline));
}

.cast-showcase__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.28rem 0.85rem;
  margin-bottom: 0.8rem;
}

.cast-showcase .section-title {
  margin: 0;
  font-size: clamp(1.05rem, 2.7vw, 1.4rem);
}

.cast-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cast-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  padding: 0.7rem;
  border: 1px solid color-mix(in srgb, var(--primary) 45%, var(--outline));
  border-radius: 14px;
  background:
    linear-gradient(165deg, rgba(26, 17, 10, 0.9), rgba(15, 15, 15, 0.98)),
    rgba(15, 15, 15, 0.98);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.26);
}

.cast-card__art {
  display: grid;
  place-items: end center;
  min-height: 6.1rem;
  height: 6.1rem;
  border: 1px solid color-mix(in srgb, var(--primary) 30%, var(--outline));
  border-radius: 12px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 15%, rgba(244, 208, 0, 0.16), transparent 55%),
    radial-gradient(circle at 50% 100%, rgba(255, 122, 26, 0.14), transparent 58%),
    linear-gradient(180deg, rgba(10, 10, 10, 0.86), rgba(18, 10, 10, 0.98));
}

.cast-card__art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  display: block;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.45));
}

.character-role {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 700;
}

.cast-card h3 {
  margin: 0.15rem 0 0;
  font-family: "Chakra Petch", sans-serif;
  color: var(--primary);
  font-size: 1rem;
}

.cast-card__body p:last-child {
  margin: 0.32rem 0 0;
  color: #f5e7be;
  font-size: 0.94rem;
  line-height: 1.32;
  text-wrap: pretty;
}

.video-showcase {
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
}

.video-frame {
  margin-top: 0.45rem;
  border: 2px solid var(--outline);
  border-radius: 16px;
  padding: 0.45rem;
  background:
    linear-gradient(145deg, rgba(255, 122, 26, 0.12), rgba(244, 208, 0, 0.08)),
    rgba(12, 12, 12, 0.95);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.38);
}

.video-frame iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 11px;
  display: block;
  background: #000;
}

.blog-feed {
  background:
    linear-gradient(145deg, rgba(255, 122, 26, 0.08), rgba(244, 208, 0, 0.08)),
    rgba(15, 15, 15, 0.95);
}

.blog-posts {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.55rem;
}

.blog-post {
  border: 1px solid color-mix(in srgb, var(--primary) 50%, var(--outline));
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  background: rgba(10, 10, 10, 0.72);
}

.blog-post h2 {
  margin: 0;
  font-family: "Chakra Petch", sans-serif;
  font-size: clamp(1.2rem, 3.2vw, 1.5rem);
}

.blog-post a {
  color: var(--primary);
  text-decoration: none;
}

.blog-post a:hover,
.blog-post a:focus-visible {
  color: #ffe684;
  text-decoration: underline;
}

.blog-meta {
  margin: 0.32rem 0 0;
  color: #bcaf78;
  font-size: 0.92rem;
}

.blog-summary {
  margin: 0.42rem 0 0;
  color: #f3e9c0;
}

.blog-open-link {
  margin-top: 0.65rem;
}

.blog-tags {
  max-width: 1000px;
  margin: 0 auto 0.8rem;
  padding: 0 0;
}

.blog-content {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #f0e6ba;
}

.blog-content h2 {
  font-family: "Chakra Petch", sans-serif;
  color: var(--primary);
  font-size: 1.4rem;
  margin: 1.5rem 0 0.5rem;
}

.blog-content h3 {
  font-family: "Chakra Petch", sans-serif;
  color: var(--primary);
  font-size: 1.15rem;
  margin: 1.2rem 0 0.4rem;
}

.blog-content p {
  margin: 0.6rem 0;
}

.blog-content ul,
.blog-content ol {
  margin: 0.6rem 0;
  padding-left: 1.5rem;
}

.blog-content code {
  background: rgba(244, 208, 0, 0.1);
  border: 1px solid rgba(122, 74, 42, 0.5);
  border-radius: 4px;
  padding: 0.15rem 0.35rem;
  font-size: 0.92em;
}

.blog-content pre {
  background: rgba(10, 10, 10, 0.8);
  border: 1px solid var(--outline);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  overflow-x: auto;
}

.blog-content pre code {
  background: none;
  border: none;
  padding: 0;
}

.blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--outline);
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  padding: 8px;
}

.blog-content table {
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.blog-content th,
.blog-content td {
  text-align: left;
  padding: 0.4rem 1rem;
}

.blog-content th,
.blog-content td:first-child {
  font-weight: 700;
  color: var(--primary);
}

.blog-content a {
  color: var(--primary);
  text-decoration: underline;
}

.blog-content a:hover {
  color: #ffe684;
}

.blog-discuss {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--outline);
  text-align: center;
}

.blog-discuss a {
  color: var(--primary);
  text-decoration: underline;
}

.blog-nav {
  margin-top: 1.2rem;
  justify-content: center;
}

.blog-article {
  opacity: 0;
  animation: fade-rise 620ms ease forwards;
  animation-delay: 140ms;
}

.site-footer {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0.8rem 1.2rem 1.4rem;
  color: #ccbf8b;
}

.site-footer p {
  margin: 0;
}

.site-footer p + p {
  margin-top: 0.28rem;
}

.footer-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: #ffe684;
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid #fff0a8;
  outline-offset: 2px;
}

@keyframes logo-wiggle-in {
  0% {
    opacity: 0;
    transform: translateY(-18px) scale(0.84) rotate(-14deg);
  }
  45% {
    opacity: 1;
    transform: translateY(0) scale(1.04) rotate(8deg);
  }
  62% {
    transform: rotate(-7deg);
  }
  78% {
    transform: rotate(4deg);
  }
  100% {
    opacity: 1;
    transform: rotate(0deg);
  }
}

@keyframes logo-wiggle-hover {
  0% {
    transform: rotate(0deg);
  }
  30% {
    transform: rotate(5deg);
  }
  58% {
    transform: rotate(-4deg);
  }
  82% {
    transform: rotate(2deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .logo,
  .logo:hover,
  .site-nav,
  .hero,
  .page-callout,
  .featurette,
  .cast-showcase,
  .video-showcase,
  .blog-feed,
  .site-footer {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 720px) {
  .site-header {
    grid-template-columns: 1fr;
    justify-items: start;
    padding-top: 1.7rem;
  }

  .site-nav {
    padding-bottom: 0.8rem;
  }

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

  .cast-card {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .cast-card__art {
    min-height: 5.2rem;
    height: 5.2rem;
  }

  .feature-list {
    gap: 0.42rem;
  }
}
