.club-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: clamp(370px, calc(100vh - 57px), 980px);
  height: clamp(370px, calc(100svh - 57px), 980px);
  color: #efefe3;
  background: #16171b;
}

.club-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
  isolation: isolate;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 31% 19%, #1c1d244d, transparent 62%),
    linear-gradient(117deg, #141519, #16171c 54%, #19191e);
}

.club-flow,
.club-backdrop::after,
.club-portrait img,
.club-glints {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.club-flow {
  overflow: visible;
  opacity: .22;
  mask-image: linear-gradient(105deg, #0004, #0007 45%, #000 89%);
}

.club-backdrop::after {
  content: "";
  background: url('/art/club-grain.svg') repeat;
  mix-blend-mode: soft-light;
  opacity: .29;
}

.club-portrait,
.club-aura {
  position: absolute;
  right: 0;
  top: 1%;
  height: 114%;
  aspect-ratio: 1161 / 1460;
  pointer-events: none;
}

.club-aura::before {
  content: "";
  position: absolute;
  inset: -10%;
  background: url('/art/club-halation.svg') center / 100% 100% no-repeat;
}

.club-name-wrap {
  position: relative;
  display: block;
  isolation: isolate;
  --shimmer: var(--club-shimmer);
}

.club-name-aura {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  user-select: none;
}

/* Cast light from the exact letterforms underneath the moving polished face. */
.club-name-aura::before,
.club-name-aura::after {
  content: attr(data-lettering);
  color: transparent;
  white-space: nowrap;
  position: absolute;
  inset: -.78em;
  padding: .78em;
}

.club-name-aura::before {
  text-shadow:
    0 0 .055em #fffde444,
    0 0 .16em #e5ebd868,
    0 0 .38em #d7e2dc63,
    0 0 .72em #c2cfd94d;
}

.club-name-aura::after {
  text-shadow: 0 0 .075em #ffffe957, 0 0 .22em #f6f8e180, 0 0 .46em #dce5de8f;
  mask: linear-gradient(105deg, transparent 25%, #0005 39%, #000 50%, #0005 61%, transparent 75%)
    55% 50% / 190% 100% no-repeat;
}

.club-portrait img { display: block; }

.club-hero[data-portrait="fallback"] .club-plate,
.club-hero[data-portrait="ready"] .club-study { visibility: hidden; }

.club-glint {
  opacity: .24;
  transform-origin: 0 0;
}

.club-name {
  display: block;
  padding: .12em .04em .12em 0;
  margin: -.12em -.04em -.12em 0;
}

@supports (background-clip: text) {
  .club-name {
    background: var(--club-silver) 55% 50% / 190% 100%;
    color: transparent;
    background-clip: text;
  }
}

@media (prefers-reduced-motion: no-preference) {
  /* Keep the detailed print and the grain cached while the nearby light moves. */
  .club-plate, .club-glints, .club-backdrop::after, .club-name { transform: translateZ(0); }
  .club-portrait { will-change: transform; }

  .develop-portrait .club-hero:not([data-portrait]) .club-plate,
  .club-hero[data-portrait="loading"] .club-plate {
    /* Let the browser prepare the detailed SVG underneath its near-zero exposure. */
    opacity: .001;
  }

  .club-hero[data-portrait="revealing"] .club-plate {
    animation: club-develop 2s cubic-bezier(.4,0,.26,1) both;
  }

  .club-study { animation: club-first-exposure 1s cubic-bezier(.32,0,.35,1) both; }

  .club-aura { animation: club-first-exposure 1.6s ease-out .18s both; }
  .club-glints { animation: club-first-exposure 1.1s ease-out .35s both; }

  .club-glint {
    animation: club-diffraction var(--period) cubic-bezier(.42,0,.32,1) var(--phase) infinite;
  }

  @supports (background-clip: text) {
    .club-name {
      animation: club-name-shimmer var(--shimmer);
    }
    .club-name-aura::after { animation: club-glow-shimmer var(--shimmer); }
  }

  .club-hero[data-motion-paused] :is(.club-name, .club-aura, .club-glints, .club-glint, .club-study),
  .club-hero[data-motion-paused] .club-name-aura::after {
    animation-play-state: paused;
  }
}

@keyframes club-develop {
  from { opacity: .001; }
  to { opacity: 1; }
}

@keyframes club-first-exposure {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes club-diffraction {
  0%, 48%, 100% { opacity: .08; transform: scale(.56); }
  66% { opacity: .98; transform: scale(1.18); }
  79% { opacity: .31; transform: scale(.85); }
}

@media (forced-colors: active) {
  .club-name { color: CanvasText; background: none; }
  .club-name-aura { display: none; }
}

.club-imprint {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(28px, 4.4vw, 80px);
  padding-top: clamp(90px, 14vh, 170px);
  background: linear-gradient(0deg, #10101782, transparent);
}

.club-wordmark {
  /* Align each seal to the ink of the lettering inside its .96em line box. */
  --seal-center: .076em;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(12px, 1.25vw, 19px);
  font-size: clamp(44px, 6.35vw, 102px);
}

.club-wordmark, .club-tagline {
  font-weight: 500;
  letter-spacing: -.072em;
  line-height: .96;
}

.club-wordmark:has(> .club-rosacea) {
  --seal-size: .52em;
  --seal-gap: .20em;
}

.club-wordmark:has(> .club-tag) {
  flex-direction: row;
  align-items: center;
  gap: var(--seal-gap);
  white-space: nowrap;
}

.club-tag {
  display: block;
  flex: none;
  width: var(--seal-size);
  height: var(--seal-size);
  transform: translateY(var(--seal-center));
}

.club-scroll {
  display: grid;
  flex: none;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid #faf9e682;
  border-radius: 50%;
  color: #f6f5eb;
  background: #0b0d0c67;
  transition: background-color .2s, border-color .2s;
}

.club-scroll:hover,
.club-scroll:focus-visible { background: #1b1e1ad9; border-color: currentColor; }
.club-scroll svg { width: 19px; height: 19px; }

.reel-shelf {
  overflow: hidden;
  scroll-margin-top: 56px;
  border-top: 1px solid var(--line);
  padding-top: clamp(44px, 6vw, 84px);
}

.reel-shelf-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 22px;
}

.reel-shelf h2 {
  font-size: clamp(30px, 3.5vw, 46px);
  line-height: 1.1;
  font-weight: 550;
  letter-spacing: -.045em;
}

.reel-shelf-head p { margin-top: 8px; color: var(--fog); font-size: 14px; }
.reel-shelf-links { display: flex; align-items: center; gap: 18px; }
.reel-shelf-links .inline-btn { margin-top: 0; font-size: 14px; }

@media (max-aspect-ratio: 1/1) {
  .club-portrait, .club-aura {
    height: min(100%, 171vw);
    inset: auto auto 0 50%;
    translate: -35% 0;
  }
}

@media (max-width: 639px) {
  .club-imprint {
    container-type: inline-size;
    padding: 100px 20px max(28px, env(safe-area-inset-bottom)) 20px;
    /* Reserve the 42px scroll button and its 16px gutter beside the wordmark. */
    --rosacea-type-size: min(clamp(38px, 9.4vw, 58px), calc((100cqw - 58px) / 7.1));
  }
  .club-wordmark { font-size: clamp(38px, 9.4vw, 58px); gap: 12px; }
  .club-wordmark:has(> .club-tag) { font-size: var(--rosacea-type-size); }
  .club-name-wrap::before {
    content: "";
    position: absolute;
    z-index: -2;
    inset: -.65em -1.1em;
    background: radial-gradient(ellipse, #111217b0 22%, #1112176b 49%, transparent 74%);
    pointer-events: none;
  }
  .club-scroll { width: 42px; height: 42px; }
  .reel-shelf-links { flex-wrap: wrap; }
}

@media (max-width: 639px) and (max-aspect-ratio: 1/1) {
  .club-portrait, .club-aura { height: min(100%, 164vw); translate: -40% 0; }
}
