.home-page {
  --bg: #0c1116;
  --surface: #141d24;
  --surface-raised: #1c2a33;
  --line: #43535a;
  --control-line: #b98258;
  --text: #fff4e1;
  --muted: #c9c2b5;
  --accent: #f4b278;
  --gold-accent: #dba470;
  --champagne: #ffe3ab;
}

.home-page .site-header { background: linear-gradient(#0c1116e8, #0c11162c); border-color: #f6ca9740; }
.home-page .site-header.is-scrolled { background: #0c1116f5; }
.home-page .brand img { background: transparent; border: 0; filter: drop-shadow(0 0 .55rem #ffc57866); }
.home-page .site-header .brand img { filter: none; }
.home-page .brand-text strong { font-family: var(--display); letter-spacing: .09em; }
.home-page .header-cta { border-color: var(--control-line); }

.hero-stage { --hero-focal: center 29%; background: #17242d; }
.hero-stage::before {
  background:
    linear-gradient(0deg, #0a1016 0%, #111b242e 31%, #111b2400 71%, #0b10158f 100%),
    radial-gradient(ellipse at 50% 58%, #101a22a9 0%, #131d2454 49%, #0a101829 78%);
}
.hero-art img, .hero-film > :is(.banner-video,.banner-upload-image) { object-position: var(--hero-focal); }
.hero-haze {
  position: absolute;
  z-index: 2;
  inset: auto 0 3.2rem;
  width: 100%;
  height: 44%;
  opacity: 0;
  pointer-events: none;
  mask-image: linear-gradient(transparent,#000 33%,#000 72%,transparent);
}
.hero-haze[data-render-state="active"] { opacity: .72; }

.hero-sight {
  position: absolute;
  z-index: 3;
  inset: calc(var(--header-height) + 1rem) var(--gutter) 5rem;
  border-inline: 1px solid #e5ba8c36;
  pointer-events: none;
  background: linear-gradient(#f3c08eab,#f3c08eab) left top / 2.1rem 1px no-repeat,
    linear-gradient(#f3c08eab,#f3c08eab) right top / 2.1rem 1px no-repeat,
    linear-gradient(#f3c08eab,#f3c08eab) left bottom / 2.1rem 1px no-repeat,
    linear-gradient(#f3c08eab,#f3c08eab) right bottom / 2.1rem 1px no-repeat;
}

.hero-inner {
  min-height: max(45rem, 100svh);
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height) + 2.75rem) 1rem clamp(7rem, 14svh, 9rem);
  text-align: center;
}
.hero-copy { width: min(100%, 65rem); }
.hero-seal {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: clamp(4.7rem, 8.7vw, 7.75rem);
  aspect-ratio: 1;
  margin-inline: auto;
  margin-block-end: .35rem;
}
.hero-seal img { display: block; width: 100%; height: auto; }
.hero-status { display: inline-flex; gap: clamp(.45rem, 1.3vw, 1.05rem); font-size: .68rem; letter-spacing: .36em; color: #ffe0b0; }
.hero-status span { width: clamp(.7rem, 3vw, 2.75rem); background: #e8bf8d; }
.hero-title {
  display: grid;
  justify-items: center;
  margin: .72rem 0 .78rem;
  color: #fff0d0;
  font-size: clamp(4.4rem, 13.95vw, 14rem);
  font-weight: 500;
  line-height: .81;
  letter-spacing: -.072em;
  text-shadow: 0 .05em .3em #090d13ab;
}
.hero-description { max-width: 31rem; margin-inline: auto; color: #f1e6d8; line-height: 1.58; text-shadow: 0 1px .75rem #0a1016; }
.hero-actions { justify-content: center; margin-top: 1.3rem; }
.hero-actions .btn-primary { gap: 1rem; color: #21140f; border-color: #fce5ad; background: linear-gradient(112deg,#fff0be,#e9a86f 92%); }
.hero-actions .btn-secondary { gap: .7rem; color: #fff1d2; background: #17253091; border-color: #f9d59b8f; }
.hero-watch-icon { color: #ffca83; font-size: .81rem; }
.hero-actions .btn-secondary:hover { background: #2b3d46; border-color: #ffda99; }
.hero-dock {
  position: absolute;
  z-index: 5;
  inset-inline: 0;
  inset-block-end: .9rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .75rem;
}
.about-links { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1.45rem; }
.hero-scroll { display: flex; min-height: 44px; align-items: center; gap: .7rem; color: #f5d9aa; font-size: .78rem; letter-spacing: .05em; }
.hero-scroll span { display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border: 1px solid #f5d9aa75; border-radius: 50%; }
.hero-scroll:hover span { background: #ffd6a12a; }
.hero-controls { justify-content: flex-end; margin: 0; }
:root[data-motion="on"] .hero-stage.is-opening .hero-seal img { animation: atlas-seal .95s cubic-bezier(.22,.69,.26,1) both; }
:root[data-motion="on"] .hero-stage.is-opening .hero-title span { animation: atlas-name .92s .06s cubic-bezier(.19,.8,.3,1) both; }
@keyframes atlas-seal { from { clip-path: inset(0 0 90%); transform: scale(.94); filter: brightness(1.55); } to { clip-path: inset(0); transform: none; } }
@keyframes atlas-name { from { clip-path: inset(-.25em 0 98%); transform: translateY(.14em); } to { clip-path: inset(-.25em -.1em -.2em); transform: none; } }

@supports (animation-timeline: scroll()) {
  @media (min-width: 960px) and (prefers-reduced-motion: no-preference) {
    :root[data-motion="on"] .hero-sight {
      animation: atlas-frame-leave both linear;
      animation-timeline: scroll(root block);
      animation-range: 10px 570px;
    }
  }
}
@keyframes atlas-frame-leave { from { opacity: 1; } to { opacity: .1; transform: translateY(18px) scale(.985); } }

.battle-ledger { padding-block: clamp(3.2rem, 8vw, 7rem); background: linear-gradient(125deg,#221b19,#242529 53%,#18242b); }
.battle-ledger-inner { display: grid; grid-template-columns: minmax(0,.78fr) minmax(0,1.22fr); align-items: center; gap: clamp(1.5rem, 5vw, 5rem); }
.battle-results { margin: 0; padding: 0; list-style: none; border-top: 1px solid #d6b9856b; }
.battle-results a { min-height: 4.9rem; display: grid; align-items: center; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: .55rem; padding-inline: .45rem; border-bottom: 1px solid #d6b9856b; color: #f1dabb; font-size: clamp(.62rem,1.18vw,.9rem); font-weight: 700; }
.battle-results a:hover { background: #ffca8820; }
.battle-results a > span:last-child { text-align: right; }
.battle-results strong { color: #ffd38f; font: 500 clamp(1.4rem,3vw,2.8rem)/1 var(--display); white-space: nowrap; }
.battle-results small { padding-inline: .24em; color: #d6ad88; }
.battle-ledger-inner { align-items: start; }
.score-archive { grid-column: 1 / -1; min-width: 0; margin-top: clamp(.35rem,1.4vw,1rem); padding-top: clamp(1.2rem,2.5vw,2rem); border-top: 1px solid #d6b9856b; }
.score-archive-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .85rem; }
.score-archive-heading h3 { margin: 0; color: #f1dabb; font: 500 clamp(1.15rem,2.3vw,1.65rem)/1.15 var(--display); }
.score-archive-heading > span { color: #d6ad88; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.score-archive-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .8rem; margin: 0; padding: 0; list-style: none; }
.score-archive-grid a { position: relative; display: block; aspect-ratio: 1.55; overflow: hidden; border: 1px solid #d6b98564; background: radial-gradient(ellipse,#30251d,#11191f); }
.score-archive-grid a::after { content: ""; position: absolute; inset: 42% 0 0; pointer-events: none; background: linear-gradient(transparent,#10161ddd); }
.score-archive-grid img { width: 100%; height: 100%; padding: .35rem; object-fit: contain; transition: transform .35s cubic-bezier(.2,.7,.25,1); }
.score-archive-grid a > span { position: absolute; z-index: 1; inset: auto .65rem .6rem; overflow: hidden; color: #fff0d0; font-size: .8rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px .5rem #090d13; }
.score-archive-grid a:is(:hover,:focus-visible) { border-color: #e7bc8c; }
.score-archive-grid a:is(:hover,:focus-visible) img { transform: scale(1.035); }
.score-archive-grid a:focus-visible { outline: 2px solid var(--champagne); outline-offset: 3px; }
.archive-toolbar { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; margin-block:1rem 1.3rem; gap:.65rem 1rem; border-bottom:1px solid var(--line); }
.archive-filters { display:flex; flex-wrap:wrap; gap: .1rem .35rem; }
.archive-filters button { min-height: 44px; padding: .35rem .65rem; border: 0; border-bottom: 2px solid transparent; color: var(--muted); background: transparent; cursor: pointer; }
.archive-filters button:is(:hover, [aria-pressed="true"]) { color: var(--champagne); border-color: var(--accent); }
.archive-result { color: var(--muted); font-size: .82rem; }
.archive-toolbar[hidden], .media-card[hidden] { display: none; }
.media-card[data-category="score"] img { object-fit: scale-down; padding: .75rem .85rem 3rem; background: radial-gradient(ellipse,#30251d,#162027); }
.media-card[data-category="score"] .media-caption { font-size: clamp(.92rem,1.55vw,1.25rem); }
.media-card .media-video-fallback { object-fit: contain; padding: 1.8rem; background: linear-gradient(140deg,#32271d,#162027); }
.media-grid:has(.media-card[hidden]) .media-card { grid-column: span 4; }
.media-card:focus-visible { outline: 2px solid var(--champagne); outline-offset: -4px; }
.gallery-dialog[data-score-ref="true"] img { width: auto; max-width: 100%; margin: 1.1rem auto; }
.gallery-dialog[data-kind="image"] img { height: auto; }

@media (max-width: 900px) {
  .hero-inner { min-height: max(43rem, 94svh); }
  .hero-title { font-size: clamp(3.8rem, 14.5vw, 10rem); }
  .battle-ledger-inner { grid-template-columns: 1fr; }
  .score-archive-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 680px) {
  .hero-stage { --hero-focal: center 12%; }
  .hero-stage::before { background: linear-gradient(0deg,#0a1016 0%,#111b248e 27%,#111b2445 66%,#0b101579 100%); }
  .hero-art, .hero-film > :is(.banner-video,.banner-upload-image) { top: 0; width:100%; height:100%; max-height:none; aspect-ratio:auto; }
  .hero-sight { inset-inline: .55rem; inset-block-end: 5.55rem; opacity: .55; }
  .hero-inner { min-height: max(40rem, 92svh); padding: calc(var(--header-height) + 4.3rem) .35rem 7.5rem; }
  .hero-status { letter-spacing: .24em; }
  .hero-title { font-size: clamp(2.9rem, 15.6vw, 6.7rem); }
  .hero-description { font-size: .96rem; }
  .hero-dock { align-items: flex-end; gap: .2rem; }
  .hero-controls { gap: 0 .75rem; }
  .hero-controls button { font-size: .69rem; }
  .media-grid:has(.media-card[hidden]) .media-card { grid-column: span 6; }
  .score-archive-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .55rem; }
}
@media (max-width: 430px) {
  .home-page .header-inner .brand { gap:.4rem; }
  .home-page .header-inner .brand-text strong { font-size: clamp(.85rem,4.25vw,1.05rem); letter-spacing:.07em; }
  .hero-actions .btn { min-height: 46px; padding-inline: .78rem; }
  .hero-scroll { font-size: .68rem; }
}
