/*
   Metropolis Productions — v2 landing page.
   Direction (owner feedback, 2026-09): full-screen background images with white text and
   large bold type (markjosephcreative.com), layered scrolling overlays, and RWS Global's
   confident statement-led company presentation.

   Brand palette is the Metropolis standard (Adobe palette, 2026-08) shared with MetroErp:
   purple #742896, blue #2167c0, navy #072040, cyan #24b8d1, pink #d256a4, amber #f0b429,
   orange #fc9f36. The logo gradient walks purple → blue → cyan → amber → orange.
*/

:root {
  --brand-purple: #742896;
  --brand-purple-bright: #a259c4;
  --brand-purple-fill: #7f2ca3;
  --brand-purple-hover: #96379f;
  --brand-blue: #2167c0;
  --brand-navy: #072040;
  --brand-cyan: #24b8d1;
  --brand-pink: #d256a4;
  --brand-amber: #f0b429;
  --brand-orange: #fc9f36;

  --canvas: #0a080e;
  --ink: #f5f2f8;
  --ink-dim: rgba(245, 242, 248, 0.72);

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;
  --font-body: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gradient-walk: linear-gradient(90deg, var(--brand-purple), var(--brand-blue), var(--brand-cyan), var(--brand-amber), var(--brand-orange));

  scroll-behavior: smooth;
}

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

body {
  background-color: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; }

a { color: var(--brand-purple-bright); text-decoration: none; transition: color 0.25s ease; }
a:hover { color: #c489d6; }

/* ── Type scale ───────────────────────────────────────────────────────────── */

.display-giant {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: 0.01em;
  color: #ffffff;
  font-size: clamp(3rem, 8.5vw, 8rem);
}

.display-big {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.02;
  color: #ffffff;
  font-size: clamp(2.2rem, 5.5vw, 4.6rem);
}

.serif-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: #ffffff;
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  line-height: 1.35;
}

.eyebrow {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.8rem;
  color: var(--ink-dim);
}

.lead-copy {
  color: var(--ink-dim);
  font-size: 1.05rem;
  max-width: 46rem;
}

/* Multi-paragraph copy blocks. The reset at the top zeroes every margin, so stacked
   paragraphs need their own rhythm — added for the About section's four-paragraph
   rewrite (owner copy, 2026-09-23). */
.lead-copy + .lead-copy { margin-top: 1.1rem; }
.serif-accent + .lead-copy,
.lead-copy + .serif-accent { margin-top: 1.8rem; }

/* The closing cadence line ("We dream. We design…") sits a touch smaller than the
   hero's accent so it reads as a sign-off rather than a second headline. */
.serif-accent.closing-line { font-size: clamp(1.15rem, 1.9vw, 1.6rem); }

/* Gradient rule — the SkyScape walk, used as a small underline accent. */
.gradient-rule {
  display: block;
  width: 72px;
  height: 3px;
  border: 0;
  background: var(--gradient-walk);
  margin: 1.4rem 0;
}

.gradient-rule.centered { margin-left: auto; margin-right: auto; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */

.btn-solid,
.btn-ghost {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.85rem;
  padding: 0.9rem 2.4rem;
  border-radius: 0;
  transition: all 0.25s ease;
}

.btn-solid {
  background: var(--brand-purple-fill);
  color: #ffffff;
  border: 1px solid var(--brand-purple-fill);
}

.btn-solid:hover {
  background: var(--brand-purple-hover);
  border-color: var(--brand-purple-hover);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.65);
}

.btn-ghost:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transform: translateY(-2px);
}

/* ── Header ───────────────────────────────────────────────────────────────── */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 3vw;
  transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
  background: linear-gradient(rgba(5, 3, 8, 0.75), transparent);
}

.site-header.scrolled {
  background: rgba(7, 5, 10, 0.96);
  padding: 0.65rem 3vw;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.07);
}

.site-header .logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.site-header .logo img { height: 40px; width: auto; }

.site-header .logo .wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 1.15rem;
  color: #ffffff;
}

.site-nav { display: flex; align-items: center; gap: 2rem; }

.site-nav a {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a.active {
  color: #ffffff;
  border-bottom-color: var(--brand-purple-bright);
}

.site-nav .btn-solid { padding: 0.6rem 1.6rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: #ffffff;
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
}

/* ── Full-bleed panels (the layered-scroll effect) ───────────────────────────
   background-attachment: fixed makes each panel's photo hold still while the page
   scrolls over it — the "layered scrolling overlay" feel from the Wix reference.
   Mobile Safari can't composite fixed backgrounds, so touch widths fall back. */

.panel {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  isolation: isolate;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(7, 4, 12, 0.45);
}

.panel.shade-heavy::before { background: rgba(7, 4, 12, 0.62); }

.panel.shade-bottom::before {
  background: linear-gradient(180deg, rgba(7, 4, 12, 0.55) 0%, rgba(7, 4, 12, 0.2) 45%, rgba(7, 4, 12, 0.72) 100%);
}

.panel-inner {
  width: min(1200px, 92vw);
  margin: 0 auto;
  padding: 14vh 0 12vh;
}

.panel-inner.align-right { text-align: right; }
.panel-inner.align-center { text-align: center; }

.panel-inner.align-right .gradient-rule { margin-left: auto; }
.panel-inner.align-center .lead-copy { margin-left: auto; margin-right: auto; }
.panel-inner.align-right .lead-copy { margin-left: auto; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.hero-panel { background-image: url("../img/metropolis/bg-hero.jpg"); }

/* Video background: the YouTube embed sits at z-index -2, between the fallback photo
   (the panel's own background, which shows until the stream starts) and the dark
   overlay at -1 that keeps the headline readable. Sized to cover the viewport at
   16:9 whichever dimension wins, centered, and inert to the mouse. */
.hero-video {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.hero-video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  /* The extra 1.3 scale crops the edges of the player past the viewport, which is what
     keeps YouTube's own title text (it renders inside the top of the video) off-screen. */
  transform: translate(-50%, -50%) scale(1.3);
  width: max(100vw, 177.78vh);   /* 16/9 * 100vh */
  height: max(100vh, 56.25vw);   /* 9/16 * 100vw */
  border: 0;
}

.hero-panel::before {
  background: linear-gradient(105deg, rgba(7, 4, 12, 0.78) 0%, rgba(7, 4, 12, 0.42) 55%, rgba(116, 40, 150, 0.28) 100%);
}

.hero-panel .panel-inner { padding-top: 18vh; }

.hero-panel .serif-accent { margin-top: 1.6rem; }

.hero-panel .hero-actions { margin-top: 2.6rem; display: flex; gap: 1rem; flex-wrap: wrap; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 2.2rem;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.6rem;
  animation: cue-bob 2.2s ease-in-out infinite;
}

@keyframes cue-bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 10px); }
}

/* ── Black interlude sections ─────────────────────────────────────────────── */

.section-dark {
  background: var(--canvas);
  padding: 7rem 0;
  position: relative;
}

.section-inner { width: min(1200px, 92vw); margin: 0 auto; }

.section-dark .display-big + .lead-copy { margin-top: 1.6rem; }

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 4.5rem;
  text-align: center;
}

.stat-figure {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  line-height: 1;
  background: var(--gradient-walk);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-caption {
  margin-top: 0.6rem;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--ink-dim);
}

/* ── Service panels ───────────────────────────────────────────────────────── */

.svc-shows { background-image: url("../img/metropolis/bg-svc-shows.jpg"); }
.svc-talent { background-image: url("../img/metropolis/bg-svc-talent.jpg"); }
.svc-costumes { background-image: url("../img/metropolis/bg-svc-costumes.jpg"); }
.svc-production { background-image: url("../img/metropolis/bg-svc-production.jpg"); }

.stmt-oneroof { background-image: url("../img/metropolis/bg-oneroof.jpg"); }
.stmt-catalog { background-image: url("../img/metropolis/bg-catalog.jpg"); }
.stmt-source { background-image: url("../img/metropolis/bg-source.jpg"); }
.cta-panel { background-image: url("../img/metropolis/bg-cta.jpg"); }

.panel .kicker {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  color: rgba(255, 255, 255, 0.92);
}

.panel .display-giant { margin-top: 0.4rem; }

.panel .lead-copy { margin-top: 1.6rem; color: rgba(255, 255, 255, 0.85); }

.panel-link {
  display: inline-block;
  margin-top: 2rem;
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.85rem;
  color: #ffffff;
  border-bottom: 2px solid var(--brand-purple-bright);
  padding-bottom: 0.35rem;
}

.panel-link:hover { color: var(--brand-purple-bright); }

/* Statement panels get slightly smaller giants than the hero */
.stmt .display-giant { font-size: clamp(2.6rem, 7vw, 6.5rem); }

/* ── Studio grid ──────────────────────────────────────────────────────────── */

.studio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-top: 3.5rem;
}

.studio-card {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #16121d;
}

.studio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.6s ease;
  filter: saturate(0.9);
}

.studio-card:hover img { transform: scale(1.06); filter: saturate(1.05); }

.studio-card .card-label {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.2rem 1.2rem 1.1rem;
  background: linear-gradient(transparent, rgba(5, 3, 8, 0.92));
}

.studio-card .card-label h3 {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1.05rem;
  color: #ffffff;
}

.studio-card .card-label p {
  font-size: 0.8rem;
  color: var(--ink-dim);
  margin-top: 0.2rem;
  line-height: 1.45;
}

/* ── Testimonials ─────────────────────────────────────────────────────────── */

.quote-slide { text-align: center; padding: 0 8vw; }

.quote-slide blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.4rem, 2.8vw, 2.3rem);
  line-height: 1.5;
  color: #ffffff;
}

.quote-slide cite {
  display: block;
  margin-top: 1.8rem;
  font-family: var(--font-display);
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.85rem;
  color: var(--brand-purple-bright);
}

.quote-slide .cite-role {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--ink-dim);
  text-transform: uppercase;
  font-family: var(--font-display);
}

.testimonial-swiper .swiper-pagination { position: static; margin-top: 2.5rem; }

.testimonial-swiper .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.35);
  opacity: 1;
}

.testimonial-swiper .swiper-pagination-bullet-active { background: var(--brand-purple-bright); }

/* ── Inquiry form ─────────────────────────────────────────────────────────── */

.inquiry-form { margin-top: 3rem; }

.inquiry-form .form-control,
.inquiry-form .form-select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0;
  color: #ffffff;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
}

.inquiry-form .form-control::placeholder { color: rgba(255, 255, 255, 0.45); }

.inquiry-form .form-select { color: rgba(255, 255, 255, 0.75); }

.inquiry-form .form-select option { background: #16121d; color: #ffffff; }

.inquiry-form .form-control:focus,
.inquiry-form .form-select:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--brand-purple-bright);
  box-shadow: 0 0 0 0.2rem rgba(162, 89, 196, 0.2);
  color: #ffffff;
  outline: none;
}

/* Date field pickers render dark */
.inquiry-form input[type="date"] { color-scheme: dark; }

.inquiry-form .loading,
.inquiry-form .error-message,
.inquiry-form .sent-message {
  display: none;
  text-align: center;
  padding: 0.8rem;
  margin-top: 1rem;
}

.inquiry-form .loading { background: rgba(255, 255, 255, 0.08); }
.inquiry-form .error-message { background: rgba(210, 86, 164, 0.2); color: #f0a8d3; }
.inquiry-form .sent-message { background: rgba(36, 184, 209, 0.15); color: #6fcede; }

/* ── Contact strip ────────────────────────────────────────────────────────── */

.contact-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
  text-align: center;
}

.contact-strip .contact-cell h3 {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.85rem;
  color: var(--brand-purple-bright);
}

.contact-strip .contact-cell p { color: var(--ink-dim); margin-top: 0.4rem; font-size: 0.95rem; }
.contact-strip .contact-cell a { color: inherit; }
.contact-strip .contact-cell a:hover { color: #ffffff; }

/* ── Footer ───────────────────────────────────────────────────────────────── */

.site-footer {
  background: #060409;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 4rem 0 2rem;
}

.footer-grid {
  width: min(1200px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.site-footer .logo { display: flex; align-items: center; gap: 0.7rem; }
.site-footer .logo img { height: 34px; }

.site-footer .logo .wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #ffffff;
}

.site-footer p { color: var(--ink-dim); font-size: 0.9rem; margin-top: 1.2rem; max-width: 26rem; }

.site-footer h4 {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  color: #ffffff;
  margin-bottom: 1.1rem;
}

.site-footer ul { list-style: none; }

.site-footer ul li { margin-bottom: 0.55rem; }

.site-footer ul a { color: var(--ink-dim); font-size: 0.9rem; }

.site-footer ul a:hover { color: #ffffff; }

.footer-bottom {
  width: min(1200px, 92vw);
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--ink-dim);
  font-size: 0.82rem;
}

.footer-social { display: flex; gap: 1rem; }

.footer-social a {
  color: var(--ink-dim);
  font-size: 1.1rem;
}

.footer-social a:hover { color: var(--brand-purple-bright); }

/* ── Scroll top ───────────────────────────────────────────────────────────── */

.scroll-top {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 999;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-purple-fill);
  color: #ffffff;
  font-size: 1.4rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.scroll-top.visible { opacity: 1; visibility: visible; }

.scroll-top:hover { background: var(--brand-purple-hover); color: #ffffff; }

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .studio-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 991px) {
  /* Mobile browsers can't composite fixed backgrounds smoothly — let them scroll. */
  .panel { background-attachment: scroll; }

  .site-nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 1.6rem;
    background: rgba(7, 5, 10, 0.98);
    transform: translateY(-100%);
    transition: transform 0.35s ease;
  }

  .site-nav.open { transform: translateY(0); }

  .site-nav a { font-size: 1.1rem; }

  .nav-toggle { display: block; z-index: 1001; }
}

@media (max-width: 700px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1rem; }
  .contact-strip { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .studio-grid { grid-template-columns: 1fr; }
  .panel-inner.align-right { text-align: left; }
  .panel-inner.align-right .gradient-rule { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue { animation: none; }
  .studio-card img { transition: none; }
  :root { scroll-behavior: auto; }
}
