*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: dark; overflow: hidden; }
body {
  --gutter: clamp(1.15rem, 3vw, 3.2rem);
  --condensed: Bahnschrift, 'Arial Narrow', 'Liberation Sans Narrow', var(--sans);
  margin: 0;
  height: 100dvh;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: var(--coal);
  color: var(--paper);
  font: 1rem/1.55 var(--sans);
}
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
p, h1, h2, h3 { margin: 0; }
img { display: block; }
.shell { width: min(100% - 2 * var(--gutter), 99rem); margin-inline: auto; }
.skip { position: fixed; z-index: 5; left: 1rem; top: 1rem; padding: .75rem; background: #fff; color: #090909; transform: translateY(-180%); }
.skip:focus { transform: none; }
body :focus-visible { outline-color: var(--signal); }
main { min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) clamp(11.25rem, 40dvh, 25rem); }
.masthead, .footer, .masthead-brand, nav { display: flex; align-items: center; }
.masthead, .footer { justify-content: space-between; gap: .65rem; border-bottom: 1px solid #ffffff25; }
.masthead { position: relative; z-index: 1; min-height: 3.75rem; }
.masthead-brand { gap: clamp(.8rem, 2.75vw, 2.5rem); }
.wordmark { display: inline-flex; flex: none; align-items: center; min-height: 44px; }
.logo-filter { position: absolute; pointer-events: none; }
.logo-filter feFlood { flood-color: var(--signal); }
.wordmark img {
  width: clamp(5.25rem, 11vw, 9rem);
  height: auto;
  filter: url(#logo-accent);
}
.section-head h2 i { width: 1.25rem; height: 1.05rem; background: repeating-linear-gradient(90deg, var(--signal) 0 2px, transparent 2px 5px); transform: skewX(-24deg); }
.masthead-label, .index-label, .position, .hero-rail { font: .75rem/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.masthead-label { color: #cbc8c7; }
nav { align-self: stretch; gap: clamp(1rem, 3vw, 3rem); }
nav a, nav button { display: inline-flex; align-items: center; position: relative; min-height: 44px; }
nav button { padding: 0; border: 0; background: transparent; }
nav a, nav button, .button, .section-head h2, .drawer h2, .context-panel h2, .story h3, .story-meta, .hero-subtitle { font-family: var(--condensed); text-transform: uppercase; font-weight: 650; }
nav :is(a, button):hover, .footer a:hover { color: var(--signal); }
.nav-primary::after { content: ''; position: absolute; inset: auto 0 0; height: 2px; background: var(--signal); box-shadow: 0 0 14px var(--signal); }
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero-art { position: absolute; inset: 0 0 auto auto; width: auto; max-width: 100%; height: 100%; object-fit: contain; object-position: right center; mask-image: linear-gradient(90deg, transparent, #000 22%); z-index: -2; }
.hero:has(.hero-experience:not([hidden])) .hero-base { visibility: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #050609 0%, #050609e8 24%, #05060973 45%, transparent 66%), linear-gradient(0deg, #08090b, transparent 29%); }
.hero-inner { display: flex; align-items: center; height: 100%; gap: clamp(1.5rem, 5.5vw, 6rem); padding-block: .65rem; }
.hero-rail { flex: none; align-self: stretch; display: flex; flex-direction: column; gap: 2rem; padding: 2rem 0 1rem .7rem; border-left: 1px dotted #b4b4b4; color: #ccc9c6; font-size: .64rem; }
.hero-rail i { display: inline-block; width: 6px; height: 6px; margin-right: .25rem; background: var(--signal); border-radius: 50%; box-shadow: 0 0 12px var(--signal); }
.hero-copy { max-width: 39rem; }
#headline {
  margin: 0 0 .12em;
  color: #f1e9de;
  font: 900 clamp(4rem, min(11vw, 18dvh), 12rem)/.88 Impact, 'Arial Black', var(--condensed);
  letter-spacing: .13em;
  text-shadow: 0 4px 35px #0008;
}
#hero-title { max-width: 13ch; font: 900 clamp(2.6rem, min(6vw, 12dvh), 7rem)/.95 Impact, 'Arial Black', var(--condensed); letter-spacing: .055em; text-transform: uppercase; text-shadow: 0 4px 35px #000a; margin-bottom: .55rem; }
#hero-stat { color: var(--signal); }
.hero-subtitle { font-size: clamp(.95rem, 1.5vw, 1.375rem); line-height: 1.28; letter-spacing: .24em; }
.hero-subtitle::after { content: ''; display: block; width: 3.5rem; height: 2px; margin-block: clamp(.4rem, 1.7dvh, 1rem); background: var(--signal); box-shadow: 0 0 12px var(--signal); }
.intro { max-width: 50ch; color: #e1ddda; font: clamp(.82rem, 1.2vw, 1rem)/1.55 var(--mono); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem 1rem; margin-top: 1.1rem; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 1.1rem; min-height: 46px; padding: .55rem .9rem; border: 1px solid #b8b6b5; border-radius: 3px; letter-spacing: .09em; background: #08090bcf; font-size: .9rem; }
.button:hover { background: #27262a; }
.button-primary { color: color-mix(in srgb, var(--signal) 76%, white); border-color: var(--signal); box-shadow: 0 0 16px color-mix(in srgb, var(--signal) 30%, transparent); }
.button-primary:hover { background: color-mix(in srgb, var(--signal) 20%, var(--coal)); }
.reset-selection { width: 44px; height: 44px; border: 0; background: #08090bcc; }
.reset-selection:hover { color: var(--signal); }
.catalog-stage { position: relative; min-height: 0; overflow: clip; isolation: isolate; }
.catalog { position: relative; height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: var(--coal); isolation: isolate; }
.catalog-stage.is-revealed .catalog { transform: translateY(100%); }
.context-panel { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--panel); border-top: 1px solid var(--signal); }
.context-panel .drawer-head { padding-block: .4rem; }
.context-panel .progress-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr)); }
.context-panel .drawer-content { padding-block: .65rem 1rem; }
.catalog::before { content: ''; position: absolute; z-index: -1; inset: 20% 0 0; background: radial-gradient(ellipse at 45% 72%, #2b121a90, transparent 65%); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: .55rem 1.5rem; border-bottom: 1px solid #ffffff2b; }
.section-head h2 { display: flex; align-items: center; gap: clamp(.5rem, 1.5vw, 1.35rem); letter-spacing: .22em; font-size: clamp(.95rem, 1.7vw, 1.38rem); line-height: 1.2; padding-block: .6rem; }
.section-head h2::before { content: ''; width: clamp(.75rem, 2vw, 2rem); height: 2px; background: var(--signal); }
.section-head h2 i { width: .65rem; height: .8rem; }
.carousel-controls { flex: none; display: flex; align-items: center; gap: .45rem; padding-bottom: .25rem; }
.position { margin-right: clamp(.1rem, 1vw, .8rem); white-space: nowrap; }
.selection-announcement { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.carousel-controls button { width: 44px; height: 44px; padding: 0; border: 1px solid #ffffff61; border-radius: 4px; background: #121317; cursor: pointer; font: 1.65rem/1 var(--sans); }
.carousel-controls button:hover { color: var(--signal); border-color: var(--signal); }
.story-list { min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr); grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * .85rem) / 5); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: .85rem; margin: 0; padding: clamp(.4rem, 1.7dvh, 1.2rem) .35rem .4rem; list-style: none; }
.story-list li { min-width: 0; container-type: size; scroll-snap-align: center; }
.story { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; height: 100%; overflow: hidden; padding: clamp(.55rem, 1.6dvh, 1.4rem); border: 1px solid color-mix(in srgb, var(--accent) 66%, #08090b); border-radius: 12px; background: #0f1013; }
.story img, .story::before { position: absolute; inset: 0; width: 100%; height: 100%; }
.story img { z-index: -2; object-fit: contain; object-position: center; }
.story::before { content: ''; z-index: -1; background: linear-gradient(180deg, #07080be8, #07080b22 48%, #07080bf5 90%), color-mix(in srgb, var(--accent) 12%, transparent); }
.story:is(.is-current, :hover, :focus-visible) { border-color: var(--accent); box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 50%, transparent), inset 0 0 18px color-mix(in srgb, var(--accent) 24%, transparent); }
.story:focus-visible { outline-offset: 2px; outline-color: var(--accent); }
.story-copy { display: flex; flex: 1; min-height: 0; flex-direction: column; gap: .4rem; }
.story-copy > :is(.index-label, h3) { flex: none; }
.index-label { font-size: .66rem; color: #e3dfdf; }
.story h3 { font-size: clamp(1.05rem, 10cqw, 2.15rem); letter-spacing: .025em; line-height: 1.04; text-wrap: balance; }
.story h3 + p { margin-top: auto; color: #f2eeeb; font: .76rem/1.4 var(--mono); }
.story-meta { flex: none; display: flex; align-items: center; justify-content: space-between; gap: .3rem; border-top: 1px solid color-mix(in srgb, var(--accent) 54%, transparent); margin-top: .45rem; padding-top: .4rem; color: var(--accent); font-size: .75rem; letter-spacing: .11em; }
.story-meta span:last-child { font-size: 1.1rem; line-height: 1; }
@container (max-height: 13.5rem) {
  .story h3 + p { display: none; }
}
@container (max-height: 8rem) {
  .story h3 { font-size: clamp(1rem, 7.5cqw, 1.35rem); }
  .story-copy { gap: .15rem; }
  .story-meta { margin-top: .2rem; padding-top: .25rem; }
}
.carousel-dots { display: flex; justify-content: safe center; overflow-x: auto; scrollbar-width: none; gap: .15rem; padding-block: .25rem; }
.carousel-dots button { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; cursor: pointer; background: transparent; }
.carousel-dots button::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #79777b; }
.carousel-dots button:is([aria-pressed="true"], :hover)::before { background: var(--signal); box-shadow: 0 0 13px var(--signal); }
.footer { border-top: 1px solid #ffffff2b; border-bottom: 0; font-size: .85rem; }
.footer nav { gap: clamp(.6rem, 2.5vw, 2rem); }
.drawer {
  position: fixed;
  inset: auto 0 0;
  width: min(calc(100% - 1.25rem), 48rem);
  max-width: none;
  max-height: calc(100dvh - 1rem);
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--signal);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: var(--panel);
  color: var(--paper);
  box-shadow: 0 -6px 35px #000a;
}
.drawer[open] { display: flex; flex-direction: column; }
.drawer::backdrop { background: #030406a8; }
.drawer-head { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem clamp(1rem, 4vw, 2rem); border-bottom: 1px solid #ffffff25; }
.drawer h2, .context-panel h2 { font-size: clamp(1.2rem, 4vw, 2rem); letter-spacing: .08em; line-height: 1.1; }
.drawer-content { min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 1rem clamp(1rem, 4vw, 2rem) 1.4rem; color: #e0dcda; }
.drawer-content > * + * { margin-top: 1rem; }
.welcome { inset: 0; margin: auto; width: min(calc(100% - 2.5rem), 27.5rem); border: 1px solid #ffffff1e; border-radius: 12px; background: #080a0ef5; box-shadow: 0 20px 70px #0009; }
.welcome::backdrop { background: #05070bb8; backdrop-filter: blur(18px) saturate(110%); }
.welcome .drawer-content { padding: clamp(1.25rem, 6vw, 2.75rem); text-align: center; font: .73rem/1.8 var(--mono); }
.welcome h2 { font: .69rem/1.4 var(--mono); letter-spacing: .28em; color: #d0cacf; }
.welcome h2::after { content: ''; display: block; width: 56px; height: 1px; margin: 1.15rem auto 0; background: #ffffff2b; }
.welcome img { width: min(74%, 16.25rem); height: auto; margin-inline: auto; }
.welcome .button { width: 100%; justify-content: center; font: .75rem/1.4 var(--mono); letter-spacing: .22em; }
.utility { height: auto; min-height: 100dvh; grid-template-rows: auto 1fr; overflow: visible; }
html:has(.utility) { overflow: auto; }
.utility .wordmark img { filter: none; }
.utility-main { position: relative; display: grid; grid-template-rows: 1fr; align-items: center; isolation: isolate; }
.utility-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right; opacity: .34; z-index: -1; }
.utility-copy { padding-block: clamp(2rem, 8vw, 8rem); }
.utility h1 { font: 900 clamp(3.4rem, 9vw, 8rem)/.95 Impact, 'Arial Black', var(--condensed); text-transform: uppercase; }
.utility-copy > * + * { margin-top: 1.15rem; }
.utility-copy p { max-width: 42ch; }
.utility-return { display: block; width: fit-content; }
.progress-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin-bottom: 0; }
.progress-grid div { padding: .7rem; border: 1px solid #ffffff29; }
.progress-grid dt { font: .72rem/1.4 var(--mono); text-transform: uppercase; }
.progress-grid dd { margin: .25rem 0 0; color: var(--signal); font: 1.05rem/1.3 var(--mono); }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: enter .42s ease-out both; }
  .story { transition: box-shadow .22s, border-color .22s; }
  .catalog { transition: transform .36s cubic-bezier(.3, .75, .25, 1); }
  .story-list { scroll-behavior: smooth; }
  .drawer[open] { animation: rise .24s ease-out; }
  .welcome[open] { animation: welcome-enter .52s ease-out both; }
  @keyframes enter { from { opacity: .7; transform: translateY(6px); } }
  @keyframes rise { from { transform: translateY(100%); } }
  @keyframes welcome-enter { from { opacity: 0; transform: translateY(18px) scale(.97); } }
}
@media (max-width: 68rem) {
  .catalog { --card-width: min(77vw, 19rem); }
  .story-list {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: var(--card-width);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    padding-inline: max(.3rem, calc((100% - var(--card-width)) / 2));
    scrollbar-width: none;
  }
  .story-list li { scroll-snap-align: center; }
}
@media (max-width: 42rem) {
  .masthead-label, .hero-rail { display: none; }
  .masthead { min-height: 3.35rem; }
  nav { font-size: .78rem; }
  .hero-inner { align-items: end; padding-block: .5rem .8rem; }
  .hero-art { width: 100%; object-position: center top; mask-image: none; }
  .hero::before { background: linear-gradient(0deg, #08090b 4%, #08090be5 32%, #08090b20 100%); }
  #headline { font-size: clamp(3.65rem, min(17vw, 13dvh), 7rem); }
  .hero-subtitle { letter-spacing: .14em; }
  .intro { max-width: 38ch; }
  .section-head h2 { letter-spacing: .12em; }
  .section-head h2 i { display: none; }
  .position { font-size: .65rem; letter-spacing: 0; }
  .carousel-controls { gap: .25rem; }
  .footer .wordmark img { width: 4.25rem; }
  .footer nav { gap: .55rem; font-size: .69rem; }
}
@media (max-width: 23rem) {
  .section-head { gap: .3rem; }
  .section-head h2::before { display: none; }
  .section-head h2 { font-size: .73rem; }
}
@media (max-width: 42rem), (max-height: 780px) {
  .actions { gap: .3rem .45rem; margin-top: .6rem; }
  .actions .button { font-size: .73rem; gap: .4rem; padding-inline: .55rem; }
  .hero-subtitle { font-size: .85rem; }
}
@media (max-height: 690px) {
  #headline { font-size: clamp(3.4rem, min(17vw, 12dvh), 7rem); }
  .hero .intro { display: none; }
  .carousel-dots { padding: 0; }
}
@media (max-height: 510px) and (min-width: 36rem) {
  main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
  .catalog { --card-width: min(70%, 16rem); }
  .hero-inner { gap: .5rem; }
  .hero-rail { display: none; }
  .story-list { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: var(--card-width); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-inline: 15%; }
  .story-list li { scroll-snap-align: center; }
}

@media (max-width: 48rem) and (orientation: portrait) {
  main { position: relative; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .hero { touch-action: pan-y; }
  .hero::after {
    content: '';
    position: absolute;
    inset: -18px;
    z-index: -3;
    background: var(--hero-ambient, url('assets/aegis-corridor.jpg')) center / cover no-repeat;
    filter: blur(18px);
    opacity: .5;
  }
  .hero-inner { align-items: end; padding-block: 1rem clamp(1.5rem, 5dvh, 3.5rem); }
  .hero-rail { display: none; }
  .hero-art { width: 100%; object-position: center 27%; mask-image: linear-gradient(180deg, #000 55%, transparent 83%); }
  .hero::before { background: linear-gradient(0deg, var(--coal) 3%, #08090bd9 22%, #08090b0a 58%); }
  #headline { font-size: clamp(3.5rem, 19vw, 8rem); }
  #hero-title { font-size: clamp(2.8rem, 10vw, 5.25rem); }
  .hero .intro { display: none; }
  .hero-subtitle { letter-spacing: .13em; }
  .hero-subtitle::after { margin-block: .7rem; }
  .hero-copy .actions { margin-top: .8rem; }
  .catalog { display: block; }
  .catalog:has(.carousel-controls:not([hidden])) :is(.story-list, .carousel-dots) { display: none; }
  .catalog-stage .section-head { min-height: 3.5rem; border-top: 1px solid #ffffff2b; border-bottom: 0; }
  .catalog-stage .section-head h2 { letter-spacing: .11em; }
  .catalog-stage.is-revealed {
    position: absolute;
    inset: auto 0 0;
    height: min(55dvh, 30rem);
    z-index: 1;
  }
  .catalog-stage.is-revealed .catalog { pointer-events: none; }
  .context-panel { border-radius: 12px 12px 0 0; }
  .context-panel .progress-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 48rem) and (orientation: portrait) and (prefers-reduced-motion: no-preference) {
  .catalog-stage.is-revealed .context-panel { animation: rise .28s ease-out both; }
}

@media (max-width: 48rem) and (orientation: portrait) and (max-height: 460px) {
  html:has(body:not(.utility)) { overflow: auto; }
  body:not(.utility) { min-height: 100dvh; height: auto; overflow: visible; }
  body:not(.utility) main { grid-template-rows: minmax(16rem, 1fr) auto; }
  .hero-inner { padding-block-end: .8rem; }
}

@media (max-height: 330px) {
  html:has(body:not(.utility)) { overflow: auto; }
  body:not(.utility) { min-height: 100dvh; height: auto; overflow: visible; }
  body:not(.utility) main { grid-template-rows: minmax(16rem, auto) minmax(12rem, auto); grid-template-columns: minmax(0, 1fr); }
}
