/* Hero, coin and glass header (third look at the first screen). Loaded after header.css. */

/* ── the header: clear glass, no colour of its own, with an inverse reflection of the page under it ── */
.frame::before { opacity: 1; background: transparent;
  -webkit-backdrop-filter: blur(18px) saturate(1.7) brightness(1.04); backdrop-filter: blur(18px) saturate(1.7) brightness(1.04); }
.frame.docked::before { opacity: 1; }
.f-glass { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.f-refl { position: absolute; left: 0; right: 0; top: 0; transform-origin: 0 0; opacity: .34; filter: blur(5px); will-change: transform; }
.f-glass::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.16) 0, rgba(255,255,255,.05) 1px, rgba(255,255,255,0) 40%, rgba(255,255,255,0) 70%, rgba(255,255,255,.07) 100%); }
[data-surface="day"]:not([data-theme="dark"]) .f-refl { opacity: .5; }
[data-surface="day"]:not([data-theme="dark"]) .f-glass::after { background: linear-gradient(180deg, rgba(255,255,255,.6) 0, rgba(255,255,255,.12) 1px, rgba(255,255,255,0) 45%, rgba(14,22,33,0) 70%, rgba(14,22,33,.04) 100%); }

/* ── the hero: the name huge and high, the coin in front of its lower half, the captions at the corners ── */
.intro { background: radial-gradient(60% 46% at 50% 62%, rgba(92,122,170,.22), rgba(92,122,170,0) 70%), linear-gradient(180deg, #02040a 0%, #060c18 55%, var(--intro-end, #0b1422) 92%); }
.h-beam { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(22% 70% at 50% -6%, rgba(205,222,245,.28), rgba(205,222,245,.06) 55%, rgba(205,222,245,0) 80%),
              radial-gradient(34% 10% at 50% 82%, rgba(160,185,225,.16), rgba(160,185,225,0) 100%); }
.h-ghost { position: absolute; left: 50%; top: 60%; width: 150vmax; height: 150vmax; max-width: none; opacity: .16; pointer-events: none; transform: translate(-50%,-50%);
  mix-blend-mode: screen; filter: grayscale(1) contrast(1.25) brightness(.7);
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, rgba(0,0,0,.4) 60%, transparent 100%); mask-image: radial-gradient(closest-side, #000 30%, rgba(0,0,0,.4) 60%, transparent 100%); }
.intro-word { position: relative; z-index: 1; font-size: clamp(64px, 16.5vw, 320px); }
.js .intro-word { margin-bottom: 26vh; }                  /* lifts the name so the coin covers only its lower half */
.intro-cap { position: relative; z-index: 3; }
.js .intro-cap { position: absolute; left: calc(var(--f) + 40px); right: calc(var(--f) + 40px); bottom: calc(var(--vh) * .07); margin: 0;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; text-align: left; font-size: 17px; }
.js .intro-cap span { white-space: normal; max-width: 19em; }
.js .intro-cap span + span { text-align: right; }

/* ── the coin ── */
.coin-layer { position: fixed; inset: 0; z-index: 6; pointer-events: none; perspective: 1400px; }
.coin { position: absolute; left: 0; top: 0; width: 0; height: 0; --d: 300px; --sh: 50%; --edge: 0; transform-style: preserve-3d; will-change: transform; }
.no-js .coin, html:not(.js) .coin-layer { display: none; }
.coin-tilt, .coin-spin { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-style: preserve-3d; }
.c-face { position: absolute; left: calc(var(--d) / -2); top: calc(var(--d) / -2); width: var(--d); height: var(--d); border-radius: 50%; overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden; transform: translateZ(calc(var(--d) * .03)); }
.c-back { transform: rotateY(180deg) translateZ(calc(var(--d) * .03)); }
.c-face img { width: 100%; height: 100%; display: block; }
.c-shine { position: absolute; inset: 0; border-radius: 50%; mix-blend-mode: overlay;
  background: linear-gradient(115deg, rgba(255,255,255,0) calc(var(--sh) - 30%), rgba(255,255,255,.75) var(--sh), rgba(255,255,255,0) calc(var(--sh) + 30%)); }
.c-rim { position: absolute; left: calc(var(--d) / -2); top: calc(var(--d) / -2); width: var(--d); height: var(--d); border-radius: 50%;
  transform: translateZ(calc(var(--d) * .072 * var(--z)));
  /* the reeded edge: fine light and dark lines all round. Every disc has the same lines, so seen side-on they run across the edge */
  background: radial-gradient(closest-side, #39424e 0 92%, rgba(57,66,78,0) 92.6%), repeating-conic-gradient(#e6ebf1 0deg 1.1deg, #7d8796 1.1deg 2.25deg); }
.coin-shadow { position: absolute; left: calc(var(--d) * -.42); top: calc(var(--d) * .5); width: calc(var(--d) * .84); height: calc(var(--d) * .12); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0,0,0,.65), rgba(0,0,0,0)); transform: translateZ(-200px); filter: blur(6px); }

@media (max-width: 860px) {
  .js .intro-word { margin-bottom: 30vh; }
  .js .intro-cap { flex-direction: column; align-items: center; text-align: center; left: calc(var(--f) + 14px); right: calc(var(--f) + 14px); gap: 10px; font-size: 14.5px; bottom: calc(var(--vh) * .05); }
  .js .intro-cap span + span { text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .f-refl { display: none; } }

/* the hero box is always the full screen width, so the engraving is never clipped at the sides */
.js .intro-pin { width: 100%; max-width: none; margin: 0; }

/* the coin's edge, matched to the face: 108 strips round the rim, each carrying two beads, so 216 beads in all, the
   same spacing as the beads on the face's rim; shaded in the face's own warm silver, darker at the grooves and towards
   both faces, like a reeded edge catching the light */
.c-edge { position: absolute; left: calc(var(--d) * -.0146); top: calc(var(--d) * -.03); width: calc(var(--d) * .0292); height: calc(var(--d) * .06);
  transform: rotateZ(var(--a)) translateY(calc(var(--d) * -.4935)) rotateX(90deg);
  background:
    linear-gradient(180deg, rgba(40,37,34,.38), rgba(40,37,34,0) 32%, rgba(40,37,34,0) 68%, rgba(40,37,34,.38)),
    linear-gradient(90deg, #6f6b66 0%, #a9a59f 20%, #dcd8d2 50%, #a9a59f 80%, #6f6b66 100%) 0 0 / 50% 100% repeat-x; }
.c-edge.o { background:
    linear-gradient(180deg, rgba(40,37,34,.38), rgba(40,37,34,0) 32%, rgba(40,37,34,0) 68%, rgba(40,37,34,.38)),
    linear-gradient(90deg, #6f6b66 0%, #a9a59f 20%, #dcd8d2 50%, #a9a59f 80%, #6f6b66 100%) 0 0 / 50% 100% repeat-x; }
.c-rim { display: none; }
