/* The opening film (home page). */
  /* The film: a tall track, a stage pinned to the window while it scrolls past. */
  #film { position: relative; height: 1000vh; background: var(--bg); }
  .stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
  #fx { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

  .skip {
    position: absolute; right: clamp(20px, 4vw, 48px); bottom: 26px; z-index: 5;
    font: inherit; font-size: 13px; color: var(--muted); background: none; border: 0; padding: 10px 14px;
    border-radius: 999px; cursor: pointer; transition: color .2s ease, background .2s ease;
  }
  .skip:hover { color: var(--ink); background: rgba(243, 234, 218, .06); }
  /* The card, drawn in the page so it is always our real card and always sharp. */
  .card-wrap {
    position: absolute; left: 50%; top: 50%;
    width: min(440px, 80vw); aspect-ratio: 1.586;
    transform: translate(-50%, -50%);
    perspective: 1400px; pointer-events: none;
  }
  .card {
    position: absolute; inset: 0; border-radius: 4.2% / 6.6%;
    transform-style: preserve-3d; will-change: transform, opacity;
    background:
      repeating-linear-gradient(90deg, rgba(255,255,255,.02) 0 1px, transparent 1px 3px),
      linear-gradient(155deg, #2A2520 0%, #16130F 46%, #0B0A08 100%);
    border: 1px solid rgba(217, 185, 127, .45);
    box-shadow: inset 0 0 0 5px rgba(11,10,8,.9), inset 0 0 0 6px rgba(217,185,127,.22), 0 40px 80px rgba(0,0,0,.65);
    opacity: 0; overflow: hidden;
  }
  .card svg.eng { position: absolute; inset: 0; width: 100%; height: 100%; }
  .card .sheen {
    position: absolute; inset: -20%;
    background: linear-gradient(105deg, transparent 38%, rgba(246,231,196,.22) 48%, rgba(255,250,235,.38) 50%, rgba(246,231,196,.18) 52%, transparent 62%);
    transform: translateX(-70%); mix-blend-mode: screen;
  }
  .card .world {
    position: absolute; inset: 0; opacity: 0; mix-blend-mode: screen;
  }
  .card .world canvas { width: 100%; height: 100%; display: block; }
  .card .logo { position: absolute; right: 7%; top: 10%; height: 12%; opacity: 0; }
  .card .chip { position: absolute; left: 8.5%; top: 32%; width: 13%; opacity: 0; transform-origin: 50% 50%; }
  .card .pan {
    position: absolute; left: 8.5%; bottom: 21%;
    font-size: clamp(14px, 4.4vw, 21px); letter-spacing: .14em; font-weight: 500;
    background: linear-gradient(180deg, #F6E7C4 0%, #D9B97F 55%, #A88246 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 0;
    font-variant-numeric: tabular-nums;
  }
  .card .name {
    position: absolute; left: 8.5%; bottom: 10%; font-size: clamp(9px, 2.6vw, 12.5px);
    letter-spacing: .16em; color: #CDB98F; opacity: 0;
  }
  .card .mc { position: absolute; right: 7%; bottom: 9%; width: 15%; aspect-ratio: 1.6; opacity: 0; }
  .card .mc i { position: absolute; top: 0; width: 62.5%; height: 100%; border-radius: 50%; }
  .card .mc i:first-child { left: 0; background: #EB001B; }
  .card .mc i:last-child { right: 0; background: #F79E1B; mix-blend-mode: screen; }

  /* One line of words per scene. */
  .caption {
    position: absolute; left: 0; right: 0; bottom: clamp(96px, 17vh, 160px);
    text-align: center; padding: 0 24px; pointer-events: none;
  }
  .caption p {
    position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 900px; padding: 0 24px;
    font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 4.4vw, 54px); line-height: 1.2; letter-spacing: -.01em;
    opacity: 0; transform: translateY(14px); will-change: opacity, transform;
  }
  .caption p small { display: block; margin-top: 10px; font-size: clamp(12px, 1.4vw, 14px); font-weight: 400; color: var(--muted); letter-spacing: .01em; }

  .scroll-hint {
    position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
    font-size: 12px; color: var(--muted); letter-spacing: .04em; display: flex; flex-direction: column; align-items: center; gap: 10px;
  }
  .scroll-hint span { width: 1px; height: 34px; background: linear-gradient(var(--gold), transparent); animation: hint 2s ease-in-out infinite; transform-origin: top; }
  @keyframes hint { 0% { transform: scaleY(0); opacity: 0; } 40% { opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

  .progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: rgba(226,196,142,.08); }
  .progress i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--gold-lo), var(--gold-hi)); }

