/* ==========================================================================
   ONLY UPWARDS — testimonial spotlight carousel (replaces the Webflow
   w-slider). Dependency-free; cream/ink palette from theme.css tokens.
   Cards are absolutely positioned on a 3D stage; the active card sits
   centre in ink, neighbours peek from the sides in cream. Initial
   transforms are baked into the markup so the section renders complete
   before (or without) JS; spotlight.js then animates the same values.
   ========================================================================== */

.ou-spot,
.ou-spot * {
  box-sizing: border-box;
}

.ou-spot {
  position: relative;
  margin-top: 10px;
}

.ou-spot-stage {
  position: relative;
  height: 430px;
  perspective: 1400px;
}

.ou-spot-track {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

/* ---- cards ---- */
.ou-spot-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(620px, 82%);
  margin: 0;
  padding: 44px 48px 38px;
  border-radius: 26px;
  background: var(--ou-cream-light);
  border: 1px solid var(--ou-cream-deep);
  box-shadow: 0 30px 60px -38px rgba(20, 16, 8, .35);
  transition:
    transform .65s cubic-bezier(.22, .9, .26, 1),
    opacity .65s cubic-bezier(.22, .9, .26, 1),
    background-color .65s ease,
    border-color .65s ease;
  will-change: transform, opacity;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.ou-spot.is-dragging .ou-spot-card { cursor: grabbing; transition: none; }

.ou-spot-card.is-active {
  background: var(--ou-ink);
  border-color: var(--ou-ink);
  box-shadow: 0 42px 80px -42px rgba(11, 11, 11, .55);
}

/* ---- card innards ---- */
.ou-spot-quotemark {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 84px;
  line-height: .6;
  height: 38px;
  color: var(--ou-cream-deep);
  pointer-events: none;
}
.ou-spot-card.is-active .ou-spot-quotemark { color: var(--ou-muted); }

.ou-spot-quote {
  margin: 18px 0 28px;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--ou-ink-soft);
  font-weight: 500;
}
.ou-spot-card.is-active .ou-spot-quote { color: var(--ou-cream); }

.ou-spot-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.ou-spot-meta img {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid var(--ou-cream-deep);
}
.ou-spot-card.is-active .ou-spot-meta img { border-color: rgba(244, 240, 235, .35); }

.ou-spot-who { flex: 1 1 auto; min-width: 0; }
.ou-spot-name {
  display: block;
  font-weight: 700;
  font-size: 16.5px;
  color: var(--ou-ink);
  letter-spacing: -0.01em;
}
.ou-spot-role {
  display: block;
  font-size: 13.5px;
  color: var(--ou-muted);
  margin-top: 2px;
}
.ou-spot-card.is-active .ou-spot-name { color: var(--ou-cream); }
.ou-spot-card.is-active .ou-spot-role { color: rgba(244, 240, 235, .6); }

.ou-spot-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--ou-cream-deep);
  color: var(--ou-ink);
  background: transparent;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.ou-spot-x svg { width: 15px; height: 15px; fill: currentColor; display: block; }
.ou-spot-x:hover { transform: translateY(-2px); background: var(--ou-ink); border-color: var(--ou-ink); color: var(--ou-cream); }
.ou-spot-card.is-active .ou-spot-x { border-color: rgba(244, 240, 235, .3); color: var(--ou-cream); }
.ou-spot-card.is-active .ou-spot-x:hover { background: var(--ou-cream); color: var(--ou-ink); border-color: var(--ou-cream); }

/* ---- arrows ---- */
.ou-spot-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid var(--ou-cream-deep);
  background: var(--ou-cream-light);
  color: var(--ou-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.ou-spot-arrow svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.2; }
.ou-spot-arrow:hover { background: var(--ou-ink); color: var(--ou-cream); transform: translateY(-50%) scale(1.06); }
.ou-spot-arrow.prev { left: 0; }
.ou-spot-arrow.next { right: 0; }

/* ---- nav: progress + dots ---- */
.ou-spot-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 34px;
}
.ou-spot-progress {
  width: 150px;
  height: 2px;
  border-radius: 2px;
  background: var(--ou-cream-deep);
  overflow: hidden;
}
.ou-spot-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--ou-ink);
  transform: scaleX(0);
  transform-origin: left center;
}
.ou-spot.is-playing .ou-spot-progress span {
  animation: ou-spot-fill var(--ou-spot-interval, 4600ms) linear forwards;
}
@keyframes ou-spot-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.ou-spot-dots { display: flex; gap: 9px; }
.ou-spot-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 999px;
  border: none;
  background: var(--ou-cream-deep);
  cursor: pointer;
  transition: width .3s ease, background-color .3s ease;
}
.ou-spot-dot.is-active { width: 26px; background: var(--ou-ink); }

/* ---- small screens ---- */
@media (max-width: 767px) {
  .ou-spot-stage { height: 480px; }
  .ou-spot-card { width: min(480px, 88%); padding: 32px 26px 28px; }
  .ou-spot-arrow { display: none; }  /* swipe takes over */
}
@media (max-width: 479px) {
  .ou-spot-stage { height: 520px; }
}

/* ---- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .ou-spot-card { transition: opacity .3s ease, background-color .3s ease; }
  .ou-spot.is-playing .ou-spot-progress span { animation: none; transform: scaleX(1); }
}

/* ==========================================================================
   Hero logo band — "orbit": every logo floats gently on its own rhythm
   while the whole row drifts left in unison on a seamless loop.
   Markup: .ou-orbit > label + .ou-orbit-mask > .ou-orbit-row > 2x .ou-orbit-seq
   (the second sequence is an aria-hidden duplicate that makes the -50%
   translateX loop seamless). Pure CSS; pauses on hover.
   ========================================================================== */
.ou-orbit {
  padding: 30px 0 10px;
  margin-top: 28px;
}
.ou-orbit-label {
  margin: 0 0 34px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(244, 240, 235, .45);
}
.ou-orbit-mask {
  overflow: hidden;
  /* vertical padding so floating logos never clip against the mask box */
  padding: 16px 0 6px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ou-orbit-row {
  display: flex;
  width: max-content;
  animation: ou-orbit-drift 38s linear infinite;
  will-change: transform;
}
.ou-orbit-mask:hover .ou-orbit-row,
.ou-orbit-mask:hover .ou-orbit-item img,
.ou-orbit-mask:hover .ou-orbit-item::after { animation-play-state: paused; }

.ou-orbit-seq {
  display: flex;
  align-items: center;
  gap: 84px;
  padding-right: 84px;
}
.ou-orbit-item {
  --fd: 3.6s;  /* float duration  */
  --fo: 0s;    /* float offset    */
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 20px; /* room for the ground shadow */
}
.ou-orbit-item img {
  height: 46px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  display: block;
  animation: ou-orbit-float var(--fd) ease-in-out var(--fo) infinite alternate;
  transition: transform .25s ease;
  will-change: transform;
}
/* levitation: a soft floor shadow that swells as the logo dips and
   tightens as it rises — same timing vars keep the pair in sync */
.ou-orbit-item::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 64px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(11, 11, 11, .30), rgba(11, 11, 11, 0) 72%);
  animation: ou-orbit-shadow var(--fd) ease-in-out var(--fo) infinite alternate;
  pointer-events: none;
}
.ou-orbit-item:hover img { transform: scale(1.12) translateY(-2px); }

/* the Gentle Mates mark is a pure-white dark-mode asset — invert to ink
   so it reads on the cream page */
.ou-orbit-item img[src*="Gentle_Mates_darkmode"],
.ou-orbit-item img[src*="havok-by-vitality"] { filter: invert(1); }

/* scattered rhythms so the row feels alive, not mechanical */
.ou-orbit-item:nth-child(2n)  { --fd: 4.4s; --fo: -1.2s; }
.ou-orbit-item:nth-child(3n)  { --fd: 3.1s; --fo: -2.1s; }
.ou-orbit-item:nth-child(4n)  { --fd: 5s;   --fo: -0.6s; }
.ou-orbit-item:nth-child(5n)  { --fd: 3.9s; --fo: -2.8s; }

@keyframes ou-orbit-drift {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes ou-orbit-float {
  from { translate: 0 -8px; }
  to   { translate: 0 5px; }
}
@keyframes ou-orbit-shadow {
  from { transform: translateX(-50%) scale(.62); opacity: .35; }
  to   { transform: translateX(-50%) scale(1.18); opacity: .85; }
}

@media (max-width: 767px) {
  .ou-orbit { padding: 20px 0 6px; }
  .ou-orbit-item img { height: 38px; max-width: 104px; }
  .ou-orbit-seq { gap: 56px; padding-right: 56px; }
  .ou-orbit-label { margin-bottom: 26px; padding: 0 24px; letter-spacing: .16em; }
}
@media (prefers-reduced-motion: reduce) {
  .ou-orbit-row, .ou-orbit-item img, .ou-orbit-item::after { animation: none; }
}

/* ==========================================================================
   Manifesto — oversized editorial statement; words rise in one by one
   when the section scrolls into view (reveal is gated on html.ou-js so
   the text is always visible without JS).
   ========================================================================== */
.ou-manifesto-section { padding: 40px 0 10px; }
.ou-mani-statement {
  margin: 0;
  text-transform: uppercase;
  font-weight: 800;
  font-size: clamp(42px, 7.2vw, 108px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--ou-ink);
}
.ou-mani-line { display: block; }
.ou-mani-w { display: inline-block; }
.ou-mani-line .ou-mani-w:last-child { color: var(--ou-muted); }
.ou-mani-sub {
  max-width: 560px;
  margin: 34px 0 0 4px;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--ou-muted);
}

/* hidden state only when JS is running; revealed by .is-in */
html.ou-js .ou-manifesto .ou-mani-w,
html.ou-js .ou-manifesto .ou-mani-sub {
  opacity: 0;
  transform: translateY(.55em);
  transition: opacity .6s cubic-bezier(.22,.9,.26,1), transform .6s cubic-bezier(.22,.9,.26,1);
  transition-delay: calc(var(--i, 0) * 90ms);
}
html.ou-js .ou-manifesto.is-in .ou-mani-w,
html.ou-js .ou-manifesto.is-in .ou-mani-sub {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 767px) {
  .ou-manifesto-section { padding: 16px 0 0; }
  .ou-mani-statement { font-size: clamp(38px, 11vw, 64px); }
  .ou-mani-sub { margin-top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html.ou-js .ou-manifesto .ou-mani-w,
  html.ou-js .ou-manifesto .ou-mani-sub { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Feature cards — "ink sweep index". Generic icons are replaced by big
   editorial numerals; on hover an ink panel floods up from the bottom,
   the content inverts to cream and an arrow chip surfaces. Cards rise in
   with a stagger when the grid scrolls into view (gated on html.ou-js).
   ========================================================================== */
.ou-feature {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: var(--ou-cream-light);
  border: 1px solid var(--ou-cream-deep);
  padding: 34px 32px 66px;
  transition: transform .45s cubic-bezier(.22,.9,.26,1), box-shadow .45s ease, border-color .45s ease;
}
.ou-feature > * { position: relative; z-index: 1; }

.ou-feature-num {
  font-weight: 800;
  font-size: 58px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ou-cream-deep);
  margin-bottom: 18px;
  transition: color .45s ease, transform .45s cubic-bezier(.22,.9,.26,1);
}
.ou-feature .step-main-title,
.ou-feature p { transition: color .45s ease; }

.ou-feature-fill {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--ou-ink);
  transform: scaleY(0);
  transform-origin: bottom center;
  transition: transform .5s cubic-bezier(.22,.9,.26,1);
  border-radius: inherit;
  pointer-events: none;
}
.ou-feature-arrow {
  position: absolute;
  right: 26px;
  bottom: 22px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--ou-cream-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ou-ink);
  opacity: 0;
  transform: translateY(10px) rotate(-45deg);
  transition: opacity .4s ease, transform .5s cubic-bezier(.22,.9,.26,1), border-color .4s ease, color .4s ease;
}
.ou-feature-arrow svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }

.ou-feature:hover {
  transform: translateY(-6px);
  border-color: var(--ou-ink);
  box-shadow: 0 34px 60px -34px rgba(11, 11, 11, .45);
}
.ou-feature:hover .ou-feature-fill { transform: scaleY(1); }
.ou-feature:hover .ou-feature-num { color: var(--ou-muted); transform: translateX(4px); }
.ou-feature:hover .step-main-title { color: var(--ou-cream); }
.ou-feature:hover p { color: rgba(244, 240, 235, .72); }
.ou-feature:hover .ou-feature-arrow {
  opacity: 1;
  transform: translateY(0) rotate(0deg);
  border-color: rgba(244, 240, 235, .35);
  color: var(--ou-cream);
}

/* staggered entrance */
html.ou-js .ou-feature-grid .ou-feature {
  opacity: 0;
  translate: 0 36px;
}
html.ou-js .ou-feature-grid.is-in .ou-feature {
  opacity: 1;
  translate: 0 0;
  transition:
    opacity .6s cubic-bezier(.22,.9,.26,1) calc(var(--i, 0) * 90ms),
    translate .6s cubic-bezier(.22,.9,.26,1) calc(var(--i, 0) * 90ms),
    transform .45s cubic-bezier(.22,.9,.26,1), box-shadow .45s ease, border-color .45s ease;
}

@media (max-width: 767px) {
  .ou-feature { padding: 28px 24px 62px; }
  .ou-feature-num { font-size: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  html.ou-js .ou-feature-grid .ou-feature { opacity: 1; translate: none; }
  .ou-feature-fill { transition: none; }
}
