/* =========================================================
   AVOLVE Media — "BEYOND THE BRIEF" (our ventures section)

   Every rule in this file starts with .ventures, so it only
   affects this section. Brand colours were sampled from the
   original logo files:
     Render Room yellow  #ffcc00
     AVOLVE IPO burgundy #632b3b, tagline peach #f3ad91
   ========================================================= */

.ventures {
  --v-yellow: #ffcc00;
  --v-peach: #f7c6b2;          /* a lighter tint of the logo's tagline peach */
  --v-wine: #632b3b;
  --v-wine-ink: #431c28;       /* body text on peach (~9:1) */
  --v-ink: #000001;
  --v-paper: #f8f6f3;
  --v-dip: clamp(64px, 8.4vw, 128px);          /* how far the off-white page dips at the centre */
  --v-orbit-h: clamp(84px, 8.6vw, 136px);
  --v-medal: clamp(50px, 4.4vw, 68px);
  --v-logo-w: clamp(210px, 23vw, 350px);

  position: relative;
  isolation: isolate;
  margin: 0 var(--frame-gap) var(--frame-gap);
  border-radius: var(--radius-frame);
  overflow: hidden;
  overflow: clip;
  color: var(--v-ink);
  background:
    radial-gradient(28% 46% at 24% 62%, rgba(255, 238, 150, .5), transparent 72%),
    radial-gradient(28% 46% at 76% 62%, rgba(255, 236, 228, .55), transparent 72%),
    linear-gradient(90deg, var(--v-yellow) 50%, var(--v-peach) 50%);
}

/* Fine paper grain across the whole section */
.ventures::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .25 0 0 0 0 .18 0 0 0 0 .1 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

:where(.ventures) :is(h2, h3, p) { margin: 0; }   /* zero-specificity reset */

/* ---------- Heading area on the off-white page ---------- */
.ventures__head {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: clamp(46px, 5.6vw, 92px) var(--pad-x) clamp(30px, 3vw, 48px);
}
.ventures__sheet {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: -1;
  width: 100%;
  height: calc(100% + var(--v-dip));
  overflow: visible;
  filter: drop-shadow(0 10px 16px rgba(92, 58, 10, .2)) drop-shadow(0 2px 3px rgba(60, 30, 10, .12));
}
.ventures__rim {
  fill: none;
  stroke: rgba(196, 160, 82, .7);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.ventures__sheet-narrow,
.ventures__orbit-narrow { display: none; }

.ventures__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 6.6vw, 6.6rem);
  line-height: .95;
  letter-spacing: -.025em;
  color: var(--v-ink);
}
.ventures__title em { font-style: italic; }
.ventures__lede {
  margin-top: clamp(12px, 1.3vw, 20px);
  font-family: var(--sans);
  font-size: clamp(1.05rem, 1.75vw, 1.6rem);
  line-height: 1.35;
  letter-spacing: .02em;
  color: rgba(0, 0, 1, .82);
  text-wrap: balance;
}

/* ---------- Orbit line + medallion at the centre seam ---------- */
.ventures__orbit {
  position: absolute;
  left: 0; right: 0;
  top: calc(100% + var(--v-dip));
  height: var(--v-orbit-h);
  z-index: -2;               /* passes under the page edge, over the panels */
  pointer-events: none;
}
.ventures__orbit svg { width: 100%; height: 100%; overflow: visible; }
.ventures__node {
  position: absolute;
  width: 9px; height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
}
.ventures__node--gold {
  background: radial-gradient(circle at 35% 30%, #fff6c8, #d9a91a 55%, #8a6400);
  box-shadow: 0 1px 3px rgba(90, 60, 0, .35);
}
.ventures__node--wine {
  background: radial-gradient(circle at 35% 30%, #e7a3ae, #8a3b50 55%, #4a1b29);
  box-shadow: 0 1px 3px rgba(70, 20, 35, .35);
}
.ventures__node--1 { left: 23.9%; top: 27.5%; }
.ventures__node--2 { left: 6.9%;  top: 66.8%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; }
.ventures__node--3 { left: 81.6%; top: 22.7%; }

.ventures__medal {
  position: absolute;
  left: 50%;
  top: calc(100% + var(--v-dip));
  width: var(--v-medal);
  height: var(--v-medal);
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 42%),
    conic-gradient(from 20deg, #f3f4f5, #b8bdc1, #eef0f1, #9ea5aa, #f5f6f7, #b3b9bd, #f3f4f5);
  box-shadow:
    0 8px 18px -4px rgba(40, 25, 10, .38),
    0 2px 4px rgba(40, 25, 10, .22),
    inset 0 1px 1px rgba(255, 255, 255, .95),
    inset 0 -3px 6px rgba(60, 66, 72, .32),
    0 0 26px -2px rgba(0, 240, 255, .38);
}
.ventures__medal::before {           /* inner bevel ring */
  content: "";
  position: absolute;
  inset: 16%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 30%, #fdfdfd, #d4d8db 60%, #b9bfc3);
  box-shadow: inset 0 1px 2px rgba(60, 66, 72, .35), 0 1px 0 rgba(255, 255, 255, .9);
}
.ventures__medal svg {
  position: relative;
  width: 42%;
  height: 42%;
  fill: var(--cyan);
  filter: drop-shadow(0 0 4px rgba(0, 240, 255, .75)) drop-shadow(0 0 1px rgba(0, 120, 130, .6));
}

/* ---------- The two venture panels ---------- */
.ventures__panels {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
/* Soft centre fold where the two pages meet */
.ventures__panels::before {
  content: "";
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 48px;
  transform: translateX(-50%);
  pointer-events: none;
  background: linear-gradient(90deg,
    rgba(120, 80, 0, 0), rgba(120, 80, 0, .07) 47%,
    rgba(255, 255, 255, .28) 50%,
    rgba(99, 43, 59, .07) 53%, rgba(99, 43, 59, 0));
}

.ventures__panel {
  position: relative;
  display: flex;
  justify-content: center;
  padding: calc(var(--v-dip) + clamp(64px, 6.6vw, 104px)) clamp(24px, 4vw, 64px) clamp(56px, 6vw, 96px);
}
.ventures__panel--ipo { --v-text: var(--v-wine-ink); }

/* Faint background details, kept to the outer edge and faded inwards */
.ventures__deco {
  position: absolute;
  z-index: -1;
  top: -46%;
  width: min(380px, 40%);
  height: auto;
  pointer-events: none;
  user-select: none;
}
.ventures__panel--rr .ventures__deco {
  left: 0;
  opacity: .1;
  -webkit-mask-image: linear-gradient(90deg, #000 30%, transparent 100%);
          mask-image: linear-gradient(90deg, #000 30%, transparent 100%);
}
.ventures__panel--ipo .ventures__deco {
  right: 0;
  opacity: .5;
  -webkit-mask-image: linear-gradient(270deg, #000 35%, transparent 100%);
          mask-image: linear-gradient(270deg, #000 35%, transparent 100%);
}

.ventures__fold { display: none; }

.ventures__body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 460px;
  text-align: center;
}

/* Logos share one box height so the labels below line up */
.ventures__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(var(--v-logo-w) * .72);
  margin-bottom: clamp(26px, 2.6vw, 40px);
}
.ventures__logo img { width: var(--v-logo-w); height: auto; }
.ventures__panel--ipo .ventures__logo img { width: calc(var(--v-logo-w) * 1.04); }

.ventures__label {
  font-family: "Inter Strip", "Inter Create", var(--sans);
  font-weight: 700;
  font-size: clamp(.8rem, .95vw, .95rem);
  letter-spacing: .32em;
  text-transform: uppercase;
  margin-right: -.32em;      /* balances the trailing letter-space so it stays centred */
  color: var(--v-ink);
}
.ventures__panel--ipo .ventures__label { color: var(--v-wine); }

.ventures__intro {
  flex: 1 0 auto;
  max-width: 25em;
  margin: clamp(14px, 1.4vw, 20px) 0 clamp(26px, 2.6vw, 38px);
  font-family: var(--sans);
  font-size: clamp(1rem, 1.3vw, 1.22rem);
  line-height: 1.5;
  color: var(--v-text, rgba(0, 0, 1, .86));
  text-wrap: balance;
}

/* Buttons: rounded pills, subtle lift and arrow nudge on hover */
.ventures__btn {
  min-height: 54px;
  padding: 0 32px;
  color: var(--v-paper);
  transition: transform .3s var(--ease), background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.ventures__btn--rr { background: var(--v-ink); box-shadow: 0 8px 18px -12px rgba(0, 0, 1, .6); }
.ventures__btn--rr:hover { background: #1a1a1f; box-shadow: 0 14px 26px -12px rgba(0, 0, 1, .55); }
.ventures__btn--ipo { background: var(--v-wine); box-shadow: 0 8px 18px -12px rgba(67, 28, 40, .7); }
.ventures__btn--ipo:hover { background: #75344a; box-shadow: 0 14px 26px -12px rgba(67, 28, 40, .65); }
.ventures__btn:hover { transform: translateY(-2px); }
.ventures__btn:active { transform: translateY(0); }
.ventures__btn:focus-visible {
  outline: 2px solid var(--v-ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 7px rgba(255, 255, 255, .6);
}
.ventures__btn--ipo:focus-visible { outline-color: var(--v-wine-ink); }

/* ---------- Gentle entrance (only added by ventures.js when motion is allowed) ---------- */
.ventures--anim .ventures__title,
.ventures--anim .ventures__lede,
.ventures--anim .ventures__body {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.ventures--anim .ventures__medal,
.ventures--anim .ventures__orbit {
  opacity: 0;
  transition: opacity 1.1s var(--ease);
}
.ventures--anim .ventures__lede { transition-delay: .1s; }
.ventures--anim .ventures__medal,
.ventures--anim .ventures__orbit { transition-delay: .25s; }
.ventures--anim .ventures__panel--rr .ventures__body { transition-delay: .3s; }
.ventures--anim .ventures__panel--ipo .ventures__body { transition-delay: .42s; }
.ventures--anim.is-in .ventures__title,
.ventures--anim.is-in .ventures__lede,
.ventures--anim.is-in .ventures__body,
.ventures--anim.is-in .ventures__medal,
.ventures--anim.is-in .ventures__orbit {
  opacity: 1;
  transform: none;
}
.ventures--anim.is-in .ventures__medal { transform: translate(-50%, -50%); }

/* ---------- Tablet: slightly tighter ---------- */
@media (max-width: 1023px) {
  .ventures { --v-logo-w: clamp(190px, 26vw, 260px); }
  .ventures__panel { padding-left: 22px; padding-right: 22px; }
}

/* ---------- Mobile: stacked, Render Room first ---------- */
@media (max-width: 759px) {
  .ventures {
    --v-dip: 34px;
    --v-orbit-h: 70px;
    --v-medal: 48px;
    --v-logo-w: min(68vw, 270px);
    background:
      radial-gradient(70% 30% at 50% 30%, rgba(255, 238, 150, .5), transparent 72%),
      var(--v-yellow);
  }
  .ventures__head { padding: 48px 20px 30px; }
  .ventures__sheet-wide { display: none; }
  .ventures__sheet-narrow { display: inline; }

  /* orbit becomes a shallow, symmetric arc over the Render Room panel */
  .ventures__orbit-wide { display: none; }
  .ventures__orbit-narrow { display: inline; }
  .ventures__node--1 { left: 20%; top: 31%; }
  .ventures__node--2 { left: 4%;  top: 62%; }
  .ventures__node--3 { left: 85%; top: 46%; }

  .ventures__panels { grid-template-columns: 1fr; }
  .ventures__panels::before { display: none; }

  .ventures__panel { padding: calc(var(--v-dip) + 76px) 20px 64px; }
  .ventures__panel--ipo {
    padding-top: 64px;
    background:
      radial-gradient(70% 40% at 50% 45%, rgba(255, 236, 228, .55), transparent 72%),
      var(--v-peach);
  }
  /* the peach page's top edge curves up gently, with a soft shadow on the yellow page */
  .ventures__fold {
    display: block;
    position: absolute;
    left: 0; right: 0; top: -21px;
    width: 100%;
    height: 22px;
    fill: var(--v-peach);
    filter: drop-shadow(0 -5px 8px rgba(92, 58, 10, .14));
  }
  .ventures__deco { width: 46%; top: -30%; }
  .ventures__panel--ipo .ventures__deco { top: 0; }
  .ventures__intro { max-width: 22em; }
  .ventures__btn { width: 100%; max-width: 320px; }
}

@media (max-width: 380px) {
  .ventures__title { font-size: 2.7rem; }
  .ventures__btn { padding: 0 22px; }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .ventures__btn, .ventures__btn .btn__arrow { transition: none; }
  .ventures__btn:hover { transform: none; }
}
