/* ==========================================================================
   IDO Edge — voxel field, shared chrome (concepts 14, 15, 16)
   The canvas is the whole picture; everything here is the lock-up sitting in
   it and the caption underneath. The lock-up is positioned from JavaScript,
   because the wordmark has to land in the official lock-up spacing relative to
   a mark that only exists as a hole in the field.
   ========================================================================== */

.canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 2; }

/* Positioned by shared/voxel-field.js — left/top/width/height are all set
   inline, so the type and the void can never drift apart. */
.lock { position: absolute; z-index: 4; pointer-events: none; }

.lock__word { position: absolute; left: 0; top: 0; }
/* Width and height are set in px by the script (see sizeWord) so that no
   host stylesheet can resize the wordmark independently of the void it is
   set against. These two lines only stop a `max-width: 100%` reset, which
   is the most common thing an embedding page does to an svg. */
.lock__word .word { display: block; max-width: none; max-height: none; }  /* 167:45 */

/* --- The wordmark ------------------------------------------------------
   Timed off the tile-assembly family, which gets this right, and for the same
   two reasons.

   FIRST, IT IS WIPED, NOT FADED. A magenta hairline travels the width of the
   wordmark and the letters are revealed behind it, by growing a clip — the type
   is never scaled or moved, so the wordmark is never distorted. A fade-and-rise
   reads as a caption being placed on top of a finished picture; a wipe reads as
   the picture still being made.

   SECOND, IT OVERLAPS. It starts while the plane is still coming up — about
   three quarters through the rise, when the field is 96% flat — and finishes
   just after it settles. In tile assembly the wordmark begins while the last
   tiles are still landing, and that overlap is the whole reason the sequence
   reads as one event rather than as a list of them. The caption then follows in
   the same cascade: eyebrow 350 ms behind the wipe, status 600 ms, the corner
   readout last. */
.lock__word .word {
  clip-path: inset(0 100% 0 0);
}
.run .lock__word .word {
  animation: vx-word var(--wordDur, 1000ms) var(--wordDelay, 3600ms) var(--ease-out-soft) forwards;
}
@keyframes vx-word {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

/* The hairline travels with the edge of the reveal */
.lock__word::after {
  content: '';
  position: absolute; top: 4%; height: 86%; left: 0; width: 2px;
  background: var(--magenta);
  opacity: 0;
}
.run .lock__word::after {
  animation: vx-edge var(--wordDur, 1000ms) var(--wordDelay, 3600ms) var(--ease-out-soft) forwards;
}
@keyframes vx-edge {
  0%   { opacity: 1; left: 0; }
  88%  { opacity: 1; }
  100% { opacity: 0; left: 100%; }
}

/* --- Caption ------------------------------------------------------------ */
.caption {
  position: absolute; left: 0; right: 0; z-index: 4;
  bottom: clamp(50px, 9vh, 104px);
  display: grid; justify-items: center; gap: 11px; text-align: center;
  padding: 0 24px;
}
.caption__eyebrow {
  font-size: clamp(12px, 1.35vw, 15px);
  font-weight: 300; letter-spacing: .30em; text-transform: uppercase;
  color: var(--eyebrow, var(--grey-3));
  opacity: 0;
}
/* The product's own tagline, and the largest thing in the caption. Light
   weight — the brand sets headings light, never bold — and sentence spacing
   rather than the wide tracking of the eyebrow above it, so the two read as a
   kicker and a line rather than as two labels. */
.caption__line {
  margin: 0;
  font-size: clamp(17px, 2.15vw, 30px);
  font-weight: 300; letter-spacing: .005em; line-height: 1.2;
  color: var(--line, #fff);
  opacity: 0;
}
.caption .status { opacity: 0; }
.run .caption__eyebrow { animation: vx-rise var(--wordDur, 900ms) calc(var(--wordDelay, 3600ms) + var(--wordDur, 1000ms) * 0.35) var(--ease-out-soft) forwards; }
.run .caption__line    { animation: vx-rise var(--wordDur, 900ms) calc(var(--wordDelay, 3600ms) + var(--wordDur, 1000ms) * 0.55) var(--ease-out-soft) forwards; }
.run .caption .status  { animation: vx-rise var(--wordDur, 900ms) calc(var(--wordDelay, 3600ms) + var(--wordDur, 1000ms) * 0.8) var(--ease-out-soft) forwards; }
@keyframes vx-rise { from { opacity: 0; transform: translateY(10px); }
                     to   { opacity: 1; transform: none; } }

/* --- Corner readout ----------------------------------------------------- */
.corner {
  position: absolute; top: 26px; right: 28px; z-index: 4;
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--corner, #fff);
  font-variant-numeric: tabular-nums;
  opacity: 0;
}
.run .corner { animation: vx-fade var(--wordDur, 800ms) calc(var(--wordDelay, 3600ms) + var(--wordDur, 1000ms) * 0.85) forwards; }
.corner::before {
  content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 9px;
  background: var(--magenta); border-radius: 50%; vertical-align: 1px;
  animation: vx-blip 1.1s infinite;
}
@keyframes vx-fade { to { opacity: 1; } }
@keyframes vx-blip { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

@media (max-width: 640px) {
  .caption__eyebrow { letter-spacing: .2em; }
  .corner { font-size: 10px; }
}

/* --- Reveal: shatter (splash-core.js, "Reveals") -------------------------
   The canvas draws the blocks flying; all this does is take the ground away,
   so what the blocks leave behind is the portal, and clear the type and the
   rail off in the first quarter of a second. `filter: opacity()` rather than
   `opacity`: the corner and the wordmark hold their landed opacity with
   `animation-fill-mode: forwards`, which an `opacity` rule cannot override. */
.splash.exit--shatter { background: transparent !important; }
.splash.exit--shatter .lock,
.splash.exit--shatter .caption,
.splash.exit--shatter .corner,
.splash.exit--shatter .rail { filter: opacity(0); transition: filter 120ms ease-out; }
