@font-face {
  font-family: 'Gloria Hallelujah';
  src: url('../assets/GloriaHallelujah-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ===== Venture Homepage - Redesigned (Light) ===== */

/* Venture pages use Montserrat everywhere, including the shared nav */
.nav-links a {
  font-family: 'Montserrat', sans-serif;
}

/* ---------- Hero ---------- */
.v-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  overflow: hidden;
}

/* Hero topographic canvas */
.v-hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.v-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 960px;
}

.v-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 2.5rem;
}

/* Unified section eyebrow - same voice as the Roliner pages, with a
   pulsating pink dot instead of the old pill background. */
.v-intro-eyebrow,
.v-gap-eyebrow,
.v-features-eyebrow,
.v-val-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(0, 0, 0, 0.55);
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
  margin: 0 0 1.2rem;
}

.v-dot {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(237, 33, 124, 0.6);
  flex-shrink: 0;
  animation: v-dot-pulse 1.6s ease-in-out infinite;
}

.v-dot::before,
.v-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
  animation: v-dot-ping 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.v-dot::after { animation-delay: 1.1s; }

@keyframes v-dot-pulse {
  0%, 100% { transform: scale(1);    box-shadow: 0 0 8px rgba(237, 33, 124, 0.6); }
  50%      { transform: scale(1.15); box-shadow: 0 0 14px rgba(237, 33, 124, 1); }
}

@keyframes v-dot-ping {
  0%   { transform: scale(1);   opacity: 0.6; }
  80%, 100% { transform: scale(3.2); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .v-dot, .v-dot::before, .v-dot::after { animation: none; }
}

.v-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  color: #111;
  line-height: 1.15;
  margin-bottom: 2rem;
}

.v-title-line {
  display: block;
}

/* Text rotate container - highlighted box */
.v-rotate-box {
  display: inline-block;
  position: relative;
  overflow: hidden;
  vertical-align: bottom;
  height: 1.2em;
  min-width: 3em;
  background: var(--accent);
  color: #fff;
  padding: 0 0.2em;
  border-radius: 6px;
  margin: 0 0.08em;
}

.v-rotate-word {
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  text-align: center;
  color: #fff;
  font-weight: 700;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.v-rotate-word.active {
  transform: translateY(0);
  opacity: 1;
}

.v-rotate-word.exit-up {
  transform: translateY(-110%);
  opacity: 0;
}

.v-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  color: #666;
  max-width: 560px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

.v-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #111;
  text-decoration: none;
  padding: 0;
  background: transparent;
  border: none;
}

.v-hero-cta-label {
  font-weight: 600;
  transition: color 0.3s ease;
}

.v-hero-cta-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 0, 0, 0.25);
  color: #111;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.v-hero-cta-circle svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.v-hero-cta:hover .v-hero-cta-circle {
  background: #111;
  border-color: #111;
  color: #f5f5f5;
  transform: translateX(3px);
}

.v-hero-cta:hover .v-hero-cta-label {
  color: #000;
}

.scroll-indicator {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 10;
  opacity: 1;
  transition: opacity 0.3s ease;
}

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

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

.scroll-indicator span {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.3);
}

/* ---------- Section base ---------- */
.v-section {
  padding: 7rem 2rem;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.v-section.v-visible {
  opacity: 1;
  transform: translateY(0);
}

.v-section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* ---------- Introduction section (sticky scroll-reveal) ---------- */
.v-intro-scroll-container {
  position: relative;
}

.v-intro-section {
  padding: 7rem 2rem;
}

.v-intro-section .v-section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.v-intro {
  background: #f5f5f5;
  color: #111;
}

.v-intro-heading {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: #111;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

/* Squiggly underline highlight */
.v-highlight {
  position: relative;
  display: inline;
  white-space: nowrap;
}

.v-highlight svg {
  position: absolute;
  bottom: -6px;
  left: -4px;
  width: calc(100% + 8px);
  height: 14px;
  overflow: visible;
  pointer-events: none;
}

.v-highlight svg path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  transition: stroke-dashoffset 2.2s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.v-visible .v-highlight svg path,
.v-highlight.drawn svg path {
  stroke-dashoffset: 0;
}

.v-intro-body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.8;
  color: #555;
}

/* Top row: title left + slider right */
.v-intro-hero {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.v-intro-title {
  flex: 1;
  min-width: 0;
}

.v-intro-body {
  margin-top: 2rem;
  max-width: 420px;
}

.v-intro-publication {
  margin-top: 2.5rem;
  text-align: center;
}

/* ===== Comparison slider ===== */
.v-compare {
  flex-shrink: 0;
  width: 520px;
  position: relative;
  cursor: col-resize;
}

.v-compare-img {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.v-compare > .v-compare-img {
  position: relative;
  top: 3px;
}

.v-compare-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
}

.v-compare-overlay .v-compare-img {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: var(--compare-w, 520px);
  height: auto;
}

/* Drag handle */
.v-compare-handle {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 3;
  pointer-events: none;
}

.v-compare-line {
  flex: 1;
  width: 2px;
  background: rgba(255,255,255,0.7);
}

.v-compare-knob {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  flex-shrink: 0;
  pointer-events: auto;
  cursor: col-resize;
}

.v-compare-knob svg {
  width: 18px;
  height: 18px;
}

/* ===== Hand-drawn annotations ===== */
.v-compare-wrap {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.v-annotation {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.v-annotation-text {
  font-family: 'Gloria Hallelujah', cursive;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--accent);
  text-transform: uppercase;
  line-height: 1.3;
  text-align: center;
  clip-path: inset(0 100% 0 0);
  opacity: 0;
  transition: clip-path 1.4s cubic-bezier(0.25, 0.1, 0.25, 1), opacity 0.4s ease;
}

.v-annotation-top {
  align-self: flex-start;
  margin-left: -1rem;
}

.v-annotation-bottom {
  align-self: flex-end;
}

/* Animate in when squiggly line triggers */
.v-compare-wrap.annotations-visible .v-annotation-top .v-annotation-text {
  clip-path: inset(0 0% 0 0);
  opacity: 1;
  transition-delay: 0.6s;
}

.v-compare-wrap.annotations-visible .v-annotation-bottom .v-annotation-text {
  clip-path: inset(0 0% 0 0);
  opacity: 1;
  transition-delay: 1.2s;
}

.v-nature-link {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 12px rgba(0,0,0,0.03);
}

.v-nature-link:hover {
  border-color: rgba(0,0,0,0.15);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

.v-nature-logo {
  height: 18px;
  width: auto;
  flex-shrink: 0;
}

.v-nature-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #999;
}

.v-nature-arrow {
  width: 16px;
  height: 16px;
  color: #999;
  flex-shrink: 0;
  transition: color 0.3s ease;
}

.v-nature-link:hover .v-nature-arrow {
  color: var(--accent);
}

/* ---------- Tech Gap Section ---------- */
.v-gap-section {
  background: #f5f5f5;
  padding: 8rem 2rem;
}

.v-gap-inner {
  text-align: center;
  max-width: 800px;
}

.v-gap-heading {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: #111;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.v-gap-heading strong {
  color: var(--accent);
}

.v-gap-sub {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.8;
  color: #666;
  max-width: 580px;
  margin: 0 auto 3.5rem;
}

.v-gap-sub strong {
  font-weight: 600;
  color: #111;
}

/* ---------- Domain Carousel ---------- */
.v-carousel {
  position: relative;
  margin-top: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.v-carousel-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  padding: 2rem 0;
  width: 100%;
}

.v-carousel-track::-webkit-scrollbar {
  display: none;
}

.v-carousel-dots {
  display: none;
}

.v-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.15);
  padding: 0;
  cursor: pointer;
  transition: background 0.3s ease, width 0.3s ease;
}

.v-carousel-dot:hover {
  background: rgba(0, 0, 0, 0.3);
}

.v-carousel-dot.is-active {
  background: #ed217c;
  width: 24px;
  border-radius: 4px;
}

/* ---------- Border Glow Card ---------- */
.border-glow-card {
  --edge-proximity: 0;
  --cursor-angle: 180deg;
  --edge-sensitivity: 30;
  --color-sensitivity: 50;
  --border-radius: 24px;
  --glow-padding: 40px;
  --cone-spread: 25;
  --card-bg: #ffffff;

  position: relative;
  border-radius: var(--border-radius);
  isolation: isolate;
  transform: translate3d(0, 0, 0.01px);
  display: grid;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--card-bg);
  overflow: visible;
  width: 100%;
  min-width: 0;
}

@property --cursor-angle {
  syntax: '<angle>';
  inherits: true;
  initial-value: 180deg;
}

@property --edge-proximity {
  syntax: '<number>';
  inherits: true;
  initial-value: 0;
}

.border-glow-card::before,
.border-glow-card::after,
.border-glow-card > .edge-light {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: -1;
  pointer-events: none;
}

.border-glow-card:not(.is-selected)::before,
.border-glow-card:not(.is-selected)::after,
.border-glow-card:not(.is-selected) > .edge-light {
  opacity: 0;
  transition: opacity 0.35s ease-out;
}

/* Glow disabled - keep the cards static (no rotating border arc on the
   active "Sport" card or any other). */
.border-glow-card.is-selected::before,
.border-glow-card.is-selected::after,
.border-glow-card.is-selected > .edge-light {
  opacity: 0 !important;
}
.border-glow-card.is-selected {
  animation: none !important;
}

@keyframes borderGlowRotate {
  from { --cursor-angle: 0deg; }
  to   { --cursor-angle: 360deg; }
}

/* colored mesh-gradient border */
.border-glow-card::before {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--card-bg, #060010) 0 100%) padding-box,
    linear-gradient(rgb(255 255 255 / 0%) 0% 100%) border-box,
    var(--gradient-one, radial-gradient(at 80% 55%, hsla(328, 100%, 70%, 1) 0px, transparent 50%)) border-box,
    var(--gradient-two, radial-gradient(at 69% 34%, hsla(349, 100%, 74%, 1) 0px, transparent 50%)) border-box,
    var(--gradient-three, radial-gradient(at 8% 6%, hsla(290, 100%, 78%, 1) 0px, transparent 50%)) border-box,
    var(--gradient-four, radial-gradient(at 41% 38%, hsla(320, 100%, 74%, 1) 0px, transparent 50%)) border-box,
    var(--gradient-five, radial-gradient(at 86% 85%, hsla(340, 100%, 74%, 1) 0px, transparent 50%)) border-box,
    var(--gradient-six, radial-gradient(at 82% 18%, hsla(300, 100%, 75%, 1) 0px, transparent 50%)) border-box,
    var(--gradient-seven, radial-gradient(at 51% 4%, hsla(12, 100%, 72%, 1) 0px, transparent 50%)) border-box,
    var(--gradient-base, linear-gradient(#ed217c 0 100%)) border-box;

  opacity: calc((var(--edge-proximity) - var(--color-sensitivity)) / (100 - var(--color-sensitivity)));

  mask-image:
    conic-gradient(
      from var(--cursor-angle) at center,
      black calc(var(--cone-spread) * 1%),
      transparent calc((var(--cone-spread) + 15) * 1%),
      transparent calc((100 - var(--cone-spread) - 15) * 1%),
      black calc((100 - var(--cone-spread)) * 1%)
    );
}

/* colored mesh-gradient background fill near edges */
.border-glow-card::after {
  border: 1px solid transparent;
  background:
    var(--gradient-one, radial-gradient(at 80% 55%, hsla(328, 100%, 70%, 1) 0px, transparent 50%)) padding-box,
    var(--gradient-two, radial-gradient(at 69% 34%, hsla(349, 100%, 74%, 1) 0px, transparent 50%)) padding-box,
    var(--gradient-three, radial-gradient(at 8% 6%, hsla(290, 100%, 78%, 1) 0px, transparent 50%)) padding-box,
    var(--gradient-four, radial-gradient(at 41% 38%, hsla(320, 100%, 74%, 1) 0px, transparent 50%)) padding-box,
    var(--gradient-five, radial-gradient(at 86% 85%, hsla(340, 100%, 74%, 1) 0px, transparent 50%)) padding-box,
    var(--gradient-six, radial-gradient(at 82% 18%, hsla(300, 100%, 75%, 1) 0px, transparent 50%)) padding-box,
    var(--gradient-seven, radial-gradient(at 51% 4%, hsla(12, 100%, 72%, 1) 0px, transparent 50%)) padding-box,
    var(--gradient-base, linear-gradient(#ed217c 0 100%)) padding-box;

  mask-image:
    linear-gradient(to bottom, black, black),
    radial-gradient(ellipse at 50% 50%, black 40%, transparent 65%),
    radial-gradient(ellipse at 66% 66%, black 5%, transparent 40%),
    radial-gradient(ellipse at 33% 33%, black 5%, transparent 40%),
    radial-gradient(ellipse at 66% 33%, black 5%, transparent 40%),
    radial-gradient(ellipse at 33% 66%, black 5%, transparent 40%),
    conic-gradient(from var(--cursor-angle) at center, transparent 5%, black 15%, black 85%, transparent 95%);

  mask-composite: subtract, add, add, add, add, add;
  opacity: calc(var(--fill-opacity, 0.5) * (var(--edge-proximity) - var(--color-sensitivity)) / (100 - var(--color-sensitivity)));
  mix-blend-mode: soft-light;
}

/* outer glow layer */
.border-glow-card > .edge-light {
  inset: calc(var(--glow-padding) * -1);
  pointer-events: none;
  z-index: 1;

  mask-image:
    conic-gradient(
      from var(--cursor-angle) at center, black 2.5%, transparent 10%, transparent 90%, black 97.5%
    );

  opacity: calc((var(--edge-proximity) - var(--edge-sensitivity)) / (100 - var(--edge-sensitivity)));
  mix-blend-mode: plus-lighter;
}

.border-glow-card > .edge-light::before {
  content: "";
  position: absolute;
  inset: var(--glow-padding);
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px var(--glow-color, hsl(328deg 100% 75% / 100%)),
    inset 0 0 1px 0 var(--glow-color-60, hsl(328deg 100% 75% / 60%)),
    inset 0 0 3px 0 var(--glow-color-50, hsl(328deg 100% 75% / 50%)),
    inset 0 0 6px 0 var(--glow-color-40, hsl(328deg 100% 75% / 40%)),
    inset 0 0 15px 0 var(--glow-color-30, hsl(328deg 100% 75% / 30%)),
    inset 0 0 25px 2px var(--glow-color-20, hsl(328deg 100% 75% / 20%)),
    inset 0 0 50px 2px var(--glow-color-10, hsl(328deg 100% 75% / 10%)),
    0 0 1px 0 var(--glow-color-60, hsl(328deg 100% 75% / 60%)),
    0 0 3px 0 var(--glow-color-50, hsl(328deg 100% 75% / 50%)),
    0 0 6px 0 var(--glow-color-40, hsl(328deg 100% 75% / 40%)),
    0 0 15px 0 var(--glow-color-30, hsl(328deg 100% 75% / 30%)),
    0 0 25px 2px var(--glow-color-20, hsl(328deg 100% 75% / 20%)),
    0 0 50px 2px var(--glow-color-10, hsl(328deg 100% 75% / 10%));
}

.border-glow-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 2.2rem 1.8rem 1.8rem;
  min-height: 310px;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Card content */
.v-glow-icon {
  width: 38px;
  height: 38px;
  color: #111;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.v-glow-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: #111;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 0.8rem;
}

/* =====================================================================
   Hover style for the venture market cards (Sport / Prosthetics /
   Exoskeletons / Augmentation). Mirrors the team-page bento-card hover:
   a thin pink line draws across the top + the card lifts slightly with
   a softer shadow. The card's original rotating-border-glow effect is
   already disabled - we repurpose the dormant .edge-light child as the
   animated pink top line.
   ===================================================================== */
.border-glow-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.border-glow-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

/* Reuse .edge-light as a hover-only pink top line. Override the original
   glow-effect properties (inset, mask, mix-blend-mode, etc.). */
.border-glow-card > .edge-light {
  inset: 0 0 auto 0 !important;
  height: 2px !important;
  background: #ed217c !important;
  border-radius: 0 !important;
  opacity: 1 !important;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.5s ease;
  mask-image: none !important;
  -webkit-mask-image: none !important;
  mix-blend-mode: normal !important;
  z-index: 2;
}

.border-glow-card > .edge-light::before {
  /* Turn off the original inner-shadow halo that lived in the
     ::before of the edge-light. */
  display: none !important;
}

.border-glow-card:hover > .edge-light {
  transform: scaleX(1);
}

.v-glow-desc {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 0.82rem;
  color: rgba(0, 0, 0, 0.55);
  line-height: 1.7;
  flex-grow: 1;
  margin-bottom: 1.2rem;
}

.v-glow-tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  margin-top: auto;
}

.v-glow-tags li {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.66rem;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.55);
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

@media (max-width: 768px) {
  /* Mobile hero title - bumped clamp to match the roliner + landing
     hero titles. The desktop clamp's 2.4rem floor reads visibly smaller
     than the inner pages on a phone; this brings all three sites' hero
     titles to the same scale on narrow viewports. */
  .v-title {
    font-size: clamp(48px, 13vw, 72px);
  }

  /* Stack the Sport / Prosthetics / Exoskeletons / Augmentation cards
     vertically (one per row) instead of the desktop 4-col / mid 2-col grid. */
  .v-carousel-track {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .v-carousel {
    gap: 0.5rem;
  }

  .border-glow-card {
    width: 100%;
  }

  .border-glow-inner {
    padding: 1.8rem 1.5rem 1.6rem;
    min-height: 0; /* let each card size to its content when stacked */
  }

  .v-carousel-btn {
    width: 36px;
    height: 36px;
  }
}

/* ---------- Features - CardSwap ---------- */
.v-features-section {
  background: #f5f5f5;
  color: #111;
}

/* Desktop only: pinned scrollytelling.
   - The section becomes a 600vh scroll runway (= 5 transitions × 100vh).
   - Inside, .v-features-pinned sticks to the top of the viewport while
     the runway scrolls past, giving the JS a fixed canvas on which to
     scrub the cards directly from scroll position.
   - Critical override: the .v-section fade-in (opacity 0 + translateY)
     relies on an IntersectionObserver with threshold 0.12 to flip on
     .v-visible. A 1000vh / 600vh section maxes out at ~10% viewport
     intersection - the threshold is unreachable, so .v-visible would
     never get added and the section would stay invisible. We force
     it visible here.
   - On mobile (<= 900px) the wrapper is a no-op and the original
     auto-cycle handles the rotation - pinning a 100vh section on a
     phone is awful. */
@media (min-width: 901px) {
  .v-features-section {
    /* 500vh of transitions (5 × 100vh, one per card swap) +
       150vh of end-hold so the last card (#learns) stays in front
       for a beat before the section unpins. Plus 100vh of viewport
       that's "inside" the section while pinned = 750vh total. */
    min-height: 750vh;
    /* Drop the inherited 7rem top/bottom from .v-section. With sticky
       positioning, that padding sits BEFORE the pinned content can
       start sticking and AFTER it unpins - i.e. visible empty space
       at both ends of the section. Kill it on desktop only (mobile
       still benefits from the padding for its non-pinned layout). */
    padding-top: 0;
    padding-bottom: 0;
    opacity: 1 !important;
    transform: none !important;
  }
  .v-features-pinned {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden; /* clip the 120%-wide cardswap stage */
  }
}


.v-features-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  min-height: 560px;
}

.v-features-copy {
  max-width: 480px;
}

.v-features-heading {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: #111;
  line-height: 1.1;
  margin-bottom: 1.8rem;
  letter-spacing: -0.02em;
}

.v-features-sub {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #555;
}

/* CardSwap stage - reserves the area for the rotating card stack */
.v-cardswap-stage {
  position: relative;
  width: 120%;
  margin-left: -10%;
  max-width: 120%;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 900px;
  perspective-origin: 50% 50%;
  overflow: hidden;
}

.v-cardswap {
  position: relative;
  width: min(420px, 100%);
  height: 320px;
  transform-style: preserve-3d;
}

.v-swap-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(420px, 100%);
  height: 320px;
  padding: 2.4rem 2.2rem 2.2rem;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 10px 40px rgba(0, 0, 0, 0.08),
    0 30px 80px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform;
  cursor: pointer;
  transition: box-shadow 0.25s ease;
}

.v-swap-card:hover {
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 14px 48px rgba(0, 0, 0, 0.12),
    0 34px 90px rgba(0, 0, 0, 0.08);
}

/* Desktop pinned scrollytelling: scroll is the navigation, so cards are
   no longer clickable - drop the pointer cursor and the hover lift so
   the cards don't pretend to be interactive. */
@media (min-width: 901px) {
  .v-swap-card {
    cursor: default;
  }
  .v-swap-card:hover {
    box-shadow:
      0 1px 2px rgba(0, 0, 0, 0.04),
      0 10px 40px rgba(0, 0, 0, 0.08),
      0 30px 80px rgba(0, 0, 0, 0.06);
  }
}

/* Card-swap progress indicator - a glass pill that sits inside the
   stage and shows which of the 6 cards is currently up front. */
.v-cardswap-progress {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  z-index: 50;
  pointer-events: auto;
}

.v-cardswap-dot {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
}

.v-cardswap-dot.active {
  width: 20px;
  background: #ed217c;
}

/* Chevron controls - hidden on desktop (scroll drives the cards there).
   Shown on mobile as the primary tap targets for prev / next. */
.v-cardswap-arrow {
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 999px;
  background: none;
  color: rgba(0, 0, 0, 0.6);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, opacity 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}
.v-cardswap-arrow svg {
  width: 18px;
  height: 18px;
  display: block;
}
.v-cardswap-arrow:hover {
  color: #ed217c;
  background: rgba(0, 0, 0, 0.04);
}
.v-cardswap-arrow:disabled {
  opacity: 0.25;
  cursor: default;
  pointer-events: none;
}

/* Mobile: show chevrons, tighten the pill a touch so it doesn't get too
   wide with the extra controls. Dots stay at their original small size. */
@media (max-width: 900px) {
  .v-cardswap-progress {
    bottom: 0.6rem;
    gap: 0.5rem;
    padding: 0.3rem 0.4rem;
  }
  .v-cardswap-arrow {
    display: inline-flex;
  }
}

.v-swap-icon {
  position: absolute;
  top: 1.9rem;
  right: 2.1rem;
  width: 44px;
  height: 44px;
  color: #111;
  stroke-width: 2.4;
}

.v-swap-tag {
  position: absolute;
  top: 2.1rem;
  left: 2.2rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  /* Default colours (overridden per-card below). */
  color: #047857;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.22);
}

/* Per-card pill colours - one hue per # tag so the cards are
   visually distinct as they cycle. Order matches the markup:
   #adapts → pink, #senses → blue, #controls → emerald,
   #protects → amber, #integrates → violet, #learns → cyan. */
.v-cardswap .v-swap-card:nth-child(1) .v-swap-tag {
  color: #be185d;
  background: rgba(236, 72, 153, 0.1);
  border-color: rgba(236, 72, 153, 0.22);
}
.v-cardswap .v-swap-card:nth-child(2) .v-swap-tag {
  color: #1d4ed8;
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.22);
}
.v-cardswap .v-swap-card:nth-child(3) .v-swap-tag {
  color: #047857;
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.22);
}
.v-cardswap .v-swap-card:nth-child(4) .v-swap-tag {
  color: #b45309;
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.22);
}
.v-cardswap .v-swap-card:nth-child(5) .v-swap-tag {
  color: #6d28d9;
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.22);
}
.v-cardswap .v-swap-card:nth-child(6) .v-swap-tag {
  color: #0e7490;
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.22);
}

.v-swap-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #111;
  margin-bottom: 0.9rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.v-swap-body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 0.92rem;
  line-height: 1.7;
  color: #666;
}

/* ---------- Validation / Stats ---------- */
.v-validation-section {
  background: #f5f5f5;
  color: #111;
}

.v-validation-inner {
  text-align: center;
}

.v-val-heading {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: #111;
  line-height: 1.2;
  margin-bottom: 3rem;
}

.v-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  margin-bottom: 4rem;
}

.v-stat {
  text-align: center;
}

.v-stat-num {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 4vw, 3.8rem);
  color: #111;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.v-stat-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #999;
}

.v-stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(0,0,0,0.12);
}

/* Partners track */
.v-partners {
  margin-top: 2rem;
}

.v-partners-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 1.5rem;
  text-align: center;
}

.v-partners-track {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, white 10%, white 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, white 10%, white 90%, transparent);
}

.v-partners-scroll {
  display: flex;
  align-items: center;
  width: max-content;
  animation: partner-scroll 65s linear infinite;
}

/* Two of these sit side-by-side inside .v-partners-scroll. Each carries
   its own internal gap PLUS a trailing padding-right equal to that gap,
   so the two halves are pixel-identical in width and the -50% loop is
   mathematically seamless (no half-gap drift on each cycle). */
.v-partners-set {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding-right: 3rem;
  flex-shrink: 0;
}

.v-partners-scroll img {
  height: 38px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  opacity: 0.5;
  filter: grayscale(100%) brightness(0);
  transition: opacity 0.3s ease;
  flex-shrink: 0;
}

.v-partners-scroll img:hover {
  opacity: 0.7;
}

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

/* Mobile - the desktop 3rem gap + 10% edge fade is too wide for a ~400px
   viewport: only 2-3 logos fit at once, and they spend most of their
   on-screen time half-faded, so they look like they blink in and out.
   Tighten everything on mobile so the strip reads continuously. */
@media (max-width: 768px) {
  .v-partners-track {
    mask-image: linear-gradient(to right, transparent, white 4%, white 96%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, white 4%, white 96%, transparent);
  }
  /* Speed up slightly so the visible spacing isn't lonely between icons */
  .v-partners-scroll {
    animation-duration: 45s;
  }
  /* Tighter gap between logos AND matching trailing padding so the two
     halves stay equal-width and the loop remains seamless on mobile too. */
  .v-partners-set {
    gap: 1.6rem;
    padding-right: 1.6rem;
  }
  .v-partners-scroll img {
    height: 46px;
    max-width: 150px;
  }
}

/* ---------- CTA section ---------- */
.v-cta-section {
  background: #f5f5f5;
  color: #111;
  padding: 7rem 2rem;
  position: relative;
  overflow: hidden;
}

.v-cta-topo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.v-cta-inner {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.v-cta-tag {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #047857;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.22);
  padding: 0.28rem 0.6rem;
  border-radius: 5px;
  letter-spacing: 0.08em;
  margin-bottom: 1.4rem;
}

.v-cta-heading {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  color: #111;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 2.6rem;
  max-width: 14ch;
}

.v-cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.v-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.95rem 1.8rem;
  border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  letter-spacing: -0.005em;
}

.v-cta-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.v-cta-btn-primary {
  background: #111;
  color: #fff;
  border: 1.5px solid #111;
}

.v-cta-btn-primary:hover {
  background: var(--accent, #ed217c);
  border-color: var(--accent, #ed217c);
  box-shadow: 0 8px 24px rgba(237, 33, 124, 0.25);
}

.v-cta-btn-ghost {
  background: transparent;
  color: #111;
  border: 1.5px solid rgba(0, 0, 0, 0.15);
}

.v-cta-btn-ghost:hover {
  background: #fff;
  border-color: #111;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

@media (max-width: 768px) {
  .v-cta-section {
    padding: 5rem 1.5rem;
  }

  .v-cta-actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
  }

  .v-cta-btn {
    justify-content: center;
    width: 100%;
  }
}

/* ---------- Light marquee (matches team page) ---------- */
.marquee-section {
  background: #f5f5f5;
}

.marquee-text {
  color: rgba(0, 0, 0, 0.4) !important;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 400 !important;
  letter-spacing: 0.1em !important;
}

.marquee-section:hover .marquee-text {
  color: rgba(0, 0, 0, 0.6) !important;
}

.marquee-spacer {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  vertical-align: middle;
}

.marquee-spacer .mhex {
  clip-path: none;
  border-radius: 60% 40% 50% 45% / 50% 60% 40% 55%;
  position: static !important;
}

.marquee-spacer .mhex.filled {
  background: rgba(0, 0, 0, 0.3) !important;
}

.marquee-spacer .mhex.outline {
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25) !important;
}

/* ---------- Body background ---------- */
body.v-light-page {
  background: #f5f5f5;
}

/* Footer override for light page */
.footer {
  background: #111;
}

/* ---------- Light nav (matches team page) ---------- */
.section-nav.scrolled {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.section-nav .nav-links a,
.section-nav.scrolled .nav-links a {
  color: #888;
  background: transparent;
  border-radius: 4px;
  padding: 0.35rem 0.8rem;
  transition: background 0.25s ease, color 0.25s ease;
}

/* Hide the [ ] bracket decorations from shared.css */
.section-nav .nav-links a::before,
.section-nav .nav-links a::after,
.section-nav.scrolled .nav-links a::before,
.section-nav.scrolled .nav-links a::after {
  display: none !important;
  content: none !important;
}

/* Hover: grey pill, like a softer selected state */
.section-nav .nav-links a:hover,
.section-nav.scrolled .nav-links a:hover {
  background: rgba(0, 0, 0, 0.08);
  color: #111;
}

/* Active (not scrolled): dark pill, white text */
.section-nav .nav-links a.active {
  background: #111;
  color: #fff;
  font-weight: 500;
  border-radius: 4px;
}

/* Active (scrolled): plain black text, no pill */
.section-nav.scrolled .nav-links a.active {
  background: transparent;
  color: #111;
  font-weight: 600;
  border-radius: 0;
}

/* Hamburger bars: dark on light */
body.v-light-page .nav-hamburger span {
  background: #111;
}

/* Mobile dropdown: fully opaque light panel - matches the roliner home page
   so venture pages get the same white menu when opened on mobile. */
body.v-light-page .nav-dropdown {
  background: #f5f5f5;
  border-color: rgba(0, 0, 0, 0.08);
}

body.v-light-page .nav-dropdown a {
  color: #555;
  font-family: 'Montserrat', sans-serif;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

body.v-light-page .nav-dropdown a:hover,
body.v-light-page .nav-dropdown a.active {
  color: #111;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 6px;
  border-bottom-color: transparent;
  /* Negative margin lets the rounded halo breathe around the text while
     keeping the text's left edge in line with the other (non-active) items. */
  margin: 0 -0.8rem;
  padding: 0.7rem 0.8rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .v-features-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    min-height: 0;
  }

  .v-cardswap-stage {
    height: 420px;
  }

  .v-cardswap,
  .v-swap-card {
    width: 360px;
    height: 280px;
  }

  /* ===== "Hard surfaces meet soft skin" - match clinical page exactly =====
     The desktop layout puts the title left + the slider right in a flex row,
     wrapped in a section with a generous 7rem vertical padding. On mobile we
     mirror /roliner/clinical/ exactly: tighten the section padding, stack
     title + slider vertically, and shrink the slider + Nature link. */
  .v-intro-section {
    padding: 4rem 1.5rem;
  }
  .v-intro-section .v-section-inner {
    padding: 0;
  }
  .v-intro-hero {
    flex-direction: column;
    gap: 3rem;
  }
  .v-intro-title {
    width: 100%;
  }
  .v-intro-body {
    max-width: 100%;
    margin-top: 1.5rem;
  }
  .v-compare-wrap {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
  }
  .v-compare {
    width: 100%;
    max-width: 420px;
  }
  .v-intro-publication {
    margin-top: 2.5rem;
  }

  /* Nature Communications link - compact on phones so it doesn't stretch
     to the viewport edge. */
  .v-nature-link {
    padding: 0.7rem 1rem;
    gap: 0.55rem;
    border-radius: 10px;
  }
  .v-nature-logo {
    height: 14px;
  }
  .v-nature-label {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
  }
  .v-nature-arrow {
    width: 13px;
    height: 13px;
  }
}

@media (max-width: 768px) {
  .v-intro-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .v-intro-visual {
    order: -1;
  }

  .v-cardswap,
  .v-swap-card {
    width: 300px;
    height: 240px;
  }

  .v-swap-card {
    padding: 1.8rem 1.6rem 1.6rem;
  }

  .v-swap-icon {
    width: 36px;
    height: 36px;
    top: 1.4rem;
    right: 1.6rem;
  }

  .v-swap-tag {
    top: 1.55rem;
    left: 1.6rem;
    font-size: 0.66rem;
    padding: 0.26rem 0.6rem;
  }

  .v-swap-title {
    font-size: 1.2rem;
  }

  .v-stats {
    flex-direction: column;
    gap: 2rem;
  }

  .v-stat-divider {
    width: 40px;
    height: 1px;
  }

  .v-section {
    padding: 5rem 1.5rem;
  }

  .v-cta-section {
    padding: 5rem 1.5rem;
  }
}
