:root {
  --accent-rgb: 238 120 84;
  --accent-2-rgb: 246 196 140;
  --bg-rgb: 18 12 10;
  --bg-mid-rgb: 40 28 24;
  --ink: #f9f2e8;
  --paper: rgb(18 12 10);
  --strip-crop: 0%;
  --drift: 0;
  --swatch-1-rgb: 238 120 84;
  --swatch-2-rgb: 180 120 110;
  --swatch-3-rgb: 120 90 140;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: rgb(var(--bg-rgb));
  color: var(--ink);
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

.bg-photo {
  position: fixed;
  inset: -60%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: rgb(var(--bg-rgb));
  filter: blur(30px) saturate(1.45) contrast(1.18);
  transform: translate3d(0, 0, 0) scale(1.25);
  transition: background-image 400ms ease, filter 400ms ease;
  z-index: 0;
}

.bg-layer {
  position: fixed;
  inset: -80%;
  background:
    radial-gradient(circle at 18% 12%, rgb(var(--accent-2-rgb) / 0.35), transparent 45%),
    radial-gradient(circle at 82% 18%, rgb(var(--accent-rgb) / 0.28), transparent 42%),
    radial-gradient(circle at 30% 82%, rgb(var(--accent-rgb) / 0.2), transparent 50%),
    linear-gradient(120deg, rgb(var(--bg-rgb)), rgb(var(--bg-mid-rgb)));
  filter: saturate(1.15);
  transform: translate3d(0, 0, 0);
  transition: background 400ms ease;
  opacity: 0.75;
  z-index: 1;
}

.bg-grain {
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.03) 0 1px, transparent 1px 3px);
  mix-blend-mode: soft-light;
  opacity: 0.45;
  pointer-events: none;
  z-index: 2;
}

.fx-leaks {
  position: fixed;
  inset: -10%;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: screen;
  opacity: 0.35;
}

.leak {
  position: absolute;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  filter: blur(18px) saturate(1.2);
  opacity: 0.7;
  transform: translate3d(0, 0, 0);
}

.leak-a {
  top: -10%;
  left: -5%;
  background: radial-gradient(circle at 30% 30%, rgb(var(--swatch-1-rgb) / 0.7), transparent 65%);
  transform: translate3d(calc(var(--drift) * -20px), calc(var(--drift) * 18px), 0);
}

.leak-b {
  bottom: -20%;
  right: -10%;
  background: radial-gradient(circle at 70% 70%, rgb(var(--swatch-3-rgb) / 0.65), transparent 60%);
  transform: translate3d(calc(var(--drift) * 22px), calc(var(--drift) * -16px), 0);
}

.fx-swatches {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.8;
}

.swatch {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.7;
  transform: translate3d(0, 0, 0);
}

.swatch-a {
  top: 12%;
  right: 18%;
  background: radial-gradient(circle, rgb(var(--swatch-1-rgb) / 0.9), transparent 70%);
  transform: translate3d(calc(var(--drift) * 14px), calc(var(--drift) * -12px), 0);
}

.swatch-b {
  bottom: 14%;
  left: 12%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgb(var(--swatch-2-rgb) / 0.75), transparent 72%);
  transform: translate3d(calc(var(--drift) * -18px), calc(var(--drift) * 16px), 0);
}

.swatch-c {
  bottom: 28%;
  right: 8%;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgb(var(--swatch-3-rgb) / 0.85), transparent 70%);
  transform: translate3d(calc(var(--drift) * 10px), calc(var(--drift) * 14px), 0);
}

#stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 3;
  pointer-events: none;
}

.scene {
  --strip-shift: 0px;
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(220px, 42vw) minmax(260px, 44vw);
  gap: clamp(20px, 6vw, 80px);
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 6vw, 72px);
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: none;
}

.scene.is-active {
  opacity: 1;
  pointer-events: auto;
}

.scene[data-side="right"] .scene-strip {
  order: 2;
}

.scene[data-side="right"] .scene-copy {
  order: 1;
}

.scene[data-side="left"] {
  --strip-shift: 0px;
}

.scene[data-side="right"] {
  --strip-shift: 0px;
}

.scene-strip {
  width: 100%;
  max-width: 440px;
  height: min(78vh, 720px);
  overflow: visible;
  position: relative;
  justify-self: center;
  will-change: transform;
}

.filmstrip {
  position: absolute;
  inset: 0;
}

.strip-card {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  transform-origin: 50% 85%;
  clip-path: inset(var(--strip-crop));
  will-change: transform;
}

.strip-echo {
  opacity: 0.65;
  filter: saturate(0.9) brightness(0.95);
  transform: translate3d(-24px, 18px, 0) rotate(-6deg) scale(0.98);
}

.strip-main {
  transform: translate3d(10px, -6px, 0) rotate(2deg);
}

.scene.is-active .strip-main {
  animation: fanFloat 7.5s ease-in-out infinite;
}

.scene.is-active .strip-echo {
  animation: fanFloatAlt 8.5s ease-in-out infinite;
}

@keyframes fanFloat {
  0%,
  100% {
    transform: translate3d(10px, -6px, 0) rotate(2deg) scale(1);
  }
  50% {
    transform: translate3d(14px, -14px, 0) rotate(1deg) scale(1.01);
  }
}

@keyframes fanFloatAlt {
  0%,
  100% {
    transform: translate3d(-24px, 18px, 0) rotate(-6deg) scale(0.98);
  }
  50% {
    transform: translate3d(-16px, 26px, 0) rotate(-4deg) scale(0.99);
  }
}

.scene-copy {
  width: 100%;
  max-width: 560px;
  color: var(--ink);
  text-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  will-change: transform;
}

.copy-panel {
  padding: 20px 22px 20px 28px;
  border-left: 2px solid rgb(var(--accent-rgb) / 0.35);
  border-radius: 12px;
  background: rgb(15 12 11 / 0.4);
  box-shadow: inset 0 0 0 1px rgb(var(--accent-rgb) / 0.08);
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgb(var(--accent-2-rgb) / 0.9);
  font-family: "Avenir Next Condensed", "DIN Condensed", Impact, sans-serif;
}

.scene-copy h2 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 2.2vw, 2.4rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: "Avenir Next Condensed", "DIN Condensed", Impact, sans-serif;
}

.scene-copy p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

.contact-form {
  margin-top: 18px;
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 14px;
  background: rgb(16 14 18 / 0.6);
  border: 1px solid rgb(var(--accent-rgb) / 0.3);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px) saturate(1.2);
  position: relative;
}

.contact-form .field {
  display: grid;
  gap: 6px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(var(--accent-2-rgb));
  font-family: "Avenir Next Condensed", "DIN Condensed", Impact, sans-serif;
}

.contact-form .hp-field {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgb(var(--accent-rgb) / 0.25);
  background: rgb(8 8 10 / 0.6);
  color: var(--ink);
  font-size: 0.95rem;
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgb(var(--accent-2-rgb) / 0.7);
  box-shadow: 0 0 0 2px rgb(var(--accent-2-rgb) / 0.15);
}

.form-status {
  min-height: 1.2em;
  margin: 0;
  font-size: 0.85rem;
  color: rgb(var(--accent-2-rgb));
}

.submit-btn {
  justify-self: start;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgb(var(--accent-2-rgb) / 0.75);
  background: rgb(var(--accent-rgb) / 0.28);
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-family: "Avenir Next Condensed", "DIN Condensed", Impact, sans-serif;
  cursor: pointer;
}

.submit-btn:hover,
.submit-btn:focus-visible {
  background: rgb(var(--accent-rgb) / 0.4);
}

.scroll-hint {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgb(var(--accent-rgb) / 0.2);
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  font-family: "Avenir Next Condensed", "DIN Condensed", Impact, sans-serif;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: opacity 300ms ease, transform 300ms ease;
  z-index: 4;
}

.brand {
  position: fixed;
  top: clamp(12px, 4vw, 32px);
  left: clamp(12px, 4vw, 40px);
  width: clamp(96px, 12vw, 160px);
  z-index: 4;
  pointer-events: none;
  transition: left 400ms ease, right 400ms ease, transform 400ms ease;
  transform: translate3d(calc(var(--drift) * 6px), calc(var(--drift) * -4px), 0);
}

body[data-logo-side="right"] .brand {
  left: auto;
  right: clamp(12px, 4vw, 40px);
}

.brand img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.35));
}

.menu-pill {
  position: fixed;
  top: clamp(12px, 3.5vw, 26px);
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: clamp(12px, 2vw, 22px);
  padding: 10px 18px;
  border-radius: 999px;
  background: rgb(20 16 18 / 0.65);
  border: 1px solid rgb(var(--accent-rgb) / 0.3);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px) saturate(1.25);
  transform: translate3d(-50%, calc(var(--drift) * -4px), 0);
  z-index: 4;
  pointer-events: auto;
}

.menu-item {
  text-decoration: none;
  color: var(--ink);
  font-size: clamp(0.72rem, 1.4vw, 0.95rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: "Avenir Next Condensed", "DIN Condensed", Impact, sans-serif;
  opacity: 0.8;
  position: relative;
  transition: opacity 200ms ease, color 200ms ease;
}

.menu-item:hover,
.menu-item:focus-visible {
  opacity: 1;
  color: rgb(var(--accent-2-rgb));
}

.menu-item.cta {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgb(var(--accent-rgb) / 0.22);
  border: 1px solid rgb(var(--accent-rgb) / 0.5);
  opacity: 1;
}

.menu-item.is-active {
  opacity: 1;
  color: var(--ink);
}

.menu-item.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
  transform: translateX(-50%);
}

.menu-item.is-active.cta {
  background: rgb(var(--accent-rgb) / 0.5);
  border-color: rgb(var(--accent-2-rgb) / 0.9);
  box-shadow: 0 0 0 2px rgb(var(--accent-rgb) / 0.25);
}

.menu-item.is-active.cta::after {
  content: none;
}

.menu-item.is-active:hover,
.menu-item.is-active:focus-visible {
  color: var(--ink);
}

@media (max-width: 900px) {
  .menu-pill {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 16px;
    width: min(92vw, 520px);
  }
}


.scroll-hint .arrow {
  font-size: 1rem;
  transform: translateY(-1px);
}

.scroll-hint.is-hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(12px);
}

@media (max-width: 900px) {
  #stage {
    display: block;
  }

  .scene {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: clamp(120px, 24vw, 180px) 20px 20px;
  }

  .scene {
    --strip-shift: 0px;
  }

  .scene-strip {
    height: min(52vh, 420px);
    max-width: min(78vw, 320px);
  }

  .scene[data-index="0"] .scene-strip {
    height: min(44vh, 360px);
  }

  .brand {
    top: clamp(68px, 16vw, 110px);
    left: 50%;
    right: auto;
    width: clamp(88px, 18vw, 130px);
    transform: translate3d(-50%, 0, 0);
  }

  body[data-logo-side="right"] .brand {
    left: 50%;
    right: auto;
  }
}
