@import url('tokens.css');

/* ========================================================================== */
/* GLOBAL.CSS — SMALLPIE                                                      */
/* Quick navigation:                                                          */
/*  0) Tokens & global base                                                   */
/*  1) Global FX layer                                                        */
/*  2) Header (incl. stuck state – no darkening on scroll now)               */
/*  3) Buttons                                                                */
/*  4) Glass primitives                                                       */
/*  5) Hero                                                                   */
/*  6) Story                                                                  */
/*  7) Bento (cards)                                                          */
/*  8) Playbook                                                               */
/*  9) Values                                                                 */
/* 10) Outsourced (dark section)                                              */
/* 11) Plans / Insights / Contact                                             */
/* 12) Footer                                                                 */
/* 13) Hovers, reveal & accessibility                                         */
/* 14) Typography                                                             */
/* ========================================================================== */


/* ========================================================================== */
/* 0) TOKENS & GLOBAL BASE                                                    */
/* - Centralize layout math to prevent horizontal drift on mobile             */
/* - Typography tokens live in tokens.css                                     */
/* ========================================================================== */

:root {
  /* Layout */
  --container-max: 1100px;
  --page-gutter: clamp(20px, 5vw, 32px);
  /* Ensure inner width + gutters never exceed viewport */
  --content-width: min(var(--container-max), calc(100vw - 2 * var(--page-gutter)));
  --section-pad-y: clamp(72px, 10vw, 140px);

  /* Header (baseline visuals) */
  --header-top: 10px;
  --header-width: min(var(--container-max), 92vw);
  --header-h: 84px;

  /* Radii & Shadows */
  --radius: 18px; 
  --radius-sm: 15px;
  --shadow-1: 0 6px 18px rgba(0,0,0,.16);
  --shadow-2: 0 12px 28px rgba(0,0,0,.20);
  --shadow-3: 0 20px 44px rgba(0,0,0,.22);

  /* Glass tokens */
  --lg-blur: 2.5px;
  --lg-vibrancy: 1.2;
  --lg-specular: rgba(255,255,255,.65);
  --lg-tint-dark: rgba(12,12,16,.38);
  --lg-tint-light: rgba(255,255,255,.42);

  /* Brand */
  --pink: #F48FB1; 
  --gold: #F4C430;

  /* FX (background particles) */
  --fx-alpha: 0.22;
  --fx-color-light: rgba(13,10,12,.75);
  --fx-color-dark: rgba(255,255,255,.85);
}

html,
body {
  margin: 0;
  padding: 0;
  background: #000;
  overflow-x: hidden;
}

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

body {
  color: #fff;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
}


/* ========================================================================== */
/* 1) GLOBAL FX LAYER (canvas background for particles, never intercepts UI)  */
/* ========================================================================== */

#fx-layer {
  position: fixed;
  inset: 0;
  z-index: 1;                 /* particles layer — above section backgrounds (z:auto), below content (z:2) */
  pointer-events: none;
}

.section-pad {
  padding: var(--section-pad-y) var(--page-gutter);
  position: relative;
}

.z-top {
  position: relative;
  z-index: 2;
}

/* All main inner wrappers sit above fx-layer (z:1) — explicit z:2 avoids DOM-order reliance */
.hero-stack,
.story-inner,
.bento-inner,
.playbook-inner,
.values-inner,
.outsourced-inner,
.plans-inner,
.insights-inner,
.contact-inner,
.footer-inner {
  position: relative;
  z-index: 2;
}


/* ========================================================================== */
/* 2) HEADER (fixed glass shell + mobile panel)                               */
/* - JS toggles .is-stuck on scroll and .is-open for mobile menu              */
/* - FIX: stuck state no longer darkens the header background, only shadow    */
/* ========================================================================== */

.sp-header {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--header-top);
  z-index: 1000;
  padding: 10px 0;
  background: transparent;
}

/* Push page content below header */
body {
  padding-top: calc(var(--header-h) + var(--header-top) + 8px);
}

.sp-header__shell {
  width: var(--header-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--page-gutter);
  border-radius: 20px;
  box-shadow: var(--shadow-1);
  position: relative;
  isolation: isolate;
}

/* Glass blur layer */
.sp-header__shell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 0;
  backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-vibrancy));
  -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-vibrancy));
  filter: url(#lg-dist);
}

/* Tint + specular layer */
.sp-header__shell::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 1;
  background: var(--lg-tint-dark);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.10),
    inset 0 0 4px var(--lg-specular);
}

/* Actual content sits above glass stack */
.sp-header .sp-logo,
.sp-header .sp-nav,
.sp-header .header-cta,
.sp-header .sp-burger {
  position: relative;
  z-index: 2;
}

.sp-logo img {
  height: 34px;
  width: auto;
  display: block;
}

/* Desktop nav */
.sp-nav--desktop > ul {
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sp-nav--desktop > ul > li > a {
  text-decoration: none;
  color: #fff;
  font-size: 16px;
  line-height: 1;
  opacity: .95;
}

.sp-nav--desktop > ul > li > a:hover {
  opacity: 1;
  background: linear-gradient(135deg,var(--pink),var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Burger button */
.sp-burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  background: transparent;
}

.sp-burger span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(135deg,var(--pink),var(--gold));
  transform-origin: center;
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}

.sp-burger span:nth-child(1) { top: 13px; }
.sp-burger span:nth-child(2) { top: 20px; }
.sp-burger span:nth-child(3) { top: 27px; }

/* Burger: open state (X) */
.sp-header.is-open .sp-burger span:nth-child(1) {
  top: 20px;
  transform: rotate(45deg);
}
.sp-header.is-open .sp-burger span:nth-child(2) {
  opacity: 0;
}
.sp-header.is-open .sp-burger span:nth-child(3) {
  top: 20px;
  transform: rotate(-45deg);
}

/* Stuck header on scroll:
   - JS adds .is-stuck when scrollY > STUCK_TOGGLE
   - We now ONLY increase shadow, NOT darken the background tint
   - This fixes the “header gets darker when scrolling” issue
*/
.sp-header.is-stuck .sp-header__shell {
  box-shadow: var(--shadow-2);
}

/* (The old .sp-header.is-stuck .sp-header__shell::after background override
   was removed to keep the same tint as at the top of the page.) */

@media (max-width: 960px) {
  .sp-nav--desktop { display: none; }
  .sp-header .header-cta { display: none !important; }
  .sp-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .sp-header__shell {
    border-radius: 16px;
    padding-left: var(--page-gutter);
    padding-right: var(--page-gutter);
  }
}

/* Mobile panel */
.sp-mobile {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  top: 100%;
  width: min(85vw, 540px);
  border-radius: 15px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  max-height: 0;
  transition: opacity .25s ease, max-height .3s ease, transform .25s ease;
}

.sp-header.is-open .sp-mobile {
  pointer-events: auto;
  opacity: 1;
  max-height: 80vh;
  transform: translateX(-50%) translateY(12px);
}

/* Mobile panel glass stack */
.sp-mobile::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 0;
  backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-vibrancy));
  -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-vibrancy));
  filter: url(#lg-dist);
}

.sp-mobile::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 1;
  background: var(--lg-tint-dark);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.10),
    inset 0 0 4px var(--lg-specular),
    var(--shadow-2);
}

/* Mobile menu content */
.sp-mobile > ul {
  position: relative;
  z-index: 2;
  list-style: none;
  margin: 18px 14px 8px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sp-mobile > ul > li > a {
  display: block;
  padding: 14px 14px;
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  font-size: 18px;
}

.sp-mobile .btn--full {
  position: relative;
  z-index: 2;
  margin: 12px 14px 16px;
  width: calc(100% - 28px);
}

.sp-mobile .sp-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}


/* ========================================================================== */
/* 3) BUTTONS                                                                 */
/* ========================================================================== */

.btn-glass,
.btn-glass-grad {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: 1.05rem 2.0rem;
  font-size: clamp(16px,1.6vw,18px);
  font-weight: 700;
  border-radius: var(--radius);
  text-decoration: none;
  line-height: 1;
  transform: translateZ(0);
  color: #fff;
  transition: transform .18s cubic-bezier(.22,.61,.36,1), filter .18s;
  overflow: hidden;
  isolation: isolate;
}

/* Shared glass blur */
.btn-glass::before,
.btn-glass-grad::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 0;
  backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-vibrancy));
  -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-vibrancy));
  filter: url(#lg-dist);
}

/* Regular glass button - match header shell tint/specular */
.btn-glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 1;
  background: var(--lg-tint-dark);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.10),
    inset 0 0 4px var(--lg-specular);
}

/* Gradient button */
.btn-glass-grad::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 1;
  background: linear-gradient(135deg, rgba(244,143,177,.95), rgba(244,196,48,.95));
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.10),
    inset 0 0 4px var(--lg-specular),
    var(--shadow-1);
}

.btn__text,
.btn__icon,
.btn__arrow {
  position: relative;
  z-index: 3;
}

/* Full-width variants */
.btn--block {
  display: block;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
}

.btn--full {
  width: 100%;
}

/* Hover lift */
.btn-glass:hover,
.btn-glass-grad:hover {
  transform: translateY(-3px) scale(1.02);
  filter: brightness(1.06);
}

/* Outline for light backgrounds */
.btn-glass.btn-outline-dark {
  color: #000000;
}

.btn-glass.btn-outline-dark::after {
  background: rgba(13,10,12,.02);
  box-shadow:
    inset 0 0 0 1px rgba(13,10,12,.18),
    inset 0 0 4px rgba(255,255,255,.35),
    var(--shadow-1);
}

.btn-glass.btn-outline-dark:hover {
  filter: none;
}

.btn-glass.btn-outline-dark:hover::after {
  background: rgba(13,10,12,.06);
}


/* ========================================================================== */
/* 4) GLASS PRIMITIVES                                                        */
/* ========================================================================== */

.glass {
  position: relative;
  display: block;
  border-radius: var(--radius);
  isolation: isolate;
  box-shadow: var(--shadow-2);
}

.glass__filter,
.glass__overlay,
.glass__specular {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.glass__filter {
  backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-vibrancy));
  -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-vibrancy));
  filter: url(#lg-dist);
}

.glass__overlay {
  background: var(--lg-tint-dark);
}

.glass__specular {
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.12),
    inset 0 0 4px var(--lg-specular);
}

.glass__content {
  position: relative;
  z-index: 2;
}

/* Outline variant */
.glass--outline { box-shadow: var(--shadow-1); }
.glass--outline .glass__overlay { background: rgba(255,255,255,.04); }
.glass--outline.on-dark .glass__overlay { background: rgba(255,255,255,.04); }
.glass--outline:hover .glass__overlay { background: rgba(255,255,255,.08); }


/* ========================================================================== */
/* 5) HERO                                                                    */
/* ========================================================================== */

.lava-hero {
  position: relative;
  min-height: 72vh;
  background: transparent;
  isolation: isolate;
}

.hero-stack {
  position: relative;
  z-index: 2;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.hero-box {
  width: var(--content-width);
  margin-inline: auto;
  color: #fff;
}

.hero-title {
  margin: 0 0 clamp(28px,5vw,44px) !important;
  font-weight: 900;
  color: #fff;
  font-size: clamp(44px, 6.6vw, 84px);
  line-height: 1.06;
  z-index: 1;
}

.hero-title[data-breathe] {
  animation: breathe 6.5s ease-in-out infinite;
}

@keyframes breathe {
  0%,100% {
    text-shadow: 0 10px 26px rgba(0,0,0,.40);
    filter: contrast(1);
  }
  50% {
    text-shadow: 0 18px 38px rgba(0,0,0,.55);
    filter: contrast(1.05);
  }
}

.hero-subtitle {
  margin: 0 0 clamp(22px,4vw,32px) !important;
  font-size: clamp(16px,2vw,22px);
  color: rgba(255,255,255,.92);
  max-width: 900px;
  line-height: 1.6;
  letter-spacing: .002em;
}

.cta {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

@media (max-width:960px) {
  .hero-box {
    width: min(100%, calc(100vw - 2*var(--page-gutter)));
  }
  .cta a {
    width: 100%;
  }
}

/* Center hero content vertically on the viewport */
.hero-section--center {
  min-height: calc(100vh - var(--sp-header-height, 72px));
  display: flex;
  align-items: center;
}

/* Optional: keep it nicely centred on huge screens too */
.hero-section--center .hero-stack {
  width: var(--content-width, min(1040px, 100% - 32px));
  margin: 0 auto;
  transform: translateY (-6vh);
}

/* On small screens keep it normal so it doesn't jump too high */
@media (max-width: 720px) {
  .hero-section--center .hero-stack {
    transform: none;
  }
}

/* ========================================================================== */
/* 6) STORY                                                                   */
/* ========================================================================== */

.story-section {
  background: rgba(255,255,255,1);
  color: #000000;
}

.story-inner {
  width: var(--content-width);
  margin: 0 auto;
}

.story-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(18px, 3.2vw, 32px);
  align-items: center;
}

@media (max-width:960px) {
  .story-grid {
    grid-template-columns: 1fr;
    gap: clamp(16px,6vw,28px);
  }
}

.story-copy h2 {
  margin: .1em 0 .4em;
  font-size: clamp(28px, 5.2vw, 44px);
  font-weight: 900;
}

.story-copy p {
  margin: 0 0 1.1em;
  color: rgba(13,10,12,.90);
  line-height: 1.6;
}

/* Base image style (desktop/tablet) */
.story-media img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,.20);
}

/* Helper token for mobile edge-bleed */
:root {
  --page-pad: 20px;
}

/* Ensure inner has known padding so we can bleed on mobile */
.story-section .story-inner {
  padding-left: var(--page-pad);
  padding-right: var(--page-pad);
}

/* Wrapper defaults */
.story-media {
  margin: 0;
}

/* MOBILE: edge-to-edge with rounded wrapper */
@media (max-width: 767px) {
  .story-media {
    margin-left: calc(-1 * var(--page-pad));
    margin-right: calc(-1 * var(--page-pad));
    border-radius: 16px;
    overflow: hidden;
  }
  .story-media img {
    aspect-ratio: auto;
    height: auto;
    border-radius: 0;
    box-shadow: none;
    display: block;
  }
}


/* ========================================================================== */
/* 7) BENTO (cards live here)                                                 */
/* ========================================================================== */

.bento-section {
  background: #ffffff;
  color: #000000;
}

.bento-inner {
  width: var(--content-width);
  margin: 0 auto;
}

.bento-title {
  margin: 0 0 clamp(22px,4vw,36px);
  font-weight: 900;
  font-size: clamp(28px,4.8vw,40px);
}

.bento-grid {
  display: grid;
  gap: clamp(16px,2vw,22px);
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width:1024px) {
  .bento-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width:960px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
}

/* LIQUID GLASS CARDS – same structure as header / buttons */
.bento-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: transparent; /* let backdrop show */
  box-shadow: var(--shadow-1);
  transition:
    transform .18s cubic-bezier(.22,.61,.36,1),
    filter .18s,
    box-shadow .18s;
  isolation: isolate;
}

/* Blur + distortion on the backdrop */
.bento-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 0;
  backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-vibrancy));
  -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-vibrancy));
  filter: url(#lg-dist);
}

/* Color / gradient layer with alpha */
.bento-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 2;
  background: rgba(247,247,249,0.92); /* default light card tint */
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.10),
    inset 0 0 4px var(--lg-specular),
    var(--shadow-1);
}

/* Card content */
.bento-card .card-body {
  position: relative;
  z-index: 3;
  padding: clamp(18px,2.4vw,26px);
  text-align: left;
}

.bento-card .card-body.on-dark {
  color: #fff;
}

/* VARIANTS */

/* Gradient content card */
.card--grad::after {
  background: linear-gradient(
    135deg,
    rgba(244,143,177,0.12),
    rgba(244,196,48,0.12)
  );
}

/* Solid dark card */
.card--black::after {
  background: rgba(0,0,0,0.92);
}

/* Optional per-card lava canvas overlay */
.lava-card {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .62;
  pointer-events: none;
  z-index: 1; /* above ::before, below ::after + text */
}


/* ========================================================================== */
/* 8) PLAYBOOK                                                                */
/* ========================================================================== */

.playbook-section { 
  background: #ffffff; 
  color: #000000; 
}

.playbook-inner { 
  max-width: var(--container-max); 
  margin: 0 auto; 
}

.playbook-title { 
  margin: 0 0 clamp(28px, 4vw, 44px); 
  font-size: clamp(28px, 5.2vw, 44px); 
  font-weight: 900; 
}

.tiles { 
  display: grid; 
  gap: clamp(16px, 2vw, 22px); 
  grid-template-columns: repeat(2, 1fr); 
}

@media (max-width:960px) { 
  .tiles { 
    grid-template-columns: 1fr; 
  } 
}

/* Tiles as big glass buttons */
.tile { 
  position: relative; 
  border-radius: 18px; 
  text-decoration: none; 
  color: #000000; 
  box-shadow: var(--shadow-1); 
  transition: 
    transform .18s cubic-bezier(.22,.61,.36,1), 
    filter .18s, 
    box-shadow .18s; 
  overflow: hidden; 
  isolation: isolate; 
  background: transparent;
}

/* Center tile content */
.tile__content { 
  display: grid; 
  place-items: center; 
  min-height: 200px; 
  padding: 22px; 
  gap: 8px; 
}

.tile__label { 
  font-weight: 700; 
  font-size: 18px; 
}

/* Glass stack for tiles */
.playbook-section .glass--light .glass__filter {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 0;
  backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-vibrancy));
  -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-vibrancy));
  filter: url(#lg-dist);
}

.playbook-section .glass--light .glass__overlay {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 1;
  background: rgba(255,255,255,.08);
  box-shadow: 
    inset 0 0 0 1px rgba(255,255,255,.10),
    inset 0 0 4px var(--lg-specular),
    var(--shadow-1);
}

/* Optional specular highlight */
.playbook-section .glass--light .glass__specular {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 2;
  background: radial-gradient(
    circle at 10% 0%,
    rgba(255,255,255,.18),
    transparent 55%
  );
}

/* Hover state */
.playbook-section .glass--light:hover .glass__overlay { 
  background: rgba(255,255,255,.14); 
}

.playbook-section .glass--light.tile.hvr:hover {
  transform: translateY(-3px) scale(1.02);
  filter: brightness(1.04);
}


/* ========================================================================== */
/* 9) VALUES                                                                  */
/* ========================================================================== */

.values-section {
  background: rgba(255,255,255,1);
  color: #000000;
}

.values-inner {
  width: var(--content-width);
  margin: 0 auto;
}

.kicker {
  margin: 0 0 8px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(13,10,12,.6);
}

.values-title {
  margin: 0 0 clamp(22px,4vw,36px);
  font-weight: 900;
  font-size: clamp(28px, 4.8vw, 40px);
}

.values-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(16px,2vw,22px);
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-auto-rows: minmax(140px, auto);
}

@media (max-width:1200px) { .values-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width:1024px) { .values-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width:960px)  { .values-grid { grid-template-columns: 1fr; } }

.value {
  background: #f7f7f9;
  border-radius: 18px;
  padding: clamp(18px,2.4vw,24px);
  box-shadow: var(--shadow-1);
  position: relative;
  overflow: hidden;
  transition: transform .18s cubic-bezier(.22,.61,.36,1), filter .18s, box-shadow .18s;
}

/* Original gradient block for values */
.value--grad {
  background: linear-gradient(135deg, rgba(244,143,177,.12), rgba(244,196,48,.12));
}

/* Lava variant */
.value--lava {
  background: #000000;
  padding: 0;
  color: #fff;
}

.value--lava .value-body {
  padding: clamp(22px,2.8vw,28px);
  position: relative;
  z-index: 2;
}

.value--lava .lava-card {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .7;
  pointer-events: none;
}


/* ========================================================================== */
/* 10) OUTSOURCED (dark section)                                              */
/* ========================================================================== */

.outsourced-section {
  background: rgba(7,7,9,1);
  color: #fff;
}

.outsourced-inner {
  width: var(--content-width);
  margin: 0 auto;
  display: grid;
  gap: clamp(24px,3vw,40px);
  grid-template-columns: 1.2fr .8fr;
  align-items: start;
}

@media (max-width:1024px) {
  .outsourced-inner {
    grid-template-columns: 1fr;
  }
}

.section-lava {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  pointer-events: none;
}

.outs-h2 {
  font-size: clamp(28px,5.2vw,44px);
  margin: .15em 0 .35em;
}

.on-dark .lead {
  color: rgba(255,255,255,1);
}

.bullets {
  margin: 14px 0 22px;
  padding-left: 20px;
}

.bullets li {
  margin: 6px 0;
  opacity: .96;
}

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.outsourced-cards {
  display: grid;
  gap: clamp(14px,2vw,18px);
}

.outs-card {
  padding: clamp(16px,2.2vw,22px);
  transition: transform .18s cubic-bezier(.22,.61,.36,1), filter .18s, box-shadow .18s;
}

.outs-card h3 {
  margin: .2em 0 .35em;
  font-size: clamp(17px,2.2vw,20px);
  font-weight: 800;
}

.outs-card p {
  margin: 0;
  color: rgba(255,255,255,.88);
}


/* ========================================================================== */
/* 11) PLANS / INSIGHTS / CONTACT                                             */
/* ========================================================================== */

.plans-section {
  background: rgba(255,255,255,1);
  color: #000000;
}

.plans-inner {
  width: var(--content-width);
  margin: 0 auto;
}

.plans-title {
  margin: 0 0 clamp(22px,4vw,36px);
  font-weight: 900;
  font-size: clamp(28px,4.8vw,40px);
}

.plans-grid {
  display: grid;
  gap: clamp(16px,2vw,22px);
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width:1024px) { .plans-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width:960px)  { .plans-grid { grid-template-columns: 1fr; } }

.plan {
  background: #f7f7f9;
  border-radius: 18px;
  padding: clamp(18px,2.6vw,26px);
  box-shadow: var(--shadow-1);
  display: grid;
  align-content: start;
  gap: 12px;
  transition: transform .18s cubic-bezier(.22,.61,.36,1), filter .18s, box-shadow .18s;
}

.plan--focus {
  background: linear-gradient(135deg, rgba(244,143,177,.10), rgba(244,196,48,.10));
  box-shadow: var(--shadow-2);
}

.plan h3 {
  margin: 0;
  font-size: clamp(18px,2.4vw,22px);
  font-weight: 900;
}

.plan-lead {
  margin: 0 0 6px;
  color: rgba(13,10,12,.78);
}

.plan-list {
  margin: 0 0 10px;
  padding-left: 1.1em;
}

.plan-list li {
  margin: .3em 0;
}

.tiny-footnote {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(13,10,12,.6);
}

/* Insights */

.insights-section {
  background: rgba(255,255,255,1);
  color: #000000;
}

.insights-inner {
  width: var(--content-width);
  margin: 0 auto;
}

.insights-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: clamp(18px,3vw,26px);
}

.insights-head h2 {
  margin: 0;
  font-weight: 900;
  font-size: clamp(26px,4.6vw,36px);
}

@media (max-width:960px) {
  .insights-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

.insights-grid {
  display: grid;
  gap: clamp(16px,2vw,22px);
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width:1024px) { .insights-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width:960px)  { .insights-grid { grid-template-columns: 1fr; } }

.insight {
  background: #f7f7f9;
  border-radius: 16px;
  padding: clamp(18px,2.4vw,24px);
  box-shadow: var(--shadow-1);
  transition: transform .18s cubic-bezier(.22,.61,.36,1), filter .18s, box-shadow .18s;
}

/* Original gradient for insights (restored) */
.insight--grad {
  background: linear-gradient(135deg, rgba(244,143,177,.12), rgba(244,196,48,.12));
}

/* Contact */

.contact-section {
  background: rgba(255,255,255,1);
  color: #000000;
}

.contact-inner {
  width: var(--content-width);
  margin: 0 auto;
  display: grid;
  gap: clamp(20px,3vw,36px);
  grid-template-columns: 1.05fr .95fr;
}

@media (max-width:1024px) {
  .contact-inner {
    grid-template-columns: 1fr;
  }
}

.contact-copy .lead {
  margin: .6em 0 1.2em;
  color: rgba(13,10,12,.78);
}

.contact-copy .cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form .field {
  display: grid;
  gap: 6px;
}

.contact-form label {
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(13,10,12,.6);
}

.contact-form input,
.contact-form textarea {
  background: #f7f7f9;
  border: 1px solid rgba(13,10,12,.08);
  border-radius: 12px;
  color: #000000;
  padding: 12px 14px;
  font: inherit;
  line-height: 1.4;
  box-shadow: 0 8px 20px rgba(0,0,0,.06) inset;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  border: none;
}

.contact-illo {
  margin-top: 30px;
  margin-left: 0px;
}

.contact-illo img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,.12);
}


/* ========================================================================== */
/* 12) FOOTER                                                                 */
/* ========================================================================== */

.site-footer {
  background: #000000;
}

.footer-inner {
  max-width: var(--container-max);
  width: var(--content-width);
  margin: 0 auto;
  padding: clamp(28px,4.2vw,40px) var(--page-gutter);
  color: #bbb;
}

.footer-top {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px 18px;
  margin-bottom: clamp(16px,2.6vw,22px);
}

.footer-logo img {
  height: 28px;
  width: auto;
  display: block;
}

.footer-oneliner {
  margin: 0;
  color: #cfcfcf;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr .9fr;
  gap: clamp(14px,2vw,26px);
  align-items: start;
}

.footer-label {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #888;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-col a {
  color: #ddd;
  text-decoration: none;
}

.footer-col a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-socials {
  display: flex;
  gap: 14px;
  margin-top: 10px;
}

.footer-social {
  color: #ddd;
  text-decoration: none;
  font-weight: 600;
}

.footer-social:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: clamp(14px,2vw,18px);
  padding-top: 12px;
  color: #999;
}

@media (max-width: 960px) {
  .footer-top { grid-template-columns: 1fr; align-items: start; }
  .footer-grid { grid-template-columns: 1fr; }
}


/* ========================================================================== */
/* 13) HOVERS, REVEAL & ACCESSIBILITY                                         */
/* ========================================================================== */

.hvr {
  will-change: transform, filter;
}

.hvr:hover {
  transform: translateY(-3px) scale(1.02);
  filter: brightness(1.03);
  box-shadow: var(--shadow-2);
}

/* In-view reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* Tiny perf optimisation on very small screens */
@media (max-width:480px) {
  .glass__filter,
  .sp-header__shell::before {
    filter: none;
  }
}


/* ========================================================================== */
/* 14) TYPOGRAPHY                                                             */
/* ========================================================================== */

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

body {
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
}

p {
  line-height: var(--lh-p);
  margin: 0 0 0.85em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  letter-spacing: var(--ls-heading);
  line-height: var(--lh-heading);
  margin-top: 0;
  margin-bottom: 0.5em;
}

.hero-title {
  letter-spacing: var(--ls-heading-lg);
  line-height: 1.12;
}

.hero-subtitle {
  line-height: 1.58;
}

.story-copy p,
.bento-card .card-body p,
.value p,
.plan-lead,
.insight p,
.contact-copy .lead {
  line-height: 1.55;
}

.values-title,
.bento-title,
.plans-title,
.playbook-title,
.outs-h2,
.insights-head h2 {
  letter-spacing: var(--ls-heading);
  line-height: 1.16;
}

@media (max-width: 960px) {
  p { line-height: var(--lh-p-mobile); }
  h1,
  h2 {
    letter-spacing: 0.02em;
    line-height: 1.14;
  }
}

/* Small pill button — same style as Contact, but compact */
.btn--pill {
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 999px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  width: auto;
  max-width: 100%;
}

/* Ensure pill text is visible */
.btn--pill .btn__text {
  color: #fff !important;
  font-weight: 700;
}

/* Center pill in card */
.plan-price-pill {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

/* outsourced-section keeps true black — no override needed; background is set in section 10 */
.outsourced-section {
  background: #000;
}
