/* ============================================================
   BURDS NERDS — bn-style.css
   All elements visible by default. JS animations are additive,
   never the only path to content being shown.
   ============================================================ */


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

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

body {
  background: var(--bn-bg);
  color: var(--bn-text);
  font-family: var(--bn-font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

a { color: var(--bn-acc-text); text-decoration: none; transition: opacity 0.15s ease; }
a:hover { opacity: 0.75; }

:focus-visible { outline: 2px solid var(--bn-acc); outline-offset: 3px; border-radius: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}


/* ── SHARED ───────────────────────────────────────────────── */

.rule {
  width: 28px;
  height: 3px;
  background: var(--bn-acc);
  border-radius: 2px;
  margin-bottom: 16px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  background: var(--bn-acc);
  color: var(--bn-acc-on);
  font-family: var(--bn-font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 28px;
  min-height: 44px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn-primary:hover { background: var(--bn-acc-hover); opacity: 1; transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary--light { background: #F0EDE6; color: #1A1818; }
.btn-primary--light:hover { background: #ffffff; opacity: 1; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  color: var(--bn-acc);
  font-size: 13px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  background: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.btn-ghost:hover { opacity: 0.7; transform: translateY(-1px); }
.btn-ghost--light { color: var(--bn-acc); text-decoration-color: rgba(184,134,11,0.35); }
.btn-ghost--light:hover { color: var(--bn-acc); opacity: 0.8; }
.btn-ghost--onaccent { color: #F0EDE6; text-decoration-color: rgba(240,237,230,0.4); }

.text-accent { color: var(--bn-acc-text); }

.section-header { margin-bottom: 48px; }

.section-title {
  font-family: var(--bn-font-display);
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--bn-text);
  line-height: 1.1;
  margin-bottom: 12px;
}

.section-sub {
  font-size: 15px;
  color: var(--bn-text-muted);
  line-height: 1.6;
}

/* Small uppercase label between the rule and the section title —
   signals the content type (e.g. "Blog") without replacing the
   branded headline below it */
.section-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--bn-acc-text);
  margin-bottom: 10px;
}

/* JS-powered scroll reveal — only fires when js-ready class is on body */
body.js-ready .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
body.js-ready .reveal.d1 { transition-delay: 0.1s; }
body.js-ready .reveal.d2 { transition-delay: 0.2s; }
body.js-ready .reveal.d3 { transition-delay: 0.3s; }
body.js-ready .reveal.d4 { transition-delay: 0.4s; }
body.js-ready .reveal.is-visible { opacity: 1; transform: translateY(0); }


/* ── NAV ──────────────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  /* 84px = 25px above logo + 34px logo + 25px below logo. Symmetric
     spacing was the goal here. Any sticky element below the nav, hero
     top-padding, or 100vh calc that subtracts nav height across the
     site must reference this value (currently hardcoded). */
  height: 84px;
  /* Semi-transparent so backdrop-filter blur actually shows through */
  background: rgba(250,250,247,0.88);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  transition: border-color 0.25s ease, background 0.25s ease, backdrop-filter 0.25s ease;
}

.nav.is-scrolled {
  background: rgba(250,250,247,0.95);
  border-bottom-color: var(--bn-bdr);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
}

[data-theme="dark"] .nav              { background: rgba(17,16,16,0.82); }
[data-theme="dark"] .nav.is-scrolled  { background: rgba(17,16,16,0.96); }

.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  /* Symmetric vertical padding so the logo centers in the 84 px nav
     with equal breathing room above and below. */
  padding: 12px 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav__logo-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bn-logo-circle);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.25s ease;
}

.nav__logo-circle span {
  display: block;
  font-family: var(--bn-font-display);
  font-weight: 800;
  font-size: 8.5px;
  color: var(--bn-logo-letter);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.nav__logo-circle--sm { width: 32px; height: 32px; }
.nav__logo-circle--sm span { font-size: 7px; }

.nav__logo-word {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--bn-logo-word);
  transition: color 0.25s ease;
}

/* ── Logo SVG swap (light / dark mode) ──────────────────────── */
.nav__logo-img {
  display: block;
  height: 34px;
  width: auto;
  flex-shrink: 0;
}

/* Until the white version exists, both show the dark logo.
   Once bn-logomark-white.svg is uploaded, update --for-dark src. */
[data-theme="light"] .nav__logo-img--for-dark  { display: none; }
[data-theme="dark"]  .nav__logo-img--for-light  { display: none; }

/* Hero state — no longer needed since hero shares page bg color */

.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--bn-text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.nav__links a:hover { color: var(--bn-text); opacity: 1; }

/* Active page indicator — set server-side via aria-current="page" in nav.php.
   Gold underline shows users which section they're currently in. */
.nav__links a[aria-current="page"] {
  color: var(--bn-acc);
  position: relative;
}
.nav__links a[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 2px;
  background: var(--bn-acc);
  border-radius: 2px;
}

.nav__actions { display: flex; align-items: center; gap: 12px; }

.nav__theme {
  width: 60px; height: 30px;
  border-radius: 9999px;
  border: 1px solid var(--bn-bdr);
  background: var(--bn-surf);
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 8px;
  position: relative;
  flex-shrink: 0;
  transition: border-color 0.2s ease, background 0.2s ease;
}

/* Sliding thumb — sits behind the icons */
.nav__theme::before {
  content: '';
  position: absolute;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--bn-acc-subtle);
  border: 1px solid var(--bn-bdr-strong);
  top: 3px; left: 3px;
  transition: transform 0.25s var(--bn-ease);
}
[data-theme="dark"] .nav__theme::before { transform: translateX(28px); }

/* Both icons always visible inside the pill */
#theme-toggle .icon-sun,
#theme-toggle .icon-moon {
  display: block;
  width: 14px; height: 14px;
  position: relative; z-index: 1;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

/* Active icon gets accent; inactive gets faint */
[data-theme="light"] #theme-toggle .icon-sun  { color: var(--bn-acc); }
[data-theme="light"] #theme-toggle .icon-moon { color: var(--bn-text-faint); }
[data-theme="dark"]  #theme-toggle .icon-sun  { color: var(--bn-text-faint); }
[data-theme="dark"]  #theme-toggle .icon-moon { color: var(--bn-acc); }

.nav__theme:hover { border-color: var(--bn-bdr-strong); background: var(--bn-surf-2); }
.nav--on-hero .nav__theme { border-color: rgba(240,237,230,0.25); background: rgba(240,237,230,0.08); }
.nav--on-hero .nav__theme::before { background: rgba(240,237,230,0.15); border-color: rgba(240,237,230,0.3); }

/* Keep global icon hiding for any other sun/moon icons outside the pill */
[data-theme="light"] .icon-moon:not(#theme-toggle .icon-moon) { display: none; }
[data-theme="dark"]  .icon-sun:not(#theme-toggle .icon-sun)   { display: none; }

.nav__cta {
  display: inline-flex;
  align-items: center;
  background: var(--bn-acc);
  color: var(--bn-acc-on);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 4px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.nav__cta:hover { background: var(--bn-acc-hover); opacity: 1; transform: translateY(-1px); }

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  /* 44×44px minimum touch target per WCAG / Apple HIG */
  width: 44px; height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}
.nav__burger span {
  display: block;
  height: 1.5px;
  background: var(--bn-text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav--on-hero .nav__burger span { background: rgba(240,237,230,0.9); }
.nav__burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  background: var(--bn-bg);
  border-top: 1px solid var(--bn-bdr);
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.nav__mobile.is-open { max-height: 80svh; overflow-y: auto; padding: 16px 24px 24px; }
.nav__mobile a {
  font-size: 15px;
  font-weight: 500;
  color: var(--bn-text);
  padding: 12px 0;
  border-bottom: 1px solid var(--bn-bdr);
  text-decoration: none;
}

/* Mobile sub-items (Portfolio dropdown) */
.nav__mobile-sub {
  font-size: 13px !important;
  font-weight: 400 !important;
  color: var(--bn-text-muted) !important;
  padding: 8px 0 8px 16px !important;
  border-bottom: 1px solid transparent !important;
}
.nav__mobile-sub--soon {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  font-weight: 400;
  color: var(--bn-text-faint) !important;
  cursor: default;
  pointer-events: none;
  display: block;
  padding: 8px 0 8px 16px;
  border-bottom: 1px solid transparent;
  font-size: 13px;
}
.nav__mobile-contact {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid var(--bn-bdr);
}
/* 44px min-height keeps contact links tappable on mobile */
.nav__mobile-contact a {
  font-size: 13px;
  color: var(--bn-text-muted);
  border: none;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0;
}
.nav__mobile-cta {
  margin-top: 16px;
  background: var(--bn-acc);
  color: var(--bn-acc-on) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 24px;
  min-height: 44px;
  border-radius: 4px;
  border: none !important;
  text-align: center;
  justify-content: center;
}

/* ── NAV DROPDOWN (desktop) ─────────────────────────────── */

.nav__dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav__dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.nav__chevron {
  transition: transform 0.18s ease;
  flex-shrink: 0;
  opacity: 0.6;
}

.nav__dropdown:hover .nav__chevron,
.nav__dropdown:focus-within .nav__chevron { transform: rotate(180deg); opacity: 1; }

.nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: -16px;
  background: var(--bn-bg);
  border: 1px solid var(--bn-bdr);
  border-radius: 8px;
  min-width: 192px;
  padding: 6px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.16s ease, transform 0.16s ease;
  z-index: 200;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
}

/* Invisible hover bridge — fills the gap between toggle and menu
   so the mouse never leaves the hover zone mid-travel.          */
.nav__dropdown-menu::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: -8px;
  right: -8px;
  height: 12px;
}

.nav__dropdown:hover .nav__dropdown-menu,
.nav__dropdown:focus-within .nav__dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.nav__dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--bn-text);
  text-decoration: none;
  transition: background 0.12s ease;
  white-space: nowrap;
  cursor: pointer;
}

.nav__dropdown-item:hover { background: var(--bn-acc-subtle); opacity: 1; }
.nav__dropdown-item--external svg { opacity: 0.5; flex-shrink: 0; }
.nav__dropdown-item--soon {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  color: var(--bn-text-faint);
  cursor: default;
  pointer-events: none;
}
.nav__dropdown-item--soon:hover { background: none; }

.nav__badge {
  display: inline-flex;
  align-items: center;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--bn-acc-subtle);
  color: var(--bn-acc);
  border: 1px solid rgba(184,134,11,0.3);
  border-radius: 100px;
  padding: 2px 7px;
  margin-left: auto;
}


/* ── CLIENT LOGOS MARQUEE ─────────────────────────────────── */
/* Architecture: two identical copies of the logo set inside a flex track.
   The track animates from translate3d(0,0,0) to translate3d(-50%,0,0) so
   when one full copy has scrolled off the left edge, the snap-back to 0
   lands on a visually identical frame — seamless infinite loop.
   The entire strip is pointer-events:none on every device so it can't be
   tapped, selected, or paused. There is intentionally no hover-pause. */
.clients {
  padding: 36px 0 40px;
  border-top: 1px solid var(--bn-bdr);
  border-bottom: 1px solid var(--bn-bdr);
  overflow: hidden;
  /* Make the WHOLE strip inert to pointer/touch input. Vertical page
     scrolling passes through because pointer-events:none doesn't block
     pan gestures whose target is an ancestor of the strip. */
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

.clients__label {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--bn-text-faint);
  margin-bottom: 24px;
}

/* Soft fade on left and right edges — hides the loop seam. */
.clients__viewport {
  overflow: hidden;
  position: relative;
  /* Edge fade width — narrowed on mobile via custom property below so
     logos aren't half-faded on small screens. */
  --bn-marquee-fade: 80px;
  /* Promote to own compositing layer. iOS Safari can drop the GPU layer
     for animated children on unpromoted parents after a few seconds —
     translate3d here keeps the layer alive and prevents the
     mid-animation blank-out / reappear glitch. */
  transform: translate3d(0, 0, 0);
}

/* Edge fades as pseudo-element overlays instead of -webkit-mask-image.
   On iOS Safari, mask-image on a parent with an animated child causes the
   GPU compositing layer to drop mid-animation — the marquee briefly
   disappears and re-renders. Gradient overlays don't trigger that bug. */
.clients__viewport::before,
.clients__viewport::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: var(--bn-marquee-fade);
  z-index: 2;
}
.clients__viewport::before {
  left: 0;
  background: linear-gradient(to right, var(--bn-bg) 0%, transparent 100%);
}
.clients__viewport::after {
  right: 0;
  background: linear-gradient(to left, var(--bn-bg) 0%, transparent 100%);
}

/* Tablet — shrink fade so logos don't look clipped */
@media (max-width: 900px) {
  .clients__viewport { --bn-marquee-fade: 40px; }
}

/* Mobile — minimal fade; logos travel fully into view before fading out */
@media (max-width: 600px) {
  .clients__viewport { --bn-marquee-fade: 24px; }
  .clients__logo { height: 44px; }
  .clients__track { gap: 28px; }
}

/* translate3d (not translateX) forces an unconditional 3D compositing
   layer on iOS Safari — survives compositor pruning under memory pressure
   and during fast page scrolls, eliminating the disappear/reappear bug. */
@keyframes clients-marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

.clients__track {
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  /* Duration tuned for ~131 px/sec scroll across the visible viewport.
     Two copies in the track + -50% offset = halved distance vs. a
     four-copy track, so duration is halved to match the prior speed. */
  animation: clients-marquee 18.3s linear infinite;
  /* GPU layer hints: keep the compositor from reaping this layer. */
  will-change: transform;
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  transform: translateZ(0);
}

/* Default (dark bg): crush to black, invert to white, pull back opacity */
.clients__logo {
  height: 63px;
  width: auto;
  flex-shrink: 0;
  filter: brightness(0) invert(1) opacity(0.45);
}

/* Light mode: crush to black, no invert */
[data-theme="light"] .clients__logo { filter: brightness(0) opacity(0.4); }

/* Reduced motion — static centred row, duplicate set hidden */
@media (prefers-reduced-motion: reduce) {
  .clients__track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    padding: 0 24px;
    gap: 32px;
  }
  .clients__logo[aria-hidden="true"] { display: none; }
}

/* ── HERO ─────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bn-bg);
  border-bottom: 1px solid var(--bn-bdr);
}

.hero__bg {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 0;
}

.hero__dots {
  position: absolute;
  inset: -20%;
  background-image: radial-gradient(circle, rgba(184,134,11,0.19) 1px, transparent 1px);
  background-size: 32px 32px;
  will-change: transform;
}

.hero__circle-bg {
  position: absolute;
  right: -10vw; top: 50%;
  transform: translateY(-50%);
  width: min(70vw, 700px);
  height: min(70vw, 700px);
  border-radius: 50%;
  border: 1px solid rgba(184,134,11,0.15);
  background: radial-gradient(circle at center, rgba(184,134,11,0.11) 0%, transparent 70%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 112px 24px 60px;
}

.hero__eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bn-acc-text);
  margin-bottom: 20px;
}

/* Greeting rotator glow — breathes independently from the JS opacity/transform.
   text-shadow is not set by the JS inline style, so the animation runs freely.
   Period (2.8s) is intentionally offset from rotation interval (3s) for an
   organic, non-mechanical feel. */
@keyframes greeting-breathe {
  0%, 100% { text-shadow: none; }
  50%       { text-shadow: 0 0 14px rgba(184,134,11,0.75), 0 0 32px rgba(184,134,11,0.25); }
}

#greeting {
  animation: greeting-breathe 2.8s ease-in-out infinite;
}

.hero__headline {
  display: flex;
  flex-direction: column;
  margin-bottom: 28px;
}

.hero__line-1,
.hero__line-2 {
  display: block;
  font-family: var(--bn-font-display);
  font-weight: 800;
  font-size: clamp(42px, 7.5vw, 88px);
  line-height: 1.0;
  letter-spacing: -0.03em;
}

.hero__line-1 { color: var(--bn-text); }
.hero__line-2 { color: var(--bn-acc); }

.hero__body {
  font-size: clamp(15px, 1.5vw, 17px);
  color: var(--bn-text-muted);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 36px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero__meta {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bn-text-faint);
}

.hero__scroll-cue {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 1;
}

.hero__scroll-cue span {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bn-text-faint);
}

.hero__scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--bn-acc), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%,100% { opacity: 0.4; transform: scaleY(1); }
  50%      { opacity: 1;   transform: scaleY(1.1); }
}

/* Grain texture overlay — subtle film noise adds physical depth to the hero */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--bn-grain-img);
  background-size: 256px 256px;
  opacity: 0.065;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: overlay;
}


/* ── SERVICES ─────────────────────────────────────────────── */

.services {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 24px;
}

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  /* perspective enables the JS mousemove tilt effect on child cards */
  perspective: 1000px;
}

/* Full-width banner card — spans all 3 columns. Used by Web Design (row 1)
   and Retouching (row 3). Middle row auto-fills with 3 equal cards. */
.bento__card--large { grid-column: 1 / -1; }

.bento__card {
  display: block;
  text-decoration: none;
  background: var(--bn-surf);
  border: 1px solid var(--bn-bdr);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  /* Dual-layer elevation: ambient fill + directional key-light */
  box-shadow: 0 1px 2px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.07);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.bento__card:hover {
  transform: translateY(-5px);
  border-color: var(--bn-acc);
  box-shadow: 0 2px 4px rgba(0,0,0,0.08), 0 8px 24px rgba(0,0,0,0.12), 0 24px 56px rgba(0,0,0,0.08);
}

/* Grain texture inside each card — adds surface tactility */
.bento__card::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--bn-grain-img);
  background-size: 256px 256px;
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: overlay;
  border-radius: 12px;
}

.bento__card-inner {
  padding: 32px;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1; /* float above card grain */
}

.bento__card-title {
  font-family: var(--bn-font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--bn-text);
  margin-bottom: 10px;
}

.bento__card-body {
  font-size: 15px;
  color: var(--bn-text-muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 20px;
}

.bento__card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--bn-acc);
  text-decoration: none;
  margin-top: auto;
}
.bento__card:hover .bento__card-link { opacity: 0.7; }


/* ── WHY SECTION ──────────────────────────────────────────── */

.why {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bn-surf);
  position: relative;
  /* No border — angle divider handles the visual transition to proof strip */
}

/* Grain overlay — sits above the grid surface, below content via pointer-events */
.why::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--bn-grain-img);
  background-size: 256px 256px;
  opacity: 0.028;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: overlay;
}

.why__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: flex-start;
  align-items: center;
  padding: 80px 56px 0;
  border-right: 1px solid var(--bn-bdr);
}

.why__sticky-inner { max-width: 520px; }

.why__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bn-acc-text);
  margin-bottom: 24px;
}

.why__headline {
  font-family: var(--bn-font-display);
  font-size: clamp(33px, 3.8vw, 49px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--bn-text);
  line-height: 1.1;
  margin-bottom: 18px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.why__headline.fading { opacity: 0; transform: translateY(8px); }

.why__body {
  font-size: 15px;
  color: var(--bn-text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.why__body.fading { opacity: 0; transform: translateY(6px); }

.why__dots { display: flex; gap: 8px; align-items: center; }

.why__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--bn-bdr-strong);
  transition: background 0.3s ease, width 0.3s ease;
}

.why__dot--active {
  background: var(--bn-acc);
  width: 20px;
  border-radius: 3px;
}

/* Right panels */
.why__panels { position: relative; }

.why__panel {
  min-height: 70vh;
  display: flex;
  align-items: flex-start;
  padding: 80px 56px 60px;
  border-bottom: 1px solid var(--bn-bdr);
}
.why__panel:last-child { border-bottom: none; }

.why__panel-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 520px;
}

.why__panel-num {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--bn-acc);
}

.why__list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.why__list li {
  font-family: var(--bn-font-display);
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--bn-text);
  line-height: 1.3;
  padding: 8px 0;
  border-bottom: 1px solid var(--bn-bdr);
}
.why__list li:last-child { border-bottom: none; }

.why__quote {
  font-family: var(--bn-font-display);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  font-style: italic;
  color: var(--bn-text);
  line-height: 1.45;
  letter-spacing: -0.01em;
  border-left: 3px solid var(--bn-acc);
  padding-left: 18px;
}

.why__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.why__price-from {
  font-size: 15px;
  font-weight: 500;
  color: var(--bn-text-muted);
}

.why__price-num {
  font-family: var(--bn-font-display);
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--bn-text);
  line-height: 1;
}

.why__price-unit {
  font-size: 20px;
  font-weight: 600;
  color: var(--bn-text-muted);
}

.why__panel-note {
  font-size: 15px;
  color: var(--bn-text-muted);
  line-height: 1.65;
}


/* ── PROOF STRIP ──────────────────────────────────────────── */

.proof {
  background: var(--bn-acc-subtle);
  padding: 48px 24px;
  position: relative;
  overflow: hidden;
  /* No border — angle dividers on both sides handle visual separation */
}

/* Grain overlay on the gold-tinted proof strip */
.proof::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--bn-grain-img);
  background-size: 256px 256px;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: overlay;
}

.proof__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.proof__stat {
  display: flex; flex-direction: column;
  align-items: center; gap: 6px;
  text-align: center; flex: 1; min-width: 120px;
}

.proof__num {
  font-family: var(--bn-font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--bn-text);
  line-height: 1;
}

.proof__lbl {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--bn-text-muted);
  text-transform: uppercase;
}

.proof__div {
  width: 1px; height: 40px;
  background: var(--bn-bdr);
  flex-shrink: 0;
}


/* ── TESTIMONIALS ─────────────────────────────────────────── */

.testi {
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 24px 80px;
}

.testi__track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testi__card {
  background: var(--bn-surf);
  border: 1px solid var(--bn-bdr);
  border-radius: var(--bn-radius-lg);
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: border-color var(--bn-duration) var(--bn-ease),
              box-shadow   var(--bn-duration) var(--bn-ease),
              transform    var(--bn-duration) var(--bn-ease);
}
.testi__card:hover {
  border-color: var(--bn-acc);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

/* Large decorative opening quote — ghost watermark behind the text */
.testi__card::before {
  content: '\201C';
  position: absolute;
  top: 8px;
  right: 18px;
  font-family: var(--bn-font-display);
  font-size: 108px;
  font-weight: 800;
  color: var(--bn-acc);
  opacity: 0.07;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.testi__stars {
  display: flex;
  gap: 3px;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.testi__star {
  color: var(--bn-acc);
  font-size: 15px;
  line-height: 1;
}

.testi__quote {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--bn-text);
  flex: 1;
  margin-bottom: 24px;
  font-style: normal;
}

/* Thin gold rule — same visual language as .rule and .bn-chat-header__rule */
.testi__rule {
  width: 24px;
  height: 2px;
  background: var(--bn-acc);
  border-radius: 1px;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.testi__name {
  font-family: var(--bn-font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--bn-text);
  line-height: 1.2;
  margin-bottom: 4px;
}

.testi__service {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--bn-text-muted);
}

/* ── CTA card — 6th slot, dark background, intentionally breaks the rhythm */
.testi__card--cta {
  background: var(--bn-text);
  border-color: transparent;
  justify-content: center;
  gap: 0;
}
[data-theme="dark"] .testi__card--cta {
  background: var(--bn-surf-2);
  border-color: var(--bn-bdr-strong);
}
/* Hide the quote watermark on the CTA card */
.testi__card--cta::before { display: none; }
.testi__card--cta:hover {
  border-color: var(--bn-acc);
  transform: translateY(-3px);
}

.testi__cta-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--bn-acc);
  margin-bottom: 20px;
}

.testi__cta-headline {
  font-family: var(--bn-font-display);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #F0EDE6;
  line-height: 1.15;
  margin-bottom: 14px;
}
[data-theme="dark"] .testi__cta-headline { color: var(--bn-text); }

.testi__cta-body {
  font-size: 14px;
  color: rgba(240, 237, 230, 0.55);
  line-height: 1.65;
  margin-bottom: 32px;
}
[data-theme="dark"] .testi__cta-body { color: var(--bn-text-muted); }

.testi__cta-btn {
  display: inline-flex;
  align-items: center;
  background: var(--bn-acc);
  color: var(--bn-acc-on);
  font-family: var(--bn-font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: var(--bn-radius-sm);
  align-self: flex-start;
  transition: background var(--bn-duration) var(--bn-ease),
              transform  var(--bn-duration) var(--bn-ease);
}
.testi__cta-btn:hover {
  background: var(--bn-acc-hover);
  transform: translateY(-2px);
  opacity: 1;
}


/* Thin ruled divider between testimonials and the blog section */
.testi-divider {
  max-width: 1200px;
  margin: 0 auto;
  height: 1px;
  background: var(--bn-bdr);
  /* Side padding matches section padding so the rule doesn't bleed full-width */
  margin-left: auto;
  margin-right: auto;
  width: calc(100% - 48px);
}


/* ── BLOG PREVIEW ─────────────────────────────────────────── */

.blog-preview {
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 24px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}

.blog-card {
  display: flex; flex-direction: column; gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--bn-bdr);
  transition: border-color 0.15s ease;
}
.blog-card:hover { border-top-color: var(--bn-acc); }

.blog-card__meta {
  display: flex; align-items: center;
  justify-content: space-between; gap: 8px;
}

.blog-card__cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bn-acc);
}

.blog-card__date { font-size: 12px; color: var(--bn-text-muted); }

.blog-card__title {
  font-family: var(--bn-font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--bn-text);
}

.blog-card__title a {
  color: inherit; text-decoration: none;
  transition: color 0.15s ease;
}
.blog-card__title a:hover { color: var(--bn-acc); opacity: 1; }

.blog-card__excerpt {
  font-size: 13px;
  color: var(--bn-text-muted);
  line-height: 1.6;
  flex: 1;
}

.blog-card__link { font-size: 13px; font-weight: 600; color: var(--bn-acc); }


/* ── SECTION ANGLE DIVIDERS ──────────────────────────────── */
/* 40px wedge elements placed between sections with different backgrounds.
   linear-gradient hard stops create a perfectly crisp diagonal line.
   CSS custom properties ensure automatic dark-mode adaptation. */

.angle-div {
  /* 64px gives a readable angle (~2.5° at 1440px width, ~5.7° at 635px) */
  height: 64px;
  display: block;
  margin: 0;
  line-height: 0;
}

/* surf  →  acc-subtle  (after why, before proof)
   / diagonal: bottom-left→top-right momentum sweep */
.angle-div--surf-to-acc {
  background: linear-gradient(to bottom right, var(--bn-surf) 49.9%, var(--bn-acc-subtle) 50%);
}

/* acc-subtle  →  bg  (after proof, before blog)
   \ diagonal: alternating direction for rhythm */
.angle-div--acc-to-bg {
  background: linear-gradient(to bottom left, var(--bn-acc-subtle) 49.9%, var(--bn-bg) 50%);
}

/* bg  →  dark  (after blog, before cta)
   / diagonal: final forward-drive into the dark CTA — most dramatic in light mode */
.angle-div--bg-to-dark {
  background: linear-gradient(to bottom right, var(--bn-bg) 49.9%, #1A1818 50%);
}
[data-theme="dark"] .angle-div--bg-to-dark {
  background: linear-gradient(to bottom right, var(--bn-bg) 49.9%, #0F0E0E 50%);
}


/* ── PRICING TEASER (homepage) ────────────────────────────── */

.pricing-teaser {
  padding: 96px 24px;
}

.pricing-teaser__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.pricing-teaser__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 48px 0 40px;
}

.pricing-teaser__card {
  background: var(--bn-surf);
  border: 1px solid var(--bn-bdr);
  border-radius: var(--bn-radius-md);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color var(--bn-duration) var(--bn-ease),
              transform    var(--bn-duration) var(--bn-ease);
  text-decoration: none;
  color: inherit;
}

.pricing-teaser__card:hover {
  border-color: var(--bn-acc);
  transform: translateY(-3px);
}

.pricing-teaser__service {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bn-acc);
}

.pricing-teaser__price {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin: 4px 0;
}

.pricing-teaser__from {
  font-size: 13px;
  color: var(--bn-text-muted);
}

.pricing-teaser__num {
  font-family: var(--bn-font-display);
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--bn-text);
}

.pricing-teaser__unit {
  font-size: 14px;
  color: var(--bn-text-muted);
}

.pricing-teaser__desc {
  font-size: 14px;
  color: var(--bn-text-muted);
  line-height: 1.6;
}

.pricing-teaser__footer {
  text-align: center;
}

@media (max-width: 700px) {
  .pricing-teaser { padding: 64px 24px; }
  .pricing-teaser__grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 36px 0 32px;
  }
}


/* ── CTA SECTION ──────────────────────────────────────────── */

.cta-section {
  /* Multi-layer bg: dot grid (0.09 opacity) over solid dark */
  background-color: #1A1818;
  background-image: radial-gradient(circle, rgba(184,134,11,0.09) 1px, transparent 1px);
  background-size: 32px 32px;
  color: #F0EDE6;
  padding: 96px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .cta-section {
  background: #0F0E0E;
}

.cta-section::before {
  content: '';
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184,134,11,0.13) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Grain texture — highest opacity here since dark bg makes it most visible/impactful */
.cta-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--bn-grain-img);
  background-size: 256px 256px;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: overlay;
}

.cta-section__inner {
  position: relative; z-index: 1;
  max-width: 1100px; margin: 0 auto;
}

.cta-section__headline {
  font-family: var(--bn-font-display);
  font-size: clamp(52px, 9vw, 100px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #F0EDE6;
  line-height: 1.0;
  margin-bottom: 20px;
  text-wrap: balance;
}

.cta-section__sub {
  font-size: 15px;
  color: rgba(240,237,230,0.5);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 40px;
}

.cta-section__actions {
  display: flex; align-items: center;
  justify-content: center; gap: 24px;
  flex-wrap: wrap; margin-bottom: 24px;
}

.cta-section__meta {
  font-size: 12px;
  color: rgba(240,237,230,0.3);
}
.cta-section__meta a { color: rgba(240,237,230,0.3); text-decoration: none; }
.cta-section__meta a:hover { color: rgba(240,237,230,0.7); opacity: 1; }


/* ── FOOTER ───────────────────────────────────────────────── */

.footer {
  background: var(--bn-surf);
  border-top: 1px solid var(--bn-bdr);
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px 40px;
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 64px;
}

.footer__brand { display: flex; flex-direction: column; gap: 16px; }

.footer__logo { display: flex; align-items: center; gap: 10px; }

.footer__wordmark {
  display: block;
  height: 28px;
  width: auto;
}

[data-theme="light"] .footer__wordmark--for-dark  { display: none; }
[data-theme="dark"]  .footer__wordmark--for-light  { display: none; }

.footer__tagline {
  font-family: var(--bn-font-display);
  font-size: 18px; font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--bn-text); line-height: 1.25;
}

.footer__social { display: flex; gap: 10px; }

.footer__social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--bn-bdr);
  display: flex; align-items: center; justify-content: center;
  color: var(--bn-text-muted);
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.footer__social a svg { display: block; flex-shrink: 0; }
.footer__social a:hover { border-color: var(--bn-acc); color: var(--bn-acc); opacity: 1; }

.footer__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer__col { display: flex; flex-direction: column; gap: 10px; }

.footer__col-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--bn-text); margin-bottom: 4px;
}

.footer__col a,
.footer__col span {
  font-size: 13px;
  color: var(--bn-text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer__col a:hover { color: var(--bn-acc); opacity: 1; }

.footer__bottom {
  max-width: 1200px; margin: 0 auto;
  padding: 20px 24px;
  border-top: 1px solid var(--bn-bdr);
  align-items: center;
  display: flex; align-items: center;
  justify-content: space-between; gap: 24px; flex-wrap: wrap;
}

.footer__bottom p { font-size: 13px; color: var(--bn-text-muted); }

.footer__bottom-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.footer__legal { display: flex; gap: 20px; }

.footer__legal a {
  font-size: 13px;
  color: var(--bn-text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer__legal a:hover { color: var(--bn-text); opacity: 1; }

/* Wrap legal links on small screens */
@media (max-width: 600px) {
  .footer__legal { flex-wrap: wrap; gap: 12px; justify-content: center; }
}

.footer__dmca-badge { display: inline-flex; align-items: center; opacity: 0.55; transition: opacity 0.15s ease; margin-bottom: 12px; }
.footer__dmca-badge:hover { opacity: 1; }
.footer__dmca-badge img { display: block; height: 39px; width: auto; }


/* ── COOKIE BANNER ────────────────────────────────────────── */
/* Always visible (fixed bottom) until consent is recorded.
   Intentionally uses the OPPOSITE of the active theme so it
   stands out: dark theme → light bar; light theme → dark bar. */

/* Default = dark theme active → redefine tokens to light values */
#cookie-banner {
  --bn-text:       #1A1818;
  --bn-text-muted: #706D66;
  --bn-text-faint: #A8A49E;
  --bn-surf:       #F0EDE6;
  --bn-surf-2:     #E8E4DB;
  --bn-bdr:        #E2DDD6;
  --bn-bdr-strong: #C8C2B8;
  --bn-acc:        #B8860B;
  --bn-acc-on:     #FAFAF7;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #F0EDE6;
  color: #1A1818;
  font-size: 13px;
  line-height: 1.5;
  z-index: 9998; /* below modals, above everything else */
  padding: 16px 24px;
  box-shadow: 0 -2px 16px rgba(0,0,0,0.10);
  border-top: 1px solid #E2DDD6;
}

/* Light theme active → redefine tokens to dark values */
[data-theme="light"] #cookie-banner {
  --bn-text:       #F0EDE6;
  --bn-text-muted: #8A8480;
  --bn-text-faint: #847E78;
  --bn-surf:       #1E1C1A;
  --bn-surf-2:     #272420;
  --bn-bdr:        #2E2B28;
  --bn-bdr-strong: #48443E;
  --bn-acc:        #D4A017;
  --bn-acc-on:     #111010;
  background: #1E1C1A;
  color: #F0EDE6;
  box-shadow: 0 -2px 16px rgba(0,0,0,0.35);
  border-top: 1px solid #2E2B28;
}

.cookie-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-banner__text { flex: 1 1 280px; }
.cookie-banner__text p { margin: 0; }
.cookie-banner__text a {
  color: var(--bn-acc);
  text-decoration: underline;
}
.cookie-banner__text a:hover { opacity: 0.8; }

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* Buttons */
.cookie-btn {
  padding: 12px 24px;
  min-height: 44px;
  border: none;
  border-radius: var(--bn-radius-sm);
  font-family: var(--bn-font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--bn-transition), transform var(--bn-transition);
  white-space: nowrap;
}

.cookie-btn--primary {
  background: var(--bn-acc);
  color: var(--bn-acc-on);
}
.cookie-btn--primary:hover {
  background: var(--bn-acc-hover);
  color: var(--bn-acc-on);
  transform: translateY(-1px);
}
.cookie-btn--primary:active { transform: translateY(0); }

.cookie-btn--secondary {
  background: transparent;
  color: var(--bn-text);
  border: 1px solid var(--bn-bdr);
}
.cookie-btn--secondary:hover { opacity: 0.75; }

/* Preferences panel */
#cookie-preferences {
  max-width: 1200px;
  margin: 12px auto 0;
  padding-top: 12px;
  border-top: 1px solid var(--bn-bdr);
}

.cookie-pref__group { margin-bottom: 12px; }

.cookie-pref__group label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  cursor: pointer;
  font-size: 13px;
}

.cookie-pref__group label input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--bn-acc);
  cursor: pointer;
}

.cookie-pref__group label input[disabled] { cursor: default; opacity: 0.6; }

.cookie-pref__group p {
  margin: 0 0 0 23px;
  font-size: 12px;
  color: var(--bn-text-muted);
  line-height: 1.4;
}

/* Mobile */
@media (max-width: 600px) {
  #cookie-banner { padding: 14px 16px; }
  .cookie-banner__inner { flex-direction: column; align-items: flex-start; }
  .cookie-banner__text { flex: 1 1 auto; } /* override the 280px basis — column layout doesn't need it */
  .cookie-banner__actions { width: 100%; }
  .cookie-btn { flex: 1; text-align: center; font-size: 13px; }
}


/* ── RESPONSIVE ───────────────────────────────────────────── */

@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav__mobile { display: flex; }

  .bento {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }
  .bento__card--large { grid-column: 1 / -1; }

  .why {
    display: block;
    min-height: auto;
    background: var(--bn-surf);
  }
  .why__sticky { display: none; }
  .why__panels { display: block; }
  .why__panel {
    height: auto;
    min-height: auto;
    padding: 56px 24px;
    border-bottom: 1px solid var(--bn-bdr);
  }
  .why__panel:last-child { border-bottom: none; }
  .why__panel-inner { max-width: 100%; }

  .blog-grid { grid-template-columns: 1fr; gap: 32px; }

  .footer__inner { grid-template-columns: 1fr; gap: 40px; }
  .footer__nav { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .bento__card--large { grid-column: auto; }

  .proof__inner { flex-direction: column; gap: 24px; }
  .proof__div { width: 40px; height: 1px; }

  /* Tighten the blog preview section — 96px top/bottom is too spacious on small screens */
  .blog-preview { padding: 48px 24px; }

  .testi-divider { width: calc(100% - 48px); }

  .footer__nav { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .footer__bottom-right { align-items: center; }
}

/* ── Testimonials mobile — single-column stack at 900px and below ─────────
   Single-column grid is simpler, more compatible, and shows all reviews
   without requiring the user to swipe.                                   */
@media (max-width: 900px) {
  .testi {
    padding: 56px 24px 48px;
  }

  .testi__track {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* CTA card: keep as column layout, no row spanning needed in 1-col grid */
  .testi__card--cta {
    flex-direction: column;
    justify-content: center;
    gap: 0;
  }
  .testi__cta-body { margin-bottom: 32px; }
}

@media (max-width: 480px) {
  .nav__logo-img { height: 26px; }
  .nav__inner { padding: 12px 16px; }

  /* Reclaim horizontal space on small phones (375px and below) */
  .bn-section { padding-left: 16px; padding-right: 16px; }
  .hero__content { padding-left: 16px; padding-right: 16px; }
}

/* ── Sub-420px fluid layout guard ─────────────────────────────
   Prevents horizontal overflow on very narrow screens (iPhone SE,
   older Androids). No width-fixed elements should bleed past the
   viewport edge. All block-level containers collapse to 100%. */
@media (max-width: 420px) {
  /* Ensure the marquee viewport never triggers side-scroll */
  .clients { overflow: hidden; max-width: 100vw; }

  /* Hero typography — prevent oversized clamp values from overflowing */
  .hero__content { padding-left: 16px; padding-right: 16px; }

  /* Section inner containers — fluid, never fixed-width */
  .bn-section,
  .section-header { padding-left: 16px; padding-right: 16px; }

  /* Bento cards already collapse to 1-col at 600px; just tighten gap */
  .bento { gap: 12px; }

  /* Proof strip: stack numbers tighter on very narrow screens */
  .proof__inner { gap: 16px; }
}

/* ── Back to Top ──────────────────────────────────────────────── */
.bn-back-to-top {
  position: fixed;
  bottom: 70px;
  left: 28px;
  z-index: 8000;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bn-acc);
  color: var(--bn-acc-on);
  border: 1px solid var(--bn-acc);
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition:
    opacity 200ms ease,
    transform 200ms ease,
    background var(--bn-transition),
    color var(--bn-transition),
    border-color var(--bn-transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
}
.bn-back-to-top--visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.bn-back-to-top:hover {
  background: var(--bn-acc-hover);
  color: var(--bn-acc-on);
  border-color: var(--bn-acc-hover);
}
@media (max-width: 480px) {
  /* Clear the chatbot trigger chip on mobile */
  .bn-back-to-top {
    bottom: 80px;
    left: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bn-back-to-top { transition-duration: 0.01ms !important; }
}

/* ── Contact form character counter ───────────────────────────── */
.form-char-counter {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  color: var(--bn-text-faint);
  text-align: right;
  letter-spacing: 0.02em;
  transition: color var(--bn-transition);
}
.form-char-counter--warn {
  color: #b45309; /* Amber — approaching limit */
}

/* ── Hero Proof Strip ────────────────────────────────────────── */
.hero-proof {
  background: var(--bn-surf);
  border-bottom: 1px solid var(--bn-bdr);
  padding: 16px 24px;
  text-align: center;
  transition: background var(--bn-transition), border-color var(--bn-transition);
}
.hero-proof__inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px 14px;
}
.hero-proof__stars {
  color: var(--bn-acc);
  font-size: 13px;
  letter-spacing: 3px;
  flex-shrink: 0;
}
/* Rotator: stack all slides in the same grid cell, fade between them */
.hero-proof__rotator {
  display: grid;
  flex: 1;
  min-width: 0;
}
.hero-proof__slide {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  opacity: 0;
  /* Outgoing slide fades out softly with no delay. The incoming slide
     waits for it to clear, so the two quotes never overlap visually. */
  transition: opacity 650ms ease 0ms;
  pointer-events: none;
}
.hero-proof__slide--active {
  opacity: 1;
  pointer-events: auto;
  /* Incoming slide waits for outgoing to clear, then fades in softly. */
  transition: opacity 850ms ease 700ms;
}
.hero-proof__quote {
  font-size: 13.5px;
  font-style: italic;
  color: var(--bn-text);
  line-height: 1.5;
  margin: 0;
  transition: color var(--bn-transition);
}
.hero-proof__attr {
  font-size: 11.5px;
  color: var(--bn-text-faint);
  font-style: normal;
  letter-spacing: 0.03em;
  flex-shrink: 0;
  transition: color var(--bn-transition);
}
@media (prefers-reduced-motion: reduce) {
  .hero-proof { transition-duration: 0.01ms !important; }
  .hero-proof__slide { transition-duration: 0.01ms !important; }
}

