/* =====================================================================
   2MILLAR MEDIA — Brand Design System
   Colours, type & treatments per 2MM Brand Manual (Oct 2025)
   ===================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Oakes Grotesk";
  src: url("../fonts/Oakes-Grotesk-Regular.otf") format("opentype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Oakes Grotesk";
  src: url("../fonts/Oakes-Grotesk-Bold.otf") format("opentype");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: url("../fonts/InterTight-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Brand palette */
  --purple-400: #48004A;
  --purple-300: #B210B2;
  --purple-200: #EE2BEE;
  --purple-100: #F6DDFD;
  --orange-200: #FF481F;
  --orange-100: #FFAC99;
  --sand-100:   #FBF7F3;
  --white:      #FFFFFF;

  --grey-600: #181818;
  --grey-500: #292929;
  --grey-400: #404040;
  --grey-300: #787878;
  --grey-200: #BDBDBD;
  --grey-100: #E6E6E6;
  --grey-000: #FAFAFA;

  /* Semantic */
  --bg:        var(--sand-100);
  --ink:       var(--purple-400);
  --ink-soft:  #5a3a5c;
  --accent:    var(--orange-200);
  --accent-2:  var(--purple-200);

  /* Type */
  --font-display: "Oakes Grotesk", "Inter Tight", system-ui, sans-serif;
  --font-body:    "Inter Tight", system-ui, -apple-system, Segoe UI, sans-serif;

  /* Layout */
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 18px;
  --radius-lg: 32px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: clamp(16px, 1.05vw, 18px);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.display {
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3.3rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.9rem); }
h4 { font-size: 1.15rem; }
p { color: var(--ink-soft); }
.lead { font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.5; color: var(--ink-soft); }
strong { font-weight: 600; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: currentColor;
  display: inline-block;
}
.text-accent { color: var(--accent); }
.text-magenta { color: var(--purple-200); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container-wide { width: 100%; max-width: 1480px; margin-inline: auto; padding-inline: clamp(20px, 2.5vw, 44px); }
.section { padding-block: clamp(64px, 9vw, 140px); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 90px); }
.stack > * + * { margin-top: 1.1rem; }
.measure { max-width: 60ch; }
.center { text-align: center; }
.center.measure { margin-inline: auto; }

.grid { display: grid; gap: clamp(20px, 3vw, 40px); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
@media (max-width: 900px) {
  .cols-2, .cols-3, .cols-4, .split { grid-template-columns: 1fr; }
  .cols-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .cols-4 { grid-template-columns: 1fr; } }

/* ---------- Surfaces ---------- */
.bg-purple { background: var(--purple-400); color: var(--sand-100); }
.bg-purple h1, .bg-purple h2, .bg-purple h3, .bg-purple h4 { color: var(--white); }
.bg-purple p { color: rgba(251,247,243,0.74); }
.bg-purple .eyebrow { color: var(--orange-100); }
.bg-sand { background: var(--sand-100); }
.bg-white { background: var(--white); }
.bg-magenta { background: var(--purple-200); color: var(--white); }
.bg-magenta h1, .bg-magenta h2 { color: var(--white); }
.bg-magenta p { color: rgba(255,255,255,0.86); }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--accent);
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 0.95em 1.6em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  border-radius: 999px;
  background: var(--b);
  color: var(--white);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s, color .25s;
  will-change: transform;
  line-height: 1;
}
.btn svg { width: 1.05em; height: 1.05em; transition: transform .35s var(--ease); }
.btn:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -12px rgba(255,72,31,.6); }
.btn:hover svg { transform: translateX(4px); }
.btn--purple { --b: var(--purple-400); }
.btn--purple:hover { box-shadow: 0 14px 30px -12px rgba(72,0,74,.55); }
.btn--magenta { --b: var(--purple-200); }
.btn--magenta:hover { box-shadow: 0 14px 30px -12px rgba(238,43,238,.5); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px rgba(72,0,74,.28);
}
.btn--ghost:hover { background: var(--ink); color: var(--white); box-shadow: none; }
.bg-purple .btn--ghost { color: var(--sand-100); box-shadow: inset 0 0 0 1.5px rgba(251,247,243,.4); }
.bg-purple .btn--ghost:hover { background: var(--sand-100); color: var(--purple-400); }
.link-arrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 600; color: var(--purple-300);
  transition: gap .3s var(--ease), color .25s;
}
.link-arrow svg { width: 1em; transition: transform .3s var(--ease); }
.link-arrow:hover { gap: .9em; color: var(--purple-200); }

/* =====================================================================
   HEADER / NAV
   ===================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
  padding-block: 18px;
}
.site-header .container-wide { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header.scrolled {
  background: rgba(251,247,243,0.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(72,0,74,.08);
  padding-block: 10px;
}
.site-header.on-dark:not(.scrolled) { color: var(--sand-100); }
.brand-logo { display: block; }
.brand-logo img { height: 38px; width: auto; transition: height .4s var(--ease); }
.site-header.scrolled .brand-logo img { height: 32px; }
.brand-logo .logo-reverse { display: none; }
.site-header.on-dark:not(.scrolled) .logo-default { display: none; }
.site-header.on-dark:not(.scrolled) .logo-reverse { display: block; }

.main-nav { display: flex; align-items: center; gap: clamp(8px, 1.6vw, 26px); }
.main-nav > ul { display: flex; align-items: center; gap: clamp(6px, 1.4vw, 22px); }
.nav-link {
  font-weight: 500; font-size: 0.96rem; position: relative;
  padding: 6px 2px; color: currentColor;
  transition: color .25s;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--accent);
  transition: width .3s var(--ease);
}
.nav-link:hover::after, .nav-item.current > .nav-link::after { width: 100%; }
.nav-item { position: relative; }
.has-dropdown > .nav-link::after { display: none; }
.caret { width: .6em; height: .6em; vertical-align: middle; margin-left: .25em; transition: transform .3s; opacity: .7; }
.has-dropdown > .nav-link { display: inline-flex; align-items: center; }
.has-dropdown:hover .caret { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(8px);
  background: var(--white); color: var(--ink);
  border-radius: 16px; padding: 12px; min-width: 280px;
  box-shadow: 0 24px 60px -20px rgba(72,0,74,.35);
  opacity: 0; visibility: hidden; transition: all .3s var(--ease);
  display: grid; gap: 2px;
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown a {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 14px; border-radius: 10px; transition: background .2s, color .2s;
}
.dropdown a span { font-weight: 600; font-size: .95rem; }
.dropdown a small { color: var(--grey-300); font-size: .8rem; }
.dropdown a:hover { background: var(--purple-100); color: var(--purple-400); }
.dropdown a:hover small { color: var(--purple-300); }

.nav-cta { white-space: nowrap; }
.nav-toggle { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 5px; align-items: center; }
.nav-toggle span { width: 24px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1024px) {
  .site-header { padding-block: 14px; }
  .site-header .brand-logo img { height: 34px; }
  /* A backdrop-filter on the header would make the fixed menu anchor to the
     header instead of the viewport — strip it (and any blur) while open. */
  .nav-open .site-header { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav-toggle {
    display: flex; width: 46px; height: 46px; border-radius: 12px;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18);
    backdrop-filter: blur(6px); transition: background .25s, border-color .25s;
  }
  .site-header.scrolled .nav-toggle { background: rgba(72,0,74,.06); border-color: rgba(72,0,74,.14); }
  .nav-open .nav-toggle { position: relative; z-index: 101; background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.2); }
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(380px, 86vw); z-index: 100;
    background: var(--purple-400); color: var(--sand-100);
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    padding: 96px 28px 40px; gap: 6px;
    transform: translateX(100%); transition: transform .45s var(--ease);
    overflow-y: auto; box-shadow: -30px 0 60px -30px rgba(0,0,0,.5);
  }
  .nav-open .main-nav { transform: translateX(0); }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; width: 100%; }
  .nav-item { width: 100%; }
  .nav-link { font-size: 1.1rem; padding: 12px 4px; }
  .has-dropdown > .nav-link { display: flex; align-items: center; justify-content: space-between; }
  /* Caret indicates Services is tap-to-expand */
  .caret { display: inline-block; width: .8em; opacity: .8; }
  .has-dropdown:hover .caret { transform: none; }
  .has-dropdown.open .caret { transform: rotate(180deg); }
  /* Tap to view: dropdown collapsed by default, no hover popover */
  .dropdown,
  .has-dropdown:hover .dropdown {
    position: static; transform: none; opacity: 1; visibility: visible;
    background: transparent; box-shadow: none; padding: 0 0 8px 6px; min-width: 0;
    display: none; gap: 4px;
  }
  .has-dropdown.open .dropdown { display: grid; padding: 2px 0 12px 6px; }
  .dropdown a { color: rgba(251,247,243,.82); padding: 8px 10px; }
  .dropdown a small { color: rgba(251,247,243,.5); }
  .dropdown a:hover { background: rgba(255,255,255,.08); color: var(--white); }
  .nav-cta { margin-top: 14px; justify-content: center; }
  .nav-backdrop {
    position: fixed; inset: 0; background: rgba(24,0,26,.45);
    backdrop-filter: blur(2px); opacity: 0; visibility: hidden;
    transition: opacity .4s; z-index: 99;
  }
  .nav-open .nav-backdrop { opacity: 1; visibility: visible; }
}

/* =====================================================================
   DROSTE IMAGE TREATMENT  (recursive nested copies, per brand manual)
   ===================================================================== */
.droste {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--purple-400);
  aspect-ratio: 4 / 5;
  isolation: isolate;
}
.droste__layer {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform-origin: center 42%;
}
/* Subtle brand-purple tint over the base image */
.droste__tint {
  position: absolute; inset: 0; z-index: 5;
  background: linear-gradient(180deg, rgba(72,0,74,.05), rgba(72,0,74,.32));
  mix-blend-mode: multiply; pointer-events: none;
}
.droste--wide { aspect-ratio: 16 / 11; }
.droste--square { aspect-ratio: 1 / 1; }
.droste--tall { aspect-ratio: 3 / 4; }

/* Float / parallax wrapper */
.media-float { position: relative; }
.media-float .badge {
  position: absolute; z-index: 8;
  background: var(--orange-200); color: #fff;
  font-weight: 600; font-size: .85rem;
  padding: .7em 1.1em; border-radius: 999px;
  box-shadow: 0 16px 30px -14px rgba(255,72,31,.7);
}
.badge--tl { top: 18px; left: 18px; }
.badge--br { bottom: 18px; right: 18px; }

/* =====================================================================
   WAVE PATTERN & DIVIDERS
   ===================================================================== */
.wave-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  -webkit-mask: url("../img/pattern-symbol.svg"); mask: url("../img/pattern-symbol.svg");
  /* one copy across the full width, duplicated downward to fill the area */
  -webkit-mask-size: 100% auto; mask-size: 100% auto;
  -webkit-mask-repeat: repeat-y; mask-repeat: repeat-y;
  -webkit-mask-position: center top; mask-position: center top;
  opacity: .42;
}
.wave-bg--purple { background: var(--purple-200); }
.wave-bg--sand   { background: var(--purple-300); opacity: .1; }
.wave-bg--orange { background: var(--orange-200); }
.section > .container, .section > .container-wide { position: relative; z-index: 1; }

/* Flowing line divider */
.wave-divider { display: block; width: 100%; height: clamp(40px, 6vw, 90px); }
.wave-divider path { fill: none; stroke-width: 2.5; }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  background: var(--purple-400); color: var(--sand-100);
  padding-top: 120px; padding-bottom: 80px;
  overflow: hidden;
}
.hero__glow {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; z-index: 0;
  will-change: transform;
}
.hero__glow--1 { width: 540px; height: 540px; background: radial-gradient(circle, var(--purple-300), transparent 70%); top: -120px; right: -80px; animation: glowDrift1 15s ease-in-out infinite; }
.hero__glow--2 { width: 460px; height: 460px; background: radial-gradient(circle, var(--orange-200), transparent 70%); bottom: -160px; left: -120px; opacity: .35; animation: glowDrift2 18s ease-in-out infinite; }
@keyframes glowDrift1 {
  0%   { transform: translate(0, 0) scale(1); }
  25%  { transform: translate(-520px, 180px) scale(1.2); }
  50%  { transform: translate(-260px, 420px) scale(1); }
  75%  { transform: translate(-620px, 140px) scale(1.15); }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes glowDrift2 {
  0%   { transform: translate(0, 0) scale(1.05); }
  30%  { transform: translate(620px, -160px) scale(1); }
  55%  { transform: translate(280px, -380px) scale(1.25); }
  80%  { transform: translate(720px, -80px) scale(1.05); }
  100% { transform: translate(0, 0) scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__glow { animation: none !important; }
}

/* ---- Site-wide drifting glow on dark surfaces ---- */
.section.bg-purple { overflow: hidden; }
.section.bg-purple, .cta-band, .site-footer, .page-hero { position: relative; }
.section.bg-purple::before, .cta-band::before, .site-footer::before,
.section.bg-purple::after,  .cta-band::after,  .site-footer::after,  .page-hero::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
  filter: blur(90px); z-index: 0; will-change: transform;
}
.section.bg-purple::before, .cta-band::before, .site-footer::before {
  width: 480px; height: 480px; top: -150px; right: -110px; opacity: .5;
  background: radial-gradient(circle, var(--purple-300), transparent 70%);
  animation: glowDrift1 15s ease-in-out infinite;
}
.section.bg-purple::after, .cta-band::after, .site-footer::after, .page-hero::after {
  width: 420px; height: 420px; bottom: -170px; left: -120px; opacity: .3;
  background: radial-gradient(circle, var(--orange-200), transparent 70%);
  animation: glowDrift2 18s ease-in-out infinite;
}
/* keep content above the glow */
.site-footer .container-wide { position: relative; z-index: 1; }
.page-hero .container { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) {
  .section.bg-purple::before, .cta-band::before, .site-footer::before, .page-hero::before,
  .section.bg-purple::after,  .cta-band::after,  .site-footer::after,  .page-hero::after { animation: none !important; }
}

.hero .container-wide { position: relative; z-index: 2; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { color: var(--white); }
.hero .lead { color: rgba(251,247,243,.8); max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; }
.hero__media { position: relative; }
@media (max-width: 980px) {
  .hero { min-height: auto; padding-top: 124px; padding-bottom: 64px; align-items: flex-start; }
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .hero__media { max-width: 460px; margin-top: 6px; }
  .scroll-cue { display: none; }
}
@media (max-width: 560px) {
  .hero { padding-top: 116px; }
  .hero h1 { font-size: clamp(1.7rem, 7vw, 2.4rem); letter-spacing: -0.015em; }
  .hero h1, .hero .lead { overflow-wrap: break-word; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .hero-stats { gap: 22px; }
}

.hero-stats { display: flex; gap: clamp(20px, 4vw, 54px); flex-wrap: wrap; margin-top: 12px; }
.hero-stats .num { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem,3vw,2.6rem); color: var(--orange-100); line-height: 1; }
.hero-stats .lbl { font-size: .85rem; color: rgba(251,247,243,.6); margin-top: 6px; }

.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(251,247,243,.55);
}
.scroll-cue .mouse { width: 22px; height: 36px; border: 1.5px solid rgba(251,247,243,.4); border-radius: 12px; position: relative; }
.scroll-cue .mouse::after { content:""; position:absolute; top:7px; left:50%; transform:translateX(-50%); width:3px; height:7px; border-radius:2px; background: var(--orange-100); animation: scrollDot 1.6s var(--ease) infinite; }
@keyframes scrollDot { 0%{opacity:0;transform:translate(-50%,0)} 30%{opacity:1} 70%{opacity:1} 100%{opacity:0;transform:translate(-50%,12px)} }

/* =====================================================================
   PAGE HERO (interior pages)
   ===================================================================== */
.page-hero {
  position: relative; background: var(--purple-400); color: var(--sand-100);
  padding-top: clamp(140px, 18vh, 220px); padding-bottom: clamp(60px, 8vw, 110px);
  overflow: hidden;
}
.page-hero .eyebrow { color: var(--orange-100); }
.page-hero h1 { color: var(--white); max-width: 18ch; }
.page-hero .lead { color: rgba(251,247,243,.78); max-width: 56ch; }
.breadcrumb { display: flex; gap: .5em; font-size: .82rem; color: rgba(251,247,243,.55); margin-bottom: 22px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--orange-100); }

/* =====================================================================
   CARDS
   ===================================================================== */
.card {
  background: var(--white); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: 0 1px 0 rgba(72,0,74,.05), 0 26px 50px -34px rgba(72,0,74,.28);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  position: relative; overflow: hidden; height: 100%;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 36px 60px -30px rgba(72,0,74,.32); }
.card__icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 20px;
  background: var(--purple-100); color: var(--purple-400);
}
.card__icon svg { width: 26px; height: 26px; }
/* Glossy brand service icon (matches the hero scene) used on cards & page heroes */
.svc-icon { width: 54px; height: 54px; margin-bottom: 20px; transition: opacity .3s ease; }
.svc-icon svg { width: 54px; height: 54px; display: block; overflow: visible; filter: drop-shadow(0 10px 16px rgba(72,0,74,.28)); }

/* Icon flight: hero icons detach, hover near the edges, then land on cards */
.flight-layer { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.flyer { position: fixed; top: 0; left: 0; width: 54px; height: 54px; }
.flyer__b { width: 54px; height: 54px; animation: flyerFloat 5.5s ease-in-out infinite; }
.flyer__b svg { width: 54px; height: 54px; display: block; overflow: visible; filter: drop-shadow(0 12px 20px rgba(72,0,74,.42)); }
@keyframes flyerFloat { 0%, 100% { transform: translateY(-6px) rotate(-3deg); } 50% { transform: translateY(6px) rotate(3deg); } }
@media (max-width: 980px) { .flight-layer { display: none; } }
@media (prefers-reduced-motion: reduce) { .flyer__b { animation: none; } }
.page-hero__icon { width: 68px; height: 68px; margin-bottom: 18px; }
.page-hero__icon svg { width: 68px; height: 68px; display: block; overflow: visible; filter: drop-shadow(0 12px 20px rgba(0,0,0,.35)); }
/* Orange outline traced around each why-us card as the sequence reaches it */
.card-outline { position: absolute; inset: 0; z-index: 4; pointer-events: none; overflow: visible; }
.card-outline rect { stroke: var(--orange-200); stroke-width: 2.5; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .8s var(--ease); }
.card--feature.drawn .card-outline rect { stroke-dashoffset: 0; }
/* Typewriter caret */
.js-typewriter.tw-idle::after, .js-typewriter.tw-typing::after { content: ""; display: inline-block; width: .055em; height: .95em; margin-left: .04em; vertical-align: -0.08em; background: var(--purple-200); animation: twBlink .8s steps(1) infinite; }
@keyframes twBlink { 50% { opacity: 0; } }
.card h3 { margin-bottom: 10px; }
.card__num { font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; color: var(--purple-200); opacity: .35; line-height: 1; }
.card--feature { background: var(--purple-400); color: var(--sand-100); }
.card--feature h3 { color: #fff; } .card--feature p { color: rgba(251,247,243,.74); }
.card--feature .card__icon { background: rgba(255,255,255,.1); color: var(--orange-100); }

.service-card { display: flex; flex-direction: column; }
.service-card .link-arrow { margin-top: auto; padding-top: 18px; }

/* Home services: sticky heading beside scrolling cards */
.services-layout { display: grid; grid-template-columns: minmax(280px, 0.85fr) 1.3fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.services-intro { position: sticky; top: 104px; align-self: start; }
@media (max-width: 900px) {
  .services-layout { grid-template-columns: 1fr; gap: 28px; }
  .services-intro { position: static; }
}

/* Why-us numbered points: number highlights as you scroll through them */
.card--feature .card__num { transition: color .45s var(--ease), opacity .45s var(--ease); }
.card--feature.active .card__num { color: var(--orange-200); opacity: 1; }

/* Step / process */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 0; }
.step__n { font-family: var(--font-display); font-weight:700; font-size: 1rem; color: var(--accent);
  display:inline-flex; align-items:center; justify-content:center; width: 42px; height: 42px;
  border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(255,72,31,.4); margin-bottom: 16px; }

/* =====================================================================
   MARQUEE (client logos)
   ===================================================================== */
.marquee { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: clamp(36px, 5vw, 72px); width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.1rem, 1.8vw, 1.6rem);
  white-space: nowrap; color: var(--ink); opacity: .42; transition: opacity .3s, color .3s;
  display: flex; align-items: center; gap: .5em;
}
.marquee__item::before { content:""; width: 9px; height: 9px; border-radius:50%; background: var(--purple-200); opacity:.6; }
.marquee__item:hover { opacity: 1; color: var(--purple-300); }
.bg-purple .marquee__item { color: var(--sand-100); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =====================================================================
   TESTIMONIALS
   ===================================================================== */
.quote {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.5rem, 3.2vw, 2.6rem); line-height: 1.15; letter-spacing: -0.02em;
  color: var(--ink);
}
.bg-purple .quote { color: var(--white); }
.quote-mark { font-family: var(--font-display); font-size: 5rem; line-height: .6; color: var(--purple-200); opacity: .5; }
.cite { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.cite .avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--purple-200); display:grid; place-items:center; color:#fff; font-weight:700; font-family: var(--font-display); }
.cite .who { font-weight: 600; } .cite .role { font-size:.85rem; opacity:.65; }
.cite a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color .2s; }
.cite a:hover { color: var(--orange-200); }

/* =====================================================================
   TEAM
   ===================================================================== */
.team-card { text-align: left; }
.team-card .photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; margin-bottom: 18px; background: var(--purple-100); }
.team-card h3 { margin-bottom: 2px; }
.team-card .role { color: var(--accent); font-weight: 600; font-size: .92rem; margin-bottom: 12px; }

/* =====================================================================
   FAQ ACCORDION
   ===================================================================== */
.faq { border-top: 1px solid rgba(72,0,74,.14); }
.faq__item { border-bottom: 1px solid rgba(72,0,74,.14); }
.bg-purple .faq, .bg-purple .faq__item { border-color: rgba(251,247,243,.16); }
.faq__q {
  width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--ink); transition: color .25s;
}
.bg-purple .faq__q { color: #fff; }
.faq__q:hover { color: var(--purple-300); }
.faq__icon { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; position: relative; box-shadow: inset 0 0 0 1.5px rgba(72,0,74,.3); transition: background .3s, box-shadow .3s; }
.bg-purple .faq__icon { box-shadow: inset 0 0 0 1.5px rgba(251,247,243,.35); }
.faq__icon::before, .faq__icon::after { content:""; position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); background: currentColor; }
.faq__icon::before { width: 12px; height: 2px; }
.faq__icon::after { width: 2px; height: 12px; transition: transform .3s var(--ease); }
.faq__item.open .faq__icon { background: var(--accent); box-shadow:none; color:#fff; }
.faq__item.open .faq__icon::after { transform: translate(-50%,-50%) scaleY(0); }
.faq__a { overflow: hidden; height: 0; transition: height .4s var(--ease); }
.faq__a-inner { padding-bottom: 24px; max-width: 72ch; }

/* =====================================================================
   FORMS
   ===================================================================== */
.form-card { background: var(--white); border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 48px); box-shadow: 0 30px 70px -40px rgba(72,0,74,.4); }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-weight: 600; font-size: .9rem; }
.field input, .field textarea, .field select {
  font: inherit; padding: 14px 16px; border-radius: 12px;
  border: 1.5px solid rgba(72,0,74,.16); background: var(--sand-100); color: var(--ink);
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--purple-200); box-shadow: 0 0 0 4px rgba(238,43,238,.12); background: #fff; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px){ .field-row { grid-template-columns: 1fr; } }

.contact-meta { display: grid; gap: 22px; }
.contact-meta .row { display: flex; gap: 14px; align-items: flex-start; }
.contact-meta .ico { flex:0 0 auto; width: 46px; height:46px; border-radius:12px; display:grid; place-items:center; background: rgba(255,255,255,.1); color: var(--orange-100); }
.contact-meta .ico svg { width: 20px; height:20px; }
.contact-meta .k { font-size:.8rem; text-transform:uppercase; letter-spacing:.12em; opacity:.6; }
.contact-meta .v { font-weight:600; font-size:1.05rem; }

/* =====================================================================
   CTA BAND
   ===================================================================== */
.cta-band { position: relative; overflow: hidden; background: var(--purple-400); color: var(--sand-100); border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 84px); text-align: center; }
.cta-band h2 { color: #fff; max-width: 20ch; margin-inline: auto; }
.cta-band p { color: rgba(251,247,243,.78); max-width: 52ch; margin-inline: auto; }

/* =====================================================================
   NEWS
   ===================================================================== */
.post-card { display:flex; flex-direction:column; height:100%; background:#fff; border-radius: var(--radius); overflow:hidden;
  box-shadow: 0 26px 50px -34px rgba(72,0,74,.28); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.post-card:hover { transform: translateY(-6px); box-shadow: 0 36px 60px -30px rgba(72,0,74,.32); }
.post-card .thumb { aspect-ratio: 16/10; overflow:hidden; }
.post-card .body { padding: 22px clamp(18px,2.4vw,26px) 26px; display:flex; flex-direction:column; flex:1; }
.tag { align-self:flex-start; font-size:.72rem; font-weight:600; text-transform:uppercase; letter-spacing:.12em; color: var(--purple-300); background: var(--purple-100); padding:.4em .8em; border-radius:999px; margin-bottom:14px; }
.post-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.post-card .meta { margin-top:auto; padding-top:16px; font-size:.82rem; color: var(--grey-300); }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer { background: var(--purple-400); color: var(--sand-100); position: relative; overflow: hidden; }

/* Footer reveal: footer pinned at the back; cream content lifts to uncover it */
@media (min-width: 861px) {
  body.footer-reveal { background: var(--purple-400); }
  body.footer-reveal main { position: relative; z-index: 1; background: var(--bg); }
  body.footer-reveal .site-footer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 0; }
}
.site-footer .wave-bg { opacity: .14; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: clamp(28px,4vw,56px); padding-block: clamp(56px,7vw,90px); }
.site-footer .brand-logo img { height: 40px; margin-bottom: 18px; }
.site-footer p { color: rgba(251,247,243,.66); max-width: 34ch; }
.footer-col h4 { color: #fff; font-family: var(--font-body); font-size: .82rem; letter-spacing:.14em; text-transform:uppercase; opacity:.6; margin-bottom: 16px; }
.footer-col a { display:block; padding: 6px 0; color: rgba(251,247,243,.78); transition: color .2s, padding-left .25s; }
.footer-col a:hover { color: var(--orange-100); padding-left: 6px; }
.footer-bottom { border-top: 1px solid rgba(251,247,243,.14); padding-block: 26px; display:flex; flex-wrap:wrap; gap:14px; justify-content: space-between; align-items:center; font-size:.85rem; color: rgba(251,247,243,.55); }
.socials { display:flex; gap:10px; }
.socials a { width: 40px; height:40px; border-radius:50%; display:grid; place-items:center; background: rgba(255,255,255,.08); transition: background .25s, transform .25s; }
.socials a:hover { background: var(--orange-200); transform: translateY(-3px); }
.socials svg { width:18px; height:18px; }
@media (max-width: 880px){ .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .footer-top { grid-template-columns: 1fr; } }

/* =====================================================================
   SCROLL ANIMATIONS / PARALLAX
   ===================================================================== */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal="left"]  { transform: translateX(-56px); }
[data-reveal="right"] { transform: translateX(56px); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal-delay="4"] { transition-delay: .32s; }
[data-parallax] { will-change: transform; }

/* Utilities */
.mt-0{margin-top:0}.mt-1{margin-top:1rem}.mt-2{margin-top:2rem}.mt-3{margin-top:3rem}
.mb-1{margin-bottom:1rem}.mb-2{margin-bottom:2rem}.mb-3{margin-bottom:3rem}
.pill { display:inline-flex; align-items:center; gap:.5em; padding:.5em 1em; border-radius:999px; background: var(--purple-100); color: var(--purple-400); font-weight:600; font-size:.82rem; }
.bg-purple .pill { background: rgba(255,255,255,.1); color: var(--orange-100); }
.divider-line { height:1px; background: rgba(72,0,74,.12); border:0; }
.tick-list li { display:flex; gap:.7em; align-items:flex-start; padding:.4em 0; color: var(--ink-soft); }
.tick-list li::before { content:""; flex:0 0 auto; width:22px; height:22px; margin-top:2px; border-radius:50%; background: var(--purple-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B210B2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/13px no-repeat; }
.bg-purple .tick-list li { color: rgba(251,247,243,.82); }
.bg-purple .tick-list li::before { background: rgba(255,255,255,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFAC99' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/13px no-repeat; }

/* =====================================================================
   WORDPRESS / BLOCK-EDITOR INTEGRATION
   ===================================================================== */
/* Reveal as a class (core blocks can take a className but not data-attrs) */
.reveal { opacity: 0; transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.reveal--left  { transform: translateX(-56px); }
.reveal.reveal--right { transform: translateX(56px); }
.reveal.in { opacity: 1; transform: none; }
.reveal--d1 { transition-delay: .08s; } .reveal--d2 { transition-delay: .16s; }
.reveal--d3 { transition-delay: .24s; } .reveal--d4 { transition-delay: .32s; }

/* Droste with an editable core Image as the base layer */
.droste .wp-block-image,
.droste figure { position: absolute; inset: 0; margin: 0; height: 100%; width: 100%; z-index: 1; }
.droste .wp-block-image img,
.droste figure img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }

/* Let section groups span full width; inner .container handles max-width */
.wp-block-group.section, .wp-block-group.hero, .wp-block-group.page-hero { max-width: none; }
.wp-block-group.alignfull { margin-block: 0; }
body .wp-site-blocks > * + * { margin-block-start: 0; }
.wp-block-group.container, .wp-block-group.container-wide { margin-inline: auto; }
figure { margin: 0; }

/* Editable CORE buttons styled to the brand (theme.json sets fill/colour;
   these handle the pill, hover lift, ghost variant and arrow). */
.wp-block-buttons { gap: 14px; }
.wp-block-button__link {
  border-radius: 999px; font-family: var(--font-body); font-weight: 600; font-size: .98rem;
  padding: .95em 1.6em; display: inline-flex; align-items: center; gap: .6em; line-height: 1;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s, color .25s;
}
.wp-block-button__link:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -12px rgba(255,72,31,.6); }
/* Ghost / outline variant */
.wp-block-button.is-style-outline > .wp-block-button__link,
.wp-block-button.btn--ghost > .wp-block-button__link {
  background: transparent !important; color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(72,0,74,.28); border: 0;
}
.bg-purple .wp-block-button.is-style-outline > .wp-block-button__link,
.bg-purple .wp-block-button.btn--ghost > .wp-block-button__link,
.hero .wp-block-button.is-style-outline > .wp-block-button__link, .hero .wp-block-button.btn--ghost > .wp-block-button__link,
.page-hero .wp-block-button.is-style-outline > .wp-block-button__link, .page-hero .wp-block-button.btn--ghost > .wp-block-button__link,
.cta-band .wp-block-button.is-style-outline > .wp-block-button__link, .cta-band .wp-block-button.btn--ghost > .wp-block-button__link { color: var(--sand-100); box-shadow: inset 0 0 0 1.5px rgba(251,247,243,.45); }
.wp-block-button.is-style-outline > .wp-block-button__link:hover,
.wp-block-button.btn--ghost > .wp-block-button__link:hover { background: var(--ink) !important; color: #fff; box-shadow: none; }
/* Optional arrow (add the "btn--arrow" class to a core button) */
.wp-block-button.btn--arrow > .wp-block-button__link::after,
.link-arrow.is-css-arrow::after {
  content: ""; width: 1.05em; height: 1.05em; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform .35s var(--ease);
}
.wp-block-button.btn--arrow > .wp-block-button__link:hover::after { transform: translateX(4px); }
.link-arrow.is-css-arrow:hover::after { transform: translateX(3px); }

/* Keep WP admin bar from masking the fixed header */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px){ .admin-bar .site-header { top: 46px; } }
.marquee-label { text-align: center; text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; color: var(--grey-300); font-weight: 600; margin-bottom: 26px; }
/* core-block cards: keep the linked heading on-brand */
.card h3 a { color: inherit; }
.card h3 a:hover { color: var(--purple-300); }
.split--end { align-items: end; }
/* CTA band: keep editable inner content above the wave/glow */
.cta-band > .wp-block-group { position: relative; z-index: 1; }
.cta-band .wp-block-buttons { justify-content: center; }
/* core image inside a droste must not add its own block margins */
.droste .wp-block-image { margin: 0 !important; }

/* centred eyebrow inside a .center group (no inline style needed on the block) */
.center .eyebrow { justify-content: center; }

/* purple variant of .card (e.g. Contact "who we work best with") */
.card.card--purple { background: var(--purple-400); color: var(--sand-100); }
.card.card--purple h3 { color: #fff; }
.card.card--purple p { color: rgba(251,247,243,.78); }
.card.card--purple .tick-list li { color: rgba(251,247,243,.82); }
.card.card--purple .tick-list li::before { background: rgba(255,255,255,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFAC99' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/13px no-repeat; }

/* =====================================================================
   QUERY LOOP (real WordPress posts) styled as brand post-cards
   ===================================================================== */
.news-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px);
}
@media (max-width: 900px){ .news-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .news-grid { grid-template-columns: 1fr; } }
.news-grid > li, .news-grid .wp-block-post {
  list-style: none; margin: 0; background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 26px 50px -34px rgba(72,0,74,.28); transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  display: flex; flex-direction: column;
}
.news-grid .wp-block-post:hover { transform: translateY(-6px); box-shadow: 0 36px 60px -30px rgba(72,0,74,.32); }
.news-grid .wp-block-post-featured-image { margin: 0; }
.news-grid .wp-block-post-featured-image a,
.news-grid .wp-block-post-featured-image img { display: block; width: 100%; }
.news-grid .wp-block-post-featured-image img { object-fit: cover; }
.news-grid .body { padding: 22px clamp(18px,2.4vw,26px) 26px; display: flex; flex-direction: column; flex: 1; gap: 0; }
.news-grid .wp-block-post-terms.tag, .news-grid .tag {
  align-self: flex-start; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em;
  color: var(--purple-300); background: var(--purple-100); padding: .4em .8em; border-radius: 999px; margin: 0 0 14px;
}
.news-grid .wp-block-post-terms.tag a { color: inherit; text-decoration: none; }
.news-grid .wp-block-post-title { font-size: 1.25rem; line-height: 1.15; margin: 0 0 10px; }
.news-grid .wp-block-post-title a { color: var(--ink); }
.news-grid .wp-block-post-title a:hover { color: var(--purple-300); }
.news-grid .wp-block-post-excerpt { color: var(--ink-soft); margin: 0; }
.news-grid .wp-block-post-excerpt__more-link { display: inline-block; margin-top: 14px; font-weight: 600; color: var(--purple-300); }
.wp-block-query-pagination { margin-top: clamp(28px,4vw,48px); gap: 8px; }
.wp-block-query-pagination a, .wp-block-query-pagination .current { color: var(--ink); }

/* Single post body */
.post-body { max-width: 760px; margin-inline: auto; }
.post-body > * + * { margin-top: 1.1rem; }

/* Contact form honeypot (hidden from humans) */
.enquiry-form .hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* =====================================================================
   HERO ANIMATED SCENE — glossy filled marketing icons (pop-in + float)
   ===================================================================== */
.hero-scene { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 540px; margin-inline: auto; }
.hero-scene__defs { position: absolute; width: 0; height: 0; }
.hero-scene::after { /* soft brand glow to seat the icons */
  content: ""; position: absolute; inset: 4%; border-radius: 50%;
  background: radial-gradient(circle, rgba(238,43,238,.22), transparent 66%);
  filter: blur(14px); z-index: 0;
}
/* Icons + logo start hidden/small; JS (initHeroSequence) reveals each icon,
   fires a projectile at the logo, and grows the logo on each impact. */
.scene-icon { position: absolute; left: var(--x); top: var(--y); width: var(--s,64px); height: var(--s,64px); opacity: 0; z-index: 1; display: block; cursor: pointer; }
.scene-icon:hover { z-index: 6; }
.scene-icon__f { width: 100%; height: 100%; animation: sceneFloat var(--fd,7s) ease-in-out var(--d,0s) infinite; transition: transform .3s var(--ease); }
.scene-icon svg { width: 100%; height: 100%; display: block; overflow: visible; filter: drop-shadow(0 14px 22px rgba(40,0,42,.5)); transition: filter .3s var(--ease); }
.scene-icon:hover svg { filter: drop-shadow(0 16px 26px rgba(40,0,42,.55)) brightness(1.08); }
/* Modern tooltip with the service name */
.scene-tip {
  position: absolute; left: 50%; bottom: 100%; margin-bottom: 10px; transform: translate(-50%, 6px) scale(.92);
  background: rgba(40,0,42,.92); color: #fff; font-family: var(--font-body); font-weight: 600;
  font-size: .72rem; letter-spacing: .01em; white-space: nowrap; padding: .5em .8em; border-radius: 9px;
  box-shadow: 0 14px 30px -10px rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.12);
  opacity: 0; pointer-events: none; z-index: 7; transition: opacity .25s var(--ease), transform .25s var(--ease);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.scene-tip::after { content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: rgba(40,0,42,.92); }
.scene-icon:hover .scene-tip, .scene-icon:focus-visible .scene-tip { opacity: 1; transform: translate(-50%, 0) scale(1); }
.scene-icon:focus-visible { outline: 2px solid var(--orange-100); outline-offset: 4px; border-radius: 12px; }
.scene-center { position: absolute; left: 50%; top: 50%; width: 34%; opacity: 0; z-index: 2; transform: translate(-50%, -50%); }
.scene-center__f { animation: sceneFloatC 8s ease-in-out infinite; }
.scene-center img { width: 100%; height: auto; display: block; transform: scale(.42); transform-origin: center; filter: drop-shadow(0 20px 36px rgba(0,0,0,.45)); }
@keyframes sceneFloat { 0%,100% { transform: translateY(0) rotate(var(--r,0deg)); } 50% { transform: translateY(-13px) rotate(calc(var(--r,0deg) + 3deg)); } }
@keyframes sceneFloatC { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-9px) scale(1.03); } }

/* Projectile fired from an icon toward the logo */
.scene-shot { position: absolute; width: 14px; height: 14px; border-radius: 50%; z-index: 3; pointer-events: none;
  background: radial-gradient(circle at 35% 35%, #fff, var(--sc,#FF481F) 60%, transparent 72%);
  box-shadow: 0 0 14px 3px var(--sc,#FF481F); }
.scene-shot::after { content:""; position:absolute; inset:-3px; border-radius:50%; background: var(--sc,#FF481F); opacity:.35; filter: blur(5px); }
/* Impact ring at the logo */
.scene-ring { position: absolute; left: 50%; top: 50%; width: 30%; aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%,-50%); z-index: 1; pointer-events: none; box-shadow: 0 0 0 2px var(--sc,#EE2BEE) inset; opacity: .8; }

@media (max-width: 560px){ .hero-scene { max-width: 360px; } }
@media (prefers-reduced-motion: reduce){
  .scene-icon, .scene-center { opacity: 1 !important; }
  .scene-icon__f, .scene-center__f { animation: none; }
  .scene-center img { transform: none !important; }
}

/* Real headshots: plain photo, no droste nesting */
.team-card .photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-card .photo figure, .team-card .photo .wp-block-image { margin: 0; width: 100%; height: 100%; }
.media-float .quote-photo { width: 100%; border-radius: var(--radius); display: block; }
.home-quote-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1/1; }
.home-quote-photo figure, .home-quote-photo .wp-block-image { margin: 0; height: 100%; }
.home-quote-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Keep row layouts top-aligned. WordPress flow-layout groups inject
   margin-block-start on every child after the first, which pushes items 2+
   down in a flex/grid row (first card/stat sits high). Spacing is handled by
   `gap`, so zero that injected margin on our row containers. */
.grid > *, .hero-stats > *, .split > *, .hero__grid > *,
.footer-top > *, .services-layout > * { margin-block-start: 0; }

.media-video { width: 100%; height: auto; display: block; border-radius: var(--radius); }

/* Native Video/Image blocks used as page media (editable in the block editor) */
figure.media-video { margin: 0; width: 100%; }
.media-video > video, .media-video > img { width: 100%; height: auto; display: block; border-radius: var(--radius); }
.video-once { position: relative; }

/* Droste effect removed: no nested copies or tint overlay. */
.droste__tint{display:none!important;}
