@font-face {
  font-family: Pirata One;
  src: url("assets/PirataOne-Regular.ttf") format("truetype");
  font-display: swap;
}
:root {
  color-scheme: dark;
  --ink: #140f15;
  --light: #ffebd2;
  --muted: #e2c6b0;
  --ember: #ffab77;
  --line: #dcb49350;
  --page: 73rem;
  font: 100%/1.6 system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--ink); color: var(--light); }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid #fdc65f; outline-offset: 5px; }
p, h1, h2 { margin: 0; }
.wrap { width: min(var(--page), calc(100% - 3.5rem)); margin-inline: auto; }
.skip { position: absolute; inset: 1rem auto auto 1rem; padding: .5rem 1rem; background: var(--ink); z-index: 3; }
.skip:not(:focus) { clip-path: inset(50%); }
.masthead { border-top: 4px solid #b95531; border-bottom: 1px solid var(--line); background: #130d13; }
.masthead-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: .75rem 2rem; padding-block: .9rem; }
.wordmark { font: 400 1.9rem/1 Pirata One, Georgia, serif; text-decoration: none; }
.wordmark span { color: var(--ember); }
nav { display: flex; flex-wrap: wrap; gap: .65rem 1.65rem; }
nav a, footer a { font-size: .83rem; font-weight: 750; text-decoration: none; }
nav a:hover, footer a:hover { text-decoration: underline; text-underline-offset: .35em; color: var(--ember); }
.hero {
  display: grid;
  position: relative;
  isolation: isolate;
  min-height: min(46rem, 88svh);
  background: #402430 url("assets/real-albuquerque-poster.jpg") center 43% / cover no-repeat;
}
.hero-image, .hero-image::after, .frame { position: absolute; inset: 0; }
.hero-image { z-index: -2; }
.hero-image video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 43%; }
.hero-image::after {
  content: "";
  background: linear-gradient(90deg, #180d17ee 1%, #1e111bdd 26%, #24151c65 58%, #1c141719 100%),
              linear-gradient(0deg, #160f14e6, #35182400 47%, #1b101436);
}
.frame { inset: 1.15rem; border: 1px solid #f7c18f6e; z-index: -1; pointer-events: none; }
.frame::before, .frame::after { position: absolute; width: .8rem; height: .8rem; border: solid #f8b47d; content: ""; }
.frame::before { inset: -1px auto auto -1px; border-width: 2px 0 0 2px; }
.frame::after { inset: auto -1px -1px auto; border-width: 0 2px 2px 0; }
.hero-inner { display: grid; grid-template-rows: 1fr auto; position: relative; gap: 1rem; padding: clamp(3.4rem, 8vw, 7rem) .9rem 2.3rem; }
.hero-copy { align-self: center; }
.kicker, .film-meta {
  font-family: ui-monospace, Menlo, monospace;
  font-size: .73rem;
  letter-spacing: .12em;
  font-weight: 750;
  text-transform: uppercase;
}
.hero .kicker { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem .9rem; color: var(--muted); }
.hero .kicker span:first-child { padding: .35rem .6rem; border: 1px solid #e89b72a3; color: var(--ember); background: #2b151e; }
h1 {
  font: 400 clamp(4rem, 11.4vw, 10.15rem)/.82 Pirata One, Georgia, serif;
  letter-spacing: -.035em;
  margin: clamp(1.4rem, 3.4vw, 2.9rem) 0 1.5rem;
  text-shadow: 0 .03em 0 #7a3c33, 0 .07em .15em #140a15b3;
}
h1 span { display: block; }
h1 span:last-child { color: var(--ember); }
.hero-deck { max-width: 46ch; color: #ffeadb; font-size: clamp(1rem, 1.5vw, 1.17rem); text-shadow: 0 2px 9px #160b14; }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.45rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; min-height: 3rem; padding: .65rem 1rem; font-size: .86rem; font-weight: 800; text-decoration: none; border: 1px solid transparent; }
.primary { background: var(--ember); color: #211017; }
.primary:hover { background: #ffc69d; }
.secondary { border-color: #e6b58ba0; background: #1e121ccd; }
.secondary:hover { border-color: var(--ember); color: var(--ember); }
.film-meta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .45rem 1rem; color: #fff0df; }
.film-meta button {
  border: 1px solid #efb69491;
  padding: .32rem .55rem;
  color: inherit;
  background: #160e16e8;
  font: inherit;
  letter-spacing: .035em;
  cursor: pointer;
}
.film-meta button:hover { border-color: var(--ember); color: var(--ember); }
.mission {
  color: #2d1720;
  background: radial-gradient(ellipse at 20% 100%, #dcad83, #f3e2c4 65%);
  border-top: 5px solid #b65c39;
}
.mission-inner, .recovery-inner { display: grid; grid-template-columns: .8fr 1.35fr; gap: 1.7rem 3rem; padding-block: clamp(2.6rem, 6vw, 5.6rem); align-items: start; }
.mission .kicker { color: #753826; }
h2 { font: 400 clamp(2.8rem, 6.8vw, 5.7rem)/1 Pirata One, Georgia, serif; margin-block: .45rem .8rem; }
.mission-rule { display: flex; align-items: center; gap: .7rem; color: #884330; max-width: 12rem; }
.mission-rule::before, .mission-rule::after { content: ""; height: 1px; background: currentColor; flex: 1; }
.mission-statement { font: 400 clamp(1.35rem, 2.3vw, 2.05rem)/1.38 Georgia, serif; }
.status { border-top: 1px solid #97735085; font-size: .9rem; margin-top: 1.2rem; padding-top: .8rem; font-weight: 650; }
.recovery { background: #2b1827; }
.recovery-inner { grid-template-columns: 1fr auto; align-items: center; }
.recovery .kicker { color: var(--ember); }
.recovery p:not(.kicker) { max-width: 59ch; color: var(--muted); }
footer { border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
@media (max-width: 45rem) {
  .wrap { width: calc(100% - 2.1rem); }
  .masthead-inner { align-items: flex-start; flex-direction: column; }
  nav { column-gap: 1.05rem; }
  .hero { min-height: 41rem; }
  .frame { inset: .55rem; }
  .hero-image video { object-position: 55% center; }
  .hero-image::after {
    background: linear-gradient(90deg, #180d17bc, #180d1742),
                linear-gradient(0deg, #160f14f0, #2b15269e 40%, #24121e24 100%);
  }
  .hero-inner { padding-inline: .35rem; padding-bottom: 1.4rem; }
  h1 { font-size: clamp(2.6rem, 14vw, 6.2rem); line-height: .88; }
  .mission-inner, .recovery-inner { grid-template-columns: 1fr; }
  .recovery .button { justify-self: start; }
  .footer-inner { flex-wrap: wrap; }
}
/* Visitor paths, story player, and questions */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 1.5rem; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:focus-visible, summary:focus-visible, video:focus-visible { outline: 3px solid #fdc65f; outline-offset: 5px; }
.masthead-inner { min-height: 4.5rem; }
nav { align-items: center; }
.nav-contact { color: var(--ember); border: 1px solid var(--line); padding: .45rem .7rem; }
.menu-toggle { color: var(--light); background: transparent; border: 1px solid var(--line); min-height: 2.75rem; padding: .5rem .8rem; font: 750 .85rem/1 system-ui, sans-serif; }
.menu-toggle span { margin-left: .4rem; }
.section-pad { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem 3rem; margin-bottom: 2rem; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { max-width: 31ch; color: var(--muted); }
.pathways { background: #1c131c; }
.pathways .kicker, .story .kicker, .faq .kicker { color: var(--ember); }
.path-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.path-card { display: flex; flex-direction: column; padding: 1.5rem; text-decoration: none; background: #2b1b28; border: 1px solid var(--line); transition: background .2s, border-color .2s, transform .2s; }
.path-card:hover { background: #38212e; border-color: var(--ember); transform: translateY(-4px); }
.path-card[aria-selected="true"] { background: #f6e3c9; color: #2d1720; border-color: #f6e3c9; }
.path-card[aria-selected="true"] .kicker { color: #803e29; }
.path-card[aria-selected="true"] .path-description { color: #654735; }
.path-top { display: flex; justify-content: space-between; align-items: start; gap: .6rem; }
.path-top .kicker { font-size: .64rem; line-height: 1.6; }
.path-arrow { font-size: 1.4rem; line-height: 1; }
.path-title { font: 400 clamp(2.1rem,3.5vw,3.25rem)/1.02 Pirata One, Georgia, serif; margin-block: 1.8rem .8rem; }
.path-description { font-size: .93rem; color: var(--muted); margin-bottom: 1.7rem; }
.path-hint { display: flex; justify-content: space-between; gap: 1rem; margin-top: auto; font-size: .82rem; font-weight: 800; }
.path-panel { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 3rem; padding: 2rem; border: 1px solid var(--line); border-top: 3px solid var(--ember); background: #261824; margin-top: 1rem; }
.path-panel h3 { font: 400 clamp(1.8rem,3vw,2.5rem)/1.1 Pirata One, Georgia, serif; margin: .6rem 0 1rem; }
.path-panel p:not(.kicker) { max-width: 68ch; color: #f3d9c6; }
.path-panel p.fine-print { font-size: .83rem; color: var(--muted); margin-top: .8rem; }
.panel-actions { display: flex; flex-direction: column; align-items: start; justify-content: center; gap: 1rem; }
.text-link { font-size: .88rem; font-weight: 800; text-decoration-thickness: 1px; text-underline-offset: .35em; }
.text-link span { display: inline-block; margin-left: .45rem; }
.text-link:hover { color: var(--ember); }
.story { background: #231621; }
.story-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem 3.5rem; align-items: center; }
.story-frame { position: relative; display: grid; overflow: hidden; aspect-ratio: 16/10; border: 1px solid var(--line); text-decoration: none; background: #392b2c; }
.story-frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg,#140b16dd,transparent 50%); pointer-events: none; }
.story-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.story-frame:hover img { transform: scale(1.035); }
.story-play { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%,-50%); display: grid; place-items: center; width: 4.7rem; height: 4.7rem; padding-left: .25rem; border: 1px solid #ffebd29e; border-radius: 50%; background: #1b1119c7; color: var(--light); font-size: 1.35rem; z-index: 1; transition: background .2s; }
.story-frame:hover .story-play { background: #a94f30; }
.story-caption { position: absolute; inset: auto 1.25rem 1.25rem; z-index: 1; display: flex; justify-content: space-between; gap: 1rem; color: var(--light); font: 750 .66rem/1.5 ui-monospace,Menlo,monospace; text-transform: uppercase; letter-spacing: .09em; }
.story-copy h2 { font-size: clamp(3rem,5.4vw,4.9rem); }
.story-copy > p:not(.kicker) { color: var(--muted); max-width: 43ch; margin-bottom: 1rem; }
.story-copy > .text-link { display: inline-block; margin-top: .5rem; }
.faq { background: #170f18; }
.faq-inner { display: grid; grid-template-columns: .9fr 1.3fr; gap: 2rem 4rem; }
.faq h2 { font-size: clamp(2.7rem,4.8vw,4.4rem); }
.faq-intro { color: var(--muted); max-width: 30ch; margin-bottom: 1rem; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; list-style: none; cursor: pointer; padding: 1.25rem .1rem; font-size: 1rem; font-weight: 750; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--ember); font: 400 1.8rem/1 ui-monospace,monospace; flex: 0 0 1.2rem; }
.faq details[open] summary::after { content: '−'; }
.faq details[open] summary { color: var(--ember); }
.faq-answer { padding: 0 2.3rem 1.4rem .1rem; color: var(--muted); font-size: .95rem; }
.faq-answer .text-link { display: inline-block; color: var(--light); margin-top: .8rem; }
.contact-strip { background: #39202e; border-block: 1px solid var(--line); }
.contact-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem 3rem; padding-block: 2.7rem; }
.contact-inner h2 { font-size: clamp(2.3rem,4.2vw,3.7rem); margin-bottom: 0; max-width: 22ch; }
.contact-inner .kicker { color: var(--ember); }
.contact-inner .button { flex-shrink: 0; }
.footer-inner { padding-block: 2rem; }
.footer-inner p { margin-top: .7rem; font-size: .78rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .7rem 1.5rem; }
.story-dialog { width: min(62rem,calc(100% - 2rem)); max-height: calc(100dvh - 2rem); overflow: auto; color: var(--light); background: #1c131c; border: 1px solid var(--line); padding: 0; box-shadow: 0 1rem 5rem #0009; }
.story-dialog::backdrop { background: #08050ee8; backdrop-filter: blur(6px); }
.dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem 1.5rem; }
.dialog-header .kicker { color: var(--ember); font-size: .65rem; }
.dialog-header h2 { font-size: clamp(1.6rem,4vw,2.3rem); margin: .35rem 0 0; }
.dialog-close { flex: 0 0 auto; min-height: 2.75rem; padding: .55rem .8rem; color: var(--light); border: 1px solid var(--line); background: #2b1b28; font-weight: 750; }
.dialog-close span { font-size: 1.1rem; margin-left: .3rem; }
.story-dialog video { display: block; width: 100%; max-height: 65dvh; aspect-ratio: 16/9; background: #000; }
.dialog-note, .story-error { font-size: .8rem; color: var(--muted); padding: 1rem 1.5rem; }
.dialog-footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-right: 1.5rem; }
.dialog-footer > .text-link { flex-shrink: 0; }
.dialog-note a, .story-error a { color: var(--light); text-underline-offset: .2em; }
body.modal-open { overflow: hidden; }
@media (max-width: 60rem) {
  .masthead-inner { gap: .75rem 1rem; }
  nav { gap: .5rem 1rem; }
  nav a { font-size: .75rem; }
  .path-card { padding: 1.1rem; }
  .path-panel { grid-template-columns: 1fr; }
  .panel-actions { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
  .story-inner { gap: 2rem; }
}
@media (max-width: 45rem) {
  .masthead-inner { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .menu-toggle:not([hidden]) { display: inline-flex; align-items: center; }
  nav { width: 100%; gap: .75rem 1.1rem; padding-bottom: .3rem; }
  nav a { font-size: .85rem; }
  .nav-contact { padding: .25rem .5rem; }
  .section-heading { display: block; }
  .section-heading > p { max-width: 37ch; margin-top: 1rem; }
  .path-grid { grid-template-columns: 1fr; gap: .75rem; }
  .path-card { padding: 1.15rem; }
  .path-title { font-size: 2.2rem; margin-block: .8rem .5rem; }
  .path-description { margin-bottom: 1rem; }
  .path-top .kicker { font-size: .64rem; }
  .path-panel { padding: 1.35rem; }
  .story-inner, .faq-inner { grid-template-columns: 1fr; }
  .story-copy h2 { font-size: 3.7rem; }
  .story-frame { aspect-ratio: 16/10; }
  .faq-inner { gap: 2rem; }
  .contact-inner { flex-direction: column; align-items: start; }
  .contact-inner h2 { font-size: 2.8rem; }
  .footer-inner { align-items: start; }
  .footer-links { flex-direction: column; }
  .dialog-header { padding: 1rem; }
  .dialog-note, .story-error { padding: 1rem; }
  .dialog-footer { display: block; padding: 0 0 1rem; }
  .dialog-footer > .text-link { display: inline-block; margin-left: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
