﻿/* ===========================================================
   Beyond – brand palette + page-specific overrides
   Palette (from logo):
     Pink/Red:   #FF2F5E (primary)   #FF8FA3 (soft)
     Orange:     #F2A124 (primary)   #FFD08A (soft)
     Blue:       #1668DC (primary)   #5FC9E0 (soft cyan)
   =========================================================== */

:root {
  --bey-pink: #FF2F5E;
  --bey-pink-soft: #FFB3C1;
  --bey-orange: #F2A124;
  --bey-orange-soft: #FFD89A;
  --bey-blue: #1668DC;
  --bey-blue-soft: #6FB8F0;
  --bey-cyan: #5FC9E0;
  --bey-cream: #FFF6E8;
  --bey-ink: #161616;
  --bey-white: #FFFFFF;
}

/* ---------- Hero: white background variant ---------- */
.beyond-hero-light {
  background-color: var(--bey-white);
}
.beyond-hero-light .hero-03-headline__caption {
  color: var(--bey-ink);
  opacity: 0.85;
}
.beyond-hero-light .hero-03-headline__title,
.beyond-hero-light .hero-03-headline__svg text,
.beyond-hero-light .hero-03-headline__svg-mobile text {
  color: var(--bey-ink);
  fill: var(--bey-ink);
}
.beyond-hero-light .hero-03-marquee__image img {
  background-color: transparent;
}

/* ---------- Light theme global polish ---------- */
[color-scheme="light"] body {
  background-color: var(--bey-white);
  color: var(--bey-ink);
}
[color-scheme="light"] .mxd-manifest,
[color-scheme="light"] .mxd-block__paragraph p.t-large,
[color-scheme="light"] .mxd-section-title__descr p {
  color: var(--bey-ink);
}
[color-scheme="light"] h1, [color-scheme="light"] h2,
[color-scheme="light"] h3, [color-scheme="light"] h4,
[color-scheme="light"] h5 {
  color: var(--bey-ink);
}
[color-scheme="light"] .mxd-point-subtitle,
[color-scheme="light"] .footer-nav__link,
[color-scheme="light"] .footer-socials__link {
  color: var(--bey-ink);
}
[color-scheme="light"] .marquee__text {
  color: var(--bey-ink);
}

/* keep the divider/CTA visually readable on white */
/* CTA "Let's talk" — solid orange treatment (all pages) */
.mxd-promo__inner {
  background-color: var(--bey-orange) !important;
}
.mxd-promo__bg {
  display: none !important;
}
[color-scheme="light"] .mxd-promo__caption,
[color-scheme="light"] .mxd-promo__title,
[color-scheme="light"] .mxd-promo__title span,
.mxd-promo__title,
.mxd-promo__title span {
  color: var(--bey-ink);
}

/* ---------- Value Cards Section (replaces statistics) ---------- */
.mxd-value-cards .mxd-value-cards__item {
  padding: 12px;
}
.mxd-value-cards__inner {
  position: relative;
  overflow: hidden;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 20px;
  padding: 36px;
}
.mxd-value-cards__media {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 55%;
  max-width: 320px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.mxd-value-cards__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: lighten;
}
/* On the cream card the bg is light, so lighten makes the image vanish.
   Use the natural image with a soft mask instead. */
.bg-value-cream .mxd-value-cards__media img {
  mix-blend-mode: multiply;
}
.mxd-value-cards__media svg {
  width: 100%;
  height: 100%;
}
.mxd-value-cards__content {
  position: relative;
  z-index: 2;
  max-width: 100%;
}
.mxd-value-cards__content {
  max-width: 92%;
}
.mxd-value-cards__title {
  font-size: clamp(1.6rem, 2.2vw, 2.1rem);
  font-weight: 700;
  margin: 0 0 14px 0;
  letter-spacing: -0.01em;
}
.mxd-value-cards__text {
  font-size: 1rem;
  line-height: 1.55;
  opacity: 0.92;
  margin: 0;
}

.bg-value-pink {
  background-color: var(--bey-pink);
  color: #fff;
}
.bg-value-orange {
  background-color: var(--bey-orange);
  color: #fff;
}
.bg-value-blue {
  background-color: var(--bey-blue);
  color: #fff;
}
.bg-value-cream {
  background-color: var(--bey-cream);
  color: var(--bey-ink);
}
.bg-value-pink .mxd-value-cards__text,
.bg-value-orange .mxd-value-cards__text,
.bg-value-blue .mxd-value-cards__text {
  color: rgba(255, 255, 255, 0.92);
}

/* ---------- Services Cards: palette backgrounds ---------- */
.bg-service-pink {
  background-color: var(--bey-pink) !important;
  color: var(--bey-ink);
}
.bg-service-orange {
  background-color: var(--bey-orange) !important;
  color: var(--bey-ink);
}
.bg-service-blue {
  background-color: var(--bey-blue) !important;
  color: #fff;
}
.bg-service-pink-soft {
  background-color: var(--bey-pink-soft) !important;
  color: var(--bey-ink);
}
.bg-service-blue-soft {
  background-color: var(--bey-cyan) !important;
  color: var(--bey-ink);
}

/* Tighten the dark text on bright backgrounds */
.bg-service-pink .mxd-services-cards__title p,
.bg-service-orange .mxd-services-cards__title p,
.bg-service-pink-soft .mxd-services-cards__title p,
.bg-service-blue-soft .mxd-services-cards__title p {
  color: var(--bey-ink);
}
.bg-service-blue .mxd-services-cards__title p {
  color: #fff;
}
.bg-service-blue .tag {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
.bg-service-pink .tag,
.bg-service-orange .tag,
.bg-service-pink-soft .tag,
.bg-service-blue-soft .tag {
  color: var(--bey-ink);
  border-color: rgba(0, 0, 0, 0.35);
}

/* keep service card images comfortably sized
   (overrides the template's negative-offset positions that
   clip the new square PNGs) */
.mxd-services-cards__inner {
  min-height: 560px;
  overflow: hidden;
  position: relative;
}

/* Calm the oversized headline on these cards so the layout feels balanced
   with the illustration instead of crushing it */
.mxd-services-cards__title p {
  font-size: 2.8rem !important;
  line-height: 1.05 !important;
  letter-spacing: -.04rem !important;
}
@media only screen and (min-width: 1200px) {
  .mxd-services-cards__title p {
    font-size: 3.6rem !important;
  }
}
@media only screen and (min-width: 1600px) {
  .mxd-services-cards__title p {
    font-size: 4.4rem !important;
  }
}

.mxd-services-cards__image,
.mxd-services-cards__image.mxd-services-cards-image-1,
.mxd-services-cards__image.mxd-services-cards-image-2,
.mxd-services-cards__image.mxd-services-cards-image-3,
.mxd-services-cards__image.mxd-services-cards-image-4,
.mxd-services-cards__image.mxd-services-cards-image-5 {
  position: absolute !important;
  inset: auto 0 0 auto !important;
  top: auto !important;
  bottom: 0 !important;
  right: 0 !important;
  left: auto !important;
  /* Bigger artwork that fills the empty lower-right of the card. The source
     renders are 16:9, so a 16/9 box removes the internal letterboxing that
     used to leave large blank gaps. */
  width: 90% !important;
  max-width: 760px !important;
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  transform: none !important;
  pointer-events: none;
  overflow: visible !important;
  opacity: 1;
}
.mxd-services-cards__image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: bottom right !important;
  mix-blend-mode: normal !important;
}

/* Consistent vertical rhythm: keep every card's copy anchored to the top so
   titles line up across the whole grid (the last row mixed justify-end with
   justify-between, which knocked the two cards out of alignment). The enlarged
   artwork lives in the lower-right and copy stays above it (z-index handled). */
.mxd-services-cards__inner.justify-end,
.mxd-services-cards__inner.justify-between,
.mxd-services-cards__inner.align-end {
  justify-content: flex-start !important;
  gap: 1.5rem;
}
/* Hide the duplicated image in the Brand Collateral card – the template
   stacks two copies; one is enough now that we use the real photo. */
.mxd-services-cards__image.mxd-services-cards-image-3 .image-1 {
  display: none !important;
}
.mxd-services-cards__image.mxd-services-cards-image-3 .image-2 {
  display: block !important;
  position: static !important;
  width: 100% !important;
  height: 100% !important;
}

/* Card #3 (Brand Collateral) is full-width – give the image more room */
.mxd-services-cards-image-3 {
  width: 64% !important;
  max-width: 940px !important;
}

/* Make sure card content (title / tags / paragraph) sits above the image */
.mxd-services-cards__title,
.mxd-services-cards__info,
.mxd-services-cards__controls {
  position: relative;
  z-index: 2;
}

/* Soft-color cards: keep photographs at their true colors, no blending */
.bg-service-pink-soft .mxd-services-cards__image img,
.bg-service-blue-soft .mxd-services-cards__image img {
  mix-blend-mode: normal;
}

@media (max-width: 768px) {
  .mxd-services-cards__inner {
    min-height: 480px;
  }
  .mxd-services-cards__title p {
    font-size: 2.4rem !important;
  }
  .mxd-services-cards__image,
  .mxd-services-cards__image.mxd-services-cards-image-1,
  .mxd-services-cards__image.mxd-services-cards-image-2,
  .mxd-services-cards__image.mxd-services-cards-image-3,
  .mxd-services-cards__image.mxd-services-cards-image-4,
  .mxd-services-cards__image.mxd-services-cards-image-5 {
    inset: auto 0 0 auto !important;
    bottom: 0 !important;
    right: 0 !important;
    width: 86% !important;
    max-width: 380px !important;
    opacity: 1;
  }
}

/* ===========================================================
   SERVICES CARDS — Beyond brand illustration backgrounds
   Each card background is color-picked from its monochrome 3D
   illustration so the transparent PNG melts into a solid tinted
   surface (matching the reference renders). Three light/warm
   cards take black text; the two saturated cards take white.
   =========================================================== */
:root {
  --srv-strategy:   #DCD4D5; /* lavender-grey  · Brand Strategy   */
  --srv-visual:     #F2981C; /* orange         · Visual Identity  */
  --srv-collateral: #EC3B57; /* crimson-rose   · Brand Collateral */
  --srv-content:    #3D4ED6; /* royal blue     · Content Creation */
  --srv-website:    #F9B40C; /* golden yellow  · Website          */
}

.mxd-services-cards__inner.bg-srv-strategy   { background-color: var(--srv-strategy)   !important; }
.mxd-services-cards__inner.bg-srv-visual     { background-color: var(--srv-visual)     !important; }
.mxd-services-cards__inner.bg-srv-collateral { background-color: var(--srv-collateral) !important; }
.mxd-services-cards__inner.bg-srv-content    { background-color: var(--srv-content)    !important; }
.mxd-services-cards__inner.bg-srv-website    { background-color: var(--srv-website)    !important; }

/* ---- BLACK text + tags on the light / warm cards ---- */
.bg-srv-strategy .mxd-services-cards__title p,
.bg-srv-strategy .mxd-services-cards__info p,
.bg-srv-visual   .mxd-services-cards__title p,
.bg-srv-visual   .mxd-services-cards__info p,
.bg-srv-website  .mxd-services-cards__title p,
.bg-srv-website  .mxd-services-cards__info p {
  color: var(--bey-ink) !important;
}
.bg-srv-strategy .tag,
.bg-srv-visual   .tag,
.bg-srv-website  .tag {
  color: var(--bey-ink) !important;
  border-color: rgba(0, 0, 0, 0.4) !important;
}

/* ---- WHITE text + tags on the saturated cards ---- */
.bg-srv-collateral .mxd-services-cards__title p,
.bg-srv-collateral .mxd-services-cards__info p,
.bg-srv-content    .mxd-services-cards__title p,
.bg-srv-content    .mxd-services-cards__info p {
  color: #fff !important;
}
.bg-srv-collateral .tag,
.bg-srv-content    .tag {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
}

/* ---- Round arrow CTA: keep it readable on every surface ---- */
.bg-srv-strategy  .mxd-services-cards__controls .btn,
.bg-srv-visual    .mxd-services-cards__controls .btn,
.bg-srv-website   .mxd-services-cards__controls .btn {
  background-color: var(--bey-ink) !important;
  border-color: var(--bey-ink) !important;
}
.bg-srv-strategy  .mxd-services-cards__controls .btn i,
.bg-srv-visual    .mxd-services-cards__controls .btn i,
.bg-srv-website   .mxd-services-cards__controls .btn i {
  color: #fff !important;
}
.bg-srv-collateral .mxd-services-cards__controls .btn,
.bg-srv-content    .mxd-services-cards__controls .btn {
  background-color: #fff !important;
  border-color: #fff !important;
}
.bg-srv-collateral .mxd-services-cards__controls .btn i,
.bg-srv-content    .mxd-services-cards__controls .btn i {
  color: var(--bey-ink) !important;
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 768px) {
  .mxd-value-cards__inner {
    min-height: auto;
    padding: 28px;
  }
  .mxd-value-cards__media {
    width: 80px;
    height: 80px;
  }
}

/* ===========================================================
   HERO – fix text visibility on light theme
   The template uses mix-blend-mode:difference + fill:#fff
   which becomes near-invisible against a near-white bg.
   We disable that on the light hero and use solid ink instead.
   =========================================================== */
.beyond-hero-light .mxd-hero-03__headline,
.beyond-hero-light .mxd-hero-03__headline svg {
  mix-blend-mode: normal !important;
}
.beyond-hero-light .mxd-hero-03__headline svg {
  fill: var(--bey-ink) !important;
}
.beyond-hero-light .hero-03-headline__svg text,
.beyond-hero-light .hero-03-headline__svg-mobile text {
  fill: var(--bey-ink) !important;
}
.beyond-hero-light .hero-03-headline__caption {
  color: var(--bey-ink) !important;
  opacity: 1 !important;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* Give the headline its own readable layer above the marquee */
.beyond-hero-light .hero-03-headline__caption {
  background: linear-gradient(135deg,
    rgba(255, 246, 232, 0.9) 0%,
    rgba(255, 255, 255, 0.75) 100%);
  display: inline-block;
  padding: 0.4em 0.65em;
  border-radius: 14px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 8px 30px rgba(22, 22, 22, 0.06);
}

/* Make the big "Artifex Beyond" wordmark pop with a gradient stroke */
.beyond-hero-light .hero-03-headline__svg text,
.beyond-hero-light .hero-03-headline__svg-mobile text {
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.6);
  stroke-width: 0.6;
}

/* ===========================================================
   CREATIVE BACKGROUND – animated gradient mesh + soft blobs
   Sits behind the whole page on light theme without interfering
   with text or imagery.
   =========================================================== */
[color-scheme="light"] body {
  position: relative;
  background:
    radial-gradient(1200px 800px at 0% 0%, rgba(255, 47, 94, 0.07) 0%, transparent 60%),
    radial-gradient(1000px 700px at 100% 10%, rgba(242, 161, 36, 0.07) 0%, transparent 55%),
    radial-gradient(1100px 900px at 50% 100%, rgba(22, 104, 220, 0.06) 0%, transparent 60%),
    var(--bey-white);
  background-attachment: fixed;
}

/* Mobile: fixed bg-attachment kills performance on iOS — switch to scroll */
@media (max-width: 767px) {
  [color-scheme="light"] body { background-attachment: scroll; }
  [color-scheme="light"] body::before,
  [color-scheme="light"] body::after { position: absolute; }
}

/* Subtle noise/dot grid overlay for texture */
[color-scheme="light"] body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(rgba(22, 22, 22, 0.045) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: 0 0;
  opacity: 0.6;
  mix-blend-mode: multiply;
}

/* Floating decorative blobs */
[color-scheme="light"] body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(380px 380px at 8% 22%, rgba(255, 47, 94, 0.10), transparent 70%),
    radial-gradient(420px 420px at 92% 38%, rgba(242, 161, 36, 0.10), transparent 70%),
    radial-gradient(520px 520px at 50% 78%, rgba(22, 104, 220, 0.08), transparent 70%);
  animation: bey-bg-drift 22s ease-in-out infinite alternate;
  filter: blur(8px);
}

@keyframes bey-bg-drift {
  0%   { transform: translate3d(0,    0,    0) scale(1);    }
  50%  { transform: translate3d(-2%,  1.5%, 0) scale(1.05); }
  100% { transform: translate3d(2%,  -1.5%, 0) scale(1.02); }
}

/* Make sure all content sits above the background layers */
main#mxd-page-content,
footer {
  position: relative;
  z-index: 1;
}

/* The slide-out navigation must keep its own fixed, full-screen stacking.
   A previous rule forced it to position:relative / z-index:1, which trapped
   the menu overlay inside the page flow — page content painted over it
   (text bleed-through) and intercepted clicks. Restore the fixed overlay
   and lift it above the floating glass header (z-index:1000). */
nav.mxd-nav__wrap {
  position: fixed !important;
  inset: 0 0 auto 0;
  z-index: 1100 !important;
  pointer-events: none;
}
/* Only the toggle and the open menu surface should capture pointer events
   so the transparent top strip never blocks the page when the menu is closed. */
nav.mxd-nav__wrap .mxd-nav__hamburger,
nav.mxd-nav__wrap .mxd-menu__wrapper {
  pointer-events: auto;
}
/* The menu's background panel shipped without a fill, so the open menu was
   see-through (page text showed behind the links). Give it the solid
   inverted surface the light menu text is designed for. */
.mxd-menu__base {
  background-color: var(--base-opp-tint);
}

@media (prefers-reduced-motion: reduce) {
  [color-scheme="light"] body::after { animation: none; }
}

/* ===========================================================
   FULL-WIDTH RESPONSIVENESS – 13" to 4K
   The template caps several sections at 1920px. We let them
   breathe on ultra-wide while keeping comfortable padding,
   and tighten paddings on smaller laptops/tablets.
   =========================================================== */

/* Remove the 1920px cap on the page wrapper so the bg gradients flow edge-to-edge */
main#mxd-page-content {
  max-width: 100%;
}

/* Hero headline – let it use the full container at 4K */
.mxd-hero-03__headline {
  max-width: 100% !important;
}

/* Tighten container padding on small laptops (~13"–14") */
@media (min-width: 1200px) and (max-width: 1439px) {
  .mxd-container:not(.fullwidth-container):not(.fullscreen-container):not(.no-padding-container),
  .mxd-container.grid-container {
    padding-left: 3vw !important;
    padding-right: 3vw !important;
  }
}

/* Comfortable padding on standard desktops */
@media (min-width: 1440px) and (max-width: 1919px) {
  .mxd-container:not(.fullwidth-container):not(.fullscreen-container):not(.no-padding-container),
  .mxd-container.grid-container {
    padding-left: 4vw !important;
    padding-right: 4vw !important;
  }
}

/* Ultra-wide (QHD / ultrawide) */
@media (min-width: 1920px) and (max-width: 2559px) {
  .mxd-container:not(.fullwidth-container):not(.fullscreen-container):not(.no-padding-container),
  .mxd-container.grid-container {
    max-width: 1820px !important;
    padding-left: 4rem !important;
    padding-right: 4rem !important;
  }
  .mxd-container.fullwidth-container,
  .mxd-container.fullscreen-container {
    max-width: 100% !important;
  }
}

/* 4K and beyond */
@media (min-width: 2560px) {
  .mxd-container:not(.fullwidth-container):not(.fullscreen-container):not(.no-padding-container),
  .mxd-container.grid-container {
    max-width: 2200px !important;
    padding-left: 5rem !important;
    padding-right: 5rem !important;
  }
  .mxd-container.fullwidth-container,
  .mxd-container.fullscreen-container {
    max-width: 100% !important;
  }
  html {
    /* Scale base font up slightly on 4K so type doesn't feel tiny */
    font-size: 112.5%;
  }
}

/* Tablet & iPad portrait */
@media (min-width: 768px) and (max-width: 1199px) {
  .mxd-container:not(.fullwidth-container):not(.fullscreen-container):not(.no-padding-container),
  .mxd-container.grid-container {
    padding-left: 2.5rem !important;
    padding-right: 2.5rem !important;
  }
}

/* Phones */
@media (max-width: 767px) {
  .mxd-container:not(.fullwidth-container):not(.fullscreen-container):not(.no-padding-container),
  .mxd-container.grid-container {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }
}

/* ===========================================================
   BENTO VALUE CARDS – new asymmetric layout
   =========================================================== */
.bento-values {
  --bento-gap: clamp(14px, 1.6vw, 24px);
  --bento-radius: 28px;
  width: 100%;
}

.bento-values__header {
  max-width: 760px;
  margin: 0 auto clamp(32px, 5vw, 64px);
  text-align: center;
  padding: 0 1rem;
}
.bento-values__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bey-ink);
  opacity: 0.7;
  margin: 0 0 18px;
}
.bento-values__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bey-pink);
  box-shadow:
    0 0 0 4px rgba(255, 47, 94, 0.15),
    0 0 0 10px rgba(255, 47, 94, 0.06);
}
.bento-values__heading {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--bey-ink);
}
.bento-values__heading em {
  font-style: italic;
  background: linear-gradient(120deg, var(--bey-pink), var(--bey-orange) 60%, var(--bey-blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Bento grid: 12 cols × 2 rows on desktop */
.bento-values__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(280px, auto);
  gap: var(--bento-gap);
}

.bento-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--bento-radius);
  padding: clamp(28px, 3vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.4s ease;
  box-shadow: 0 1px 2px rgba(22, 22, 22, 0.04);
  min-height: 360px;
}
.bento-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -20px rgba(22, 22, 22, 0.25);
}
.bento-card:hover .bento-card__media img {
  transform: scale(1.06) rotate(-2deg);
}
.bento-card:hover .bento-card__shape {
  transform: rotate(12deg) scale(1.08);
}

/* Layout sizing */
.bento-card--large { grid-column: span 7; grid-row: span 2; min-height: 560px; }
.bento-card--tall  { grid-column: span 5; grid-row: span 2; min-height: 560px; }
.bento-card--short { grid-column: span 5; }
.bento-card--wide  { grid-column: span 7; }

/* Index number */
.bento-card__index {
  position: absolute;
  top: clamp(20px, 2.4vw, 32px);
  left: clamp(24px, 3vw, 40px);
  font-family: var(--_font-accent, Helvetica, Arial, sans-serif);
  font-size: clamp(1rem, 1.1vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  opacity: 0.55;
  z-index: 3;
}

/* Image */
.bento-card__media {
  position: absolute;
  top: 8%;
  right: 6%;
  width: 48%;
  max-width: 360px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}
.bento-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.18));
}
.bento-card--large .bento-card__media { width: 55%; max-width: 480px; }
.bento-card--tall  .bento-card__media { width: 70%; max-width: 380px; top: 6%; right: 50%; transform: translateX(50%); }
.bento-card--short .bento-card__media { width: 38%; max-width: 240px; }
.bento-card--wide  .bento-card__media { width: 36%; max-width: 320px; }

/* Body */
.bento-card__body {
  position: relative;
  z-index: 3;
  max-width: 95%;
}
.bento-card--large .bento-card__body { max-width: 56%; }
.bento-card--tall  .bento-card__body { max-width: 100%; }
.bento-card--short .bento-card__body { max-width: 62%; }
.bento-card--wide  .bento-card__body { max-width: 60%; }

.bento-card__title {
  font-size: clamp(1.5rem, 2.2vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
  line-height: 1.1;
}
.bento-card__text {
  font-size: clamp(0.95rem, 1vw, 1.05rem);
  line-height: 1.55;
  margin: 0 0 18px;
  opacity: 0.92;
}
.bento-card__tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid currentColor;
  opacity: 0.85;
}

/* Decorative SVG shape */
.bento-card__shape {
  position: absolute;
  width: clamp(180px, 28%, 320px);
  bottom: -8%;
  right: -8%;
  opacity: 0.18;
  z-index: 1;
  pointer-events: none;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Color-specific text contrast (cards already set bg + text color) */
.bento-card.bg-value-pink,
.bento-card.bg-value-orange,
.bento-card.bg-value-blue { color: #fff; }
.bento-card.bg-value-cream { color: var(--bey-ink); }
.bento-card.bg-value-pink .bento-card__text,
.bento-card.bg-value-orange .bento-card__text,
.bento-card.bg-value-blue .bento-card__text { color: rgba(255, 255, 255, 0.92); }
.bento-card.bg-value-cream .bento-card__media img { filter: drop-shadow(0 14px 24px rgba(22, 22, 22, 0.18)); }

/* Tablet: rearrange into 6-col grid, all cards span 3 */
@media (max-width: 1199px) {
  .bento-values__grid {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: minmax(320px, auto);
  }
  .bento-card--large,
  .bento-card--tall,
  .bento-card--short,
  .bento-card--wide {
    grid-column: span 3;
    grid-row: auto;
    min-height: 420px;
  }
  .bento-card__media,
  .bento-card--large .bento-card__media,
  .bento-card--tall  .bento-card__media,
  .bento-card--short .bento-card__media,
  .bento-card--wide  .bento-card__media {
    width: 45%;
    max-width: 260px;
    top: 10%;
    right: 6%;
    left: auto;
    transform: none;
  }
  .bento-card--large .bento-card__body,
  .bento-card--tall  .bento-card__body,
  .bento-card--short .bento-card__body,
  .bento-card--wide  .bento-card__body { max-width: 100%; }
}

/* Mobile: single column */
@media (max-width: 767px) {
  .bento-values__grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  .bento-card--large,
  .bento-card--tall,
  .bento-card--short,
  .bento-card--wide {
    grid-column: span 1;
    min-height: 360px;
  }
  .bento-card { padding: 24px; }
  .bento-card__media,
  .bento-card--large .bento-card__media,
  .bento-card--tall  .bento-card__media,
  .bento-card--short .bento-card__media,
  .bento-card--wide  .bento-card__media {
    width: 38%;
    max-width: 180px;
    top: 18px;
    right: 18px;
  }
  .bento-card__body { max-width: 100% !important; }
  .bento-card__title { font-size: 1.6rem; }
}

/* Ultra-wide: cap card height so they don't get absurdly tall */
@media (min-width: 1920px) {
  .bento-card--large,
  .bento-card--tall { min-height: 640px; }
  .bento-card--short,
  .bento-card--wide { min-height: 320px; }
}

/* ===========================================================
   PRINCIPLES — manifesto rows (replaces the old bento grid)
   Editorial, horizontal-row layout. Each row is a thin slice
   that tints with the principle's color on hover.
   =========================================================== */
.bey-principles {
  width: 100%;
  --bey-row-pad-y: clamp(28px, 3.6vw, 56px);
  --bey-row-pad-x: clamp(16px, 2.4vw, 36px);
}

.bey-principles__header {
  max-width: 760px;
  margin: 0 auto clamp(36px, 5vw, 72px);
  text-align: center;
  padding: 0 1rem;
}
.bey-principles__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bey-ink);
  opacity: 0.65;
  margin: 0 0 16px;
}
.bey-principles__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bey-pink);
  box-shadow:
    0 0 0 4px rgba(255, 47, 94, 0.14),
    0 0 0 9px rgba(255, 47, 94, 0.06);
}
.bey-principles__heading {
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.018em;
  margin: 0;
  color: var(--bey-ink);
}
.bey-principles__heading em {
  font-style: italic;
  background: linear-gradient(120deg, var(--bey-pink), var(--bey-orange) 60%, var(--bey-blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.bey-principles__sub {
  font-size: 0.98rem;
  line-height: 1.5;
  color: rgba(22, 22, 22, 0.6);
  margin: 14px 0 0;
}

/* Row list */
.bey-principles__list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid rgba(22, 22, 22, 0.10);
}
.bey-principles__row {
  display: grid;
  grid-template-columns: minmax(96px, 130px) minmax(0, 1fr) minmax(180px, 240px);
  align-items: center;
  gap: clamp(20px, 2.8vw, 48px);
  padding: var(--bey-row-pad-y) var(--bey-row-pad-x);
  position: relative;
  border-bottom: 1px solid rgba(22, 22, 22, 0.10);
  isolation: isolate;
  transition: padding 0.4s ease;
}
.bey-principles__row::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, var(--bey-tint, transparent) 0%, transparent 70%);
  opacity: 0;
  transform: translateX(-4%);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.bey-principles__row[data-color="pink"]   { --bey-tint: rgba(255, 47, 94, 0.10); --bey-stroke: var(--bey-pink); }
.bey-principles__row[data-color="orange"] { --bey-tint: rgba(242, 161, 36, 0.12); --bey-stroke: var(--bey-orange); }
.bey-principles__row[data-color="blue"]   { --bey-tint: rgba(22, 104, 220, 0.10); --bey-stroke: var(--bey-blue); }
.bey-principles__row[data-color="cream"]  { --bey-tint: rgba(180, 122, 42, 0.14); --bey-stroke: #B47A2A; }
.bey-principles__row:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* Outlined index numeral */
.bey-principles__index {
  font-family: var(--_font-accent, Helvetica, Arial, sans-serif);
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--bey-stroke, var(--bey-ink));
  text-stroke: 1.5px var(--bey-stroke, var(--bey-ink));
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.bey-principles__row:hover .bey-principles__index {
  transform: translateX(6px);
}

/* Body */
.bey-principles__body {
  max-width: 720px;
  min-width: 0;
}
.bey-principles__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 12px;
}
.bey-principles__chip {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(22, 22, 22, 0.06);
  color: rgba(22, 22, 22, 0.65);
}
.bey-principles__rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--bey-stroke, rgba(22, 22, 22, 0.2)), transparent);
  opacity: 0.45;
}
.bey-principles__title {
  font-size: clamp(1.35rem, 1.8vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.018em;
  margin: 0 0 10px;
  line-height: 1.15;
  color: var(--bey-ink);
}
.bey-principles__desc {
  font-size: clamp(0.95rem, 1vw, 1.05rem);
  line-height: 1.6;
  margin: 0 0 16px;
  color: rgba(22, 22, 22, 0.74);
  max-width: 640px;
}
.bey-principles__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bey-principles__tags span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(22, 22, 22, 0.05);
  color: rgba(22, 22, 22, 0.7);
  border: 1px solid rgba(22, 22, 22, 0.08);
}

/* Media square */
.bey-principles__media {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1 / 1;
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bey-principles__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  filter: drop-shadow(0 14px 28px rgba(22, 22, 22, 0.14));
}
.bey-principles__row:hover .bey-principles__media img {
  transform: scale(1.05) rotate(-2deg);
}

@media (max-width: 991px) {
  .bey-principles__row {
    grid-template-columns: 76px minmax(0, 1fr) 140px;
    gap: 20px;
  }
  .bey-principles__index { font-size: 2.4rem; -webkit-text-stroke-width: 1.2px; }
  .bey-principles__title { font-size: 1.25rem; }
  .bey-principles__media { max-width: 140px; }
}

@media (max-width: 640px) {
  .bey-principles__row {
    grid-template-columns: 56px 1fr;
    grid-template-areas:
      "index   media"
      "body    body";
    gap: 14px 18px;
    padding: 28px 14px;
  }
  .bey-principles__index { grid-area: index; align-self: start; font-size: 2rem; }
  .bey-principles__media { grid-area: media; max-width: 110px; justify-self: end; }
  .bey-principles__body  { grid-area: body; max-width: 100%; }
  .bey-principles__desc  { font-size: 0.95rem; }
}

/* ===========================================================
   SERVICES LEDGER — image / text / CTA row layout
   Sibling pattern to the principles section, but inverted:
   media on the left, copy in the middle, arrow CTA on the right.
   =========================================================== */
.bey-services-ledger {
  width: 100%;
  --bey-srv-pad-y: clamp(24px, 3vw, 44px);
  --bey-srv-pad-x: clamp(16px, 2.2vw, 32px);
}
.bey-services-ledger__header {
  max-width: 760px;
  margin: 0 auto clamp(36px, 5vw, 64px);
  text-align: center;
  padding: 0 1rem;
}
.bey-services-ledger__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bey-ink);
  opacity: 0.65;
  margin: 0 0 16px;
}
.bey-services-ledger__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bey-blue);
  box-shadow:
    0 0 0 4px rgba(22, 104, 220, 0.14),
    0 0 0 9px rgba(22, 104, 220, 0.06);
}
.bey-services-ledger__heading {
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.018em;
  margin: 0;
  color: var(--bey-ink);
}
.bey-services-ledger__heading em {
  font-style: italic;
  background: linear-gradient(120deg, var(--bey-blue), var(--bey-pink) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* List rows */
.bey-services-ledger__list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid rgba(22, 22, 22, 0.10);
}
.bey-services-ledger__row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) 130px;
  align-items: center;
  gap: clamp(20px, 2.6vw, 40px);
  padding: var(--bey-srv-pad-y) var(--bey-srv-pad-x);
  position: relative;
  border-bottom: 1px solid rgba(22, 22, 22, 0.10);
  isolation: isolate;
  text-decoration: none;
  color: inherit;
  transition: padding 0.4s ease;
}
.bey-services-ledger__row::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, transparent 0%, var(--bey-srv-tint, transparent) 100%);
  opacity: 0;
  transform: translateX(4%);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.bey-services-ledger__row::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--bey-srv-bar, transparent);
  border-radius: 0 4px 4px 0;
  transition: height 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.bey-services-ledger__row[data-color="pink"]      { --bey-srv-tint: rgba(255, 47, 94, 0.10);  --bey-srv-bar: var(--bey-pink); }
.bey-services-ledger__row[data-color="orange"]    { --bey-srv-tint: rgba(242, 161, 36, 0.12); --bey-srv-bar: var(--bey-orange); }
.bey-services-ledger__row[data-color="blue"]      { --bey-srv-tint: rgba(22, 104, 220, 0.10); --bey-srv-bar: var(--bey-blue); }
.bey-services-ledger__row[data-color="pink-soft"] { --bey-srv-tint: rgba(255, 179, 193, 0.28); --bey-srv-bar: var(--bey-pink-soft); }
.bey-services-ledger__row[data-color="blue-soft"] { --bey-srv-tint: rgba(111, 184, 240, 0.22); --bey-srv-bar: var(--bey-blue-soft); }

.bey-services-ledger__row:hover::before { opacity: 1; transform: translateX(0); }
.bey-services-ledger__row:hover::after  { height: 70%; }

/* Media tile */
.bey-services-ledger__media {
  width: 140px;
  height: 140px;
  border-radius: 18px;
  background: rgba(22, 22, 22, 0.035);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), background-color 0.4s ease;
}
.bey-services-ledger__media img {
  width: 88%;
  height: 88%;
  object-fit: contain;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  filter: drop-shadow(0 10px 18px rgba(22, 22, 22, 0.12));
}
.bey-services-ledger__row:hover .bey-services-ledger__media {
  transform: rotate(-3deg);
}
.bey-services-ledger__row:hover .bey-services-ledger__media img {
  transform: scale(1.06);
}

/* Body */
.bey-services-ledger__body {
  min-width: 0;
}
.bey-services-ledger__index {
  display: inline-block;
  font-family: var(--_font-accent, Helvetica, Arial, sans-serif);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(22, 22, 22, 0.55);
  margin: 0 0 8px;
}
.bey-services-ledger__title {
  font-size: clamp(1.25rem, 1.7vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
  line-height: 1.18;
  color: var(--bey-ink);
}
.bey-services-ledger__desc {
  font-size: clamp(0.92rem, 0.98vw, 1rem);
  line-height: 1.55;
  margin: 0 0 14px;
  color: rgba(22, 22, 22, 0.72);
  max-width: 680px;
}
.bey-services-ledger__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.bey-services-ledger__tags span {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: transparent;
  color: rgba(22, 22, 22, 0.62);
  border: 1px solid rgba(22, 22, 22, 0.14);
}

/* CTA */
.bey-services-ledger__cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--bey-ink);
  color: #fff;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), background-color 0.3s ease;
  white-space: nowrap;
}
.bey-services-ledger__cta i {
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.bey-services-ledger__row:hover .bey-services-ledger__cta {
  background: var(--bey-srv-bar, var(--bey-ink));
  transform: translateX(-4px);
}
.bey-services-ledger__row:hover .bey-services-ledger__cta i {
  transform: rotate(45deg);
}
.bey-services-ledger__row[data-color="pink-soft"]:hover .bey-services-ledger__cta,
.bey-services-ledger__row[data-color="blue-soft"]:hover .bey-services-ledger__cta {
  color: var(--bey-ink);
}

@media (max-width: 991px) {
  .bey-services-ledger__row {
    grid-template-columns: 96px minmax(0, 1fr) 56px;
    gap: 18px;
  }
  .bey-services-ledger__media { width: 96px; height: 96px; border-radius: 14px; }
  .bey-services-ledger__title { font-size: 1.2rem; }
  .bey-services-ledger__cta { padding: 12px; }
  .bey-services-ledger__cta span { display: none; }
}

@media (max-width: 640px) {
  .bey-services-ledger__row {
    grid-template-columns: 72px 1fr 44px;
    gap: 14px;
    padding: 22px 12px;
  }
  .bey-services-ledger__media { width: 72px; height: 72px; border-radius: 12px; }
  .bey-services-ledger__cta { padding: 10px; }
  .bey-services-ledger__desc { font-size: 0.92rem; }
  .bey-services-ledger__tags span { font-size: 0.62rem; padding: 4px 8px; }
}

/* Shared design tokens (originally introduced for dark mode; some are still
   referenced from header/glass surfaces) */
:root {
  --bey-glass:    rgba(255, 255, 255, 0.04);
  --bey-glass-2:  rgba(255, 255, 255, 0.07);
  --bey-line:     rgba(255, 255, 255, 0.10);
  --bey-line-2:   rgba(255, 255, 255, 0.16);
}

/* ============================================================
   STICKY GLASS HEADER — single unified pill, top-center
   ============================================================ */
.mxd-header {
  position: fixed !important;
  top: 18px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: auto !important;
  max-width: calc(100% - 32px);
  padding: 8px 10px 8px 18px !important;
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  border-radius: 999px !important;
  background: rgba(20, 20, 27, 0.55) !important;
  border: 1px solid var(--bey-line) !important;
  backdrop-filter: blur(18px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(140%) !important;
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  z-index: 1000 !important;
  transition: top 0.4s ease, background-color 0.4s ease;
}
[color-scheme="light"] .mxd-header {
  background: rgba(255, 255, 255, 0.72) !important;
  border-color: rgba(22, 22, 22, 0.08) !important;
  box-shadow: 0 10px 40px rgba(22, 22, 22, 0.10);
}

.mxd-header__logo { margin-right: 4px; }
.mxd-header .mxd-logo__img {
  height: 36px !important;
  width: auto !important;
}

.mxd-header__nav {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 8px;
  border-left: 1px solid var(--bey-line);
  border-right: 1px solid var(--bey-line);
}
[color-scheme="light"] .mxd-header__nav {
  border-color: rgba(22, 22, 22, 0.10);
}
.mxd-header__nav a {
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  padding: 8px 4px;
  transition: color 0.3s ease;
  position: relative;
}
.mxd-header__nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 4px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.mxd-header__nav a:hover { color: #fff; }
.mxd-header__nav a:hover::after { transform: scaleX(1); transform-origin: left; }
[color-scheme="light"] .mxd-header__nav a { color: rgba(22,22,22,0.75); }
[color-scheme="light"] .mxd-header__nav a:hover { color: var(--bey-ink); }

.mxd-header__controls {
  gap: 8px !important;
}
.mxd-header__controls .btn {
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  background: #fff;
  color: var(--bey-ink) !important;
  border: 0;
}
.mxd-header__controls .btn .btn-caption { color: var(--bey-ink) !important; }
.mxd-header__controls .btn i { color: var(--bey-ink) !important; font-size: 0.85rem; }

@media (max-width: 991px) {
  .mxd-header__nav { display: none; }
}
@media (max-width: 540px) {
  .mxd-header { top: 12px !important; padding: 6px 8px 6px 14px !important; }
  .mxd-header .mxd-logo__img { height: 30px !important; }
  .mxd-header__controls .btn .btn-caption { display: none; }
  .mxd-header__controls .btn { width: 36px; padding: 0; justify-content: center; }
}

/* ============================================================
   PRINCIPLES — SHOWCASE LAYOUT (Strategy-style)
   Big wordmark + interactive tab list + active media panel
   ============================================================ */
.bey-principles { /* override the row layout above */
  --bey-row-pad-y: 0;
  --bey-row-pad-x: 0;
}
.bey-principles__list { display: none !important; }
.bey-principles__header { display: none !important; }

.bey-showcase {
  --gap: clamp(28px, 3vw, 56px);
  position: relative;
  padding: clamp(60px, 8vw, 120px) 0;
}
.bey-showcase__heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: clamp(40px, 5vw, 80px);
  flex-wrap: wrap;
}
.bey-showcase__wordmark {
  font-size: clamp(3rem, 10vw, 9rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin: 0;
  background: linear-gradient(135deg, #fff 30%, rgba(255,255,255,0.35));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-flex;
  align-items: flex-start;
  gap: 16px;
}
[color-scheme="light"] .bey-showcase__wordmark {
  background: linear-gradient(135deg, var(--bey-ink) 30%, rgba(22,22,22,0.45));
  -webkit-background-clip: text;
  background-clip: text;
}
.bey-showcase__wordmark .bey-showcase__count {
  font-size: 0.18em;
  background: var(--bey-glass);
  border: 1px solid var(--bey-line);
  border-radius: 999px;
  padding: 6px 14px;
  color: rgba(255,255,255,0.7);
  align-self: center;
  font-weight: 600;
  letter-spacing: 0.02em;
}
[color-scheme="light"] .bey-showcase__wordmark .bey-showcase__count {
  background: rgba(22,22,22,0.05);
  border-color: rgba(22,22,22,0.10);
  color: rgba(22,22,22,0.7);
}
.bey-showcase__intro {
  max-width: 420px;
  font-size: clamp(0.95rem, 1.05vw, 1.1rem);
  line-height: 1.6;
  color: rgba(255,255,255,0.65);
  margin: 0;
}
[color-scheme="light"] .bey-showcase__intro { color: rgba(22,22,22,0.65); }

.bey-showcase__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--gap);
  align-items: stretch;
}

/* Media panel — left */
.bey-showcase__media {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  min-height: 560px;
  background: linear-gradient(140deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--bey-line);
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  transition: background 0.6s ease, border-color 0.6s ease, box-shadow 0.6s ease;
}
.bey-showcase__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 500px at 50% 50%, var(--accent, rgba(255,47,94,0.25)), transparent 60%);
  opacity: 0.85;
  z-index: 0;
  transition: background 0.6s ease;
}
[color-scheme="light"] .bey-showcase__media {
  background: linear-gradient(140deg, rgba(22,22,22,0.04), rgba(22,22,22,0.01));
  border-color: rgba(22,22,22,0.10);
}
.bey-showcase__media-index {
  position: absolute;
  top: 28px;
  left: 32px;
  font-size: clamp(4rem, 7vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.35);
  z-index: 2;
}
[color-scheme="light"] .bey-showcase__media-index { -webkit-text-stroke-color: rgba(22,22,22,0.30); }
.bey-showcase__media-meta {
  position: absolute;
  bottom: 28px;
  left: 32px;
  right: 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  z-index: 2;
}
.bey-showcase__media-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--bey-line);
  background: var(--bey-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
[color-scheme="light"] .bey-showcase__media-label {
  background: rgba(255,255,255,0.5);
  border-color: rgba(22,22,22,0.12);
  color: rgba(22,22,22,0.7);
}
.bey-showcase__media-pager {
  display: flex;
  gap: 8px;
}
.bey-showcase__media-pager button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--bey-line);
  background: rgba(255,255,255,0.06);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.bey-showcase__media-pager button:hover { background: rgba(255,255,255,0.16); transform: translateY(-1px); }
[color-scheme="light"] .bey-showcase__media-pager button {
  background: rgba(255,255,255,0.7);
  color: var(--bey-ink);
  border-color: rgba(22,22,22,0.12);
}

.bey-showcase__images {
  position: relative;
  width: 78%;
  aspect-ratio: 1 / 1;
  max-width: 480px;
  z-index: 1;
}
.bey-showcase__images img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.9) translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.45));
}
.bey-showcase__images img.is-active {
  opacity: 1;
  transform: scale(1) translateY(0);
  animation: bey-showcase-float 8s ease-in-out infinite;
}
@keyframes bey-showcase-float {
  0%, 100% { transform: scale(1) translateY(0)    rotate(0deg); }
  50%      { transform: scale(1.02) translateY(-12px) rotate(-1.5deg); }
}

/* Tabs panel — right */
.bey-showcase__tabs {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(140deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--bey-line);
}
[color-scheme="light"] .bey-showcase__tabs {
  background: linear-gradient(140deg, rgba(22,22,22,0.04), rgba(22,22,22,0.01));
  border-color: rgba(22,22,22,0.10);
}
.bey-showcase__tab {
  display: grid;
  grid-template-columns: 60px 1fr 32px;
  align-items: center;
  gap: 18px;
  padding: 28px 32px;
  border-bottom: 1px solid var(--bey-line);
  cursor: pointer;
  background: transparent;
  color: inherit;
  text-align: left;
  font: inherit;
  width: 100%;
  position: relative;
  transition: background-color 0.4s ease, padding 0.4s ease;
  isolation: isolate;
}
.bey-showcase__tab:last-child { border-bottom: 0; }
[color-scheme="light"] .bey-showcase__tab { border-color: rgba(22,22,22,0.10); }
.bey-showcase__tab::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, var(--accent, rgba(255,47,94,0.20)), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.bey-showcase__tab:hover::before { opacity: 0.55; }
.bey-showcase__tab.is-active::before { opacity: 1; }
.bey-showcase__tab.is-active { padding-top: 32px; padding-bottom: 32px; }

.bey-showcase__tab-num {
  font-family: var(--_font-accent, Helvetica, Arial, sans-serif);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
}
[color-scheme="light"] .bey-showcase__tab-num { color: rgba(22,22,22,0.45); }
.bey-showcase__tab.is-active .bey-showcase__tab-num { color: #fff; }
[color-scheme="light"] .bey-showcase__tab.is-active .bey-showcase__tab-num { color: var(--bey-ink); }

.bey-showcase__tab-body { min-width: 0; }
.bey-showcase__tab-title {
  font-size: clamp(1.2rem, 1.5vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0 0 6px;
  color: rgba(255,255,255,0.88);
  transition: color 0.3s ease;
}
[color-scheme="light"] .bey-showcase__tab-title { color: rgba(22,22,22,0.88); }
.bey-showcase__tab.is-active .bey-showcase__tab-title { color: #fff; }
[color-scheme="light"] .bey-showcase__tab.is-active .bey-showcase__tab-title { color: var(--bey-ink); }

.bey-showcase__tab-desc {
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
  color: rgba(255,255,255,0.6);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.6s cubic-bezier(0.2, 0.7, 0.2, 1),
              opacity 0.5s ease 0.05s,
              margin 0.4s ease;
}
[color-scheme="light"] .bey-showcase__tab-desc { color: rgba(22,22,22,0.65); }
.bey-showcase__tab.is-active .bey-showcase__tab-desc {
  max-height: 200px;
  opacity: 1;
  margin: 8px 0 12px;
}
.bey-showcase__tab-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.4s ease;
}
.bey-showcase__tab.is-active .bey-showcase__tab-tags {
  max-height: 60px;
  opacity: 1;
}
.bey-showcase__tab-tags span {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--bey-line);
  color: rgba(255,255,255,0.7);
}
[color-scheme="light"] .bey-showcase__tab-tags span {
  background: rgba(22,22,22,0.05);
  border-color: rgba(22,22,22,0.1);
  color: rgba(22,22,22,0.7);
}

.bey-showcase__tab-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bey-glass);
  border: 1px solid var(--bey-line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  transition: background-color 0.4s ease, transform 0.4s ease, color 0.3s ease;
}
[color-scheme="light"] .bey-showcase__tab-arrow {
  background: rgba(22,22,22,0.04);
  border-color: rgba(22,22,22,0.10);
  color: rgba(22,22,22,0.7);
}
.bey-showcase__tab.is-active .bey-showcase__tab-arrow {
  background: #fff;
  color: var(--bey-ink);
  transform: rotate(45deg);
}

@media (max-width: 991px) {
  .bey-showcase__grid { grid-template-columns: 1fr; }
  .bey-showcase__media { min-height: 380px; }
  .bey-showcase__tab { padding: 22px 20px; }
}
@media (max-width: 540px) {
  .bey-showcase__media { min-height: 320px; border-radius: 24px; }
  .bey-showcase__media-index { font-size: 3.5rem; top: 18px; left: 20px; }
  .bey-showcase__media-meta { left: 20px; right: 20px; bottom: 18px; }
  .bey-showcase__tab { grid-template-columns: 44px 1fr 28px; padding: 18px 18px; gap: 12px; }
  .bey-showcase__tab-title { font-size: 1.05rem; }
}

/* ============================================================
   PRINCIPLES — STAGGERED SHELF (image-led, no crops)
   Editorial row of 4 cards with vertical offsets, outlined
   display numbers, and side-set titles.
   ============================================================ */
.bey-pshelf {
  --pshelf-card-w: clamp(220px, 22vw, 320px);
  --pshelf-card-h: clamp(360px, 36vw, 520px);
  display: block;
  position: relative;
}

.bey-pshelf__heading-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: end;
  gap: 40px;
  margin-bottom: clamp(40px, 5vw, 80px);
}
.bey-pshelf__heading-left { display: flex; flex-direction: column; gap: 18px; }
.bey-pshelf__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
}
[color-scheme="light"] .bey-pshelf__eyebrow { color: rgba(22, 22, 22, 0.55); }
.bey-pshelf__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #FF2F5E;
  box-shadow: 0 0 0 4px rgba(255, 47, 94, 0.18);
}
.bey-pshelf__wordmark {
  font-family: inherit;
  font-weight: 800;
  font-size: clamp(48px, 8vw, 128px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0;
  color: #fff;
}
[color-scheme="light"] .bey-pshelf__wordmark { color: var(--bey-ink, #161616); }
.bey-pshelf__count {
  font-size: 0.35em;
  font-weight: 500;
  vertical-align: super;
  color: rgba(255, 255, 255, 0.4);
  margin-left: 6px;
}
[color-scheme="light"] .bey-pshelf__count { color: rgba(22, 22, 22, 0.4); }
.bey-pshelf__intro {
  font-size: clamp(15px, 1.05vw, 18px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.68);
  max-width: 460px;
  margin: 0;
}
[color-scheme="light"] .bey-pshelf__intro { color: rgba(22, 22, 22, 0.65); }

/* The shelf rail — 4 cards in a row, no scroll, with vertical stagger */
.bey-pshelf__rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 1.2vw, 22px);
  align-items: start;
  padding: clamp(28px, 4vw, 64px) 0 clamp(48px, 6vw, 96px);
  position: relative;
}
/* horizontal hairline that the cards sit on top of */
.bey-pshelf__rail::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(20px, 3vw, 40px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.16), transparent);
  pointer-events: none;
}
[color-scheme="light"] .bey-pshelf__rail::before {
  background: linear-gradient(90deg, transparent, rgba(22,22,22,0.14), transparent);
}

/* Stagger: cards 0 and 2 sit lower; 1 and 3 sit higher */
.bey-pshelf__card[data-offset="0"] { --stagger-y: 48px; }
.bey-pshelf__card[data-offset="1"] { --stagger-y: 0px; }
.bey-pshelf__card[data-offset="2"] { --stagger-y: 64px; }
.bey-pshelf__card[data-offset="3"] { --stagger-y: 16px; }

.bey-pshelf__card {
  position: relative;
  margin: 0;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  perspective: 1100px;
  transform: translateY(var(--stagger-y, 0px));
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
}
.bey-pshelf__card:hover { transform: translateY(calc(var(--stagger-y, 0px) - 14px)); }

/* Giant outlined number sitting behind the image frame */
.bey-pshelf__big-num {
  position: absolute;
  top: -0.42em;
  left: 50%;
  transform: translate3d(-50%, 0, 0);
  font-family: inherit;
  font-weight: 800;
  font-size: clamp(130px, 15vw, 240px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.18);
  pointer-events: none;
  z-index: 0;
  animation: bey-pshelf-num-breathe 5s ease-in-out infinite;
  transition: -webkit-text-stroke-color 0.4s ease, color 0.4s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
[color-scheme="light"] .bey-pshelf__big-num {
  -webkit-text-stroke-color: rgba(22, 22, 22, 0.16);
}
.bey-pshelf__card:hover .bey-pshelf__big-num {
  color: var(--accent);
  -webkit-text-stroke-color: var(--accent);
  transform: translate3d(-50%, -10px, 0);
}
@keyframes bey-pshelf-num-breathe {
  0%, 100% { opacity: 0.85; }
  50%      { opacity: 1; }
}

/* Inner wrapper that receives the 3D tilt from JS */
.bey-pshelf__frame-wrap {
  position: relative;
  width: 100%;
  z-index: 1;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* The image frame — bigger image now (less padding, taller aspect) */
.bey-pshelf__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 26px;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,0.06), transparent 60%),
    rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.4s ease, background 0.4s ease, box-shadow 0.5s ease;
}
[color-scheme="light"] .bey-pshelf__frame {
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(22,22,22,0.05), transparent 60%),
    rgba(22, 22, 22, 0.025);
  border-color: rgba(22, 22, 22, 0.08);
}
/* accent wash on hover */
.bey-pshelf__frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(100% 80% at 50% 110%, var(--accent), transparent 65%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 1;
}
/* Pointer spotlight — moves with cursor */
.bey-pshelf__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    260px circle at var(--mx, 50%) var(--my, 50%),
    color-mix(in srgb, var(--accent) 28%, transparent),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 2;
}
.bey-pshelf__card:hover .bey-pshelf__frame {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow:
    0 30px 60px -30px color-mix(in srgb, var(--accent) 40%, transparent),
    0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent);
}
.bey-pshelf__card:hover .bey-pshelf__frame::before { opacity: 0.26; }
.bey-pshelf__card:hover .bey-pshelf__frame::after  { opacity: 1; }

/* Size the artwork larger than the frame via LAYOUT (155%), not transform
   scale. Scaling a composited layer with transform/translateZ made the GPU
   upscale a frame-sized bitmap → blurry. At 155% width/height the high-res
   PNG is rasterised crisply and object-fit handles the rest. */
.bey-pshelf__frame img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 155%;
  height: 155%;
  object-fit: contain;
  object-position: center;
  padding: 0;
  display: block;
  transform: translate(-50%, -50%);
  transform-origin: center;
  animation: bey-pshelf-float 6s ease-in-out infinite;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  filter: drop-shadow(0 22px 32px rgba(0, 0, 0, 0.5));
  z-index: 3;
  image-rendering: auto;
}
.bey-pshelf__card[data-offset="1"] .bey-pshelf__frame img { animation-delay: -1.5s; }
.bey-pshelf__card[data-offset="2"] .bey-pshelf__frame img { animation-delay: -3s; }
.bey-pshelf__card[data-offset="3"] .bey-pshelf__frame img { animation-delay: -4.5s; }
.bey-pshelf__card:hover .bey-pshelf__frame img { transform: translate(-50%, calc(-50% - 8px)); }
@keyframes bey-pshelf-float {
  0%, 100% { transform: translate(-50%, -50%); }
  50%      { transform: translate(-50%, calc(-50% - 10px)); }
}
@media (prefers-reduced-motion: reduce) {
  .bey-pshelf__frame img,
  .bey-pshelf__big-num { animation: none; }
}

.bey-pshelf__caption {
  margin-top: 18px;
  padding: 0 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bey-pshelf__tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
[color-scheme="light"] .bey-pshelf__tag { color: rgba(22, 22, 22, 0.45); }
.bey-pshelf__title {
  margin: 0;
  font-size: clamp(18px, 1.6vw, 26px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #fff;
  transition: color 0.3s ease;
}
[color-scheme="light"] .bey-pshelf__title { color: var(--bey-ink, #161616); }
.bey-pshelf__card:hover .bey-pshelf__title { color: var(--accent); }

/* Responsive */
@media (max-width: 1100px) {
  .bey-pshelf__rail { grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 36px) clamp(16px, 2.5vw, 32px); }
  .bey-pshelf__card[data-offset="0"] { transform: translateY(0); }
  .bey-pshelf__card[data-offset="1"] { transform: translateY(36px); }
  .bey-pshelf__card[data-offset="2"] { transform: translateY(0); }
  .bey-pshelf__card[data-offset="3"] { transform: translateY(36px); }
  .bey-pshelf__rail::before { display: none; }
}
@media (max-width: 720px) {
  .bey-pshelf__heading-row { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 560px) {
  .bey-pshelf__rail { grid-template-columns: 1fr; gap: 32px; padding: 12px 0 40px; }
  .bey-pshelf__card,
  .bey-pshelf__card[data-offset="0"],
  .bey-pshelf__card[data-offset="1"],
  .bey-pshelf__card[data-offset="2"],
  .bey-pshelf__card[data-offset="3"] { transform: translateY(0); }
  .bey-pshelf__frame { aspect-ratio: 5 / 4; }
  .bey-pshelf__big-num { font-size: 100px; top: -0.3em; }
}

/* ============================================================
   SERVICES — BIG COLORED CARDS w/ FLOATING TAG PILLS
   Mads-Matters-style 2-up grid
   ============================================================ */
/* Hide the old services-ledger we built earlier */
.bey-services-ledger { display: none !important; }

.bey-services-hero {
  padding: clamp(40px, 5vw, 80px) 0 clamp(60px, 7vw, 100px);
}
.bey-services-hero__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: clamp(32px, 4vw, 60px);
}
.bey-services-hero__title {
  font-size: clamp(2.4rem, 7vw, 6rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0;
  background: linear-gradient(135deg, #fff 35%, rgba(255,255,255,0.35));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
[color-scheme="light"] .bey-services-hero__title {
  background: linear-gradient(135deg, var(--bey-ink) 35%, rgba(22,22,22,0.45));
  -webkit-background-clip: text;
  background-clip: text;
}
.bey-services-hero__title em {
  font-style: italic;
  background: linear-gradient(120deg, var(--bey-pink), var(--bey-orange) 60%, var(--bey-blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.bey-services-hero__intro {
  max-width: 420px;
  font-size: clamp(0.95rem, 1.05vw, 1.1rem);
  line-height: 1.6;
  color: rgba(255,255,255,0.65);
}
[color-scheme="light"] .bey-services-hero__intro { color: rgba(22,22,22,0.65); }

.bey-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(18px, 2vw, 28px);
}
.bey-services-grid .bey-svc--wide { grid-column: 1 / -1; }

.bey-svc {
  position: relative;
  border-radius: 28px;
  padding: clamp(32px, 4vw, 56px);
  min-height: 560px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  isolation: isolate;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.5s ease;
  color: var(--bey-ink);
}
.bey-svc:hover {
  transform: translateY(-6px);
  box-shadow: 0 40px 80px rgba(0,0,0,0.35);
}

.bey-svc--pink     { background: linear-gradient(160deg, #FF6E8E, #FF2F5E 70%); }
.bey-svc--orange   { background: linear-gradient(160deg, #FFD08A, #F2A124 70%); }
.bey-svc--blue     { background: linear-gradient(160deg, #4A8FE8, #1668DC 70%); color: #fff; }
.bey-svc--cream    { background: linear-gradient(160deg, #FFF6E8, #F5E6C8 70%); }
.bey-svc--deep     { background: linear-gradient(160deg, #2A1B47, #14091F 70%); color: #fff; }

.bey-svc__index {
  font-family: var(--_font-accent, Helvetica, Arial, sans-serif);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 14px;
}
.bey-svc__title {
  font-size: clamp(1.8rem, 3vw, 3.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0;
  max-width: 80%;
}
.bey-svc__title em {
  font-style: normal;
  font-weight: 800;
  -webkit-text-stroke: 1.5px currentColor;
  color: transparent;
}
.bey-svc__desc {
  font-size: clamp(0.95rem, 1vw, 1.05rem);
  line-height: 1.55;
  max-width: 78%;
  margin: 18px 0 0;
  opacity: 0.82;
}

/* Stage: floating image + pill tags */
.bey-svc__stage {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  min-height: 260px;
}
.bey-svc__stage-img {
  position: relative;
  width: 56%;
  max-width: 320px;
  aspect-ratio: 1 / 1;
  z-index: 1;
  animation: bey-svc-float 7s ease-in-out infinite;
}
.bey-svc__stage-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 24px 50px rgba(0,0,0,0.30));
}
@keyframes bey-svc-float {
  0%, 100% { transform: translateY(0)    rotate(0deg); }
  50%      { transform: translateY(-14px) rotate(-2deg); }
}

.bey-svc__pill {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.92);
  color: var(--bey-ink);
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
  z-index: 2;
  white-space: nowrap;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.bey-svc--deep .bey-svc__pill,
.bey-svc--blue .bey-svc__pill {
  background: rgba(20, 20, 27, 0.78);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.10);
}
.bey-svc__pill::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--pill-dot, var(--bey-pink));
}

/* Per-pill positions (each card has 4 floating pills) */
.bey-svc__pill--tl { top: 10%;  left: 6%;  }
.bey-svc__pill--tr { top: 8%;   right: 6%; }
.bey-svc__pill--bl { bottom: 12%; left: 8%; }
.bey-svc__pill--br { bottom: 10%; right: 8%; }
.bey-svc__pill--ml { top: 50%;  left: 4%;  transform: translateY(-50%); }
.bey-svc__pill--mr { top: 50%;  right: 4%; transform: translateY(-50%); }

.bey-svc:hover .bey-svc__pill--tl { transform: translate(-6px, -6px); }
.bey-svc:hover .bey-svc__pill--tr { transform: translate( 6px, -6px); }
.bey-svc:hover .bey-svc__pill--bl { transform: translate(-6px,  6px); }
.bey-svc:hover .bey-svc__pill--br { transform: translate( 6px,  6px); }
.bey-svc:hover .bey-svc__pill--ml { transform: translate(-6px, -50%); }
.bey-svc:hover .bey-svc__pill--mr { transform: translate( 6px, -50%); }

/* CTA chip */
.bey-svc__cta {
  position: absolute;
  top: clamp(28px, 3.4vw, 44px);
  right: clamp(28px, 3.4vw, 44px);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bey-ink);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  text-decoration: none;
  z-index: 3;
  transition: transform 0.4s cubic-bezier(0.2,0.7,0.2,1), background-color 0.3s ease;
}
.bey-svc--deep .bey-svc__cta,
.bey-svc--blue .bey-svc__cta {
  background: #fff;
  color: var(--bey-ink);
}
.bey-svc:hover .bey-svc__cta { transform: rotate(45deg) scale(1.08); }

@media (max-width: 991px) {
  .bey-services-grid { grid-template-columns: 1fr; }
  .bey-services-grid .bey-svc--wide { grid-column: auto; }
  .bey-svc { min-height: 480px; }
  .bey-svc__title { font-size: clamp(1.6rem, 7vw, 2.4rem); max-width: 100%; }
  .bey-svc__desc { max-width: 100%; }
}
@media (max-width: 540px) {
  .bey-svc { min-height: 420px; padding: 24px; border-radius: 22px; }
  .bey-svc__cta { width: 44px; height: 44px; top: 20px; right: 20px; }
  .bey-svc__pill { padding: 8px 12px; font-size: 0.75rem; }
}

/* ============================================================
   FONT-SIZE NORMALIZATION (PERMANENT FIX)
   ------------------------------------------------------------
   The base template sets `html { font-size: 62.5% }` so 1rem
   = 10px. Every clamp/rem value above was authored assuming
   1rem = 16px, so they render at ~62.5% of intended size.
   This block restates the typography in absolute pixels so it
   matches the design regardless of root font-size. Use !important
   to win against the earlier same-selector rules without
   rewriting the whole file.
   ============================================================ */

/* Hero — caption ("A storytelling studio disguised as a branding agency") */
.beyond-hero-light .hero-03-headline__caption {
  font-size: clamp(28px, 4.2vw, 64px) !important;
  line-height: 1.1 !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  position: relative;
  z-index: 5;
}
@media (min-width: 1200px) {
  .beyond-hero-light .hero-03-headline__caption {
    font-size: clamp(40px, 4.4vw, 72px) !important;
  }
}

/* Hero tagline — left-aligned headline block, multi-line.
   Sits above the big wordmark. No animation, single solid color. */
.bey-hero-tagline {
  display: block;
  margin: 0 auto 36px !important;
  padding: 0 !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  text-align: center;
  font-family: inherit;
  font-size: clamp(14px, 2vw, 28px) !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.02em !important;
  color: var(--bey-ink) !important;
  -webkit-text-fill-color: var(--bey-ink) !important;
  position: relative;
  z-index: 5;
  max-width: none;
  width: max-content;
  white-space: nowrap;
}
.bey-hero-tagline br { display: none; }
[color-scheme="dark"] .bey-hero-tagline {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
@media (max-width: 640px) {
  .bey-hero-tagline {
    font-size: clamp(11px, 3.4vw, 18px) !important;
    margin-bottom: 24px !important;
  }
}

/* Header / nav pill */
.mxd-header__nav a { font-size: 14px !important; }
.mxd-header__controls .btn { font-size: 14px !important; }
.mxd-header__controls .btn .btn-caption { font-size: 14px !important; }

/* Services hero ("Services that move brands forward.") */
.bey-services-hero__title {
  font-size: clamp(40px, 7vw, 96px) !important;
}
.bey-services-hero__intro {
  font-size: clamp(15px, 1.05vw, 18px) !important;
  line-height: 1.6 !important;
}

/* Service big cards (Brand Strategy, Visual Identity, etc.) */
.bey-svc__index    { font-size: 12px !important; letter-spacing: 0.18em !important; }
.bey-svc__title    { font-size: clamp(32px, 3.4vw, 56px) !important; line-height: 1.02 !important; }
.bey-svc__desc     { font-size: clamp(15px, 1.05vw, 18px) !important; line-height: 1.55 !important; }
.bey-svc__pill     { font-size: 14px !important; padding: 11px 18px !important; }
.bey-svc__cta i    { font-size: 18px !important; }

@media (max-width: 991px) {
  .bey-svc__title { font-size: clamp(28px, 6.5vw, 44px) !important; }
}
@media (max-width: 540px) {
  .bey-svc__pill  { font-size: 12px !important; padding: 8px 12px !important; }
  .bey-svc__title { font-size: clamp(26px, 7vw, 36px) !important; }
}

/* Bento value cards */
.bento-values__eyebrow   { font-size: 14px !important; }
.bento-values__heading   { font-size: clamp(34px, 4.2vw, 64px) !important; line-height: 1.08 !important; }
.bento-card__index       { font-size: 13px !important; }
.bento-card__title       { font-size: clamp(24px, 2.2vw, 36px) !important; line-height: 1.1 !important; }
.bento-card__text        { font-size: clamp(15px, 1.05vw, 18px) !important; line-height: 1.55 !important; }
.bento-card__tag         { font-size: 12px !important; padding: 8px 14px !important; }

@media (max-width: 767px) {
  .bento-card__title     { font-size: 26px !important; }
}

/* Principles section (rows + showcase) */
.bey-principles__eyebrow { font-size: 13px !important; }
.bey-principles__heading { font-size: clamp(28px, 3vw, 44px) !important; line-height: 1.18 !important; }
.bey-principles__sub     { font-size: 16px !important; }
.bey-principles__chip    { font-size: 11px !important; padding: 5px 11px !important; }
.bey-principles__title   { font-size: clamp(22px, 2vw, 32px) !important; }
.bey-principles__desc    { font-size: clamp(15px, 1.05vw, 18px) !important; line-height: 1.6 !important; }
.bey-principles__tags span { font-size: 11px !important; padding: 6px 12px !important; }
.bey-principles__index   { font-size: clamp(44px, 5vw, 72px) !important; -webkit-text-stroke-width: 1.5px !important; }

/* Principles showcase (tabs variant) */
.bey-showcase__wordmark  { font-size: clamp(56px, 10vw, 160px) !important; line-height: 0.9 !important; }
.bey-showcase__wordmark .bey-showcase__count { font-size: 14px !important; padding: 6px 14px !important; }
.bey-showcase__intro     { font-size: clamp(15px, 1.05vw, 18px) !important; line-height: 1.6 !important; }
.bey-showcase__media-index { font-size: clamp(64px, 7vw, 112px) !important; }
.bey-showcase__media-label { font-size: 11px !important; padding: 8px 14px !important; }
.bey-showcase__media-pager button { font-size: 16px !important; }
.bey-showcase__tab-num   { font-size: 12px !important; }
.bey-showcase__tab-title { font-size: clamp(20px, 1.6vw, 28px) !important; line-height: 1.15 !important; }
.bey-showcase__tab-desc  { font-size: 15px !important; line-height: 1.55 !important; }
.bey-showcase__tab-tags span { font-size: 11px !important; padding: 5px 10px !important; }
.bey-showcase__tab-arrow { font-size: 14px !important; }

@media (max-width: 540px) {
  .bey-showcase__media-index { font-size: 56px !important; }
  .bey-showcase__tab-title   { font-size: 17px !important; }
}

/* Services ledger (kept for safety even though hidden) */
.bey-services-ledger__eyebrow  { font-size: 13px !important; }
.bey-services-ledger__heading  { font-size: clamp(28px, 3vw, 44px) !important; }
.bey-services-ledger__title    { font-size: clamp(20px, 1.7vw, 28px) !important; }
.bey-services-ledger__desc     { font-size: clamp(15px, 1.05vw, 18px) !important; line-height: 1.55 !important; }
.bey-services-ledger__cta      { font-size: 13px !important; }

/* Value cards (legacy mxd-value-cards) */
.mxd-value-cards__title { font-size: clamp(26px, 2.2vw, 34px) !important; }
.mxd-value-cards__text  { font-size: 16px !important; line-height: 1.55 !important; }
.bento-values__dot      { width: 8px; height: 8px; }


/* ============================================================
   HEADER LOGO — uses the actual Beyond brand mark
   The source PNG (Beyond - Logo copy.png) is a wide canvas
   (~16:9) with the "B" mark + "Beyond" wordmark grouped in
   the center and large empty margins on every side. We use
   the image as a background and size it 4x larger than the
   visible pill so the centered mark fills the window cleanly.
   ============================================================ */
.mxd-logo {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0 !important;
  text-decoration: none !important;
  color: inherit !important;
  line-height: 1 !important;
}
.mxd-header__logo {
  display: inline-flex;
  align-items: center;
  height: 44px;
  margin-right: 8px;
}
.mxd-header__logo a {
  display: inline-flex;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 10px;
  background-image: url("../img/beyond-logo-full.png");
  background-repeat: no-repeat;
  /* Source PNG 5440x3060. The "B" brand mark itself sits at
     x:2128..3312, y:736..2112 (size 1184x1376). We render the full
     PNG large enough that the B mark fits 44px tall, then position
     so its top-left lands at (3, 0) in our 44x44 pill (centered). */
  background-size: 174px 98px;
  background-position: -65px -24px;
  transition: background-size 0.6s cubic-bezier(0.2,0.7,0.2,1),
              background-position 0.6s cubic-bezier(0.2,0.7,0.2,1),
              filter 0.4s ease,
              transform 0.55s cubic-bezier(0.2,0.7,0.2,1);
  filter: drop-shadow(0 6px 14px rgba(255, 47, 94, 0.20));
}
.mxd-logo:hover a {
  background-size: 195px 110px;
  background-position: -73px -27px;
  transform: rotate(-4deg);
  filter: drop-shadow(0 10px 24px rgba(255, 47, 94, 0.45));
}
/* Hide the inline <img> — we render via background so we can crop precisely */
.mxd-header .mxd-logo__img { display: none !important; }

@media (max-width: 540px) {
  .mxd-header__logo { height: 38px; margin-right: 6px; }
  .mxd-header__logo a {
    width: 38px;
    height: 38px;
    background-size: 174px 98px;
    background-position: -66px -24px;
  }
  .mxd-logo:hover a {
    background-size: 192px 108px;
    background-position: -73px -26px;
  }
}

/* ============================================================
   HEADER — refined alignment + sticky scroll behaviour
   ============================================================ */
.mxd-header {
  gap: 16px !important;
  padding: 8px 8px 8px 14px !important;
  min-height: 56px;
}
.mxd-header.is-scrolled {
  top: 12px !important;
  background: rgba(14, 14, 18, 0.78) !important;
  border-color: rgba(255,255,255,0.10) !important;
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}
[color-scheme="light"] .mxd-header.is-scrolled {
  background: rgba(255, 255, 255, 0.88) !important;
  border-color: rgba(22,22,22,0.10) !important;
  box-shadow: 0 18px 50px rgba(22, 22, 22, 0.16) !important;
}
.mxd-header__nav {
  gap: 26px !important;
}


/* ============================================================
   SERVICES — interactive expanding stack (new home block)
   ============================================================ */
.bey-services-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px !important;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 28px;
  color: rgba(255,255,255,0.55);
}
.bey-services-hero__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--bey-pink);
  box-shadow: 0 0 0 4px rgba(255, 47, 94, 0.18);
  animation: bey-pulse 2.4s ease-in-out infinite;
}
[color-scheme="light"] .bey-services-hero__eyebrow { color: rgba(22,22,22,0.55); }
@keyframes bey-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255, 47, 94, 0.18); }
  50%      { box-shadow: 0 0 0 10px rgba(255, 47, 94, 0.04); }
}

.bey-services-hero__header {
  align-items: flex-end !important;
  flex-direction: column;
  align-items: flex-start !important;
  margin-bottom: clamp(40px, 5vw, 80px) !important;
}
.bey-services-hero__header .bey-services-hero__intro {
  margin-top: 18px;
  max-width: 540px !important;
}

.bey-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  isolation: isolate;
}
.bey-stack__panel {
  --pad-y: clamp(26px, 2.6vw, 40px);
  position: relative;
  display: grid;
  grid-template-columns: 80px 1fr 1.1fr auto;
  align-items: center;
  gap: 28px;
  padding: var(--pad-y) clamp(24px, 3vw, 44px);
  border-radius: 22px;
  background: rgba(22, 22, 28, 0.55);
  border: 1px solid rgba(255,255,255,0.06);
  text-decoration: none;
  color: #fff;
  overflow: hidden;
  cursor: pointer;
  transition:
    background-color 0.6s cubic-bezier(0.2,0.7,0.2,1),
    border-color 0.6s ease,
    transform 0.6s cubic-bezier(0.2,0.7,0.2,1);
}
[color-scheme="light"] .bey-stack__panel {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(22,22,22,0.08);
  color: var(--bey-ink);
  box-shadow: 0 8px 24px rgba(22,22,22,0.04);
}
.bey-stack__panel::before {
  /* the accent fill that grows in from the left on hover */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-soft) 100%);
  transform: translateX(-101%);
  transition: transform 0.7s cubic-bezier(0.7, 0, 0.2, 1);
  z-index: 0;
}
.bey-stack__panel::after {
  /* subtle accent bar on the left */
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 28px;
  background: var(--accent);
  border-radius: 0 4px 4px 0;
  transition: height 0.5s ease, opacity 0.4s ease;
}
.bey-stack__panel > * { position: relative; z-index: 1; }

.bey-stack__panel:hover { transform: translateY(-2px); }
.bey-stack__panel:hover::before { transform: translateX(0); }
.bey-stack__panel:hover::after { height: 100%; opacity: 0; }
.bey-stack__panel:hover { color: #fff !important; border-color: transparent; }

.bey-stack__num {
  font-family: Helvetica, Arial, sans-serif;
  font-size: clamp(28px, 2.6vw, 40px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--accent);
  transition: color 0.45s ease, transform 0.45s ease;
}
.bey-stack__panel:hover .bey-stack__num {
  color: rgba(255,255,255,0.95);
  transform: translateX(-4px);
}

.bey-stack__head {
  display: flex;
  align-items: center;
  gap: 18px;
}
.bey-stack__title {
  font-family: Helvetica, Arial, sans-serif;
  font-size: clamp(24px, 2.2vw, 38px) !important;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0;
  color: inherit;
}
.bey-stack__title em {
  font-style: normal;
  font-weight: 700;
  color: var(--accent);
  transition: color 0.45s ease;
}
.bey-stack__panel:hover .bey-stack__title em { color: rgba(255,255,255,0.85); }

.bey-stack__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 520px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease 0.05s, transform 0.5s cubic-bezier(0.2,0.7,0.2,1) 0.05s;
}
.bey-stack__panel:hover .bey-stack__body { opacity: 1; transform: translateY(0); }

.bey-stack__desc {
  font-size: 15px !important;
  line-height: 1.55;
  color: rgba(255,255,255,0.92);
  margin: 0;
}
.bey-stack__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.bey-stack__tags li {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(255,255,255,0.18);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(4px);
}

.bey-stack__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: inherit;
  border: 1px solid rgba(255,255,255,0.10);
  font-size: 18px;
  transition: transform 0.45s cubic-bezier(0.2,0.7,0.2,1),
              background-color 0.4s ease,
              border-color 0.4s ease,
              color 0.4s ease;
  flex-shrink: 0;
}
[color-scheme="light"] .bey-stack__arrow {
  background: rgba(22,22,22,0.04);
  border-color: rgba(22,22,22,0.10);
}
.bey-stack__panel:hover .bey-stack__arrow {
  background: #fff;
  color: var(--accent);
  transform: rotate(45deg);
  border-color: #fff;
}

.bey-stack__art {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translate(20%, -50%) rotate(-6deg);
  width: clamp(160px, 18vw, 280px);
  aspect-ratio: 1 / 1;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: transform 0.7s cubic-bezier(0.2,0.7,0.2,1),
              opacity 0.5s ease;
  filter: drop-shadow(0 24px 50px rgba(0,0,0,0.30));
}
.bey-stack__art img {
  width: 100%; height: 100%;
  object-fit: contain;
}
.bey-stack__panel:hover .bey-stack__art {
  opacity: 1;
  transform: translate(-10%, -50%) rotate(4deg);
}

/* When light theme, hover panel should keep dark text on bright accents */
[color-scheme="light"] .bey-stack__panel:hover { color: var(--bey-ink) !important; }
[color-scheme="light"] .bey-stack__panel:hover .bey-stack__num { color: rgba(0,0,0,0.85); }
[color-scheme="light"] .bey-stack__panel:hover .bey-stack__title em { color: rgba(0,0,0,0.75); }
[color-scheme="light"] .bey-stack__panel:hover .bey-stack__desc { color: rgba(0,0,0,0.85); }
[color-scheme="light"] .bey-stack__panel:hover .bey-stack__tags li {
  background: rgba(0,0,0,0.10);
  color: var(--bey-ink);
  border-color: rgba(0,0,0,0.14);
}
[color-scheme="light"] .bey-stack__panel:hover .bey-stack__arrow { color: var(--accent); }

/* Cursor preview (desktop only, only on hover of stack) */
.bey-stack__cursor {
  position: fixed;
  top: 0; left: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  color: var(--bey-ink);
  font-size: 13px;
  font-weight: 600;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.2,0.7,0.2,1);
  z-index: 999;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.bey-stack__cursor.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.bey-stack__cursor i { font-size: 14px; }

@media (max-width: 991px) {
  /* On mobile: always show body, arrow stays simple, drop image to corner */
  .bey-stack__panel {
    grid-template-columns: 56px 1fr auto;
    grid-template-areas:
      "num head arrow"
      ".   body body";
    gap: 16px 18px;
    padding: 22px;
  }
  .bey-stack__num   { grid-area: num; font-size: 26px; }
  .bey-stack__head  { grid-area: head; gap: 0; }
  .bey-stack__body  { grid-area: body; opacity: 1; transform: none; max-width: 100%; }
  .bey-stack__arrow { grid-area: arrow; width: 38px; height: 38px; font-size: 16px; }
  .bey-stack__art   { display: none; }
  .bey-stack__title { font-size: 22px !important; }
  .bey-stack__desc  { font-size: 14px !important; }
  .bey-stack__cursor { display: none; }
}


/* Smooth fade-in for scroll-reveal sections (works alongside existing GSAP anims) */
.bey-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.2,0.7,0.2,1),
              transform 0.9s cubic-bezier(0.2,0.7,0.2,1);
}
.bey-reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ===========================================================
   Beyond — Hero Orbit (reference layout)
   Free-floating images arranged on a circle that rotates
   continuously. Headline anchored bottom-left, scroll cue
   bottom-right, small mark bottom-center.
   =========================================================== */
.bey-hero-orbit {
  position: relative;
  background: var(--bey-white);
  color: var(--bey-ink);
  overflow: hidden;
  isolation: isolate;
}
.bey-hero-orbit__inner {
  position: relative;
  width: 100%;
  height: clamp(640px, 92vh, 920px);
  padding: 0 clamp(24px, 5vw, 72px) clamp(28px, 4vw, 56px);
  display: block;
}

/* -------- Rotating ring of images -------- */
.bey-hero-orbit__ring {
  position: absolute;
  /* Centered horizontally; pulled up slightly so headline has room below */
  left: 50%;
  top: 50%;
  transform: translate(-50%, -52%);
  width: clamp(520px, 64vw, 880px);
  aspect-ratio: 1 / 1;
  /* ring itself is a passthrough; individual images opt back in for hover */
  pointer-events: none;
  z-index: 1;
}
.bey-hero-orbit__rotor {
  position: absolute;
  inset: 0;
  animation: bey-orbit-spin 42s linear infinite;
  transform-origin: 50% 50%;
  will-change: transform;
}
@keyframes bey-orbit-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .bey-hero-orbit__rotor { animation: none; }
}

/* Each image is positioned at the center of the rotor, then pushed
   outward along its own angle on the orbit radius. The image itself
   counter-rotates so it stays upright as the rotor spins. */
.bey-hero-orbit__img {
  --orbit-r: clamp(220px, 28vw, 380px);   /* absolute radius from center */
  --orbit-step: 51.4286deg;               /* 360 / 7 images */
  --orbit-angle: calc(var(--i) * var(--orbit-step));
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(170px, 22vw, 280px);
  aspect-ratio: 1 / 1;
  margin: calc(clamp(170px, 22vw, 280px) * -0.5) 0 0 calc(clamp(170px, 22vw, 280px) * -0.5);
  transform:
    rotate(var(--orbit-angle))
    translateY(calc(-1 * var(--orbit-r)));
  will-change: transform;
  /* re-enable hover on the artwork */
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.45s cubic-bezier(.2,.7,.2,1);
}

/* Counter-rotation keeps each image visually upright as the rotor spins.
   The keyframe is parameterised by --orbit-angle so the image starts at
   its own static angle offset and ends exactly one full turn later —
   this is what makes the loop seamless (no jump at the 0%/100% boundary). */
.bey-hero-orbit__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: transparent;
  animation: bey-orbit-counter 42s linear infinite;
  transform: rotate(calc(-1 * var(--orbit-angle)));
  will-change: transform;
  transform-origin: center;
  transition: filter 0.35s ease;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.18));
}
@keyframes bey-orbit-counter {
  from { transform: rotate(calc(-1 * var(--orbit-angle))); }
  to   { transform: rotate(calc(-1 * var(--orbit-angle) - 360deg)); }
}
@media (prefers-reduced-motion: reduce) {
  .bey-hero-orbit__img img { animation: none; }
}

/* Hover wiggle — rotation never stops. The wrapper still travels around the
   orbit (the rotor is its parent), and on hover the wrapper scales up while
   the inner image plays a continuous wiggle. */
.bey-hero-orbit__img:hover {
  transform:
    rotate(var(--orbit-angle))
    translateY(calc(-1 * var(--orbit-r)))
    scale(1.18);
  z-index: 2;
}
.bey-hero-orbit__img:hover img {
  filter: drop-shadow(0 16px 32px rgba(0,0,0,0.32));
  animation:
    bey-orbit-counter 42s linear infinite,
    bey-orbit-wiggle 0.9s ease-in-out infinite;
}
@keyframes bey-orbit-wiggle {
  0%, 100% { rotate: -6deg; }
  50%      { rotate:  6deg; }
}

/* -------- Top-left brand wordmark -------- */
.bey-hero-orbit__brand {
  position: absolute;
  left: clamp(24px, 5vw, 72px);
  top: clamp(24px, 4vw, 48px);
  z-index: 3;
  margin: 0;
  font-size: clamp(12px, 1vw, 14px);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.72;
}

/* -------- Bottom-left headline -------- */
.bey-hero-orbit__title {
  position: absolute;
  left: clamp(24px, 5vw, 72px);
  bottom: clamp(48px, 7vw, 88px);
  z-index: 3;
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.02;
  font-size: clamp(32px, 4.2vw, 64px);
  max-width: min(48vw, 640px);
}
.bey-hero-orbit__title > span {
  display: block;
}
.bey-hero-orbit__title--accent {
  opacity: 0.5;
}

/* -------- Bottom-right scroll cue -------- */
.bey-hero-orbit__scroll {
  position: absolute;
  right: clamp(24px, 5vw, 72px);
  bottom: clamp(28px, 4vw, 48px);
  z-index: 3;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.7;
}

/* -------- Bottom-center small mark -------- */
.bey-hero-orbit__mark {
  position: absolute;
  left: 50%;
  bottom: clamp(20px, 3vw, 32px);
  transform: translateX(-50%);
  z-index: 3;
  font-size: 11px;
  letter-spacing: 0.18em;
  opacity: 0.55;
}

/* Video divider wrap */
.bey-hero-orbit__divider-wrap {
  padding-top: clamp(24px, 4vw, 48px);
}

/* -------- Responsive -------- */
@media (max-width: 980px) {
  .bey-hero-orbit__ring {
    width: clamp(420px, 84vw, 680px);
    transform: translate(-50%, -54%);
  }
  .bey-hero-orbit__img {
    width: clamp(140px, 24vw, 220px);
    --orbit-r: clamp(170px, 32vw, 290px);
    margin: calc(clamp(140px, 24vw, 220px) * -0.5) 0 0 calc(clamp(140px, 24vw, 220px) * -0.5);
  }
  .bey-hero-orbit__img:hover {
    transform:
      rotate(var(--orbit-angle))
      translateY(calc(-1 * var(--orbit-r)))
      scale(1.14);
  }
}
@media (max-width: 980px) {
  .bey-hero-orbit__title {
    font-size: clamp(28px, 5.4vw, 52px);
    max-width: min(70vw, 520px);
  }
}
@media (max-width: 640px) {
  .bey-hero-orbit__inner { height: clamp(560px, 86vh, 760px); }
  .bey-hero-orbit__ring {
    width: 86vw;
    transform: translate(-50%, -56%);
  }
  .bey-hero-orbit__img {
    width: clamp(120px, 30vw, 180px);
    --orbit-r: clamp(130px, 36vw, 230px);
    margin: calc(clamp(120px, 30vw, 180px) * -0.5) 0 0 calc(clamp(120px, 30vw, 180px) * -0.5);
  }
  .bey-hero-orbit__img:hover {
    transform:
      rotate(var(--orbit-angle))
      translateY(calc(-1 * var(--orbit-r)))
      scale(1.12);
  }
  .bey-hero-orbit__title {
    font-size: clamp(26px, 7.2vw, 42px);
    max-width: 84vw;
    line-height: 1.08;
  }
  .bey-hero-orbit__scroll { display: none; }
}

/* Visually-hidden helper (kept for the off-screen swap word driver) */
.bey-hero-orbit .sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}


/* ===========================================================
   Beyond — Services Flow (timeline-style What-we-do layout)
   =========================================================== */
.bey-flow {
  position: relative;
  padding: clamp(20px, 4vw, 48px) 0 0;
}
.bey-flow__header {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 64px);
  align-items: end;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.bey-flow__eyebrow {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.85;
}
.bey-flow__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--bey-pink);
  box-shadow: 0 0 0 4px rgba(255, 47, 94, 0.18);
}
.bey-flow__title {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.98;
  font-size: clamp(40px, 5.6vw, 88px);
}
.bey-flow__title em {
  font-style: italic;
  color: var(--bey-pink);
}
.bey-flow__intro {
  margin: 0;
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.55;
  max-width: 38ch;
  opacity: 0.78;
  justify-self: end;
}

/* List */
.bey-flow__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.bey-flow__item {
  position: relative;
  border-top: 1px solid rgba(0, 0, 0, 0.10);
}
.bey-flow__item:last-child {
  border-bottom: 1px solid rgba(0, 0, 0, 0.10);
}
.bey-flow__row {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) clamp(240px, 26vw, 360px);
  gap: clamp(20px, 3vw, 48px);
  align-items: center;
  padding: clamp(32px, 4vw, 56px) 0;
  color: inherit;
  text-decoration: none;
  transition: padding-left 0.4s ease;
}
.bey-flow__row:hover {
  padding-left: clamp(8px, 1.2vw, 16px);
}

/* Left vertical rail */
.bey-flow__rail {
  position: relative;
  width: 4px;
  height: 100%;
  min-height: 80px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.10);
  overflow: hidden;
  justify-self: start;
}
.bey-flow__rail::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 0.55s cubic-bezier(.2,.7,.2,1);
}
.bey-flow__row:hover .bey-flow__rail::before {
  transform: scaleY(1);
}

/* Body (text column) */
.bey-flow__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.bey-flow__head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
}
.bey-flow__num {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  opacity: 0.55;
  font-feature-settings: "tnum" 1;
}
.bey-flow__name {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.05;
  font-size: clamp(26px, 3vw, 44px);
  transition: color 0.35s ease;
}
.bey-flow__name em {
  font-style: italic;
  color: var(--accent);
}
.bey-flow__row:hover .bey-flow__name {
  color: var(--accent);
}
.bey-flow__desc {
  margin: 0;
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.55;
  max-width: 60ch;
  opacity: 0.78;
}
.bey-flow__tags {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.bey-flow__tags li {
  font-size: 13px;
  letter-spacing: 0.01em;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  color: rgba(0, 0, 0, 0.78);
  background: transparent;
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}
.bey-flow__row:hover .bey-flow__tags li {
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
}

/* Right thumb image */
.bey-flow__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.05);
  justify-self: end;
}
.bey-flow__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(.2,.7,.2,1);
  image-rendering: auto;
  -ms-interpolation-mode: bicubic;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.bey-flow__row:hover .bey-flow__thumb img {
  transform: scale(1.04);
}
.bey-flow__arrow {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.55);
  color: #fff;
  font-size: 16px;
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: translate(6px, -6px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
}
.bey-flow__row:hover .bey-flow__arrow {
  opacity: 1;
  transform: translate(0, 0);
  background: var(--accent);
}

/* Foot row */
.bey-flow__foot {
  margin-top: clamp(32px, 3.6vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.bey-flow__foot p {
  margin: 0;
  font-size: 15px;
  opacity: 0.78;
}
.bey-flow__all {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--bey-ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 12px 30px rgba(22, 22, 22, 0.18);
}
.bey-flow__all:hover {
  transform: translateY(-2px);
  background: var(--bey-pink);
  color: #fff;
}

/* Reveal animations for bey-reveal hook (used by IntersectionObserver) */
.js-reveal-ready .bey-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.7,.2,1);
}
.js-reveal-ready .bey-reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive flow */
@media (max-width: 960px) {
  .bey-flow__row {
    grid-template-columns: 4px minmax(0, 1fr) clamp(140px, 28vw, 200px);
    gap: clamp(16px, 2.5vw, 32px);
    padding: clamp(24px, 4vw, 40px) 0;
  }
  .bey-flow__name { font-size: clamp(22px, 3.4vw, 32px); }
}
@media (max-width: 720px) {
  .bey-flow__header {
    grid-template-columns: 1fr;
  }
  .bey-flow__intro { justify-self: start; }
  .bey-flow__row {
    grid-template-columns: 4px minmax(0, 1fr);
    gap: 16px;
  }
  .bey-flow__thumb {
    grid-column: 1 / -1;
    margin-top: 8px;
    aspect-ratio: 16 / 9;
  }
  .bey-flow__arrow { opacity: 1; transform: none; }
  .bey-flow__rail::before { transform: scaleY(1); }
}

/* ===========================================================
   HERO — eyebrow chip + scrolling marquee + bold wordmark +
   CTA pair + meta strip + animated aura background.
   Goal: a hero with presence, not a quiet stack.
   =========================================================== */

/* No spin on the hero — only horizontal scroll + gentle bob */
.mxd-hero-03 .mxd-rotate,
.mxd-hero-03 .mxd-rotate-slow {
  animation: none !important;
  transform: none !important;
}

/* Section frame — relative so the decorative aura can absolute-fill it */
.mxd-hero-section {
  position: relative;
  padding-top: 6.4rem !important;
  overflow: hidden;
}
@media only screen and (min-width: 768px) {
  .mxd-hero-section {
    padding-top: 7rem !important;
  }
}
.mxd-hero-03 {
  position: relative;
  z-index: 2;
}

/* Collapse the full-viewport top to its content height */
.mxd-hero-03__top {
  height: auto !important;
  min-height: 0 !important;
  padding-top: clamp(8px, 1.5vw, 24px) !important;
  padding-bottom: clamp(28px, 3vw, 56px) !important;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: relative;
  z-index: 2;
}

/* ----- Decorative aura: drifting blobs + sparkles ----- */
.bey-hero-aura {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.bey-hero-aura__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  will-change: transform;
  mix-blend-mode: multiply;
}
.bey-hero-aura__blob--pink {
  width: 460px; height: 460px;
  top: -120px; left: -120px;
  background: radial-gradient(circle, rgba(255, 47, 94, 0.55), transparent 70%);
  animation: bey-aura-drift-a 18s ease-in-out infinite alternate;
}
.bey-hero-aura__blob--orange {
  width: 520px; height: 520px;
  top: 8%; right: -160px;
  background: radial-gradient(circle, rgba(242, 161, 36, 0.5), transparent 70%);
  animation: bey-aura-drift-b 22s ease-in-out infinite alternate;
}
.bey-hero-aura__blob--blue {
  width: 620px; height: 620px;
  bottom: -200px; left: 30%;
  background: radial-gradient(circle, rgba(22, 104, 220, 0.38), transparent 70%);
  animation: bey-aura-drift-c 26s ease-in-out infinite alternate;
}

@keyframes bey-aura-drift-a {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(8%, 6%, 0) scale(1.08); }
}
@keyframes bey-aura-drift-b {
  from { transform: translate3d(2%, 0, 0) scale(1.02); }
  to   { transform: translate3d(-8%, 5%, 0) scale(0.95); }
}
@keyframes bey-aura-drift-c {
  from { transform: translate3d(-4%, 2%, 0) scale(1); }
  to   { transform: translate3d(6%, -4%, 0) scale(1.1); }
}

.bey-hero-aura__sparkle {
  position: absolute;
  width: 22px;
  height: 22px;
  opacity: 0.45;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.08));
  animation: bey-sparkle-twinkle 3.4s ease-in-out infinite;
}
.bey-hero-aura__sparkle--a { top: 14%;  left: 11%;  color: var(--bey-pink);   width: 16px; height: 16px; animation-delay: 0s; }
.bey-hero-aura__sparkle--b { top: 22%;  right: 9%;  color: var(--bey-orange); width: 26px; height: 26px; animation-delay: 0.7s; }
.bey-hero-aura__sparkle--c { bottom: 22%; left: 18%; color: var(--bey-blue);  width: 18px; height: 18px; animation-delay: 1.4s; }

@keyframes bey-sparkle-twinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.85) rotate(0deg); }
  50%      { opacity: 0.65; transform: scale(1.15) rotate(45deg); }
}

/* ----- Eyebrow chip ----- */
.bey-hero-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 auto 28px;
  padding: 0 16px;
}
.bey-hero-eyebrow__pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(22, 22, 22, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--bey-ink);
  box-shadow: 0 2px 14px rgba(22, 22, 22, 0.05);
}
.bey-hero-eyebrow__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bey-pink);
  box-shadow: 0 0 0 0 rgba(255, 47, 94, 0.5);
  animation: bey-eyebrow-pulse 2s ease-out infinite;
}
@keyframes bey-eyebrow-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(255, 47, 94, 0.55); }
  70%  { box-shadow: 0 0 0 12px rgba(255, 47, 94, 0); }
  100% { box-shadow: 0 0 0 0   rgba(255, 47, 94, 0); }
}
.bey-hero-eyebrow__sep {
  width: 22px;
  height: 1px;
  background: rgba(22, 22, 22, 0.18);
}
.bey-hero-eyebrow__line {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(22, 22, 22, 0.62);
  font-style: italic;
}
@media (max-width: 540px) {
  .bey-hero-eyebrow__sep { display: none; }
}

/* ----- Marquee — keep GSAP scroll, soften edges with fade mask ----- */
.mxd-hero-03__marquee {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

/* Hover lift + tilt on each marquee image */
.mxd-hero-03 .hero-03-marquee__image {
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1),
              filter 0.5s ease;
  will-change: transform;
}
.mxd-hero-03 .hero-03-marquee__image::after {
  /* soft floor shadow that intensifies on hover */
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 4%;
  height: 18px;
  background: radial-gradient(ellipse at center, rgba(22, 22, 22, 0.18), transparent 70%);
  filter: blur(8px);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
  z-index: -1;
}
.mxd-hero-03 .hero-03-marquee__image img {
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1),
              filter 0.5s ease;
}
.mxd-hero-03 .hero-03-marquee__image:hover {
  transform: translateY(-14px);
}
.mxd-hero-03 .hero-03-marquee__image:hover::after {
  opacity: 1;
  transform: scale(1.1);
}
.mxd-hero-03 .hero-03-marquee__image:hover img {
  animation-play-state: paused;
  transform: scale(1.08) rotate(-2deg);
  filter: drop-shadow(0 22px 32px rgba(22, 22, 22, 0.22));
}

/* ----- Headline area: tagline → wordmark → CTA → meta ----- */
.mxd-hero-03__headline {
  position: relative !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  width: 100%;
  max-width: 1600px;
  margin: clamp(20px, 3vw, 40px) auto 0 !important;
  padding: 0 clamp(16px, 4vw, 56px) !important;
  mix-blend-mode: normal !important;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(18px, 2.2vw, 28px);
}

/* Tagline — center, single line, with gradient-marked keywords */
.mxd-hero-03__headline .bey-hero-tagline {
  margin: 0 auto !important;
  text-align: center;
  max-width: 96vw;
  width: max-content !important;
  font-size: clamp(14px, 2.2vw, 34px) !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
}
.mxd-hero-03__headline .bey-hero-tagline br { display: none !important; }
@media (max-width: 640px) {
  .mxd-hero-03__headline .bey-hero-tagline {
    font-size: clamp(11px, 3.2vw, 18px) !important;
  }
}
.bey-tagline-mark {
  font-style: italic;
  background: linear-gradient(110deg, var(--bey-pink) 0%, var(--bey-orange) 55%, var(--bey-blue) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  position: relative;
  animation: bey-mark-flow 7s linear infinite;
}
@keyframes bey-mark-flow {
  from { background-position: 0% 50%; }
  to   { background-position: 200% 50%; }
}
.bey-tagline-mark::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -0.08em;
  height: 3px;
  background: linear-gradient(90deg, var(--bey-pink), var(--bey-orange), var(--bey-blue));
  border-radius: 4px;
  opacity: 0.35;
  transform: scaleX(0.92);
  transform-origin: left;
}

/* Wordmark — HTML version with ink fill + outline echo behind it.
   Hides the legacy SVG renderers from the template. */
.bey-hero-wordmark { margin: 0 auto; position: relative; }
.bey-hero-wordmark .hero-03-headline__svg,
.bey-hero-wordmark .hero-03-headline__svg-mobile { display: none !important; }
.bey-hero-wordmark__text,
.bey-hero-wordmark__echo {
  display: block;
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.92;
  font-size: clamp(56px, 13vw, 220px);
  text-align: center;
  white-space: nowrap;
}
.bey-hero-wordmark__text {
  position: relative;
  color: var(--bey-ink);
  background: linear-gradient(180deg, var(--bey-ink) 0%, var(--bey-ink) 60%, rgba(22, 22, 22, 0.85) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  z-index: 2;
}
.bey-hero-wordmark__text::before {
  /* moving sheen across the wordmark */
  content: "Artifex Beyond";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    transparent 30%,
    rgba(255, 47, 94, 0.55) 45%,
    rgba(242, 161, 36, 0.55) 55%,
    transparent 70%
  );
  background-size: 220% 100%;
  background-position: 200% 50%;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: bey-wordmark-sheen 5.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes bey-wordmark-sheen {
  0%   { background-position: 200% 50%; }
  60%  { background-position: -50% 50%; }
  100% { background-position: -50% 50%; }
}
.bey-hero-wordmark__echo {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 1;
  color: transparent;
  -webkit-text-stroke: 1.4px rgba(22, 22, 22, 0.18);
          text-stroke: 1.4px rgba(22, 22, 22, 0.18);
  transform: translate(8px, 8px);
  pointer-events: none;
}

/* CTA pair */
.bey-hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.bey-hero-cta__primary,
.bey-hero-cta__ghost {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 24px 44px;
  border-radius: 999px;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1),
              background 0.35s ease,
              color 0.35s ease,
              box-shadow 0.35s ease;
}
.bey-hero-cta__primary {
  background: var(--bey-ink);
  color: #fff;
  box-shadow: 0 12px 30px -10px rgba(22, 22, 22, 0.4);
}
.bey-hero-cta__primary i { font-size: 1.5rem; transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
.bey-hero-cta__primary:hover {
  background: linear-gradient(120deg, var(--bey-pink), var(--bey-orange));
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -10px rgba(255, 47, 94, 0.45);
}
.bey-hero-cta__primary:hover i { transform: rotate(45deg); }
.bey-hero-cta__ghost {
  background: rgba(255, 255, 255, 0.55);
  color: var(--bey-ink);
  border: 1px solid rgba(22, 22, 22, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.bey-hero-cta__ghost:hover {
  transform: translateY(-3px);
  background: #fff;
  box-shadow: 0 12px 30px -10px rgba(22, 22, 22, 0.2);
}

/* Meta proof strip */
.bey-hero-meta {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px 30px;
}
.bey-hero-meta li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(22, 22, 22, 0.65);
}
.bey-hero-meta__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.bey-hero-meta__dot--pink   { background: var(--bey-pink); }
.bey-hero-meta__dot--orange { background: var(--bey-orange); }
.bey-hero-meta__dot--blue   { background: var(--bey-blue); }
.bey-hero-meta__dot--cream  { background: #B47A2A; }

/* Bottom divider video — give it a little breathing room */
.mxd-hero-03__bottom {
  margin-top: clamp(28px, 4vw, 56px);
  position: relative;
  z-index: 2;
}

/* ============================================================
   CREW — Team skills / talent constellation grid
   Replaces the legacy "Inspiring ideas" image marquee
   ============================================================ */
.bey-crew { display: block; position: relative; }

/* Editorial header — heading on the left, intro on the right
   (mirrors the Principles shelf so the page reads consistently) */
.bey-crew__head {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  align-items: end;
  gap: 24px 48px;
  margin-bottom: clamp(40px, 5vw, 84px);
}
.bey-crew__head-left {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.bey-crew__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(22, 22, 22, 0.55);
}
.bey-crew__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--bey-pink);
  box-shadow: 0 0 0 4px rgba(255, 47, 94, 0.18);
}
.bey-crew__heading {
  margin: 0;
  font-weight: 800;
  font-size: clamp(34px, 4.6vw, 68px);
  line-height: 1.03;
  letter-spacing: -0.02em;
  color: var(--bey-ink);
}
.bey-crew__intro {
  margin: 0 0 6px;
  font-size: clamp(15px, 1.05vw, 18px);
  line-height: 1.6;
  color: rgba(22, 22, 22, 0.62);
}

/* Self-balancing grid: complete rows sit edge-to-edge, while an
   incomplete final row centers instead of clinging to the left.
   flex-basis is computed per breakpoint via --crew-cols; the small
   -1px guards against sub-pixel rounding that would force a wrap. */
.bey-crew__grid {
  --crew-cols: 4;
  --crew-col-gap: clamp(20px, 2vw, 34px);
  --crew-row-gap: clamp(32px, 3.4vw, 56px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--crew-row-gap) var(--crew-col-gap);
}
.bey-crew__card {
  position: relative;
  margin: 0;
  flex: 0 1 calc((100% - (var(--crew-cols) - 1) * var(--crew-col-gap)) / var(--crew-cols) - 1px);
  min-width: 0;
  display: flex;
  flex-direction: column;
  cursor: default;
}

.bey-crew__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(22, 22, 22, 0.04);
  border: 1px solid rgba(22, 22, 22, 0.08);
  transition: border-color 0.4s ease, box-shadow 0.5s ease,
    transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.bey-crew__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%,
    color-mix(in srgb, var(--accent) 62%, transparent));
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
  z-index: 1;
}
.bey-crew__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.bey-crew__card:hover .bey-crew__frame {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow:
    0 26px 50px -28px color-mix(in srgb, var(--accent) 55%, transparent),
    0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent);
  transform: translateY(-6px);
}
.bey-crew__card:hover .bey-crew__frame img { transform: scale(1.06); }
.bey-crew__card:hover .bey-crew__frame::after { opacity: 0.24; }

.bey-crew__caption {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.bey-crew__title {
  margin: 0;
  /* reserve two lines so the role label lines up across a row */
  min-height: 2.36em;
  font-size: clamp(16px, 1.25vw, 21px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--bey-ink);
  transition: color 0.3s ease;
}
.bey-crew__card:hover .bey-crew__title { color: var(--accent); }
.bey-crew__role {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(22, 22, 22, 0.55);
}

/* Responsive column counts — every step divides the 10 cards
   tidily, and any leftover card centers via justify-content. */
@media (max-width: 1080px) { .bey-crew__grid { --crew-cols: 3; } }
@media (max-width: 760px)  {
  .bey-crew__head { grid-template-columns: 1fr; align-items: start; }
  .bey-crew__grid { --crew-cols: 2; }
}
@media (max-width: 460px)  {
  .bey-crew__grid { --crew-cols: 1; }
  .bey-crew__frame { aspect-ratio: 4 / 3; }
  .bey-crew__title { min-height: 0; }
}

/* Team leader short bio under name + position */
.mxd-team-cards__bio {
  margin-top: 12px;
  max-width: 38ch;
  color: rgba(22, 22, 22, 0.6);
}

/* Entrance stagger — fade-up the children of the hero on load.
   .loading__item already exists; we add a stagger via nth-of-type
   delays scoped to the hero. */
.mxd-hero-03 .loading__item {
  animation: bey-hero-rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.mxd-hero-03 .bey-hero-eyebrow.loading__item        { animation-delay: 0.05s; }
.mxd-hero-03 .mxd-hero-03__marquee.loading__item    { animation-delay: 0.2s; }
.mxd-hero-03 .bey-hero-tagline.loading__item        { animation-delay: 0.35s; }
.mxd-hero-03 .hero-03-headline__title.loading__item { animation-delay: 0.5s; }
.mxd-hero-03 .bey-hero-cta.loading__item            { animation-delay: 0.7s; }
.mxd-hero-03 .bey-hero-meta.loading__item           { animation-delay: 0.85s; }

@keyframes bey-hero-rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Mobile tightening */
@media (max-width: 640px) {
  .bey-hero-wordmark__echo { transform: translate(5px, 5px); }
  .bey-hero-meta li { font-size: 0.82rem; letter-spacing: 0.06em; }
  .bey-hero-meta { gap: 14px 20px; }
  .bey-hero-cta__primary,
  .bey-hero-cta__ghost { padding: 18px 30px; font-size: 1.12rem; }
}

@media (prefers-reduced-motion: reduce) {
  .mxd-hero-03 .mxd-move,
  .mxd-hero-03 .mxd-move-slow,
  .mxd-hero-03 .mxd-pulse,
  .mxd-hero-03 .mxd-pulse-small,
  .bey-hero-aura__blob,
  .bey-hero-aura__sparkle,
  .bey-tagline-mark,
  .bey-hero-wordmark__text::before,
  .bey-hero-eyebrow__dot,
  .mxd-hero-03 .loading__item {
    animation: none !important;
  }
}

/* ============================================================
   BEYOND — June 2026 content + layout pass
   (about images, founders photo, process icons, CTA postcard,
   services-list per-item tints, testimonial client logos)
   ============================================================ */

/* --- About page: first three story images ----------------- */
.image-values-1 { background-image: url(../img/about/about-story-01.png) !important; }
.image-values-2 { background-image: url(../img/about/about-story-02.png) !important; }
.divider-image-8 { background-image: url(../img/about/about-story-03.png) !important; }

/* --- About page: Talent Constellation header alignment ----- */
.bey-crew__head {
  align-items: end;
}
.bey-crew__head-left { justify-content: flex-end; }
.bey-crew__intro {
  align-self: end;
  margin: 0;
  max-width: 42ch;
  padding-bottom: 0.35em; /* nudge the small copy onto the heading baseline */
}

/* --- About page: shared founders (George & June) photo ----- */
.bey-leaders-photo {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto clamp(28px, 3.5vw, 52px);
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(140deg, rgba(22,22,22,0.05), rgba(22,22,22,0.01));
  border: 1px solid rgba(22,22,22,0.08);
  box-shadow: 0 30px 60px -34px rgba(0,0,0,0.35);
}
.bey-leaders-photo img {
  display: block;
  width: 100%;
  height: auto;
}

/* --- About page: process icons (origami renders) ----------- */
.mxd-approach-list__image {
  width: clamp(150px, 18vw, 260px) !important;
  height: auto !important;
}
.mxd-approach-list__image img {
  width: 100% !important;
  height: auto !important;
  border-radius: 0;            /* no card — let the render sit on the page */
  background: transparent !important;
  animation: none !important;  /* photos, not spinning glyphs */
  mix-blend-mode: multiply;    /* drop the white JPEG bg into the white page */
}
[color-scheme="dark"] .mxd-approach-list__image img { mix-blend-mode: screen; }
/* The theme dims sibling rows to opacity .2 on hover. That opacity creates a
   new stacking context which breaks the image's mix-blend-mode, so the white
   JPEG background reappears on hover. Keep every row fully opaque so the white
   always blends away into the page. */
.no-touch .mxd-approach-list:hover > .mxd-approach-list__item:not(:hover) {
  opacity: 1 !important;
}

/* --- CTA: "Let's talk about your project!" postcard -------- */
.mxd-promo__images .promo-image-2 { display: none !important; }
.mxd-promo__images img.bey-promo-postcard {
  height: auto;
  border-radius: 14px;
  box-shadow: 0 40px 80px -22px rgba(0,0,0,0.45);
  transform: rotate(-4deg);
}
/* Show the postcard a bit earlier and make it prominent */
@media only screen and (min-width: 992px) {
  .mxd-promo__images { display: flex !important; }
  .mxd-promo__images .promo-image-1.bey-promo-postcard {
    width: 460px;
    right: 3rem;
    bottom: 4rem;
  }
}
@media only screen and (min-width: 1200px) {
  .mxd-promo__images .promo-image-1.bey-promo-postcard {
    width: 600px;
    right: 3.5rem;
    bottom: 4rem;
  }
}
@media only screen and (min-width: 1600px) {
  .mxd-promo__images .promo-image-1.bey-promo-postcard {
    width: 740px;
    right: 4.5rem;
    bottom: 4.5rem;
  }
}

/* --- Services list: per-item light colour wash ------------- */
/* Each row is tinted with the dominant colour of its hover-reveal
   image so the list reads as eight distinct, branded sections. */
.mxd-services-list__item { position: relative; isolation: isolate; }
.mxd-services-list__item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg,
      color-mix(in srgb, var(--svc, #888) 16%, transparent) 0%,
      color-mix(in srgb, var(--svc, #888) 5%, transparent) 38%,
      transparent 72%);
  opacity: 0.55;
  transition: opacity 0.45s ease;
  pointer-events: none;
}
.no-touch .mxd-services-list__item:hover::before { opacity: 1; }
.mxd-services-list__item:nth-of-type(1) { --svc: #7E8A52; } /* sage  · Brand Strategy */
.mxd-services-list__item:nth-of-type(2) { --svc: #B98BA4; } /* mauve · Visual Identity */
.mxd-services-list__item:nth-of-type(3) { --svc: #3C5A7A; } /* navy  · Content Creation */
.mxd-services-list__item:nth-of-type(4) { --svc: #5A5A60; } /* graphite · Brand Collateral */
.mxd-services-list__item:nth-of-type(5) { --svc: #EB6A86; } /* coral · Social & Digital */
.mxd-services-list__item:nth-of-type(6) { --svc: #45566F; } /* slate · Packaging */
.mxd-services-list__item:nth-of-type(7) { --svc: #5E7A4A; } /* forest · Website */
.mxd-services-list__item:nth-of-type(8) { --svc: #6E4F7C; } /* plum  · Brand Experiences */

/* --- Testimonials: client logo on top, quote below -------- */
.mxd-testimonials-card__photo.bey-tcard__logo {
  width: auto;
  height: auto;
  max-width: 200px;
  border-radius: 0;
  overflow: visible;
  display: flex;
  align-items: center;
}
.mxd-testimonials-card__photo.bey-tcard__logo img {
  width: auto;
  max-width: 170px;
  height: 40px;
  object-fit: contain;
  object-position: left center;
  /* Normalise the assorted brand marks to one muted ink tone so the row
     reads as a tidy client-logo wall regardless of each SVG's own colours. */
  filter: brightness(0);
  opacity: 0.74;
}
[color-scheme="dark"] .mxd-testimonials-card__photo.bey-tcard__logo img {
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

/* --- Testimonials: let the card size to its content -------------
   The template forces 600–700px tall cards with space-between, which
   left a large blank gap once the "Project Page" button was removed.
   Size to content with a sensible minimum and tighter spacing. */
.mxd-testimonials-card {
  height: auto !important;
  min-height: 0 !important;
  justify-content: flex-start !important;
  gap: 2rem;
}
.mxd-testimonials-card__content {
  flex: 0 1 auto !important;
}
.mxd-testimonials-card__text p {
  margin-bottom: 0 !important;
}

/* --- Services page: intro hero image (replaces the stats cards) --- */
.bey-services-hero {
  width: 100%;
  border-radius: clamp(20px, 2.4vw, 36px);
  overflow: hidden;
  line-height: 0;
  box-shadow: 0 40px 90px -55px rgba(0,0,0,0.45);
}
.bey-services-hero img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===========================================================
   Clients carousel (replaces the old "What our clients say")
   Auto-driven by the theme's .swiper-testimonials init.
   =========================================================== */
.bey-clients {
  position: relative;
  padding: 0 1.5rem;
  overflow: hidden;
}
@media (min-width: 992px) {
  .bey-clients { padding: 0 3rem; }
}
.bey-clients__slider {
  position: relative;
}
/* the theme blurs all non-active testimonial slides — keep every
   client/crew card crisp instead */
.bey-client-slide,
.bey-crew__slide {
  -webkit-filter: none !important;
  filter: none !important;
}
.bey-client-slide {
  width: 340px;
  height: auto;
  display: flex;
  align-items: stretch;
}
@media (min-width: 768px)  { .bey-client-slide { width: 440px; } }
@media (min-width: 1200px) { .bey-client-slide { width: 520px; } }
/* thin divider line between each client section */
.bey-client-card {
  position: relative;
  margin: 0;
  padding-right: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.bey-client-card::after {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  right: 0;
  width: 1px;
  background: rgba(22, 22, 22, 0.16);
}
[color-scheme="dark"] .bey-client-card::after { background: rgba(255, 255, 255, 0.16); }
.bey-client-card__media {
  width: 100%;
  aspect-ratio: 5 / 4;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bey-cream);
}
.bey-client-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bey-client-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bey-client-card__name {
  margin: 0;
  font-size: 2.2rem;
  line-height: 1.15;
  font-weight: 700;
}
.bey-client-card__name span {
  font-weight: 400;
  opacity: 0.55;
}
.bey-client-card__cat {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bey-pink);
}
.bey-client-card__services {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.6;
  opacity: 0.78;
}

/* ===========================================================
   Crew / team → sliding carousel (about page)
   Auto-driven by the theme's .swiper-testimonials init.
   =========================================================== */
.bey-crew__carousel {
  position: relative;
  overflow: hidden;
}
.bey-crew__slide {
  width: 230px;
  height: auto;
  display: flex;
}
.bey-crew__slide .bey-crew__card {
  flex: 0 0 auto;
  width: 100%;
}
@media (min-width: 768px)  { .bey-crew__slide { width: 250px; } }
@media (min-width: 1200px) { .bey-crew__slide { width: 280px; } }

/* ===========================================================
   Hero showreel — full width, full (uncropped) frame.
   The default .mxd-divider forces a fixed height and crops the
   video with object-fit: cover, which made the showreel look
   cut-off / "disoriented". This shows the complete frame
   edge-to-edge at the video's natural aspect ratio.
   =========================================================== */
.mxd-divider--showreel-full {
  height: auto !important;
  border-radius: 0;
}
.mxd-divider--showreel-full .mxd-divider__video {
  height: auto !important;
}
.mxd-divider--showreel-full .mxd-divider__video video {
  position: static;
  width: 100%;
  height: auto;
  object-fit: fill;
}

/* ===========================================================
   Portfolio gallery (data-driven) — category tabs + masonry
   Used on works-masonry.html, rendered by js/portfolio-gallery.js
   =========================================================== */
.bey-pf {
  width: 100%;
}

/* ---------- category filter tabs ---------- */
.bey-pf-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.bey-pf-tab {
  appearance: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(22, 22, 22, 0.16);
  background: transparent;
  color: var(--bey-ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.bey-pf-tab:hover {
  border-color: var(--bey-ink);
  transform: translateY(-2px);
}
.bey-pf-tab.is-active {
  background: var(--bey-ink);
  border-color: var(--bey-ink);
  color: var(--bey-white);
}
.bey-pf-tab__count {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.55;
}
.bey-pf-tab.is-active .bey-pf-tab__count {
  opacity: 0.7;
}

/* ---------- active category intro ---------- */
.bey-pf-intro {
  max-width: 640px;
  margin: 0 0 36px;
}
.bey-pf-intro__title {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  margin: 0 0 12px;
  color: var(--bey-ink);
}
.bey-pf-intro__desc {
  font-size: 17px;
  line-height: 1.5;
  margin: 0;
  color: var(--bey-ink);
  opacity: 0.7;
}

/* ---------- masonry grid ----------
   True column-packed masonry: portfolio-gallery.js measures each
   rendered card and absolutely positions it in the shortest available
   column (like Pinterest), so tiles of different heights tile without
   leaving gaps — a plain CSS grid with row-span-only sizing can't
   guarantee that once items span different column/row counts.        */
.bey-pf-grid {
  position: relative;
}

.bey-pf-item {
  margin: 0;
  position: absolute;
  top: 0;
  left: 0;
  transition: left .3s ease, top .3s ease, width .3s ease;
  /* width/left/top are set inline by JS once measured */
}

.bey-pf-card {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  background: var(--bey-cream);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(22, 22, 22, 0.06);
  transition: transform .4s ease, box-shadow .4s ease;
}
.bey-pf-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  transition: transform .6s ease;
}
/* "tall accent" forces a portrait tile regardless of source ratio */
.bey-pf-item.is-tall .bey-pf-card {
  aspect-ratio: 3 / 4;
}
.bey-pf-item.is-tall .bey-pf-card img {
  height: 100%;
  object-fit: cover;
}

.bey-pf-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(22, 22, 22, 0.18);
}
.bey-pf-card:hover img {
  transform: scale(1.06);
}

/* caption overlay (heading + description) */
.bey-pf-card__cap {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px 20px 18px;
  color: var(--bey-white);
  background: linear-gradient(to top, rgba(22, 22, 22, 0.82) 0%, rgba(22, 22, 22, 0.45) 55%, rgba(22, 22, 22, 0) 100%);
  transform: translateY(12px);
  opacity: 0;
  transition: opacity .35s ease, transform .35s ease;
  pointer-events: none;
}
.bey-pf-card:hover .bey-pf-card__cap,
.bey-pf-card:focus-visible .bey-pf-card__cap {
  opacity: 1;
  transform: translateY(0);
}
.bey-pf-card__title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
}
.bey-pf-card__desc {
  font-size: 13px;
  line-height: 1.4;
  opacity: 0.85;
}

.bey-pf-empty {
  padding: 60px 0;
  text-align: center;
  font-size: 16px;
  color: var(--bey-ink);
  opacity: 0.55;
}

/* GLightbox caption polish */
.glightbox-clean .gslide-description { background: #1b1b1b; }
.glightbox-clean .gslide-title { font-size: 18px; font-weight: 700; margin-bottom: 4px; }

/* ---------- responsive ----------
   Column count / gap per breakpoint is read by portfolio-gallery.js
   (see COLUMN_BREAKPOINTS) and MUST stay in sync with the widths below. */
@media (max-width: 991px) and (min-width: 561px) {
  /* always show captions where there is no hover affordance */
  .bey-pf-card__cap {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 560px) {
  .bey-pf-card__cap {
    opacity: 1;
    transform: translateY(0);
  }
  .bey-pf-tabs {
    gap: 8px;
    margin-bottom: 28px;
  }
  .bey-pf-tab {
    padding: 8px 14px;
    font-size: 13px;
  }
}
