@font-face {
  font-family: "TI Throne Header";
  src: url("_shared/assets/fonts/TiThroneHeader-Regular.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: Noto;
  src: url("_shared/assets/fonts/NotoSans-Regular.woff2") format("woff2");
  font-display: swap;
}
:root {
  /* Keep the desktop composition proportional on large viewports. */
  font-size: max(100%, calc(100vw / 90));
  --paper: #fff0dd;
  --soft: #dfd3ca;
  --gold: #e1bd96;
  --line: #99816a80;
  --ink: #100d16;
  --display: "TI Throne Header", serif;
  --header-height: 4.0625rem;
  --gutter: clamp(1.25rem, 4vw, 4.75rem);
}
* { box-sizing: border-box; }
html { background: var(--ink); scroll-padding-top: var(--header-height); scroll-behavior: smooth; }
body { margin: 0; color: var(--paper); font-family: Noto, sans-serif; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:where(a, button, video, summary, [tabindex]):focus-visible { outline: 2px solid #ffe2b4; outline-offset: 3px; }
.skip { position: fixed; z-index: 80; top: 8px; left: 0.75rem; transform: translateY(-160%); padding: 0.75rem; background: var(--paper); color: var(--ink); }
.skip:focus { transform: none; }
.site-header {
  position: fixed; z-index: 50; inset: 0 0 auto; height: var(--header-height);
  display: flex; align-items: center; gap: 1.25rem; padding: 0 var(--gutter);
  background: #100d16ef; border-bottom: 1px solid var(--line);
}
.site-brand { width: 5.875rem; flex: none; }
.site-brand img { width: 100%; height: auto; }
.site-links { display: flex; gap: clamp(0.75rem, 1.8vw, 2rem); flex: 1; align-items: center; justify-content: center; }
.site-links a, .site-menu a { text-decoration: none; color: var(--soft); font-size: 0.8125rem; }
.site-header a:hover { color: var(--paper); }
.site-menu { display: none; margin-left: auto; }
.site-cta { padding: 0.625rem 1.0625rem; color: var(--paper); background: #392244; border: 1px solid #ab896e; text-decoration: none; font: 1.0625rem/1.1 var(--display); }
.hero {
  overflow: clip; isolation: isolate; position: relative; display: grid; place-items: center;
  min-height: clamp(35rem, calc(100svh - 8.375rem), 51.25rem);
  padding: calc(var(--header-height) + 1.625rem) var(--gutter) 3.75rem; text-align: center;
}
.hero-image, .hero::after, .hero-image video { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { z-index: -2; background: #211636 url("cover-media/about-battles-poster.webp") center/cover; }
.hero-image video { object-fit: cover; }
.hero::after {
  content: ""; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 46% 52% at 50% 51%, #100d168f 4%, #100d1648 64%, transparent),
    linear-gradient(0deg, var(--ink), #100d1670 8%, transparent 28%, transparent 85%, #100d1626);
}
.hero-copy { position: relative; isolation: isolate; max-width: 65.625rem; text-shadow: 0 2px 6px #100d16, 0 1px 2px #100d16; }
.hero-copy::before {
  content: ""; position: absolute; inset: 14% -8% -3%; z-index: -1;
  background: radial-gradient(ellipse closest-side, #0b0715aa, #120d205e 61%, transparent);
  pointer-events: none;
}
.logo { height: auto; width: clamp(9.5rem, 15vw, 14.125rem); margin: 0 auto clamp(0.75rem, 2vh, 1.5rem); }
.eyebrow { margin: 0; color: var(--gold); font: 0.6875rem/1.4 Noto, sans-serif; text-transform: uppercase; letter-spacing: .16em; }
.hero-copy .eyebrow {
  display: inline-block; padding: 5px 0.9375rem; border-radius: 6.25rem;
  color: #fff0e8; border: 1px solid #ec7f899c; background: #751e34e8;
}
.hero-copy h1 { margin: 0.8125rem 0 0.625rem; font: 400 clamp(4rem, 7.6vw, 7.75rem)/1.04 var(--display); letter-spacing: -.026em; text-wrap: balance; }
.hero-copy > p:not(.eyebrow) { margin: 0 auto; max-width: 65ch; font-size: clamp(0.9375rem, 1.18vw, 1.125rem); line-height: 1.55; text-wrap: balance; color: #fff8ed; }
.hero-button { margin-top: 1.375rem; font-size: 0.5625rem; text-shadow: none; }
.button__text { font-family: var(--display); }
.hero-nav {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(7px, 1.1vw, 1.125rem);
  position: relative; width: min(95rem, 100%); margin: -1.375rem auto 0; padding: 0 var(--gutter) clamp(1.75rem, 3vw, 3.125rem);
}
.hero-nav a {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: end; text-decoration: none;
  width: 100%; min-width: 0; height: clamp(10.875rem, 15vw, 14.125rem); padding: 0.875rem clamp(0.625rem, 1.1vw, 1.125rem); background: #211636; border: 1px solid var(--line);
}
.hero-nav img { z-index: -2; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease-out; }
.hero-nav a:hover, .hero-nav a:focus-visible { border-color: var(--gold); }
.hero-nav a:hover img, .hero-nav a:focus-visible img { transform: scale(1.045); }
.hero-nav-text { position: relative; isolation: isolate; min-width: 0; width: 100%; text-shadow: 0 1px 4px var(--ink); }
.hero-nav-text::before {
  content: ""; position: absolute; z-index: -1; inset: -1.75rem -1.5rem -1.25rem; pointer-events: none;
  background: linear-gradient(to bottom, transparent, #100d16c9 1.75rem, #0c0810ee);
}
.hero-nav strong { color: #ffdc93; font: 400 clamp(1.1875rem, 1.57vw, 1.6875rem)/1.12 var(--display); text-wrap: balance; }

.orb-section { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); }
.orb-section::before, .orb-section::after { content: ""; position: absolute; inset: 0; }
.orb-section::before { z-index: -2; background: url("_shared/storm/media/orb-sanctuary.webp") center/cover; opacity: .5; }
.orb-section::after { z-index: -1; background: linear-gradient(90deg, #100d16, #100d16cc 34%, transparent 77%), linear-gradient(0deg, var(--ink), transparent 23% 80%, var(--ink)); }
.orb-layout { max-width: 81.25rem; min-height: 40.625rem; margin: auto; padding: 5rem var(--gutter); display: grid; grid-template-columns: minmax(0, 30rem) minmax(0, 1fr); align-items: center; }
.orb-intro { position: relative; z-index: 2; }
.orb-intro h2 { margin: 0 0 1rem; font: 400 clamp(4.875rem, 8.8vw, 8.25rem)/1 var(--display); }
.orb-intro > p:not(.eyebrow) { max-width: 35ch; font-size: clamp(1.1875rem, 1.8vw, 1.625rem); line-height: 1.45; color: var(--paper); text-wrap: pretty; }
.feature-bullets { list-style: none; margin: 1.125rem 0; padding: 0; color: var(--gold); }
.orb-clip { max-width: 32.5rem; margin-top: 1.5rem; }
.brand-video-frame { position: relative; border-radius: 8px; overflow: hidden; background: var(--ink); }
.brand-video-frame video { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.brand-video-frame::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: url("video-frame-brandbook.svg") center/100% 100% no-repeat; }
.orb-art { position: relative; min-width: 0; align-self: stretch; }
.orb-character { position: absolute; bottom: -5rem; right: 0; height: 118%; width: auto; max-width: none; }
.closing {
  --closing-image: url("_shared/storm/media/chapter-return.webp");
  position: relative; isolation: isolate; display: grid; place-items: center;
  min-height: clamp(24.375rem, 38vw, 37.5rem); background: #131018;
  padding: 4.375rem var(--gutter); text-align: center;
}
.closing::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 57%, #11101c77, transparent 70%),
    var(--closing-image) center top / cover;
  mask-image: linear-gradient(to bottom, transparent, black min(3vw, 5%));
}
.closing-copy { display: grid; justify-items: center; gap: 1.5625rem; text-shadow: 0 2px 8px #100d16; }
.closing h2 { margin: 0; font: 400 clamp(2.375rem, 4vw, 4.125rem)/1.1 var(--display); text-wrap: balance; }
.closing .hero-button { flex: none; margin: 0; }
@media (max-width: 360px) {
  .closing .hero-button { font-size: 7.6px; }
}

@media (max-width: 970px) {
  .site-links { display: none; }
  .site-menu { display: block; }
  .site-menu summary { list-style: none; padding: 12px 4px; cursor: pointer; color: var(--soft); font-size: 14px; }
  .site-menu summary::-webkit-details-marker { display: none; }
  .site-menu nav { position: absolute; right: var(--gutter); top: 100%; width: min(240px, calc(100vw - 28px)); max-height: 70svh; overflow-y: auto; display: grid; padding: 6px; background: #19131f; border: 1px solid var(--line); }
  .site-menu a { padding: 10px; }
  .hero-nav { display: flex; width: calc(100% - 2 * var(--gutter)); padding-inline: 0; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0; scrollbar-width: thin; scrollbar-color: #796453 var(--ink); padding-bottom: 12px; margin-bottom: 18px; }
  .hero-nav a { flex: 0 0 calc((100% - 3 * clamp(7px, 1.1vw, 18px)) / 4); scroll-snap-align: start; padding: 14px; }
}
@media (max-width: 680px) {
  :root { --header-height: 56px; --gutter: 18px; }
  .site-header { gap: 10px; }
  .site-brand { width: 74px; }
  .site-cta { font-size: 15px; padding: 9px 10px; }
  .hero { min-height: clamp(500px, 77svh, 665px); padding-bottom: 66px; }
  .hero::after { background: radial-gradient(ellipse 65% 44% at 50% 52%, #100d168c, #100d1638 78%, transparent), linear-gradient(0deg, var(--ink), transparent 25%); }
  .hero-copy h1 { max-width: 9ch; margin: 14px auto 10px; font-size: clamp(52px, 13.6vw, 78px); }
  .hero-copy > p:not(.eyebrow) { max-width: 32ch; }
  .hero-copy .eyebrow { font-size: 10px; }
  .hero-nav { gap: 10px; }
  .hero-nav a { flex-basis: calc((100% - 10px) / 2); height: clamp(168px, 45vw, 200px); padding: 12px 9px; }
  .hero-nav strong { font-size: clamp(17px, 5vw, 22px); }
  .orb-layout { display: flex; flex-direction: column; align-items: stretch; padding: 65px var(--gutter); }
  .orb-art { min-height: 390px; }
  .orb-character { right: 0; height: 110%; }
  .closing { min-height: 390px; --closing-image: url("_shared/storm/media/chapter-return-mobile.webp"); }
}
@media (max-width: 360px) {
  .site-header { padding-inline: 12px; gap: 8px; }
  .site-cta { white-space: nowrap; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-nav img { transition: none; }
}
