/* Design 09: Reveal. Black plate, giant letters that show the flyover through them, then the plate splits open. */
.dz-reveal { background: #000; }
.dz-reveal .site-header:not(.is-scrolled) { background: transparent; border-color: transparent; }

/* --p runs 0 → 1 through the pinned opening (set from JS). */
.rv-open { --p: 0; position: relative; height: 320vh; }
.rv-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.rv-plate { --foot: 130px; --bh: calc((100% - var(--foot)) / 3); position: absolute; inset: 0; isolation: isolate; background: #000; }
.rv-video { z-index: 0; filter: saturate(1.15) contrast(1.05); transform: scale(calc(1.18 - var(--split) * .18)); }

/* Each band is black with white letters, multiplied over the video: white shows the video, black hides it. */
.rv-band { --split: clamp(0, (var(--p) - .12) / .58, 1); position: absolute; left: 0; right: 0; z-index: 1; display: grid; place-items: center; background: #000; color: #fff; mix-blend-mode: multiply; font-weight: 900; line-height: .8; letter-spacing: -.06em; font-size: min(24svh, 19vw); white-space: nowrap; will-change: transform; }
.rv-plate { --split: clamp(0, (var(--p) - .12) / .58, 1); }
.rv-band-top { top: 0; height: calc(var(--bh) + 1px); align-items: end; transform: translateY(calc(var(--split) * -102%)); }
.rv-band-mid { top: var(--bh); height: calc(var(--bh) + 1px); transform: scale(calc(1 + var(--split) * .5)); opacity: calc(1 - var(--split) * 1.6); }
.rv-band-mid span { letter-spacing: calc(-.06em + var(--split) * .4em); }
.rv-band-bot { top: calc(var(--bh) * 2); bottom: 0; align-items: start; padding-bottom: var(--foot); transform: translateY(calc(var(--split) * 102%)); }
.rv-band span { display: block; padding: 0 .04em; }
.rv-band-top span, .rv-band-bot span { animation: rv-in 1.2s cubic-bezier(.2, .8, .2, 1) both; }
.rv-band-mid span { animation: rv-in 1.2s cubic-bezier(.2, .8, .2, 1) .12s both; }
.rv-band-bot span { animation-delay: .24s; }
@keyframes rv-in { from { opacity: 0; transform: translateY(18%); } to { opacity: 1; transform: none; } }

/* Intro line under the letters, then the copy that arrives once the plate has opened. */
.rv-intro { gap: 8px; position: absolute; left: 0; right: 0; bottom: 70px; z-index: 2; display: grid; justify-items: center; gap: 14px; text-align: center; opacity: calc(1 - var(--p) * 6); }
.rv-intro .dz-kicker { color: #9fb3b6; }
.rv-cue { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; color: #fff; font: 600 11px "SFMono-Regular", Consolas, monospace; letter-spacing: .3em; text-transform: uppercase; text-decoration: none; }
.rv-cue i { width: 1px; height: 22px; background: linear-gradient(#fff, transparent); animation: rv-drip 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes rv-drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.rv-after { position: absolute; left: 0; right: 0; bottom: max(110px, 14svh); z-index: 2; opacity: clamp(0, (var(--p) - .62) / .2, 1); transform: translateY(calc((1 - clamp(0, (var(--p) - .62) / .2, 1)) * 40px)); pointer-events: none; }
.rv-open.is-open .rv-after { pointer-events: auto; }
.rv-after::before { content: ""; position: absolute; inset: -40vh -10vw -20vh; z-index: -1; background: radial-gradient(70% 60% at 25% 70%, rgba(0, 0, 0, .75), transparent 70%); }
.rv-after-title { margin: 14px 0 18px; font-size: clamp(42px, 6.6vw, 104px); line-height: .92; letter-spacing: -.05em; font-weight: 800; }
.rv-after-title em, .dz-reveal .dz-h2 em { font-style: normal; background: linear-gradient(90deg, #60f5b2, #78d6f2 55%, #ffbf87); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rv-after-lede { max-width: 56ch; color: #d3dee0; font-size: clamp(16px, 1.4vw, 19px); margin: 0; }

/* Feature rows */
.rv-rows { background: #000; }
.rv-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 70px); align-items: center; margin-top: clamp(50px, 7vw, 100px); }
.rv-row-flip .rv-row-media { order: 2; }
.rv-row-media { aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-strong); box-shadow: 0 40px 90px rgba(0, 0, 0, .7); }
.rv-row-media video, .rv-row-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rv-row-n { font: 12px "SFMono-Regular", Consolas, monospace; color: var(--green-bright); letter-spacing: .16em; text-transform: uppercase; }
.rv-row h3 { font-size: clamp(28px, 3.2vw, 46px); letter-spacing: -.03em; margin: 10px 0 12px; line-height: 1; }
.rv-row p { color: var(--muted); margin: 0; font-size: 17px; }
.rv-pricing { background: #000; }

/* End: the same letter mask, smaller, behind the final call to action. */
.rv-end { position: relative; min-height: 90svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.rv-end-plate { position: absolute; inset: 0; z-index: -1; isolation: isolate; background: #000; }
.rv-end-mask { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #000; color: #fff; mix-blend-mode: multiply; font-weight: 900; line-height: .8; letter-spacing: -.06em; font-size: min(26svh, 22vw); padding-bottom: 18svh; }
.rv-end-inner { padding-bottom: clamp(110px, 14svh, 150px); text-align: center; }
.rv-end-inner .hero-actions { justify-content: center; }

@media (max-width: 900px) {
  .rv-row, .rv-row-flip { grid-template-columns: 1fr; }
  .rv-row-flip .rv-row-media { order: 0; }
}
@media (max-width: 560px) {
  .rv-band { font-size: min(22svh, 25vw); }
  .rv-band-mid { font-size: min(22svh, 18.5vw); }
  .rv-intro .dz-kicker { font-size: 10px; letter-spacing: .12em; }
  .rv-after .hero-actions .button, .rv-end .hero-actions .button { width: 100%; justify-content: center; }
  .rv-end-mask { font-size: 24vw; }
}
@media (prefers-reduced-motion: reduce) {
  /* No pinned sequence: the plate is shown already open, with the copy over the still video. */
  .rv-open { height: auto; --p: 1 !important; }
  .rv-sticky { position: relative; }
  .rv-open .rv-after { pointer-events: auto; }
  .rv-band span, .rv-cue i { animation: none !important; }
}
