/* APEX After Dark — apex.fomobaku.com. Shares nothing with the main theme. */

/* 1. Fonts (self-hosted, latin + latin-ext for Azerbaijani and the ₼ sign) */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Archivo Black';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/archivo-black-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Archivo Black';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/archivo-black-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 2. Tokens */

:root {
  --ink: #0A0A0B;
  --paper: #F2F0EC;
  --gold: #F5C84B;

  --line: rgba(242, 240, 236, .12);
  --line-soft: rgba(242, 240, 236, .1);
  --line-strong: rgba(242, 240, 236, .16);
  --muted: rgba(242, 240, 236, .6);
  --muted-soft: rgba(242, 240, 236, .45);
  --body-dim: rgba(242, 240, 236, .76);

  --ink-muted: rgba(10, 10, 11, .66);
  --ink-line: rgba(10, 10, 11, .16);

  --sans: 'Archivo', Helvetica, Arial, sans-serif;
  --display: 'Archivo Black', 'Archivo', Helvetica, sans-serif;
  --mono: ui-monospace, Menlo, Monaco, Consolas, monospace;

  --shell: 1320px;
  --gutter: 28px;
  --nav-h: 61px;
}

/* 3. Base */

*, *::before, *::after { box-sizing: border-box; }

/* Author display rules outrank the UA rule behind [hidden], so display:flex
   elements below would keep their box once JS hides them. */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  /* clears the fixed nav */
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* height:auto is load-bearing: the width/height attributes would otherwise make
   the used height definite and cancel any aspect-ratio below. */
img { max-width: 100%; height: auto; display: block; }

a { color: var(--gold); text-decoration: none; transition: color .18s ease, background-color .18s ease; }
a:hover { color: #FFFFFF; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.apex-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 18px;
  background: var(--gold);
  color: var(--ink);
  font: 600 12px/1 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.apex-skip:focus { left: 12px; top: 12px; color: var(--ink); }

/* Assistive tech only — disambiguates repeated link labels. */
.apex-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;
}

.apex-shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  width: 100%;
}

/* Shared type helpers */

.apex-eyebrow {
  font: 500 10px/1 var(--mono);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
}

.apex-tag {
  font: 500 10px/1 var(--mono);
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 7px 10px;
  white-space: nowrap;
}
.apex-tag--gold { color: var(--ink); background: var(--gold); }
.apex-tag--ghost { color: var(--paper); background: rgba(242, 240, 236, .12); }

.apex-h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(30px, 4.6vw, 58px);
  line-height: .98;
  letter-spacing: -.01em;
  text-transform: uppercase;
}

.apex-section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 4. Navigation */

.apex-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px var(--gutter);
  background: rgba(10, 10, 11, .72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(242, 240, 236, .1);
}

.apex-nav__brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: var(--paper);
  min-width: 0;
}
.apex-nav__brand:hover { color: var(--paper); }

.apex-nav__mark {
  font-family: var(--display);
  font-size: 19px;
  letter-spacing: .02em;
}

.apex-nav__sub {
  font: 400 10px/1 var(--mono);
  letter-spacing: .22em;
  color: rgba(242, 240, 236, .5);
  text-transform: uppercase;
  white-space: nowrap;
}

.apex-nav__links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.apex-nav__link {
  font: 500 12px/1 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(242, 240, 236, .7);
}
.apex-nav__link:hover { color: var(--paper); }

.apex-btn {
  display: inline-block;
  font: 600 12px/1 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gold);
  padding: 11px 18px;
  border-radius: 2px;
  white-space: nowrap;
}
.apex-btn:hover { background: #FFFFFF; color: var(--ink); }

/* 5. Hero */

.apex-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 0 var(--gutter) 40px;
}

.apex-hero__backdrop,
.apex-hero__video,
.apex-hero__scrim {
  position: absolute;
  inset: 0;
}

.apex-hero__backdrop {
  background: repeating-linear-gradient(135deg, #15151a 0 16px, #0d0d10 16px 32px);
  animation: apexdrift 24s ease-in-out infinite alternate;
}

.apex-hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.apex-hero__scrim {
  background: linear-gradient(180deg,
    rgba(10, 10, 11, .82) 0%,
    rgba(10, 10, 11, .25) 38%,
    rgba(10, 10, 11, .86) 82%,
    var(--ink) 100%);
}

.apex-hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 34px;
  max-width: var(--shell);
  width: 100%;
  margin: 0 auto;
  padding-top: 140px;
}

.apex-hero__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.apex-hero__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(52px, 10.5vw, 168px);
  line-height: .88;
  letter-spacing: -.02em;
  text-transform: uppercase;
  text-wrap: balance;
}

.apex-hero__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
}

.apex-hero__lede {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 560px;
}

.apex-hero__lede p {
  margin: 0;
  font: 400 17px/1.55 var(--sans);
  color: rgba(242, 240, 236, .78);
  text-wrap: pretty;
}

.apex-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font: 500 12px/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Countdown */

.apex-countdown {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.apex-countdown__label {
  font: 500 10px/1 var(--mono);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted-soft);
}

.apex-countdown__grid {
  display: flex;
  gap: 10px;
}

.apex-countdown__cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 74px;
  flex: 1 1 0;
  padding: 14px 10px;
  background: rgba(242, 240, 236, .07);
  border: 1px solid rgba(242, 240, 236, .14);
}

.apex-countdown__value {
  font-family: var(--display);
  font-weight: 400;
  font-size: 30px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.apex-countdown__unit {
  font: 500 9px/1 var(--mono);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(242, 240, 236, .5);
}

@keyframes apexdrift {
  0%   { transform: scale(1.04) translate3d(0, 0, 0); }
  100% { transform: scale(1.12) translate3d(-1.5%, -1.5%, 0); }
}

/* 6. Line-up strip */

.apex-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.apex-strip__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.apex-strip__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  color: var(--paper);
}
.apex-strip__item:hover { color: var(--gold); }

.apex-strip__date {
  font: 500 11px/1 var(--mono);
  letter-spacing: .16em;
  color: var(--ink);
  padding: 8px 9px;
  white-space: nowrap;
}

.apex-strip__artist {
  font-family: var(--display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: .01em;
  text-transform: uppercase;
}

/* 7. Night sections */

.apex-lineup-head {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 96px var(--gutter) 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.apex-lineup-head .apex-h2 { font-size: clamp(30px, 4.6vw, 58px); }

.apex-lineup-head__note {
  margin: 0;
  font: 500 13px/1.6 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.apex-night {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 34px var(--gutter);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 48px;
  align-items: start;
}

.apex-night + .apex-night { border-top: 1px solid var(--line-soft); }
.apex-night:last-of-type { padding-bottom: 80px; }

.apex-night__art {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid rgba(242, 240, 236, .14);
  background: #111;
}

.apex-night__body {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.apex-night__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.apex-night__badge {
  font: 500 10px/1 var(--mono);
  letter-spacing: .18em;
  color: var(--ink);
  padding: 8px 9px;
}

.apex-chip {
  font: 500 10px/1 var(--mono);
  letter-spacing: .18em;
  color: var(--muted);
  border: 1px solid rgba(242, 240, 236, .2);
  padding: 7px 9px;
}

.apex-night__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: .94;
  text-transform: uppercase;
}

.apex-night__text {
  margin: 0;
  font: 400 16px/1.6 var(--sans);
  color: var(--body-dim);
  text-wrap: pretty;
}

/* Hairline grid: the 1px gaps show the container colour through. Columns are
   fixed, not auto-fit — a track count that does not divide the item count
   leaves unfilled areas that render as blocks of hairline colour. */

.apex-data {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(242, 240, 236, .14);
}

@media (max-width: 1080px) {
  .apex-data { grid-template-columns: repeat(2, 1fr); }
}

.apex-data__cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  background: var(--ink);
}

.apex-data__key {
  font: 500 9px/1 var(--mono);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted-soft);
}

.apex-data__val { font: 600 15px/1 var(--sans); }

.apex-night__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.apex-btn--lg {
  padding: 14px 20px;
  border-radius: 0;
}

.apex-btn--ghost {
  display: inline-block;
  font: 500 11px/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(242, 240, 236, .7);
  border: 1px solid rgba(242, 240, 236, .22);
  padding: 13px 14px;
}
.apex-btn--ghost:hover { color: var(--ink); background: var(--paper); }

/* 8. Tickets (inverted) */

.apex-tickets {
  background: var(--paper);
  color: var(--ink);
}

.apex-tickets .apex-shell { padding-top: 88px; padding-bottom: 88px; }

.apex-tickets__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 44px;
}

.apex-tickets__eyebrow {
  font: 500 10px/1 var(--mono);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(10, 10, 11, .5);
}

.apex-tickets__note {
  margin: 0;
  max-width: 420px;
  font: 400 15px/1.6 var(--sans);
  color: rgba(10, 10, 11, .7);
  text-wrap: pretty;
}

/* 3 tiers: 3 or 1 column only — a 2-column pass would strand an empty cell. */
.apex-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ink-line);
}

@media (max-width: 860px) {
  .apex-tiers { grid-template-columns: 1fr; }
}

.apex-tier {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  background: var(--paper);
}

.apex-tier__name {
  font: 600 12px/1 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
}

.apex-tier__price {
  font-family: var(--display);
  font-weight: 400;
  font-size: 38px;
  line-height: 1;
}

.apex-tier__body {
  font: 400 14px/1.55 var(--sans);
  color: var(--ink-muted);
}

.apex-tickets__fine {
  margin: 14px 0 0;
  font: 400 11px/1.6 var(--mono);
  letter-spacing: .06em;
  color: rgba(10, 10, 11, .5);
}

.apex-buy {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
  margin-top: 34px;
}

.apex-buy__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  background: var(--ink);
  color: var(--paper);
}
.apex-buy__link:hover { background: var(--accent, var(--gold)); color: var(--ink); }

.apex-buy__night {
  font: 600 14px/1 var(--sans);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.apex-buy__cta { font: 500 11px/1 var(--mono); }

/* 9. Practical info */

.apex-info {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 92px var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

/* 8 cells, and 4 / 2 / 1 all divide 8. Keep any added cells even. */
.apex-info__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(242, 240, 236, .14);
}

@media (max-width: 1080px) {
  .apex-info__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .apex-info__grid { grid-template-columns: 1fr; }
}

.apex-info__cell {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  background: var(--ink);
}

.apex-info__key {
  font: 500 9px/1 var(--mono);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted-soft);
}

.apex-info__val { font: 600 16px/1.4 var(--sans); }

.apex-info__link {
  font: 500 11px/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* 10. Q&A */

.apex-faq {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 60px var(--gutter) 96px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 56px;
  align-items: start;
}

.apex-faq__intro .apex-h2 { font-size: clamp(30px, 3.8vw, 48px); }

.apex-faq__note {
  margin: 0;
  font: 400 14px/1.6 var(--sans);
  color: var(--muted);
  text-wrap: pretty;
}

.apex-faq__list { display: flex; flex-direction: column; }

.apex-faq__item { border-top: 1px solid var(--line-strong); }
.apex-faq__item:last-child { border-bottom: 1px solid var(--line-strong); }

.apex-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  font: 600 17px/1.35 var(--sans);
  list-style: none;
  cursor: pointer;
}
.apex-faq__q::-webkit-details-marker { display: none; }

.apex-faq__plus {
  font: 400 20px/1 var(--mono);
  color: var(--gold);
  transition: transform .2s ease;
  flex: none;
}
.apex-faq__item[open] .apex-faq__plus { transform: rotate(45deg); }

.apex-faq__a {
  margin: 0 0 22px;
  max-width: 64ch;
  font: 400 15px/1.65 var(--sans);
  color: rgba(242, 240, 236, .72);
}

/* 11. Footer */

.apex-footer { border-top: 1px solid rgba(242, 240, 236, .14); }

.apex-footer__grid {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 56px var(--gutter);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  align-items: start;
}

.apex-footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.apex-footer__mark {
  font-family: var(--display);
  font-weight: 400;
  font-size: 26px;
  text-transform: uppercase;
  line-height: .95;
}

.apex-footer__when {
  font: 400 12px/1.6 var(--mono);
  letter-spacing: .1em;
  color: rgba(242, 240, 236, .5);
}

.apex-footer__key {
  font: 500 9px/1 var(--mono);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted-soft);
}

.apex-footer__val { font: 600 14px/1.7 var(--sans); }
.apex-footer__link { font: 600 14px/1.5 var(--sans); }
.apex-footer__small { font: 400 13px/1.6 var(--sans); color: var(--muted); }

.apex-footer__legal {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter) 40px;
  font: 400 11px/1.6 var(--mono);
  letter-spacing: .08em;
  color: rgba(242, 240, 236, .35);
}

/* 12. Responsive */

/* Dividers and indents only make sense multi-column. */
@media (min-width: 700px) {
  .apex-strip__item + .apex-strip__item { padding-left: var(--gutter); }
  .apex-strip__item:not(:last-child) { border-right: 1px solid var(--line-soft); }
}

@media (max-width: 699.98px) {
  .apex-strip__item + .apex-strip__item { border-top: 1px solid var(--line-soft); }
}

@media (max-width: 900px) {
  .apex-nav__links .apex-nav__link { display: none; }
  .apex-nav { gap: 14px; }
}

@media (max-width: 767px) {
  :root { --gutter: 20px; }

  .apex-hero { min-height: 92vh; padding-bottom: 32px; }
  .apex-hero__inner { gap: 26px; padding-top: 112px; }
  .apex-hero__foot { gap: 28px; }
  .apex-hero__lede p { font-size: 16px; }

  .apex-countdown__grid { gap: 6px; width: 100%; }
  .apex-countdown__cell { min-width: 0; padding: 12px 4px; }
  .apex-countdown__value { font-size: 24px; }

  .apex-lineup-head { padding-top: 64px; }
  .apex-night { gap: 28px; padding-top: 28px; padding-bottom: 28px; }
  .apex-night__body { gap: 18px; }

  .apex-tickets .apex-shell { padding-top: 64px; padding-bottom: 64px; }
  .apex-tickets__head { margin-bottom: 32px; }

  .apex-info { padding-top: 64px; gap: 28px; }
  .apex-faq { gap: 32px; padding-bottom: 72px; }
  .apex-faq__q { font-size: 16px; }

  .apex-footer__grid { gap: 32px; padding-top: 44px; padding-bottom: 44px; }
}

@media (max-width: 380px) {
  .apex-nav__sub { display: none; }
  .apex-countdown__unit { letter-spacing: .1em; }
}

/* 13. Motion & print */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .apex-hero__backdrop { animation: none; }
  .apex-faq__plus { transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  .apex-nav, .apex-hero__video, .apex-hero__backdrop { display: none; }
  body { background: #fff; color: #000; }
}
