:root {
  --color-bg: #0B0C0E;
  --color-text: #F2F1ED;
  --color-accent: #8A8F98;

  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Archivo', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  overflow-x: hidden;
}

a {
  color: inherit;
}

/* ---------- Nav ---------- */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.site-nav.is-scrolled {
  background-color: rgba(11, 12, 14, 0.9);
  border-bottom-color: rgba(138, 143, 152, 0.2);
  backdrop-filter: blur(6px);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--color-text);
}

@media (max-width: 600px) {
  .nav-inner {
    padding: 1rem 1.25rem;
  }
  .nav-logo {
    font-size: 1.05rem;
  }
  .nav-links {
    gap: 0.6rem;
  }
  .nav-links a {
    font-size: 0.68rem;
    letter-spacing: 0.04em;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-bg);
}

.video-embed iframe {
  border: 0;
  display: block;
}

.hero-video-embed {
  position: absolute;
  inset: 0;
  overflow: hidden;
  filter: grayscale(0.55) brightness(0.55) contrast(1.05);
}

.hero-video-embed iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw; /* 16:9 */
  min-height: 100vh;
  min-width: 177.78vh; /* 16:9 */
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(11, 12, 14, 0.35) 0%,
    rgba(11, 12, 14, 0.55) 55%,
    rgba(11, 12, 14, 0.85) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1.5rem;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 12vw, 9rem);
  line-height: 0.95;
  letter-spacing: 0.03em;
  color: var(--color-text);
  opacity: 0;
  animation: heroSlideInLeft 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--delay, 0) * 0.18s + 0.3s);
  will-change: transform, filter, opacity;
}

.hero-subhead {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1rem, 2vw, 1.35rem);
  color: var(--color-accent);
  margin-top: 1rem;
  letter-spacing: 0.01em;
  opacity: 0;
  animation: heroSlideInRight 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--delay, 0) * 0.18s + 0.3s);
  will-change: transform, filter, opacity;
}

/* Slide-in-and-settle: fast, blurred entry that ramps down to a sharp stop.
   Opacity resolves early so the whole travel reads as a blurred pass, not a fade. */
@keyframes heroSlideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-9vw);
    filter: blur(18px);
  }
  12% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }
}

@keyframes heroSlideInRight {
  0% {
    opacity: 0;
    transform: translateX(9vw);
    filter: blur(18px);
  }
  12% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }
}

/* Scroll-triggered shimmer: a light sweep across "CHAPTER II", one-shot per
   trigger (see script.js). Layered as a second animation slot alongside the
   entrance slide-in (comma-paired animation-* lists below), so re-triggering
   the shimmer never touches or restarts the entrance animation. Gated behind
   @supports so browsers without text-clip gradients keep the plain solid
   color instead of falling back to invisible transparent text, and gated
   behind prefers-reduced-motion so the rule granting the shimmer slot simply
   doesn't exist when motion is reduced — no JS-vs-CSS specificity race. */
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .hero-headline {
    color: transparent;
    /* The site's text color is already near-white (#F2F1ED), so a plain white
       peak against it barely registers. Dipping to the darker --color-accent
       just before/after the peak (a genuine light-vs-shadow swing, not just
       off-white-vs-white) is what makes the sweep actually read as light
       passing over the text, the way a shine crosses glass or metal. */
    background-image: linear-gradient(100deg,
      var(--color-text) 0%,
      var(--color-text) 34%,
      var(--color-accent) 44%,
      #ffffff 50%,
      var(--color-accent) 56%,
      var(--color-text) 66%,
      var(--color-text) 100%);
    background-size: 280% 100%;
    background-position: 280% 0;
    -webkit-background-clip: text;
    background-clip: text;
    animation-name: heroSlideInLeft, none;
    animation-duration: 1.1s, 1.3s;
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1), ease-in-out;
    animation-delay: calc(var(--delay, 0) * 0.18s + 0.3s), 0s;
    animation-fill-mode: forwards, forwards;
    animation-iteration-count: 1, 1;
  }

  @media (prefers-reduced-motion: no-preference) {
    .hero-headline.shimmer-play {
      animation-name: heroSlideInLeft, heroShimmerSweep;
    }
  }
}

@keyframes heroShimmerSweep {
  from { background-position: 280% 0; }
  to { background-position: -180% 0; }
}

/* ---------- Scroll cue ---------- */

.scroll-cue {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-accent);
  text-decoration: none;
  opacity: 0.85;
}

.scroll-cue-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.scroll-cue-arrow {
  width: 1px;
  height: 28px;
  background: rgba(138, 143, 152, 0.4);
  position: relative;
  overflow: hidden;
}

.scroll-cue-arrow::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-text);
  animation: scrollLine 1.8s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}

/* ---------- Entrance reveal (load, not scroll) ---------- */

.reveal-line {
  opacity: 0;
  transform: translateY(-18px);
  animation: revealLine 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--delay, 0) * 0.18s + 0.3s);
}

@keyframes revealLine {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Work / Reel ---------- */

.work {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 2rem;
}

.work-inner {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

.section-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
}

.reel-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #111318;
  border: 1px solid rgba(138, 143, 152, 0.25);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reel-video-embed {
  position: absolute;
  inset: 0;
}

.reel-video-embed iframe {
  width: 100%;
  height: 100%;
}

.reel-placeholder-label {
  position: relative;
  z-index: 1;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.reel-frame.has-video .reel-placeholder-label {
  display: none;
}

.reel-specs {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  color: var(--color-text);
  line-height: 1.5;
  max-width: 640px;
  margin-top: 1.75rem;
}

.clip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.clip-slot {
  aspect-ratio: 9 / 16;
  border: 1px dashed rgba(138, 143, 152, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent);
  position: relative;
  overflow: hidden;
}

.clip-slot.has-media {
  border-style: solid;
  border-color: rgba(138, 143, 152, 0.25);
  padding: 0;
}

.clip-video-embed {
  position: absolute;
  inset: 0;
}

.clip-video-embed iframe {
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ---------- Pricing / Call Sheet ---------- */

.pricing {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 2rem;
}

.pricing-inner {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

.pricing-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--color-text);
  margin-bottom: 3rem;
}

.call-sheet {
  border-top: 1px solid rgba(138, 143, 152, 0.3);
}

.scene {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 2rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(138, 143, 152, 0.3);
}

.field-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.6rem;
}

.scene-name h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 0.02em;
  color: var(--color-text);
  font-weight: normal;
}

.scene-shotlist ul {
  list-style: none;
}

.scene-shotlist li {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.6;
  padding-left: 1.1rem;
  position: relative;
}

.scene-shotlist li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

.scene-budget .price {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 0.02em;
  color: var(--color-text);
}

.scene-group-label {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  padding: 2rem 0 0.5rem;
}

.placeholder-flag {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-top: 0.4rem;
}

.pricing-note {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-accent);
  max-width: 640px;
  margin-top: 2.5rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.pricing-note + .pricing-note {
  margin-top: 0.75rem;
}

@media (max-width: 800px) {
  .scene {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* ---------- Merch / Shop ---------- */

.merch {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 2rem;
  text-align: center;
}

.merch-inner {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

.merch-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--color-text);
  margin-top: 1.5rem;
}

.merch-intro {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--color-accent);
  max-width: 480px;
  line-height: 1.5;
  margin: 1.25rem auto 0;
}

.merch-showcase {
  position: relative;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 16 / 9;
  margin: 3.5rem auto 0;
}

.merch-glow {
  position: absolute;
  top: -15%;
  left: 50%;
  width: 130%;
  height: 90%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center,
    rgba(184, 148, 98, 0.16) 0%,
    rgba(184, 148, 98, 0.06) 45%,
    rgba(11, 12, 14, 0) 75%);
  filter: blur(12px);
  pointer-events: none;
}

.merch-video-embed {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid rgba(138, 143, 152, 0.25);
}

.merch-video-embed iframe {
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.shirt-viewer {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  transition: opacity 1s ease;
  touch-action: none;
}

.shirt-viewer.is-ready {
  opacity: 1;
}

.shirt-viewer canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.merch-showcase.has-shirt .merch-video-embed {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.merch-cta {
  display: inline-block;
  margin-top: 3rem;
  padding: 0.9rem 2.2rem;
  border: 1px solid rgba(138, 143, 152, 0.4);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text);
  text-decoration: none;
  background: none;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.merch-cta:hover {
  border-color: var(--color-text);
  background-color: rgba(242, 241, 237, 0.05);
}

.merch-inner .placeholder-flag {
  display: block;
  margin-top: 0.75rem;
}

.notify-form {
  max-width: 480px;
  margin: 2.5rem auto 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-field .field-label {
  margin-bottom: 0.5rem;
}

.form-hint {
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  opacity: 0.8;
}

.form-field input,
.form-field textarea {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(138, 143, 152, 0.35);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.65rem 0.75rem;
  border-radius: 2px;
  transition: border-color 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-text);
}

.form-field textarea {
  resize: vertical;
  min-height: 5rem;
}

.word-counter {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.7rem;
  color: var(--color-accent);
  text-align: right;
}

.notify-form .merch-cta {
  align-self: center;
  margin-top: 0.25rem;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid rgba(138, 143, 152, 0.3);
  padding: 2.5rem 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--color-accent);
  transition: color 0.2s ease;
}

.footer-icon:hover,
.footer-icon:focus-visible {
  color: var(--color-text);
}

.footer-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Lucide's mail glyph is stroke-drawn, not filled — an outline icon mixed in
   among the filled Simple Icons brand marks, per the spec (deliberate choice,
   not a mismatch to "fix" by re-filling it). */
.footer-icon svg.icon-stroke {
  fill: none;
}

/* ---------- Follow button (persistent, global) ---------- */

.follow-button {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 40;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  min-height: 44px;

  background: rgba(242, 241, 237, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(242, 241, 237, 0.35);
  border-radius: 999px;

  color: #F2F1ED;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;

  transition: background 0.2s ease, border-color 0.2s ease;
}

.follow-button:hover,
.follow-button:focus-visible {
  background: rgba(242, 241, 237, 0.16);
  border-color: rgba(242, 241, 237, 0.6);
}

.follow-button svg {
  width: 16px;
  height: 16px;
  fill: #F2F1ED;
}

@media (max-width: 600px) {
  .footer-socials {
    gap: 1rem;
  }
}

/* ---------- Scroll-triggered reveal (all sections after hero) ---------- */

.reveal-item {
  opacity: 0;
  transform: translateY(-24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--delay, 0) * 0.15s);
}

.reveal-section.in-view .reveal-item {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal-line {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .hero-headline,
  .hero-subhead {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }
  .scroll-cue-arrow::after {
    animation: none;
    display: none;
  }
  .reveal-item {
    transition: none;
    opacity: 1;
    transform: none;
  }
  .shirt-viewer,
  .merch-showcase.has-shirt .merch-video-embed {
    transition: none;
  }
}
