/* =========================================================================
   Margarita Creative - site.css  (v2, editorial-luxury craft build)
   Brand system: ../../brand/brand-system.md
   Type: Fraunces (display serif) + Plus Jakarta Sans (body, replaces Inter)
   Motion: custom cubic-beziers, press feedback, blur-up reveals, reduced-motion
   ========================================================================= */

:root {
  /* Brand palette */
  --olive:          #37402C;
  --olive-deep:     #2A3122;
  --olive-darkest:  #20261A;
  --alabaster:      #F4F0E6;
  --alabaster-soft: #EBE5D6;
  --alabaster-dim:  #E2DAC7;
  --ink:            #1C1D18;
  --ink-soft:       #45483C;
  --ink-faint:      #6E705F;
  --terracotta:     #BF5A2E;
  --terracotta-deep:#A44A23;
  --terracotta-tint:#EBD9CC;
  --line:           #D8D0BD;
  --line-soft:      #E2DBCB;
  --cream:          #F4F0E6;
  --cream-muted:    #C9C6B4;
  --cream-faint:    #9DA08C;

  /* Fonts */
  --serif: "Fraunces", "Georgia", "Times New Roman", serif;
  --sans:  "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Layout */
  --maxw: 1240px;
  --prose: 42rem;

  /* Concentric radii (double-bezel) */
  --r-shell: 26px;
  --r-core:  20px;   /* shell - padding */
  --r-card:  16px;
  --r-sm:    8px;
  --r-pill:  999px;

  /* Easing (Emil Kowalski curves) */
  --ease-out:    cubic-bezier(0.23, 1, 0.32, 1);
  --ease-inout:  cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  /* Shadows: soft, olive-tinted, never harsh black */
  --shadow-soft: 0 22px 60px -34px rgba(32, 38, 26, 0.55);
  --shadow-lift: 0 30px 80px -36px rgba(32, 38, 26, 0.6);
  --inset-hi: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--alabaster);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Film-grain overlay: fixed, pointer-events none, subtle physical paper feel.
   Shows on both light and dark bands via overlay blend. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  margin: 0 0 0.5em;
  color: var(--olive);
  font-optical-sizing: auto;
  letter-spacing: -0.018em;
}
h3 { font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1.1em; }

a { color: var(--terracotta); text-decoration: none; transition: color .18s var(--ease-out); }
a:hover { color: var(--terracotta-deep); }

::selection { background: var(--terracotta); color: var(--cream); }

/* Focus (accessibility floor) */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--olive); color: var(--cream);
  padding: 0.75rem 1rem; z-index: 200; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4.5rem 0; position: relative; }
@media (min-width: 860px) { .section { padding: 8.5rem 0; } }
.section--tight { padding-block: 3rem; }
@media (min-width: 860px) { .section--tight { padding-block: 4rem; } }

.band-olive { background: var(--olive); color: var(--cream); }
.band-olive h1, .band-olive h2, .band-olive h3, .band-olive h4 { color: var(--cream); }
.band-deep { background: var(--olive-deep); color: var(--cream); }
.band-soft { background: var(--alabaster-soft); }

.measure { max-width: var(--prose); }
.center { text-align: center; margin-inline: auto; }

/* ---------- Eyebrow pill ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  background: var(--terracotta-tint);
  border: 1px solid color-mix(in srgb, var(--terracotta) 22%, transparent);
  padding: 0.4rem 0.8rem;
  border-radius: var(--r-pill);
  margin: 0 0 1.4rem;
}
.eyebrow::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--terracotta); }
.band-olive .eyebrow, .band-deep .eyebrow {
  color: var(--cream); background: rgba(244, 240, 230, 0.08);
  border-color: rgba(244, 240, 230, 0.2);
}
.band-olive .eyebrow::before, .band-deep .eyebrow::before { background: var(--terracotta); }

/* ---------- Type scale ---------- */
.display {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.85rem, 6.8vw, 5rem); line-height: 1.0;
  letter-spacing: -0.03em; color: var(--olive); margin: 0 0 1.4rem;
  text-wrap: balance;
}
h1, h2, h3 { text-wrap: balance; }
.lede, p { text-wrap: pretty; }
.band-olive .display, .band-deep .display { color: var(--cream); }
.display em, .h-italic { font-style: italic; font-weight: 400; }
.display .accent, .accent-word { color: var(--terracotta); font-style: italic; font-weight: 400; }

h1, .h1 { font-size: clamp(2.25rem, 4.6vw, 3.1rem); }
h2, .h2 { font-size: clamp(1.85rem, 3.4vw, 2.4rem); margin-bottom: 0.6rem; }
h3, .h3 { font-size: 1.4rem; line-height: 1.24; }

.lede { font-size: 1.22rem; line-height: 1.62; color: var(--ink-soft); max-width: var(--prose); letter-spacing: -0.005em; }
.band-olive .lede, .band-deep .lede { color: var(--cream-muted); }

.label-sm { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }

/* ---------- Buttons (pill + button-in-button + magnetic) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  min-height: 52px; padding: 0.5rem 0.5rem 0.5rem 1.5rem;
  font-family: var(--sans); font-size: 1rem; font-weight: 600; letter-spacing: -0.01em;
  border-radius: var(--r-pill); border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .25s var(--ease-out), color .25s var(--ease-out),
              border-color .25s var(--ease-out), transform .12s var(--ease-out),
              box-shadow .25s var(--ease-out);
}
.btn .btn__ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: var(--r-pill);
  background: rgba(244, 240, 230, 0.18);
  transition: transform .3s var(--ease-out), background .25s var(--ease-out);
}
.btn .btn__ico svg { width: 15px; height: 15px; }
.btn:active { transform: scale(0.975); }
.btn--primary { background: var(--terracotta); color: var(--cream); }
.btn--primary .btn__ico { background: rgba(0,0,0,0.16); }
.btn--ghost { background: transparent; color: var(--olive); border-color: var(--line); padding-left: 1.5rem; }
.btn--ghost .btn__ico { background: var(--alabaster-soft); color: var(--olive); }
.btn--text { padding: 0; min-height: 0; background: none; border: 0; }

.band-olive .btn--ghost, .band-deep .btn--ghost { color: var(--cream); border-color: rgba(244,240,230,0.3); }
.band-olive .btn--ghost .btn__ico, .band-deep .btn--ghost .btn__ico { background: rgba(244,240,230,0.12); color: var(--cream); }

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--terracotta-deep); box-shadow: var(--shadow-soft); transform: translateY(-1px); }
  .btn--primary:hover .btn__ico { transform: translate(3px, -2px); }
  .btn--ghost:hover { border-color: var(--olive); background: var(--olive); color: var(--cream); }
  .btn--ghost:hover .btn__ico { background: rgba(244,240,230,0.16); color: var(--cream); transform: translate(3px, -2px); }
  .band-olive .btn--ghost:hover, .band-deep .btn--ghost:hover { background: var(--cream); color: var(--olive); border-color: var(--cream); }
  .band-olive .btn--ghost:hover .btn__ico, .band-deep .btn--ghost:hover .btn__ico { background: var(--alabaster-soft); color: var(--olive); }
}
.btn--lg { min-height: 58px; font-size: 1.0625rem; padding-left: 1.75rem; }
.btn--lg .btn__ico { width: 38px; height: 38px; }
@media (max-width: 480px) {
  .btn { white-space: normal; }
  .hero__actions { flex-direction: column; align-items: stretch; gap: 1.5rem; }
  .hero__actions .btn { width: 100%; justify-content: space-between; }
}

/* Arrow text-link */
.arrow-link { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--terracotta); letter-spacing: -0.01em; }
.arrow-link .arw { transition: transform .25s var(--ease-out); }
@media (hover: hover) { .arrow-link:hover .arw { transform: translateX(5px); } }

/* ---------- Floating island nav ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; padding: 1rem 1rem 0; }
.nav-island {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; height: 64px; padding: 0 0.7rem 0 1.4rem;
  background: color-mix(in srgb, var(--alabaster) 78%, transparent);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: var(--r-pill);
  box-shadow: 0 10px 40px -24px rgba(32, 38, 26, 0.5);
  transition: transform .4s var(--ease-out), box-shadow .3s var(--ease-out);
}
.site-header.is-hidden .nav-island { transform: translateY(calc(-100% - 1.4rem)); }

.brand-lockup { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand-petal { width: 27px; height: 27px; flex: none; transition: transform .5s var(--ease-out); }
@media (hover: hover) { .brand-lockup:hover .brand-petal { transform: rotate(45deg); } }
.brand-name { font-family: var(--serif); font-weight: 500; font-size: 1.32rem; color: var(--olive); letter-spacing: -0.02em; line-height: 1; }
.brand-name b { font-weight: 500; font-style: italic; }

.nav-links { display: flex; align-items: center; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--sans); font-weight: 500; font-size: 0.95rem; letter-spacing: -0.01em;
  color: var(--ink); padding: 0.5rem 0.9rem; border-radius: var(--r-pill);
  transition: background .2s var(--ease-out), color .2s var(--ease-out);
}
@media (hover: hover) { .nav-links a:hover { background: var(--alabaster-soft); color: var(--olive); } }
.nav-links a[aria-current="page"] { color: var(--olive); background: var(--alabaster-dim); }
.nav-links .nav-cta { margin-left: 0.3rem; }
.nav-links .nav-cta a, .nav-links a.btn { padding: 0; }

.lang-switch {
  display: inline-flex; align-items: center; gap: 0.05rem;
  margin-left: 0.15rem; flex: none;
}
.lang-switch a {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.12em; color: var(--ink-faint);
  padding: 0; width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-pill);
}
.lang-switch a[aria-current="true"] { color: var(--olive); background: var(--alabaster-dim); }
@media (hover: hover) { .lang-switch a:hover { color: var(--olive); background: var(--alabaster-soft); } }
.nav-overlay .lang-switch { margin: 1.5rem 0 0.75rem; }
.nav-overlay .lang-switch a {
  color: var(--cream-muted);
  font-family: var(--sans); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.12em; width: 44px; height: 44px; padding: 0;
  transform: none; opacity: 1;
}
.nav-overlay .lang-switch a[aria-current="true"] { color: var(--cream); background: rgba(244,240,230,0.12); }

/* Hamburger (morphs to X) */
.nav-toggle {
  display: none; position: relative; width: 48px; height: 48px;
  background: none; border: 0; cursor: pointer; border-radius: var(--r-pill); flex: none;
}
.nav-toggle .bar { position: absolute; left: 13px; width: 22px; height: 2px; background: var(--olive); border-radius: 2px;
  transition: transform .35s var(--ease-out), opacity .2s var(--ease-out); }
.nav-toggle .bar:nth-child(1) { top: 19px; }
.nav-toggle .bar:nth-child(2) { top: 27px; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* Full-screen overlay menu */
.nav-overlay {
  position: fixed; inset: 0; z-index: 95;
  background: color-mix(in srgb, var(--olive-deep) 96%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 6rem 2rem 3rem;
  opacity: 0; visibility: hidden;
  overflow: hidden;
  transition: opacity .4s var(--ease-out), visibility 0s linear .4s;
}
.nav-overlay.open { opacity: 1; visibility: visible; transition: opacity .4s var(--ease-out); }
.nav-overlay .wrap {
  transform: scale(1.02);
  transition: transform .4s var(--ease-out);
}
.nav-overlay.open .wrap { transform: scale(1); }
.nav-overlay ul { list-style: none; margin: 0; padding: 0; }
.nav-overlay li { overflow: hidden; }
.nav-overlay a {
  display: inline-block; font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.4rem, 11vw, 4rem); letter-spacing: -0.03em; line-height: 1.18;
  color: var(--cream); padding: 0.1em 0;
  transform: translateY(110%); opacity: 0;
  transition: transform .6s var(--ease-out), opacity .6s var(--ease-out), color .2s var(--ease-out);
}
.nav-overlay.open a { transform: translateY(0); opacity: 1; }
.nav-overlay.open li:nth-child(1) a { transition-delay: .08s; }
.nav-overlay.open li:nth-child(2) a { transition-delay: .14s; }
.nav-overlay.open li:nth-child(3) a { transition-delay: .20s; }
.nav-overlay.open li:nth-child(4) a { transition-delay: .26s; }
.nav-overlay.open li:nth-child(5) a { transition-delay: .32s; }
.nav-overlay.open li:nth-child(6) a { transition-delay: .38s; }
@media (hover: hover) { .nav-overlay a:hover { color: var(--terracotta); } }
.nav-overlay .ov-foot { margin-top: 3rem; color: var(--cream-muted); font-family: var(--sans); }
.nav-overlay .ov-foot a { font-family: var(--sans); font-size: 1rem; font-weight: 500; color: var(--cream); transform: none; opacity: 1; }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .lang-switch { margin-left: auto; }
}

/* ---------- Hero (editorial) ---------- */
.hero { padding-top: 8.5rem; padding-bottom: 5rem; }
@media (min-width: 860px) { .hero { padding-top: 12rem; padding-bottom: 7rem; } }
/* First section on inner pages clears the fixed pill nav */
.page-top { padding-top: 4.5rem; }
@media (min-width: 860px) { .page-top { padding-top: 6.5rem; } }
.hero__grid { display: grid; gap: 2.5rem; align-items: end; }
@media (min-width: 980px) { .hero__grid { grid-template-columns: 1.15fr 0.85fr; gap: 4rem; } }
.hero__sub { font-size: 1.22rem; line-height: 1.6; color: var(--cream-muted); max-width: 44ch; margin: 0 0 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
@media (max-width: 480px) { .hero__actions { gap: 1.5rem; } }
.hero__aside { color: var(--cream-muted); }
.hero__aside .stat-line { border-top: 1px solid rgba(244,240,230,0.16); padding: 1rem 0; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.hero__aside .stat-line b { font-family: var(--serif); font-size: 1.5rem; color: var(--cream); font-weight: 500; }
.hero__aside .stat-line span { font-size: 0.92rem; max-width: 22ch; text-align: right; }

/* Hero reel (double-bezel media tray) */
.reel-tray {
  margin-top: 3.5rem; padding: 8px;
  background: rgba(244, 240, 230, 0.06);
  border: 1px solid rgba(244, 240, 230, 0.14);
  border-radius: var(--r-shell);
}
.reel {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  border-radius: var(--r-core); overflow: hidden;
}
.reel .tile { aspect-ratio: 5 / 4; display: flex; align-items: flex-end; padding: 1.1rem; border-radius: 13px; position: relative; overflow: hidden; }
.reel .tile span { font-family: var(--serif); font-size: 1.15rem; color: var(--cream); font-style: italic; position: relative; z-index: 1; text-wrap: balance; }
.reel .tile .k { position: absolute; top: 0.9rem; left: 1.1rem; font-family: var(--sans); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(244,240,230,0.7); }
.tile-1 { background: linear-gradient(150deg, #4d573d 0%, #2f3724 100%); }
.tile-2 { background: linear-gradient(150deg, var(--terracotta) 0%, #8c3d1d 100%); }
.tile-3 { background: linear-gradient(150deg, #5d6549 0%, #3a4230 100%); }
.tile-4 { background: linear-gradient(150deg, #8a4a2e 0%, #3a4230 100%); }
@media (max-width: 880px) { .reel { grid-template-columns: 1fr 1fr; } }

/* ---------- Double-bezel card ---------- */
.shell {
  background: var(--alabaster-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-shell);
  padding: 8px;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.shell > .core {
  background: var(--alabaster);
  border-radius: var(--r-core);
  box-shadow: var(--inset-hi);
  padding: 2rem;
  height: 100%;
}
@media (hover: hover) { .shell:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); } }
.band-olive .shell { background: rgba(244,240,230,0.05); border-color: rgba(244,240,230,0.12); }
.band-olive .shell > .core { background: var(--olive-deep); box-shadow: inset 0 1px 0 rgba(244,240,230,0.06); color: var(--cream-muted); }

.card-num { font-family: var(--serif); font-size: 0.95rem; color: var(--terracotta); font-weight: 600; font-style: italic; }
.core h3 { margin: 0.5rem 0 0.6rem; }
.core ul { margin: 1.1rem 0 1.3rem; padding-left: 0; list-style: none; }
.core ul li { position: relative; padding: 0.35rem 0 0.35rem 1.5rem; border-bottom: 1px solid var(--line-soft); font-size: 0.98rem; }
.core ul li:last-child { border-bottom: 0; }
.core ul li::before { content: ""; position: absolute; left: 0; top: 0.95rem; width: 7px; height: 7px; background: var(--terracotta); border-radius: 2px; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-2, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
.section-head { max-width: var(--prose); margin-bottom: 3rem; }
.split { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; align-items: start; gap: 4rem; } .split--lead { grid-template-columns: 0.85fr 1.15fr; } }

/* ---------- Proof strip ---------- */
.proof-strip { border-block: 1px solid var(--line); }
.proof-strip .wrap { display: flex; align-items: center; gap: 1.5rem 2.25rem; flex-wrap: wrap; justify-content: center; }
.logo-slot { font-family: var(--serif); font-size: 1.1rem; font-style: italic; color: var(--olive); opacity: 0.5; }
.proof-tools { display: flex; align-items: center; gap: 1.25rem 2.25rem; flex-wrap: wrap; justify-content: center; }
.proof-tools b { font-family: var(--serif); font-size: 1.2rem; font-style: italic; font-weight: 500; color: var(--olive); }
.proof-logo {
  display: block;
  height: 1.35rem;
  width: auto;
  max-width: 7.5rem;
  object-fit: contain;
  object-position: center;
}
.proof-logo--webflow { height: 1.15rem; max-width: 8.5rem; }
.proof-logo--figma { height: 1.25rem; }
.proof-logo--n8n { height: 1.4rem; }
.proof-logo--ga4 { height: 1.55rem; }

/* ---------- Service deep blocks ---------- */
.service-block { border-top: 1px solid var(--line); padding-top: 4rem; margin-top: 5rem; }
.service-block:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.deliverables { list-style: none; padding: 0; margin: 0; }
.deliverables li { padding: 0.7rem 0 0.7rem 1.85rem; border-bottom: 1px solid var(--line); position: relative; }
.deliverables li::before { content: ""; position: absolute; left: 0; top: 1.25rem; width: 9px; height: 9px; background: var(--terracotta); border-radius: 2px; }
.price-card .core { background: var(--olive); color: var(--cream); }
.price-card .core h4 { color: var(--cream); font-family: var(--serif); font-size: 1.2rem; margin-bottom: 0.35rem; }
.price-row { font-family: var(--serif); font-size: 1.85rem; color: var(--cream); margin: 0.4rem 0; }
.price-row small { font-family: var(--sans); font-size: 0.88rem; color: var(--cream-muted); font-weight: 500; }
.price-note { color: var(--cream-muted); font-size: 0.9rem; }

.pack-block { margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.pack-block > h3 { max-width: 28ch; text-wrap: balance; margin: 0.65rem 0 0; }
.pack-grid { display: grid; gap: 1.5rem; margin-top: 2rem; }
@media (min-width: 900px) { .pack-grid { grid-template-columns: repeat(3, 1fr); } }
.pack-card .core { display: flex; flex-direction: column; }
.pack-card h3 { text-wrap: balance; }
.pack-card__meta {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-faint); margin: 0 0 0.85rem;
}
.pack-card .deliverables li { padding: 0.5rem 0 0.5rem 1.6rem; font-size: 0.95rem; }
.pack-card .deliverables li::before { top: 0.95rem; width: 7px; height: 7px; }
.pack-io { margin-top: 1.25rem; }
.pack-io + .pack-io { margin-top: 1.35rem; }
.pack-io b {
  display: block; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--terracotta); margin-bottom: 0.15rem;
}
.pack-card--focus .core { background: var(--olive); color: var(--cream); }
.pack-card--focus h3 { color: var(--cream); }
.pack-card--focus .pack-card__meta,
.pack-card--focus p { color: var(--cream-muted); }
.pack-card--focus .pack-io b { color: var(--terracotta-tint); }
.pack-card--focus .deliverables li { border-color: rgba(244,240,230,0.12); color: var(--cream); }
.n8n-block { margin-top: 3rem; max-width: 46rem; }
.n8n-block h3 { text-wrap: balance; }

/* ---------- Work / case grid ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.5rem; }
.filter {
  font-family: var(--sans); font-weight: 600; font-size: 0.9rem; letter-spacing: -0.01em;
  background: transparent; border: 1px solid var(--line); color: var(--ink-soft);
  padding: 0.55rem 1.2rem; border-radius: var(--r-pill); cursor: pointer; min-height: 42px;
  transition: background .2s var(--ease-out), color .2s var(--ease-out), border-color .2s var(--ease-out);
}
@media (hover: hover) { .filter:hover { border-color: var(--olive); color: var(--olive); } }
.filter[aria-pressed="true"] { background: var(--olive); color: var(--cream); border-color: var(--olive); }
.work-grid { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
.case { display: flex; flex-direction: column; }
.case .core { padding: 0; overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.case__thumb { aspect-ratio: 16 / 10; display: flex; align-items: flex-end; padding: 1.25rem; position: relative; }
.thumb-web    { background: linear-gradient(145deg, #4d573d, #2a3122); }
.thumb-email  { background: linear-gradient(145deg, var(--terracotta), #7e3619); }
.thumb-graphic{ background: linear-gradient(145deg, #5d6549, #353d2b); }
.case__thumb .tag { background: rgba(244,240,230,0.18); color: var(--cream); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.32rem 0.75rem; border-radius: var(--r-pill); position: relative; z-index: 1; }
.case__logo-card {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: var(--cream); border-radius: 10px; padding: 0.85rem 1.15rem;
  display: flex; align-items: center; justify-content: center;
  max-width: 68%; max-height: 56%; box-shadow: 0 10px 24px -8px rgba(0,0,0,0.35);
}
.case__logo-card img { width: auto; height: 2.75rem; max-width: 100%; object-fit: contain; display: block; }
.case__logo-card--dark { background: var(--ink); }
.case__thumb--photo { padding: 0; overflow: hidden; }
.case__thumb--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.case__thumb--photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,20,18,0.65), rgba(20,20,18,0) 55%);
}
.case__thumb--photo .tag { position: relative; z-index: 1; margin: 1.25rem; }
.case__body { padding: 1.6rem; }
.case__body .meta { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.case__body h3 { margin: 0.45rem 0 0.5rem; text-wrap: balance; }
.case__result { font-family: var(--serif); color: var(--terracotta); font-size: 1.05rem; font-style: italic; margin-top: 0.6rem; }
.case.is-hidden { display: none; }

/* ---------- STAR ---------- */
.star { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .star { grid-template-columns: repeat(4, 1fr); } }
.star .step { border-top: 2px solid var(--terracotta); padding-top: 0.9rem; }
.star .step b { font-family: var(--serif); font-size: 1.15rem; color: var(--olive); display: block; font-weight: 600; }
.band-olive .star .step b { color: var(--cream); }

/* ---------- Method steps ---------- */
.steps { counter-reset: step; display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
.step-card .core { padding: 2rem 2rem 2rem 4.5rem; position: relative; }
.step-card .core::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 2rem; top: 2.05rem;
  font-family: var(--serif); font-size: 1.35rem; color: var(--terracotta); font-weight: 600; font-style: italic;
}
.values { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .values { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Forms ---------- */
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.1fr 0.9fr; align-items: start; gap: 4rem; } }
.form { display: grid; gap: 1.2rem; }
.field { display: grid; gap: 0.45rem; }
.field label { font-weight: 600; font-size: 0.95rem; color: var(--olive); letter-spacing: -0.01em; }
.field .hint { font-size: 0.85rem; color: var(--ink-faint); font-weight: 500; }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: var(--alabaster); border: 1.5px solid var(--line); border-radius: var(--r-sm);
  padding: 0.85rem 1rem; width: 100%; min-height: 50px;
  transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--olive); box-shadow: 0 0 0 4px var(--terracotta-tint); outline: none; }
.field--row { display: grid; gap: 1.2rem; }
@media (min-width: 560px) { .field--row { grid-template-columns: 1fr 1fr; } }
.form-note { font-size: 0.85rem; color: var(--ink-faint); }
.hp { position: absolute; left: -9999px; height: 0; width: 0; overflow: hidden; }
.form-banner {
  display: none; margin-bottom: 1.25rem; padding: 1rem 1.15rem;
  background: var(--alabaster-soft); border: 1px solid var(--line);
  color: var(--olive); font-weight: 500;
}
.form-banner.is-on, .form.is-sent .form-banner { display: block; }
.form.is-sent .form-fields { display: none; }
.form-success[hidden], .form-banner[hidden] { display: none; }
.form.is-sent .form-success { display: block; }
.form.is-sent .form-success[hidden] { display: block; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea {
  border-color: var(--terracotta);
}
.btn[disabled] { opacity: 0.65; pointer-events: none; }
.qualifier .core ul { list-style: none; padding-left: 0; margin-top: 0.6rem; }
.qualifier .core ul li { padding-left: 1.6rem; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band .display { margin-inline: auto; max-width: 22ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--olive-darkest); color: var(--cream-muted); padding: 5rem 0 2rem; }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.footer-grid-4 { display: grid; gap: 2.5rem; }
@media (min-width: 760px) { .footer-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .footer-grid-4 { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.site-footer a { color: var(--cream); }
@media (hover: hover) { .site-footer a:hover { color: var(--terracotta); } }
.footer-col h4 { color: var(--cream); font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; margin-bottom: 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-brand .brand-name { color: var(--cream); }
.footer-brand p { max-width: 34ch; margin-bottom: 1.5rem; }
.footer-brand .nl-form { max-width: 22rem; }
.footer-social { display: flex; gap: 0.6rem; }
.footer-social__btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--r-pill);
  border: 1.5px solid rgba(244,240,230,0.25); color: var(--cream);
  transition: border-color 0.15s ease, color 0.15s ease;
}
@media (hover: hover) {
  .footer-social__btn:hover { border-color: var(--terracotta); color: var(--terracotta); }
}
.footer-bottom { border-top: 1px solid rgba(244,240,230,0.12); margin-top: 3.5rem; padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: 0.85rem; }

/* Footer newsletter field: single input, circular send button embedded inside it */
.footer-brand .nl-fields { position: relative; display: block; }
.footer-brand .nl-fields input[type="email"] {
  width: 100%; height: 48px; padding: 0 3.25rem 0 1rem;
  border: 1.5px solid rgba(244,240,230,0.25); background: rgba(244,240,230,0.08);
  color: var(--cream); border-radius: var(--r-sm); font-family: var(--sans); font-size: 0.95rem;
  outline: none; transition: border-color 0.15s ease;
}
.footer-brand .nl-fields input[type="email"]::placeholder { color: var(--cream-faint); }
.footer-brand .nl-fields input[type="email"]:focus { border-color: var(--terracotta); }
.footer-brand .nl-send-btn {
  position: absolute; right: 5px; top: 5px; width: 38px; height: 38px; padding: 0;
  border-radius: var(--r-pill); background: var(--terracotta); color: var(--cream);
  display: flex; align-items: center; justify-content: center; border: none; cursor: pointer;
  transition: transform 0.15s ease;
}
@media (hover: hover) { .footer-brand .nl-send-btn:hover { transform: scale(1.06); } }

/* ---------- Feature list (services capabilities) ---------- */
.feature-list { list-style: none; margin: 1.75rem 0 0; padding: 0; border-top: 1px solid var(--alabaster-dim); }
.feature-list li { display: flex; align-items: flex-start; gap: 0.9rem; padding: 1.1rem 0; border-bottom: 1px solid var(--alabaster-dim); }
.feature-list__icon { flex: none; width: 20px; height: 20px; margin-top: 0.15rem; color: var(--terracotta); }
.feature-list b { display: block; font-family: var(--sans); font-size: 0.98rem; margin-bottom: 0.2rem; }

/* ---------- Portal mockup (crafted visual, no stock imagery) ---------- */
.portal-mock .core { padding: 1.5rem; }
.portal-mock__bar { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 1.3rem; }
.portal-mock__bar span { width: 8px; height: 8px; border-radius: 50%; background: var(--alabaster-dim); display: inline-block; }
.portal-mock__bar b { margin-left: 0.6rem; font-family: var(--sans); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-faint); }
.portal-mock__row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.5rem; font-size: 0.86rem; }
.portal-mock__label { color: var(--ink-soft); }
.portal-mock__chip { flex: none; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: var(--terracotta-deep); background: rgba(191,90,46,0.1); padding: 0.2rem 0.55rem; border-radius: 999px; }
.portal-mock__chip--done { color: var(--olive-deep); background: rgba(55,64,44,0.1); }
.portal-mock__track { height: 6px; border-radius: 999px; background: var(--alabaster-dim); overflow: hidden; margin-bottom: 1.3rem; }
.portal-mock__fill { height: 100%; background: var(--terracotta); border-radius: 999px; }

/* ---------- Footer bloom: the brand mark, grown into a small margarita ---------- */
.footer-bloom { display: flex; justify-content: center; padding-top: 3rem; }
.footer-bloom__field { position: relative; width: 128px; height: 128px; }
.footer-bloom__petal {
  position: absolute; left: 50%; top: 50%; width: 15px; height: 46px;
  margin-left: -7.5px; margin-top: -46px;
  transform-origin: 50% 100%;
  transform: rotate(var(--rot));
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  background: linear-gradient(180deg, var(--terracotta) 0%, var(--alabaster-dim) 96%);
  filter: blur(.3px);
  opacity: .92;
  animation: petal-sway 6.5s ease-in-out infinite;
  animation-delay: var(--delay);
}
.footer-bloom__center {
  position: absolute; left: 50%; top: 50%; width: 25px; height: 25px; margin: -12.5px;
  border-radius: 50%; background: var(--terracotta-deep);
}
@keyframes petal-sway {
  0%, 100% { transform: rotate(var(--rot)) rotate(-4deg) scaleY(1); }
  50% { transform: rotate(var(--rot)) rotate(4deg) scaleY(1.04); }
}
@media (prefers-reduced-motion: reduce) {
  .footer-bloom__petal { animation: none; }
}

/* ---------- Scroll reveal (blur-up), progressive enhancement ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(22px); filter: blur(6px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out), filter .8s var(--ease-out); }
.js [data-reveal].in { opacity: 1; transform: none; filter: blur(0); }
.js [data-reveal][data-delay="1"] { transition-delay: .06s; }
.js [data-reveal][data-delay="2"] { transition-delay: .12s; }
.js [data-reveal][data-delay="3"] { transition-delay: .18s; }
.js [data-reveal][data-delay="4"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; filter: none; transition: none; }
  .reel .tile, .btn, .shell, .nav-overlay a { transition: none !important; }
}

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 1rem; }
.pill { display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; background: var(--alabaster-soft); color: var(--olive); border: 1px solid var(--line); padding: 0.28rem 0.75rem; border-radius: var(--r-pill); }

/* =========================================================================
   v4 Hero: Prisma full-bleed frame (homepage only)
   ========================================================================= */
.hero-v4__stage {
  padding: clamp(.6rem, 2vw, 1.2rem);
  background: var(--olive-darkest);
}
.hero-v4__frame {
  position: relative;
  height: calc(100vh - clamp(1.2rem, 4vw, 2.4rem));
  min-height: 560px;
  overflow: hidden;
  border-radius: clamp(1.1rem, 3vw, 2rem);
  background: #14170F;
}

.hero-v4__pixels {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #14170F url("../brand/banner-pixels.png") 50% 42% / cover no-repeat;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  pointer-events: none;
  transform-origin: 50% 42%;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-v4__pixels {
    animation: pixel-drift 32s linear infinite alternate;
  }
}
@keyframes pixel-drift {
  from { transform: scale(1.12) translate(-2.5%, -2.5%); }
  to { transform: scale(1.12) translate(2.5%, 2.5%); }
}

.hero-v4__scrim {
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(15,18,12,.35) 0%, rgba(15,18,12,.08) 38%, rgba(15,18,12,.62) 100%);
  pointer-events: none;
}
.hero-v4__content {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 0 clamp(1rem, 4vw, 2.6rem) clamp(1.2rem, 3.5vw, 2rem);
}
.hero-v4__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: end;
}
@media (min-width: 900px) { .hero-v4__grid { grid-template-columns: 8fr 4fr; } }

.hero-v4__giant {
  margin: 0;
  font-family: var(--serif);
  color: #F4F0E6;
  font-weight: 600;
  line-height: .84;
  letter-spacing: -0.04em;
  font-size: clamp(3.6rem, 17vw, 11rem);
  position: relative;
  display: inline-block;
  text-wrap: balance;
}
.hero-v4__star {
  position: absolute; top: .05em; right: -.5em;
  font-size: .28em; color: var(--terracotta);
}
.hero-v4__side {
  display: flex; flex-direction: column; gap: 1.25rem;
  padding-bottom: clamp(.4rem, 1.5vw, 1rem);
}
.hero-v4__side p {
  margin: 0;
  color: rgba(244,240,230,.75);
  font-size: clamp(.85rem, 1.4vw, .98rem);
  line-height: 1.55;
  max-width: 40ch;
  text-wrap: pretty;
}
.hero-v4__lede {
  font-size: clamp(1rem, 1.8vw, 1.18rem) !important;
  color: rgba(244,240,230,.92) !important;
  font-weight: 500;
}
.hero-v4__actions {
  display: flex; flex-wrap: wrap; gap: .85rem; align-items: center;
}
@media (max-width: 480px) {
  .hero-v4__actions { flex-direction: column; align-items: stretch; gap: 1.5rem; }
  .hero-v4__actions .btn-join,
  .hero-v4__actions .btn { width: 100%; justify-content: space-between; }
}

/* btn-join: cream pill with dark circle arrow (v4 hero primary CTA) */
.btn-join {
  display: inline-flex; align-items: center; gap: .6rem; align-self: flex-start;
  background: #F4F0E6; color: #171B12;
  font-family: var(--sans); font-weight: 700; font-size: .92rem;
  padding: .3rem .3rem .3rem 1.2rem; border-radius: 999px;
  text-decoration: none; white-space: nowrap;
  transition: gap .15s ease, background .18s ease, color .18s ease;
}
.btn-join:hover { gap: .9rem; color: #171B12; background: #fffdf7; }
.btn-join__ico {
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: #171B12; color: #F4F0E6; flex: none;
  transition: transform .15s ease;
}
.btn-join:hover .btn-join__ico { transform: scale(1.08); }
.btn-join svg { width: 16px; height: 16px; display: block; }

/* ghost secondary CTA inside hero-v4 frame (dark background) */
.hero-v4__side .btn--ghost,
.hero-v4__content--page .btn--ghost {
  color: rgba(244,240,230,.82);
  border-color: rgba(244,240,230,.25);
  background: transparent;
}
.hero-v4__side .btn--ghost .btn__ico,
.hero-v4__content--page .btn--ghost .btn__ico {
  background: rgba(244,240,230,.1);
  color: rgba(244,240,230,.82);
}
@media (hover: hover) {
  .hero-v4__side .btn--ghost:hover,
  .hero-v4__content--page .btn--ghost:hover {
    color: #F4F0E6;
    background: rgba(244,240,230,.07);
    border-color: rgba(244,240,230,.45);
    transform: none;
    box-shadow: none;
  }
  .hero-v4__side .btn--ghost:hover .btn__ico,
  .hero-v4__content--page .btn--ghost:hover .btn__ico {
    background: rgba(244,240,230,.14);
    color: #F4F0E6;
    transform: translate(3px, -2px);
  }
}

/* reveal inside frame */
.hero-v4__frame [data-reveal] {
  opacity: 0; transform: translateY(20px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
}
.hero-v4__frame [data-reveal].in { opacity: 1; transform: none; }
.hero-v4__frame [data-reveal][data-delay="1"] { transition-delay: .12s; }
.hero-v4__frame [data-reveal][data-delay="2"] { transition-delay: .28s; }
@media (prefers-reduced-motion: reduce) {
  .hero-v4__frame [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* =========================================================================
   Pill nav (shared base, used in both homepage frame and inner pages)
   ========================================================================= */
.pill-nav {
  position: absolute; left: 50%; top: 0;
  transform: translateX(-50%); z-index: 3;
}
.pill-nav__row {
  display: flex; align-items: center;
  gap: clamp(.7rem, 2.2vw, 2rem);
  background: #14170F;
  padding: .65rem clamp(.9rem, 2.8vw, 1.6rem);
  border-radius: 0 0 1.2rem 1.2rem;
}
.pill-nav__row > a,
.pill-nav__links a {
  font-family: var(--sans);
  font-size: .82rem; font-weight: 500;
  color: rgba(244,240,230,.72);
  transition: color .15s ease;
  white-space: nowrap;
  text-decoration: none;
}
.pill-nav__row > a:hover,
.pill-nav__links a:hover { color: #F4F0E6; }
.pill-nav__links a[aria-current="page"] { color: #F4F0E6; }

/* Home icon link */
.pill-nav__home {
  display: flex; align-items: center; flex: none;
  padding-right: clamp(.5rem, 1.2vw, .8rem);
  border-right: 1px solid rgba(244,240,230,.1);
  margin-right: -.2rem;
}
.pill-nav__bloom { width: 20px; height: 20px; display: block; flex: none; }

/* Nav links list */
.pill-nav__links {
  display: flex; align-items: center; gap: clamp(.4rem, 1.4vw, 1.2rem);
  list-style: none; margin: 0; padding: 0;
}

/* Lang switch inside pill */
.pill-nav .lang-switch,
.pill-nav__lang {
  display: inline-flex; align-items: center; gap: 0;
  margin-left: 0; flex: none;
  padding-left: clamp(.4rem, 1.2vw, .8rem);
  border-left: 1px solid rgba(244,240,230,.1);
}
.pill-nav .lang-switch a,
.pill-nav__lang a {
  font-size: .7rem; font-weight: 600; letter-spacing: .1em;
  color: rgba(244,240,230,.55);
  width: 30px; height: 30px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-pill);
  text-decoration: none;
  transition: color .15s ease, background .15s ease;
}
.pill-nav .lang-switch a[aria-current="true"],
.pill-nav__lang a[aria-current="true"] {
  color: #F4F0E6;
  background: rgba(244,240,230,.1);
}
.pill-nav .lang-switch a:hover,
.pill-nav__lang a:hover { color: #F4F0E6; background: rgba(244,240,230,.07); }

/* Hamburger inside pill (cream bars) */
.pill-nav .nav-toggle { display: none; background: none; border: 0; cursor: pointer; }
.pill-nav .nav-toggle .bar { background: rgba(244,240,230,.8); }
.pill-nav .nav-toggle[aria-expanded="true"] .bar { background: #F4F0E6; }

/* Mobile: hide text links, show hamburger */
@media (max-width: 800px) {
  .pill-nav .nav-toggle { display: inline-flex; width: 38px; height: 38px; position: relative; flex: none; }
  .pill-nav .nav-toggle .bar { left: 9px; width: 20px; }
  .pill-nav__links { display: none; }
}
@media (max-width: 640px) {
  .pill-nav__row { gap: .6rem; padding: .55rem .85rem; }
  .pill-nav__row > a { font-size: .72rem; }
}

/* =========================================================================
   Pill nav: inner pages  (site-header--pill variant)
   ========================================================================= */
.site-header--pill {
  /* override site-header's inset-0-width to auto-width centered */
  right: auto;
  left: 50%;
  transform: translateX(-50%);
  padding: 0;
  background: transparent;
  box-shadow: none;
  width: auto;
  max-width: none;
  /* scroll-hide via .is-hidden handled below */
  transition: transform .4s var(--ease-out);
}
.site-header--pill.is-hidden {
  transform: translateX(-50%) translateY(-120%);
}
/* the island-specific hide rule must not apply here */
.site-header--pill .nav-island { display: none; }

/* pill-nav--page sits statically inside the fixed site-header--pill */
.pill-nav--page {
  position: static;
  transform: none;
}
.pill-nav--page .pill-nav__row {
  border-radius: 0 0 1.2rem 1.2rem;
  box-shadow: 0 6px 28px -10px rgba(0,0,0,.55), 0 2px 8px -4px rgba(0,0,0,.3);
}

/* =========================================================================
   v4 page frame: inner pages (shared chrome, shorter than homepage)
   ========================================================================= */

/* Shorter stage for inner pages (not full viewport) */
.hero-v4__stage--page {
  padding: clamp(.6rem, 2vw, 1.2rem);
  background: var(--olive-darkest);
}

/* Shorter frame: fixed min-height (content is absolutely positioned inside) */
.hero-v4__frame--page {
  height: auto;
  min-height: clamp(30rem, 52vh, 40rem);
  padding-bottom: 0;
  /* border-radius and background inherited from .hero-v4__frame */
}

/* Taller variant for --page heroes with extra content (search input + a
   result count below the usual eyebrow/h1/lede/actions), currently only
   404.html. .hero-v4__content--page is absolutely positioned, so it does
   not contribute to the frame's auto height; without this, tall content
   clips against the frame's overflow:hidden on short/mobile viewports. */
.hero-v4__frame--search {
  min-height: clamp(40rem, 78vh, 48rem);
}

/* Page content block: stacked column (no 8fr/4fr grid) */
.hero-v4__content--page {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 0 clamp(1rem, 4vw, 2.6rem) clamp(1.5rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 54rem;
}

/* Eyebrow: cream variant inside dark frame */
.hero-v4__content--page .eyebrow {
  color: var(--cream);
  background: rgba(244, 240, 230, 0.1);
  border-color: rgba(244, 240, 230, 0.18);
}
.hero-v4__content--page .eyebrow::before {
  background: var(--terracotta);
}

/* Heading: cream on dark */
.hero-v4__content--page .display {
  color: #F4F0E6;
  margin: 0;
}

/* Lede: muted cream */
.hero-v4__content--page .lede {
  color: rgba(244, 240, 230, 0.82);
  margin: 0;
  max-width: 54ch;
}

/* CTA row (e.g. services hash links) */
.hero-v4__content--page .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
@media (max-width: 480px) {
  .hero-v4__content--page .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* page-top: zero out legacy top-padding; the v4 frame IS the top now */
.page-top {
  padding-top: 0;
}
@media (min-width: 860px) {
  .page-top {
    padding-top: 0;
  }
}

/* bb-cover brand page inside v4 frame */
.hero-v4__content--page .bb-cover__bloom {
  position: absolute;
  right: clamp(1rem, 6vw, 4rem);
  bottom: clamp(1rem, 4vw, 2rem);
  opacity: 0.35;
  pointer-events: none;
}
.hero-v4__content--page .bb-kicker {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 240, 230, 0.55);
  margin: 0;
}
.hero-v4__content--page .bb-meta {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.hero-v4__content--page .bb-meta div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.hero-v4__content--page .bb-meta b {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(244, 240, 230, 0.45);
}
.hero-v4__content--page .bb-meta span {
  font-family: var(--serif);
  font-size: 0.98rem;
  color: rgba(244, 240, 230, 0.82);
  font-style: italic;
}

/* Free-audit exit-intent popup */
.audit-popup {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease-out), visibility 0s linear .35s;
}
.audit-popup.open { opacity: 1; visibility: visible; transition: opacity .35s var(--ease-out); }
.audit-popup__backdrop {
  position: absolute; inset: 0;
  background: color-mix(in srgb, var(--olive-deep) 82%, transparent);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.audit-popup__panel {
  position: relative; width: 100%; max-width: 30rem;
  transform: translateY(12px) scale(0.98);
  transition: transform .35s var(--ease-out);
  box-shadow: var(--shadow-lift);
}
.audit-popup.open .audit-popup__panel { transform: translateY(0) scale(1); }
.audit-popup__panel .core { padding: 2.25rem; }
.audit-popup__close {
  position: absolute; top: 0.9rem; right: 0.9rem;
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  background: var(--alabaster-soft); border: 1px solid var(--line-soft); border-radius: 50%;
  color: var(--ink-faint); font-size: 1.3rem; line-height: 1; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  transition: color .2s var(--ease-out), background .2s var(--ease-out);
}
@media (hover: hover) { .audit-popup__close:hover { color: var(--terracotta); background: var(--terracotta-tint); } }
.audit-popup__close:focus-visible { border-radius: 50%; }
.audit-popup__panel h3 { font-family: var(--serif); font-size: 1.6rem; margin: 0.6rem 0 0.75rem; text-wrap: balance; }
.audit-popup__panel > .core > p { color: var(--ink-soft); margin-bottom: 1.5rem; }
.audit-popup__form .field { margin-bottom: 1.1rem; }
.audit-popup__form .btn { width: 100%; justify-content: center; margin-top: 0.25rem; margin-bottom: 1rem; }
.audit-popup__form[hidden] { display: none; }
.audit-popup__success h3 { font-family: var(--serif); font-size: 1.5rem; margin: 0.25rem 0 0.6rem; }
.audit-popup__success p { color: var(--ink-soft); }
@media (max-width: 480px) {
  .audit-popup__panel .core { padding: 1.75rem; }
  .audit-popup__panel h3 { font-size: 1.4rem; }
}

