/* INF MAP — minimal cinematic rebuild */
:root {
  --bg: #0b0b0c;
  --bg-soft: #121214;
  --ink: #f2f2f0;
  --muted: #8f8f94;
  --faint: #55555a;
  --line: #232326;
  --accent: #5b6ee1;          /* indigo nod */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: #fff; }
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem 2rem;
  background: linear-gradient(to bottom, rgba(5,5,6,.72), transparent);
}
.wordmark {
  display: flex; align-items: center;
  text-decoration: none;
}
.wordmark img { height: 24px; width: auto; }
.nav-links { display: flex; gap: 1.75rem; }
.nav-links a {
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; transition: color .25s;
}
.nav-links a:hover { color: var(--ink); }

/* ---------- hero ---------- */
.hero {
  position: relative; height: 100svh; min-height: 560px;
  display: flex; align-items: flex-end; overflow: hidden;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5,5,6,.88) 0%, rgba(5,5,6,.25) 45%, rgba(5,5,6,.45) 100%);
}
.hero-inner {
  position: relative; z-index: 2; width: 100%;
  max-width: 1200px; margin: 0 auto; padding: 0 2rem 7rem;
}
.hero-kicker {
  font-size: .75rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--ink); font-weight: 500; margin-bottom: 1.25rem;
}
.hero-kicker strong { font-weight: 700; }
.hero-title {
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  font-weight: 300; line-height: 1.04; letter-spacing: -.02em;
  margin-bottom: 1.25rem;
}
.hero-sub { color: #cfcfd4; font-size: 1.02rem; max-width: 34rem; }
.hero-cta {
  display: inline-block; margin-top: 2rem;
  font-size: .8rem; letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none; color: var(--ink);
  border-bottom: 1px solid var(--faint); padding-bottom: .4rem;
  transition: border-color .25s, color .25s;
}
.hero-cta:hover { border-color: var(--accent); color: #fff; }

/* ---------- intro ---------- */
.intro {
  max-width: 780px; margin: 0 auto; padding: 7rem 2rem 2rem;
  text-align: center;
}
.intro-line { font-size: 1.35rem; line-height: 1.7; font-weight: 300; }
.intro-line + .intro-line { margin-top: 1.25rem; }
.intro-line em { font-style: normal; color: #fff; font-weight: 400; }
.intro-line strong { font-weight: 600; color: #fff; }
.intro-line.dim { color: var(--muted); }

/* ---------- sections ---------- */
.journey, .about, .contact {
  max-width: 1200px; margin: 0 auto; padding: 6rem 2rem 2rem;
}
.label {
  font-size: .72rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--accent); font-weight: 500; margin-bottom: 1rem;
}
.section-head h2, .about h2, .contact h2 {
  font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 300;
  letter-spacing: -.015em; line-height: 1.15; margin-bottom: 3rem;
}

/* ---------- chapters ---------- */
.chapters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.chapter {
  position: relative; cursor: pointer; overflow: hidden;
  background: var(--bg-soft); border: 1px solid var(--line);
  aspect-ratio: 4 / 5; text-align: left; padding: 0;
  font-family: inherit; color: inherit;
  transition: border-color .3s, transform .3s;
}
.chapter:hover { border-color: #3a3a40; transform: translateY(-3px); }
.chapter img {
  width: 100%; height: 100%; object-fit: cover; opacity: .82;
  transition: opacity .35s, transform .6s cubic-bezier(.2,.6,.2,1);
}
.chapter:hover img { opacity: 1; transform: scale(1.025); }
/* finale card spans the full row */
.chapter-wide { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
.chapter-meta {
  position: absolute; inset: auto 0 0 0; padding: 2.6rem 1.25rem 1.1rem;
  background: linear-gradient(to top, rgba(4,4,5,.92), transparent);
  pointer-events: none;
}
.chapter-num {
  font-size: .68rem; letter-spacing: .28em; color: var(--muted);
  text-transform: uppercase; display: block; margin-bottom: .3rem;
}
.chapter-title { display: block; font-size: 1.25rem; font-weight: 400; letter-spacing: -.01em; }
.chapter-sub { display: block; font-size: .78rem; color: var(--muted); margin-top: .15rem; }

/* ---------- about ---------- */
.about-inner { max-width: 780px; }
.about-prose p { font-size: 1.08rem; color: #d7d7db; margin-bottom: 1.4rem; }
.about-prose strong { color: #fff; font-weight: 600; }
.facts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); margin: 3rem 0;
}
.facts > div { background: var(--bg); padding: 1.4rem 1.2rem; }
.facts dt {
  font-size: .68rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--faint); margin-bottom: .6rem;
}
.facts dd { font-size: .95rem; line-height: 1.55; color: var(--ink); }
.facts dd.win { color: var(--accent); font-weight: 500; }
.about-links { display: flex; flex-wrap: wrap; gap: .6rem 2rem; }
.about-links a {
  font-size: .9rem; color: var(--muted); text-decoration: none;
  border-bottom: 1px solid var(--line); padding-bottom: .2rem;
  transition: color .25s, border-color .25s;
}
.about-links a:hover { color: var(--ink); border-color: var(--accent); }

/* ---------- contact ---------- */
.contact { text-align: center; padding-bottom: 7rem; }
.contact .label { text-align: center; }
.contact h2 { margin-bottom: 1rem; }
.contact-sub { color: var(--muted); margin-bottom: 2.25rem; }
.btn {
  display: inline-block; padding: 1rem 2.4rem;
  border: 1px solid #3a3a40; border-radius: 999px;
  text-decoration: none; font-size: .95rem; letter-spacing: .04em;
  transition: border-color .25s, background .25s;
}
.btn:hover { border-color: var(--accent); background: rgba(91,110,225,.08); }
button.btn { font-family: inherit; background: none; color: var(--ink); cursor: pointer; }

/* ---------- contact form ---------- */
.contact-form { max-width: 560px; margin: 0 auto; text-align: left; }
.field { margin-bottom: 1.4rem; }
.field label {
  display: block; font-size: .68rem; letter-spacing: .24em;
  text-transform: uppercase; color: var(--muted); margin-bottom: .5rem;
}
.field input,
.field textarea {
  width: 100%; background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 6px; color: var(--ink); font-family: inherit;
  font-size: 1rem; font-weight: 300; padding: .85rem 1rem;
  transition: border-color .25s;
}
.field input:focus,
.field textarea:focus { outline: none; border-color: #4a4a52; }
.field textarea { resize: vertical; min-height: 130px; }
.honeypot { display: none !important; }
.contact-form .btn { display: block; margin: 2rem auto 0; }
.form-note { text-align: center; margin-top: 1.25rem; font-size: .9rem; min-height: 1.4em; }
.form-note.ok { color: #7fc97f; }
.form-note.err { color: #e08080; }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line); padding: 2.5rem 2rem 2rem;
  text-align: center; color: var(--faint); font-size: .8rem;
  letter-spacing: .12em;
}
.footer-logo { width: 40px; height: auto; margin: 0 auto 1rem; opacity: .9; }
.copyright { font-size: .72rem; letter-spacing: .14em; color: var(--muted); }

/* ---------- viewer ---------- */
.viewer {
  position: fixed; inset: 0; z-index: 100; background: rgba(4,4,5,.97);
  display: flex; flex-direction: column;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.viewer.open { opacity: 1; pointer-events: auto; }
.viewer-top {
  display: flex; align-items: baseline; gap: 1.5rem;
  padding: 1.1rem 1.5rem;
}
.viewer-chapter {
  font-size: .72rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis;
}
.viewer-count { font-size: .8rem; color: var(--faint); margin-right: auto; white-space: nowrap; }
.viewer-close {
  background: none; border: none; color: var(--muted); font-size: 1.15rem;
  cursor: pointer; padding: .4rem; line-height: 1;
}
.viewer-close:hover { color: #fff; }
.viewer-stage {
  flex: 1; display: flex; align-items: center; justify-content: center;
  min-height: 0; padding: 0 4.5rem 1rem;
}
.viewer-stage img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  box-shadow: 0 24px 80px rgba(0,0,0,.55);
}
.viewer-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--muted);
  font-size: 2.6rem; font-weight: 200; cursor: pointer;
  padding: 1rem .8rem; line-height: 1; transition: color .2s;
  z-index: 2;
}
.viewer-arrow:hover { color: #fff; }
.viewer-arrow.prev { left: .4rem; }
.viewer-arrow.next { right: .4rem; }
.viewer-chapters {
  display: flex; gap: .4rem; justify-content: center; flex-wrap: nowrap;
  padding: 0 1rem 1.4rem; overflow-x: auto;
}
.viewer-chapters button {
  background: none; border: 1px solid var(--line); color: var(--faint);
  font-family: inherit; font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase; padding: .42rem .62rem; border-radius: 999px;
  cursor: pointer; transition: all .2s; flex-shrink: 0;
}
.viewer-chapters button:hover { color: var(--ink); border-color: #3a3a40; }
.viewer-chapters button.active { color: #fff; border-color: var(--accent); }

/* ---------- swipe hint ---------- */
.swipe-hint {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: .9rem;
  color: rgba(255,255,255,.92);
  font-size: .72rem; letter-spacing: .32em; text-transform: uppercase;
  background: rgba(10,10,12,.55); border: 1px solid rgba(255,255,255,.14);
  padding: .8rem 1.3rem .8rem 1.6rem; border-radius: 999px;
  opacity: 0; pointer-events: none; transition: opacity .6s ease;
  z-index: 5; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.swipe-hint.show { opacity: 1; }
.swipe-hint .sh-word { padding-left: .32em; }
.swipe-hint .sh-arrow {
  display: inline-block; font-size: 1.25rem; line-height: 1;
  animation: hint-sway 1.5s ease-in-out infinite;
}
.swipe-hint .sh-arrow:last-child { animation-delay: .22s; }
@keyframes hint-sway {
  0%, 100% { transform: translateX(-8px); opacity: .4; }
  50% { transform: translateX(8px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .swipe-hint .sh-arrow { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .chapters { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .br-wide { display: none; }
}
@media (max-width: 560px) {
  .chapters { grid-template-columns: 1fr; }
  .chapter { aspect-ratio: 16 / 10; }
  .chapter-wide { aspect-ratio: 16 / 10; }
  .nav { padding: 1rem 1.25rem; }
  .nav-links { gap: 1.1rem; }
  .hero-inner { padding: 0 1.5rem 5rem; }
  .viewer-stage { padding: 0 1rem 1rem; }
  .viewer-arrow { display: none; }
  .intro, .journey, .about, .contact { padding-left: 1.5rem; padding-right: 1.5rem; }
}
