/* Home "/" (redesign 6a; rv-home.js). Locked look: docs/design/sites/mock/home-d.html, LOCKED.md "01 home".
   Always the Night palette (the mock is data-theme="night", fixed). Every class here is rvh-; the shell's header
   (rvx-, rv-shell.css) is only placed and given its settle-in motion. Fonts: Unbounded 900 and Space Mono come from
   rv-shell.css's import, Anton from tokens.css. */

.rvh-root {
  --rvh-stock: #000000; --rvh-ink: #ffffff; --rvh-dim: #8c8c8c; --rvh-deep: #3a3a3a;
  --rvh-ease: cubic-bezier(.2, .9, .1, 1);
  --rvh-mono: "Space Mono", ui-monospace, monospace;
  --rvh-markfs: clamp(56px, 8.6vw, 150px);
  --rvh-photow: min(44vw, calc(56vh * 1.57));
  --rvh-bacaw: clamp(84px, 7.5vw, 124px);
  position: fixed; inset: 0; z-index: 10; overflow: hidden;
  background: var(--rvh-stock); color: var(--rvh-ink);
}
body.rvh-body { background: #000000; }

/* ---- the opening: whole screen, the wide Unbounded wordmark; the O's middle widens, cuts through, the crescents slide apart */
.rvh-op {
  position: absolute; inset: 0; z-index: 4;
  display: flex; align-items: center; justify-content: center;
  background: var(--rvh-stock); color: var(--rvh-ink); overflow: hidden; cursor: default;
  transition: opacity .6s linear;
}
.rvh-gone .rvh-op { opacity: 0; pointer-events: none; }
.rvh-word {
  --rvh-wf: min(7.4vw, 132px, calc((100vw - 170px) / 8.6));
  --rvh-gwpx: max(calc(var(--rvh-wf) * 2.5), 128px);
  font-family: "Unbounded", "Inter Tight", sans-serif; font-weight: 900; font-size: var(--rvh-wf); line-height: 1;
  white-space: nowrap; display: flex; align-items: baseline; letter-spacing: -.01em; margin: 0; color: var(--rvh-ink);
}
.rvh-o { display: inline-block; position: relative; text-align: center; }
.rvh-oref { color: transparent; }
.rvh-oc { position: absolute; left: 0; top: 0; pointer-events: none; }
.rvh-line {
  position: absolute; left: 50%; top: 50%; width: calc(var(--rvh-gwpx) - 8px); margin-top: var(--rvh-dy, 0px);
  font-family: var(--rvh-mono); font-weight: 400; font-size: max(10px, calc(var(--rvh-wf) * .115));
  letter-spacing: .04em; line-height: 1.35; text-transform: uppercase; text-align: center; white-space: normal;
  opacity: 0; transform: translate(-50%, calc(-50% + 4px));
  transition: opacity .22s linear, transform .22s var(--rvh-ease);
}
.rvh-line.rvh-in { opacity: 1; transform: translate(-50%, -50%); }

/* ---- the settled page (board 04): the header, the lines, the photo, Baca, the next night */
.rvh-page { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.rvh-on .rvh-page > * { pointer-events: auto; }
.rvh-top { position: absolute; top: 0; left: 0; right: 0; z-index: 3; }
.rvh-top .rvx-hd { position: relative; background: transparent; }
.rvh-top .rvx-mark { display: block; overflow: hidden; }
.rvh-markin { display: block; transform: translateY(105%); transition: transform .8s var(--rvh-ease) .2s; }
.rvh-on .rvh-markin { transform: none; }
.rvh-top .rvx-nav, .rvh-top .rvx-phone { opacity: 0; transition: opacity .5s linear .6s; }
.rvh-on .rvh-top .rvx-nav, .rvh-on .rvh-top .rvx-phone { opacity: 1; }
.rvh-top .rvx-nav { font-size: clamp(11px, .95vw, 14px); }

.rvh-lines {
  position: absolute; left: var(--s5, 24px); top: calc(var(--s4, 16px) + var(--rvh-markfs) * .92 + var(--s5, 24px));
  font-family: var(--rvh-mono); font-size: clamp(12px, 1.15vw, 17px); letter-spacing: .04em; line-height: 1.35; text-transform: uppercase;
}
.rvh-lines span { display: block; opacity: 0; transform: translateY(6px); transition: opacity .35s linear, transform .35s var(--rvh-ease); }
.rvh-on .rvh-lines span { opacity: 1; transform: none; }
.rvh-on .rvh-lines span:nth-child(1) { transition-delay: .82s; }
.rvh-on .rvh-lines span:nth-child(2) { transition-delay: .94s; }
.rvh-on .rvh-lines span:nth-child(3) { transition-delay: 1.06s; }
.rvh-on .rvh-lines span:nth-child(4) { transition-delay: 1.18s; }
.rvh-on .rvh-lines span:nth-child(5) { transition-delay: 1.30s; }
.rvh-lines .rvh-rl { width: 1.6em; border-top: 1px solid var(--rvh-ink); margin-top: .7em; }

.rvh-next {
  white-space: nowrap; position: absolute; left: var(--s5, 24px); bottom: var(--s5, 24px);
  font-family: var(--rvh-mono); font-size: clamp(11px, .95vw, 14px); letter-spacing: .05em; text-transform: uppercase;
  color: var(--rvh-ink); text-decoration: none; opacity: 0; transition: opacity .5s linear 1.4s;
}
.rvh-next[hidden] { display: none; }
.rvh-next .rvh-k { color: var(--rvh-dim); margin-right: .8em; }
.rvh-next b { font-weight: 400; }
.rvh-next:hover b { text-decoration: underline; text-underline-offset: 4px; }
.rvh-on .rvh-next { opacity: 1; }

.rvh-photo {
  position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%);
  width: var(--rvh-photow); aspect-ratio: 430 / 274; background: var(--rvh-deep); overflow: hidden;
  clip-path: circle(0px at var(--rvh-ox, 50%) var(--rvh-oy, 50%));
}
.rvh-photo.rvh-grow { transition: clip-path 1.1s cubic-bezier(.7, 0, .2, 1); }
.rvh-on .rvh-photo { clip-path: circle(150% at var(--rvh-ox, 50%) var(--rvh-oy, 50%)); }
.rvh-slide { position: absolute; inset: 0; background: center / cover no-repeat; filter: grayscale(1) contrast(1.05); opacity: 0; transition: opacity 1s linear; }
.rvh-slide.rvh-shown { opacity: 1; }
.rvh-count {
  position: absolute; right: var(--s2, 8px); top: var(--s2, 8px); padding: var(--s1, 4px);
  font-family: var(--rvh-mono); font-size: 10px; letter-spacing: .06em; color: var(--rvh-ink); opacity: .8;
  background: none; border: 0; cursor: pointer;
}
.rvh-count:active { transform: scale(.95); }

/* Baca's outline on the photo's corner: no disc, no edge, a soft shadow */
.rvh-baca {
  position: absolute; width: var(--rvh-bacaw); aspect-ratio: 1;
  left: calc(50% + var(--rvh-photow) / 2 - var(--rvh-bacaw) * .5);
  top: calc(52% + var(--rvh-photow) / 1.5693 / 2 - var(--rvh-bacaw) * .62);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(1.35) rotate(-24deg);
  transition: opacity .2s linear 1.35s, transform .45s cubic-bezier(.2, 1.6, .4, 1) 1.35s;
}
.rvh-on .rvh-baca { opacity: 1; transform: none; }
.rvh-baca img { width: 100%; height: auto; display: block; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .55)); }

/* phone-only parts */
.rvh-cap, .rvh-cta { display: none; }

/* ---- phones: the OFF PACE layout (small name + bars, the wordmark across the width, two captions, the photo fills the rest) */
@media (max-width: 767px) {
  .rvh-page { display: flex; flex-direction: column; gap: var(--s3, 12px); padding: 0 var(--s4, 16px) var(--s4, 16px); }
  .rvh-page > * { position: static !important; transform: none; }
  .rvh-top .rvx-hd { padding: var(--s3, 12px) 0 0; }
  .rvh-top .rvx-phone { transition-delay: .5s; }
  .rvh-cap {
    display: flex; justify-content: space-between; gap: var(--s3, 12px); padding: 0 var(--s1, 4px);
    font-family: var(--rvh-mono); font-size: 10px; line-height: 1.3; letter-spacing: .03em; text-transform: uppercase;
    opacity: 0; transition: opacity .5s linear .8s;
  }
  .rvh-on .rvh-cap { opacity: 1; }
  .rvh-capnext { text-align: right; color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
  .rvh-capnext[hidden] { display: none; }
  .rvh-page > .rvh-photo { position: relative !important; left: auto; top: auto; flex: 1; width: auto; aspect-ratio: auto; min-height: 0; }
  .rvh-count { top: var(--s1, 4px); }
  .rvh-cta {
    display: flex; justify-content: space-between; align-items: center;
    position: absolute; left: var(--s3, 12px); right: var(--s3, 12px); bottom: var(--s3, 12px);
    background: var(--rvh-ink); color: var(--rvh-stock); text-decoration: none;
    font-family: var(--rvh-mono); font-size: 14px; padding: var(--s3, 12px) var(--s4, 16px);
  }
  .rvh-cta:active { transform: scale(.98); }
  .rvh-lines, .rvh-next, .rvh-baca { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .rvh-op, .rvh-line, .rvh-slide, .rvh-markin, .rvh-top .rvx-nav, .rvh-top .rvx-phone, .rvh-lines span,
  .rvh-next, .rvh-baca, .rvh-cap, .rvh-photo.rvh-grow { transition: none; }
}
