/* ==========================================================================
   Marketingberatung Bodo Broeker — home.css
   Styles specific to the home page (index.html)
   ========================================================================== */

/* ==========================================================================
   HERO
   Full viewport, Three.js dotted wave surface, staggered reveals
   ========================================================================== */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 40px) 24px 80px;
  position: relative;
  overflow: hidden;
  background: var(--white);
}

/* Three.js dotted wave surface */
.hero__dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero__dots canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* Hero content */
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  width: 100%;
  will-change: transform, opacity;
}

/* Tag line above title */
.hero__tag {
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s var(--ease-out) .1s, transform .6s var(--ease-out) .1s;
}

/* Main headline */
.hero__title {
  font-size: clamp(2.75rem, 8vw, 6rem);
  font-weight: 800;
  line-height: .92;
  letter-spacing: -.035em;
  color: var(--dark);
  margin-bottom: 28px;
}

.hero__title-line {
  display: block;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}

.hero__title-line:nth-child(1) {
  transition-delay: .2s;
}

.hero__title-line:nth-child(2) {
  transition-delay: .35s;
}

.hero__title-accent {
  color: var(--wine);
}

/* Horizontal rule */
.hero__rule {
  width: 52px;
  height: 2px;
  background: var(--wine);
  margin: 0 auto 24px;
  border: none;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: opacity .5s var(--ease-out) .5s, transform .5s var(--ease-out) .5s;
}

/* Subtitle */
.hero__sub {
  font-size: clamp(.9375rem, 1.6vw, 1.0625rem);
  color: var(--text2);
  line-height: 1.7;
  max-width: 420px;
  margin: 0 auto 36px;
  font-weight: 400;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s var(--ease-out) .6s, transform .6s var(--ease-out) .6s;
}

/* ==========================================================================
   MAGNETIC TEXT — Cursor-following circle reveals alternate text on hover
   Desktop only; hidden on touch devices and reduced motion
   ========================================================================== */
.magnetic-text {
  position: relative;
}

.magnetic-text__circle {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--wine);
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity .3s ease-out;
}

.magnetic-text--active .magnetic-text__circle {
  opacity: 1;
}

.magnetic-text[data-circle-bg="dark"] .magnetic-text__circle {
  background: var(--dark);
}

.magnetic-text__inner {
  position: absolute;
  display: block;
  text-align: center;
  color: #fff;
  white-space: nowrap;
}

/* Hide on non-hover (touch) devices */
@media (hover: none) {
  .magnetic-text__circle {
    display: none;
  }
}

/* ==========================================================================
   HERO CTA — 3D tactile press + rotating shine border
   Inspired by Josh Comeau's 3D button + Linear.app border beam
   ========================================================================== */

@property --cta-beam {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* Wrapper — entrance animation + glow */
.hero__cta-wrap {
  position: relative;
  display: inline-flex;
  border-radius: 60px;
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity .7s var(--ease-out) .72s,
    transform .7s var(--ease-out) .72s;
}

.hero.loaded .hero__cta-wrap {
  opacity: 1;
  transform: translateY(0);
}

/* Breathing glow underneath */
.hero__cta-wrap::after {
  content: '';
  position: absolute;
  inset: 2px 4px -6px;
  border-radius: inherit;
  background: rgba(134,38,51,.3);
  filter: blur(20px);
  z-index: -1;
  animation: cta-glow 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes cta-glow {
  0%, 100% { opacity: .3; transform: scale(1); }
  50% { opacity: .7; transform: scale(1.04); }
}

/* Link container — transparent, just handles click + magnetic */
.hero__cta {
  position: relative;
  display: inline-flex;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline-offset: 4px;
}

/* 3D edge — the dark underside visible beneath the raised front */
.hero__cta-edge {
  position: absolute;
  inset: 0;
  border-radius: 60px;
  background: linear-gradient(
    to bottom,
    #5a1a24 0%,
    #3d1018 100%
  );
}

/* The front face — raised with 3D press physics */
.hero__cta-front {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 38px;
  border-radius: 60px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .02em;
  white-space: nowrap;
  background: var(--wine);
  transform: translateY(-4px);
  transition: transform 500ms cubic-bezier(.3,.7,.4,1);
  will-change: transform;
}

/* Hover: lift slightly */
.hero__cta:hover .hero__cta-front {
  transform: translateY(-6px);
  transition: transform 300ms cubic-bezier(.3,.7,.4,1);
}

/* Press: push down smoothly */
.hero__cta:active .hero__cta-front {
  transform: translateY(-1px);
  transition: transform 80ms ease-out;
}

/* Rotating shine border on the front face */
.hero__cta-front::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(
    from var(--cta-beam),
    transparent 0%,
    transparent 45%,
    rgba(255,255,255,.1) 56%,
    rgba(255,220,220,.5) 64%,
    rgba(255,255,255,.85) 70%,
    #fff 73%,
    rgba(255,200,200,.6) 78%,
    rgba(134,38,51,.2) 84%,
    transparent 92%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: cta-beam-spin 3.5s linear infinite;
  pointer-events: none;
}

@keyframes cta-beam-spin {
  to { --cta-beam: 360deg; }
}

/* Text + arrow */
.hero__cta-text {
  position: relative;
  z-index: 1;
}

.hero__cta-arrow {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  width: 20px;
  height: 20px;
  transition: transform .3s var(--ease);
}

.hero__cta:hover .hero__cta-arrow {
  transform: translateX(5px);
}

/* Hero loaded state — triggers all staggered animations */
.hero.loaded .hero__tag {
  opacity: 1;
  transform: translateY(0);
}

.hero.loaded .hero__title-line {
  opacity: 1;
  transform: translateY(0);
}

.hero.loaded .hero__rule {
  opacity: 1;
  transform: scaleX(1);
}

.hero.loaded .hero__sub {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   MARQUEE
   Infinite horizontal scroll ticker
   ========================================================================== */
.marquee {
  padding: 18px 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  cursor: default;
  background: var(--white);
}

.marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: marquee-scroll 80s linear infinite;
}

.marquee__content {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.marquee__content span {
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text3);
  white-space: nowrap;
  padding: 0 22px;
}

.marquee__dot {
  color: var(--wine) !important;
  font-size: 1rem !important;
  padding: 0 0 !important;
  letter-spacing: 0 !important;
}

@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   LOGO MARQUEE — Partner reference logos scrolling strip
   ========================================================================== */
.logo-marquee {
  padding: 32px 0 24px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--white);
  cursor: default;
}

.logo-marquee__heading {
  text-align: center;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text3);
  margin: 0 0 20px;
}

.logo-marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: none;
}

.logo-marquee__content {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.logo-marquee__content img {
  height: 52px;
  width: auto;
  object-fit: contain;
  margin: 0 36px;
  filter: none;
  opacity: .85;
  transition: filter .4s var(--ease), opacity .4s var(--ease);
}

.logo-marquee__content img:hover {
  filter: none;
  opacity: 1;
}

@media (max-width: 767px) {
  .logo-marquee__content img {
    height: 36px;
    margin: 0 20px;
  }
}

@media (min-width: 1280px) {
  .logo-marquee__content img {
    height: 50px;
    margin: 0 36px;
  }
}

/* ==========================================================================
   STATS STRIP
   Animated counters in a row
   ========================================================================== */
/* ==========================================================================
   FLOATING MINDMAP — Fun facts as floating connected bubbles
   ========================================================================== */
.mindmap {
  padding: 100px 0;
  background: var(--white);
  overflow: hidden;
}

.mindmap__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.mindmap__header {
  text-align: center;
  margin-bottom: 32px;
}

.mindmap__title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.03em;
  color: var(--dark);
}

.mindmap__title span {
  color: var(--wine);
}

/* Canvas: holds all nodes + SVG lines */
.mindmap__canvas {
  position: relative;
  width: 100%;
  max-width: 720px;
  height: 440px;
  margin: 0 auto;
}

/* Radial glow behind the canvas */
.mindmap__canvas::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 500px;
  height: 500px;
  margin: -250px 0 0 -250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(134,38,51,.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Connector lines — animated dash */
.mindmap__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.mindmap__lines line {
  stroke: rgba(134,38,51,.15);
  stroke-width: 1;
  stroke-dasharray: 6 6;
  animation: dash-flow 12s linear infinite;
}

@keyframes dash-flow {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -60; }
}

/* Shared node base */
.mindmap__node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(134,38,51,.08);
  box-shadow: 0 4px 20px rgba(134,38,51,.06), 0 1px 3px rgba(0,0,0,.03);
  text-align: center;
  z-index: 1;
  cursor: default;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .3s var(--ease);
}

.mindmap__node:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 32px rgba(134,38,51,.12), 0 2px 8px rgba(0,0,0,.04);
  border-color: rgba(134,38,51,.2);
}

/* Center node — biggest, with pulsing ring */
.mindmap__node--center {
  width: 220px;
  height: 220px;
  left: 50%;
  top: 50%;
  margin-left: -110px;
  margin-top: -110px;
  background: var(--wine);
  backdrop-filter: none;
  border-color: var(--wine);
  color: #fff;
  box-shadow: 0 8px 40px rgba(134,38,51,.25), 0 0 0 0 rgba(134,38,51,.15);
  z-index: 2;
  --float-x: 3px;
  --float-y: -5px;
  --float-dur: 10s;
}

.mindmap__node--center::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1.5px solid rgba(134,38,51,.2);
  animation: pulse-ring 3s ease-out infinite;
  pointer-events: none;
}

@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: .6; }
  70%  { transform: scale(1.15); opacity: 0; }
  100% { transform: scale(1.15); opacity: 0; }
}

.mindmap__node--center:hover {
  transform: scale(1.05);
  box-shadow: 0 16px 56px rgba(134,38,51,.3), 0 4px 12px rgba(0,0,0,.06);
}

/* Large nodes — "25+" / "3" */
.mindmap__node--lg {
  width: 130px;
  height: 130px;
  --float-dur: 9s;
}

/* Medium nodes — "18+" / "BAFA" */
.mindmap__node--md {
  width: 115px;
  height: 115px;
  --float-dur: 7s;
}

/* Small nodes — icons + short labels */
.mindmap__node--sm {
  width: 100px;
  height: 100px;
  --float-dur: 6s;
}

/* Node number */
.mindmap__node-num {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  color: var(--dark);
  font-variant-numeric: tabular-nums;
  display: block;
  margin-bottom: 3px;
}

.mindmap__node-num::after {
  content: attr(data-suffix);
  color: var(--wine);
}

.mindmap__node--center .mindmap__node-num {
  font-size: 3rem;
  color: #fff;
}

.mindmap__node--center .mindmap__node-num::after {
  color: rgba(255,255,255,.7);
}

.mindmap__node--lg .mindmap__node-num {
  font-size: 1.75rem;
}

.mindmap__node--md .mindmap__node-num {
  font-size: 1.5rem;
}

.mindmap__node--sm .mindmap__node-num {
  font-size: 1.25rem;
}

/* Node label */
.mindmap__node-label {
  font-size: .55rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text3);
  line-height: 1.2;
  max-width: 85%;
}

.mindmap__node--center .mindmap__node-label {
  color: rgba(255,255,255,.75);
  font-size: .65rem;
  max-width: 70%;
}

.mindmap__node--sm .mindmap__node-label {
  font-size: .5rem;
}

/* Node icon */
.mindmap__node-icon {
  color: var(--wine);
  margin-bottom: 3px;
  display: flex;
}

/* Node short text (Dipl.-Kfm.) */
.mindmap__node-text {
  font-size: .6875rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 2px;
}

/* Positions (desktop — tight orbit around center) */
.mindmap__node--pos1 { left: 6%;  top: 20%;  --float-x: -3px; --float-y: -4px; --float-delay: .5s; }
.mindmap__node--pos2 { right: 6%; top: 16%;  --float-x: 3px;  --float-y: -4px; --float-delay: 1s; }
.mindmap__node--pos3 { left: 3%;  bottom: 16%; --float-x: -3px; --float-y: 4px;  --float-delay: 1.5s; }
.mindmap__node--pos4 { right: 3%; bottom: 12%; --float-x: 3px;  --float-y: 4px;  --float-delay: 2s; }
.mindmap__node--pos5 { left: 28%; top: 0%;   --float-x: 2px;  --float-y: -3px; --float-delay: .8s; }
.mindmap__node--pos6 { right: 26%; top: -2%; --float-x: -2px; --float-y: -3px; --float-delay: 1.2s; }
.mindmap__node--pos7 { left: 24%; bottom: 0%; --float-x: 2px;  --float-y: 3px;  --float-delay: 1.8s; }
.mindmap__node--pos8 { right: 22%; bottom: -2%; --float-x: -2px; --float-y: 3px;  --float-delay: 2.2s; }

/* ---- Mobile: center node with orbiting satellites ---- */
@media (max-width: 767px) {
  .mindmap {
    padding: 64px 0;
  }

  .mindmap__header {
    margin-bottom: 16px;
  }

  .mindmap__canvas {
    position: relative;
    width: 100%;
    max-width: 380px;
    height: 580px;
    margin: 0 auto;
  }

  .mindmap__lines {
    display: block;
    position: absolute;
    inset: 0;
  }

  .mindmap__node {
    position: absolute;
  }

  /* Center node */
  .mindmap__node--center {
    width: 150px;
    height: 150px;
    left: 50%;
    top: 50%;
    margin-left: -75px;
    margin-top: -75px;
    --float-x: 0px;
    --float-y: -2px;
    --float-dur: 10s;
  }

  .mindmap__node--center .mindmap__node-num {
    font-size: 2.25rem;
  }

  .mindmap__node--center .mindmap__node-label {
    font-size: .5rem;
  }

  .mindmap__node--lg {
    width: 105px;
    height: 105px;
  }

  .mindmap__node--md {
    width: 100px;
    height: 100px;
  }

  .mindmap__node--sm {
    width: 88px;
    height: 88px;
  }

  /* 8 positions — spread out to avoid overlap at larger sizes */
  .mindmap__node--pos1 { left: 0%;   top: 28%;  --float-x: -2px; --float-y: -3px; --float-delay: 0s; }
  .mindmap__node--pos2 { right: 0%;  top: 24%;  --float-x: 2px;  --float-y: -3px; --float-delay: .6s; }
  .mindmap__node--pos3 { left: 0%;   bottom: 20%; --float-x: -2px; --float-y: 3px;  --float-delay: 1.2s; }
  .mindmap__node--pos4 { right: 0%;  bottom: 16%; --float-x: 2px;  --float-y: 3px;  --float-delay: 1.8s; }
  .mindmap__node--pos5 { left: 14%;  top: 2%;   --float-x: 2px;  --float-y: -2px; --float-delay: .3s; }
  .mindmap__node--pos6 { right: 12%; top: 0%;   --float-x: -2px; --float-y: -2px; --float-delay: .9s; }
  .mindmap__node--pos7 { left: 16%;  bottom: 0%; --float-x: 2px;  --float-y: 2px;  --float-delay: 1.5s; }
  .mindmap__node--pos8 { right: 14%; bottom: -2%; --float-x: -2px; --float-y: 2px;  --float-delay: 2.1s; }

  /* Text sizing */
  .mindmap__node-num {
    font-size: 1.375rem;
  }

  .mindmap__node--sm .mindmap__node-num {
    font-size: 1.125rem;
  }

  .mindmap__node-label {
    font-size: .5rem;
  }

  .mindmap__node--sm .mindmap__node-label {
    font-size: .45rem;
  }

  .mindmap__node-text {
    font-size: .625rem;
  }

  .mindmap__node-icon svg {
    width: 16px;
    height: 16px;
  }

  .mindmap__node--sm .mindmap__node-icon svg {
    width: 14px;
    height: 14px;
  }

  .mindmap__node-icon {
    margin-bottom: 2px;
  }
}

/* ==========================================================================
   PILLARS
   Three service cards with 3D tilt and hover states
   ========================================================================== */
.pillars {
  padding: 100px 0;
  background: var(--white);
}

.pillars__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.pillars__header {
  text-align: center;
  margin-bottom: 72px;
}

.pillars__title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.03em;
  color: var(--dark);
  margin-bottom: 16px;
}

.pillars__title span {
  color: var(--wine);
}

.pillars__subtitle {
  font-size: 1.0625rem;
  color: var(--text2);
  line-height: 1.7;
  max-width: 440px;
  margin: 0 auto;
}

/* Bouncy card row — 12-col asymmetric grid */
.pillars__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.pillars__row:last-child {
  margin-bottom: 0;
}

/* Bouncy card base */
.pillars__bounce {
  position: relative;
  min-height: 300px;
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  transition: transform .25s var(--ease);
  will-change: transform;
}

.pillars__bounce:hover {
  transform: scale(.95) rotate(-1deg);
}

/* Watermark number */
.pillars__bounce-num {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 7rem;
  font-weight: 900;
  color: rgba(0,0,0,.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* Card title — centered */
.pillars__bounce-title {
  text-align: center;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--dark);
  position: relative;
  z-index: 1;
  padding-top: 8px;
}

/* Sliding gradient panel */
.pillars__bounce-panel {
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  top: 96px;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(135deg, var(--panel-from, #862633), var(--panel-to, #6d1e2a));
  padding: 24px;
  transform: translateY(32px);
  transition: transform .25s var(--ease);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pillars__bounce:hover .pillars__bounce-panel {
  transform: translateY(16px) rotate(2deg);
}

/* Panel icon */
.pillars__bounce-panel-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255,255,255,.15);
  flex-shrink: 0;
}

.pillars__bounce-panel-icon svg {
  width: 20px;
  height: 20px;
}

/* Panel text */
.pillars__bounce-panel-text {
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.6;
  opacity: .9;
}

/* Panel tags */
.pillars__bounce-panel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pillars__bounce-panel-tags span {
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.9);
}

/* Panel CTA arrow */
.pillars__bounce-panel-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8125rem;
  font-weight: 600;
  color: rgba(255,255,255,.8);
  margin-top: auto;
}

.pillars__bounce-panel-cta svg {
  transition: transform .25s var(--ease);
}

.pillars__bounce:hover .pillars__bounce-panel-cta svg {
  transform: translateX(4px);
}

/* Desktop: 12-col asymmetric layout */
@media (min-width: 768px) {
  .pillars__row {
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    margin-bottom: 20px;
  }

  .pillars__bounce--sm { grid-column: span 4; }
  .pillars__bounce--lg { grid-column: span 8; }
}

/* ==========================================================================
   BENTO TILES
   Asymmetric grid with quote, stats, credential cards
   ========================================================================== */
/* ==========================================================================
   SOCIAL PROOF — Scrolling Testimonial Columns
   ========================================================================== */
@keyframes scroll-up {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

.social-proof {
  padding: 100px 0 0;
  background: var(--white);
  overflow: hidden;
}

.social-proof__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.social-proof__subtitle {
  font-size: .875rem;
  color: var(--text3);
  margin-top: 12px;
  letter-spacing: .01em;
}

.social-proof__columns {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 48px;
  max-height: 640px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
  mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
}

.social-proof__col {
  flex: 1;
  max-width: 340px;
  overflow: hidden;
}

.social-proof__col--md {
  display: none;
}

.social-proof__col--lg {
  display: none;
}

.social-proof__scroll {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 20px;
  animation: scroll-up var(--scroll-speed, 28s) linear infinite;
}

/* Pause on hover */
.social-proof__columns:hover .social-proof__scroll {
  animation-play-state: paused;
}

/* Testimonial card */
.sp-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  transition: box-shadow .4s var(--ease-out), border-color .3s var(--ease);
  flex-shrink: 0;
}

.sp-card:hover {
  box-shadow: 0 8px 32px rgba(134,38,51,.08), 0 2px 8px rgba(0,0,0,.03);
  border-color: rgba(134,38,51,.15);
}

.sp-card__text {
  font-size: .9375rem;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 20px;
}

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

.sp-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--avatar-bg, var(--wine));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .02em;
  flex-shrink: 0;
}

.sp-card__meta {
  display: flex;
  flex-direction: column;
}

.sp-card__name {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--dark);
  font-style: normal;
  line-height: 1.3;
  letter-spacing: -.01em;
}

.sp-card__role {
  font-size: .75rem;
  color: var(--text3);
  line-height: 1.3;
}

/* Tablet: show 2 columns */
@media (min-width: 768px) {
  .social-proof__col--md {
    display: block;
  }

  .social-proof__columns {
    gap: 24px;
  }
}

/* Desktop: show all 3 columns */
@media (min-width: 1024px) {
  .social-proof__col--lg {
    display: block;
  }
}

@media (min-width: 1280px) {
  .social-proof {
    padding: 120px 0 0;
  }

  .social-proof__columns {
    max-height: 720px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .social-proof {
    padding: 64px 0 0;
  }

  .social-proof__columns {
    max-height: 520px;
    margin-top: 36px;
  }
}

/* ==========================================================================
   STATEMENT
   Big bold tagline
   ========================================================================== */
.statement {
  padding: 100px 0;
  overflow: hidden;
  background: var(--white);
}

.statement__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.statement__line {
  overflow: hidden;
}

.statement__text {
  font-size: clamp(2.25rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.03em;
  color: var(--dark);
}

.statement__text--accent {
  color: var(--wine);
}

.statement__rule {
  width: 60px;
  height: 2px;
  background: var(--wine);
  margin-top: 32px;
}

/* ==========================================================================
   REVERSE MARQUEE
   ========================================================================== */
.marquee--reverse {
  border-top: none;
}

.marquee__track--reverse {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: marquee-scroll-reverse 80s linear infinite;
}

@keyframes marquee-scroll-reverse {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* ==========================================================================
   FEATURED WORK — Horizontal Scroll Gallery
   ========================================================================== */
.featured {
  padding-bottom: 56px;
}

.featured__track {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 max(24px, calc((100vw - var(--max-w)) / 2 + 24px));
  -webkit-overflow-scrolling: touch;
}

.featured__track::-webkit-scrollbar { display: none; }
.featured__track { scrollbar-width: none; }

.featured__card {
  position: relative;
  flex-shrink: 0;
  width: min(80vw, 900px);
  height: 420px;
  border-radius: 8px;
  overflow: hidden;
  scroll-snap-align: start;
  cursor: default;
}

.featured__card-bg {
  position: absolute;
  inset: 0;
  background: var(--card-accent, #862633);
  transition: transform .6s var(--ease-out);
}

.featured__card:hover .featured__card-bg {
  transform: scale(1.03);
}

.featured__card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding: 40px;
  color: var(--white);
}

.featured__card-num {
  font-size: 5rem;
  font-weight: 800;
  opacity: .08;
  position: absolute;
  top: 24px;
  right: 32px;
  line-height: 1;
  pointer-events: none;
}

.featured__card-cat {
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .5;
  margin-bottom: 12px;
}

.featured__card-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 10px;
}

.featured__card-desc {
  font-size: .875rem;
  line-height: 1.7;
  opacity: .65;
  max-width: 420px;
}

/* Progress bar */
.featured__progress-wrap {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.featured__progress {
  width: 200px;
  height: 2px;
  background: var(--border);
  border-radius: 1px;
  overflow: hidden;
}

.featured__progress-fill {
  height: 100%;
  width: 25%;
  background: var(--wine);
  border-radius: 1px;
  transition: width .3s var(--ease-out);
}

/* ==========================================================================
   RESPONSIVE — TABLET
   ========================================================================== */
@media (max-width: 767px) {
  .hero {
    padding: calc(var(--nav-h) + 24px) 20px 60px;
    min-height: 90vh;
  }

  .hero__title {
    font-size: clamp(2.25rem, 10vw, 3.25rem);
  }

  .pillars {
    padding: 64px 0;
  }

  .pillars__header {
    margin-bottom: 40px;
  }

  .statement {
    padding: 64px 0;
  }

  .featured__card {
    width: 85vw;
    height: 360px;
  }

  .featured__card-content {
    padding: 28px;
  }

  .featured__track {
    gap: 16px;
  }
}

/* ==========================================================================
   RESPONSIVE — LARGE DESKTOP
   ========================================================================== */
@media (min-width: 1280px) {
  .pillars {
    padding: 120px 0;
  }

  .pillars__row {
    gap: 24px;
    margin-bottom: 24px;
  }

  .pillars__bounce {
    min-height: 340px;
    padding: 40px;
  }

  .mindmap {
    padding: 64px 0;
  }

  .statement {
    padding: 120px 0;
  }

  .featured__card {
    height: 480px;
  }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .hero__tag,
  .hero__title-line,
  .hero__rule,
  .hero__sub,
  .hero__cta-wrap,
  .hero__cta {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero__cta-wrap::after,
  .hero__cta-front::before {
    animation: none !important;
  }

  .hero__cta-front {
    transform: translateY(-4px) !important;
    transition: none !important;
  }

  .hero__dots canvas {
    display: none;
  }

  .magnetic-text__circle {
    display: none;
  }

  .marquee__track {
    animation: none !important;
  }

  .pillars__bounce {
    transition: none !important;
  }

  .pillars__bounce-panel {
    transform: translateY(16px) rotate(2deg);
    transition: none !important;
  }

  .sp-card {
    transition: none !important;
  }

  .social-proof__scroll {
    animation: none !important;
  }

  .mindmap__node--center::after {
    animation: none !important;
  }

  .mindmap__lines line {
    animation: none !important;
  }
}
