/* ════════════ Jevity v3 — Performance Magazine (grey/green, photo-forward) ════════════ */
:root {
  /* Unified with V2's palette — warm dark + teal accent + cream text */
  --v3-bg: #0a0b0e;
  --v3-bg2: #101116;
  --v3-text: #f3ede0;        /* warm cream (V2) */
  --v3-soft: #d4ccba;
  --v3-muted: #9b948a;
  --v3-sage: #2dd4a7;        /* V2 teal accent (kept var name for reuse) */
  --v3-sage-deep: #119a77;
  --v3-line: rgba(243,237,224,0.10);
  --v3-serif: "Fraunces", Georgia, serif;
  --v3-sans: "Inter", system-ui, sans-serif;
}
.v3 { background: var(--v3-bg); color: var(--v3-text); font-family: var(--v3-sans); }
.v3 .container { width: min(1200px, 92%); margin: 0 auto; }

/* nav */
.v3nav { position: absolute; top: 0; left: 0; right: 0; z-index: 20; }
.v3nav__in { display: flex; align-items: center; justify-content: space-between; padding: 1.6rem 0; }
.v3nav__brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: #fff; }
.v3nav__orb { width: 24px; height: 24px; border-radius: 50%; background: var(--v3-sage); -webkit-mask: radial-gradient(circle at center, transparent 38%, #000 41%); mask: radial-gradient(circle at center, transparent 38%, #000 41%); }
.v3nav__name { font: 500 1.15rem var(--v3-serif); letter-spacing: 0.02em; }
.v3nav__cta { font: 500 0.88rem var(--v3-sans); color: #0f110d; background: var(--v3-text); padding: 0.6rem 1.3rem; border-radius: 999px; text-decoration: none; }

/* HERO — full-bleed image with overlaid editorial text */
.v3hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.v3hero__img { position: absolute; inset: 0; }
.v3hero__img img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; }
.v3hero__grad { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,17,13,0.55) 0%, rgba(15,17,13,0.15) 40%, rgba(15,17,13,0.92) 100%); }
.v3hero__in { position: relative; z-index: 2; width: min(1200px,92%); margin: 0 auto; padding-bottom: 5rem; }
.v3hero__kicker { font: 500 0.78rem var(--v3-sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--v3-sage); margin-bottom: 1.2rem; }
.v3hero h1 { font: 400 clamp(2.8rem, 7vw, 6rem) var(--v3-serif); line-height: 0.98; letter-spacing: -0.025em; max-width: 16ch; }
.v3hero h1 em { font-style: italic; color: var(--v3-sage); }
.v3hero__sub { font-size: 1.25rem; color: var(--v3-soft); max-width: 46ch; margin: 1.6rem 0 2rem; }
.v3hero__actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.v3btn { font: 500 1rem var(--v3-sans); padding: 1rem 1.8rem; border-radius: 999px; text-decoration: none; cursor: pointer; border: 1px solid transparent; }
.v3btn--solid { background: var(--v3-sage); color: #11140d; }
.v3btn--solid:hover { background: #bcd49b; }
.v3btn--ghost { border-color: rgba(241,239,230,0.35); color: var(--v3-text); background: transparent; }
.v3btn--ghost:hover { border-color: var(--v3-text); }

/* stat band */
.v3stats { border-block: 1px solid var(--v3-line); background: var(--v3-bg2); }
.v3stats__row { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; padding: 1.8rem 0; }
.v3stat strong { display: block; font: 400 1.7rem var(--v3-serif); color: var(--v3-sage); }
.v3stat span { font-size: 0.8rem; color: var(--v3-muted); }

/* editorial rows — alternating image + text */
.v3row { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch; }
.v3row--rev .v3row__media { order: 2; }
.v3row__media { position: relative; min-height: 520px; background: var(--v3-bg2); }
.v3row__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.v3row__media--placeholder { display: flex; align-items: center; justify-content: center; }
.v3row__ph { color: var(--v3-muted); font-size: 0.85rem; text-align: center; padding: 2rem; }
.v3row__text { display: flex; flex-direction: column; justify-content: center; padding: 4.5rem; }
.v3row__num { font: 500 0.8rem var(--v3-sans); letter-spacing: 0.2em; color: var(--v3-sage); margin-bottom: 1rem; }
.v3row__text h2 { font: 400 clamp(1.8rem, 3vw, 2.8rem) var(--v3-serif); letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 1rem; }
.v3row__text h2 em { font-style: italic; color: var(--v3-sage); }
.v3row__text p { font-size: 1.05rem; color: var(--v3-soft); line-height: 1.65; max-width: 44ch; }
.v3row__link { margin-top: 1.6rem; font: 500 0.95rem var(--v3-sans); color: var(--v3-sage); text-decoration: none; }
.v3row__link:hover { text-decoration: underline; }

/* closing CTA */
.v3close { text-align: center; padding: 7rem 0; border-top: 1px solid var(--v3-line); }
.v3close h2 { font: 400 clamp(2.2rem, 5vw, 4rem) var(--v3-serif); letter-spacing: -0.02em; margin-bottom: 1rem; }
.v3close h2 em { font-style: italic; color: var(--v3-sage); }
.v3close p { color: var(--v3-soft); max-width: 50ch; margin: 0 auto 2rem; font-size: 1.1rem; }

.v3foot { border-top: 1px solid var(--v3-line); padding: 2.5rem 0; text-align: center; font-size: 0.8rem; color: var(--v3-muted); }
.v3foot a { color: var(--v3-soft); }
.v3compare { position: fixed; bottom: 1rem; left: 1rem; z-index: 30; font: 500 0.8rem var(--v3-sans); background: rgba(15,17,13,0.85); border: 1px solid var(--v3-line); color: var(--v3-soft); padding: 0.6rem 1rem; border-radius: 999px; text-decoration: none; backdrop-filter: blur(8px); }

@media (max-width: 860px) {
  .v3row, .v3row--rev .v3row__media { grid-template-columns: 1fr; }
  .v3row--rev .v3row__media { order: 0; }
  .v3row__media { min-height: 320px; }
  .v3row__text { padding: 2.6rem 1.5rem; }
  .v3row__link { display: inline-block; padding: 0.5rem 0; margin-top: 1.1rem; } /* bigger tap target */
  .v3row__text p { max-width: none; }

  /* hero: lift content off the fold, full-width stacked CTAs */
  .v3hero__in { padding-bottom: 4.5rem; }
  .v3hero h1 { font-size: clamp(2.2rem, 10vw, 3.4rem); letter-spacing: -0.02em; }
  .v3hero__sub { font-size: 1.08rem; margin-bottom: 1.6rem; }
  .v3hero__actions { flex-direction: column; gap: 0.7rem; }
  .v3hero__actions .v3btn { width: 100%; text-align: center; padding: 0.95rem 1.4rem; }

  /* stat band: tidy 2-col grid, 5th centered full-width */
  .v3stats__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem 1rem; text-align: center; }
  .v3stat:nth-child(5):last-child { grid-column: 1 / -1; }
  .v3stat strong { font-size: 1.5rem; }
}
