/*
Theme Name: Monivan Digital
Theme URI: https://monivandigital.com
Author: Monivan Digital Marketing Solutions
Author URI: https://monivandigital.com
Version: 3.0
Description: Luxury cinematic theme — Patek-inspired design language
*/

/* ═══════════════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════════════ */
:root {
  /* Palette */
  --ink:        #0a0a0a;
  --ink-soft:   #111111;
  --ink-mid:    #1a1a1a;
  --ash:        #4a4a4a;
  --smoke:      #888888;
  --bone:       #f0ede8;
  --cream:      #faf8f5;
  --white:      #ffffff;
  --magenta:    #CC1878;
  --magenta-dim: rgba(204,24,120,0.12);

  /* Typography */
  --font-serif:   'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans:    'Montserrat', system-ui, sans-serif;
  --font-body:    'DM Sans', 'Montserrat', system-ui, sans-serif;

  /* Sizing */
  --max-w:      1400px;
  --nav-h:      88px;

  /* Easing */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
}

/* ═══════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; background: none; border: none; font: inherit; }

/* ═══════════════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════════════ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 5rem);
}

.container--narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 5rem);
}

/* ═══════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: var(--nav-h);
  transition: background 0.4s var(--ease-out), backdrop-filter 0.4s;
}

.site-header.scrolled {
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(240,237,232,0.06);
}

.header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(1.5rem, 4vw, 4rem);
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 34px;
  padding: 6px 0;
  justify-self: start;
  transition: opacity 0.3s;
}
.hamburger:hover { opacity: 0.7; }

.hamburger-line {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--bone);
  transition: transform 0.4s var(--ease-out), opacity 0.3s;
  transform-origin: center;
}

.hamburger[aria-expanded="true"] .hamburger-line:first-child {
  transform: translateY(3.5px) rotate(45deg);
}
.hamburger[aria-expanded="true"] .hamburger-line:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* Wordmark */
.header-wordmark {
  font-family: var(--font-sans);
  font-size: clamp(0.65rem, 1.4vw, 0.875rem);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--white);
  justify-self: center;
  white-space: nowrap;
}

.wordmark-accent { color: var(--magenta); }

/* Header right */
.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  justify-self: end;
}

.header-cta {
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone);
  border: 1px solid rgba(240,237,232,0.3);
  border-radius: 100px;
  padding: 0.6rem 1.5rem;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.header-cta:hover {
  border-color: var(--magenta);
  color: var(--white);
  background: var(--magenta);
}

/* ═══════════════════════════════════════════════════
   NAV OVERLAY
═══════════════════════════════════════════════════ */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 950;
  background: var(--ink-soft);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--nav-h) clamp(2rem, 8vw, 8rem) 4rem;
  transform: translateX(-100%);
  transition: transform 0.65s var(--ease-out);
  overflow-y: auto;
}

.nav-overlay:not([hidden]) {
  transform: translateX(0);
}
.nav-overlay[hidden] {
  display: flex;
  pointer-events: none;
}
.nav-overlay:not([hidden]) {
  pointer-events: auto;
}

.nav-overlay-close {
  position: absolute;
  top: calc(var(--nav-h) / 2);
  right: clamp(1.5rem, 4vw, 4rem);
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-overlay-close span {
  position: absolute;
  display: block;
  width: 26px;
  height: 1px;
  background: var(--bone);
}
.nav-overlay-close span:first-child { transform: rotate(45deg); }
.nav-overlay-close span:last-child  { transform: rotate(-45deg); }

.overlay-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.overlay-nav-list li a {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 300;
  line-height: 1.05;
  color: rgba(240,237,232,0.7);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(240,237,232,0.07);
  transition: color 0.3s, padding-left 0.35s var(--ease-out);
}
.overlay-nav-list li:first-child a { border-top: 1px solid rgba(240,237,232,0.07); }
.overlay-nav-list li a:hover {
  color: var(--white);
  padding-left: 1.25rem;
}

.nav-num {
  font-family: var(--font-sans);
  font-size: 0.5625rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--smoke);
  min-width: 2ch;
  flex-shrink: 0;
}

.overlay-nav-footer {
  margin-top: 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.overlay-cta {
  display: inline-flex;
  align-self: flex-start;
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  border: 1px solid var(--magenta);
  border-radius: 100px;
  padding: 0.9rem 2.5rem;
  background: var(--magenta);
  transition: background 0.3s, color 0.3s;
}
.overlay-cta:hover { background: transparent; color: var(--magenta); }

.overlay-social {
  display: flex;
  gap: 2.5rem;
}
.overlay-social a {
  font-family: var(--font-sans);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--smoke);
  transition: color 0.3s;
}
.overlay-social a:hover { color: var(--bone); }

/* Backdrop */
.nav-overlay-backdrop {
  position: fixed;
  inset: 0;
  z-index: 940;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.5s;
}
.nav-overlay-backdrop:not([hidden]) {
  opacity: 1;
}
.nav-overlay-backdrop[hidden] {
  display: block;
  pointer-events: none;
}
.nav-overlay-backdrop:not([hidden]) {
  pointer-events: auto;
}

/* ═══════════════════════════════════════════════════
   HERO — FULL SCREEN VIDEO
═══════════════════════════════════════════════════ */
.hero-video-section {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-video-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(10,10,10,0.7) 0%,
    rgba(10,10,10,0.25) 45%,
    rgba(10,10,10,0.85) 100%
  );
}

.hero-video-fallback {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a0510 35%, #330a1f 65%, #0a0a0a 100%);
  background-size: 400% 400%;
  animation: gradientShift 14s ease infinite;
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-content-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 clamp(1.5rem, 5vw, 5rem) clamp(4rem, 8vh, 8rem);
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s var(--ease-out) 0.3s forwards;
}
.hero-eyebrow-line {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--magenta);
  flex-shrink: 0;
}
.hero-eyebrow span {
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(240,237,232,0.65);
}

.hero-headline {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(3.5rem, 9.5vw, 9.5rem);
  line-height: 0.92;
  letter-spacing: -0.015em;
  color: var(--white);
  max-width: 960px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s var(--ease-out) 0.5s forwards;
}
.hero-headline em {
  font-style: italic;
  color: var(--magenta);
}

/* Rotating headline text */
.rotating-em {
  display: inline-block;
  color: var(--magenta);
  font-style: italic;
  position: relative;
  overflow: hidden;
  vertical-align: bottom;
  /* min-width prevents layout collapse during transition */
  min-width: 4ch;
}

/* City rotator — wider to fit "and beyond." */
.rotating-em--city {
  min-width: 8ch;
}

.rotating-phrase {
  display: inline-block;
  will-change: transform, opacity;
}

.rotating-phrase.exit {
  animation: phraseExit 0.45s var(--ease-in-out) forwards;
}

.rotating-phrase.enter {
  animation: phraseEnter 0.55s var(--ease-out) forwards;
}

@keyframes phraseExit {
  0%   { opacity: 1;   transform: translateY(0); }
  100% { opacity: 0;   transform: translateY(-22px); }
}

@keyframes phraseEnter {
  0%   { opacity: 0;   transform: translateY(22px); }
  100% { opacity: 1;   transform: translateY(0); }
}

.hero-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 3.5rem;
  gap: 2rem;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s var(--ease-out) 0.85s forwards;
}

.hero-descriptor {
  max-width: 380px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(240,237,232,0.6);
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.25rem;
}

.hero-scroll-hint {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(240,237,232,0.35);
}
.scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--magenta), transparent);
  animation: scrollPulse 2.5s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* ═══════════════════════════════════════════════════
   STAT RIBBON
═══════════════════════════════════════════════════ */
.stat-ribbon {
  background: var(--ink-soft);
  border-top: 1px solid rgba(240,237,232,0.05);
  border-bottom: 1px solid rgba(240,237,232,0.05);
}

.stat-ribbon-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  padding: 3rem clamp(1.5rem, 4vw, 3.5rem);
  text-align: center;
  border-right: 1px solid rgba(240,237,232,0.05);
}
.stat-item:last-child { border-right: none; }

.stat-num {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-label {
  font-family: var(--font-sans);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--smoke);
}

/* ═══════════════════════════════════════════════════
   SECTION SHARED
═══════════════════════════════════════════════════ */
.section-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}
.section-label-line {
  display: block;
  width: 32px;
  height: 1px;
  background: var(--magenta);
  flex-shrink: 0;
}
.section-label span {
  font-family: var(--font-sans);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--smoke);
}

/* ═══════════════════════════════════════════════════
   MANIFESTO / INTRO SECTION
═══════════════════════════════════════════════════ */
.manifesto-section {
  padding: clamp(7rem, 14vw, 14rem) 0;
  background: var(--ink);
}

.manifesto-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 8rem;
  align-items: start;
}

.manifesto-left {
  position: sticky;
  top: calc(var(--nav-h) + 3rem);
}

.manifesto-kicker {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--bone);
  margin-bottom: 2rem;
}

.manifesto-body {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-weight: 300;
  line-height: 1.55;
  color: rgba(240,237,232,0.65);
  margin-bottom: 2.5rem;
}
.manifesto-body strong {
  color: var(--white);
  font-weight: 400;
}

.manifesto-detail {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.85;
  color: rgba(240,237,232,0.45);
  margin-bottom: 3rem;
  max-width: 560px;
}

/* ═══════════════════════════════════════════════════
   CINEMATIC VIDEO SECTION
═══════════════════════════════════════════════════ */
.cinematic-section {
  position: relative;
  height: 85svh;
  min-height: 500px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.cinematic-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cinematic-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cinematic-video-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,0.6);
}

.cinematic-gradient-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: 400% 400%;
  animation: gradientShift 18s ease infinite;
}

.cinematic-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 clamp(1.5rem, 5vw, 5rem);
}

/* ═══════════════════════════════════════════════════
   SERVICES SECTION
═══════════════════════════════════════════════════ */
.services-section {
  padding: clamp(6rem, 12vw, 12rem) 0;
  background: var(--ink-soft);
}

.services-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: clamp(4rem, 8vw, 7rem);
}

.services-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--bone);
}

.services-intro-text {
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(240,237,232,0.5);
  max-width: 380px;
  justify-self: end;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(240,237,232,0.05);
}

.service-card {
  background: var(--ink-soft);
  padding: 3rem 2.5rem;
  transition: background 0.35s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--magenta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.service-card:hover { background: var(--ink-mid); }
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  display: block;
  margin-bottom: 1.75rem;
  line-height: 1;
}

.service-number {
  font-family: var(--font-sans);
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--magenta);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}
.service-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--bone);
  margin-bottom: 0.875rem;
}
.service-desc {
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(240,237,232,0.45);
}

/* Linked service card variant */
a.service-card--linked {
  display: block;
  text-decoration: none;
  color: inherit;
}
a.service-card--linked .service-title,
a.service-card--linked .service-desc { color: inherit; }

.service-card-cta {
  display: inline-block;
  margin-top: 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--magenta);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.service-card:hover .service-card-cta {
  opacity: 1;
  transform: translateX(0);
}

/* ═══════════════════════════════════════════════════
   SPLIT SECTION
═══════════════════════════════════════════════════ */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 65svh;
}

.split-media {
  position: relative;
  overflow: hidden;
  min-height: 480px;
}
.split-media video,
.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.split-media .gradient-fill {
  width: 100%;
  height: 100%;
  min-height: 480px;
}

.split-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(4rem, 8vw, 8rem) clamp(2.5rem, 5vw, 6rem);
  background: var(--ink);
}

.split-section.reversed .split-media { order: 2; }
.split-section.reversed .split-content { order: 1; }

.split-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 1.5rem;
}
.split-heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--bone);
  margin-bottom: 1.5rem;
}
.split-body {
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(240,237,232,0.5);
  margin-bottom: 2.5rem;
  max-width: 460px;
}

/* ═══════════════════════════════════════════════════
   RESULTS SECTION
═══════════════════════════════════════════════════ */
.results-section {
  padding: clamp(6rem, 12vw, 12rem) 0;
  background: var(--ink);
  overflow: hidden;
}

.results-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--bone);
  max-width: 640px;
  margin-bottom: clamp(4rem, 8vw, 7rem);
}

.results-strip {
  display: flex;
  gap: 2px;
  background: rgba(240,237,232,0.04);
  overflow-x: auto;
  scrollbar-width: none;
}
.results-strip::-webkit-scrollbar { display: none; }

.result-card {
  flex: 1 1 0;
  min-width: 240px;
  background: var(--ink);
  padding: 3rem 2.5rem;
  border-right: 1px solid rgba(240,237,232,0.04);
  position: relative;
  transition: background 0.3s;
}
.result-card:last-child { border-right: none; }
.result-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--magenta), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.result-card:hover { background: var(--ink-soft); }
.result-card:hover::after { transform: scaleX(1); }

.result-metric {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.375rem;
}
.result-metric-label {
  font-family: var(--font-sans);
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 1.25rem;
}
.result-desc {
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(240,237,232,0.45);
}

/* ═══════════════════════════════════════════════════
   QUOTE / TESTIMONIAL
═══════════════════════════════════════════════════ */
.quote-section {
  position: relative;
  padding: clamp(6rem, 12vw, 12rem) 0;
  background: var(--ink-soft);
  overflow: hidden;
}
.quote-section::before {
  content: '\201C';
  position: absolute;
  top: -6rem;
  left: clamp(1rem, 4vw, 4rem);
  font-family: var(--font-serif);
  font-size: 28rem;
  font-weight: 300;
  color: rgba(204,24,120,0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.quote-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
}
.quote-text {
  font-family: var(--font-serif);
  font-size: clamp(1.625rem, 3.2vw, 2.875rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.42;
  color: var(--bone);
  margin-bottom: 2rem;
}
.quote-attribution {
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--smoke);
}

/* ═══════════════════════════════════════════════════
   AI OPTIMIZATION SECTION
═══════════════════════════════════════════════════ */
.ai-platforms {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}
.ai-platform-badge {
  font-family: var(--font-sans);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(240,237,232,0.55);
  border: 1px solid rgba(240,237,232,0.12);
  border-radius: 100px;
  padding: 0.5rem 1.25rem;
  transition: border-color 0.3s, color 0.3s;
}
.ai-platform-badge:hover { border-color: var(--magenta); color: var(--bone); }

/* ═══════════════════════════════════════════════════
   CTA SECTION
═══════════════════════════════════════════════════ */
.cta-section {
  position: relative;
  padding: clamp(8rem, 15vw, 15rem) 0;
  background: var(--ink);
  text-align: center;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: -40%;
  background: radial-gradient(ellipse at center, rgba(204,24,120,0.07) 0%, transparent 65%);
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; }
.cta-kicker {
  font-family: var(--font-sans);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 2rem;
}
.cta-heading {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7vw, 7rem);
  font-weight: 300;
  line-height: 1.0;
  color: var(--white);
  max-width: 820px;
  margin: 0 auto 3.5rem;
}
.cta-heading em { font-style: italic; color: var(--magenta); }

/* ═══════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 100px;
  padding: 1rem 2.5rem;
  cursor: pointer;
  transition: all 0.35s var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--magenta);
  color: var(--white);
  border-color: var(--magenta);
}
.btn-primary:hover {
  background: transparent;
  color: var(--magenta);
}
.btn-outline {
  background: transparent;
  color: var(--bone);
  border-color: rgba(240,237,232,0.3);
}
.btn-outline:hover {
  border-color: var(--bone);
  color: var(--white);
}

/* ═══════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════ */
.site-footer {
  background: var(--ink-soft);
  border-top: 1px solid rgba(240,237,232,0.05);
  padding: clamp(5rem, 10vw, 10rem) 0 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 5rem;
}

.footer-wordmark {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--white);
  display: block;
  margin-bottom: 1.5rem;
}
.footer-wordmark-accent { color: var(--magenta); }

.footer-tagline {
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(240,237,232,0.42);
  margin-bottom: 2rem;
  max-width: 300px;
}

.footer-nap {
  font-size: 0.8125rem;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(240,237,232,0.35);
}
.footer-nap a { transition: color 0.3s; }
.footer-nap a:hover { color: var(--magenta); }

.footer-col-heading {
  font-family: var(--font-sans);
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(240,237,232,0.3);
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.footer-links a {
  font-size: 0.875rem;
  font-weight: 300;
  color: rgba(240,237,232,0.5);
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--bone); }

.footer-bottom {
  border-top: 1px solid rgba(240,237,232,0.05);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-copy {
  font-size: 0.6875rem;
  font-weight: 300;
  color: rgba(240,237,232,0.25);
}

.footer-social {
  display: flex;
  gap: 1.75rem;
}
.footer-social a {
  font-family: var(--font-sans);
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(240,237,232,0.3);
  transition: color 0.3s;
}
.footer-social a:hover { color: var(--bone); }

/* ═══════════════════════════════════════════════════
   SCROLL REVEAL
═══════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

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

/* ═══════════════════════════════════════════════════
   UTILS
═══════════════════════════════════════════════════ */
.section-divider {
  width: 100%;
  height: 1px;
  background: rgba(240,237,232,0.05);
  border: none;
  display: block;
}

/* ═══════════════════════════════════════════════════
   CTA BUTTON GROUP
═══════════════════════════════════════════════════ */
.cta-btn-group {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════
   SERVICES PAGE — HERO
═══════════════════════════════════════════════════ */
.svc-hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  padding-top: var(--nav-h);
  padding-bottom: clamp(5rem, 10vw, 9rem);
  overflow: hidden;
}

.svc-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.svc-hero-fallback {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #020508 0%, #06101e 35%, #0c1a30 65%, #020508 100%);
  background-size: 400% 400%;
  animation: gradientShift 20s ease infinite;
}
.svc-hero-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.svc-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2,5,8,0.85) 0%, rgba(2,5,8,0.2) 60%, transparent 100%);
  z-index: 1;
}

.svc-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: calc(var(--nav-h) + 2rem) clamp(1.5rem, 5vw, 5rem) 0;
}

.svc-hero-headline {
  font-family: var(--font-serif);
  /* Constrain by both viewport width AND height so multi-line headlines never clip the nav */
  font-size: clamp(2.75rem, min(7vw, 10vh), 7rem);
  font-weight: 300;
  line-height: 1.0;
  color: var(--white);
  margin-bottom: 1.5rem;
  max-width: 900px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s var(--ease-out) 0.3s forwards;
}
.svc-hero-headline em {
  font-style: italic;
  color: var(--magenta);
}

.svc-hero-sub {
  font-family: var(--font-body);
  font-size: clamp(0.9375rem, 1.5vw, 1.125rem);
  font-weight: 300;
  line-height: 1.75;
  color: rgba(240,237,232,0.55);
  max-width: 480px;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s var(--ease-out) 0.55s forwards;
}

.svc-hero-scroll {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(240,237,232,0.35);
}

/* ═══════════════════════════════════════════════════
   SERVICES PAGE — MANIFESTO
═══════════════════════════════════════════════════ */
.svc-manifesto {
  padding: clamp(7rem, 14vw, 14rem) 0;
  background: var(--ink);
}

.svc-manifesto-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 8rem;
  align-items: start;
}

.svc-manifesto-left {
  position: sticky;
  top: calc(var(--nav-h) + 3rem);
}

.svc-manifesto-kicker {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.75rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--bone);
}
.svc-manifesto-kicker em {
  font-style: italic;
  color: var(--magenta);
}

.svc-manifesto-body {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-weight: 300;
  line-height: 1.55;
  color: rgba(240,237,232,0.65);
  margin-bottom: 2.5rem;
}
.svc-manifesto-body strong {
  color: var(--white);
  font-weight: 400;
}

.svc-manifesto-detail {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.85;
  color: rgba(240,237,232,0.45);
  margin-bottom: 3rem;
  max-width: 560px;
}

.svc-manifesto-stats {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(240,237,232,0.07);
}

.svc-mini-stat { display: flex; flex-direction: column; gap: 0.4rem; }
.svc-mini-num {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1;
}
.svc-mini-label {
  font-family: var(--font-sans);
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--smoke);
}

/* ═══════════════════════════════════════════════════
   SERVICES PAGE — SPLIT SECTIONS
═══════════════════════════════════════════════════ */
.svc-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 75svh;
}

.svc-split--reversed .svc-split-media { order: 2; }
.svc-split--reversed .svc-split-content { order: 1; }

.svc-split-media {
  position: relative;
  overflow: hidden;
  min-height: 520px;
}

.svc-split-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: 400% 400%;
  animation: gradientShift 20s ease infinite;
}

.svc-split-animated-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(
    ellipse 70% 60% at 55% 45%,
    rgba(var(--glow-color), 0.28) 0%,
    transparent 70%
  );
  animation: glowPulse 6s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.06); }
}

.svc-split-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}

.svc-split-media-label {
  position: absolute;
  bottom: 2.5rem;
  left: 2.5rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.svc-split-media-label span:first-child {
  font-family: var(--font-sans);
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--magenta);
}
.svc-split-media-label span:last-child {
  font-family: var(--font-sans);
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(240,237,232,0.4);
}

.svc-split-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(4rem, 8vw, 8rem) clamp(2.5rem, 5vw, 6rem);
  background: var(--ink-soft);
}

.svc-split-heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--bone);
  margin-bottom: 1.5rem;
}

.svc-split-body {
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(240,237,232,0.5);
  margin-bottom: 2rem;
  max-width: 460px;
}

.svc-feature-list {
  list-style: none;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.svc-feature-list li {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 300;
  color: rgba(240,237,232,0.55);
  padding-left: 1.5rem;
  position: relative;
}
.svc-feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 12px;
  height: 1px;
  background: var(--magenta);
}

/* ═══════════════════════════════════════════════════
   SERVICES PAGE — CINEMATIC SECTIONS
═══════════════════════════════════════════════════ */
.svc-cinematic {
  position: relative;
  min-height: 80svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.svc-cinematic-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.svc-cinematic-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(8,8,8,0.55);
  z-index: 1;
}
.svc-cinematic-bg .cinematic-gradient-bg {
  position: absolute;
  inset: 0;
  background-size: 400% 400%;
  animation: gradientShift 18s ease infinite;
}
.svc-cinematic-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.svc-cinematic-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 10rem) clamp(1.5rem, 5vw, 5rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.svc-cinematic-inner--right {
  direction: rtl;
}
.svc-cinematic-inner--right > * { direction: ltr; }

.svc-cinematic-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.svc-cinematic-heading em {
  font-style: italic;
  color: var(--magenta);
}

.svc-cinematic-body {
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(240,237,232,0.6);
  max-width: 480px;
  margin-bottom: 2.5rem;
}

.svc-cinematic-badges {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  align-self: center;
}
.svc-cinematic-badges .ai-platform-badge {
  display: block;
  width: fit-content;
}

/* Container for stacked feature rows in cinematic sections */
.svc-cine-feature-stack {
  display: flex;
  flex-direction: column;
  align-self: center;
}

.svc-cine-feature {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(240,237,232,0.06);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 300;
  color: rgba(240,237,232,0.65);
}
.svc-cine-feature:first-child { border-top: 1px solid rgba(240,237,232,0.06); }

.svc-cine-feature-num {
  font-family: var(--font-sans);
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--magenta);
  min-width: 2ch;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════
   SERVICES OVERVIEW SECTION
═══════════════════════════════════════════════════ */
.svc-overview {
  padding: clamp(7rem, 14vw, 14rem) 0;
  background: var(--ink);
}

.svc-overview-header {
  margin-bottom: clamp(4rem, 8vw, 7rem);
}

.svc-overview-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.75rem, 5.5vw, 5rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--bone);
  max-width: 640px;
  margin-top: 1.5rem;
}
.svc-overview-heading em {
  font-style: italic;
  color: var(--magenta);
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE — SERVICES PAGE
═══════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .svc-manifesto-inner {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  .svc-manifesto-left { position: static; }

  .svc-cinematic-inner {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  .svc-cinematic-inner--right { direction: ltr; }
}

@media (max-width: 900px) {
  .svc-split {
    grid-template-columns: 1fr;
  }
  .svc-split--reversed .svc-split-media { order: 0; }
  .svc-split--reversed .svc-split-content { order: 0; }
}

@media (max-width: 768px) {
  .svc-manifesto-stats { gap: 2rem; }
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .manifesto-inner {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  .manifesto-left { position: static; }

  .services-header { grid-template-columns: 1fr; gap: 2rem; }
  .services-intro-text { justify-self: start; max-width: 540px; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }

  .split-section { grid-template-columns: 1fr; }
  .split-section.reversed .split-media { order: 0; }
  .split-section.reversed .split-content { order: 0; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
  :root { --nav-h: 70px; }

  .hero-footer { flex-direction: column; align-items: flex-start; }
  .hero-cta-group { align-items: flex-start; }

  .stat-ribbon-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(240,237,232,0.05); }
  .stat-item:nth-child(odd) { border-right: 1px solid rgba(240,237,232,0.05); }

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

  .results-strip { gap: 1px; overflow-x: auto; flex-wrap: nowrap; }
  .result-card { flex: 0 0 260px; }

  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .overlay-nav-list li a { font-size: clamp(2rem, 9vw, 3.5rem); }
}

@media (max-width: 480px) {
  .stat-ribbon-inner { grid-template-columns: 1fr 1fr; }
  .stat-item { padding: 2rem 1.25rem; }
}
