/* ============================================================
   indexv2 - two boxes (Adam, 15 Oct 2026). Loads AFTER style.css,
   which supplies the ground (.bg, .jelly, .orbs), Jost, the palette
   tokens and the footer. Only the two boxes live here.
     Left:  Pete Tong Ibiza Classics, the client's poster artwork on
            its own stage scene, the whole box links to /petetong/.
     Right: Electric Bay house box, the sign-up panel's jellyfish
            glass with the logo and "Announcement coming soon."
   Side by side from 760px wide, stacked (Pete Tong first) below.
   ============================================================ */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.duo {
  flex: 1 0 auto;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 56px) 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(18px, 3vw, 36px);
  align-content: center;
}

/* ---------- title: logo + 2027 / 5th Anniversary ----------
   Spans both columns. The 2027 sits between two short rules like the
   poster's "- 2027 -"; the glow matches the box line below. */
.title {
  grid-column: 1 / -1;
  text-align: center;
  animation: riseIn .9s cubic-bezier(.16,.84,.36,1) both;
}
.title__h1 { margin: 0; font-weight: inherit; line-height: 1; }
.title__logo {
  display: block;
  width: 100%;
  max-width: clamp(240px, 30vw, 380px);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 4px 18px rgba(8,12,26,.7));
}
.title__year,
.title__sub {
  display: block;
  color: var(--foam);
  text-shadow:
    0 1px 3px rgba(8,12,26,.9),
    0 2px 16px rgba(8,12,26,.8),
    0 0 26px rgba(226,124,242,.55);
}
.title__year {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: clamp(8px, 1.2vw, 14px);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  letter-spacing: .14em;
  padding-left: .14em;            /* balance the trailing letter-spacing */
}
.title__year::before,
.title__year::after {
  content: "";
  width: 34px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--glow), var(--orb));
  box-shadow: 0 0 12px rgba(89,231,236,.55);
}
.title__venue {
  margin: 8px 0 0;
  font-weight: 500;
  font-size: clamp(.82rem, 1.1vw, .95rem);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--mist);
  text-shadow: 0 1px 3px rgba(8,12,26,.9), 0 2px 14px rgba(8,12,26,.8);
}
.title__sub {
  margin-top: 6px;
  font-weight: 500;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  letter-spacing: .04em;
}

.box {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.9);
  animation: riseIn .9s .12s cubic-bezier(.16,.84,.36,1) both;
}

/* ---------- Pete Tong ---------- */
.box--pt {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(18px, 2.4vw, 28px) clamp(16px, 2.4vw, 28px) clamp(20px, 2.6vw, 30px);
  text-decoration: none;
  background: #C9B65A url("/petetong/assets/images/bg-mobile-sm.webp?v=20261015-1") center 62% / cover no-repeat;
  border: 1px solid rgba(242,231,158,.45);
  box-shadow:
    0 30px 70px -30px rgba(0,0,0,.9),
    0 0 44px -16px rgba(242,231,158,.55);
}
/* night at the foot so the button sits on the crowd, not the sky */
.box--pt::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(7,16,30,0) 55%, rgba(7,16,30,.72) 100%);
}
/* "Just announced" (Adam, 15 Oct): a night pill above the poster, so it
   never covers the poster's own date, title or venue. */
.box__flag {
  display: inline-block;
  margin-bottom: clamp(10px, 1.4vw, 14px);
  padding: 7px 16px;
  font-family: var(--font);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #F2E79E;                 /* sun gold on night, 15.6:1 */
  background: #07101E;
  border-radius: 999px;
  box-shadow: 0 6px 18px -8px rgba(7,16,30,.8);
}
.box__flag-dot { margin: 0 .25em; opacity: .7; }
/* Day 2 pill: same size and height from the top as the Pete Tong pill
   (that one is in flow under the box padding; this box is bottom-aligned,
   so it is placed), in jellyfish cyan on night with the orb glow. */
.box__flag--eb {
  position: absolute;
  top: clamp(18px, 2.4vw, 28px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  margin: 0;
  white-space: nowrap;
  color: var(--glow);             /* cyan on night */
  background: #080C1A;
  box-shadow: 0 0 0 1px rgba(89,231,236,.35), 0 6px 22px -8px rgba(226,124,242,.7);
}
.box__art {
  display: block;
  width: 100%;
  max-width: 440px;
  height: auto;
}
.box__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 360px;
  margin-top: clamp(12px, 1.8vw, 18px);
  padding: 15px 18px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #07101E;                 /* night on sun gold, 15.6:1 */
  background: #F2E79E;
  border-radius: 999px;
  box-shadow: 0 14px 34px -14px rgba(242,231,158,.8);
  transition: transform .12s ease, filter .18s ease, box-shadow .18s ease;
}
.box--pt:hover .box__btn {
  filter: brightness(1.05);
  box-shadow: 0 16px 38px -12px rgba(242,231,158,.95);
}
.box--pt:active .box__btn { transform: translateY(1px); }
.box--pt:focus-visible { outline: 2px solid #F2E79E; outline-offset: 3px; }

/* ---------- Electric Bay ---------- */
.box--eb {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 420px;
  /* the festival's portrait artwork: one jellyfish over the crowd */
  background: #080C1A url("/assets/images/bg-mobile-sm.webp?v=20260928-1") center 38% / cover no-repeat;
  border: 1px solid rgba(89,231,236,.22);
  box-shadow:
    0 30px 70px -30px rgba(0,0,0,.9),
    0 0 44px -18px rgba(202,95,208,.55);
  animation-delay: .22s;
}
/* night on the sand so the line reads under the jellyfish */
.box--eb::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(8,12,26,0) 50%, rgba(8,12,26,.78) 100%);
}
/* the bioluminescent top edge, as on the sign-up panel */
.box--eb::before {
  content: "";
  position: absolute;
  top: 0; left: 22px; right: 22px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg,
    rgba(89,231,236,0), var(--glow) 22%, var(--orb) 78%, rgba(226,124,242,0));
  box-shadow: 0 0 14px rgba(89,231,236,.55), 0 0 22px rgba(226,124,242,.35);
}
/* Same padding as the Pete Tong box, so both buttons sit at the same
   height above the foot and the same width (Adam, 15 Oct: "the buttons
   need to be in the same positions"). */
.box__eb-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 clamp(16px, 2.4vw, 28px) clamp(20px, 2.6vw, 30px);
  text-align: center;
}
.box__line {
  margin: clamp(18px, 2.4vw, 28px) auto 0;
  font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.16;
  letter-spacing: -.01em;
  color: var(--foam);
  text-wrap: balance;
  text-shadow:
    0 1px 3px rgba(8,12,26,.9),
    0 2px 16px rgba(8,12,26,.8),
    0 0 26px rgba(226,124,242,.55);
}
.box__line::after {
  content: "";
  display: block;
  width: min(140px, 40%);
  height: 3px;
  margin: clamp(12px, 1.6vw, 16px) auto 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--glow), var(--orb));
  box-shadow: 0 0 14px rgba(89,231,236,.6), 0 0 22px rgba(226,124,242,.4);
}

/* ---------- Electric Bay sign-up button (always shown) ---------- */
.box__btn--eb {
  text-decoration: none;
  margin-top: clamp(12px, 1.8vw, 18px);   /* = the Pete Tong button */
  color: var(--ink);              /* logo ink on lifted orb, 7.42:1 */
  background: var(--orb);
  box-shadow: 0 14px 34px -14px rgba(226,124,242,.85), 0 0 22px -6px rgba(89,231,236,.45);
}
.box__btn--eb:hover { filter: brightness(1.06); }
.box__btn--eb:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; }

/* ---------- side by side ---------- */
@media (min-width: 760px) {
  .duo {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    align-items: stretch;
    padding-top: clamp(16px, 3vh, 40px);
    padding-bottom: clamp(16px, 3vh, 40px);
    gap: clamp(16px, 2.6vh, 32px) clamp(18px, 3vw, 36px);
  }
  .box--pt { justify-content: flex-end; }
  /* With the title above, size by window HEIGHT too, so a 1440x900 laptop
     still shows title, both boxes and footer on one screen. The poster is
     square-ish, so its width is capped at what is left of the height. */
  .title__logo { max-width: min(380px, 30vw, calc(32vh)); }
  .box__art { max-width: min(440px, max(300px, calc(100vh - 575px))); }
}

@media (max-width: 400px) {
  .box__btn { font-size: .98rem; padding: 13px 14px; letter-spacing: .04em; }
}

@media (prefers-reduced-motion: reduce) {
  .box { animation: none; }
}
