/* HOME - hero (next event + flyer), "Larger" scroll moment, doors to each tab.
   Shared pieces (signup, countdown roll, .glt, .bgv, reveals) live in site.css. Behaviour in js/pages/index.js. */

/* 1. HERO ---------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; padding: 48px 0 64px;
  min-height: min(calc(100vh - var(--header-h)), 900px);
  display: flex; align-items: center; background: var(--black);
}
.hero .bgv { opacity: .55; filter: grayscale(1) contrast(1.2) brightness(.8); }
.hero .tint { position: absolute; inset: 0; z-index: 0; background: var(--blue); mix-blend-mode: color; opacity: .85; }
.hero .vig { position: absolute; inset: 0; z-index: 0; background: radial-gradient(ellipse 70% 70% at 30% 45%, transparent, rgba(5, 6, 12, .85)); }
.hero .in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; width: 100%; }
.hero .chrome { width: min(100%, 460px); height: auto; filter: drop-shadow(0 0 50px rgba(201, 206, 214, .3)) drop-shadow(0 20px 40px rgba(0, 0, 0, .8)); }
.hero .tlt { width: fit-content; max-width: 100%; }
.hero h1 { font-size: clamp(26px, 3.6vw, 52px); margin: 0 0 6px; }
.hero .sub { font-size: 12px; color: #d3dae6; letter-spacing: .08em; line-height: 1.8; }
.hero .sub b { color: #fff; font-weight: 500; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start; margin-top: 20px; }
.nx-lbl { margin: 22px 0 10px; display: flex; align-items: center; gap: 10px; }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--red2); box-shadow: 0 0 10px var(--red2); }

.count { display: flex; gap: clamp(12px, 2.5vw, 28px); margin: 16px 0 18px; }
.count b {
  display: inline-block; font: 800 clamp(28px, 3.6vw, 48px)/1 var(--f-x); font-stretch: 125%;
  font-variant-numeric: tabular-nums;
  background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.count span { display: block; font: 500 10px var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); }

/* Flyer = the event highlight. .fz is the tilted frame; it holds the type flyer (.tf) and, once one exists,
   the real flyer image (img.f with a src), which sits on top. Hover straightens and lifts it. */
.fl { position: relative; justify-self: center; max-width: 420px; width: 100%; display: block; text-decoration: none; }
.fz {
  position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; transform: rotate(2deg);
  box-shadow: 0 0 60px rgba(30, 63, 174, .5), 0 20px 50px rgba(0, 0, 0, .7);
  transition: transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .5s;
}
.fl:hover .fz, .fl:focus-visible .fz { transform: rotate(0) scale(1.03); box-shadow: 0 0 90px rgba(127, 247, 242, .35), 0 30px 60px rgba(0, 0, 0, .8); }
.fz img.f { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fz img.f:not([src]) { display: none; }
.fz:has(img.f[src]) .tf { visibility: hidden; }

/* Type flyer: the flyer system in CSS (flat colour block, extended caps, corner metadata, vertical side line) */
.tf {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
  padding: 22px 40px 22px 22px; background: var(--tf-bg, var(--blue)); color: #fff;
}
.tf::after { /* print grain */
  content: ""; position: absolute; inset: 0; opacity: .18; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.tf .x { overflow-wrap: normal; white-space: nowrap; }
.tf-age, .tf-ven { position: absolute; top: 16px; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--tf-ink); z-index: 1; }
.tf-age { left: 20px; }
.tf-ven { right: 20px; }
.tf-seal { position: absolute; top: 44px; left: 20px; width: 64px; height: auto; filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .6)); z-index: 1; }
.tf-num {
  position: absolute; right: -6%; top: 6%; font-size: clamp(150px, 17vw, 250px); line-height: .8;
  color: transparent; -webkit-text-stroke: 2px var(--tf-ink); transition: color .6s;
}
.fl:hover .tf-num, .fl:focus-visible .tf-num { color: var(--tf-ink); }
.tf-name { position: relative; color: var(--tf-ink); font-size: clamp(48px, 5.6vw, 84px); line-height: .86; margin-bottom: 14px; }
.tf-date { position: relative; font-size: clamp(20px, 2.4vw, 32px); margin-bottom: 10px; }
.tf-foot { position: relative; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.tf-side { position: absolute; right: 12px; bottom: 22px; writing-mode: vertical-rl; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }

/* chrome sticker slapped on the flyer's corner */
.stk {
  position: absolute; top: -22px; right: -18px; width: 104px; height: 104px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: 15px; line-height: 1.05; color: #111; background: var(--plate);
  border: 1px solid rgba(255, 255, 255, .6); transform: rotate(12deg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -4px 0 rgba(0, 0, 0, .25), 0 8px 24px rgba(0, 0, 0, .6);
}

@media (max-width: 860px) {
  .hero { padding: 28px 0 56px; min-height: 0; }
  .hero .in { grid-template-columns: 1fr; gap: 40px; }
  .hero .chrome { width: min(80%, 320px); }
  .hero h1 { font-size: clamp(24px, 7.4vw, 40px); }
  .fl { max-width: 300px; justify-self: start; margin-left: 8px; }
  .tf-name { font-size: clamp(40px, 12.5vw, 64px); }
  .tf-num { font-size: clamp(120px, 44vw, 180px); }
  .stk { width: 84px; height: 84px; font-size: 12px; right: -14px; }
}

/* 2. LARGER: word grows as you scroll, then you fly through it into the doors ----
   No motion: a normal band with the word at full size. With motion (html.mo) the section is tall and the word is
   pinned; index.js sets --s (scale), --w (width axis), --o (word opacity), --t (tagline opacity), --g (glow).
   Phase 1 (first ~55%): the word grows and stretches to fill the screen and the tagline arrives.
   Phase 2: the word keeps growing past the screen and fades, the glow drains to black, and the doors scroll in. */
.grow { position: relative; padding: 72px 0; overflow: hidden; background: var(--black); }
.grow .pin { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; }
.grow .pin::before {
  content: ""; position: absolute; inset: -20%; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 55% 50% at 50% 50%, rgba(30, 63, 174, .55), rgba(127, 247, 242, .06) 45%, transparent 72%);
  opacity: var(--g, 1);
}
.grow .big { position: relative; font-size: 14vw; line-height: .9; white-space: nowrap; filter: drop-shadow(0 0 40px rgba(127, 247, 242, .2)); }
.grow .tail { position: relative; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); padding: 0 var(--gutter); }
@media (prefers-reduced-motion: no-preference) {
  .mo .grow { height: 220vh; padding: 0; overflow: visible; }
  .mo .grow .pin { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); overflow: hidden; }
  .mo .grow .big {
    transform: scale(var(--s, .32)); font-stretch: var(--w, 100%); opacity: var(--o, 1);
    will-change: transform, opacity;
  }
  .mo .grow .tail { opacity: var(--t, 0); transform: translateY(calc((1 - var(--t, 0)) * 30px)); }
  /* the doors overlap the pinned strip: they rise into view while the word flies apart, so there is no empty black screen */
  .mo .grow + .explore { margin-top: -60vh; position: relative; z-index: 1; }
}
/* hero video fades to black at its bottom edge so the strip below doesn't start on a hard line */
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; z-index: 0; pointer-events: none; background: linear-gradient(transparent, var(--black)); }

/* 3. DOORS --------------------------------------------------------------- */
.explore { padding: 72px 0 96px; }
.doors { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 290px; gap: 16px; }
.door {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: flex-end; text-decoration: none;
  border: 1px solid var(--line); border-radius: var(--radius); background: #050505;
  transition: border-color .4s, box-shadow .4s;
}
.door.ev { grid-column: span 2; grid-row: span 2; }
.door::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(5, 6, 12, .15) 30%, rgba(5, 6, 12, .9)); }

/* media sits dim and grey until you hover (or, on touch screens, until the door is in view: .lit) */
.door > img.m, .door > .bgv, .door .fan { transition: transform .9s cubic-bezier(.2, .7, .2, 1), filter .6s; }
.door > img.m { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.door > img.m, .door > .bgv { filter: grayscale(.85) brightness(.6) contrast(1.1); }
.door.so .bgv video { object-position: 50% 88%; } /* keeps the clip's own "LARGER" text clear of the title */

.door .dt { position: relative; z-index: 2; padding: 24px; }
.door h3 { font-size: clamp(22px, 2.5vw, 34px); font-stretch: 108%; transition: font-stretch .6s cubic-bezier(.2, .7, .2, 1); }
.door.ev h3 { font-size: clamp(40px, 6vw, 92px); }
.door:not(.ev) p { font-size: 11px; letter-spacing: .05em; }
.door p { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #dfe6f2; margin-top: 10px; }
.door .dno { position: absolute; z-index: 2; top: 18px; left: 20px; font-size: 11px; letter-spacing: .2em; color: var(--cyan); }
.door .arr { position: absolute; z-index: 2; top: 14px; right: 18px; font: 800 22px var(--f-x); color: var(--cyan); transition: transform .4s cubic-bezier(.2, .7, .2, 1); }

.door:hover, .door:focus-visible, .door.lit { border-color: rgba(127, 247, 242, .7); box-shadow: 0 0 40px rgba(127, 247, 242, .18); }
.door:hover > img.m, .door:hover > .bgv, .door:focus-visible > img.m, .door:focus-visible > .bgv,
.door.lit > img.m, .door.lit > .bgv { filter: none; transform: scale(1.06); }
.door:hover h3, .door:focus-visible h3, .door.lit h3 { font-stretch: 125%; }
.door:hover .arr, .door:focus-visible .arr { transform: translateX(6px); }

/* Events: the Jan 1 date glitches; nothing else is said */
.door .date { display: block; font-size: clamp(16px, 1.8vw, 24px); color: #fff; margin-bottom: 10px; }

/* Sounds: little equaliser in the corner */
.eq { position: absolute; z-index: 2; top: 18px; right: 52px; height: 18px; display: flex; align-items: flex-end; gap: 3px; }
.eq i { width: 3px; height: 40%; background: var(--cyan); }
.eq i:nth-child(2) { height: 90%; } .eq i:nth-child(3) { height: 60%; } .eq i:nth-child(4) { height: 100%; } .eq i:nth-child(5) { height: 35%; }

/* Gallery: a fanned hand of photos that spreads on hover */
.door.ga { background: radial-gradient(circle at 50% 30%, rgba(30, 63, 174, .55), #050505 70%); }
.fan { position: absolute; inset: 0; z-index: 0; }
.fan img {
  position: absolute; left: 50%; top: 12%; width: 36%; aspect-ratio: 461 / 752; object-fit: cover;
  border: 3px solid #e9edf2; border-radius: 4px; box-shadow: 0 10px 30px rgba(0, 0, 0, .7);
  transition: transform .7s cubic-bezier(.2, .7, .2, 1), filter .6s; filter: grayscale(.6) brightness(.75);
}
.fan img:nth-child(1) { transform: translateX(-90%) rotate(-12deg); }
.fan img:nth-child(2) { transform: translateX(-50%) rotate(-1deg); z-index: 1; }
.fan img:nth-child(3) { transform: translateX(-10%) rotate(11deg); }
.door.ga:hover .fan img, .door.ga:focus-visible .fan img, .door.ga.lit .fan img { filter: none; }
.door.ga:hover .fan img:nth-child(1), .door.ga:focus-visible .fan img:nth-child(1), .door.ga.lit .fan img:nth-child(1) { transform: translateX(-125%) translateY(6%) rotate(-18deg); }
.door.ga:hover .fan img:nth-child(2), .door.ga:focus-visible .fan img:nth-child(2), .door.ga.lit .fan img:nth-child(2) { transform: translateX(-50%) translateY(-4%) rotate(0); }
.door.ga:hover .fan img:nth-child(3), .door.ga:focus-visible .fan img:nth-child(3), .door.ga.lit .fan img:nth-child(3) { transform: translateX(25%) translateY(6%) rotate(16deg); }

/* Merch: chrome "Drop 001" stamp */
.drop {
  position: absolute; z-index: 2; top: 42px; right: 18px; padding: 8px 12px;
  font-size: 15px; line-height: 1; text-align: center; color: var(--cyan);
  border: 2px dashed var(--cyan); transform: rotate(-8deg); transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.door.me:hover .drop, .door.me:focus-visible .drop { transform: rotate(0) scale(1.12); }

@media (prefers-reduced-motion: no-preference) {
  .live { animation: pulse 1.6s ease-in-out infinite; }
  .eq i { animation: eq 1s ease-in-out infinite alternate; transform-origin: bottom; }
  .eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.6s; }
  .eq i:nth-child(4) { animation-delay: -.15s; } .eq i:nth-child(5) { animation-delay: -.45s; }
}
@keyframes eq { from { transform: scaleY(.3); } to { transform: scaleY(1); } }

@media (max-width: 860px) {
  .doors { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
  .door { min-height: 230px; }
  .door.ev { grid-row: auto; min-height: 340px; }
}
@media (max-width: 520px) {
  .explore { padding: 56px 0 64px; }
  .doors { grid-template-columns: 1fr; gap: 12px; }
  .door { min-height: 190px; }
  .door.ev { grid-column: auto; min-height: 320px; }
  .door.ga { min-height: 240px; }
  .fan img { width: 26%; top: 8%; }
  .grow .tail { font-size: 11px; }
}
