/* 02-hoy: how AAA sells today. A dot map of the plazas, each lit with the seller it sends the fan to: many colours, many
   doors. The one hard number (the 20 % fee) sits on a ticket receipt in the empty Pacific, with its source. No gold here. */
#hoy { position: relative; isolation: isolate; overflow: clip; background: radial-gradient(70% 80% at 72% 55%, #24160f 0%, var(--sf-dark) 70%); color: var(--tx-on-dark); align-items: stretch; }

/* the map: one big object, right-aligned, sized by the shorter of width and height so it never crops */
#hoy .hoy__map { position: absolute; z-index: 0; right: max(2vw, calc(50% - 860px)); top: 50%; width: min(66vw, calc((100vh - 120px) * 1.5284), calc(100vw - max(2vw, 50vw - 860px) - max(var(--gutter), 50vw - 630px) - min(440px * var(--z, 1), 36vw) + 40px)); aspect-ratio: 1.5284; transform: translateY(-46%); }
#hoy .hoy__map > img { width: 100%; height: 100%;
  /* the dotted US band fades out at the top, so it reads as land beyond the border, not as a stray strip */
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgb(0 0 0 / 0.25) 12%, #000 30%); mask-image: linear-gradient(180deg, transparent 0%, rgb(0 0 0 / 0.25) 12%, #000 30%); }
#hoy .hoy__pins { position: absolute; inset: 0; font-size: calc(15px * var(--z, 1)); }
#hoy .pin { position: absolute; left: var(--x); top: var(--y); width: 0; height: 0; }
#hoy .pin i { position: absolute; left: -0.36em; top: -0.36em; width: 0.72em; height: 0.72em; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 0.3em rgb(20 12 10 / 0.9), 0 0 0 0.36em color-mix(in srgb, var(--c) 45%, transparent), 0 0 1.4em 0.2em color-mix(in srgb, var(--c) 55%, transparent); }
#hoy .pin span { position: absolute; top: 0; display: grid; gap: 0.05em; padding: 0.4em 0.75em 0.45em; border-radius: 0.7em; white-space: nowrap; background: rgb(30 20 17 / 0.86); box-shadow: inset 0 0 0 1px rgb(246 239 226 / 0.12), 0 0.8em 1.6em -0.6em rgb(0 0 0 / 0.7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
#hoy .pin b { display: flex; align-items: center; gap: 0.45em; font-size: 1em; line-height: 1.25; font-weight: 600; letter-spacing: -0.005em; color: var(--tx-on-dark); }
#hoy .pin b::before { content: ""; width: 0.5em; height: 0.5em; border-radius: 2px; background: var(--c); }
#hoy .pin small { font-size: 0.9em; line-height: 1.25; font-weight: 500; color: var(--tx-on-dark-2); padding-left: 0.95em; }
#hoy .pin--r span { left: 1.05em; transform: translateY(-50%); }
#hoy .pin--l span { right: 1.05em; transform: translateY(-50%); }
#hoy .pin--t span { left: 0; bottom: 1.05em; top: auto; transform: translateX(-50%); }
#hoy .pin--tr span { left: 0.4em; bottom: 1.05em; top: auto; transform: translateX(-12%); }
#hoy .pin--off span { right: 1.6em; transform: translateY(-50%); }
#hoy .pin--off em { position: absolute; right: 0; top: -0.5em; width: 1.2em; height: 1em; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 14'%3E%3Cpath d='M1 7h13M9 2l5 5-5 5' fill='none' stroke='%23cbbda8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* copy column sits over the Pacific; the receipt anchors the bottom left */
#hoy .hoy__wrap { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; min-height: calc(100vh - 152px); min-height: calc(100svh - 152px); pointer-events: none; }
#hoy .hoy__wrap > * { pointer-events: auto; }
#hoy .hoy__copy { max-width: min(calc(480px * var(--z, 1)), 39vw); }
#hoy .hoy__h { font-size: calc(54px * var(--z, 1)); line-height: 1.04; margin-bottom: clamp(16px, 2.6vh, 28px); }
#hoy .say { font-size: calc(22px * var(--z, 1)); max-width: 19.5em; }

#hoy .hoy__receipt { width: calc(296px * var(--z, 1)); margin: 0; padding: 1.1em 1.2em 0.9em; border-radius: 18px; font-size: calc(14.5px * var(--z, 1)); background: var(--sf-light-card); color: var(--tx-on-light); box-shadow: 0 2px 4px rgb(0 0 0 / 0.2), 0 40px 70px -26px rgb(0 0 0 / 0.9);
  -webkit-mask: radial-gradient(circle 0.55em at 0 62%, transparent 98%, #000) , radial-gradient(circle 0.55em at 100% 62%, transparent 98%, #000); -webkit-mask-composite: source-in;
  mask: radial-gradient(circle 0.55em at 0 62%, transparent 98%, #000), radial-gradient(circle 0.55em at 100% 62%, transparent 98%, #000); mask-composite: intersect; }
#hoy .hoy__rh { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 0.7em; margin-bottom: 0.5em; border-bottom: 1px solid var(--ln-on-light); font-size: 0.92em; color: var(--tx-on-light-2); }
#hoy .hoy__rh span:first-child { color: var(--tx-on-light); font-weight: 600; }
#hoy .hoy__rl { display: flex; justify-content: space-between; align-items: baseline; padding: 0.22em 0; font-variant-numeric: tabular-nums; color: var(--tx-on-light-2); }
#hoy .hoy__rl b { font-weight: 500; color: var(--tx-on-light); }
#hoy .hoy__rl--fee b { font-weight: 600; }
#hoy .hoy__rl--fee span::after { content: "20%"; margin-left: 0.5em; padding: 0.1em 0.5em; border-radius: 99px; font-size: 0.8em; font-weight: 600; background: #f3e3d9; color: #8a3b1c; }
#hoy .hoy__rl--t { margin-top: 0.4em; padding-top: 0.6em; border-top: 1px dashed rgb(27 19 16 / 0.22); color: var(--tx-on-light); font-weight: 600; }
#hoy .hoy__rl--t b { font-size: 1.5em; font-weight: 400; letter-spacing: -0.02em; }
#hoy .hoy__rd { display: grid; grid-template-columns: 1.15em 1fr; gap: 0.55em; align-items: start; margin-top: 0.75em; padding: 0.6em 0.75em; border-radius: 12px; background: #f2ede6; font-size: 0.9em; line-height: 1.35; color: var(--tx-on-light-2); }
#hoy .hoy__rd svg { width: 1.15em; height: 1.15em; margin-top: 0.05em; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
#hoy .hoy__rd b { color: var(--tx-on-light); font-weight: 600; }
#hoy .hoy__receipt figcaption { margin-top: 0.7em; font-size: 0.78em; line-height: 1.35; color: var(--tx-on-light-2); }

/* one-shot: the pins light up one after another once the scene is in view (kit .rv on the parent copy is enough
   for text; the pins are decoration and are static when motion is reduced) */
@media (prefers-reduced-motion: no-preference) {
  .js #hoy .pin { opacity: 0; transition: opacity 600ms var(--ease-out); }
  .js #hoy .hoy__copy .rv.in ~ * , .js #hoy:has(.hoy__copy .rv.in) .pin { opacity: 1; }
  .js #hoy .pin:nth-child(2) { transition-delay: 120ms; } .js #hoy .pin:nth-child(3) { transition-delay: 240ms; }
  .js #hoy .pin:nth-child(4) { transition-delay: 360ms; } .js #hoy .pin:nth-child(5) { transition-delay: 480ms; }
  .js #hoy .pin:nth-child(6) { transition-delay: 600ms; } .js #hoy .pin:nth-child(7) { transition-delay: 720ms; }
  .js #hoy .pin:nth-child(8) { transition-delay: 840ms; } .js #hoy .pin:nth-child(9) { transition-delay: 960ms; }
  .js #hoy .pin:nth-child(10) { transition-delay: 1080ms; } .js #hoy .pin:nth-child(11) { transition-delay: 1200ms; }
}

@media (max-width: 900px) {
  #hoy .hoy__map { position: relative; right: auto; top: auto; transform: none; width: 100%; margin-top: 24px; order: 2; }
  #hoy { flex-direction: column; }
  #hoy .hoy__wrap { min-height: 0; }
  #hoy .hoy__copy { max-width: none; }
  #hoy .hoy__pins { font-size: 10px; }
}

@media (max-width: 760px) { #hoy .h2 { font-size: 40px; } #hoy .say { font-size: 19px; } }
#hoy { padding-bottom: 32px; }
