/* Rippla Studios — corporate landing */

:root {
  --bg: #030306;
  --bg-elevated: #0c0c14;
  --bg-card: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(195, 73, 126, 0.45);
  --text: #f4f4f8;
  --text-muted: #9494a8;
  --purple: #C3497E;
  --purple-deep: #983268;
  --purple-glow: rgba(195, 73, 126, 0.35);
  --magenta: #d946ef;
  --magenta-glow: rgba(217, 70, 239, 0.22);
  --cyan: #22d3ee;
  --deck-accent: linear-gradient(120deg, var(--purple) 0%, var(--magenta) 55%, var(--cyan) 100%);
  --font-display: 'Syne', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --radius: 14px;
  --radius-lg: 22px;
  --header-h: 72px;
  --section-pad-y: 6rem;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --text-hero: clamp(2.25rem, 5vw, 3.75rem);
  --text-section: clamp(1.5rem, 2.4vw, 2rem);
  --text-card: clamp(1.1rem, 1.8vw, 1.35rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Film grain overlay */
.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.4s var(--ease-out), border-color 0.4s;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(3, 3, 6, 0.82);
  backdrop-filter: blur(16px);
  border-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
}

.logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo--footer .logo-img {
  width: 32px;
  height: 32px;
}

.logo-text {
  font-family: 'Roboto', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  letter-spacing: -0.02em;
  white-space: nowrap;
  line-height: 1;
}

.logo-text em {
  font-style: normal;
  font-weight: 600;
  color: var(--text-muted);
}

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

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.nav-cta {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(195, 73, 126, 0.15);
  color: var(--purple) !important;
  border: 1px solid rgba(195, 73, 126, 0.3);
}

.nav-cta:hover {
  background: rgba(195, 73, 126, 0.25);
  color: #e7a3c1 !important;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}

.menu-toggle[aria-expanded='true'] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle[aria-expanded='true'] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.25rem 1.5rem;
  background: rgba(3, 3, 6, 0.95);
  border-bottom: 1px solid var(--border);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  padding: 0.75rem 0;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.mobile-nav a:last-child {
  border-bottom: none;
  color: var(--purple);
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
  .menu-toggle {
    display: none;
  }
}

/* Hero — full viewport width */
.hero {
  position: relative;
  width: 100%;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: float 14s ease-in-out infinite;
}

.orb-1 {
  width: 55vw;
  height: 55vw;
  max-width: 520px;
  max-height: 520px;
  top: -10%;
  right: -5%;
  background: radial-gradient(circle, var(--purple-glow), transparent 70%);
}

.orb-2 {
  width: 40vw;
  height: 40vw;
  max-width: 380px;
  max-height: 380px;
  bottom: 10%;
  left: -10%;
  background: radial-gradient(circle, rgba(217, 70, 239, 0.2), transparent 70%);
  animation-delay: -4s;
}

.orb-3 {
  width: 25vw;
  height: 25vw;
  max-width: 200px;
  max-height: 200px;
  top: 40%;
  left: 35%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.12), transparent 70%);
  animation-delay: -8s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(3%, -4%) scale(1.05);
  }
}

.hero-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 120% 80% at 50% 35%, black 30%, transparent 75%);
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + 2.5rem);
  padding-bottom: 5rem;
}

.hero-intro {
  width: 100%;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--purple);
  margin: 0 0 1.25rem;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-hero);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 auto 1.75rem;
  text-align: center;
}

.hero-title .line {
  display: block;
}

.hero-title .accent {
  background: linear-gradient(120deg, #fff 20%, var(--purple) 55%, var(--magenta) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-eyebrow {
  text-align: center;
}

.brand-positioning {
  max-width: 36rem;
  margin: 0 auto 2rem;
  text-align: center;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.55;
  color: var(--text-muted);
  font-weight: 500;
}

/* Strategy deck — participation band */
.participation-band {
  padding: 4rem 0;
}

.participation-band-inner {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
  padding: 3rem 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(195, 73, 126, 0.22);
  background: linear-gradient(160deg, rgba(109, 40, 217, 0.14), rgba(3, 3, 6, 0.6));
  box-shadow: 0 0 80px var(--magenta-glow);
}

.participation-heading {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.participation-body {
  margin: 0 0 1.75rem;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.participation-shift {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.participation-from {
  color: var(--text-muted);
  text-decoration: line-through;
  text-decoration-color: rgba(148, 148, 168, 0.5);
}

.participation-arrow {
  color: var(--purple);
}

.participation-to {
  background: var(--deck-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-eyebrow {
  text-align: center;
}

.section-head--center .section-eyebrow {
  margin-bottom: 0.75rem;
}

.section-intro {
  max-width: 34rem;
  margin: 0.75rem auto 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.section-head:not(.section-head--center) .section-intro {
  margin-left: 0;
  margin-right: 0;
}

.hero-story {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.story-block {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.035),
    rgba(255, 255, 255, 0.01)
  );
  overflow: hidden;
  transition:
    border-color 0.35s var(--ease-out),
    transform 0.35s var(--ease-out),
    box-shadow 0.35s;
}

.story-block:hover {
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.story-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.story-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--bg-elevated);
  overflow: hidden;
}

.story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.story-copy {
  position: relative;
  padding: 1.75rem 1.5rem 1.85rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.story-block p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 42rem;
}

/* Lead panel — first box, brighter, larger */
.story-block--lead {
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.015)
  );
}

.story-block--lead .story-lead,
.story-block--lead p:not(.story-closer) {
  color: var(--text);
  font-weight: 600;
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  letter-spacing: -0.005em;
}

/* Mission panel — last box, purple gradient */
.story-block--mission {
  border-color: rgba(195, 73, 126, 0.35);
  background: linear-gradient(
    145deg,
    rgba(109, 40, 217, 0.16),
    rgba(3, 3, 6, 0.4) 60%,
    rgba(217, 70, 239, 0.08)
  );
}

.story-block--mission::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--purple), var(--magenta));
  opacity: 0.85;
}

.story-block--mission .story-copy p + p {
  margin-top: 0;
}

.story-closer {
  color: var(--text) !important;
  font-weight: 600 !important;
  font-size: clamp(1.05rem, 1.5vw, 1.18rem) !important;
  line-height: 1.5 !important;
  letter-spacing: -0.005em;
}

/* No-image rows: copy fills the whole panel width */
.story-row--no-image {
  grid-template-columns: 1fr;
}

.story-row--no-image .story-copy {
  padding: 2rem 1.5rem 2.1rem;
}

@media (min-width: 560px) {
  .story-copy {
    padding: 2.25rem 2.25rem 2.4rem;
  }
  .story-row--no-image .story-copy {
    padding: 2.5rem 2.5rem;
  }
}

@media (min-width: 720px) {
  .hero-story {
    gap: 1.75rem;
  }

  .story-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    align-items: center;
  }

  .story-row--image-left .story-media {
    order: 1;
  }

  .story-row--image-left .story-copy {
    order: 2;
  }

  .story-row--image-right {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  }

  .story-row--image-right .story-media {
    order: 2;
  }

  .story-row--image-right .story-copy {
    order: 1;
  }

  .story-row--no-image {
    grid-template-columns: 1fr;
  }

  .story-row--no-image .story-copy {
    padding: 2.75rem 3rem;
  }

  .story-row--no-image .story-copy p {
    max-width: 56rem;
  }

  /* Fixed image height on desktop; copy centres against it. */
  .story-media {
    aspect-ratio: auto;
    height: 250px;
  }
}

@media (min-width: 980px) {
  .story-row--no-image .story-copy {
    padding: 3rem 3.5rem;
  }

  .story-media {
    height: 270px;
  }
}


/* Anchor scroll offset for fixed header */
#past-projects,
#trailer,
#strategy,
#veil-stats,
#team,
#updates,
#moments,
#why,
#belonging,
#shift {
  scroll-margin-top: 5.5rem;
}

/* Standalone trailer + slideshow sections (also used via shortcode on sub-pages) */
.rippla-trailer [data-rippla-trailer],
.rippla-slideshow .slideshow {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
}

.rippla-slideshow.section--past-projects {
  padding-top: var(--section-pad-y);
  padding-bottom: 0;
}

/* Homepage: header scrolls away; only the carousel locks to the viewport */
.slideshow-section-intro {
  padding-bottom: 1.5rem;
}

.slideshow-section-intro .section-head {
  margin-bottom: 0;
}

/* Nav-aligned page title — only inside .section-head (see duplicate guard below) */
.section-page-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
}

.section-head--center .section-page-title {
  text-align: center;
}

.section-head:not(.section-head--center) .section-page-title {
  text-align: left;
}

.section-head--center .section-eyebrow {
  margin-top: 0;
}

/* Hide stray duplicate section titles outside the shared header stack */
.section > .section-page-title,
.section > .section-chapter,
.section .container > .section-page-title,
.section .container > .section-chapter {
  display: none !important;
}

/* Sub-pages (Audience, Strategy, …) — section shortcode supplies the title */
.rippla-section-page {
  padding: 0;
}

body.rippla-section-page > .section,
body.rippla-section-page > .rippla-slideshow.section {
  padding-top: var(--section-pad-y);
}

.rippla-section-page > .container > article > h1,
.rippla-section-page .page-title,
.rippla-section-page .entry-title {
  display: none !important;
}

.rippla-page .page-head {
  max-width: 40rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.rippla-page .page-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.section-head--in-pin {
  flex-shrink: 0;
  z-index: 6;
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.35rem 1.5rem 0.35rem;
  text-align: center;
}

.section-head--in-pin .section-page-title {
  margin-bottom: 0.45rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.section-head--in-pin .section-heading {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin-bottom: 0.35rem;
}

.section-head--in-pin .section-intro {
  margin-top: 0.35rem;
  font-size: 0.88rem;
  line-height: 1.5;
}

/* Slideshow pin — fullscreen lock on homepage only (see body.rippla-slideshow-pin-enabled) */
.slideshow-pin {
  width: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

body.rippla-slideshow-pin-enabled.rippla-slideshow-display-full .rippla-slideshow.section--past-projects.slideshow-layout--full .slideshow-pin {
  position: sticky;
  top: var(--header-h);
  z-index: 5;
  width: 100vw;
  max-width: 100vw;
  height: calc(100svh - var(--header-h));
  height: calc(100dvh - var(--header-h));
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

@media (prefers-reduced-motion: no-preference) {
  html:has(body.rippla-slideshow-pin-enabled) {
    scroll-snap-type: y mandatory;
    scroll-padding-top: var(--header-h);
  }

  body.rippla-slideshow-pin-enabled.rippla-slideshow-display-full .rippla-slideshow.section--past-projects.slideshow-layout--full {
    scroll-snap-align: none;
  }
}

.slideshow-bleed {
  width: 100%;
  max-width: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin: 0;
}

/* Full viewport layout — flex column fills sticky pin height */
.rippla-slideshow.section--past-projects.slideshow-layout--full .slideshow-bleed {
  flex: 1;
  min-height: 0;
}

.rippla-slideshow.section--past-projects.slideshow-layout--full .slideshow {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.rippla-slideshow.section--past-projects.slideshow-layout--full .slideshow-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.rippla-slideshow.section--past-projects.slideshow-layout--full .slideshow-viewport {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-top: none;
}

.rippla-slideshow.section--past-projects.slideshow-layout--full .slideshow-track {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  align-items: stretch;
}

.rippla-slideshow.section--past-projects.slideshow-layout--full .slide {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
}

.rippla-slideshow.section--past-projects.slideshow-layout--full .slide-visual {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: unset;
  max-height: none;
  background: #050508;
}

.rippla-slideshow.section--past-projects.slideshow-layout--full .slide-photo {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

/* Shared slide chrome (all layouts) */
.rippla-slideshow.section--past-projects .slide {
  position: relative;
  display: flex;
  flex-direction: column;
}

.rippla-slideshow.section--past-projects .slide-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: #050508;
}

.rippla-slideshow.section--past-projects .slide-photo {
  display: block;
  width: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
}

/* Contained layout — explicit stage height (avoids % height collapse) */
.rippla-slideshow.section--past-projects.slideshow-layout--contained {
  padding-bottom: var(--section-pad-y);
}

.rippla-slideshow.section--past-projects.slideshow-layout--contained .slideshow-pin {
  position: relative;
  width: min(var(--rippla-slideshow-width, 80%), var(--container, 72rem));
  max-width: 100%;
  height: auto;
  margin-inline: auto;
}

.rippla-slideshow.section--past-projects.slideshow-layout--contained .slideshow-bleed {
  display: flex;
  flex-direction: column;
  flex: none;
  width: 100%;
  height: var(--rippla-slideshow-max-height, min(70vh, 52rem));
  min-height: var(--rippla-slideshow-min-height, clamp(20rem, 42vh, 36rem));
  max-height: var(--rippla-slideshow-max-height, min(70vh, 52rem));
}

.rippla-slideshow.section--past-projects.slideshow-layout--contained .slideshow,
.rippla-slideshow.section--past-projects.slideshow-layout--contained .slideshow-stage {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.rippla-slideshow.section--past-projects.slideshow-layout--contained .slideshow-viewport {
  flex: 1 1 auto;
  min-height: 12rem;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.rippla-slideshow.section--past-projects.slideshow-layout--contained .slideshow-track {
  height: 100%;
  min-height: 0;
}

.rippla-slideshow.section--past-projects.slideshow-layout--contained .slide {
  height: 100%;
  min-height: 0;
}

.rippla-slideshow.section--past-projects.slideshow-layout--contained .slide-visual {
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
  aspect-ratio: unset;
}

.rippla-slideshow.section--past-projects.slideshow-layout--contained .slide-photo {
  height: 100%;
  max-height: 100%;
}

.rippla-slideshow.section--past-projects.slideshow-layout--contained .slideshow-footer {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: 0;
}

/* Auto layout — 16∶9 stage sized by aspect-ratio */
.rippla-slideshow.section--past-projects.slideshow-layout--auto {
  padding-bottom: var(--section-pad-y);
}

.rippla-slideshow.section--past-projects.slideshow-layout--auto .slideshow-pin {
  position: relative;
  width: min(100%, var(--container, 72rem));
  max-width: 100%;
  margin-inline: auto;
}

.rippla-slideshow.section--past-projects.slideshow-layout--auto .slideshow-bleed,
.rippla-slideshow.section--past-projects.slideshow-layout--auto .slideshow,
.rippla-slideshow.section--past-projects.slideshow-layout--auto .slideshow-stage,
.rippla-slideshow.section--past-projects.slideshow-layout--auto .slideshow-viewport,
.rippla-slideshow.section--past-projects.slideshow-layout--auto .slideshow-track {
  flex: none;
  height: auto;
  min-height: 0;
}

.rippla-slideshow.section--past-projects.slideshow-layout--auto .slideshow-viewport {
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.rippla-slideshow.section--past-projects.slideshow-layout--auto .slide {
  height: auto;
  min-height: 0;
}

.rippla-slideshow.section--past-projects.slideshow-layout--auto .slide-visual {
  position: relative;
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 0;
  flex: none;
}

.rippla-slideshow.section--past-projects.slideshow-layout--auto .slide-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.rippla-slideshow.section--past-projects .slide figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  flex-shrink: 0;
  margin: 0;
  background: linear-gradient(0deg, rgba(3, 3, 8, 0.92) 0%, rgba(3, 3, 8, 0.55) 55%, transparent 100%);
  border-top: none;
}

/* Sub-pages: no viewport lock */
body.rippla-section-page .rippla-slideshow.section--past-projects .slideshow-pin {
  position: relative;
  top: auto;
  height: auto;
  min-height: 0;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

body.rippla-section-page .rippla-slideshow.section--past-projects .slideshow-pin-spacer {
  display: none;
}

body.rippla-section-page .rippla-slideshow.slideshow-layout--full .slideshow-bleed {
  min-height: clamp(520px, 85vh, 980px);
}

body.rippla-section-page .rippla-slideshow.slideshow-layout--full .slideshow,
body.rippla-section-page .rippla-slideshow.slideshow-layout--full .slideshow-stage {
  min-height: inherit;
}

.rippla-slideshow.section--past-projects .slideshow-transport {
  flex-shrink: 0;
}

.rippla-slideshow.section--past-projects .slideshow-footer {
  flex-shrink: 0;
  max-width: var(--container, 72rem);
  margin-inline: auto;
  padding: 0.65rem 1.25rem 1rem;
}

body.rippla-slideshow-pin-enabled .slideshow-pin-spacer {
  height: 100vh;
  height: 100svh;
  pointer-events: none;
}

.slideshow-pin-spacer {
  display: none;
}

.rippla-slideshow.section--past-projects.is-pinned .slideshow-pin {
  box-shadow: 0 -1px 0 var(--border), 0 24px 80px rgba(0, 0, 0, 0.45);
}

@media (prefers-reduced-motion: reduce) {
  html:has(body.rippla-slideshow-pin-enabled) {
    scroll-snap-type: none;
  }

  body.rippla-slideshow-pin-enabled.rippla-slideshow-display-full .rippla-slideshow.section--past-projects.slideshow-layout--full .slideshow-pin {
    position: relative;
    height: auto;
    min-height: auto;
    scroll-snap-align: none;
    scroll-snap-stop: normal;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  body.rippla-slideshow-pin-enabled .slideshow-pin-spacer {
    display: none;
  }

  .rippla-slideshow.section--past-projects.slideshow-layout--full .slide-visual {
    min-height: 320px;
  }
}

.rippla-promo-pack .promo-pack {
  max-width: 32rem;
  margin-inline: auto;
}

/* Media hub — legacy wrapper (no tabs; stacks standalone sections) */
.media-hub {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
}

.media-panel[data-media-panel='promo'] .promo-pack {
  max-width: 32rem;
  margin-inline: auto;
}

.media-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  margin-bottom: 1rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.media-tab {
  flex: 1 1 auto;
  min-width: 5.5rem;
  padding: 0.55rem 1rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.media-tab:hover {
  color: var(--text);
}

.media-tab.is-active,
.media-tab[aria-selected='true'] {
  color: var(--text);
  background: rgba(195, 73, 126, 0.25);
  box-shadow: 0 0 0 1px rgba(195, 73, 126, 0.35);
}

.media-panel[hidden] {
  display: none !important;
}

.media-panel[data-media-panel='trailer'] [data-trailer-mount] {
  width: 100%;
}

/* Shared frame size — trailer player matches slideshow image area */
.media-player--embed,
.media-player--placeholder,
.media-player--video video,
.slide-visual {
  aspect-ratio: 16 / 9;
  min-height: min(52vw, 520px);
  width: 100%;
}

/* Past projects full layout: no global 16/9 cap on slide-visual */
.rippla-slideshow.section--past-projects.slideshow-layout--full .slide-visual {
  aspect-ratio: unset;
  min-height: 0;
}

.rippla-slideshow.section--past-projects.slideshow-layout--contained .slide-visual,
.rippla-slideshow.section--past-projects.slideshow-layout--auto .slide-visual {
  min-height: 0;
}

.media-player {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.media-player--embed {
  display: flex;
  flex-direction: column;
}

.media-player--embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.media-player--video video {
  display: block;
  background: #000;
}

.media-video-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
}

.media-ctrl {
  padding: 0.4rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.media-ctrl:hover {
  border-color: var(--border-hover);
  background: rgba(195, 73, 126, 0.15);
}

.media-player--placeholder {
  position: relative;
  background:
    linear-gradient(145deg, rgba(109, 40, 217, 0.2) 0%, rgba(3, 3, 6, 0.9) 55%),
    radial-gradient(ellipse 80% 60% at 70% 30%, rgba(195, 73, 126, 0.25), transparent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.video-play {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
  margin-bottom: 0.5rem;
  transition: background 0.25s, transform 0.25s var(--ease-out);
}

.media-player--placeholder:hover .video-play {
  background: rgba(195, 73, 126, 0.35);
  transform: scale(1.05);
}

/* Slideshow */
.slideshow {
  width: 100%;
}

.slideshow-viewport {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.slideshow-stage {
  width: 100%;
}

.slideshow-transport {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem 0;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.slideshow-transport .slideshow-btn {
  pointer-events: none;
  position: static;
  transform: none;
  flex-shrink: 0;
}

.slideshow-transport .slideshow-btn--prev,
.slideshow-transport .slideshow-btn--next {
  font-size: 1.65rem;
}

.slideshow-transport .slideshow-btn--play,
.slideshow-transport .slideshow-btn--pause {
  font-size: 1.1rem;
}

.slideshow-transport .slideshow-btn:hover {
  transform: scale(1.06);
}

.slideshow-stage:hover .slideshow-transport {
  opacity: 1;
  visibility: visible;
}

.slideshow-stage:hover .slideshow-transport .slideshow-btn {
  pointer-events: auto;
}

.slideshow-transport .slideshow-btn[hidden] {
  display: none !important;
}

.slideshow-track {
  display: flex;
  transition: transform 0.5s var(--ease-out);
}

.slide {
  flex: 0 0 100%;
  margin: 0;
}

.slide-visual {
  background: linear-gradient(135deg, #1a0a2e, #0a0a12 70%);
  position: relative;
}

.rippla-slideshow .slide-visual {
  background: #050508;
}

@media (min-width: 900px) {
  .media-player--embed,
  .media-player--placeholder,
  .media-player--video video,
  .slide-visual {
    min-height: 480px;
  }

  .rippla-slideshow.section--past-projects.slideshow-layout--full .slide-visual {
    min-height: 0;
  }

  .rippla-slideshow.section--past-projects.slideshow-layout--auto .slide-visual {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
}

.slide-fallback {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.35), rgba(3, 3, 6, 0.9));
}

.slide figcaption {
  padding: 1rem 1.1rem 1.15rem;
  background: rgba(0, 0, 0, 0.45);
  border-top: 1px solid var(--border);
}

.slide figcaption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.slide figcaption span {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.slideshow-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(3, 3, 8, 0.55);
  backdrop-filter: blur(8px);
  color: var(--text);
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
}

.slideshow-btn:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(109, 40, 217, 0.45);
}

.slideshow-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.slideshow-counter {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 3.5rem;
  text-align: center;
}

.slideshow-dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.slideshow-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.slideshow-dots button.is-active {
  background: var(--purple);
  transform: scale(1.2);
}

/* Promo deck */
.promo-pack {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.promo-pack-icon {
  color: var(--purple);
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
}

.promo-pack-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.promo-status {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 28rem;
  margin-inline: auto;
}

.promo-status--ok {
  color: #4ade80;
}

.promo-pack .btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
}

.video-label {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.video-soon {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease-out),
    box-shadow 0.2s,
    background 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple-deep), var(--purple));
  color: #fff;
  box-shadow: 0 0 40px var(--purple-glow);
}

.btn-primary:hover {
  box-shadow: 0 0 56px var(--purple-glow);
  filter: brightness(1.08);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.04);
}

.btn-full {
  width: 100%;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 12px #4ade80;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(0.85);
  }
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.6;
  animation: bob 2.5s ease-in-out infinite;
}

@keyframes bob {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(6px);
  }
}

/* Sections */
.section {
  padding: var(--section-pad-y) 0;
  position: relative;
}

.section-head {
  max-width: 36rem;
  margin-bottom: 3.5rem;
}

.section-head--center {
  text-align: center;
  margin-inline: auto;
  max-width: 40rem;
}

.section-head .section-heading,
.updates-copy h2,
.cta-band h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-section);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.section-lead {
  color: var(--text-muted);
  margin: 0;
}

/* Moment cards */
.moments-grid {
  display: grid;
  gap: 1.25rem;
  counter-reset: moment;
}

.moments-grid .moment-card:nth-child(1) {
  --delay: 0;
}
.moments-grid .moment-card:nth-child(2) {
  --delay: 1;
}
.moments-grid .moment-card:nth-child(3) {
  --delay: 2;
}
.moments-grid .moment-card:nth-child(4) {
  --delay: 3;
}

.moments-grid .widget,
.moments-grid .wp-block-legacy-widget {
  margin: 0;
  max-width: none;
}

@media (min-width: 640px) {
  .moments-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.moment-card {
  position: relative;
  padding: 2rem;
  padding-top: 2.5rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition:
    border-color 0.35s,
    transform 0.35s var(--ease-out),
    box-shadow 0.35s;
}

.moment-index,
.moment-card::before {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--purple);
  opacity: 0.85;
}

/* Auto-number cards (works for both widget and template output) */
.moments-grid .moment-card::before {
  counter-increment: moment;
  content: counter(moment, decimal-leading-zero);
}

/* Avoid double numbers if a legacy .moment-index span is also present */
.moment-card:has(.moment-index)::before {
  content: none;
}

.moment-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.moment-card--featured {
  background: linear-gradient(145deg, rgba(109, 40, 217, 0.18), rgba(3, 3, 6, 0.6));
  border-color: rgba(195, 73, 126, 0.35);
}

@media (min-width: 900px) {
  .moment-card--featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: end;
  }
  .moment-card--featured .card-link {
    justify-self: end;
  }
}

.moment-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-card);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.85rem;
}

.moment-verb,
.moment-noun {
  display: block;
}

.moment-noun {
  color: var(--purple);
}

.moment-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card-link {
  display: inline-block;
  margin-top: 1.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--purple);
  transition: color 0.2s;
}

.card-link:hover {
  color: #e7a3c1;
}

/* Why */
.why-grid {
  display: grid;
  gap: 1.5rem;
}

/* Widget wrappers (block / legacy widget editor) */
.why-grid .widget,
.why-grid .wp-block-legacy-widget,
.why-grid .rippla-info-box-widget {
  margin: 0;
  max-width: none;
}

.why-grid .widget .why-card,
.why-grid > .why-card {
  height: 100%;
}

@media (min-width: 768px) {
  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.why-card {
  position: relative;
  padding: 2rem 1.75rem 2rem 2rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--purple);
  transition: border-color 0.3s;
}

.why-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.why-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.6rem;
}

.why-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* CTA band */
.cta-band {
  padding: 5rem 0;
}

.cta-band-inner {
  text-align: center;
  padding: 4rem 2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.25), rgba(217, 70, 239, 0.08));
  border: 1px solid rgba(195, 73, 126, 0.25);
}

.cta-band-inner p {
  color: var(--text-muted);
  max-width: 28rem;
  margin: 0 auto 2rem;
}

/* Updates / contact form */
.updates-section {
  padding-bottom: 5rem;
}

.updates-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 36rem;
  margin-inline: auto;
}

.updates-copy {
  text-align: center;
}

.updates-copy h2 {
  margin-bottom: 0.5rem;
}

.updates-copy p {
  color: var(--text-muted);
  margin: 0 auto;
  max-width: 30rem;
}

.updates-form abbr {
  text-decoration: none;
  color: #f87171;
  font-weight: 700;
}

.form-required-note {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.form-required-note abbr {
  color: #f87171;
  text-decoration: none;
}

.updates-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

@media (min-width: 560px) {
  .updates-form {
    padding: 1.75rem;
    gap: 0.85rem;
  }
}

.form-row {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
  }
}

.updates-form label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin: 0;
}

.updates-form label span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.updates-form input,
.updates-form select,
.updates-form textarea {
  padding: 0.65rem 0.9rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s;
}

.updates-form textarea {
  resize: vertical;
  min-height: 7rem;
  font-family: inherit;
  line-height: 1.5;
}

.updates-form input:focus,
.updates-form select:focus,
.updates-form textarea:focus {
  outline: none;
  border-color: var(--purple);
}

.form-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  min-height: 1.25em;
}

.form-note.success {
  color: #4ade80;
}

.form-note.error {
  color: #f87171;
}

/* Footer */
.site-footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}

.footer-tagline {
  flex: 1;
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  min-width: 12rem;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

.footer-nav a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.footer-copy {
  width: 100%;
  margin: 1rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.7;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out);
  transition-delay: calc(var(--delay, 0) * 80ms);
}

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

/* Contact Form 7 — match native contact form rhythm */
.updates-form .wpcf7 {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
}

.updates-form .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 560px) {
  .updates-form .wpcf7,
  .updates-form .wpcf7-form {
    gap: 0.85rem;
  }
}

/* Strip stray <p>/<br> that CF7 emits around fields */
.updates-form .wpcf7-form > br,
.updates-form .wpcf7-form > p:empty,
.updates-form .wpcf7-form .form-row + br,
.updates-form .wpcf7-form label + br {
  display: none;
}

.updates-form .wpcf7-form > p {
  margin: 0;
}

.updates-form .wpcf7-form-control-wrap {
  display: block;
}

.updates-form .wpcf7 label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin: 0;
}

.updates-form .wpcf7 input[type='text'],
.updates-form .wpcf7 input[type='email'],
.updates-form .wpcf7 select,
.updates-form .wpcf7 textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s;
}

.updates-form .wpcf7 textarea {
  resize: vertical;
  min-height: 6.5rem;
  font-family: inherit;
  line-height: 1.5;
}

.updates-form .wpcf7 input:focus,
.updates-form .wpcf7 select:focus,
.updates-form .wpcf7 textarea:focus {
  outline: none;
  border-color: var(--purple);
}

.updates-form .wpcf7 input[type='submit'] {
  width: 100%;
  margin-top: 0.35rem;
  cursor: pointer;
  border: none;
}

.updates-form .wpcf7-spinner {
  margin: 0 auto;
}

.updates-form .wpcf7-not-valid-tip {
  font-size: 0.8rem;
  color: #f87171;
}

.updates-form .wpcf7-response-output {
  margin: 0;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.updates-form .wpcf7-mail-sent-ok {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.35);
}

.updates-form .wpcf7-validation-errors,
.updates-form .wpcf7-acceptance-missing,
.updates-form .wpcf7-spam-blocked {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .orb,
  .scroll-hint {
    animation: none;
  }
}

/* =========================================================================
   Strategy-deck sections (added for Rippla Studios v1.1)
   ========================================================================= */

/* --- Strategy diamond (4 quadrants) ---------------------------------- */
.strategy-section {
  background: radial-gradient(
    ellipse at top,
    rgba(109, 40, 217, 0.08),
    transparent 60%
  );
}

.strategy-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .strategy-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

.strategy-grid .widget,
.strategy-grid .wp-block-legacy-widget {
  margin: 0;
  max-width: none;
}

.strategy-quadrant {
  padding: 2rem 1.75rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.01)
  );
  border: 1px solid var(--border);
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}

.strategy-quadrant:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.strategy-quadrant-label {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 0.85rem;
}

.strategy-quadrant-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.65rem;
  color: var(--text);
}

.strategy-quadrant p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* --- Stats bands ----------------------------------------------------- */
.stats-section {
  padding: var(--section-pad-y) 0;
}

.stats-section--reach {
  background: linear-gradient(
    180deg,
    rgba(3, 3, 6, 0) 0%,
    rgba(217, 70, 239, 0.04) 50%,
    rgba(3, 3, 6, 0) 100%
  );
}

.stats-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stats-grid .widget,
.stats-grid .wp-block-legacy-widget {
  margin: 0;
  max-width: none;
}

.stat-card {
  padding: 2rem 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--purple);
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}

.stat-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.stat-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.25rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0 0 0.75rem;
  background: linear-gradient(135deg, var(--text), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  margin: 0 0 0.65rem;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.5;
}

.stat-source {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* --- Manifesto pull quote -------------------------------------------- */
.manifesto-section {
  padding: 6rem 0;
  position: relative;
}

.manifesto-inner {
  text-align: center;
  max-width: 56rem;
  margin-inline: auto;
  position: relative;
}

.manifesto-eyebrow {
  margin-bottom: 1.25rem;
}

.manifesto-quote {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
  quotes: "“" "”";
  position: relative;
}

.manifesto-quote::before {
  content: "“";
  position: absolute;
  top: -2.2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 5rem;
  line-height: 1;
  color: var(--purple);
  opacity: 0.4;
}

.manifesto-quote p {
  margin: 0 0 1.5rem;
}

.manifesto-cite {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* --- Shift band (Access → Participation) ----------------------------- */
.shift-section {
  padding: 5rem 0;
}

.shift-inner {
  text-align: center;
  max-width: 44rem;
  margin-inline: auto;
}

.shift-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-section);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0.75rem 0 1rem;
}

.shift-body {
  color: var(--text-muted);
  margin: 0 auto 2rem;
  max-width: 32rem;
}

.shift-pair {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem 1.5rem;
  margin: 0;
  padding: 1.1rem 1.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  letter-spacing: -0.01em;
}

.shift-from {
  color: var(--text-muted);
  text-decoration: line-through;
  text-decoration-color: rgba(148, 148, 168, 0.4);
}

.shift-arrow {
  color: var(--purple);
  font-weight: 800;
}

.shift-to {
  color: var(--purple);
}

/* --- Team grid (Hiya) ------------------------------------------------- */
.team-section {
  background: radial-gradient(
    ellipse at bottom,
    rgba(34, 211, 238, 0.05),
    transparent 60%
  );
}

.team-eyebrow {
  font-size: 1.4rem !important;
  letter-spacing: -0.01em !important;
  text-transform: none !important;
  color: var(--text) !important;
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  margin-bottom: 0.5rem;
}

.team-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.team-grid .widget,
.team-grid .wp-block-legacy-widget {
  margin: 0;
  max-width: none;
}

.team-card {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-align: center;
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}

.team-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.team-avatar {
  width: 96px;
  height: 96px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(195, 73, 126, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-avatar--placeholder {
  background: linear-gradient(135deg, var(--purple-deep), var(--magenta));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: -0.02em;
}

.team-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 0 0.25rem;
  color: var(--text);
}

.team-role {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  color: var(--purple);
  font-weight: 500;
}

.team-bio {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* =========================================================================
   Section backdrops (bundled imagery) — added v1.2
   ========================================================================= */
.manifesto-section.has-bg-image,
.shift-section.has-bg-image {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.manifesto-section.has-bg-image::before,
.shift-section.has-bg-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--rippla-bg-image);
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  filter: saturate(0.85) contrast(1.05);
  z-index: -2;
}

.manifesto-section.has-bg-image::after,
.shift-section.has-bg-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(3, 3, 6, 0.85) 0%,
    rgba(3, 3, 6, 0.65) 50%,
    rgba(3, 3, 6, 0.92) 100%
  );
  z-index: -1;
}

.manifesto-section.has-bg-image .manifesto-quote {
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

/* Footer social menu (optional menu location) */
.footer-social {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.footer-social a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-social a:hover { color: var(--purple); }

/* Card bodies from the editor (What We Do / Audience CPTs) */
.moment-body,
.why-body {
  margin: 0;
}
.moment-body p,
.why-body p {
  margin: 0;
}
.moment-body p + p,
.why-body p + p {
  margin-top: 0.65rem;
}

/* Editor-content wrappers for strategy/stat/team cards */
.strategy-quadrant-body p,
.stat-label p,
.team-bio p {
  margin: 0;
}
.strategy-quadrant-body p + p,
.stat-label p + p,
.team-bio p + p {
  margin-top: 0.55rem;
}
.stat-label { /* div wrapper inherits the stat caption look */
  color: var(--text);
}
