#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000000;
  transition: opacity 0.6s ease;
}

#loader canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#loader.done {
  opacity: 0;
  pointer-events: none;
}

:root {
  color-scheme: dark;
  --page-background: #10151c;
  --text-primary: #eef6ff;
  --text-secondary: #a3b3c3;
  --accent: #8ecbff;
  --page-gutter: clamp(1.5rem, 6vw, 6rem);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--page-background);
  scroll-behavior: smooth;
  scrollbar-color: #8ecbff #10151c;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #10151c;
}

::-webkit-scrollbar-thumb {
  background: #8ecbff;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a9d6fa;
}

body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  margin: 0;
  color: var(--text-primary);
  background: var(--page-background);
  font-family: "Outfit", sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  display: flex;
  flex: 1;
  flex-direction: column;
}

/* Scroll reveal ---------------------------------------------------------- */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition:
    opacity 700ms cubic-bezier(0.22, 0.8, 0.28, 1),
    transform 900ms cubic-bezier(0.22, 0.8, 0.28, 1);
}

.reveal-ready [data-reveal="left"] {
  transform: translate3d(-38px, 0, 0) scale(0.985);
}

.reveal-ready [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  background: #0b0e13;
}

.site-page .about-page {
  padding-top: 44px;
}

.home-page .site-header.is-scrolled {
  box-shadow: 0 8px 24px rgb(0 0 0 / 24%);
}

.navigation {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding-inline: var(--page-gutter);
  border-bottom: 1px solid rgb(255 255 255 / 8%);
}

.navigation__links {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2rem);
}

.navigation__links--center {
  justify-content: center;
}

.nav-dropdown {
  position: relative;
  display: inline-flex;
}

.nav-dropdown__menu {
  position: absolute;
  z-index: 60;
  top: calc(100% + 14px);
  left: 50%;
  min-width: 160px;
  padding: 0.4rem;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 10px;
  background: #0b0e13;
  box-shadow: 0 18px 40px rgb(0 0 0 / 45%);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 6px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
}

.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity 180ms ease, transform 180ms ease, visibility 0s;
}

.nav-dropdown__item {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  color: rgb(246 250 255 / 80%);
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-dropdown__item:hover {
  color: var(--accent);
  background: rgb(255 255 255 / 6%);
}

.nav-dropdown__item[aria-current="page"] {
  color: var(--text-primary);
  background: rgb(255 255 255 / 6%);
}

.navigation__links--right {
  justify-content: flex-end;
}

.navigation__link,
.discord-link {
  color: rgb(246 250 255 / 76%);
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 160ms ease;
}

.navigation__link:hover,
.discord-link:hover {
  color: var(--accent);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  color: var(--text-primary);
  text-decoration: none;
}

.wordmark__logo {
  display: block;
  height: 26px;
  width: auto;
}

.discord-link {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 0.4rem;
  padding-inline: 0.95rem;
  border-radius: 6px;
  color: #0b0e13;
  background: #aeb8d8;
  font-weight: 600;
  transition: background-color 160ms ease;
}

.discord-link:hover {
  color: #0b0e13;
  background: #c3cbee;
}

.discord-link__arrow {
  font-size: 0.85em;
}

.hero {
  position: relative;
  display: flex;
  flex: 1;
  min-height: min(700px, calc(100svh - 120px));
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: clamp(4rem, 10vh, 7rem) var(--page-gutter) 5rem;
  background-color: var(--page-background);
  background-image:
    linear-gradient(rgb(169 214 250 / 3%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(169 214 250 / 3%) 1px, transparent 1px),
    radial-gradient(ellipse at 75% 45%, rgb(107 167 211 / 12%), transparent 55%);
  background-size: 48px 48px, 48px 48px, auto;
}

.home-page .hero {
  display: block;
  height: auto;
  min-height: 100svh;
  overflow: hidden;
  padding: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(100%, 1240px);
  flex-direction: column;
  align-items: center;
  padding: 96px 1.5rem 64px;
  text-align: center;
}

.hero__logo {
  display: block;
  height: clamp(64px, 10vw, 110px);
  width: auto;
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 10px 28px rgb(0 0 0 / 55%));
  animation: hero-rise 0.8s cubic-bezier(0.22, 0.8, 0.28, 1) 1.65s both;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__content h1 {
  margin: 0;
  animation: hero-rise 0.8s cubic-bezier(0.22, 0.8, 0.28, 1) 1.85s both;
}

.hero__content .hero__intro {
  margin: 1.5rem auto 0;
  text-align: center;
  animation: hero-rise 0.8s cubic-bezier(0.22, 0.8, 0.28, 1) 2.05s both;
}

.hero__sticky {
  position: sticky;
  top: 0;
  display: flex;
  height: 100svh;
  min-height: 100svh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  padding: 112px var(--page-gutter) 72px;
  background: #253446;
}

.hero__backdrop {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__sticky::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(8 12 18 / 76%) 0%, rgb(8 12 18 / 48%) 41%, rgb(8 12 18 / 15%) 100%),
    linear-gradient(180deg, rgb(8 12 18 / 42%) 0%, transparent 32%, rgb(8 12 18 / 18%) 72%, rgb(8 12 18 / 62%) 100%);
  content: "";
  pointer-events: none;
}

.home-page .hero__content {
  max-width: 620px;
  padding-bottom: 2rem;
}

.home-page .hero h1 {
  font-family: "Pricedown", "Outfit", sans-serif;
  font-size: clamp(2.2rem, 4.8vw, 4.2rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.05;
  text-transform: none;
  white-space: nowrap;
  text-shadow: 0 5px 30px rgb(0 0 0 / 30%);
}

.home-page .hero h1 span {
  white-space: nowrap;
}

.home-page .hero__intro {
  max-width: 440px;
  color: rgb(246 250 255 / 82%);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
}

.hero__content {
  max-width: 680px;
}

.hero h1 {
  margin: 0;
  font-family: "Outfit", sans-serif;
  font-size: clamp(4.5rem, 9vw, 8rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 0.82;
  text-transform: uppercase;
}

.hero h1 span {
  color: var(--accent);
}

.hero__intro {
  max-width: 390px;
  margin: 1.75rem 0 1.5rem;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  padding: 0;
  background: #253446;
}

.hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgb(8 12 18 / 86%) 0%, rgb(8 12 18 / 62%) 55%, rgb(8 12 18 / 42%) 100%);
  content: "";
  pointer-events: none;
}

.portfolio-intro {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 10vw, 9rem) var(--page-gutter);
  background-color: #111111;
  background-image: radial-gradient(ellipse at 10% 45%, rgb(255 255 255 / 3%), transparent 42%);
}

.portfolio-intro__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 6rem);
  width: min(100%, 1120px);
  margin-inline: auto;
}

.portfolio-intro__image {
  position: relative;
  height: clamp(230px, 32vw, 390px);
  overflow: hidden;
  margin: 0;
  border: 1px solid rgb(246 250 255 / 12%);
  border-radius: 18px;
  background: #191919;
}

.portfolio-intro__image::after {
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(180deg, transparent, rgb(17 17 17 / 75%));
  content: "";
}

.portfolio-intro__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.portfolio-intro__image:hover img {
  transform: scale(1.035);
}

.portfolio-intro__image figcaption {
  position: absolute;
  z-index: 1;
  right: 1.2rem;
  bottom: 1rem;
  left: 1.2rem;
  color: rgb(246 250 255 / 78%);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.13em;
}

.portfolio-intro__image figcaption span {
  padding-inline: 0.3rem;
  color: var(--accent);
}

.portfolio-intro__copy {
  max-width: 540px;
}

.portfolio-intro__eyebrow {
  margin: 0 0 1.2rem;
  color: #8ecbff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.portfolio-intro__copy h2 {
  font-family: "Pricedown", "Outfit", sans-serif;
  margin: 0 0 1.2rem;
  color: #eef6ff;
  font-size: clamp(2.5rem, 4.5vw, 3.8rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.08;
}

.portfolio-intro__copy h2 span {
  color: #8ecbff;
}

.portfolio-intro__copy > p:not(.portfolio-intro__eyebrow) {
  margin: 0 0 0.8rem;
  color: #f1f1f1;
  font-size: 0.88rem;
  line-height: 1.9;
}

.portfolio-intro__roles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.5rem;
}

.projects {
  padding: clamp(5rem, 10vw, 8rem) var(--page-gutter);
  background-color: #101214;
  background-image: radial-gradient(ellipse at 90% 30%, rgb(83 151 206 / 8%), transparent 40%);
}

.image-band {
  position: relative;
  width: 100%;
  height: clamp(140px, 16vw, 240px);
  overflow: hidden;
  background: #111111;
}

.image-band img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: brightness(0.72);
}

.image-band::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(17 17 17 / 55%), transparent 30%, transparent 70%, rgb(16 18 20 / 60%));
  content: "";
  pointer-events: none;
}

.projects__inner {
  width: min(100%, 1120px);
  margin-inline: auto;
}

.projects__eyebrow {
  margin: 0 0 0.9rem;
  color: var(--accent);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.projects__heading h2 {
  margin: 0;
  color: var(--text-primary);
  font-family: "Pricedown", "Outfit", sans-serif;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1;
}

.projects__intro {
  max-width: 560px;
  margin: 1rem 0 0;
  color: #f1f1f1;
  font-size: 0.9rem;
  line-height: 1.8;
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}

.project-card {
  display: block;
  overflow: hidden;
  border: 1px solid rgb(239 247 255 / 10%);
  border-radius: 14px;
  color: inherit;
  background: rgb(255 255 255 / 3%);
  text-decoration: none;
  transition:
    transform 300ms cubic-bezier(0.22, 0.8, 0.28, 1),
    border-color 300ms ease,
    box-shadow 350ms ease;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgb(142 203 255 / 35%);
  box-shadow: 0 26px 46px -24px rgb(0 0 0 / 80%);
}

/* These cards are scroll-reveal targets, so restate the hover lift for the
   revealed state, which otherwise wins on specificity with transform: none. */
.reveal-ready .project-card.is-revealed:hover {
  transform: translateY(-6px);
}

.project-card img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
  transition: transform 700ms cubic-bezier(0.22, 0.8, 0.28, 1);
}

.project-card:hover img {
  transform: scale(1.06);
}

.project-card__logo {
  object-fit: contain;
  background: #fff;
}

.project-card__body {
  padding: 1.25rem;
}

.project-card__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.project-card__pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgb(142 203 255 / 35%);
  border-radius: 999px;
  color: var(--accent);
  background: rgb(142 203 255 / 8%);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.project-card h3 {
  margin: 0.55rem 0 0.5rem;
  color: var(--text-primary);
  font-family: "Pricedown", "Outfit", sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.project-card p {
  margin: 0;
  color: #f1f1f1;
  font-size: 0.78rem;
  line-height: 1.65;
}

.projects__more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.projects__more span {
  color: var(--accent);
  transition: transform 300ms cubic-bezier(0.22, 0.8, 0.28, 1);
}

.projects__more:hover {
  color: var(--accent);
}

.projects__more:hover span {
  transform: translateX(4px);
}

.cast {
  position: relative;
  padding: clamp(5rem, 10vw, 8rem) var(--page-gutter);
  background-color: #111111;
  background-image: radial-gradient(ellipse at 50% 0%, rgb(83 151 206 / 9%), transparent 55%);
}

.cast__inner {
  width: min(100%, 1120px);
  margin-inline: auto;
}

.cast__eyebrow {
  margin: 0 0 0.9rem;
  color: var(--accent);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.cast__heading h2 {
  margin: 0;
  color: var(--text-primary);
  font-family: "Pricedown", "Outfit", sans-serif;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1;
}

.cast__intro {
  max-width: 560px;
  margin: 1rem 0 0;
  color: #f1f1f1;
  font-size: 0.9rem;
  line-height: 1.8;
}

.cast__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}

.cast-card {
  --cast-accent: #8ecbff;
  align-self: stretch;
  padding: 1.4rem 1.4rem 1.5rem;
  overflow: hidden;
  border: 1px solid rgb(239 247 255 / 10%);
  border-radius: 14px;
  background: rgb(255 255 255 / 3%);
  background:
    radial-gradient(ellipse at 50% 8%, color-mix(in srgb, var(--cast-accent) 16%, transparent), transparent 62%),
    rgb(255 255 255 / 3%);
  transition:
    transform 300ms cubic-bezier(0.22, 0.8, 0.28, 1),
    border-color 300ms ease,
    box-shadow 350ms ease;
}

.cast-card:hover {
  transform: translateY(-6px);
  border-color: rgb(142 203 255 / 35%);
  border-color: color-mix(in srgb, var(--cast-accent) 45%, transparent);
  box-shadow: 0 26px 46px -24px rgb(0 0 0 / 80%);
}

.cast-card__figure {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: clamp(210px, 24vw, 280px);
  margin-bottom: 1.25rem;
}

.cast-card__figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 18px 28px rgb(0 0 0 / 55%));
  transition: transform 500ms cubic-bezier(0.22, 0.8, 0.28, 1);
}

.cast-card:hover .cast-card__figure img {
  transform: translateY(-6px) scale(1.03);
}

.cast-card__role {
  margin: 0 0 0.35rem;
  color: var(--accent);
  color: color-mix(in srgb, var(--cast-accent) 82%, white);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cast-card__name {
  margin: 0 0 0.55rem;
  color: var(--text-primary);
  font-family: "Pricedown", "Outfit", sans-serif;
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.cast-card__line {
  margin: 0;
  color: #f1f1f1;
  font-size: 0.78rem;
  line-height: 1.65;
}

/* These cards are scroll-reveal targets, so restate the hover lift for the
   revealed state, which otherwise wins on specificity with transform: none. */
.reveal-ready .cast-card.is-revealed:hover {
  transform: translateY(-6px);
}

/* Scroll-scrubbed cinema band -------------------------------------------- */
.cinema {
  position: relative;
  height: 300vh;
  background: #0b0e13;
}

.cinema__sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: #0b0e13;
}

.cinema__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #0b0e13;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.cinema__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, #111111 0, rgb(17 17 17 / 0%) 120px),
    linear-gradient(180deg, rgb(8 12 18 / 50%) 0, rgb(8 12 18 / 0%) 26%, rgb(8 12 18 / 12%) 50%, rgb(8 12 18 / 74%) 100%),
    linear-gradient(90deg, rgb(8 12 18 / 58%) 0, rgb(8 12 18 / 0%) 66%);
  pointer-events: none;
}

.cinema__content {
  position: absolute;
  z-index: 1;
  right: var(--page-gutter);
  bottom: clamp(2.5rem, 8vh, 5rem);
  left: var(--page-gutter);
  max-width: 620px;
  pointer-events: none;
}

.cinema__eyebrow {
  margin: 0 0 0.9rem;
  color: var(--accent);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.cinema__eyebrow span {
  padding-inline: 0.3rem;
}

.cinema__content h2 {
  margin: 0;
  color: var(--text-primary);
  font-family: "Pricedown", "Outfit", sans-serif;
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1;
}

.cinema__content h2 span {
  color: var(--accent);
}

.cinema__hint {
  margin: 1.15rem 0 0;
  color: rgb(246 250 255 / 78%);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cinema__fade {
  position: absolute;
  inset: 0;
  background: #0b0e13;
  opacity: 0;
  pointer-events: none;
}

.cinema.is-static {
  height: auto;
}

.cinema.is-static .cinema__sticky {
  position: relative;
}

/* Contact ---------------------------------------------------------------- */
.contact {
  padding: clamp(4.5rem, 9vw, 7.5rem) var(--page-gutter) clamp(5rem, 10vw, 8rem);
  background-color: #0b0e13;
  background-image: radial-gradient(ellipse at 50% 0%, rgb(83 151 206 / 10%), transparent 58%);
}

.contact__inner {
  width: min(100%, 1120px);
  margin-inline: auto;
}

.contact__eyebrow {
  margin: 0 0 0.9rem;
  color: var(--accent);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.contact__heading h1,
.contact__heading h2 {
  margin: 0;
  color: var(--text-primary);
  font-family: "Pricedown", "Outfit", sans-serif;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1;
}

.contact__intro {
  max-width: 560px;
  margin: 1rem 0 0;
  color: #f1f1f1;
  font-size: 0.9rem;
  line-height: 1.8;
}

.contact__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.7rem 1.6rem 1.55rem;
  border: 1px solid rgb(239 247 255 / 10%);
  border-radius: 14px;
  color: inherit;
  background: rgb(255 255 255 / 3%);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 300ms cubic-bezier(0.22, 0.8, 0.28, 1),
    border-color 300ms ease,
    background-color 300ms ease,
    box-shadow 350ms ease;
}

.contact-card:hover {
  transform: translateY(-6px);
  border-color: rgb(142 203 255 / 38%);
  background: rgb(255 255 255 / 6%);
  box-shadow: 0 26px 46px -24px rgb(0 0 0 / 80%);
}

.contact-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.reveal-ready .contact-card.is-revealed:hover {
  transform: translateY(-6px);
}

.contact-card__label {
  color: var(--accent);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-card__value {
  color: var(--text-primary);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.contact-card__hint {
  margin-top: 0.7rem;
  color: #a3b3c3;
  font-size: 0.72rem;
}

.contact-card__hint span {
  display: inline-block;
  color: var(--accent);
  transition: transform 300ms cubic-bezier(0.22, 0.8, 0.28, 1);
}

.contact-card:hover .contact-card__hint span {
  transform: translateX(3px);
}

/* GTA-style pause menu --------------------------------------------------- */
.pause {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--page-gutter);
  background: #000 url("../img/pause-menu.png") center center / contain no-repeat;
  animation: pause-fade 220ms ease both;
}

.pause[hidden] {
  display: none;
}

.pause.is-closing {
  opacity: 0;
  animation: none;
  transition: opacity 180ms ease;
}

.pause.is-closing .pause__panel {
  animation: none;
}

@keyframes pause-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.pause__panel {
  display: flex;
  align-items: center;
  flex-direction: column;
  animation: pause-rise 340ms cubic-bezier(0.22, 0.8, 0.28, 1) both;
}

@keyframes pause-rise {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.pause__menu {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: clamp(0.45rem, 1.2vw, 0.85rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.pause__item {
  position: relative;
  display: inline-block;
  padding: 0.18rem 0 0.18rem 1.95em;
  border: 0;
  color: #6d8095;
  background: none;
  font: inherit;
  font-size: clamp(1.05rem, 3.6vw, 1.4rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgb(0 0 0 / 85%);
  cursor: pointer;
  transition: color 180ms ease, text-shadow 180ms ease, transform 220ms cubic-bezier(0.22, 0.8, 0.28, 1);
}

.pause__item::before {
  position: absolute;
  top: 50%;
  left: 0.15em;
  width: 0.95em;
  height: 0.95em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23cfe5ff' d='M12 0 15 9 24 12 15 15 12 24 9 15 0 12 9 9Z'/%3E%3C/svg%3E") center / contain no-repeat;
  content: "";
  opacity: 0;
  transform: translateY(-50%) rotate(-30deg) scale(0.65);
  transition: opacity 180ms ease, transform 260ms cubic-bezier(0.22, 0.8, 0.28, 1);
}

.pause__item.is-selected,
.pause__item:hover {
  color: #e4f1ff;
  text-shadow: 0 0 20px rgb(140 200 255 / 45%), 0 2px 12px rgb(0 0 0 / 85%);
  transform: translateX(4px);
}

.pause__item.is-selected::before,
.pause__item:hover::before {
  opacity: 1;
  transform: translateY(-50%) rotate(0deg) scale(1);
}

.pause__item:focus {
  outline: none;
}

.pause__item:focus-visible {
  outline: none;
}

.pause__hint {
  margin: clamp(1.6rem, 4vw, 2.4rem) 0 0;
  color: rgb(207 229 255 / 42%);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

html.is-paused,
html.is-paused body {
  overflow: hidden;
}

.portfolio-intro__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}

.portfolio-intro__link span {
  color: var(--accent);
  transition: transform 300ms cubic-bezier(0.22, 0.8, 0.28, 1);
}

.portfolio-intro__link:hover {
  color: var(--accent);
}

.portfolio-intro__link:hover span {
  transform: translateX(4px);
}

.portfolio-intro__roles span {
  padding: 0.48rem 0.8rem;
  border: 1px solid rgb(169 214 250 / 25%);
  border-radius: 999px;
  color: #a9d6fa;
  background: rgb(169 214 250 / 7%);
  font-size: 0.68rem;
  font-weight: 500;
  transition: border-color 250ms ease, background-color 250ms ease, color 250ms ease;
}

.portfolio-intro__roles span:hover {
  border-color: rgb(169 214 250 / 55%);
  color: #eef6ff;
  background: rgb(169 214 250 / 14%);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: 1rem var(--page-gutter);
  border-top: 0;
  background: #0b0e13;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-footer__logo {
  display: block;
  height: 22px;
  width: auto;
}

.site-footer__copyright {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.72rem;
}

.site-footer__link {
  color: var(--text-secondary);
  font-size: 0.72rem;
  text-decoration: none;
  transition: color 160ms ease;
}

.site-footer__link:hover {
  color: var(--accent);
}

.site-footer__links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.navigation__link--active {
  color: var(--text-primary);
}

.about-page {
  flex: 1;
}

.about {
  display: flex;
  min-height: calc(100svh - 44px);
  align-items: center;
  padding: clamp(4rem, 9vw, 7rem) var(--page-gutter) clamp(4rem, 8vw, 6rem);
  background-color: var(--page-background);
  background-image: radial-gradient(ellipse at 50% 0%, rgb(83 151 206 / 10%), transparent 58%);
}

.about__inner {
  width: min(100%, 760px);
  margin-inline: auto;
}

.about__eyebrow {
  margin: 0 0 0.9rem;
  color: var(--accent);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.about h1 {
  margin: 0;
  color: var(--text-primary);
  font-family: "Pricedown", "Outfit", sans-serif;
  font-size: clamp(2.5rem, 5.6vw, 4.4rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.04;
}

.about h1 span {
  color: var(--accent);
}

.about__lede {
  max-width: 620px;
  margin: 1.4rem 0 0;
  color: var(--text-primary);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.7;
}

.about__body {
  max-width: 640px;
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid rgb(239 247 255 / 10%);
}

.about__body p {
  margin: 0 0 1.15rem;
  color: #f1f1f1;
  font-size: 0.95rem;
  line-height: 1.9;
}

.about__body p:last-child {
  margin-bottom: 0;
}

.about__next {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.85rem 1.5rem;
  max-width: 640px;
  margin-top: clamp(2rem, 4vw, 2.75rem);
  padding-top: clamp(1.35rem, 3vw, 1.75rem);
  border-top: 1px solid rgb(239 247 255 / 10%);
}

.about__next-label {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.about__next-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms ease;
}

.about__next-link span {
  color: var(--accent);
  transition: transform 300ms cubic-bezier(0.22, 0.8, 0.28, 1);
}

.about__next-link:hover {
  color: var(--accent);
}

.about__next-link:hover span {
  transform: translateX(4px);
}

.about__next-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Hub pages (Tools, Resources) -------------------------------------------- */
.hub {
  display: flex;
  min-height: 100svh;
  align-items: center;
  padding-block: calc(44px + clamp(3rem, 6vw, 5rem)) clamp(3.5rem, 7vw, 5.5rem);
  padding-inline: var(--page-gutter);
  background-color: var(--page-background);
  background-image: linear-gradient(180deg, rgb(83 151 206 / 10%), transparent 48%);
}

.hub__inner {
  width: min(100%, 1120px);
  margin-inline: auto;
}

.hub__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hub__logo {
  display: block;
  width: auto;
  height: clamp(44px, 7vw, 72px);
  filter: drop-shadow(0 10px 26px rgb(0 0 0 / 55%));
}

.hub__eyebrow {
  margin: clamp(1.25rem, 3vw, 1.75rem) 0 0;
  color: var(--accent);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.hub h1 {
  margin: 0.4rem 0 0;
  color: var(--text-primary);
  font-family: "Pricedown", "Outfit", sans-serif;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1;
}

.hub__intro {
  max-width: 560px;
  margin: 1rem 0 0;
  color: #f1f1f1;
  font-size: 0.92rem;
  line-height: 1.8;
}

.hub__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.hub-card {
  overflow: hidden;
  border: 1px solid rgb(239 247 255 / 10%);
  border-radius: 14px;
  background: rgb(255 255 255 / 3%);
}

.hub-card__media {
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid rgb(239 247 255 / 8%);
  background: rgb(255 255 255 / 4%);
}

.hub-card__body {
  display: grid;
  gap: 0.6rem;
  padding: 1.25rem 1.35rem 1.4rem;
}

.hub-card__line {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: rgb(255 255 255 / 6%);
}

.hub-card__line--title {
  width: 58%;
  height: 14px;
}

.hub-card__line--short {
  width: 42%;
}

/* Placeholder shimmer — cards stay empty until the first items ship. */
.hub-card.is-loading .hub-card__media,
.hub-card.is-loading .hub-card__line {
  background-image: linear-gradient(
    90deg,
    rgb(255 255 255 / 4%) 20%,
    rgb(255 255 255 / 11%) 45%,
    rgb(255 255 255 / 4%) 70%
  );
  background-size: 260% 100%;
  animation: hub-shimmer 1.8s ease-in-out infinite;
}

@keyframes hub-shimmer {
  from {
    background-position: 130% 0;
  }
  to {
    background-position: -30% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hub-card.is-loading .hub-card__media,
  .hub-card.is-loading .hub-card__line {
    animation: none;
  }
}

@media (max-width: 860px) {
  .hub__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .hub__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Contact page ----------------------------------------------------------- */
.contact-page .contact {
  display: flex;
  width: 100%;
  min-height: 100svh;
  align-items: center;
  padding-block: calc(44px + clamp(2.5rem, 6vw, 4.5rem)) clamp(2.5rem, 6vw, 4.5rem);
}

@media (max-width: 760px) {
  .projects__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cast__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cast-card__figure {
    height: 300px;
  }

  .cinema {
    height: 220vh;
  }

  .contact__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .portfolio-intro__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }

  .portfolio-intro__image {
    height: clamp(230px, 55vw, 360px);
  }

  .portfolio-intro__copy {
    max-width: 640px;
  }

  .navigation {
    min-height: 44px;
  }

  .home-page .navigation {
    padding-inline: 1.25rem;
  }

  .home-page .navigation__links {
    gap: 0.85rem;
  }

  .hero__sticky {
    padding: 100px 1.5rem 56px;
  }

  .home-page .hero__content {
    padding-bottom: 0;
  }

  .hero {
    min-height: auto;
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

}

@media (max-width: 520px) {
  .projects {
    padding: 4rem 1.25rem;
  }

  .cast {
    padding: 4rem 1.25rem;
  }

  .contact {
    padding: 4rem 1.25rem 4.5rem;
  }

  /* Portrait screens: sit the menu under the art instead of on top of it. */
  .pause {
    align-items: flex-start;
    padding-top: calc(56.25vw + 2.5rem);
    background-position: center top;
    background-size: 100% auto;
    overflow-y: auto;
  }

  .project-card img {
    height: 170px;
  }

  .portfolio-intro {
    padding: 4rem 1.25rem;
  }

  .portfolio-intro__inner {
    gap: 1.75rem;
  }

  .portfolio-intro__image {
    height: 220px;
    border-radius: 12px;
  }

  .portfolio-intro__copy h2 {
    font-size: 2.7rem;
  }

  .portfolio-intro__copy > p:not(.portfolio-intro__eyebrow) {
    font-size: 0.84rem;
  }

  .home-page .navigation {
    grid-template-columns: auto 1fr auto;
    column-gap: 0.5rem;
    padding-inline: 1rem;
  }

  .home-page .navigation__links {
    justify-content: center;
    gap: 0.55rem;
  }

  .home-page .navigation__link {
    font-size: 0.65rem;
  }

  .navigation__links--right .discord-link {
    min-height: 28px;
    gap: 0.25rem;
    padding-inline: 0.7rem;
    font-size: 0.68rem;
  }

  .hero__sticky {
    padding: 96px 1.25rem 48px;
  }

  .home-page .hero {
    min-height: 100svh;
  }

  .home-page .hero h1 {
    font-size: clamp(1.9rem, 8vw, 3rem);
  }

  .home-page .hero__intro {
    max-width: 330px;
    margin-top: 1rem;
    font-size: 0.9rem;
  }

  .wordmark__logo {
    height: 22px;
  }

  .navigation {
    min-height: 44px;
    padding-inline: 1rem;
  }

  .navigation__links {
    gap: 0.8rem;
  }

  .navigation__link,
  .discord-link {
    font-size: 0.72rem;
  }

  .hero {
    padding: 4.5rem 1.5rem 4rem;
  }

  .hero h1 {
    font-size: clamp(4rem, 18vw, 6rem);
  }

  .site-footer {
    padding-inline: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__logo,
  .hero__content h1,
  .hero__content .hero__intro {
    animation: none;
  }

  .hero__sticky {
    position: static;
    height: 100svh;
  }

  .cinema {
    height: auto;
  }

  .cinema__sticky {
    position: relative;
  }

  .pause,
  .pause.is-closing,
  .pause__panel,
  .pause__item,
  .pause__item::before {
    transition: none;
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* Status page -------------------------------------------------------------- */
.status {
  display: flex;
  flex: 1;
  align-items: center;
  padding: clamp(3.5rem, 9vw, 6rem) var(--page-gutter);
  background-color: var(--page-background);
  background-image: linear-gradient(180deg, rgb(83 151 206 / 10%), transparent 48%);
}

.status__inner {
  width: min(100%, 720px);
  margin-inline: auto;
}

.status__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.status__logo {
  display: block;
  width: auto;
  height: clamp(40px, 6vw, 64px);
  filter: drop-shadow(0 10px 26px rgb(0 0 0 / 55%));
}

.status h1 {
  margin: clamp(1.25rem, 3vw, 1.6rem) 0 0;
  color: var(--text-primary);
  font-family: "Pricedown", "Outfit", sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1;
}

.status__intro {
  max-width: 520px;
  margin: 0.9rem 0 0;
  color: #f1f1f1;
  font-size: 0.9rem;
  line-height: 1.8;
}

/* Colours come from [data-state], set on the panel by the fetch script and
   on each row from the status word the API reports. */
.status-panel,
.status-row {
  --state: #9fb0c2;
  --state-glow: rgb(159 176 194 / 40%);
}

.status-panel[data-state="operational"],
.status-row[data-state="operational"] {
  --state: #5ee08a;
  --state-glow: rgb(94 224 138 / 45%);
}

.status-panel[data-state="degraded"],
.status-row[data-state="degraded"] {
  --state: #f0c65a;
  --state-glow: rgb(240 198 90 / 45%);
}

.status-panel[data-state="down"],
.status-row[data-state="down"] {
  --state: #ff6b6b;
  --state-glow: rgb(255 107 107 / 45%);
}

.status-panel {
  margin-top: clamp(2.25rem, 5vw, 3rem);
  padding: 1.35rem 1.5rem 1.1rem;
  border: 1px solid rgb(239 247 255 / 10%);
  border-radius: 14px;
  background: rgb(255 255 255 / 3%);
}

.status-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding-bottom: 0.95rem;
  border-bottom: 1px solid rgb(239 247 255 / 8%);
}

.status-panel__name {
  margin: 0;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.status-panel__state {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--state);
  font-size: 0.72rem;
  font-weight: 600;
}

.status-panel__dot,
.status-row__dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--state);
  box-shadow:
    0 0 0 3px var(--state-glow),
    0 0 12px var(--state-glow);
}

.status-row__dot {
  width: 7px;
  height: 7px;
}

.status-list {
  display: grid;
  gap: 1.05rem;
  margin-top: 1.1rem;
}

.status-row {
  display: grid;
  gap: 0.6rem;
}

.status-row__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
}

.status-row__name {
  margin: 0;
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 600;
}

.status-row__note {
  color: var(--text-secondary);
  font-size: 0.7rem;
  overflow-wrap: anywhere;
}

.status-row__value {
  margin-left: auto;
  color: var(--state);
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}

.status-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgb(255 255 255 / 7%);
}

.status-bar__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background-color: var(--state);
  box-shadow: 0 0 12px var(--state-glow);
  transition: width 450ms cubic-bezier(0.22, 0.8, 0.28, 1);
}

.status-panel__updated {
  margin: 1rem 0 0;
  color: var(--text-secondary);
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
}

.status-row__hint {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.72rem;
  line-height: 1.6;
}

.status-retry {
  margin-left: 0.35rem;
  padding: 0;
  border: 0;
  color: var(--accent);
  background: none;
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.status-retry:hover {
  color: var(--text-primary);
}

.status-retry:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Indeterminate bar while the first fetch is in flight — reuses the shared
   shimmer keyframes from the hub pages. */
.status-row.is-loading .status-bar__fill {
  background-image: linear-gradient(
    90deg,
    rgb(255 255 255 / 10%) 20%,
    rgb(255 255 255 / 26%) 45%,
    rgb(255 255 255 / 10%) 70%
  );
  background-size: 260% 100%;
  box-shadow: none;
  animation: hub-shimmer 1.8s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .status-row.is-loading .status-bar__fill {
    animation: none;
  }
}

.status-noscript {
  margin: 1rem 0 0;
  color: var(--text-secondary);
  font-size: 0.75rem;
  text-align: center;
}

/* Project detail pages ------------------------------------------------------ */
.wiki {
  padding: calc(44px + clamp(2.5rem, 5vw, 4rem)) var(--page-gutter) clamp(4rem, 8vw, 6rem);
  background-color: var(--page-background);
  background-image: linear-gradient(180deg, rgb(83 151 206 / 10%), transparent 34%);
}

.wiki__layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 4rem);
  width: min(100%, 1120px);
  margin-inline: auto;
}

.wiki__sidebar {
  position: sticky;
  top: calc(44px + 2rem);
  display: grid;
  gap: 1.55rem;
  padding-right: 1rem;
  border-right: 1px solid rgb(239 247 255 / 8%);
}

.wiki__group {
  display: grid;
  gap: 0.55rem;
}

.wiki__title {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.wiki__list {
  display: grid;
  gap: 0.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wiki__link {
  display: block;
  padding: 0.35rem 0.6rem;
  border-left: 2px solid transparent;
  border-radius: 0 6px 6px 0;
  color: rgb(246 250 255 / 72%);
  font-size: 0.78rem;
  line-height: 1.35;
  text-decoration: none;
  transition:
    color 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

.wiki__link:hover {
  color: var(--text-primary);
  background: rgb(255 255 255 / 4%);
}

.wiki__link[aria-current="true"] {
  border-left-color: var(--accent);
  color: var(--accent);
  background: rgb(142 203 255 / 7%);
}

.wiki__link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.wiki__content {
  min-width: 0;
  max-width: 70ch;
  /* Room below the last section so every sidebar anchor can scroll up to the
     reading line instead of sticking at the bottom of the document. */
  padding-bottom: clamp(3rem, 35vh, 26rem);
}

.wiki__eyebrow {
  margin: 0 0 0.9rem;
  color: var(--accent);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.wiki h1 {
  margin: 0;
  color: var(--text-primary);
  font-family: "Pricedown", "Outfit", sans-serif;
  font-size: clamp(2.5rem, 5.6vw, 4.4rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.04;
}

.wiki h1 span {
  color: var(--accent);
}

.wiki__lede {
  max-width: 620px;
  margin: 1.35rem 0 0;
  color: var(--text-primary);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.7;
}

.wiki__section {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  scroll-margin-top: calc(44px + 1.5rem);
}

.wiki__section h2 {
  margin: 0 0 0.9rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgb(239 247 255 / 10%);
  color: var(--text-primary);
  font-family: "Pricedown", "Outfit", sans-serif;
  font-size: clamp(1.55rem, 2.6vw, 2.05rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

.wiki__section p {
  margin: 0 0 1.05rem;
  color: #f1f1f1;
  font-size: 0.92rem;
  line-height: 1.85;
}

.wiki__section p:last-child {
  margin-bottom: 0;
}

.wiki__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.55rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.wiki__tag {
  padding: 0.28rem 0.6rem;
  border: 1px solid rgb(169 214 250 / 25%);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.6rem;
  font-weight: 600;
}

.wiki__footer {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: clamp(1.35rem, 3vw, 1.75rem);
  border-top: 1px solid rgb(239 247 255 / 10%);
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.8;
}

.wiki__footer a {
  color: var(--accent);
  text-decoration: none;
}

.wiki__footer a:hover {
  color: var(--text-primary);
}

.wiki__footer a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 880px) {
  .wiki__layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .wiki__sidebar {
    position: static;
    gap: 1.15rem;
    padding-right: 0;
    padding-bottom: 1.4rem;
    border-right: 0;
    border-bottom: 1px solid rgb(239 247 255 / 8%);
  }

  .wiki__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .wiki__link {
    padding: 0.4rem 0.7rem;
    border-left: 0;
    border-radius: 6px;
    background: rgb(255 255 255 / 4%);
  }

  .wiki__link[aria-current="true"] {
    background: rgb(142 203 255 / 12%);
  }

  .wiki__content {
    max-width: none;
  }
}

/* Organisation pages (Ashcroft Media Group, ...) --------------------------- */
.org {
  padding: calc(44px + clamp(2.5rem, 5vw, 4rem)) var(--page-gutter) clamp(4rem, 8vw, 6rem);
  background-color: var(--page-background);
  background-image: linear-gradient(180deg, rgb(83 151 206 / 10%), transparent 34%);
}

.org__inner {
  width: min(100%, 1120px);
  margin-inline: auto;
}

.org__back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--text-secondary);
  font-size: 0.75rem;
  text-decoration: none;
  transition: color 160ms ease;
}

.org__back:hover {
  color: var(--accent);
}

.org__back:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.org__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.org__logo {
  display: block;
  width: auto;
  height: clamp(92px, 11vw, 138px);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 20px 44px -22px rgb(0 0 0 / 75%);
}

/* Organisations that only have a scene image rather than a wordmark. */
.org__logo--scene {
  width: min(100%, 680px);
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
  background: transparent;
}

/* Organisations represented by a character rather than a logo. */
.org__logo--portrait {
  width: auto;
  height: clamp(190px, 26vw, 270px);
  border-radius: 16px;
  background: linear-gradient(180deg, #1c2836, #0d131a);
  object-fit: contain;
}

.org h1 {
  margin: clamp(1.5rem, 3vw, 2.1rem) 0 0;
  color: var(--text-primary);
  font-family: "Pricedown", "Outfit", sans-serif;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.06;
}

.org__intro {
  max-width: 660px;
  margin: clamp(1.1rem, 2.4vw, 1.5rem) auto 0;
  color: #f1f1f1;
  font-size: 0.95rem;
  line-height: 1.85;
}

.org__intro p {
  margin: 0 0 1rem;
}

.org__intro p:last-child {
  margin-bottom: 0;
}

/* Carousel ---------------------------------------------------------------- */
.carousel {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.carousel__viewport {
  overflow: hidden;
  border: 1px solid rgb(239 247 255 / 10%);
  border-radius: 18px;
  background: #0b0e13;
  touch-action: pan-y;
}

.carousel__track {
  display: flex;
  transition: transform 480ms cubic-bezier(0.22, 0.8, 0.28, 1);
}

.carousel__slide {
  flex: 0 0 100%;
  min-width: 0;
  margin: 0;
}

.carousel__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.carousel__caption {
  padding: 0.75rem 1.1rem;
  color: var(--text-secondary);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.carousel__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}

.carousel__dots {
  display: flex;
  gap: 0.5rem;
}

.carousel__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 22%);
  cursor: pointer;
  transition:
    background-color 160ms ease,
    transform 160ms ease;
}

.carousel__dot[aria-current="true"] {
  background: var(--accent);
  transform: scale(1.2);
}

.carousel__dot:focus-visible,
.carousel__button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.carousel__buttons {
  display: flex;
  gap: 0.5rem;
}

.carousel__button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgb(239 247 255 / 14%);
  border-radius: 50%;
  color: var(--text-primary);
  background: transparent;
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

.carousel__button:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
  background: rgb(142 203 255 / 6%);
}

.carousel__button:disabled {
  opacity: 0.3;
  cursor: default;
}

/* Proof ------------------------------------------------------------------- */
.proof {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding: clamp(1.4rem, 3vw, 2.25rem);
  border: 1px solid rgb(239 247 255 / 8%);
  border-radius: 20px;
  background: #171c24;
}

.proof h2 {
  margin: 0;
  color: var(--text-primary);
  font-family: "Pricedown", "Outfit", sans-serif;
  font-size: clamp(1.55rem, 2.6vw, 2.05rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.proof__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(1.25rem, 2.5vw, 1.75rem);
}

.proof__tile {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgb(239 247 255 / 8%);
  border-radius: 12px;
  background: #10141a;
}

.proof__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.proof__image--fit {
  box-sizing: border-box;
  padding: 0.85rem;
  background: linear-gradient(180deg, #1a2532, #0d121a);
  object-fit: contain;
}

.proof__caption {
  padding: 0.6rem 0.8rem;
  color: var(--text-secondary);
  font-size: 0.68rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 760px) {
  .proof__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
