@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/DMSans-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --green: #103d33;
  --deep: #082b24;
  --lime: #c5ed55;
  --cream: #fff4df;
  --muted: #cbd7c4;
  font-family: "DM Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}
.hero, .roster, .story-panel { scroll-snap-align: start; }
footer { scroll-snap-align: end; }
body { margin: 0; background: var(--deep); color: var(--cream); isolation: isolate; }
body::before, .background-shade {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
body::before {
  content: "";
  background:
    linear-gradient(0deg, #082b244d 0%, transparent 45%, transparent 76%, #082b2450 100%),
    var(--deep) url('assets/hero.jpg') center / cover no-repeat;
}
.background-shade::before, .background-shade::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #082b2488, #082b242e 46%, transparent 76%);
}
.background-shade::before {
  opacity: var(--shade-left, 1);
}
.background-shade::after {
  background: linear-gradient(270deg, #082b2488, #082b2425 39%, transparent 65%);
  opacity: var(--shade-right, 0);
}
a { color: inherit; }
a:focus-visible { outline: 3px solid currentColor; outline-offset: 5px; }
.wrap { width: min(1420px, calc(100% - 5rem)); margin-inline: auto; }
.site-header { position: absolute; inset: 0 0 auto; z-index: 1; isolation: isolate; }
.site-header::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: var(--header-fade-height, 166px);
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, #082b24eb 0%, #082b2490 42%, #082b242e 72%, transparent 100%);
}
.top { min-height: 110px; display: grid; grid-template-columns: minmax(0, 1fr) var(--header-logo-width, 228px) minmax(0, 1fr); align-items: center; gap: 1.2rem; }
.menu-toggle, .mobile-language { display: none; }
.language-picker { grid-column: 1; grid-row: 1; justify-self: start; display: flex; align-items: center; }
.language-picker button { background: transparent; color: var(--cream); border: 0; font: 800 .875rem "DM Sans", system-ui, sans-serif; padding: .55rem .42rem; cursor: pointer; }
.language-picker button + button { border-left: 1px solid #fff4df70; }
.language-picker button:hover, .language-picker button[aria-pressed="true"] { color: var(--lime); }
.language-picker button:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.logo { position: fixed; top: var(--header-logo-top, 23px); left: 50%; transform: translateX(-50%); display: inline-flex; }
.logo img { width: var(--header-logo-width, 228px); height: auto; }
nav { grid-column: 3; grid-row: 1; justify-self: end; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: clamp(1rem, 3vw, 3rem); }
nav a, footer a { text-decoration: none; }
nav a:hover, footer a:hover { text-decoration: underline; text-underline-offset: .25rem; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: .82rem 1.25rem; min-height: 46px; color: var(--deep); background: var(--lime); text-decoration: none; font-weight: 800; border: 2px solid transparent; width: fit-content; }
.button:hover { background: var(--cream); border-color: var(--deep); }
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: end;
}
.hero-content { padding-block: 9rem clamp(3.75rem, 9vh, 7rem); }
h1, h2 {
  font-family: Impact, "Arial Narrow", system-ui, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.8rem, 6.15vw, 6.2rem); line-height: .98; letter-spacing: -.016em; margin: 0; max-width: 15ch; }
h1 em { color: var(--lime); font-style: normal; }
.hero-bottom { display: flex; align-items: center; gap: 1.5rem 2rem; flex-wrap: wrap; margin-top: 2rem; }
.hero-bottom p { color: var(--muted); max-width: 36ch; margin: 0; font-size: 1.065rem; }
.roster, .story-panel {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(3.5rem, 9vh, 7rem);
}
.roster-head { margin-bottom: clamp(1rem, 3vh, 2rem); }
.roster-head { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: .4rem 1em; padding-bottom: .9rem; }
.roster-head h2, .roster-head p { margin: 0; }
.roster-head h2 { font-size: clamp(1.35rem, 2.6vw, 2.25rem); }
.roster-head p { font-size: .875rem; color: var(--muted); }
.portraits { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 3rem); list-style: none; margin: 0; padding: 0; }
.portraits li { display: grid; grid-template-rows: 1fr auto; background: #103d3399; overflow: hidden; border-bottom: 3px solid var(--lime); }
.portrait { aspect-ratio: .60; background: #426351 url('assets/creator-portraits.jpg') no-repeat var(--position) center / 500% auto; }
.p1 { --position: 0%; } .p2 { --position: 25%; } .p3 { --position: 50%; } .p4 { --position: 75%; } .p5 { --position: 100%; }
.portraits li > span { font: 700 .875rem "DM Sans", system-ui, sans-serif; padding: .7rem .6rem; }
.light { border-block: 1px solid #ffffff29; }
.story-panel { align-items: flex-start; }
.story-panel + .story-panel { border-top: 1px solid #ffffff45; }
.story-panel-right { align-items: flex-end; text-align: right; }
.story-content { width: min(100%, 46rem); }
.story-panel h2 { font-size: clamp(2.9rem, 7vw, 6.5rem); margin: 0 0 1rem; line-height: .96; }
.story-panel p { max-width: 42ch; font-size: clamp(1rem, 2vw, 1.3rem); line-height: 1.6; margin-bottom: 1.65rem; }
.story-panel-right p { margin-left: auto; }
.secondary { background: transparent; border-color: var(--cream); color: var(--cream); }
.secondary:hover { color: var(--deep); }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.5rem; color: var(--muted); }
@media (max-width: 800px) {
  .wrap { width: calc(100% - 2rem); }
  :root { --header-fade-height: 141px; }
  .site-header { --header-logo-width: 136px; --header-logo-top: 23px; }
  .top { min-height: 85px; }
  body::before { background-position: center, 76% center; }
  .hero-content { padding-top: 7rem; }
  h1 { max-width: 14ch; }
  .language-picker { display: none; }
  .mobile-language {
    position: relative;
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    display: block;
  }
  .mobile-language button {
    min-height: 44px;
    border: 0;
    background: transparent;
    color: var(--cream);
    font: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  #mobile-language-toggle {
    display: flex;
    align-items: center;
    gap: .45rem;
    min-width: 64px;
    padding-inline: .6rem;
    font-weight: 800;
  }
  #mobile-language-toggle::after {
    content: "";
    width: .4rem;
    height: .4rem;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: translateY(-2px) rotate(45deg);
  }
  .mobile-language-options {
    position: absolute;
    top: calc(100% + .3rem);
    left: 0;
    min-width: max-content;
    padding: .35rem;
    background: #082b24f5;
    border: 1px solid #fff4df55;
  }
  .mobile-language-options button { display: block; width: 100%; padding-inline: .85rem; text-align: left; }
  .mobile-language button:is(:hover, :focus-visible, :active, [aria-pressed="true"]) { color: var(--lime); }
  .mobile-language button:focus-visible { outline: 2px solid var(--lime); outline-offset: -2px; }
  .menu-toggle {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    color: var(--cream);
    cursor: pointer;
  }
  .menu-toggle > span { position: relative; }
  .menu-toggle > span, .menu-toggle > span::before, .menu-toggle > span::after {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
  }
  .menu-toggle > span::before, .menu-toggle > span::after {
    content: "";
    position: absolute;
    inset: 0;
  }
  .menu-toggle > span::before { transform: translateY(-6px); }
  .menu-toggle > span::after { transform: translateY(6px); }
  .menu-toggle[aria-expanded="true"] > span { background: transparent; }
  .menu-toggle[aria-expanded="true"] > span::before { transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] > span::after { transform: rotate(-45deg); }
  .top nav {
    position: absolute;
    top: 100%;
    right: 1rem;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: .35rem;
    background: #082b24f5;
    border: 1px solid #fff4df55;
  }
  .menu-toggle[aria-expanded="true"] + nav { display: flex; }
  .top nav a { padding: .7rem .9rem; }
  .top nav a:is(:hover, :focus-visible) { color: var(--lime); text-decoration: none; }
  .roster { padding-top: calc(var(--header-fade-height) - 1.5rem); }
  .portraits.is-carousel {
    --portrait-width: min(65vw, 18rem, 46svh);
    display: flex;
    align-items: center;
    gap: clamp(.4rem, 2vw, 1.25rem);
    overflow-x: auto;
    padding: .5rem calc((100% - var(--portrait-width)) / 2) .8rem;
    scroll-snap-type: x mandatory;
    scroll-snap-stop: always;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .portraits.is-carousel::-webkit-scrollbar { display: none; }
  .portraits.is-carousel:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
  .portraits.is-carousel li {
    flex: 0 0 var(--portrait-width);
    scroll-snap-align: center;
    scroll-snap-stop: always;
    transform: scale(var(--portrait-scale, .78));
    opacity: var(--portrait-opacity, .65);
  }
  .portraits.is-carousel .portrait { aspect-ratio: .8; }
}
@media (max-width: 520px) {
  body::before { background-position: center, 88% center; }
  :root { --header-fade-height: 151px; }
  .site-header { --header-logo-top: 20px; }
  .top { grid-template-rows: 54px; column-gap: .45rem; row-gap: .4rem; min-height: 0; padding-block: .75rem .6rem; }
  .hero-content { padding-top: 9rem; }
  .portrait { aspect-ratio: .85; }
  .story-panel h2 { overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; scroll-snap-type: none; }
}

.contact-content { width: min(100%, 45rem); }
.contact-content form { max-width: 40rem; }
.contact-content label { display: grid; gap: .3rem; font-weight: 700; }
.contact-content input, .contact-content select, .contact-content textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #fff4df85;
  border-radius: 0;
  background: #082b24d9;
  color: var(--cream);
  padding: .54rem .7rem;
  font: inherit;
  font-weight: 400;
}
.contact-content select {
  width: min(100%, 26rem);
  margin: .4rem 0 1rem;
  min-height: 44px;
  appearance: none;
  padding-right: 3.25rem;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right 1.625rem center, right 1.25rem center;
  background-size: .375rem .375rem;
  background-repeat: no-repeat;
}
.contact-content :is(input, select, textarea, button):focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.contact-content textarea { display: block; margin: .35rem 0 .8rem; resize: vertical; }
.contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem 1rem; border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
.contact-fields[hidden] { display: none; }
.form-wide { grid-column: 1 / -1; }
.contact-content .form-caption { margin: .2rem 0 0; font-size: 1rem; font-weight: 800; }
.form-caption span:last-child { color: var(--muted); font-weight: 400; }
.handle { display: flex; align-items: stretch; }
.handle > span { display: grid; place-items: center; background: #082b24d9; color: var(--lime); border: 1px solid #fff4df85; border-right: 0; padding-inline: .6rem; }
.contact-content :is(#contact-note, #contact-status) { max-width: none; margin: .6rem 0 0; font-size: .9rem; }
.contact-content #contact-status:empty { display: none; }
@media (max-width: 520px) {
  .contact-fields { grid-template-columns: minmax(0, 1fr); }
}
