/* ==========================================================================
   BIBABODOL DESIGN SYSTEM v2
   Playful editorial maximalism — sticker-craft spirit
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bowlby+One&family=Oswald:wght@400;500;600;700&family=Onest:wght@400;500;600;700;800&display=swap');

/* --------------------------------------------------------------------------
   TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Paper & ink */
  --cream: #FBF6E0;
  --cream-soft: #FDF8E8;
  --cream-warm: #F9EFC7;
  --maroon: #3D001B;
  --maroon-deep: #2A0013;
  --maroon-rich: #4A0826;
  --ink: #3D001B;
  --ink-mute: rgba(61, 0, 27, .62);
  --ink-light: rgba(61, 0, 27, .35);
  --paper: #FFFFFF;

  /* Accent palette */
  --pink-soft: #F6C2F4;
  --pink-coral: #F09FA8;
  --pink-blush: #FDD7E4;
  --green-mint: #C0ECBF;
  --green-soft: #D4F0D2;
  --green-sage: #A8D9A6;
  --yellow-bright: #FFE878;
  --yellow-soft: #FAFABF;
  --yellow-warm: #FCD96A;
  --blue-sky: #C7CAFF;
  --blue-soft: #DDE0FF;
  --purple-lilac: #CDABEB;
  --purple-soft: #E4D3F5;
  --tan-peach: #FAE0BE;
  --tan-warm: #F7D2A4;
  --red-alert: #E85A4F;

  /* Fonts */
  --font-wordmark: "Bowlby One", "Oswald", system-ui;
  --font-display: "Oswald", "Bowlby One", system-ui;
  --font-body: "Onest", "Inter", system-ui;

  /* Sizing */
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --radius-pill: 9999px;

  /* Shadows — physical, playful */
  --shadow-soft: 0 8px 24px rgba(61, 0, 27, .08);
  --shadow-lift: 0 16px 40px rgba(61, 0, 27, .12);
  --shadow-card: 0 12px 32px rgba(61, 0, 27, .10), 0 2px 4px rgba(61, 0, 27, .06);
  --shadow-sticker: 2px 3px 0 rgba(61, 0, 27, .15), 4px 6px 0 rgba(61, 0, 27, .05);
  --shadow-inset: inset 0 -4px 0 rgba(61, 0, 27, .08);

  /* Motion */
  --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);
  --ease-swift: cubic-bezier(.4, 0, .2, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-weight: 500;
  background: var(--cream);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  /* paper grain */
  background-image:
    radial-gradient(circle at 13% 27%, rgba(61, 0, 27, .015) 1px, transparent 1px),
    radial-gradient(circle at 77% 63%, rgba(61, 0, 27, .012) 1px, transparent 1px);
  background-size: 3px 3px, 5px 5px;
}

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

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

button { font-family: inherit; cursor: pointer; border: 0; background: none; }

input, textarea, select { font-family: inherit; font-size: inherit; }

/* --------------------------------------------------------------------------
   TYPOGRAPHY
   -------------------------------------------------------------------------- */
.wordmark {
  font-family: var(--font-wordmark);
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: .85;
  color: var(--maroon);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.05;
  color: var(--ink);
}

.h-display { font-size: clamp(80px, 14vw, 220px); letter-spacing: -.05em; line-height: .82; }
.h-section { font-size: clamp(40px, 6.5vw, 88px); letter-spacing: -.03em; line-height: 1; }
.h-subsection { font-size: clamp(28px, 4vw, 56px); }
.h-card { font-size: clamp(22px, 2vw, 28px); line-height: 1.15; letter-spacing: -.02em; }

p { line-height: 1.5; }
.lead { font-size: clamp(18px, 2vw, 26px); line-height: 1.35; letter-spacing: -.01em; }
.paragraph-xl { font-size: clamp(22px, 2.6vw, 38px); line-height: 1.3; font-weight: 700; letter-spacing: -.02em; }

/* --------------------------------------------------------------------------
   LAYOUT
   -------------------------------------------------------------------------- */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 28px; }
.container--narrow { max-width: 780px; }
.container--wide { max-width: 1440px; }
.container--full { max-width: 100%; padding: 0 28px; }

.section { position: relative; padding: clamp(60px, 10vw, 140px) 0; }
.section--dense { padding: clamp(40px, 6vw, 80px) 0; }
.section__head { text-align: center; margin-bottom: clamp(40px, 6vw, 80px); position: relative; }

/* --------------------------------------------------------------------------
   NAV
   -------------------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  padding: 16px 0;
  background: rgba(251, 246, 224, .82);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgba(61, 0, 27, .06);
  transition: opacity .25s var(--ease-swift), visibility .25s;
}
body.menu-open .nav { opacity: 0; visibility: hidden; pointer-events: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
body.menu-open { overflow: hidden; }
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1440px; margin: 0 auto; padding: 0 28px;
}
.nav__brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700;
  font-size: 15px; letter-spacing: .12em; text-transform: uppercase;
}
.nav__star {
  width: 22px; height: 22px; fill: var(--maroon);
  transition: transform .3s var(--ease-bounce);
}
.nav__brand:hover .nav__star { transform: rotate(90deg); }

.nav__menu {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius-pill);
  background: var(--maroon); color: var(--cream);
  font-family: var(--font-display); font-weight: 600;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  cursor: pointer;
  transition: transform .2s var(--ease-bounce), background .2s;
}
.nav__menu:hover { transform: translateY(-2px) rotate(-2deg); background: var(--maroon-rich); }
.nav__menu__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--yellow-bright);
}

/* Full-screen menu overlay */
.menu-overlay {
  position: fixed; inset: 0; z-index: 500;
  isolation: isolate;
  background: var(--maroon);
  color: var(--cream);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-100%);
  transition: transform .4s var(--ease-swift), opacity .3s var(--ease-swift), visibility .3s;
  display: flex; flex-direction: column;
  padding: 40px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}
.menu-overlay.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.menu-overlay__close {
  align-self: flex-end; color: var(--cream);
  font-size: 28px; padding: 8px;
}
.menu-overlay__links {
  margin: auto 0; display: flex; flex-direction: column; gap: clamp(4px, 1vw, 10px);
  padding-left: clamp(20px, 6vw, 80px);
  padding-block: clamp(16px, 3vw, 28px);
  max-width: 720px;
}
.menu-overlay__links a {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(22px, 3.6vw, 44px); line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--cream);
  transition: color .2s, transform .3s var(--ease-bounce);
  display: inline-block;
  padding-block: 4px;
}
.menu-overlay__links a:hover { color: var(--yellow-bright); transform: translateX(20px) rotate(-2deg); }

/* --------------------------------------------------------------------------
   STICKER — rotated pill badge
   -------------------------------------------------------------------------- */
.sticker {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: var(--yellow-bright);
  color: var(--maroon);
  font-family: var(--font-body); font-weight: 800; font-style: italic;
  font-size: 13px; letter-spacing: .02em;
  box-shadow: var(--shadow-sticker);
  border: 2px solid var(--maroon);
  white-space: nowrap;
  transform: rotate(-6deg);
  transition: transform .25s var(--ease-bounce);
  position: relative;
  user-select: none;
}
.sticker--purple { background: var(--purple-lilac); }
.sticker--pink   { background: var(--pink-coral); }
.sticker--green  { background: var(--green-mint); }
.sticker--blue   { background: var(--blue-sky); }
.sticker--cream  { background: var(--cream-warm); }
.sticker--dark   { background: var(--maroon); color: var(--cream); }
.sticker--tilt-r { transform: rotate(8deg); }
.sticker--tilt-rr { transform: rotate(14deg); }
.sticker--tilt-ll { transform: rotate(-14deg); }
.sticker--lg { font-size: 15px; padding: 9px 20px; }
.sticker--sm { font-size: 10px; padding: 5px 12px; border-width: 1.5px; }
.sticker:hover { transform: rotate(-2deg) scale(1.08); }
.sticker--tilt-r:hover { transform: rotate(2deg) scale(1.08); }
.sticker--tilt-rr:hover { transform: rotate(4deg) scale(1.08); }
.sticker--tilt-ll:hover { transform: rotate(-4deg) scale(1.08); }

@keyframes wobble {
  0%, 100% { transform: rotate(var(--rot, -6deg)); }
  50% { transform: rotate(calc(var(--rot, -6deg) + 3deg)) translateY(-2px); }
}
.sticker--wobble { animation: wobble 4s ease-in-out infinite; --rot: -6deg; }

/* --------------------------------------------------------------------------
   PILL BUTTON
   -------------------------------------------------------------------------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display); font-weight: 600;
  font-size: 15px; letter-spacing: .02em;
  background: var(--maroon); color: var(--cream);
  border: 2px solid var(--maroon);
  cursor: pointer; text-decoration: none;
  transition: transform .2s var(--ease-bounce), box-shadow .2s, background .2s;
  white-space: nowrap;
}
.pill:hover { transform: translateY(-3px); box-shadow: 0 8px 0 var(--maroon-deep); }
.pill:active { transform: translateY(-1px); box-shadow: 0 4px 0 var(--maroon-deep); }
.pill--yellow { background: var(--yellow-bright); color: var(--maroon); border-color: var(--maroon); }
.pill--yellow:hover { box-shadow: 0 8px 0 var(--maroon); }
.pill--coral { background: var(--pink-coral); color: var(--maroon); }
.pill--green { background: var(--green-mint); color: var(--maroon); }
.pill--tan { background: var(--tan-peach); color: var(--maroon); }
.pill--ghost { background: transparent; color: var(--maroon); }
.pill--ghost:hover { background: var(--maroon); color: var(--cream); }
.pill--sm { padding: 10px 18px; font-size: 13px; }
.pill--xl { padding: 20px 38px; font-size: 17px; }

/* --------------------------------------------------------------------------
   CARDS
   -------------------------------------------------------------------------- */
.card-soft {
  background: var(--paper);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 3vw, 40px);
  box-shadow: var(--shadow-card);
  border: 2px solid var(--maroon);
  transition: transform .3s var(--ease-bounce), box-shadow .3s;
  position: relative;
}
.card-soft:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: var(--shadow-lift); }
.card-soft--pink   { background: var(--pink-soft); }
.card-soft--coral  { background: var(--pink-coral); }
.card-soft--green  { background: var(--green-mint); }
.card-soft--yellow { background: var(--yellow-soft); }
.card-soft--blue   { background: var(--blue-sky); }
.card-soft--purple { background: var(--purple-lilac); }
.card-soft--tan    { background: var(--tan-peach); }
.card-soft--cream  { background: var(--cream-warm); }
.card-soft--dark   { background: var(--maroon); color: var(--cream); }
.card-soft--dark:hover { transform: translateY(-6px) rotate(.6deg); }

/* Inner white "stage" within colored card */
.card-stage {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 2px solid var(--maroon);
  box-shadow: var(--shadow-inset);
}

/* --------------------------------------------------------------------------
   SCALLOP DIVIDERS (SVG curves between sections)
   -------------------------------------------------------------------------- */
.scallop {
  position: relative;
  display: block;
  width: 100%;
  height: 60px;
  background-repeat: repeat-x;
  background-position: bottom;
  background-size: 80px 60px;
}
.scallop--bottom {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 60' preserveAspectRatio='none'><path d='M0,60 L0,0 Q20,60 40,0 T80,0 L80,60 Z' fill='%23FBF6E0'/></svg>");
}
.scallop--top {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 60' preserveAspectRatio='none'><path d='M0,0 L0,60 Q20,0 40,60 T80,60 L80,0 Z' fill='%23FBF6E0'/></svg>");
}

/* Section dividers paint the COLOR OF THE NEXT SECTION onto the current section's edge */
.scallop-next-cream       { --scallop-color: %23FBF6E0; }
.scallop-next-cream-soft  { --scallop-color: %23FDF8E8; }
.scallop-next-pink        { --scallop-color: %23F6C2F4; }
.scallop-next-green       { --scallop-color: %23C0ECBF; }
.scallop-next-yellow      { --scallop-color: %23FFE878; }
.scallop-next-blue        { --scallop-color: %23C7CAFF; }
.scallop-next-tan         { --scallop-color: %23FAE0BE; }
.scallop-next-maroon      { --scallop-color: %233D001B; }

.scallop-edge {
  display: block; width: 100%; height: 48px;
  background-repeat: repeat-x;
  background-size: 80px 48px;
  background-position: center bottom;
}
.scallop-edge--down {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 48' preserveAspectRatio='none'><path d='M0,48 L0,0 Q20,48 40,0 T80,0 L80,48 Z' fill='%23FBF6E0'/></svg>");
}

/* --------------------------------------------------------------------------
   BACKGROUND PATTERNS
   -------------------------------------------------------------------------- */
.bg-dot-grid {
  background-image: radial-gradient(circle, rgba(61, 0, 27, .16) 1.2px, transparent 1.5px);
  background-size: 24px 24px;
}
.bg-blue-dot {
  background-color: var(--blue-sky);
  background-image: radial-gradient(circle, rgba(61, 0, 27, .12) 1.2px, transparent 1.5px);
  background-size: 22px 22px;
}
.bg-cream { background-color: var(--cream); }
.bg-pink { background-color: var(--pink-soft); }
.bg-pink-coral { background-color: var(--pink-coral); }
.bg-green { background-color: var(--green-mint); }
.bg-yellow { background-color: var(--yellow-soft); }
.bg-tan { background-color: var(--tan-peach); }
.bg-maroon { background-color: var(--maroon); color: var(--cream); }
.bg-maroon-deep { background-color: var(--maroon-deep); color: var(--cream); }

/* Pink radial sunburst — for hero feature */
.radial-burst {
  position: relative;
  background:
    repeating-conic-gradient(from 0deg at 50% 100%,
      var(--pink-soft) 0deg 10deg,
      var(--pink-blush) 10deg 20deg);
  isolation: isolate;
}
.radial-burst::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 100%,
    transparent 0%, transparent 30%, var(--cream) 85%);
  z-index: 0;
}
.radial-burst > * { position: relative; z-index: 1; }

/* --------------------------------------------------------------------------
   HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(60px, 8vw, 120px) 0 0;
  background: var(--cream);
  overflow: hidden;
}
.hero__wordmark {
  position: relative;
  text-align: center;
  font-family: var(--font-wordmark);
  font-weight: 400;
  font-size: clamp(80px, 16vw, 260px);
  line-height: .85;
  letter-spacing: -.05em;
  color: var(--maroon);
  padding: 0 12px;
  margin: 40px 0 20px;
}
.hero__wordmark .accent {
  background: linear-gradient(135deg, var(--pink-coral) 0%, var(--yellow-bright) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  -webkit-text-stroke: 3px var(--maroon);
  padding: 0 2px;
}
.hero__sticker { position: absolute; z-index: 3; }
.hero__sticker--tl { top: 2%; left: 12%; }
.hero__sticker--tr { top: 4%; right: 8%; }
.hero__sticker--bl { bottom: 30%; left: 16%; }
.hero__sticker--br { bottom: 34%; right: 14%; }

.hero__tagline {
  text-align: center;
  margin: 0 auto 32px;
  max-width: 22ch;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 3.2vw, 44px);
  line-height: 1.1;
  letter-spacing: -.02em;
}
.hero__ctas {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-bottom: clamp(40px, 6vw, 80px);
}

/* Hero feature block (game with radial burst) */
.hero-feature {
  position: relative;
  padding: clamp(60px, 8vw, 120px) 20px clamp(40px, 6vw, 80px);
  isolation: isolate;
}
.hero-feature__card {
  max-width: 760px; margin: 0 auto; padding: clamp(32px, 5vw, 60px);
  background: var(--cream-soft);
  border: 2px solid var(--maroon);
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: var(--shadow-card);
  position: relative;
}
.hero-feature__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(28px, 4vw, 48px);
  color: var(--maroon); letter-spacing: -.02em;
  margin-bottom: 12px;
}
.hero-feature__boxes {
  display: flex; gap: 24px; justify-content: center; margin-top: 32px; flex-wrap: wrap;
}
.hero-feature__box {
  width: clamp(140px, 20vw, 180px); aspect-ratio: 3/4;
  border-radius: var(--radius-md);
  border: 2px solid var(--maroon);
  background: var(--yellow-bright);
  position: relative; overflow: hidden;
  transform: rotate(-4deg);
  box-shadow: 4px 6px 0 var(--maroon);
}
.hero-feature__box:nth-child(2) { background: var(--pink-coral); transform: rotate(6deg); }
.hero-feature__box:nth-child(3) { background: var(--blue-sky); transform: rotate(-2deg); }
.hero-feature__box::after {
  content: "БИ БА БОДОЛ"; position: absolute; inset: 12%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700;
  font-size: 14px; letter-spacing: .12em; color: var(--maroon);
  border: 2px solid var(--maroon); border-radius: 8px;
  background: rgba(255,255,255,.4);
}

/* --------------------------------------------------------------------------
   VALUES TRIPTYCH
   -------------------------------------------------------------------------- */
.values-grid {
  display: grid; gap: clamp(20px, 3vw, 40px);
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .values-grid { grid-template-columns: repeat(3, 1fr); } }
.value-card { text-align: center; padding: 20px; position: relative; }
.value-card__art {
  background: var(--green-mint);
  border-radius: var(--radius-lg);
  border: 2px solid var(--maroon);
  padding: 28px;
  margin-bottom: 28px; min-height: 220px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  transition: transform .3s var(--ease-bounce);
}
.value-card:hover .value-card__art { transform: rotate(-2deg); }
.value-card:nth-child(2) .value-card__art { background: var(--pink-soft); }
.value-card:nth-child(3) .value-card__art { background: var(--yellow-soft); }
.value-card__title { font-size: clamp(26px, 3vw, 34px); margin-bottom: 10px; }
.value-card__desc { color: var(--ink-mute); max-width: 28ch; margin: 0 auto; font-size: 15px; }

/* --------------------------------------------------------------------------
   STATS CARD
   -------------------------------------------------------------------------- */
.stats {
  background: var(--pink-coral);
  border: 2px solid var(--maroon);
  border-radius: var(--radius-xl);
  padding: clamp(32px, 5vw, 60px);
  position: relative;
  box-shadow: var(--shadow-card);
}
.stats__grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(2, 1fr);
  text-align: center;
}
@media (min-width: 720px) { .stats__grid { grid-template-columns: repeat(4, 1fr); } }
.stat__num {
  font-family: var(--font-wordmark); font-weight: 400;
  font-size: clamp(54px, 7vw, 100px);
  line-height: 1; letter-spacing: -.03em;
  color: var(--maroon);
  display: inline-flex; align-items: baseline; gap: 2px;
}
.stat__num small { font-size: .5em; }
.stat__label {
  margin-top: 6px; font-family: var(--font-display);
  font-weight: 600; font-size: 15px;
  color: var(--maroon); text-transform: uppercase; letter-spacing: .08em;
}
.stats__label {
  position: absolute; top: -18px; left: 24px;
}

/* Arc of pill icons */
.pill-arc {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 14px; margin: 48px auto;
  max-width: 1100px;
}
.pill-arc__item {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-radius: var(--radius-pill);
  background: var(--paper); border: 2px solid var(--maroon);
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  box-shadow: 3px 3px 0 var(--maroon);
  transition: transform .25s var(--ease-bounce);
}
.pill-arc__item:hover { transform: translateY(-4px) rotate(-2deg); }
.pill-arc__item:nth-child(1) { transform: translateY(-30px) rotate(-8deg); background: var(--green-mint); }
.pill-arc__item:nth-child(2) { transform: translateY(-50px) rotate(-4deg); background: var(--yellow-bright); }
.pill-arc__item:nth-child(3) { transform: translateY(-60px); background: var(--pink-coral); }
.pill-arc__item:nth-child(4) { transform: translateY(-55px) rotate(3deg); background: var(--blue-sky); }
.pill-arc__item:nth-child(5) { transform: translateY(-40px) rotate(5deg); background: var(--purple-lilac); }
.pill-arc__item:nth-child(6) { transform: translateY(-25px) rotate(8deg); background: var(--tan-peach); }
.pill-arc__item:nth-child(7) { transform: translateY(-10px) rotate(-6deg); background: var(--yellow-soft); }
.pill-arc__icon { width: 22px; height: 22px; flex-shrink: 0; }

/* --------------------------------------------------------------------------
   PROJECT / CASE STUDY CARDS (2x2 grid)
   -------------------------------------------------------------------------- */
.project-grid {
  display: grid; gap: clamp(20px, 3vw, 32px);
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
.project-card {
  position: relative;
  border: 2px solid var(--maroon);
  border-radius: var(--radius-xl);
  padding: clamp(32px, 4vw, 48px);
  aspect-ratio: 1.15 / 1;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
  transition: transform .3s var(--ease-bounce), box-shadow .3s;
  box-shadow: var(--shadow-card);
}
.project-card:hover { transform: translateY(-8px) rotate(-.8deg); box-shadow: var(--shadow-lift); }
.project-card--pink { background: var(--pink-coral); }
.project-card--green { background: var(--green-mint); }
.project-card--blue { background: var(--blue-sky); }
.project-card--yellow { background: var(--yellow-bright); }
.project-card__decoration {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 60%; aspect-ratio: 1;
  opacity: .9;
}
.project-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; position: relative; z-index: 2; }
.project-card__name { font-family: var(--font-display); font-weight: 700; font-size: clamp(18px, 2vw, 22px); }

/* --------------------------------------------------------------------------
   SERVICE DIRECTORY CARDS (dark section)
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid; gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--maroon);
  box-shadow: 4px 4px 0 var(--maroon);
  transition: transform .25s var(--ease-bounce);
  display: flex; flex-direction: column; gap: 12px;
  min-height: 280px;
}
.service-card:hover { transform: translateY(-6px) rotate(-.5deg); }
.service-card__name {
  font-family: var(--font-display); font-weight: 700; font-size: 20px;
  letter-spacing: -.01em;
  display: flex; align-items: center; gap: 10px;
}
.service-card__logo {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 8px; background: var(--paper); border: 1.5px solid var(--maroon);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px;
}
.service-card__desc { font-size: 14px; line-height: 1.5; color: var(--maroon); }
.service-card__links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.service-card__link {
  padding: 5px 12px; border-radius: var(--radius-pill);
  background: var(--paper); border: 1.5px solid var(--maroon);
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
  transition: transform .2s, background .2s;
}
.service-card__link:hover { transform: translateY(-2px); background: var(--yellow-bright); }

/* --------------------------------------------------------------------------
   EMERGENCY CONTACTS TABLE
   -------------------------------------------------------------------------- */
.emergency-card {
  background: var(--pink-soft);
  border: 2px solid var(--maroon);
  border-radius: var(--radius-xl);
  padding: clamp(32px, 5vw, 64px);
  box-shadow: var(--shadow-card);
  position: relative;
}
.emergency-card__head {
  text-align: center; margin-bottom: 48px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.emergency-card__star { width: 56px; height: 56px; color: var(--red-alert); }
.emergency-table {
  width: 100%; border-collapse: separate; border-spacing: 0 8px;
}
.emergency-table tr {
  background: var(--paper);
  transition: transform .2s, background .2s;
}
.emergency-table tr:hover { transform: translateX(4px); background: var(--yellow-soft); }
.emergency-table td {
  padding: 14px 20px;
  border-top: 1.5px solid var(--maroon); border-bottom: 1.5px solid var(--maroon);
  font-size: 15px;
}
.emergency-table td:first-child { border-left: 1.5px solid var(--maroon); border-radius: 12px 0 0 12px; padding-left: 24px; }
.emergency-table td:last-child { border-right: 1.5px solid var(--maroon); border-radius: 0 12px 12px 0; text-align: right; font-weight: 700; }
.emergency-table td:last-child a { display: inline-flex; align-items: center; gap: 8px; color: var(--maroon); }
.emergency-table td:last-child a::before { content: "📞"; font-size: 14px; }

/* --------------------------------------------------------------------------
   TESTIMONIAL CAROUSEL
   -------------------------------------------------------------------------- */
.carousel {
  position: relative;
  margin: 0 auto;
  max-width: 1440px;
  padding: 0 20px;
}
.carousel__track {
  display: flex; gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
  padding: 30px 8px 40px;
}
.carousel__track::-webkit-scrollbar { display: none; }
.testimonial {
  flex: 0 0 clamp(280px, 30vw, 340px);
  scroll-snap-align: start;
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--maroon);
  box-shadow: 4px 4px 0 var(--maroon);
  position: relative;
  display: flex; flex-direction: column; gap: 16px;
}
.testimonial--green  { background: var(--green-mint); }
.testimonial--pink   { background: var(--pink-soft); }
.testimonial--blue   { background: var(--blue-sky); }
.testimonial--yellow { background: var(--yellow-soft); }
.testimonial--purple { background: var(--purple-lilac); }
.testimonial__head { display: flex; align-items: center; gap: 12px; }
.testimonial__avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--paper); border: 1.5px solid var(--maroon);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px;
}
.testimonial__name { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.testimonial__quote {
  background: var(--paper); padding: 20px;
  border-radius: var(--radius-md); border: 1.5px solid var(--maroon);
  font-size: 15px; line-height: 1.5;
  flex: 1;
}
.testimonial__role {
  display: flex; align-items: center; gap: 10px; margin-top: auto;
  font-size: 12px; color: var(--ink-mute);
}
.testimonial__badge {
  padding: 3px 10px; border-radius: var(--radius-pill);
  background: var(--paper); border: 1px solid var(--maroon);
  font-weight: 700; font-size: 10px; text-transform: uppercase; letter-spacing: .05em;
}
.carousel__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  display: flex; gap: 12px;
}
.carousel__btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--maroon); color: var(--cream);
  border: 2px solid var(--maroon);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; cursor: pointer;
  transition: transform .2s var(--ease-bounce), background .2s;
}
.carousel__btn:hover { transform: scale(1.1); background: var(--maroon-rich); }
.carousel__prev { left: -10px; }
.carousel__next { right: -10px; }
@media (max-width: 760px) {
  .carousel__prev { left: auto; right: 60px; top: auto; bottom: -60px; transform: none; }
  .carousel__next { right: 10px; top: auto; bottom: -60px; transform: none; }
}
.carousel__dots {
  display: flex; justify-content: center; gap: 8px; margin-top: 24px;
}
.carousel__dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--ink-light); cursor: pointer;
  transition: background .2s, transform .2s;
}
.carousel__dot.active { background: var(--maroon); transform: scale(1.3); }

/* --------------------------------------------------------------------------
   TEAM CARDS
   -------------------------------------------------------------------------- */
.team-grid {
  display: grid; gap: clamp(16px, 2vw, 24px);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .team-grid { grid-template-columns: repeat(4, 1fr); } }

.team-card {
  padding: 24px;
  border-radius: var(--radius-xl);
  border: 2px solid var(--maroon);
  box-shadow: 4px 6px 0 var(--maroon);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px;
  position: relative;
  transition: transform .3s var(--ease-bounce);
}
.team-card:hover { transform: translateY(-8px) rotate(-1deg); }
.team-card--pink   { background: var(--pink-coral); }
.team-card--green  { background: var(--green-mint); }
.team-card--purple { background: var(--purple-lilac); }
.team-card--cream  { background: var(--cream-warm); }
.team-card__badge {
  position: absolute; top: -12px; right: -10px;
  z-index: 2;
}
.team-card__portrait {
  width: 100%; aspect-ratio: 4/5;
  background: var(--paper); border: 2px solid var(--maroon);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.team-card__name { font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.team-card__role { font-size: 13px; color: var(--ink-mute); margin-top: -10px; }
.team-card__social { display: flex; gap: 8px; }
.team-card__social a {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--paper); border: 1.5px solid var(--maroon);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .2s var(--ease-bounce);
}
.team-card__social a:hover { transform: translateY(-2px) rotate(-8deg); background: var(--yellow-bright); }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq__item {
  background: var(--yellow-bright);
  border: 2px solid var(--maroon);
  border-radius: var(--radius-pill);
  overflow: hidden;
  transition: border-radius .3s;
}
.faq__item[open] { border-radius: var(--radius-xl); background: var(--yellow-warm); }
.faq__summary {
  list-style: none;
  padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
}
.faq__summary::-webkit-details-marker { display: none; }
.faq__chevron {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--maroon); color: var(--cream);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .3s var(--ease-bounce);
  font-size: 14px; flex-shrink: 0;
}
.faq__item[open] .faq__chevron { transform: rotate(180deg); background: var(--pink-coral); color: var(--maroon); }
.faq__body {
  padding: 0 24px 22px;
  font-size: 15px; line-height: 1.55;
  color: var(--maroon);
}

/* --------------------------------------------------------------------------
   CONTACT FORM
   -------------------------------------------------------------------------- */
.contact-wrap {
  display: grid; gap: clamp(32px, 4vw, 60px);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 800px) { .contact-wrap { grid-template-columns: 1fr 1fr; } }
.contact-mascot {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.contact-bubble {
  position: absolute; top: 4%; right: 0;
  background: var(--yellow-bright);
  border: 2px solid var(--maroon);
  border-radius: var(--radius-pill);
  padding: 12px 22px;
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  box-shadow: var(--shadow-sticker);
  transform: rotate(6deg);
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.contact-form__field { display: flex; flex-direction: column; gap: 6px; }
.contact-form__label {
  font-family: var(--font-display); font-weight: 600; font-size: 13px;
  text-transform: uppercase; letter-spacing: .12em; color: var(--ink-mute);
}
.contact-form__input, .contact-form__textarea {
  padding: 10px 0;
  background: transparent;
  border: 0; border-bottom: 2px solid var(--maroon);
  font-size: 17px; color: var(--ink);
  outline: none;
}
.contact-form__input:focus, .contact-form__textarea:focus {
  border-bottom-color: var(--pink-coral);
}
.contact-form__textarea { resize: vertical; min-height: 80px; }
.contact-form__submit { align-self: flex-start; margin-top: 8px; }

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background: var(--maroon-deep);
  color: var(--cream);
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 6vw, 96px) 0 0;
}
.footer__top {
  display: grid;
  gap: clamp(32px, 4vw, 56px);
  grid-template-columns: 1fr;
  padding-bottom: clamp(40px, 5vw, 72px);
}
@media (min-width: 640px)  { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer__top { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; } }

.footer__col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.footer__col h4 {
  color: var(--pink-coral);
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  letter-spacing: .16em; text-transform: uppercase;
  margin-bottom: 20px;
}
.footer__col > a {
  color: rgba(251, 246, 224, .82);
  font-size: 15px; line-height: 1.5;
  padding: 4px 0;
  text-decoration: none;
  transition: color .2s var(--ease-swift), transform .2s var(--ease-swift);
  width: fit-content;
}
.footer__col > a:hover { color: var(--yellow-bright); transform: translateX(6px); }
.footer__col p { color: rgba(251, 246, 224, .82); font-size: 15px; line-height: 1.5; }

/* Contact list */
.footer__contact { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 18px; }
.footer__contact li { display: flex; flex-direction: column; gap: 2px; }
.footer__contact li > span:first-child {
  color: var(--pink-coral);
  font-family: var(--font-display); font-weight: 700; font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase;
}
.footer__contact li a,
.footer__contact li p { color: rgba(251, 246, 224, .92); font-size: 15px; line-height: 1.45; }
.footer__contact li a:hover { color: var(--yellow-bright); }

/* Brand column */
.footer__brand-col { gap: 20px; }
.footer__brand-row {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--cream);
}
.footer__brand-row svg { width: 22px; height: 22px; fill: var(--pink-coral); }
.footer__tagline {
  font-size: 16px; line-height: 1.45;
  color: rgba(251, 246, 224, .76);
  max-width: 34ch;
}
.footer__social { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.footer__social a {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(251, 246, 224, .06);
  border: 1.5px solid rgba(251, 246, 224, .18);
  color: var(--cream);
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  transition: background .2s, transform .25s var(--ease-bounce), border-color .2s, color .2s;
}
.footer__social a:hover {
  background: var(--pink-coral); color: var(--maroon);
  border-color: var(--pink-coral);
  transform: translateY(-3px) rotate(-6deg);
}

/* Wordmark — SVG auto-fits container width */
.footer__wordmark-wrap {
  border-top: 1px solid rgba(251, 246, 224, .1);
  padding: clamp(28px, 4vw, 56px) 0 clamp(16px, 2vw, 24px);
  overflow: hidden;
}
.footer__wordmark-svg {
  display: block;
  width: 100%;
  height: auto;
  color: var(--pink-coral);
}
.footer__wordmark-svg text { font-family: var(--font-wordmark); }

.footer__bottom {
  border-top: 1px solid rgba(251, 246, 224, .1);
  padding: 20px 0 28px;
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
  font-size: 12px; color: rgba(251, 246, 224, .55);
}
.footer__bottom a { color: inherit; text-decoration: underline; }

/* --------------------------------------------------------------------------
   UTILITIES
   -------------------------------------------------------------------------- */
.u-text-center { text-align: center; }
.u-mt-xs { margin-top: 8px; } .u-mt-sm { margin-top: 16px; } .u-mt { margin-top: 32px; } .u-mt-lg { margin-top: 48px; }
.u-mb-xs { margin-bottom: 8px; } .u-mb-sm { margin-bottom: 16px; } .u-mb { margin-bottom: 32px; } .u-mb-lg { margin-bottom: 48px; }
.u-stack { display: flex; flex-direction: column; }
.u-flex { display: flex; }
.u-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.u-between { justify-content: space-between; }
.u-center { align-items: center; justify-content: center; }
.u-ink-mute { color: var(--ink-mute); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .6s, transform .6s var(--ease-swift); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* --------------------------------------------------------------------------
   DOODLES (decorative SVG helpers)
   -------------------------------------------------------------------------- */
.doodle {
  position: absolute; pointer-events: none; z-index: 1;
  color: var(--maroon);
}
.doodle--star { animation: spin 20s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.doodle--float { animation: float 3s ease-in-out infinite; }

/* Marquee (for potential use) */
.marquee { display: flex; overflow: hidden; }
.marquee__track { display: flex; gap: 40px; animation: marquee 30s linear infinite; white-space: nowrap; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   RESPONSIVE CLEANUPS
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .hero__sticker--tl { top: 1%; left: 2%; }
  .hero__sticker--tr { top: 2%; right: 2%; }
  .hero__sticker--bl, .hero__sticker--br { display: none; }
}

/* ==========================================================================
   LEGACY COMPAT LAYER — keeps sub-pages (blog, emergency, services, wellness,
   about, future, 404) working while they share the new design tokens.
   ========================================================================== */

/* Old nav (blog.html etc. use .nav__links / .nav__cta / .nav__burger) */
.nav__logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700;
  font-size: 18px; letter-spacing: .08em; text-transform: uppercase;
}
.nav__links { display: flex; align-items: center; gap: 24px; }
.nav__links a { font-size: 14px; font-weight: 600; font-family: var(--font-body); padding: 6px 0; }
.nav__links a:hover { color: var(--pink-coral); }
.nav__cta {
  display: inline-flex; padding: 10px 18px; border-radius: var(--radius-pill);
  background: var(--maroon); color: var(--cream) !important; font-size: 13px;
  text-transform: uppercase; letter-spacing: .1em; font-weight: 600;
  border: 2px solid var(--maroon);
  transition: transform .2s var(--ease-bounce);
}
.nav__cta:hover { transform: translateY(-2px) rotate(-2deg); }
.nav__burger { display: none; background: none; border: 0; font-size: 20px; cursor: pointer; }
@media (max-width: 860px) {
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: var(--cream);
    padding: 24px; gap: 16px;
    border-bottom: 1px solid rgba(61,0,27,.08);
    display: none;
  }
  .nav__links.open { display: flex; }
  .nav__burger { display: block; }
}

/* Old hero */
.hero__eyebrow {
  display: inline-block; padding: 8px 18px; border-radius: var(--radius-pill);
  background: var(--yellow-bright); border: 2px solid var(--maroon);
  font-family: var(--font-body); font-weight: 800; font-style: italic;
  font-size: 13px; box-shadow: var(--shadow-sticker);
  margin-bottom: 20px; transform: rotate(-3deg);
}
.hero__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(48px, 7vw, 88px); line-height: 1;
  max-width: 20ch; margin: 0 auto 20px;
  color: var(--maroon);
}
.hero__sub {
  font-size: clamp(16px, 2vw, 20px); line-height: 1.4;
  color: var(--ink-mute); max-width: 56ch; margin: 0 auto 32px;
}
.hero__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* .btn = alias of .pill (identical visual, legacy markup support) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px; border-radius: var(--radius-pill);
  font-family: var(--font-display); font-weight: 600;
  font-size: 15px; letter-spacing: .02em;
  background: var(--maroon); color: var(--cream);
  border: 2px solid var(--maroon);
  cursor: pointer; text-decoration: none;
  transition: transform .2s var(--ease-bounce), box-shadow .2s, background .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 8px 0 var(--maroon-deep); }
.btn:active { transform: translateY(-1px); box-shadow: 0 4px 0 var(--maroon-deep); }
.btn--primary { background: var(--maroon); color: var(--cream); }
.btn--outline { background: transparent; color: var(--maroon); }
.btn--outline:hover { background: var(--maroon); color: var(--cream); box-shadow: 0 8px 0 var(--maroon); }
.btn--emergency { background: var(--pink-coral); color: var(--maroon); }
.btn--emergency:hover { box-shadow: 0 8px 0 var(--maroon); }

/* Old section head */
.section__eyebrow {
  display: inline-block; padding: 6px 14px; border-radius: var(--radius-pill);
  background: var(--blue-sky); border: 2px solid var(--maroon);
  font-family: var(--font-body); font-weight: 800; font-style: italic;
  font-size: 12px; text-transform: uppercase; letter-spacing: .05em;
  margin-bottom: 12px; transform: rotate(-4deg); box-shadow: var(--shadow-sticker);
}
.section__title { max-width: 22ch; margin: 0 auto 12px; font-size: clamp(32px, 5vw, 64px); }
.section__sub { max-width: 60ch; margin: 0 auto; color: var(--ink-mute); }

/* Old generic cards (home sub-pages) */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
  display: block;
  background: var(--paper);
  border: 2px solid var(--maroon);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: 4px 6px 0 var(--maroon);
  transition: transform .25s var(--ease-bounce);
  color: var(--maroon);
  text-decoration: none;
}
.card:hover { transform: translateY(-6px) rotate(-.5deg); }
.card--red    { background: var(--pink-coral); }
.card--pink   { background: var(--pink-soft); }
.card--yellow { background: var(--yellow-bright); }
.card--green  { background: var(--green-mint); }
.card--blue   { background: var(--blue-sky); }
.card--purple { background: var(--purple-lilac); }
.card--cream  { background: var(--cream-warm); }
.card--accent { background: var(--yellow-soft); }
.card__header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.card__pill {
  display: inline-flex; padding: 4px 12px; border-radius: var(--radius-pill);
  background: var(--cream); border: 1.5px solid var(--maroon);
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.card__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(20px, 2vw, 26px); margin-bottom: 8px; letter-spacing: -.01em; }
.card__number { font-family: var(--font-wordmark); font-size: clamp(36px, 5vw, 72px); line-height: 1; letter-spacing: -.03em; margin-bottom: 8px; color: var(--maroon); }
.card__desc { font-size: 14px; line-height: 1.5; opacity: .85; }

/* Old article cards (blog listing) */
.articles { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .articles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .articles { grid-template-columns: repeat(3, 1fr); } }
.article-card { display: block; color: inherit; text-decoration: none; transition: transform .25s var(--ease-bounce); }
.article-card:hover { transform: translateY(-6px) rotate(-.5deg); }
.article-card__cover {
  width: 100%; aspect-ratio: 4/3;
  background: var(--blue-sky); border: 2px solid var(--maroon);
  border-radius: var(--radius-lg); margin-bottom: 16px;
  box-shadow: 4px 4px 0 var(--maroon);
}
.article-card__pill {
  display: inline-block; padding: 4px 12px; border-radius: var(--radius-pill);
  background: var(--yellow-bright); border: 1.5px solid var(--maroon);
  font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 8px;
}
.article-card__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 24px; letter-spacing: -.01em; line-height: 1.15;
  margin-bottom: 6px;
}
.article-card__date { font-size: 13px; color: var(--ink-mute); }

/* Old filter chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.chip {
  padding: 8px 18px; border-radius: var(--radius-pill);
  border: 2px solid var(--maroon); background: var(--paper);
  font-family: var(--font-body); font-weight: 600; font-size: 13px;
  cursor: pointer; transition: transform .2s, background .2s, color .2s;
}
.chip.active, .chip:hover { background: var(--maroon); color: var(--cream); transform: translateY(-2px); }

/* Old article (detail) */
.article { max-width: 740px; margin: 0 auto; padding: clamp(40px, 6vw, 100px) 24px; }
.article h1 { margin: 16px 0 20px; font-size: clamp(32px, 5vw, 56px); line-height: 1.05; }
.article__meta { font-size: 13px; color: var(--ink-mute); margin-bottom: 40px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.article__banner { width: 100%; aspect-ratio: 16/9; background: var(--blue-sky); border: 2px solid var(--maroon); border-radius: var(--radius-xl); margin-bottom: 48px; box-shadow: 6px 6px 0 var(--maroon); }
.article__body h2 { font-size: 28px; margin: 40px 0 16px; }
.article__body h3 { font-size: 22px; margin: 28px 0 12px; }
.article__body p { margin-bottom: 16px; font-size: 17px; line-height: 1.6; }
.article__body ul { margin: 16px 0 20px 20px; }
.article__body li { margin-bottom: 8px; line-height: 1.5; }

/* Old services card class (.svc) */
.svc {
  background: var(--paper); border: 2px solid var(--maroon);
  border-radius: var(--radius-lg); padding: 28px;
  margin-bottom: 16px; box-shadow: 4px 4px 0 var(--maroon);
  transition: transform .2s var(--ease-bounce);
}
.svc:hover { transform: translateY(-4px); }
.svc h3 { margin-bottom: 12px; font-size: 22px; }
.svc p { font-size: 15px; line-height: 1.55; margin-bottom: 12px; }
.svc__phone { display: inline-block; font-weight: 700; margin-right: 16px; }
.svc__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.svc__links a {
  font-size: 12px; padding: 5px 12px;
  background: var(--yellow-bright); border: 1.5px solid var(--maroon);
  border-radius: var(--radius-pill); font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
}

/* Old footer */
.footer__grid { display: grid; gap: 40px; grid-template-columns: 2fr 1fr 1fr 1fr; margin-bottom: 40px; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
.footer__brand { font-family: var(--font-wordmark); font-size: 32px; color: var(--cream); margin-bottom: 12px; letter-spacing: -.02em; }

/* Legacy utilities */
.grid-2 { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.text-center { text-align: center; }
.mt-2 { margin-top: 20px; }
.mt-4 { margin-top: 40px; }
.mb-4 { margin-bottom: 40px; }
.pill--sm { padding: 8px 16px; font-size: 13px; }

/* Ensure legacy .prose */
.prose strong { font-weight: 700; }
.prose em { font-style: italic; }
.prose a { color: var(--pink-coral); text-decoration: underline; font-weight: 600; }

/* Ensure lead style stays */
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; gap: 16px; flex-wrap: wrap; }

.pill { /* ensure class collision doesn't break legacy badges */ }

/* ==========================================================================
   V2 POLISH — scallop dividers, marquee, animations
   ========================================================================== */

/* --- Scallop divider primitive --- */
.scallop-div {
  display: block;
  width: 100%;
  height: 44px;
  background-repeat: repeat-x;
  background-position: center bottom;
  background-size: 48px 44px;
  margin-bottom: -1px;
  margin-top: -1px;
  position: relative;
  z-index: 3;
  pointer-events: none;
}
.scallop-div--cream         { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48' preserveAspectRatio='none'><path d='M0,48 L0,24 A24,24 0 0 1 48,24 L48,48 Z' fill='%23FBF6E0'/></svg>"); }
.scallop-div--cream-soft    { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48' preserveAspectRatio='none'><path d='M0,48 L0,24 A24,24 0 0 1 48,24 L48,48 Z' fill='%23FDF8E8'/></svg>"); }
.scallop-div--pink-soft     { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48' preserveAspectRatio='none'><path d='M0,48 L0,24 A24,24 0 0 1 48,24 L48,48 Z' fill='%23F6C2F4'/></svg>"); }
.scallop-div--pink-coral    { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48' preserveAspectRatio='none'><path d='M0,48 L0,24 A24,24 0 0 1 48,24 L48,48 Z' fill='%23F09FA8'/></svg>"); }
.scallop-div--green-mint    { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48' preserveAspectRatio='none'><path d='M0,48 L0,24 A24,24 0 0 1 48,24 L48,48 Z' fill='%23C0ECBF'/></svg>"); }
.scallop-div--yellow        { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48' preserveAspectRatio='none'><path d='M0,48 L0,24 A24,24 0 0 1 48,24 L48,48 Z' fill='%23FFE878'/></svg>"); }
.scallop-div--blue-sky      { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48' preserveAspectRatio='none'><path d='M0,48 L0,24 A24,24 0 0 1 48,24 L48,48 Z' fill='%23C7CAFF'/></svg>"); }
.scallop-div--tan-peach     { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48' preserveAspectRatio='none'><path d='M0,48 L0,24 A24,24 0 0 1 48,24 L48,48 Z' fill='%23FAE0BE'/></svg>"); }
.scallop-div--maroon        { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48' preserveAspectRatio='none'><path d='M0,48 L0,24 A24,24 0 0 1 48,24 L48,48 Z' fill='%233D001B'/></svg>"); }
.scallop-div--maroon-deep   { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48' preserveAspectRatio='none'><path d='M0,48 L0,24 A24,24 0 0 1 48,24 L48,48 Z' fill='%232A0013'/></svg>"); }

/* Inverted scallops (dents pointing DOWN — color of the PREVIOUS section peeking INTO the next) */
.scallop-div--inv {
  transform: scaleY(-1);
}

/* Bigger/smaller scallops */
.scallop-div--lg { height: 60px; background-size: 64px 60px; }
.scallop-div--sm { height: 32px; background-size: 36px 32px; }

/* --- Marquee strip --- */
.marquee {
  overflow: hidden;
  background: var(--maroon);
  color: var(--cream);
  border-block: 3px solid var(--maroon);
  padding: 18px 0;
  position: relative;
  z-index: 2;
}
.marquee--yellow { background: var(--yellow-bright); color: var(--maroon); }
.marquee--pink { background: var(--pink-coral); color: var(--maroon); }
.marquee__track {
  display: flex;
  gap: 48px;
  animation: marquee-scroll 36s linear infinite;
  white-space: nowrap;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(20px, 2.4vw, 32px);
  letter-spacing: -.01em;
  align-items: center;
  width: max-content;
}
.marquee__item { display: inline-flex; align-items: center; gap: 18px; }
.marquee__star { font-size: .7em; color: var(--yellow-bright); }
.marquee--yellow .marquee__star { color: var(--pink-coral); }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* --- Hero wordmark letter drop-in --- */
.hero__wordmark .letter {
  display: inline-block;
  animation: letter-drop .85s var(--ease-bounce) backwards;
}
.hero__wordmark .letter:nth-child(1) { animation-delay: .05s; }
.hero__wordmark .letter:nth-child(2) { animation-delay: .10s; }
.hero__wordmark .letter:nth-child(3) { animation-delay: .15s; }
.hero__wordmark .letter:nth-child(4) { animation-delay: .20s; }
.hero__wordmark .letter:nth-child(5) { animation-delay: .30s; }
.hero__wordmark .letter:nth-child(6) { animation-delay: .36s; }
.hero__wordmark .letter:nth-child(7) { animation-delay: .42s; }
.hero__wordmark .letter:nth-child(8) { animation-delay: .48s; }
.hero__wordmark .letter:nth-child(9) { animation-delay: .54s; }
@keyframes letter-drop {
  0%   { opacity: 0; transform: translateY(-60px) rotate(-12deg) scale(.7); }
  65%  { opacity: 1; transform: translateY(12px) rotate(6deg) scale(1.05); }
  85%  { transform: translateY(-4px) rotate(-2deg) scale(1); }
  100% { opacity: 1; transform: translateY(0) rotate(0) scale(1); }
}

/* --- Counter target styling (no layout shift while animating) --- */
.stat__num[data-count]::before {
  content: attr(data-display);
  display: inline-block;
}

/* --- Sticker reveal --- */
.reveal--sticker {
  opacity: 0;
  transform: scale(.4) rotate(-40deg);
  transition: opacity .6s, transform .6s var(--ease-bounce);
}
.reveal--sticker.in { opacity: 1; transform: scale(1) rotate(-6deg); }

/* --- Team card 3D hover tilt --- */
.team-card { perspective: 800px; }
.team-card__portrait {
  transition: transform .4s var(--ease-swift);
  transform-style: preserve-3d;
  will-change: transform;
}
.team-card:hover .team-card__portrait { transform: rotateY(-6deg) rotateX(3deg) translateZ(8px); }

/* --- Footer wordmark breathing (applies to SVG or text variant) --- */
.footer__wordmark, .footer__wordmark-svg {
  animation: breathe 8s ease-in-out infinite;
  transform-origin: center;
}
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.015); }
}

/* --- Scroll progress bar --- */
.scroll-bar {
  position: fixed; top: 0; left: 0; height: 3px;
  background: var(--pink-coral);
  width: 0%; z-index: 600;
  transition: width .1s linear;
  pointer-events: none;
}
body.menu-open .scroll-bar { opacity: 0; }

/* --- Doodle parallax (JS-driven, no default transform) --- */
[data-parallax] { will-change: transform; }

/* --- Reduced motion: kill kinetic noise --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .marquee__track { animation: none !important; transform: none !important; }
  .hero__wordmark .letter { animation: none !important; opacity: 1; transform: none; }
  .footer__wordmark, .footer__wordmark-svg { animation: none !important; }
  .sticker { animation: none !important; }
  .doodle--star, .doodle--float { animation: none !important; }
}

/* === Scallop "from-X" backgrounds (paired with --to-X bumps) === */
.scallop-div--from-cream       { background-color: var(--cream); }
.scallop-div--from-cream-soft  { background-color: var(--cream-soft); }
.scallop-div--from-pink-soft   { background-color: var(--pink-soft); }
.scallop-div--from-pink-coral  { background-color: var(--pink-coral); }
.scallop-div--from-green-mint  { background-color: var(--green-mint); }
.scallop-div--from-yellow      { background-color: var(--yellow-bright); }
.scallop-div--from-blue-sky    { background-color: var(--blue-sky); }
.scallop-div--from-tan-peach   { background-color: var(--tan-peach); }
.scallop-div--from-maroon      { background-color: var(--maroon); }
.scallop-div--from-maroon-deep { background-color: var(--maroon-deep); }
