:root {
  --red: #c91420;
  --black: #070707;
  --gold: #f79f2c;
  --ivory: #fff6df;
  --paper: #f7efe0;
  --muted: rgba(255, 246, 223, .72);
  --line: rgba(255, 246, 223, .14);
  --shadow: 0 24px 90px rgba(0, 0, 0, .42);
}

@font-face {
  font-family: "Deadhead";
  src: url("fonts/deadhead/Deadhead.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ivory);
  background:
    radial-gradient(circle at 18% 10%, rgba(201, 20, 32, .28), transparent 28rem),
    radial-gradient(circle at 88% 4%, rgba(241, 181, 29, .18), transparent 24rem),
    linear-gradient(180deg, #090909 0%, #15100b 42%, #070707 100%);
  font-family: Nunito, system-ui, sans-serif;
  overflow-x: hidden;
}

body.light-theme {
  --ivory: #17110a;
  --muted: rgba(23, 17, 10, .72);
  --line: rgba(23, 17, 10, .14);
  --shadow: 0 24px 80px rgba(76, 42, 10, .18);
  color: var(--ivory);
  background:
    radial-gradient(circle at 18% 10%, rgba(247, 159, 44, .28), transparent 26rem),
    radial-gradient(circle at 88% 4%, rgba(201, 20, 32, .12), transparent 24rem),
    linear-gradient(180deg, #fff8ea 0%, #f6ead7 46%, #fffdf8 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
  z-index: -1;
}

a { color: inherit; }
img { display: block; max-width: 100%; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 54px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: rgba(7, 7, 7, .78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

body.light-theme .site-header {
  background: rgba(255, 248, 234, .82);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: "Deadhead", Nunito, sans-serif;
  font-size: 34px;
  letter-spacing: 1px;
}

.brand img { width: 48px; height: 48px; object-fit: contain; }
.site-nav { display: flex; gap: clamp(16px, 3vw, 34px); align-items: center; margin-left: auto; }
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  font: 900 12px/1 Nunito, sans-serif;
  letter-spacing: 1.6px;
}
.site-nav a:hover,
.site-nav a.current {
  color: var(--gold);
}
.site-nav a.current {
  position: relative;
}
.site-nav a.current::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  background: var(--gold);
}
.theme-toggle {
  order: 2;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255,246,223,.22);
  background: rgba(255,246,223,.08);
  color: var(--ivory);
  font: 900 11px/1 Nunito, sans-serif;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  cursor: pointer;
}
body.light-theme .theme-toggle {
  border-color: rgba(23, 17, 10, .18);
  background: rgba(23, 17, 10, .06);
}
.menu-toggle { display: none; order: 3; }

.home-hero, .character-hero {
  position: relative;
  min-height: 100vh;
  padding: 110px clamp(18px, 5vw, 72px) 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 560px);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  overflow: hidden;
}

.home-hero {
  min-height: 100svh;
  grid-template-columns: 1fr;
  align-content: center;
}

.home-hero::after, .character-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  height: auto;
  background:
    linear-gradient(90deg, rgba(7, 7, 7, .86) 0%, rgba(7, 7, 7, .58) 46%, rgba(7, 7, 7, .18) 100%),
    linear-gradient(180deg, rgba(7, 7, 7, .42) 0%, rgba(7, 7, 7, .08) 42%, rgba(7, 7, 7, .8) 100%);
  pointer-events: none;
  z-index: 1;
}

body.light-theme .home-hero::after,
body.light-theme .character-hero::after {
  background:
    linear-gradient(90deg, rgba(255, 248, 234, .88) 0%, rgba(255, 248, 234, .58) 46%, rgba(255, 248, 234, .18) 100%),
    linear-gradient(180deg, rgba(255, 248, 234, .48) 0%, rgba(255, 248, 234, .08) 42%, rgba(255, 248, 234, .84) 100%);
}

.marawa-strip {
  position: absolute;
  inset: 76px 0 auto;
  height: 8px;
  background: linear-gradient(90deg, var(--red) 0 33.33%, var(--black) 33.33% 66.66%, var(--gold) 66.66%);
  box-shadow: 0 0 35px rgba(241, 181, 29, .25);
}

.hero-media {
  order: 2;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 246, 223, .18);
  box-shadow: var(--shadow);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #151515;
}
.home-hero .hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border: 0;
  box-shadow: none;
  order: 0;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-slider .hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity .8s ease, transform 4.8s ease;
  transform: scale(1.04);
}
.hero-slider .hero-slide.active {
  opacity: 1;
  transform: scale(1);
}
.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(201,20,32,.18), transparent 40%, rgba(241,181,29,.15));
  pointer-events: none;
  z-index: 2;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border: 1px solid rgba(255,246,223,.32);
  background: rgba(7,7,7,.38);
  color: transparent;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
}
.hero-arrow::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 12px;
  height: 12px;
  border-top: 3px solid var(--gold);
  border-right: 3px solid var(--gold);
}
.hero-arrow-left { left: clamp(16px, 3vw, 38px); }
.hero-arrow-right { right: clamp(16px, 3vw, 38px); }
.hero-arrow-left::before { transform: rotate(-135deg); }
.hero-arrow-right::before { transform: rotate(45deg); }
.hero-arrow:hover { background: rgba(247,159,44,.22); }

.hero-dots {
  position: absolute;
  z-index: 4;
  left: clamp(18px, 5vw, 72px);
  bottom: 34px;
  display: flex;
  gap: 10px;
}
.hero-dots button {
  width: 34px;
  height: 4px;
  padding: 0;
  border: 0;
  background: rgba(255,246,223,.38);
  cursor: pointer;
}
.hero-dots button.active { background: var(--gold); }

.hero-content { position: relative; z-index: 3; max-width: 790px; }
.home-hero .hero-content {
  padding: 34px 0;
  max-width: min(760px, calc(100vw - 36px));
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  text-transform: uppercase;
  font: 900 12px/1.4 Nunito, sans-serif;
  letter-spacing: 2.6px;
}
h1, h2, h3, p { margin-top: 0; }
h1, h2, .character-title {
  font-family: "Deadhead", Nunito, sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
}
h1 {
  margin-bottom: 18px;
  max-width: 850px;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.08;
}
h2 { font-size: clamp(30px, 4.8vw, 56px); line-height: 1.1; margin-bottom: 18px; }
h1::after, h2::after {
  content: ".";
  color: var(--gold);
}
h3 { font-size: 24px; }
.hero-content p, .section-copy p, .premium-panel p, .contact-card p, .character-copy p {
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.75;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid rgba(255,246,223,.22);
  text-decoration: none;
  text-transform: uppercase;
  font: 900 12px/1 Nunito, sans-serif;
  letter-spacing: 1.6px;
}
.btn.primary { background: var(--gold); color: #161006; border-color: var(--gold); }
.btn.ghost { background: rgba(255,246,223,.06); }
.btn:hover { transform: translateY(-2px); transition: .2s ease; }

.section { padding: clamp(58px, 8vw, 112px) clamp(18px, 5vw, 72px); position: relative; }
.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .65fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}
.section-heading { max-width: 760px; margin-bottom: 34px; }
.premium-panel, .contact-card {
  border: 1px solid rgba(255, 246, 223, .16);
  background: linear-gradient(145deg, rgba(255,246,223,.09), rgba(255,246,223,.03));
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 42px);
}
.panel-kicker {
  display: inline-block;
  padding: 7px 12px;
  margin-bottom: 22px;
  color: #170f05;
  background: linear-gradient(90deg, var(--red), var(--gold));
  font: 900 12px/1 Nunito, sans-serif;
  text-transform: uppercase;
  letter-spacing: 1.6px;
}

.value-grid, .team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.value-card, .team-card {
  min-height: 220px;
  padding: 28px;
  background: rgba(255,246,223,.055);
  border: 1px solid var(--line);
}
.team-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 20px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(247,159,44,.22), rgba(201,20,32,.18));
  border: 1px solid var(--line);
}
.team-photo::after {
  content: attr(data-initial);
  color: var(--gold);
  font: 400 64px/1 "Deadhead", Nunito, sans-serif;
}
.team-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.value-card span {
  display: block;
  color: var(--gold);
  font: 900 14px/1 Nunito, sans-serif;
  margin-bottom: 36px;
}
.value-card p, .team-card p { color: var(--muted); line-height: 1.7; }

.character-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.character-card {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(255,246,223,.16);
  color: var(--ivory);
  text-decoration: none;
  box-shadow: var(--shadow);
}
.character-card img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: top center;
  transition: transform .45s ease;
}
.character-card:hover img { transform: scale(1.06); }
.character-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 28%, rgba(0,0,0,.24), rgba(0,0,0,.94));
}
.card-content {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  padding: 28px;
}
.card-content p { color: var(--gold); font: 900 12px/1 Nunito, sans-serif; letter-spacing: 2px; text-transform: uppercase; }
.card-content h3 {
  margin: 0 0 8px;
  font-family: "Deadhead", Nunito, sans-serif;
  font-size: 38px;
  line-height: 1;
  text-transform: uppercase;
}
.card-content span { color: var(--muted); line-height: 1.55; }

.gallery-shell { position: relative; }
.gallery-controls { display: none; }
.gallery-nav {
  min-width: 112px;
  min-height: 42px;
  border: 1px solid rgba(255,246,223,.2);
  background: rgba(255,246,223,.08);
  color: var(--ivory);
  font: 900 12px/1 Nunito, sans-serif;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  cursor: pointer;
}
.gallery-nav:hover { background: var(--gold); color: #140d05; border-color: var(--gold); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.gallery-item {
  appearance: none;
  padding: 0;
  border: 1px solid rgba(255,246,223,.14);
  background: transparent;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-item:hover img { transform: scale(1.05); }

.contact-section { padding-top: 20px; }
.contact-card { max-width: 820px; }
.contact-card a { color: var(--gold); text-decoration: none; }

.site-footer {
  padding: 42px 18px 54px;
  text-align: center;
  border-top: 1px solid var(--line);
  background: #060606;
}
body.light-theme .site-footer {
  background: #fff8ea;
}
.site-footer img { width: 80px; margin: 0 auto 16px; }
.site-footer p { margin-bottom: 6px; font-weight: 800; }
.site-footer span { color: rgba(255,246,223,.52); font-size: 13px; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(0,0,0,.88);
}
.lightbox.open { display: grid; }
.lightbox img { max-height: 84vh; width: min(1100px, 94vw); object-fit: contain; }
.lightbox button {
  position: absolute;
  right: 24px;
  top: 20px;
  background: var(--gold);
  border: 0;
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
}

.character-hero {
  grid-template-columns: minmax(300px, 520px) minmax(0, 1fr);
}
.character-hero .hero-media { order: 0; }
.character-title { font-size: clamp(44px, 6.8vw, 84px); line-height: 1.08; margin-bottom: 20px; }
.stat-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}
.stat {
  padding: 16px;
  background: rgba(255,246,223,.07);
  border: 1px solid var(--line);
}
.stat strong { display: block; color: var(--gold); font: 400 30px/1 "Deadhead", Nunito, sans-serif; }
.stat span { color: rgba(255,246,223,.64); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.character-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .9fr);
  gap: clamp(28px, 5vw, 60px);
}
.feature-list { display: grid; gap: 12px; }
.feature {
  padding: 20px;
  border: 1px solid var(--line);
  background: rgba(255,246,223,.055);
}
.feature h3 { margin-bottom: 8px; }
.feature p { margin-bottom: 0; color: var(--muted); line-height: 1.65; }
.related-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gold);
    color: #130d04;
    border: 0;
    min-height: 40px;
    padding: 0 14px;
    font: 900 12px/1 Nunito, sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
  }
  .site-nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    padding: 18px;
    background: rgba(7,7,7,.96);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
  }
  body.light-theme .site-nav { background: rgba(255, 248, 234, .98); }
  .site-nav a.current::after { display: none; }
  .site-nav.open { display: flex; }
  .home-hero, .character-hero, .split-section, .character-copy {
    grid-template-columns: 1fr;
  }
  .hero-media { order: -1; width: min(100%, 520px); margin: 0 auto; aspect-ratio: 16 / 11; }
  .home-hero .hero-media { width: 100%; margin: 0; aspect-ratio: auto; }
  .hero-arrow { width: 42px; height: 42px; }
  .hero-dots { bottom: 22px; }
  .value-grid, .team-grid, .character-grid, .stat-list { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .character-card { min-height: 420px; }
}

@media (max-width: 520px) {
  .brand span { font-size: 24px; }
  .brand img { width: 42px; height: 42px; }
  h1 { font-size: 40px; }
  .section { padding-left: 16px; padding-right: 16px; }
  .hero-actions, .related-links { flex-direction: column; }
  .hero-arrow { top: auto; bottom: 78px; transform: none; }
  .hero-arrow-left { left: 16px; }
  .hero-arrow-right { right: 16px; }
  .btn { width: 100%; }
  .gallery-grid { display: grid; grid-template-columns: 1fr; }
  .gallery-shell.reveal { opacity: 1; transform: none; }
}
