/* RESSAC site intro: the game's cold open over the game's own footage, and the whitewater wash on DIVE IN */
html.intro-on, html.intro-on body { overflow: hidden; }
/* while the intro plays it's just the wave, like the game: the hero text and the nav come in after DIVE IN */
html.intro-on .hero__inner, html.intro-on .hero__shade, html.intro-on .nav, html.intro-on .skip { visibility: hidden; }

.rintro { position: fixed; inset: 0; z-index: 9999; overflow: hidden; cursor: pointer; -webkit-tap-highlight-color: transparent; background: #000; contain: strict; }
.ri-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; pointer-events: none; }
.rintro.is-still .ri-vid { transform: scale(1.04); transition: transform 9s linear; }
.ri-bar { display: none !important; }
.ri-bar-t { top: 0; } .ri-bar-b { bottom: 0; }
.ri-mid { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); width: min(86vw, 980px); display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 2.4vh; pointer-events: none; }
.ri-logo { position: relative; width: 100%; opacity: 0; will-change: transform, opacity, filter; }
.ri-logo img { display: block; width: 100%; height: auto; filter: drop-shadow(0 12px 30px rgba(0,0,0,0.5)); user-select: none; -webkit-user-drag: none; }
.ri-glint { position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: linear-gradient(105deg, rgba(255,255,255,0) 40%, rgba(255,255,255,0.95) 50%, rgba(255,255,255,0) 60%) no-repeat; background-size: 45% 100%; background-position: -60% 0;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.ri-tag { font-family: var(--body, "Barlow Condensed", sans-serif); font-weight: 700; letter-spacing: 0.42em; padding-left: 0.42em; font-size: clamp(12px, 1.9vw, 22px); color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,0.6); opacity: 0; white-space: nowrap; max-width: 100%; text-align: center; }

/* DIVE IN: foam-white, thin and sharp. Fills like water when you press it. Not a yellow pill. */
.ri-dive { position: absolute; left: 50%; bottom: max(48px, calc(env(safe-area-inset-bottom) + 32px)); transform: translateX(-50%); min-height: 54px; padding: 0 46px 0 calc(46px + 0.42em); border-radius: 4px;
  font-family: var(--body, "Barlow Condensed", sans-serif); font-weight: 800; font-size: clamp(17px, 2vw, 22px); letter-spacing: 0.42em; color: var(--foam, #f7f4ee);
  background: rgba(11,21,23,0.28); border: 1.5px solid rgba(247,244,238,0.85); cursor: pointer; opacity: 0; pointer-events: none; overflow: hidden; isolation: isolate;
  text-shadow: 0 1px 8px rgba(0,0,0,0.45); transition: color .25s, border-color .25s; }
.ri-dive span { position: relative; z-index: 1; }
.ri-dive::before { content: ""; position: absolute; inset: 0; z-index: 0; background: var(--foam, #f7f4ee); transform: translateY(101%); transition: transform .35s cubic-bezier(.2,.7,.1,1); }
.ri-dive::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--foam, #f7f4ee); transform-origin: 0 50%; animation: ridive 2.2s cubic-bezier(.6,0,.2,1) infinite; }
@keyframes ridive { 0% { transform: scaleX(0); } 55% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
.ri-dive.on { pointer-events: auto; }
.ri-dive:hover, .ri-dive:focus-visible, .ri-dive.pressed { color: var(--ink, #0b1517); text-shadow: none; outline: none; }
.ri-dive:hover::before, .ri-dive:focus-visible::before, .ri-dive.pressed::before { transform: none; }
.ri-dive:focus-visible { box-shadow: 0 0 0 3px rgba(11,21,23,0.6), 0 0 0 5px var(--foam, #f7f4ee); }

.ri-flash { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 45%, #ffffff 0%, rgba(236,255,252,0.95) 45%, rgba(190,240,235,0.85) 100%); opacity: 0; pointer-events: none; }
.ri-black { position: absolute; inset: 0; background: #000; opacity: 1; pointer-events: none; }
@media (max-width: 640px) {
  .ri-mid { top: 38%; }
  .ri-tag { white-space: normal; letter-spacing: 0.24em; padding-left: 0.24em; font-size: clamp(11px, 3.4vw, 16px); line-height: 1.5; }
  .ri-dive { padding: 0 34px 0 calc(34px + 0.42em); }
}

/* the wash: one canvas over everything, scaled up from a small buffer */
.ri-wash { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; z-index: 10000; pointer-events: none; image-rendering: auto; transform: translateZ(0); }
/* no WebGL: a foam sheet slides up, then off the bottom (transform only) */
.ri-washcss { position: fixed; inset: 0; z-index: 10000; pointer-events: none; overflow: hidden; }
.ri-washcss i { position: absolute; left: -10%; right: -10%; top: -12%; height: 124%; transform: translateY(110%);
  background: radial-gradient(60% 18% at 30% 6%, #fff 0 60%, transparent 61%), radial-gradient(50% 16% at 72% 4%, #fff 0 55%, transparent 56%), linear-gradient(180deg, #ffffff 0%, #eef8f7 40%, #cfeeed 100%);
  transition: transform .56s cubic-bezier(.2,.8,.3,1); }
.ri-washcss.up i { transform: translateY(0); }
.ri-washcss.down i { transform: translateY(115%); transition: transform 1.05s cubic-bezier(.6,0,.4,1); }

@media (prefers-reduced-motion: reduce) {
  .ri-dive::after { animation: none; }
  .rintro.is-still .ri-vid { transform: none; transition: none; }
}
