/* MSHL Group -Landing v3
   Editorial scroll-driven design -Lenis smooth scroll, pinned
   horizontal carousel, tilted card stack, vertical client list.
   ================================================================== */
@import url('../colors_and_type.css?v=22');

* { box-sizing: border-box; }
html { scroll-behavior: auto; } /* Lenis handles smooth scroll */
html.lenis-stopped { overflow: hidden; }
body { margin: 0; background: var(--surface-page); color: var(--fg-1); overflow-x: hidden; }

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

.container { max-width: 1320px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 920px; margin: 0 auto; padding: 0 32px; }

/* ========================================================== */
/* Buttons                                                    */
/* ========================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 13px/1 var(--font-sans); letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 16px 26px; border: 1px solid transparent; cursor: pointer;
  transition: background var(--dur-base) var(--ease-standard),
              color var(--dur-base) var(--ease-standard),
              border-color var(--dur-base) var(--ease-standard),
              transform var(--dur-fast);
  text-decoration: none; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn .ico { display: inline-flex; transition: transform var(--dur-base); }
.btn:hover .ico-arrow { transform: translateX(3px); }

.btn-primary { background: var(--fg-1); color: var(--surface-page); }
.btn-primary:hover { background: var(--accent); color: var(--fg-on-accent); }
.btn-primary-light { background: var(--surface-page); color: var(--fg-1); }
.btn-primary-light:hover { background: var(--accent); color: var(--fg-on-accent); }
.btn-outline-light { background: transparent; color: var(--surface-page); border-color: rgba(244,239,230,0.55); }
.btn-outline-light:hover { background: var(--surface-page); color: var(--fg-1); border-color: var(--surface-page); }
.btn-ghost { background: transparent; color: var(--fg-1); padding: 12px 0; }
.btn-ghost:hover { color: var(--accent); }
.btn-lg { padding: 19px 30px; font-size: 14px; }

/* ========================================================== */
/* Top Nav -divided cell bar                                 */
/* ========================================================== */
.top-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0;
  pointer-events: none;
}
.top-nav-bar {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: stretch;
  width: 100%; height: 72px;
  background: rgba(20, 35, 58, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(244,239,230,0.10);
  color: var(--surface-page);
  font-family: var(--font-display-sans);
  pointer-events: auto;
  transition: background var(--dur-base), border-color var(--dur-base), color var(--dur-base);
}
/* Light theme -nav over parchment sections (about, categories, process).
   Background fades to a parchment translucent fill; text/icons switch to ink;
   the dark (purple) variant of the logo becomes visible. */
.top-nav.nav-theme-light .top-nav-bar {
  background: rgba(244, 239, 230, 0.88);
  border-bottom: 1px solid var(--border-1);
  color: var(--fg-1);
}
.tnb-cell {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 24px;
  border-right: 1px solid rgba(244,239,230,0.10);
  color: var(--surface-page); text-decoration: none;
  font: 500 12px/1 var(--font-display-sans);
  letter-spacing: 0.14em; text-transform: uppercase;
  background: transparent; border-top: 0; border-bottom: 0; border-left: 0;
  cursor: pointer;
  transition: background var(--dur-base), color var(--dur-base), border-color var(--dur-base);
  position: relative;
}
.tnb-cell:hover { background: rgba(244,239,230,0.06); text-decoration: none; color: var(--surface-page); }
.top-nav.nav-theme-light .tnb-cell { color: var(--fg-1); border-right-color: var(--border-1); }
.top-nav.nav-theme-light .tnb-cell:hover { background: rgba(31, 27, 22, 0.05); color: var(--fg-1); }

.tnb-brand { padding: 0 28px; display: inline-flex; align-items: center; }
.tnb-brand-mark {
  font: 600 14px/1 var(--font-display-sans);
  letter-spacing: 0.10em;
  color: var(--surface-page);
}
.tnb-brand-mark sup { font-size: 0.55em; opacity: 0.7; vertical-align: super; margin-left: 1px; }

/* Real MSHL logo images -two variants stacked so the section-driven theme
   swap is instantaneous and a11y-safe (no flash of unstyled image). The white
   logo shows over dark/purple sections, the purple logo shows once the nav
   theme switches to .nav-theme-light (parchment sections). PNGs were
   tight-cropped (aspect ~2.27) so `height` controls visible content directly. */
.tnb-brand-logo {
  height: 48px;
  width: auto;
  display: block;
  user-select: none;
}
.tnb-brand-logo--dark { display: none; }
.top-nav.nav-theme-light .tnb-brand-logo--light { display: none; }
.top-nav.nav-theme-light .tnb-brand-logo--dark  { display: block; }

.tnb-status {
  gap: 10px; padding: 0 18px;
  font: 500 11px/1 var(--font-display-sans);
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(244,239,230,0.7);
}
.tnb-status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #C7E2A6;
  box-shadow: 0 0 0 0 rgba(199,226,166,0.6);
  animation: tnb-pulse 2.4s ease-out infinite;
}
@keyframes tnb-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(199,226,166,0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(199,226,166,0); }
  100% { box-shadow: 0 0 0 0 rgba(199,226,166,0); }
}
.tnb-wa { color: rgba(244,239,230,0.85); min-width: 56px; }
.tnb-wa:hover { color: #25D366; }
.top-nav.nav-theme-light .tnb-wa { color: var(--fg-2); }
.top-nav.nav-theme-light .tnb-wa:hover { color: #128C7E; }

.tnb-links {
  justify-content: flex-end;
  gap: 0; padding: 0;
  display: flex;
}
.tnb-links a {
  display: inline-flex; align-items: center;
  padding: 0 22px;
  font: 500 12px/1 var(--font-display-sans);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--surface-page); text-decoration: none;
  height: 100%;
  opacity: 0.92;
  transition: opacity var(--dur-base), background var(--dur-base), color var(--dur-base), border-color var(--dur-base);
  border-right: 1px solid rgba(244,239,230,0.10);
}
.tnb-links a:first-child { border-left: 1px solid rgba(244,239,230,0.10); }
.tnb-links a:hover { opacity: 1; background: rgba(244,239,230,0.06); text-decoration: none; }
.top-nav.nav-theme-light .tnb-links a {
  color: var(--fg-1);
  border-right-color: var(--border-1);
}
.top-nav.nav-theme-light .tnb-links a:first-child { border-left-color: var(--border-1); }
.top-nav.nav-theme-light .tnb-links a:hover { background: rgba(31, 27, 22, 0.05); }

.tnb-cta {
  background: var(--accent) !important;
  border-right: 0 !important;
  padding: 0 28px;
  gap: 12px;
  color: var(--surface-page);
  font: 600 12px/1 var(--font-display-sans);
  letter-spacing: 0.14em; text-transform: uppercase;
}
.tnb-cta:hover { background: var(--accent-hover) !important; }
.tnb-cta-arrow {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(244,239,230,0.18);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform var(--dur-base), background var(--dur-base);
}
.tnb-cta:hover .tnb-cta-arrow { transform: translateX(3px); background: rgba(244,239,230,0.28); }

.tnb-burger { display: none; }

@media (max-width: 1100px) {
  .tnb-status, .tnb-lang, .tnb-links { display: none; }
  .tnb-burger {
    display: inline-flex;
    border-right: 0 !important;
    min-width: 64px;
  }
  /* Visible cells at this breakpoint: brand, wa, cta, burger (4 cells).
     Brand takes 1fr so the right-side cells stay compact. */
  .top-nav-bar { grid-template-columns: 1fr auto auto auto; }
  .tnb-brand { justify-content: flex-start; }
  .tnb-cta { padding: 0 18px; font-size: 11px; min-width: 56px; }
  .tnb-cta span:first-child { display: none; }
}
@media (max-width: 540px) {
  .top-nav-bar { height: 60px; }
  .tnb-brand-mark { font-size: 12px; }
  .tnb-brand-logo { height: 38px; }
}

/* Mobile sheet */
.mobile-sheet {
  position: fixed; inset: 0; z-index: 200;
  background: var(--fg-1); color: var(--surface-page);
  transform: translateY(-12px); opacity: 0; pointer-events: none;
  transition: opacity var(--dur-base), transform var(--dur-base);
  padding: 0 28px 24px; display: flex; flex-direction: column;
}
.mobile-sheet.open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-sheet-head { display: flex; align-items: center; justify-content: space-between; height: 64px; padding-top: 0; }
.mobile-sheet-head .tnb-brand-mark { color: var(--surface-page); }
.mobile-sheet-head .tnb-burger { display: inline-flex; min-width: auto; padding: 0; width: 42px; height: 42px; border: 1px solid rgba(244,239,230,0.3); border-radius: 999px; }
.mobile-sheet-links { display: flex; flex-direction: column; gap: 0; margin-top: 32px; flex: 1; }
.mobile-sheet-links a {
  font-family: var(--font-serif); font-size: 36px; font-weight: 500;
  color: var(--surface-page); padding: 18px 0;
  border-bottom: 1px solid rgba(244,239,230,0.1);
  text-decoration: none; letter-spacing: -0.015em;
}
.mobile-sheet-actions { padding: 24px 0; display: flex; flex-direction: column; gap: 12px; }
.mobile-sheet-actions .btn { justify-content: center; }

/* ========================================================== */
/* Hero                                                       */
/* ========================================================== */
.hero {
  position: relative; min-height: 100vh;
  background: var(--fg-1); color: var(--surface-page);
  overflow: hidden;
  padding: 0 0 0;
  display: flex; flex-direction: column;
}
.hero-media-wrap {
  position: absolute; inset: 0; z-index: 0;
  will-change: transform;
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(15,12,10,0.65) 0%, rgba(15,12,10,0.35) 30%, rgba(15,12,10,0.55) 70%, rgba(15,12,10,0.90) 100%);
}
.hero-grain {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  opacity: 0.06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.6'/></svg>");
}
.hero-content {
  position: relative; z-index: 3;
  flex: 1; display: flex; align-items: center;
  will-change: transform, opacity;
}
.hero-centered .hero-content { justify-content: center; }
.hero-centered .hero-inner {
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  padding-top: 80px; padding-bottom: 80px;
  max-width: 880px; margin: 0 auto;
  position: relative;
}
/* Soft radial scrim behind text so words stay legible over any video frame */
.hero-scrim {
  position: absolute; inset: -10% -8%;
  z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 50% 52%, rgba(15,12,10,0.70) 0%, rgba(15,12,10,0.35) 55%, transparent 80%);
  filter: blur(8px);
}
.hero-text-wrap {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  width: 100%;
}
.hero-centered .hero-headline { max-width: 22ch; }
.hero-centered .hero-sub { margin-left: auto; margin-right: auto; }
.hero-centered .hero-actions { justify-content: center; }
.hero-inner {
  padding-top: 140px; padding-bottom: 60px;
  width: 100%;
}
.hero-eyebrow {
  display: inline-flex; align-items: baseline; gap: 14px;
  font: 500 11px/1 var(--font-display-sans);
  letter-spacing: 0.32em; text-transform: uppercase;
  color: rgba(244,239,230,0.85);
  margin-bottom: 32px;
  padding: 0;
  background: none; border: none; backdrop-filter: none;
}
.hero-eyebrow .he-text { white-space: nowrap; }
.hero-eyebrow .he-mark {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--accent);
  line-height: 1;
}
/* Legacy he-rule (decorative line) hidden -replaced by .he-mark */
.hero-eyebrow .he-rule { display: none; }
.hero-headline {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(40px, 5.6vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.022em;
  margin: 0 0 24px;
  max-width: 14ch;
  color: var(--surface-page);
}
.hero-headline .it { font-style: italic; font-weight: 400; }
.hero-sub {
  font: 400 17px/1.55 var(--font-sans);
  color: rgba(244,239,230,0.85);
  max-width: 560px; margin: 0 0 36px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

@media (max-width: 720px) {
  .hero-centered .hero-inner { padding-top: 100px; padding-bottom: 60px; }
  .hero-headline { font-size: clamp(36px, 9vw, 56px); }
  .hero-sub { font-size: 15px; }
}

/* ========================================================== */
/* Sections (shared)                                          */
/* ========================================================== */
.section { padding: 160px 0; position: relative; }
.section-cream { background: var(--surface-page); }
.section-raised { background: var(--surface-raised); }

/* Section kicker -serif italic phrase that reads as an editorial deck above
   the main headline. Replaces the standard small-uppercase-eyebrow + dash +
   number pattern. The label IS the typographic moment, not a tiny tag. */
.eyebrow {
  display: block;
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.15;
  letter-spacing: -0.005em;
  text-transform: none;
  color: var(--accent);
}
.eyebrow.muted { color: rgba(244, 239, 230, 0.92); }
.contact-prose .eyebrow { color: var(--fg-on-accent); }
.categories-head .eyebrow { text-align: center; }

/* Legacy structure (.eyebrow-num / .eyebrow-label / .dash) -hidden so that
   any uncleaned JSX is invisible while we settle on the new pattern. */
.eyebrow-num,
.eyebrow-label,
.eyebrow .dash { display: none; }

.section-head { margin-bottom: 96px; }
.section-head .eyebrow { margin-bottom: 22px; }
.section-head h2 {
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(40px, 5.6vw, 76px); line-height: 1.02;
  letter-spacing: -0.022em; margin: 0 0 24px; max-width: 16ch;
}
.section-head h2 .it { font-style: italic; font-weight: 400; }
.section-head p {
  font: 400 18px/1.55 var(--font-sans);
  color: var(--fg-2); max-width: 56ch; margin: 0;
}
.section-head-row {
  display: flex; justify-content: space-between; align-items: end;
  gap: 48px; flex-wrap: wrap;
}
@media (max-width: 720px) {
  .section { padding: 96px 0; }
  .section-head { margin-bottom: 56px; }
}

/* ========================================================== */
/* Marquee strip                                              */
/* ========================================================== */
.marquee-strip {
  position: relative; overflow: hidden;
  padding: 26px 0;
  background: var(--surface-page);
  border-top: 1px solid var(--border-1);
  border-bottom: 1px solid var(--border-1);
  color: var(--fg-1);
}
.marquee-strip.is-dark {
  background: var(--fg-1); color: var(--surface-page);
  border-color: rgba(244,239,230,0.10);
}
.marquee-strip-track {
  display: flex; align-items: center;
  width: max-content;
  animation: ms-scroll 50s linear infinite;
  white-space: nowrap;
}
@keyframes ms-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-33.333%); }
}
.ms-item {
  display: inline-flex; align-items: center; gap: 32px;
  margin-right: 32px;
  font: 500 32px/1 var(--font-serif);
  letter-spacing: -0.01em;
}
.marquee-strip.is-italic .ms-item { font-style: italic; font-weight: 400; }
@media (max-width: 720px) { .ms-item { font-size: 22px; gap: 18px; margin-right: 18px; } }
.ms-text {}
.ms-sep { opacity: 0.5; font-size: 0.7em; }

/* ========================================================== */
/* About -growing image                                      */
/* ========================================================== */
.about-split {
  display: grid; grid-template-columns: 0.95fr 1fr;
  gap: 80px; align-items: center;
}
@media (max-width: 980px) { .about-split { grid-template-columns: 1fr; gap: 56px; } }

.about-prose { }
.about-prose .eyebrow { margin-bottom: 24px; }
.about-prose h2 {
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(42px, 5.2vw, 72px); line-height: 1.02;
  letter-spacing: -0.022em; margin: 0 0 28px;
  max-width: 14ch;
}
.about-prose h2 .it { font-style: italic; font-weight: 400; }
.about-prose p { font: 400 18px/1.65 var(--font-sans); color: var(--fg-2); margin: 0; max-width: 50ch; }
.about-prose p + p { margin-top: 18px; }
.about-prose .actions { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.about-visual {
  position: relative;
  display: flex; flex-direction: column; gap: 24px;
  align-items: flex-end;
}
.about-image-wrap {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--accent);
  will-change: width, transform;
}
.about-image {
  position: absolute; inset: 0;
  background-image:
    url("media/about/about-portrait.jpg"),
    linear-gradient(135deg, #7030A0 0%, #491D6A 60%, #1F1B16 100%);
  background-size: cover, cover;
  background-position: center 35%, center;
  background-repeat: no-repeat, no-repeat;
}
/* Subtle bottom gradient so the caption pill stays legible on busy imagery */
.about-image-inner {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(31, 27, 22, 0) 55%,
    rgba(31, 27, 22, 0.45) 100%);
  pointer-events: none;
}
.about-image-caption {
  position: absolute; left: 28px; bottom: 28px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 14px 9px 12px;
  background: rgba(15,12,10,0.55); backdrop-filter: blur(10px);
  border: 1px solid rgba(244,239,230,0.18);
  border-radius: 999px;
  color: var(--surface-page);
  font: 500 11px/1 var(--font-display-sans);
  letter-spacing: 0.16em; text-transform: uppercase;
}
.about-image-caption .cap-dot {
  width: 7px; height: 7px; border-radius: 999px;
  background: #C7E2A6;
  box-shadow: 0 0 0 4px rgba(199,226,166,0.18);
}

/* ========================================================== */
/* Categories -pinned with stack + horizontal carousel       */
/* ========================================================== */
.categories {
  position: relative;
  height: 400vh; /* taller scroll → less sensitivity, smoother feel. Tightened from 460vh so the empty parchment tail after the last card is shorter and the handoff to Brands feels continuous. */
  background: var(--surface-page);
}
.categories-pin {
  position: sticky; top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex; flex-direction: column;
}

.categories-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(50% 60% at 50% 50%, var(--surface-raised) 0%, transparent 75%),
    var(--surface-page);
  pointer-events: none;
}
.categories-head {
  position: relative; z-index: 5;
  padding-top: 72px;
  text-align: center;
  pointer-events: none;
}
.categories-head .eyebrow { margin-bottom: 16px; }
.categories-title {
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(32px, 4.2vw, 56px); line-height: 1.05;
  letter-spacing: -0.020em;
  margin: 0 auto;
  max-width: 22ch;
  color: var(--fg-1);
  will-change: opacity, transform;
}
.categories-title .it { font-style: italic; font-weight: 400; }

/* Phase-1 fanned stack */
.categories-stack {
  position: absolute; inset: 0; z-index: 3;
  pointer-events: none;
}
.cat-stack-slot {
  position: absolute;
  top: 60%; left: 50%;
  will-change: transform, opacity;
}
.cat-card-sm { width: 240px; height: 320px; }

/* Horizontal carousel -cards sit below the title, never covering it */
.categories-row {
  position: absolute; left: 0; right: 0;
  top: 38%;
  height: auto;
  z-index: 4;
  display: flex; align-items: center;
  overflow: visible;
  pointer-events: auto;
}
.categories-row-track {
  display: flex; gap: 24px; align-items: stretch;
  will-change: transform;
  transition: transform 0ms linear;
}
.cat-card-row {
  flex: 0 0 auto;
  width: 320px; height: 420px;
}

/* Progress bar at bottom of pinned section */
.categories-progress {
  position: absolute; bottom: 36px; left: 6vw; right: 6vw;
  z-index: 5;
  display: flex; flex-direction: column; gap: 0;
}
.categories-progress-bar {
  height: 2px; width: 100%;
  background: var(--accent);
  transform-origin: left;
  transition: transform 60ms linear;
  box-shadow: 0 0 0 1px var(--border-2) inset;
}
.categories-progress::before {
  content: ""; display: block;
  height: 1px; background: rgba(31,27,22,0.12);
  margin-bottom: 0;
}
.categories-progress-label {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 14px;
  font: 500 11px/1 var(--font-display-sans);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg-3);
}
.categories-progress-current { color: var(--accent); }

/* Final handoff: the next dark section is pulled in from the right while
   the carousel finishes traveling left, avoiding an empty end state. */
.categories-handoff {
  position: absolute;
  inset: 0;
  z-index: 6;
  background: var(--fg-1);
  color: var(--surface-page);
  overflow: hidden;
  pointer-events: none;
  will-change: transform, opacity;
}
.categories-handoff::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(65% 70% at 80% 45%, rgba(112,48,160,0.28) 0%, transparent 62%),
    linear-gradient(90deg, rgba(31,27,22,0.02) 0%, rgba(31,27,22,0.72) 22%, rgba(31,27,22,1) 100%);
  pointer-events: none;
}
.categories-handoff-inner {
  position: relative;
  z-index: 1;
  min-height: 100%;
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(520px, 1.1fr);
  gap: clamp(48px, 7vw, 120px);
  align-items: center;
  padding: 104px 6vw 72px;
}
.categories-handoff-copy {
  max-width: 620px;
}
.categories-handoff-copy .eyebrow {
  margin-bottom: 24px;
}
.categories-handoff-copy h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(52px, 7vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.024em;
  color: var(--surface-page);
  margin: 0 0 28px;
}
.categories-handoff-copy .it {
  font-style: italic;
  font-weight: 400;
}
.categories-handoff-copy p {
  font: 400 18px/1.55 var(--font-sans);
  color: rgba(244,239,230,0.68);
  max-width: 52ch;
  margin: 0;
}
.categories-handoff-logos {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  gap: 14px;
  transform: translateX(4vw);
}
.handoff-logo {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  background: var(--surface-page);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.22);
  transform: translateY(0);
  transition: transform 500ms var(--ease-emphasized);
}
.handoff-logo img {
  width: calc(var(--logo-scale, 0.8) * 100%);
  height: calc(var(--logo-scale, 0.8) * 100%);
  object-fit: contain;
}

/* Category card visual */
.cat-card {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  color: var(--surface-page);
  pointer-events: auto;
  isolation: isolate;
}
.cat-card::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(12,10,16,0.12) 0%, rgba(12,10,16,0.50) 55%, rgba(12,10,16,0.78) 100%),
    radial-gradient(80% 60% at 30% 20%, rgba(255,255,255,0.20) 0%, transparent 60%),
    radial-gradient(60% 80% at 80% 100%, rgba(0,0,0,0.30) 0%, transparent 60%);
  z-index: 1;
}
.cat-card-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #171017;
}
.cat-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  filter: saturate(0.98) contrast(1.04);
  transition: opacity 900ms var(--ease-emphasized), transform 5200ms linear;
}
.cat-card-media img.is-active {
  opacity: 1;
  transform: scale(1.1);
}
.cat-card-with-media {
  background: #171017 !important;
}
.cat-card-inner {
  position: relative; z-index: 2;
  height: 100%; padding: 24px;
  display: flex; flex-direction: column;
  justify-content: space-between;
}
.cat-card-top {
  display: flex; justify-content: space-between; align-items: flex-start;
}
.cat-card-num {
  font: 500 11px/1 var(--font-display-sans);
  letter-spacing: 0.18em;
  opacity: 0.7;
}
.cat-card-glyph {
  font-size: 22px; opacity: 0.85; line-height: 1;
}
.cat-card-mid { margin-top: auto; }
.cat-card-tag {
  font: 500 10px/1 var(--font-display-sans);
  letter-spacing: 0.18em; text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 14px;
}
.cat-card-title {
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(28px, 2.6vw, 40px);
  line-height: 1.0; letter-spacing: -0.015em;
  margin: 0 0 18px;
  color: inherit;
}
.cat-card-title a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base);
}
.cat-card-title a:hover {
  border-bottom-color: currentColor;
  text-decoration: none;
}
.cat-card-items {
  list-style: none; padding: 0; margin: 0 0 18px;
  display: flex; flex-wrap: wrap; gap: 6px 8px;
}
.cat-card-items li {
  font: 400 11px/1 var(--font-display-sans);
  letter-spacing: 0.10em; text-transform: uppercase;
  padding: 6px 10px;
  border: 1px solid rgba(244,239,230,0.30);
  border-radius: 999px;
  background: rgba(244,239,230,0.06);
}
.cat-card-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 11px/1 var(--font-display-sans);
  letter-spacing: 0.16em; text-transform: uppercase;
  padding-top: 14px; border-top: 1px solid rgba(244,239,230,0.20);
  color: inherit;
  text-decoration: none;
  transition: gap var(--dur-base), opacity var(--dur-base);
}
.cat-card-cta:hover {
  text-decoration: none;
  gap: 14px;
  opacity: 0.85;
}

/* mobile: collapse categories to grid */
@media (max-width: 900px) {
  .categories { height: auto; padding: 96px 0; }
  .categories-pin { position: relative; height: auto; }
  .categories-bg { display: none; }
  .categories-head { padding: 0 32px; }
  .categories-stack { display: none; }
  .categories-row {
    position: relative; padding: 60px 0 0; overflow-x: auto;
    -webkit-overflow-scrolling: touch; scrollbar-width: none; opacity: 1 !important;
    pointer-events: auto !important;
  }
  .categories-row::-webkit-scrollbar { display: none; }
  .categories-row-track { transform: none !important; padding: 0 24px; }
  .cat-card-row { width: 280px; height: 380px; }
  .categories-progress { display: none; }
  .categories-handoff { display: none; }
}

/* ========================================================== */
/* Brands -vertical numbered list (clients style)            */
/* ========================================================== */
.brands {
  background: var(--accent); color: var(--fg-on-accent);
  padding: 160px 0;
  position: relative;
  overflow: hidden;
  /* Layout pulled up 100vh so Brands sits on top of the empty tail of the
     categories pin. Then a transform driven by --cat-exit (written from the
     Categories component) keeps the section parked just below the viewport
     until the cards finish exiting -at which point it slides up into place,
     reading as a direct hand-off into the Brands section. */
  margin-top: -100vh;
  z-index: 5;
  transform: translate3d(0, calc((1 - var(--cat-exit, 1)) * 100vh), 0);
  will-change: transform;
}
.brands-head { margin-bottom: 56px; max-width: 900px; }
.brands-head .eyebrow.muted { margin-bottom: 24px; }
.brands-title {
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(48px, 6.6vw, 96px); line-height: 1.0;
  letter-spacing: -0.024em;
  margin: 0 0 28px;
  color: var(--surface-page);
}
.brands-title .it { font-style: italic; font-weight: 400; }
.brands-lede {
  font: 400 18px/1.55 var(--font-sans);
  color: rgba(244,239,230,0.7); max-width: 56ch; margin: 0;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.brand-card {
  position: relative;
  display: flex; flex-direction: column;
  background: rgba(244,239,230,0.04);
  border: 1px solid rgba(244,239,230,0.10);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  isolation: isolate;
  transition: transform 350ms var(--ease-emphasized), border-color 250ms, background 250ms;
}
.brand-card:hover {
  text-decoration: none;
  transform: translateY(-4px);
  border-color: rgba(244,239,230,0.30);
  background: rgba(244,239,230,0.07);
}
.brand-card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--surface-page);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  overflow: hidden;
}
.brand-card-media img {
  /* Scaled box: each logo is given a per-brand --logo-scale (0–1) that sets
     the side of its bounding box relative to the card. Combined with
     object-fit: contain, this normalizes visual weight across logos with
     wildly different aspect ratios and built-in padding. */
  width:  calc(var(--logo-scale, 0.8) * 100%);
  height: calc(var(--logo-scale, 0.8) * 100%);
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  transition: transform 600ms var(--ease-emphasized);
}
.brand-card:hover .brand-card-media img { transform: scale(1.06); }
.brand-card-arrow {
  position: absolute; top: 14px; right: 14px;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(15,12,10,0.6);
  color: var(--surface-page);
  display: inline-flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 250ms, transform 250ms, background 250ms;
  backdrop-filter: blur(8px);
}
.brand-card:hover .brand-card-arrow {
  opacity: 1; transform: translateY(0);
  background: var(--accent); color: var(--fg-on-accent);
}

@media (max-width: 640px) {
  .brand-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .brand-card-media { padding: 18px; aspect-ratio: 1/1; }
}

.brands-disclaimer {
  margin-top: 48px;
  font: 400 13px/1.55 var(--font-sans); color: rgba(244,239,230,0.45);
  text-align: center; max-width: 700px; margin-left: auto; margin-right: auto;
}

/* ========================================================== */
/* Process                                                    */
/* ========================================================== */
.process-section { background: var(--surface-page); padding: 160px 0; }
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--border-1);
  padding-top: 56px;
}
@media (max-width: 980px) { .process { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .process { grid-template-columns: 1fr; } }

.step {
  position: relative;
  padding: 0 24px 0 0;
  display: flex; flex-direction: column; gap: 16px;
}
.step .num {
  font-family: var(--font-serif); font-weight: 500;
  font-size: 64px; line-height: 0.9; letter-spacing: -0.025em;
  color: var(--accent);
}
.step h4 {
  font-family: var(--font-serif); font-weight: 500;
  font-size: 22px; line-height: 1.2; letter-spacing: -0.005em;
  margin: 0; color: var(--fg-1);
}
.step p { font: 400 15px/1.6 var(--font-sans); color: var(--fg-2); margin: 0; }

/* ========================================================== */
/* Pull quote                                                 */
/* ========================================================== */
.pull {
  background: var(--surface-inverse); color: var(--fg-on-inverse);
  padding: 160px 0; text-align: center;
}
.pull blockquote {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(32px, 4.4vw, 64px); line-height: 1.16;
  letter-spacing: -0.018em;
  max-width: 22ch; margin: 0 auto;
  color: var(--surface-page); font-style: italic;
}
.pull cite {
  display: block; margin-top: 36px;
  font: 500 12px/1 var(--font-display-sans);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(244,239,230,0.55); font-style: normal;
}

/* ========================================================== */
/* Contact                                                    */
/* ========================================================== */
/* Purple feature section. The form-card sits on top as a cream surface so it
   pops against the saturated brand color. All text/channel chrome inside the
   section is recoloured for ivory-on-purple contrast. */
.contact-section {
  background: var(--accent);
  color: var(--fg-on-accent);
  padding: 160px 0;
  border-top: 1px solid var(--accent-press);
}
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.05fr;
  gap: 80px; align-items: start;
}
@media (max-width: 980px) { .contact-grid { grid-template-columns: 1fr; gap: 56px; } }

.contact-prose .eyebrow {
  color: var(--fg-on-accent);
  opacity: 0.92;
}
.contact-prose .eyebrow .dash {
  background: var(--fg-on-accent);
}
.contact-prose h2 {
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(42px, 5.4vw, 76px); line-height: 1.02;
  letter-spacing: -0.022em; margin: 18px 0 24px;
  color: var(--fg-on-accent);
}
.contact-prose h2 .it {
  font-style: italic; font-weight: 400;
  color: var(--accent-tint);
}
.contact-prose p {
  font: 400 18px/1.6 var(--font-sans);
  color: rgba(251, 247, 240, 0.82);
  margin: 0 0 36px;
}

.contact-channels {
  display: flex; flex-direction: column; gap: 0;
  border-top: 1px solid rgba(251, 247, 240, 0.22);
}
.channel {
  display: flex; align-items: center; gap: 20px;
  width: 100%;
  padding: 22px 0;
  border-bottom: 1px solid rgba(251, 247, 240, 0.22);
  text-decoration: none;
  color: var(--fg-on-accent);
  transition: padding var(--dur-base), color var(--dur-base);
}
button.channel {
  appearance: none;
  border-top: 0;
  border-right: 0;
  border-left: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
}
.channel:hover {
  padding-left: 8px;
  color: var(--fg-on-accent);
  text-decoration: none;
}
.channel .ico-wrap {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(251, 247, 240, 0.08);
  border: 1px solid rgba(251, 247, 240, 0.28);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--fg-on-accent);
  transition: background var(--dur-base), color var(--dur-base), border-color var(--dur-base);
}
.channel:hover .ico-wrap {
  background: var(--fg-on-accent);
  color: var(--accent);
  border-color: var(--fg-on-accent);
}
.channel .ico-wrap-brand {
  background: var(--fg-on-accent);
  color: var(--accent);
  border-color: var(--fg-on-accent);
}
.channel .label {
  font: 500 12px/1 var(--font-display-sans);
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(251, 247, 240, 0.62);
  display: block; margin-bottom: 6px;
}
.channel .val {
  font-family: var(--font-serif); font-weight: 500;
  font-size: 22px; letter-spacing: -0.005em; line-height: 1.2;
  color: var(--fg-on-accent);
}
.channel .arrow {
  margin-left: auto;
  opacity: 0.5;
  color: var(--fg-on-accent);
  transition: opacity var(--dur-base), transform var(--dur-base);
}
.channel:hover .arrow { opacity: 1; transform: translate(2px, -2px); }
.channel.is-copied .ico-wrap {
  background: var(--fg-on-accent);
  color: var(--success);
  border-color: var(--fg-on-accent);
}
.channel.is-copied .arrow {
  opacity: 1;
  transform: none;
}

/* Form -cream surface lifted above the purple section with a soft shadow so
   it reads as the primary action target. */
.form-card {
  background: var(--surface-raised);
  border: 1px solid rgba(31, 27, 22, 0.08);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow:
    0 30px 60px -20px rgba(73, 29, 106, 0.45),
    0 8px 24px -8px rgba(31, 27, 22, 0.18);
}
@media (max-width: 540px) { .form-card { padding: 28px; } }
.form-card h3 {
  font-family: var(--font-serif); font-weight: 500;
  font-size: 26px; letter-spacing: -0.005em;
  margin: 0 0 8px;
}
.form-card .lead {
  font: 400 14px/1.5 var(--font-sans);
  color: var(--fg-2); margin: 0 0 28px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 540px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font: 500 11px/1 var(--font-display-sans);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-3);
}
.field input, .field select, .field textarea {
  font: 400 15px/1.5 var(--font-sans);
  color: var(--fg-1);
  background: var(--surface-page);
  border: 1px solid var(--border-1);
  border-radius: 6px;
  padding: 14px 16px; width: 100%;
  font-family: var(--font-sans);
  transition: border-color var(--dur-base), box-shadow var(--dur-base), background var(--dur-base);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-ring);
  background: var(--surface-raised);
}
.field textarea { min-height: 130px; resize: vertical; }

.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.form-meta { font: 400 12px/1.4 var(--font-sans); color: var(--fg-3); }

/* ========================================================== */
/* Footer                                                     */
/* ========================================================== */
.footer { background: var(--fg-1); color: rgba(244,239,230,0.85); padding: 120px 0 48px; }
.footer-top {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 56px; padding-bottom: 64px;
  border-bottom: 1px solid rgba(244,239,230,0.12);
}
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 540px) { .footer-top { grid-template-columns: 1fr; gap: 32px; } }

.footer-brand-mark {
  font: 600 18px/1 var(--font-display-sans);
  letter-spacing: 0.10em;
  color: var(--surface-page);
  display: inline-block; margin-bottom: 22px;
}
.footer-brand-mark sup { font-size: 0.55em; opacity: 0.7; }
.footer-brand-logo {
  display: block;
  height: 120px;
  width: auto;
  margin-bottom: 36px;
}
.footer-brand p {
  font: 400 14px/1.6 var(--font-sans);
  color: rgba(244,239,230,0.65); max-width: 360px; margin: 0;
}
.footer-tagline {
  font-family: var(--font-serif); font-weight: 400;
  font-size: 28px; line-height: 1.15; letter-spacing: -0.01em;
  color: var(--surface-page); margin: 0 0 24px; max-width: 14ch;
  font-style: italic;
}
.footer h5 {
  font: 500 12px/1 var(--font-display-sans);
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(244,239,230,0.5); margin: 0 0 18px;
}
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-links a {
  color: var(--surface-page); text-decoration: none;
  font: 400 15px/1.4 var(--font-sans);
  transition: color var(--dur-base);
}
.footer-links a:hover { color: var(--accent); text-decoration: none; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px; gap: 20px; flex-wrap: wrap;
  font: 400 13px/1.5 var(--font-sans);
  color: rgba(244,239,230,0.5);
}
.footer-bottom-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-bottom-links a { color: rgba(244,239,230,0.6); text-decoration: none; }
.footer-bottom-links a:hover { color: var(--surface-page); }

/* ========================================================== */
/* ========================================================== */
/* Floating contact form button                               */
/* ========================================================== */
.fab-form {
  position: fixed; bottom: 22px; right: 22px; z-index: 80;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px 8px 8px;
  border-radius: 999px;
  font: 500 12px/1 var(--font-display-sans);
  letter-spacing: 0.18em; text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(20,17,14,0.25);
  transition: transform var(--dur-base), background var(--dur-base), color var(--dur-base), border-color var(--dur-base);
}
/* Light section: dark pill */
.fab-form--light {
  background: var(--fg-1); color: var(--surface-page);
  border: 1px solid var(--fg-1);
}
.fab-form--light .fab-form-ico {
  background: var(--accent); color: var(--fg-on-accent);
}
.fab-form--light:hover {
  background: var(--accent); border-color: var(--accent); color: var(--fg-on-accent);
}
.fab-form--light:hover .fab-form-ico { background: var(--surface-page); color: var(--fg-1); }
/* Dark section: light pill */
.fab-form--dark {
  background: var(--surface-page); color: var(--fg-1);
  border: 1px solid var(--surface-page);
}
.fab-form--dark .fab-form-ico {
  background: var(--accent); color: var(--fg-on-accent);
}
.fab-form--dark:hover {
  background: var(--accent); border-color: var(--accent); color: var(--fg-on-accent);
}
.fab-form--dark:hover .fab-form-ico { background: var(--fg-1); color: var(--surface-page); }

.fab-form:hover { transform: translateY(-2px); text-decoration: none; }
.fab-form-ico {
  width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--dur-base), color var(--dur-base);
}
@media (max-width: 540px) {
  .fab-form span.label { display: none; }
  .fab-form { padding: 6px; }
}

/* ========================================================== */
/* Reveal animations                                          */
/* ========================================================== */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 800ms var(--ease-emphasized), transform 800ms var(--ease-emphasized);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .marquee-strip-track { animation: none !important; }
  .hero-scroll-cue { display: none; }
}
