/* ==========================================================================
   GJM Culture Co. — Design system overrides, motion graphics & illustrations
   Loaded AFTER style.css so the :root token overrides win.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS — contrast-corrected palette
   The original coral oklch(68% .21 30) gave only 3.17:1 against white text,
   failing WCAG AA. Darkened to ~4.9:1. Bright coral is kept for decoration
   only (hard shadows, dots, blobs) where contrast does not matter.
   -------------------------------------------------------------------------- */
:root {
  --coral: oklch(58% .205 29);
  --coral-bright: oklch(70% .22 32);
  --cobalt: var(--coral);   /* blue retired — kept as an alias so existing
                               bg-cobalt / text-cobalt utilities stay valid */
  --lime: oklch(90% .2 125);
  --sun: oklch(87% .17 88);
  --violet: var(--coral-bright);
  --aqua: oklch(82% .14 195);

  --primary: var(--coral);
  --accent: var(--lime);

  --shadow-pop: 5px 5px 0 0 var(--ink);
  --shadow-pop-lg: 8px 8px 0 0 var(--ink);

  --ease-pop: cubic-bezier(.34, 1.56, .64, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

html { scroll-behavior: smooth; }

body {
  overflow-x: clip;
  background: var(--background);
  position: relative;
}

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

/* Keyboard focus — no visible focus style existed before */
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
  border-radius: 6px;
  /* Paper halo keeps the ring legible on ink / coral surfaces too. */
  box-shadow: 0 0 0 6px color-mix(in oklab, var(--paper) 88%, transparent);
}

/* --------------------------------------------------------------------------
   2. FLUID TYPOGRAPHY
   Replaces the fixed text-5xl -> lg:text-[9rem] jumps that overflowed on
   narrow phones. Scales smoothly from 360px to 1440px instead.
   -------------------------------------------------------------------------- */
h1.hero-title {
  font-size: clamp(2.5rem, 8.2vw, 5.4rem);
  line-height: .88;
  letter-spacing: -.03em;
}

.h2-display {
  font-size: clamp(2rem, 6.2vw, 4.5rem);
  line-height: .95;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.h2-display.h2-xl { font-size: clamp(2.3rem, 8.5vw, 6rem); }

h3 { text-wrap: balance; }

.h3-service {
  font-size: clamp(1.5rem, 3.6vw, 3rem);
  line-height: 1.04;
  letter-spacing: -.015em;
}

.lead {
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  line-height: 1.5;
}

p { text-wrap: pretty; }

/* --------------------------------------------------------------------------
   3. AMBIENT BACKGROUND MOTION — aurora mesh + drifting dot grid
   -------------------------------------------------------------------------- */
.fx-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.fx-bg .aurora {
  position: absolute;
  width: 55vmax;
  height: 55vmax;
  border-radius: 50%;
  filter: blur(110px);
  opacity: .11;
  will-change: transform;
}

.fx-bg .aurora.a1 {
  background: var(--lime);
  top: -18vmax;
  left: -10vmax;
  animation: drift1 26s ease-in-out infinite;
}

.fx-bg .aurora.a2 {
  background: var(--coral-bright);
  top: 30vmax;
  right: -18vmax;
  animation: drift2 32s ease-in-out infinite;
}

.fx-bg .aurora.a3 {
  background: var(--aqua);
  bottom: -20vmax;
  left: 25vmax;
  animation: drift3 38s ease-in-out infinite;
}

.fx-bg .grid-dots {
  position: absolute;
  inset: -2px;
  background-image: radial-gradient(circle, color-mix(in oklab, var(--ink) 22%, transparent) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: .16;
  animation: gridDrift 14s linear infinite;
}

@keyframes drift1 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(14vmax, 8vmax, 0) scale(1.16); }
}

@keyframes drift2 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1.08); }
  50%      { transform: translate3d(-16vmax, -10vmax, 0) scale(.9); }
}

@keyframes drift3 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(.95); }
  50%      { transform: translate3d(10vmax, -12vmax, 0) scale(1.2); }
}

@keyframes gridDrift {
  from { background-position: 0 0; }
  to   { background-position: 26px 26px; }
}

/* Everything sits above the ambient layer */
.site-header,
.page-wrap,
.site-footer { position: relative; z-index: 1; }

/* --------------------------------------------------------------------------
   4. SCROLL PROGRESS BAR
   -------------------------------------------------------------------------- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--coral), var(--sun), var(--lime), var(--coral-bright));
  z-index: 100;
  will-change: transform;
}

/* --------------------------------------------------------------------------
   5. HEADER / NAV
   -------------------------------------------------------------------------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 2px solid var(--ink);
  background: color-mix(in oklab, var(--background) 86%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  transition: box-shadow .3s var(--ease-out), background .3s;
}

header.site-header.scrolled {
  box-shadow: 0 5px 0 0 var(--ink);
  background: color-mix(in oklab, var(--background) 96%, transparent);
}

.header-inner {
  margin-inline: auto;
  max-width: 80rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem 1.25rem;
}

/* Logo */
.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(.9rem, 2.6vw, 1.15rem);
  letter-spacing: -.02em;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}

.brand-mark {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--lime);
  display: grid;
  place-items: center;
  transition: transform .4s var(--ease-pop), background .3s;
}

.brand:hover .brand-mark {
  transform: rotate(-20deg) scale(1.1);
  background: var(--sun);
}

.brand-mark i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--coral);
  animation: blink 2.6s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(.55); opacity: .65; }
}

/* Desktop nav — hidden on mobile */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 2rem;
  font-size: .9rem;
  font-weight: 700;
}

.desktop-nav a {
  position: relative;
  text-decoration: none;
  color: var(--ink);
  padding: .25rem 0;
  transition: color .2s;
}

.desktop-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 3px;
  border-radius: 2px;
  background: var(--coral);
  transition: width .28s var(--ease-out);
}

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

.desktop-nav a:hover::after,
.desktop-nav a.active::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: .7rem; }

.header-actions .cta-header {
  display: none;
  padding: .55rem 1.15rem;
  font-size: .85rem;
}

/* --- Hamburger: MOBILE ONLY, animates into an X --- */
#mobile-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  padding: 0;
  cursor: pointer;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 3px 3px 0 0 var(--ink);
  transition: background .22s, box-shadow .18s, transform .18s;
}

#mobile-menu-btn:hover { background: var(--lime); }

#mobile-menu-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 0 var(--ink);
}

#mobile-menu-btn[aria-expanded="true"] { background: var(--coral); }

.hamburger-bar {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
  transition:
    transform .4s var(--ease-pop),
    top .3s var(--ease-pop),
    opacity .2s ease,
    background .22s;
}

.hamburger-bar:nth-child(1) { top: calc(50% - 7px);    transform: translateX(-50%); }
.hamburger-bar:nth-child(2) { top: calc(50% - 1.25px); transform: translateX(-50%); }
.hamburger-bar:nth-child(3) { top: calc(50% + 4.5px);  transform: translateX(-50%); }

#mobile-menu-btn[aria-expanded="true"] .hamburger-bar { background: var(--paper); }

#mobile-menu-btn[aria-expanded="true"] .hamburger-bar:nth-child(1) {
  top: calc(50% - 1.25px);
  transform: translateX(-50%) rotate(45deg);
}

#mobile-menu-btn[aria-expanded="true"] .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: translateX(-50%) scaleX(0);
}

#mobile-menu-btn[aria-expanded="true"] .hamburger-bar:nth-child(3) {
  top: calc(50% - 1.25px);
  transform: translateX(-50%) rotate(-45deg);
}

/* --- Mobile nav panel: animated slide + staggered links --- */
#mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
  box-shadow: 0 8px 0 0 var(--ink);
  padding: .4rem 1.25rem 1.6rem;
  z-index: 59;
  /* collapsed state */
  visibility: hidden;
  opacity: 0;
  transform: translateY(-14px) scaleY(.96);
  transform-origin: top center;
  pointer-events: none;
  transition:
    opacity .3s var(--ease-out),
    transform .38s var(--ease-pop),
    visibility 0s linear .4s;
}

#mobile-nav.open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scaleY(1);
  pointer-events: auto;
  transition-delay: 0s;
}

#mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .95rem .2rem;
  border-bottom: 2px solid color-mix(in oklab, var(--ink) 12%, transparent);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  /* staggered entrance */
  opacity: 0;
  transform: translateX(-18px);
  transition: color .18s, padding-left .22s var(--ease-out);
}

#mobile-nav.open a {
  animation: navLinkIn .45s var(--ease-pop) forwards;
  animation-delay: calc(60ms + var(--i, 0) * 65ms);
}

@keyframes navLinkIn {
  from { opacity: 0; transform: translateX(-18px); }
  to   { opacity: 1; transform: translateX(0); }
}

#mobile-nav a:hover { color: var(--coral); padding-left: .6rem; }

#mobile-nav a .nav-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--coral);
  opacity: 0;
  transform: scale(0);
  transition: all .25s var(--ease-pop);
}

#mobile-nav a:hover .nav-dot { opacity: 1; transform: scale(1); }

#mobile-nav a.nav-cta {
  margin-top: 1.1rem;
  justify-content: center;
  border-bottom: none;
  background: var(--ink);
  color: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 4px 4px 0 0 var(--coral);
  padding: .95rem 1.4rem;
}

#mobile-nav a.nav-cta:hover { padding-left: 1.4rem; color: var(--paper); }

body.nav-open { overflow: hidden; }

@media (min-width: 768px) {
  .desktop-nav                 { display: flex; }
  .header-actions .cta-header  { display: inline-flex; }
  #mobile-menu-btn             { display: none; }
  #mobile-nav                  { display: none; }
}

/* --------------------------------------------------------------------------
   6. SCROLL REVEAL
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  will-change: transform, opacity;
  transition:
    opacity .7s var(--ease-out),
    transform .8s var(--ease-out),
    filter .7s var(--ease-out);
  transition-delay: var(--d, 0ms);
}

[data-reveal="up"]    { transform: translateY(42px); }
[data-reveal="down"]  { transform: translateY(-36px); }
[data-reveal="left"]  { transform: translateX(-48px); }
[data-reveal="right"] { transform: translateX(48px); }
[data-reveal="scale"] { transform: scale(.9); filter: blur(6px); }
[data-reveal="pop"]   { transform: translateY(28px) scale(.94) rotate(-1.5deg); }

[data-reveal="flip"] {
  transform: perspective(900px) rotateX(38deg) translateY(30px);
  transform-origin: top center;
}

[data-reveal].in {
  opacity: 1;
  transform: none;
  filter: none;
}

/* --------------------------------------------------------------------------
   7. MARQUEE
   Fixes the white wedge gaps that the -rotate-1 created at the viewport
   edges, and adds hover-pause plus a reverse direction.
   -------------------------------------------------------------------------- */
.marquee {
  position: relative;
  width: 106%;
  margin-left: -3%;
  overflow: hidden;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: .9rem 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 2.5rem;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.15rem, 3.4vw, 2.25rem);
  animation: marqueeX 34s linear infinite;
  will-change: transform;
}

.marquee.reverse .marquee-track { animation-direction: reverse; }

.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-track > span {
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
}

.marquee-track .sep {
  display: inline-block;
  color: var(--coral);
  animation: spinSlow 7s linear infinite;
}

@keyframes marqueeX {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

@keyframes spinSlow { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   8. CARDS, BUTTONS, CHIPS — micro-interactions
   -------------------------------------------------------------------------- */
.pop-card:not([class*="bg-"]) { background: var(--card); }

.pop-card {
  position: relative;
  border: 2px solid var(--ink);
  border-radius: 1.25rem;
  box-shadow: var(--shadow-pop);
  transition:
    transform .3s var(--ease-out),
    box-shadow .3s var(--ease-out);
}

/* JS-driven 3D tilt composes through these custom properties */
.tilt {
  transform:
    translate3d(var(--tx, 0px), var(--ty, 0px), 0)
    rotateX(var(--rx, 0deg))
    rotateY(var(--ry, 0deg));
}

@media (hover: hover) and (pointer: fine) {
  .pop-card:hover {
    box-shadow: var(--shadow-pop-lg);
    --tx: -3px;
    --ty: -3px;
  }

  /* Shine sweep */
  .pop-card.shine::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(105deg, transparent 38%, color-mix(in oklab, #fff 55%, transparent) 50%, transparent 62%);
    background-size: 280% 100%;
    background-position: 160% 0;
    opacity: 0;
    transition: background-position .75s var(--ease-out), opacity .3s;
  }

  .pop-card.shine:hover::after {
    background-position: -60% 0;
    opacity: 1;
  }
}

.btn-pop {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .95rem 1.7rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 4px 4px 0 0 var(--coral);
  overflow: hidden;
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
}

.btn-pop > * { position: relative; z-index: 1; }

/* Liquid fill wipe */
.btn-pop::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--coral);
  transform: translateY(101%);
  transition: transform .42s var(--ease-pop);
}

.btn-pop:hover::before { transform: translateY(0); }

.btn-pop:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 0 var(--coral);
}

.btn-pop:active {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 0 var(--coral);
}

.btn-pop svg { transition: transform .3s var(--ease-pop); }
.btn-pop:hover svg { transform: translateX(5px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .95rem 1.7rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  transition: background .25s, transform .2s var(--ease-out), box-shadow .2s;
}

.btn-ghost:hover {
  background: var(--lime);
  transform: translate(-3px, -3px);
  box-shadow: 5px 5px 0 0 var(--ink);
}

.chip:not([class*="bg-"]) { background: var(--card); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .4rem .95rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 700;
  transition: transform .22s var(--ease-pop), background .22s, box-shadow .22s;
}

@media (hover: hover) {
  .chip:hover {
    transform: translateY(-3px) rotate(-2deg) scale(1.05);
    box-shadow: 3px 3px 0 0 var(--ink);
    background: var(--lime);
  }
}

/* --------------------------------------------------------------------------
   9. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  margin-inline: auto;
  max-width: 80rem;
  padding: clamp(2rem, 6vw, 4rem) 1.25rem clamp(3rem, 8vw, 5rem);
  display: grid;
  gap: clamp(2.5rem, 5vw, 3.5rem);
  align-items: center;
}

@media (min-width: 1024px) {
  .hero { grid-template-columns: 1.1fr .9fr; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .4rem 1.1rem .4rem .45rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--sun);
  font-size: clamp(.68rem, 1.9vw, .82rem);
  font-weight: 700;
  box-shadow: 3px 3px 0 0 var(--ink);
}

.hero-badge .star {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  animation: spinSlow 6s linear infinite;
}

/* Headline: per-line stagger */
.hero-title .line {
  display: block;
  opacity: 0;
  transform: translateY(48px) rotate(2deg);
  animation: lineIn .95s var(--ease-pop) forwards;
  animation-delay: calc(140ms + var(--i, 0) * 130ms);
}

@keyframes lineIn {
  to { opacity: 1; transform: none; }
}

/* The "worth" highlight tag */
.tag-worth {
  position: relative;
  display: inline-block;
  padding: 0 .4em;
  border: 2px solid var(--ink);
  border-radius: 1rem;
  background: var(--coral);
  color: #fff;
  box-shadow: var(--shadow-pop-lg);
  animation: wobble 5s ease-in-out infinite 1.6s;
  overflow: hidden;
}

.tag-worth::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 40%, rgba(255, 255, 255, .5) 50%, transparent 60%);
  background-size: 300% 100%;
  animation: sweep 4.5s ease-in-out infinite 2.2s;
}

@keyframes wobble {
  0%, 45%, 100% { transform: rotate(-2deg); }
  55%           { transform: rotate(1.5deg) scale(1.03); }
  65%           { transform: rotate(-3deg); }
  75%           { transform: rotate(-2deg); }
}

@keyframes sweep {
  0%        { background-position: 160% 0; }
  35%, 100% { background-position: -70% 0; }
}

.text-grad {
  background: linear-gradient(100deg, var(--coral), var(--coral-bright) 45%, var(--coral));
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradShift 7s ease-in-out infinite;
}

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

/* Hero stat cards */
.stat-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}

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

.stat-card { padding: 1.4rem 1.3rem; overflow: hidden; }

.stat-card .stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5.2vw, 2.9rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat-card .stat-label {
  margin-top: .35rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .78rem;
}

.stat-card .spark {
  margin-top: .9rem;
  display: block;
  width: 100%;
  height: 26px;
  overflow: visible;
}

/* Scroll cue */
.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-top: 2.2rem;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted-foreground);
}

.scroll-cue .mouse {
  position: relative;
  width: 22px;
  height: 34px;
  flex: 0 0 auto;
  border: 2px solid var(--ink);
  border-radius: 12px;
}

.scroll-cue .mouse::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 6px;
  width: 3px;
  height: 7px;
  border-radius: 2px;
  background: var(--coral);
  transform: translateX(-50%);
  animation: wheel 1.7s ease-in-out infinite;
}

@keyframes wheel {
  0%, 100% { transform: translate(-50%, 0);    opacity: 1; }
  60%      { transform: translate(-50%, 12px); opacity: .2; }
}

/* --------------------------------------------------------------------------
   10. ILLUSTRATIONS — animated inline SVG scenes
   -------------------------------------------------------------------------- */
.illo {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

/* Hero phone scene */
.hero-illo-wrap {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 5vw, 3rem);
}

.hero-illo-wrap .orbit-ring {
  position: absolute;
  inset: 2%;
  border: 2px dashed color-mix(in oklab, var(--ink) 26%, transparent);
  border-radius: 50%;
  animation: spinSlow 48s linear infinite;
}

.hero-illo-wrap .orbit-ring.r2 {
  inset: 14%;
  border-style: dotted;
  animation-duration: 34s;
  animation-direction: reverse;
}

.hero-illo-stage {
  position: relative;
  width: 100%;
  max-width: 330px;
}

/* Floating reaction bubbles */
.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem .85rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: var(--shadow-pop);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .8rem;
  white-space: nowrap;
  z-index: 3;
  animation: floaty 6s ease-in-out infinite;
  animation-delay: var(--dl, 0s);
  will-change: transform;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50%      { transform: translateY(-14px) rotate(calc(var(--r, 0deg) + 2deg)); }
}

/* Chip placements around the phone. Pulled inward on small screens so they
   never push past the viewport. */
.float-chip.chip-tl { top: 2%;    left: -6%; }
.float-chip.chip-mr { top: 36%;   right: -8%; }
.float-chip.chip-bl { bottom: 12%; left: -10%; }

@media (min-width: 1024px) {
  .float-chip.chip-tl { left: -16%; }
  .float-chip.chip-mr { right: -20%; }
  .float-chip.chip-bl { left: -22%; }
}

@media (max-width: 420px) {
  .float-chip {
    font-size: .7rem;
    padding: .4rem .65rem;
  }
  .float-chip.chip-tl { left: -2%; }
  .float-chip.chip-mr { right: -2%; }
  .float-chip.chip-bl { left: -4%; }
}

/* Rising reactions inside the phone */
.react {
  animation: rise 3.4s ease-out infinite;
  animation-delay: var(--dl, 0s);
  opacity: 0;
}

@keyframes rise {
  0%   { opacity: 0; transform: translateY(0) scale(.5); }
  15%  { opacity: 1; transform: translateY(-10px) scale(1); }
  100% { opacity: 0; transform: translateY(-86px) scale(.8); }
}

/* Reel strip scrolling inside the phone.
   9 cards at a 96px pitch; shifting by 288px (3 cards) loops seamlessly. */
.reel-strip { animation: reelScroll 9s linear infinite; }

@keyframes reelScroll {
  from { transform: translateY(0); }
  to   { transform: translateY(-288px); }
}

/* A short stroke segment that travels the whole length of a path.
   Uses dashoffset rather than offset-path so it works everywhere. */
.comet {
  stroke-dasharray: 26 1200;
  animation: cometRun 3.4s linear infinite;
  animation-delay: var(--dl, 0s);
}

@keyframes cometRun {
  from { stroke-dashoffset: 1226; }
  to   { stroke-dashoffset: 0; }
}

/* Animated stroke drawing */
.draw {
  stroke-dasharray: var(--len, 400);
  stroke-dashoffset: var(--len, 400);
  animation: drawIn 2s var(--ease-out) forwards;
  animation-delay: var(--dl, .3s);
}

@keyframes drawIn { to { stroke-dashoffset: 0; } }

[data-reveal] .draw,
[data-reveal] .comet { animation-play-state: paused; }
[data-reveal].in .draw,
[data-reveal].in .comet { animation-play-state: running; }

/* Pulsing network nodes */
.pulse-node {
  transform-box: fill-box;
  transform-origin: center;
  animation: nodePulse 2.6s ease-in-out infinite;
  animation-delay: var(--dl, 0s);
}

@keyframes nodePulse {
  0%, 100% { transform: scale(1);    opacity: 1; }
  50%      { transform: scale(1.35); opacity: .75; }
}

.pulse-halo {
  transform-box: fill-box;
  transform-origin: center;
  animation: halo 2.8s ease-out infinite;
  animation-delay: var(--dl, 0s);
}

@keyframes halo {
  0%   { transform: scale(.6);  opacity: .7; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* Dashed connectors that flow */
.flow-line {
  stroke-dasharray: 8 10;
  animation: flowDash 1.4s linear infinite;
}

@keyframes flowDash { to { stroke-dashoffset: -18; } }

/* Bouncing bars (impressions) */
.bar-bounce {
  transform-box: fill-box;
  transform-origin: bottom center;
  animation: barBounce 1.8s ease-in-out infinite;
  animation-delay: var(--dl, 0s);
}

@keyframes barBounce {
  0%, 100% { transform: scaleY(.45); }
  50%      { transform: scaleY(1); }
}

/* Typing dots in chat bubbles */
.typing circle { animation: typeDot 1.3s ease-in-out infinite; }
.typing circle:nth-child(2) { animation-delay: .18s; }
.typing circle:nth-child(3) { animation-delay: .36s; }

@keyframes typeDot {
  0%, 100% { opacity: .3; transform: translateY(0); }
  40%      { opacity: 1;  transform: translateY(-3px); }
}

/* Megaphone shake */
.shake {
  transform-box: fill-box;
  transform-origin: 20% 70%;
  animation: shake 3.6s ease-in-out infinite;
}

@keyframes shake {
  0%, 70%, 100% { transform: rotate(0); }
  76%           { transform: rotate(-7deg); }
  82%           { transform: rotate(5deg); }
  88%           { transform: rotate(-3deg); }
}

/* Sound waves */
.wave {
  animation: waveOut 2s ease-out infinite;
  animation-delay: var(--dl, 0s);
}

@keyframes waveOut {
  0%   { opacity: 0; transform: translateX(-6px) scale(.8); }
  30%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(10px) scale(1.1); }
}

/* Service number badge */
.icon-badge {
  position: relative;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  flex: 0 0 auto;
  border: 2px solid var(--ink);
  border-radius: 1.1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.7rem;
  box-shadow: 3px 3px 0 0 var(--ink);
  transition: transform .35s var(--ease-pop);
}

.service-card:hover .icon-badge { transform: rotate(-8deg) scale(1.07); }

.icon-badge::before {
  content: '';
  position: absolute;
  inset: -9px;
  border: 2px dashed color-mix(in oklab, var(--ink) 30%, transparent);
  border-radius: 1.5rem;
  opacity: 0;
  transition: opacity .3s;
  animation: spinSlow 18s linear infinite;
}

.service-card:hover .icon-badge::before { opacity: 1; }

/* --------------------------------------------------------------------------
   11. SECTION DIVIDERS — animated zigzag / wave
   -------------------------------------------------------------------------- */
.divider {
  position: relative;
  width: 100%;
  height: 30px;
  overflow: hidden;
  line-height: 0;
}

.divider svg {
  width: 200%;
  height: 100%;
  display: block;
  animation: slideX 18s linear infinite;
}

.divider.reverse svg { animation-direction: reverse; }

@keyframes slideX {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   12. SECTION LAYOUT
   -------------------------------------------------------------------------- */
.page-wrap { overflow-x: clip; }

.section {
  margin-inline: auto;
  max-width: 80rem;
  padding: clamp(3.5rem, 9vw, 7rem) 1.25rem;
}

.section-band {
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .16em;
}

/* Two-column split */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split.lean { grid-template-columns: 1.15fr .85fr; }
}

/* Journey flow pills */
.journey {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-weight: 800;
}

.journey .pill {
  padding: .55rem 1.2rem;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  border: 2px solid var(--ink);
  transition: transform .25s var(--ease-pop), background .25s;
}

.journey .pill:hover { transform: translateY(-4px) rotate(-2deg); background: var(--sun); }

.journey .arr {
  color: var(--lime);
  display: inline-flex;
  animation: nudge 1.8s ease-in-out infinite;
}

@keyframes nudge {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(5px); }
}

/* Checklist rows */
.check-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .95rem 1.4rem;
  border: 2px solid var(--ink);
  border-radius: 1rem;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.3vw, 1.2rem);
  font-weight: 700;
  box-shadow: var(--shadow-pop);
  transition: transform .25s var(--ease-out), box-shadow .25s;
}

.check-row:hover {
  transform: translate(-4px, -4px);
  box-shadow: 9px 9px 0 0 var(--ink);
}

.check-row .tick {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--lime);
}

.check-row:hover .tick { animation: pop .45s var(--ease-pop); }

@keyframes pop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.3) rotate(12deg); }
  100% { transform: scale(1); }
}

/* Numbered pipeline list */
.pipeline { list-style: none; }

.pipeline li {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem 1.5rem;
  border-bottom: 2px solid var(--ink);
  transition: background .25s, padding-left .25s var(--ease-out);
}

.pipeline li:last-child { border-bottom: none; }

.pipeline li:hover { background: var(--lime); padding-left: 2rem; }

.pipeline li .n {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--coral);
  flex: 0 0 auto;
  transition: transform .3s var(--ease-pop);
}

.pipeline li:hover .n { transform: scale(1.25) rotate(-8deg); }

/* Services */
.service-card {
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.4rem, 3vw, 2.5rem);
}

@media (min-width: 860px) {
  .service-card { grid-template-columns: 200px 1fr; }
}

.service-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 860px) {
  .service-meta { display: block; }
  .service-meta .service-kicker { margin-top: 1rem; }
}

.service-kicker {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: .8rem;
}

/* Work cards */
.work-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  border-bottom: 2px solid var(--ink);
}

.work-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  line-height: .9;
  font-variant-numeric: tabular-nums;
}

.work-card { overflow: hidden; }
.work-card .arrow-out { transition: transform .35s var(--ease-pop); flex: 0 0 auto; }
.work-card:hover .arrow-out { transform: translate(6px, -6px) rotate(8deg); }

.link-underline {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 4px solid var(--coral);
  padding-bottom: 2px;
  transition: gap .25s var(--ease-pop), border-color .25s;
}

.link-underline:hover { gap: .9rem; border-color: var(--ink); }

/* Ecosystem brand rows */
.eco-row {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  padding: .95rem 1rem;
  border: 2px solid var(--ink);
  border-radius: .9rem;
  transition: transform .25s var(--ease-pop), box-shadow .25s;
}

.eco-row:hover { transform: translateX(6px) rotate(-1deg); box-shadow: 4px 4px 0 0 var(--ink); }

/* Logo tile. The monogram sits underneath; the <img> covers it when a real
   logo file is present, and script.js reveals the monogram again if the file
   is missing, so the row never shows a broken image. */
.eco-logo {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: #fff;
}

.eco-logo-fallback {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--ink);
}

.eco-logo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2px;
  display: block;
}

.eco-logo.no-logo .eco-logo-img { display: none; }

.eco-text { min-width: 0; }

.eco-name {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: 1.05rem;
}

.eco-name .ig-glyph {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  opacity: .75;
}

.eco-desc {
  margin-top: .15rem;
  font-size: .85rem;
  font-weight: 500;
}

.eco-followers {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-top: .5rem;
  padding: .25rem .65rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: color-mix(in oklab, #fff 70%, transparent);
  color: var(--ink);
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
}

.eco-followers b {
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}



/* Why-us cards */
.why-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

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

.why-card { padding: 1.75rem; }
.why-card .glyph { margin-bottom: .9rem; width: 46px; height: 46px; }
.why-card:hover .glyph { animation: pop .5s var(--ease-pop); }

/* Panel inside a 2-up card: the rule between the halves has to flip from a
   bottom border (stacked) to a right border (side by side). */
.split-panel { border-bottom: 2px solid var(--ink); }

@media (min-width: 860px) {
  .split-panel {
    border-bottom: 0;
    border-right: 2px solid var(--ink);
  }
}

/* Generic grids */
.grid-2 { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.grid-3 { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }

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

/* Contact card */
.cta-card {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 1.5rem;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  padding: clamp(2.2rem, 6vw, 5rem) clamp(1.3rem, 4vw, 3rem);
  box-shadow: 10px 10px 0 0 var(--coral);
}

.cta-card .blob {
  position: absolute;
  border-radius: 45% 55% 52% 48% / 50% 46% 54% 50%;
  filter: blur(2px);
  opacity: .85;
  animation: morph 12s ease-in-out infinite;
}

.cta-card .blob.b1 { width: 190px; height: 190px; background: var(--lime);         top: -62px;    left: -58px; }
.cta-card .blob.b2 { width: 220px; height: 220px; background: var(--sun);          bottom: -78px; right: -62px; animation-delay: -4s; }
.cta-card .blob.b3 { width: 120px; height: 120px; background: var(--coral-bright); top: 48%;      left: -48px;  animation-delay: -8s; opacity: .6; }

@keyframes morph {
  0%, 100% { border-radius: 45% 55% 52% 48% / 50% 46% 54% 50%; transform: rotate(0) scale(1); }
  33%      { border-radius: 60% 40% 35% 65% / 42% 58% 42% 58%; transform: rotate(60deg) scale(1.14); }
  66%      { border-radius: 38% 62% 58% 42% / 62% 38% 62% 38%; transform: rotate(-45deg) scale(.9); }
}

.cta-card .cta-inner { position: relative; z-index: 2; }

.cta-btn-light {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-top: 2rem;
  padding: 1.05rem 2.1rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: 5px 5px 0 0 var(--paper);
  transition: transform .22s var(--ease-out), box-shadow .22s, background .22s;
}

.cta-btn-light:hover {
  transform: translate(-4px, -4px);
  box-shadow: 9px 9px 0 0 var(--paper);
  background: var(--sun);
}

/* Confetti burst particles */
.confetti {
  position: fixed;
  width: 10px;
  height: 10px;
  z-index: 95;
  pointer-events: none;
  border: 1.5px solid var(--ink);
  will-change: transform, opacity;
}

/* Cursor blob (desktop only) */
#cursor-blob {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklab, var(--lime) 55%, transparent) 0%, transparent 68%);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: multiply;
  transform: translate3d(-50%, -50%, 0);
  transition: opacity .4s;
  will-change: transform;
}

.parallax { will-change: transform; }

/* --------------------------------------------------------------------------
   13. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 2px solid var(--ink);
  background: var(--paper);
}

.footer-inner {
  margin-inline: auto;
  max-width: 80rem;
  padding: clamp(2.5rem, 6vw, 3.5rem) 1.25rem;
}

.footer-stats {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}

.social-row { display: flex; gap: .7rem; margin-top: 1.25rem; }

.social-row a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  transition: transform .25s var(--ease-pop), background .25s, box-shadow .25s;
}

.social-row a:hover {
  transform: translate(-2px, -3px) rotate(-8deg);
  background: var(--lime);
  box-shadow: 3px 3px 0 0 var(--ink);
}

/* --------------------------------------------------------------------------
   14. REDUCED MOTION — honour the OS preference
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; }
  .hero-title .line { opacity: 1; transform: none; }
  .draw { stroke-dashoffset: 0; }
  #cursor-blob, .fx-bg { display: none; }
}
