/* =========================================================================
   RCreates Apps — corporate website
   Brand-led palette derived from the RCreates logo:
   deep indigo → plum → coral red gradient, on charcoal navy text.
   Shared across all pages.
   ========================================================================= */

:root {
  /* Surfaces */
  --cream: #FBFBFD;          /* near-white canvas */
  --sand:  #F2F1F8;          /* cool lavender-tinted off-white panel */

  /* Primary accent — coral red from the logo */
  --clay:      #EF4452;
  --clay-dark: #C9303E;

  /* Secondary accent — deep indigo blue from the logo */
  --olive:      #3A3F8E;
  --olive-dark: #272E73;

  /* Mid gradient bridge — plum from the logo gradient */
  --plum: #6E2E78;

  /* Text — charcoal navy from the "apps" wordmark */
  --umber:      #1B1F2D;
  --umber-soft: #52596B;

  /* Signature brand gradient */
  --brand-gradient: linear-gradient(135deg, #3A3F8E 0%, #6E2E78 50%, #EF4452 100%);

  /* Layout */
  --nav-h: 74px;             /* fixed header height: 38px logo + 18px*2 padding */
  --max: 1500px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 18px;
  --radius-sm: 12px;

  /* Type scale (fluid) */
  --fs-display: clamp(44px, 6.4vw, 88px);
  --fs-h1: clamp(36px, 4.6vw, 60px);
  --fs-h2: clamp(28px, 3.4vw, 44px);
  --fs-h3: clamp(20px, 1.9vw, 26px);
  --fs-lead: clamp(17px, 1.4vw, 20px);
  --fs-body: 16px;
  --fs-small: 13px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow-soft: 0 18px 40px -22px rgba(27, 31, 45, 0.22),
                 0 8px 20px -16px rgba(27, 31, 45, 0.14);
  --shadow-lift: 0 26px 50px -22px rgba(27, 31, 45, 0.30),
                 0 12px 28px -18px rgba(27, 31, 45, 0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

/* The header is position:fixed, so it's out of flow — reserve its height at
   the top of the page content so the hero isn't hidden underneath it. */
#main { padding-top: var(--nav-h); }

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--umber);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* Ambient body glow — soft brand-gradient wash anchored behind the page.
   Replaces the warm paper-grain overlay; suits the digital brand tone.
   z-index:-1 so positioned content paints above it without isolation work. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 100% 0%, rgba(239, 68, 82, 0.08) 0%, transparent 60%),
    radial-gradient(55% 45% at 0% 100%, rgba(58, 63, 142, 0.08) 0%, transparent 60%);
}

/* Headings */
h1, h2, h3, h4, h5 {
  font-family: 'Fraunces', Georgia, 'Iowan Old Style', serif;
  font-weight: 500;
  color: var(--umber);
  letter-spacing: -0.01em;
  line-height: 1.08;
}

h1 em, h2 em, h3 em {
  font-style: italic;
  font-weight: 500;
  color: var(--clay);
  font-variation-settings: "SOFT" 60, "WONK" 1;
}



a {
  color: var(--clay-dark);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
a:hover { color: var(--umber); }

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

/* Container */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 2;
}

/* Skip link */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip:focus {
  left: 16px;
  top: 16px;
  background: var(--umber);
  color: var(--cream);
  padding: 10px 14px;
  border-radius: 8px;
  z-index: 100;
}

/* =========================================================================
   NAV
   ========================================================================= */
.nav {
  position: fixed;
width:100%;
  top: 0;
  z-index: 50;
/*  background: rgba(251, 251, 253, 0.72);*/
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease),
              box-shadow 0.25s var(--ease),
              background 0.25s var(--ease);
}
.nav.scrolled {
  background: rgba(251, 251, 253, 0.92);
  border-bottom-color: rgba(27, 31, 45, 0.08);
  box-shadow: 0 12px 28px -22px rgba(27, 31, 45, 0.25);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 20px;
  color: var(--umber);
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--umber); }

.brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brand-gradient);
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(27, 31, 45, 0.16),
              0 6px 14px -8px rgba(110, 46, 120, 0.55);
}
.brand__mark::after {
  content: '';
  position: absolute;
  inset: 7px;
  border-radius: 6px;
  background: linear-gradient(135deg, #FFFFFF, var(--cream));
  clip-path: polygon(0 0, 100% 0, 100% 35%, 35% 35%, 35% 100%, 0 100%);
}
.brand__name em {
  font-style: italic;
  color: var(--clay);
  font-weight: 500;
}

/* Real PNG logo used in nav (replaces text + CSS mark). The logo file ships
   inside the project root. Sized to sit comfortably in the 60px nav band. */
.brand__logo {
  height: 38px;
  width: auto;
  display: block;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav__links a {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--umber-soft);
  font-weight: 500;
  font-size: 15px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.nav__links a:hover {
  color: var(--umber);
  background: rgba(239, 68, 82, 0.08);
}
.nav__links a.active {
  color: var(--umber);
  background: rgba(239, 68, 82, 0.12);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--umber);
  color: var(--cream);
  font-weight: 500;
  font-size: 14px;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.nav__cta:hover {
  background: var(--umber-soft);
  color: var(--cream);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -14px rgba(27, 31, 45, 0.55);
}
.nav__cta:active { transform: scale(0.97); }

/* Burger */
.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  border-radius: 12px;
}
.burger:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; }
.burger span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--umber);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease), top 0.3s var(--ease);
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }
.burger.open span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* =========================================================================
   BUTTONS
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 0;
  transition: transform 0.18s var(--ease), background 0.2s var(--ease),
              color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  text-decoration: none;
  line-height: 1;
}
.btn--primary {
  background: var(--clay);
  color: var(--cream);
  box-shadow: 0 14px 26px -16px rgba(239, 68, 82, 0.7);
}
.btn--primary:hover {
  background: var(--clay-dark);
  color: var(--cream);
  transform: translateY(-2px);
  box-shadow: 0 20px 34px -18px rgba(201, 48, 62, 0.75);
}
.btn--primary:active { transform: scale(0.97); }

.btn--ghost {
  background: transparent;
  color: var(--umber);
  border: 1px solid rgba(27, 31, 45, 0.18);
}
.btn--ghost:hover {
  background: rgba(27, 31, 45, 0.06);
  color: var(--umber);
  border-color: rgba(27, 31, 45, 0.28);
  transform: translateY(-2px);
}
.btn--ghost:active { transform: scale(0.97); }

.btn--dark {
  background: var(--umber);
  color: var(--cream);
}
.btn--dark:hover {
  background: var(--umber-soft);
  color: var(--cream);
  transform: translateY(-2px);
}
.btn--dark:active { transform: scale(0.97); }

/* =========================================================================
   HERO (home)
   ========================================================================= */
/* =========================================================================
   SILK BACKDROP — reusable .silk-bg utility
   Subtle "folded paper / satin sheen" effect: soft diagonal creases catching
   light from the upper right, with hints of the brand plum + indigo bleeding
   in from the corners. Apply to any section that needs an editorial,
   resting moment in the page.
   ========================================================================= */
.silk-bg {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(85% 60% at 90% -10%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 55%),
    radial-gradient(70% 55% at -5% 110%, rgba(110, 46, 120, 0.07) 0%, rgba(110, 46, 120, 0) 60%),
    radial-gradient(60% 45% at 110% 100%, rgba(58, 63, 142, 0.05) 0%, rgba(58, 63, 142, 0) 65%),
    linear-gradient(180deg, #FAFAFC 0%, #F3F1F8 100%);
}
.silk-bg::before,
.silk-bg::after {
  content: '';
  position: absolute;
  inset: -20% -10%;
  pointer-events: none;
  z-index: 0;
}
/* Long, soft diagonal crease — main fold */
.silk-bg::before {
  background: linear-gradient(108deg,
    transparent 0%,
    transparent 24%,
    rgba(27, 31, 45, 0.022) 33%,
    transparent 42%,
    transparent 55%,
    rgba(255, 255, 255, 0.55) 63%,
    transparent 71%,
    transparent 82%,
    rgba(27, 31, 45, 0.028) 89%,
    transparent 100%);
  filter: blur(6px);
  transform: skewY(-4deg);
}
/* Secondary, gentler crease at a slightly different angle for the
   "woven light" feel — kept on soft-light blend so it never hardens. */
.silk-bg::after {
  background: linear-gradient(118deg,
    transparent 0%,
    transparent 18%,
    rgba(255, 255, 255, 0.4) 28%,
    transparent 36%,
    transparent 60%,
    rgba(27, 31, 45, 0.018) 68%,
    transparent 76%,
    transparent 90%,
    rgba(110, 46, 120, 0.04) 96%,
    transparent 100%);
  filter: blur(10px);
  transform: skewY(2deg);
  mix-blend-mode: soft-light;
}
.silk-bg > * { position: relative; z-index: 1; }

.hero {
  position: relative;
  padding: clamp(64px, 11vw, 140px) 0 clamp(72px, 12vw, 160px);
  overflow: hidden;
  isolation: isolate;
  /* Silk backdrop baked into every hero on the site. */
  background:
    radial-gradient(85% 60% at 90% -10%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 55%),
    radial-gradient(70% 55% at -5% 110%, rgba(110, 46, 120, 0.07) 0%, rgba(110, 46, 120, 0) 60%),
    radial-gradient(60% 45% at 110% 100%, rgba(58, 63, 142, 0.05) 0%, rgba(58, 63, 142, 0) 65%),
    linear-gradient(180deg, #FAFAFC 0%, #F3F1F8 100%);
}
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  inset: -20% -10%;
  pointer-events: none;
  z-index: 0;
}
.hero::before {
  background: linear-gradient(108deg,
    transparent 0%,
    transparent 24%,
    rgba(27, 31, 45, 0.022) 33%,
    transparent 42%,
    transparent 55%,
    rgba(255, 255, 255, 0.55) 63%,
    transparent 71%,
    transparent 82%,
    rgba(27, 31, 45, 0.028) 89%,
    transparent 100%);
  filter: blur(6px);
  transform: skewY(-4deg);
}
.hero::after {
  background: linear-gradient(118deg,
    transparent 0%,
    transparent 18%,
    rgba(255, 255, 255, 0.4) 28%,
    transparent 36%,
    transparent 60%,
    rgba(27, 31, 45, 0.018) 68%,
    transparent 76%,
    transparent 90%,
    rgba(110, 46, 120, 0.04) 96%,
    transparent 100%);
  filter: blur(10px);
  transform: skewY(2deg);
  mix-blend-mode: soft-light;
}

/* The old colored blob divs in markup are now hidden — the silk backdrop
   replaces them. Left as no-ops so existing HTML keeps validating. */
.hero__blob { display: none !important; }

/* Canvas silk layer — only present on the home hero (data-silk-cloth).
   Sits above the static silk gradient (which acts as a no-JS fallback)
   and below the hero content. Pointer events stay off so links inside
   the hero remain clickable; the parent .hero captures mousemove. */
.hero__silk-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  display: block;
}

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

/* Two-column hero: copy on the left, particle R canvas on the right.
   The canvas is decorative (aria-hidden) and lives inside the content
   container so it sits above .hero__silk-canvas (which is full-bleed
   background) but is clipped to the same grid as the headline. */
.hero__content--split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero__copy { min-width: 0; }


.hero__r-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 560px;
  min-height: 360px;
  pointer-events: auto;
  /* Subtle bloom behind the dots so the R reads on the silk backdrop */
  background:
    radial-gradient(60% 55% at 50% 50%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 70%);
}
.hero__r-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 960px) {
  .hero__content--split {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero__copy h1 { max-width: 18ch; }
  .hero__copy .hero__lead { max-width: 56ch; }
  .hero__r-stage {
    order: -1;             /* show the R above the headline on mobile */
    max-height: 320px;
    min-height: 240px;
    aspect-ratio: 4 / 3;
  }
}
@media (max-width: 540px) {
  .hero__r-stage {
    max-height: 240px;
    min-height: 200px;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: rgba(239, 68, 82, 0.12);
  color: var(--clay-dark);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--clay);
  box-shadow: 0 0 0 4px rgba(239, 68, 82, 0.18);
}

.hero h1 {
      font-size: var(--fs-h1);
    font-weight: 400;
    margin: 22px 0 22px;

    /* text-wrap: balance; */
}

.hero__lead {
  font-size: var(--fs-lead);
  color: var(--umber-soft);
   line-height: 1.55;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

/* Staggered entrance on load */
.hero .d1, .hero .d2, .hero .d3, .hero .d4 {
  opacity: 0;
  transform: translateY(18px);
  animation: heroIn 0.9s var(--ease) forwards;
}
.hero .d1 { animation-delay: 0.05s; }
.hero .d2 { animation-delay: 0.2s; }
.hero .d3 { animation-delay: 0.35s; }
.hero .d4 { animation-delay: 0.5s; }
@keyframes heroIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Smaller page-hero variant for non-home pages */
.page-hero {
  position: relative;
  padding: clamp(60px, 8vw, 110px) 0 clamp(40px, 6vw, 70px);
  overflow: hidden;
  isolation: isolate;
}
.page-hero h1 {
  font-size: var(--fs-h1);
  font-weight: 400;
  margin: 18px 0 18px;
  text-wrap: balance;
}
.page-hero__lead {
  font-size: var(--fs-lead);
  color: var(--umber-soft);
 
}
.page-hero .hero__blob--clay {
  width: 480px; height: 480px;
  top: -180px; right: -80px;
  opacity: 0.42;
}
.page-hero .hero__blob--olive {
  width: 420px; height: 420px;
  bottom: -240px; left: -100px;
  opacity: 0.32;
}

/* =========================================================================
   SECTIONS
   ========================================================================= */
section { position: relative; }

.section {
  padding: clamp(60px, 9vw, 110px) 0;
  position: relative;
}
.section--sand { background: var(--sand); }
.section--cream { background: var(--cream); }

.section__head {
  display: grid;
  gap: 18px;
  margin-bottom: clamp(36px, 5vw, 60px);
  
}
.section__head h2 {
  font-size: var(--fs-h2);
  font-weight: 400;
  text-wrap: balance;
}
.section__head p {
  font-size: var(--fs-lead);
  color: var(--umber-soft);
}
.section__kicker {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay-dark);
}

/* Stats band */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(27, 31, 45, 0.1);
  border-bottom: 1px solid rgba(27, 31, 45, 0.1);
  padding: clamp(36px, 5vw, 56px) 0;
}
.stat {
  text-align: center;
  padding: 0 16px;
  border-right: 1px solid rgba(27, 31, 45, 0.08);
}
.stat:last-child { border-right: 0; }
.stat__num {
  font-family: 'Fraunces', serif;
  font-size: clamp(40px, 5.4vw, 72px);
  font-weight: 400;
  color: var(--clay);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat__num small {
  font-size: 0.45em;
  color: var(--umber-soft);
  margin-left: 2px;
}
.stat__label {
  margin-top: 10px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--umber-soft);
}

/* 3-card grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.card {
  background: var(--cream);
  border: 1px solid rgba(27, 31, 45, 0.08);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  position: relative;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(239, 68, 82, 0.25);
}
.section--sand .card { background: var(--cream); }

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  background: rgba(239, 68, 82, 0.1);
  color: var(--clay-dark);
}
.card__icon svg { width: 22px; height: 22px; stroke: currentColor; }
.card__icon--olive {
  background: rgba(58, 63, 142, 0.14);
  color: var(--olive-dark);
}
.card h3 {
  font-size: var(--fs-h3);
  font-weight: 500;
  margin-bottom: 10px;
}
.card p { color: var(--umber-soft); font-size: 15px; }
.card__link {
  display: inline-flex;
  align-items: center;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--clay-dark);
  letter-spacing: 0.02em;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.2s var(--ease);
}
.card__link:hover { border-bottom-color: currentColor; }

/* Bento grid — asymmetric "What we do" layout */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(0, auto);
  gap: 18px;
}
.bento__card {
  position: relative;
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid rgba(27, 31, 45, 0.08);
  border-radius: 20px;
  padding: 28px;
  color: var(--umber);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.bento__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(58, 63, 142, 0.18);
}
.bento__card h3 {
  font-size: var(--fs-h3);
  font-weight: 500;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.bento__card p {
  color: var(--umber-soft);
  font-size: 15px;
  line-height: 1.55;
 
}

/* Featured — large card, spans 2 cols × 2 rows */
.bento__card--featured {
  grid-column: 1 / span 2;
  grid-row: 1 / span 2;
  padding: 36px 32px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(110, 46, 120, 0.10) 0%, rgba(110, 46, 120, 0) 60%),
    linear-gradient(135deg, #FBFBFD 0%, #F3EEF5 100%);
  border-color: rgba(110, 46, 120, 0.14);
}
.bento__card--featured h3 { font-size: 32px; line-height: 1.15; }
.bento__card--featured p { font-size: 16px;  }
.bento__deco {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 140px;
  height: 140px;
  stroke: rgba(110, 46, 120, 0.28);
  pointer-events: none;
}
.bento__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 18px;
}

/* Wide cards — span 2 cols */
.bento__card--wide { grid-column: span 2; }

/* CTA — gradient card (the one decisive flourish) */
.bento__card--cta {
  grid-column: span 2;
  background:
    linear-gradient(135deg, #3A3F8E 0%, #6E2E78 50%, #EF4452 100%);
  border-color: transparent;
  color: #FFFFFF;
}
.bento__card--cta h3 { color: #FFFFFF; font-size: 24px; }
.bento__card--cta p { color: rgba(255, 255, 255, 0.86);  }
.bento__card--cta:hover {
  border-color: transparent;
  box-shadow: 0 18px 40px -14px rgba(58, 63, 142, 0.45);
}
.bento__card--cta h3 span {
  display: inline-block;
  transition: transform 0.25s var(--ease);
}
.bento__card--cta:hover h3 span { transform: translateX(4px); }

/* Split feature section */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.split--reverse { direction: rtl; }
.split--reverse > * { direction: ltr; }

.split__text h2 {
  font-size: var(--fs-h2);
  font-weight: 400;
  margin: 16px 0 22px;
  text-wrap: balance;
}
.split__text p {
  color: var(--umber-soft);
  font-size: var(--fs-lead);
  margin-bottom: 14px;
}

.ticklist {
  list-style: none;
  margin-top: 22px;
  display: grid;
  gap: 14px;
}
.ticklist li {
  position: relative;
  padding-left: 36px;
  color: var(--umber);
  font-size: 16px;
  line-height: 1.55;
}
.ticklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--olive);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FBFBFD' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: 14px;
  background-position: center;
  background-repeat: no-repeat;
}

/* The colored visual panel */
.split__panel {
  position: relative;
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 48px);
  min-height: 420px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--shadow-soft);
}
.split__panel--clay {
  background: linear-gradient(160deg, var(--clay) 0%, var(--clay-dark) 100%);
  color: var(--cream);
}
.split__panel--olive {
  background: linear-gradient(160deg, var(--olive) 0%, var(--olive-dark) 100%);
  color: var(--cream);
}
.split__panel--sand {
  background: linear-gradient(160deg, var(--sand) 0%, #E3E0F0 100%);
  color: var(--umber);
}

.panel__inner {
  position: relative;
  z-index: 2;
  will-change: transform;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 360px;
}

.panel__deco {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(251, 251, 253, 0.7) 0%, transparent 30%),
    radial-gradient(circle at 20% 90%, rgba(251, 251, 253, 0.5) 0%, transparent 35%);
}

/* Phone mockup used inside split panels */
.phone {
  align-self: center;
  width: 240px;
  aspect-ratio: 9 / 19;
  border-radius: 36px;
  background: var(--cream);
  padding: 14px 10px;
  box-shadow: 0 30px 50px -20px rgba(27, 31, 45, 0.45),
              inset 0 0 0 4px rgba(27, 31, 45, 0.95);
  color: var(--umber);
  position: relative;
  margin: auto;
}
.phone::before {
  content: '';
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 18px;
  background: rgba(27, 31, 45, 0.95);
  border-radius: 999px;
}
.phone__screen {
  height: 100%;
  background: var(--sand);
  border-radius: 24px;
  padding: 38px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}
.phone__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--umber-soft);
  margin-bottom: 4px;
}
.phone__title {
  font-family: 'Fraunces', serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--umber);
  line-height: 1.1;
  margin-bottom: 8px;
}
.phone__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(239, 68, 82, 0.12);
  color: var(--clay-dark);
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  width: max-content;
}
.phone__chip::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--clay);
  border-radius: 50%;
}
.phone__worker {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: var(--cream);
  border: 1px solid rgba(27, 31, 45, 0.08);
  border-radius: 12px;
}
.phone__avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--olive), var(--olive-dark));
  flex-shrink: 0;
  position: relative;
}
.phone__avatar--clay { background: linear-gradient(135deg, var(--clay), var(--clay-dark)); }
.phone__avatar::after {
  content: '';
  position: absolute;
  bottom: -1px; right: -1px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--olive);
  border: 2px solid var(--cream);
}
.phone__worker-info { flex: 1; min-width: 0; }
.phone__worker-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--umber);
}
.phone__worker-meta {
  font-size: 9.5px;
  color: var(--umber-soft);
  display: flex;
  gap: 6px;
}
.phone__stars { color: var(--clay); font-size: 9px; }

/* Number-led "how it works" card */
.step-card {
  background: var(--cream);
  border: 1px solid rgba(27, 31, 45, 0.08);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.step-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lift);
}
.step-card__n {
  font-family: 'Fraunces', serif;
  font-size: 54px;
  font-weight: 400;
  color: var(--clay);
  font-style: italic;
  line-height: 1;
  margin-bottom: 14px;
  display: inline-block;
}
.step-card h3 {
  font-size: var(--fs-h3);
  font-weight: 500;
  margin-bottom: 10px;
}
.step-card p { color: var(--umber-soft); font-size: 15px; }

/* =========================================================================
   CTA BAND (dark)
   ========================================================================= */
.cta-band {
  background: var(--umber);
  color: var(--cream);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cta-band::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--clay) 0%, transparent 70%);
  top: -200px; right: -200px;
  opacity: 0.35;
  filter: blur(60px);
  z-index: 1;
}
.cta-band::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--olive) 0%, transparent 70%);
  bottom: -180px; left: -180px;
  opacity: 0.32;
  filter: blur(60px);
  z-index: 1;
}
.cta-band .container { z-index: 2; }
.cta-band__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: center;
  padding: clamp(56px, 8vw, 96px) 0;
}
.cta-band h2 {
  font-size: var(--fs-h2);
  font-weight: 400;
  color: var(--cream);

  text-wrap: balance;
}
.cta-band h2 em { color: var(--clay); }
.cta-band p {
  color: rgba(251, 251, 253, 0.7);
  margin-top: 12px;
 
}
.cta-band .btn--primary {
  background: var(--clay);
  color: var(--cream);
}
.cta-band .btn--primary:hover { background: var(--clay-dark); }
.cta-band .btn--ghost {
  color: var(--cream);
  border-color: rgba(251, 251, 253, 0.25);
}
.cta-band .btn--ghost:hover {
  background: rgba(251, 251, 253, 0.08);
  border-color: rgba(251, 251, 253, 0.4);
  color: var(--cream);
}

/* =========================================================================
   CONTACT
   ========================================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(28px, 4vw, 60px);
  align-items: start;
}
.info-list {
  display: grid;
  gap: 22px;
  list-style: none;
}
.info-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px;
  background: var(--cream);
  border: 1px solid rgba(27, 31, 45, 0.08);
  border-radius: var(--radius);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.info-item:hover {
  transform: translateY(-3px);
  border-color: rgba(239, 68, 82, 0.25);
}
.info-item__icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: rgba(58, 63, 142, 0.14);
  color: var(--olive-dark);
  display: grid;
  place-items: center;
}
.info-item__icon svg { width: 20px; height: 20px; }
.info-item__icon--clay {
  background: rgba(239, 68, 82, 0.12);
  color: var(--clay-dark);
}
.info-item__label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--umber-soft);
  margin-bottom: 4px;
}
.info-item__value {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--umber);
  word-break: break-word;
}
.info-item a { color: var(--umber); }
.info-item a:hover { color: var(--clay-dark); }

.form-card {
  background: var(--cream);
  border: 1px solid rgba(27, 31, 45, 0.1);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-soft);
}
.form-card h3 {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 6px;
}
.form-card p { color: var(--umber-soft); font-size: 15px; margin-bottom: 22px; }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--umber-soft);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(27, 31, 45, 0.16);
  background: var(--cream);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--umber);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--clay);
  background: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(239, 68, 82, 0.14);
}
.field textarea { resize: vertical; min-height: 130px; }
.field--row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-success {
  display: none;
  margin-top: 18px;
  padding: 16px 20px;
  background: rgba(58, 63, 142, 0.14);
  border: 1px solid rgba(58, 63, 142, 0.3);
  border-radius: var(--radius-sm);
  color: var(--olive-dark);
  font-size: 14px;
}
.form-success.show { display: flex; align-items: center; gap: 10px; animation: fadeUp 0.4s var(--ease); }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer {
  background: var(--sand);
  color: var(--umber-soft);
  padding: 80px 0 32px;
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(27, 31, 45, 0.08);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(27, 31, 45, 0.10);
}
.footer h4 {
  color: var(--umber);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  margin-bottom: 18px;
}
.footer__brand .brand { color: var(--umber); }
.footer__brand .brand__mark { box-shadow: inset 0 0 0 1px rgba(27, 31, 45, 0.12); }
.footer__brand p {
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.6;
  
  color: var(--umber-soft);
}
.footer__links {
  list-style: none;
  display: grid;
  gap: 10px;
}
.footer__links a {
  color: var(--umber-soft);
  font-size: 14px;
  transition: color 0.18s var(--ease);
}
.footer__links a:hover { color: var(--clay); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 13px;
  color: rgba(27, 31, 45, 0.55);
}
.footer__bottom span { display: inline-flex; align-items: center; gap: 6px; }

/* =========================================================================
   REVEAL / PARALLAX
   ========================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.show {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger via inline-set delay on children or via :nth-child fallback */
.stagger > .reveal:nth-child(1) { transition-delay: 0ms; }
.stagger > .reveal:nth-child(2) { transition-delay: 100ms; }
.stagger > .reveal:nth-child(3) { transition-delay: 200ms; }
.stagger > .reveal:nth-child(4) { transition-delay: 300ms; }
.stagger > .reveal:nth-child(5) { transition-delay: 400ms; }
.stagger > .reveal:nth-child(6) { transition-delay: 500ms; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 24px 0; }
  .stat { border-right: 0; border-bottom: 1px solid rgba(27, 31, 45, 0.08); padding-bottom: 18px; }
  .stat:nth-child(3), .stat:nth-child(4) { border-bottom: 0; padding-bottom: 0; padding-top: 6px; }
  .split { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-band__inner { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__card--featured { grid-column: 1 / -1; grid-row: auto; }
  .bento__card--wide,
  .bento__card--cta { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .burger { display: block; }
  .nav__cta { display: none; }
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(251, 251, 253, 0.98);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 20px var(--gutter) 28px;
    border-bottom: 1px solid rgba(27, 31, 45, 0.08);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.25s var(--ease);
  }
  .nav__links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav__links a {
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 16px;
  }
  .nav__links li:last-child {
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1px solid rgba(27, 31, 45, 0.08);
  }
  .grid-3, .grid-2x2, .grid-2 { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .bento__card--featured,
  .bento__card--wide,
  .bento__card--cta { grid-column: 1 / -1; grid-row: auto; }
  .bento__card--featured { padding: 30px 26px; }
  .bento__card--featured h3 { font-size: 26px; }
  .bento__deco { width: 110px; height: 110px; opacity: 0.7; }
  .stats { grid-template-columns: 1fr 1fr; }
  .field--row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .footer__bottom { flex-direction: column; gap: 10px; text-align: center; }
}

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

/* =========================================================================
   REDUCED MOTION
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .hero__blob { transform: none !important; }
  .panel__inner { transform: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hero .d1, .hero .d2, .hero .d3, .hero .d4 { opacity: 1; transform: none; animation: none; }
}

/* ============================================================
   Products page — featured Patko card + product card stage label
   ============================================================ */
.patko-feature {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius);
  background: var(--cream);
  border: 1px solid rgba(58, 63, 142, 0.10);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}
.patko-feature::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: var(--brand-gradient);
  opacity: 0.06;
  z-index: 0;
  pointer-events: none;
}
.patko-feature > * { position: relative; z-index: 1; }
.patko-feature__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid rgba(58, 63, 142, 0.08);
}
.patko-feature__logo {
  width: 100%;
  max-width: 280px;
  height: auto;
  display: block;
}
.patko-feature__tag {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay-dark);
  font-weight: 600;
}
.patko-feature__body h3 {
  font-family: 'Fraunces', serif;
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 500;
  line-height: 1.2;
  color: var(--umber);
  margin-bottom: 14px;
}
.patko-feature__body h3 em {
  font-style: italic;
  color: var(--olive);
}
.patko-feature__body p {
  color: var(--umber-soft);
  font-size: var(--fs-lead);
  line-height: 1.55;
  margin-bottom: 16px;
}
.card__stage {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--umber-soft);
  font-weight: 500;
  margin-bottom: 8px;
}

@media (max-width: 820px) {
  .patko-feature {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .patko-feature__brand { align-items: center; }
  .patko-feature__logo { max-width: 220px; }
}
