:root {
  --bg: #0d0f12;
  --bg-soft: #171b20;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-strong: rgba(255, 248, 232, 0.1);
  --text: #f5efe2;
  --muted: #cdbfa8;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #ff8f5c;
  --accent-2: #ffd166;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

html.theme-day {
  --bg: #f7f1e7;
  --bg-soft: #fdf9f2;
  --panel: rgba(255, 251, 244, 0.78);
  --panel-strong: rgba(255, 247, 236, 0.92);
  --text: #221915;
  --muted: #7e6956;
  --line: rgba(94, 67, 42, 0.12);
  --accent: #cb7043;
  --accent-2: #b38a31;
  --shadow: 0 24px 70px rgba(117, 92, 62, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "PT Sans Narrow", "Arial Narrow", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 143, 92, 0.18), transparent 32%),
    radial-gradient(circle at 80% 20%, rgba(255, 209, 102, 0.12), transparent 20%),
    linear-gradient(180deg, #0b0d11 0%, #11161c 45%, #0d0f12 100%);
}

html.theme-day body {
  background:
    radial-gradient(circle at top left, rgba(237, 184, 126, 0.2), transparent 32%),
    radial-gradient(circle at 82% 18%, rgba(247, 214, 151, 0.2), transparent 20%),
    linear-gradient(180deg, #fffaf4 0%, #f7efe4 48%, #f3ebde 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  opacity: 0.16;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.15' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.95'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

html.theme-day body::before {
  opacity: 0.08;
  mix-blend-mode: multiply;
}

body::after {
  opacity: 0.12;
  mix-blend-mode: overlay;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.03)),
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.014) 0,
      rgba(255, 255, 255, 0.014) 1px,
      transparent 1px,
      transparent 3px
    );
}

html.theme-day body::after {
  opacity: 0.05;
  mix-blend-mode: soft-light;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-glow {
  position: fixed;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.22;
  pointer-events: none;
}

.page-glow-left {
  top: -8rem;
  left: -10rem;
  background: #ff6a3d;
}

.page-glow-right {
  top: 16rem;
  right: -8rem;
  background: #f8c15d;
}

html.theme-day .page-glow-left {
  background: #ecc49f;
  opacity: 0.2;
}

html.theme-day .page-glow-right {
  background: #efe0ae;
  opacity: 0.18;
}

.hero,
.section,
.footer {
  position: relative;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  padding: 1rem 0 2rem;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0 2rem;
}

.nav-logo {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  color: var(--muted);
}

.eyebrow,
.section-kicker,
.role {
  margin: 0 0 0.75rem;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
}

.section-heading h2,
.contact-panel h2 {
  margin: 0;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.22);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), #ffb16d);
  color: #1b120d;
  font-weight: 800;
  border: 0;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.03);
}

.story-card,
.trailer-frame,
.team-card,
.contact-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

html.theme-day .story-card,
html.theme-day .trailer-frame,
html.theme-day .team-card,
html.theme-day .contact-panel,
html.theme-day .contact-link,
html.theme-day .social-link,
html.theme-day .back-to-top,
html.theme-day .frame {
  backdrop-filter: blur(10px);
}

.hero-media {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  border-radius: 2rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    radial-gradient(circle at 50% 20%, rgba(255, 209, 102, 0.18), transparent 25%),
    linear-gradient(160deg, #171c22 0%, #0e1115 45%, #1e120f 100%);
  box-shadow: var(--shadow);
}

html.theme-day .hero-media {
  border-color: rgba(119, 90, 62, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.52), transparent),
    radial-gradient(circle at 50% 20%, rgba(242, 206, 147, 0.28), transparent 25%),
    linear-gradient(160deg, #faf4ea 0%, #f4ebdf 45%, #eadccf 100%);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 8, 10, 0.04), rgba(6, 8, 10, 0.28)),
    linear-gradient(90deg, rgba(6, 8, 10, 0.22), transparent 24%, transparent 76%, rgba(6, 8, 10, 0.22));
}

html.theme-day .hero-media::after {
  background:
    linear-gradient(180deg, rgba(255, 248, 239, 0.04), rgba(28, 18, 12, 0.12)),
    linear-gradient(90deg, rgba(40, 24, 13, 0.08), transparent 24%, transparent 76%, rgba(40, 24, 13, 0.08));
}

.hero-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.hero-caption {
  position: absolute;
  left: auto;
  right: 1.5rem;
  bottom: 1.25rem;
  z-index: 1;
  margin: 0;
  max-width: min(28rem, calc(100% - 3rem));
  text-align: right;
  font-size: clamp(0.62rem, 1.05vw, 0.74rem);
  line-height: 1.5;
  color: var(--accent-2);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}

.section {
  padding: 3rem 0;
}

.section-heading {
  margin-bottom: 1.5rem;
}

.section-heading h2,
.contact-panel h2 {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
}

.section-subtitle {
  margin: 0.55rem 0 0;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--muted);
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.story-card,
.team-card {
  border-radius: 1.5rem;
  padding: 1.5rem;
}

.story-card h3,
.team-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
}

.story-card p,
.team-card p,
.contact-panel p {
  margin: 0;
  line-height: 1.75;
  color: rgba(245, 239, 226, 0.82);
}

html.theme-day .story-card p,
html.theme-day .team-card p,
html.theme-day .contact-panel p,
html.theme-day .trailer-frame p {
  color: rgba(34, 25, 21, 0.78);
}

.story-card p a,
.team-card p a,
.contact-panel p a {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 0.16em;
  text-decoration-thickness: 1px;
}

.story-card p a:hover,
.story-card p a:focus-visible,
.team-card p a:hover,
.team-card p a:focus-visible,
.contact-panel p a:hover,
.contact-panel p a:focus-visible {
  color: var(--accent);
}

.accent-card {
  background:
    linear-gradient(180deg, rgba(255, 143, 92, 0.16), rgba(255, 255, 255, 0.03)),
    var(--panel);
}

html.theme-day .accent-card {
  background:
    linear-gradient(180deg, rgba(214, 130, 79, 0.18), rgba(255, 255, 255, 0.38)),
    var(--panel);
}

.quote-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.quote {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.26;
}

.quote-card span {
  margin-top: 1.5rem;
  color: var(--muted);
}

.trailer-frame {
  display: grid;
  place-items: center;
  min-height: 28rem;
  padding: 2rem;
  border-radius: 2rem;
  text-align: center;
  background:
    linear-gradient(rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.46)),
    radial-gradient(circle at center, rgba(255, 209, 102, 0.16), transparent 32%),
    linear-gradient(135deg, #20262d 0%, #12161b 100%);
}

html.theme-day .trailer-frame {
  background:
    linear-gradient(rgba(255, 251, 244, 0.62), rgba(243, 234, 224, 0.88)),
    radial-gradient(circle at center, rgba(231, 186, 110, 0.2), transparent 32%),
    linear-gradient(135deg, #f6efe6 0%, #eadfce 100%);
}

.trailer-frame p {
  max-width: 28rem;
  margin: 1rem 0 0;
  color: rgba(245, 239, 226, 0.82);
}

.play-button {
  width: 5.25rem;
  height: 5.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 18px rgba(255, 255, 255, 0.04);
  position: relative;
}

.play-button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 53%;
  transform: translate(-50%, -50%);
  border-left: 1.1rem solid #251711;
  border-top: 0.75rem solid transparent;
  border-bottom: 0.75rem solid transparent;
}

.frames-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  grid-auto-rows: 14rem;
}

.frame {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.58)),
    radial-gradient(circle at top, rgba(255, 209, 102, 0.12), transparent 35%),
    linear-gradient(135deg, #38404a, #1a1e25 60%, #2d1a15);
  min-height: 14rem;
}

html.theme-day .frame {
  background:
    linear-gradient(180deg, transparent, rgba(53, 34, 20, 0.34)),
    radial-gradient(circle at top, rgba(215, 177, 104, 0.2), transparent 35%),
    linear-gradient(135deg, #ddd4c8, #cfc3b5 60%, #d9c7b2);
}

.frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 55%, rgba(0, 0, 0, 0.64));
}

.frame figcaption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
  color: var(--text);
}

.frame-tall {
  grid-row: span 2;
}

.frame-wide {
  grid-column: span 2;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: 2rem;
  background:
    linear-gradient(120deg, rgba(255, 143, 92, 0.12), rgba(255, 255, 255, 0.03)),
    var(--panel);
}

.contact-list {
  display: grid;
  gap: 0.9rem;
  align-content: start;
}

.contact-link {
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

html.theme-day .contact-link,
html.theme-day .social-link,
html.theme-day .back-to-top {
  background: rgba(255, 252, 247, 0.78);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.social-link svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-link path,
.social-link rect,
.social-link circle {
  vector-effect: non-scaling-stroke;
}

.social-link .social-fill {
  fill: currentColor;
  stroke: none;
}

.social-link-solid svg {
  fill: currentColor;
  stroke: none;
}

.social-link-imdb {
  width: auto;
  min-width: 4.8rem;
  padding: 0 1rem;
  border-radius: 1rem;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.social-link-imdb span {
  line-height: 1;
}

.footer {
  padding: 0 0 2rem;
  color: rgba(245, 239, 226, 0.6);
}

html.theme-day .footer {
  color: rgba(63, 45, 28, 0.62);
}

.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(18, 22, 28, 0.76);
  color: var(--text);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 180ms ease,
    visibility 180ms ease,
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(28, 33, 40, 0.9);
}

html.theme-day .back-to-top:hover,
html.theme-day .back-to-top:focus-visible,
html.theme-day .social-link:hover,
html.theme-day .social-link:focus-visible {
  border-color: rgba(140, 101, 57, 0.24);
  background: rgba(247, 242, 233, 0.96);
}

.back-to-top svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 600ms ease,
    transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .hero-grid,
  .story-grid,
  .team-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-bottom: 2rem;
  }

  .frames-grid {
    grid-template-columns: 1fr 1fr;
  }

  .frame-wide {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  .hero,
  .section,
  .footer {
    width: min(1120px, calc(100% - 1.25rem));
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-logo {
    font-size: 1.8rem;
  }

  .hero-caption {
    left: auto;
    right: 1rem;
    bottom: 0.65rem;
    max-width: min(17rem, calc(100% - 2rem));
    font-size: clamp(0.42rem, 2vw, 0.5rem);
    line-height: 1.35;
  }

  .frames-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 13rem;
  }

  .frame-tall {
    grid-row: span 1;
  }

  .trailer-frame {
    min-height: 22rem;
  }

  .hero-media {
    border-radius: 1.35rem;
  }

  .back-to-top {
    right: 1rem;
    bottom: 1rem;
    width: 3.2rem;
    height: 3.2rem;
  }
}
