/* =====================================================================
   BORN ON ROAD FESTIVAL — Phase 2
   Aesthetic: Bristol screenprint / soundsystem culture / risograph
   Palette pulled from the artwork itself: cream-mint base, deep teal,
   navy ink, hot yellow + pink accents.
   ===================================================================== */

:root {
  /* Pulled directly from the artwork's flat-colour zones */
  --cream:        #DAEED7;   /* page bg, matches the bg behind the towers */
  --cream-warm:   #F4EFD9;   /* highlight cream, lineup blocks */
  --mint:         #BFE5C8;   /* mid mint */
  --teal:         #3FB89E;   /* primary accent — used by ALT CTA, bottom ticker, dots */
  --teal-deep:    #2D9A82;   /* hover/active — darker shade of --teal */
  --ink:          #0E2A2C;   /* near-black navy */
  --ink-soft:     #1B3A3C;
  --yellow:       #F8D957;   /* hot yellow — CTA */
  --yellow-deep:  #E5BD2C;
  --pink:         #F8A4B0;   /* soft pink accent */
  --pink-deep:    #E07686;

  --shadow-block: 6px 6px 0 var(--ink);
  --shadow-block-sm: 4px 4px 0 var(--ink);

  --font-display: 'Bowlby One SC', 'Archivo Black', 'Impact', sans-serif;
  --font-body:    'Archivo', -apple-system, system-ui, sans-serif;
  --font-mono:    'DM Mono', ui-monospace, 'Menlo', monospace;

  --maxw:         1280px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

html {
  background: var(--cream);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.45;
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

img, picture, video { max-width: 100%; display: block; }

/* ---------- Skip link / accessibility ---------- */
.skip {
  position: absolute; left: -1000px; top: 0; z-index: 200;
  background: var(--ink); color: var(--cream-warm);
  font-family: var(--font-mono); font-size: 13px;
  padding: 10px 14px; text-decoration: none;
  border: 2px solid var(--cream-warm);
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- Grain overlay — adds tactile screenprint texture ---------- */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 100;
  opacity: .14; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.05  0 0 0 0 0.16  0 0 0 0 0.17  0 0 0 0.7 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ---------- Marquees (top ticker + bottom strip) ----------
   Pattern: parent has overflow:hidden; track is `width: max-content`
   containing exactly TWO identical groups; we translateX from 0 to -50%
   so the loop snap lands on a clean group boundary (no off-by-gap jump).
   Each group uses padding-right for the inter-group gutter so the visual
   cadence stays uniform across the snap.
   ----------------------------------------------------------- */
.ticker {
  background: var(--ink);
  color: var(--cream-warm);
  border-bottom: 4px solid var(--ink);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .04em;
  padding: 9px 0;
  position: relative;
  z-index: 5;
}
.ticker__track {
  display: flex;
  width: max-content;
  /* slower so it reads as ambient texture not a chase */
  animation: marquee 90s linear infinite;
  will-change: transform;
}
.ticker__group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 18px;
  padding-right: 18px; /* matches internal gap so groups join seamlessly */
  white-space: nowrap;
}
.ticker__dot { color: var(--teal); }

@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 4px solid var(--ink);
  background: var(--cream);
}

.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  display: block;
}
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero__inner {
  position: relative; z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(16px, 2.5vh, 36px) clamp(16px, 4vw, 48px);
  /* Fit one viewport minus the ticker; svh/dvh handle mobile address bar properly */
  min-height: calc(100vh - 38px);
  min-height: calc(100svh - 38px);
  min-height: calc(100dvh - 38px);
  display: grid;
  place-items: center;
}

.hero__stage {
  width: 100%;
  max-width: 720px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  gap: clamp(10px, 1.8vh, 22px);
  animation: rise .9s cubic-bezier(.2,.8,.2,1) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

.hero__logo {
  display: block;
  /* vh constraint keeps the logo + headline + CTA all on one screen */
  width: clamp(150px, min(28vw, 19vh), 280px);
  filter: drop-shadow(4px 4px 0 rgba(14,42,44,.18));
  animation: pop 1.1s cubic-bezier(.2,1.6,.3,1) both .15s;
}
.hero__logo img { width: 100%; height: auto; }

@keyframes pop {
  0%   { opacity: 0; transform: scale(.85) rotate(-1deg); }
  60%  { opacity: 1; transform: scale(1.03) rotate(.5deg); }
  100% { opacity: 1; transform: none; }
}

.hero__copy { display: contents; }

.kicker {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--yellow);
  display: inline-flex; gap: 10px; align-items: center;
  padding: 8px 14px;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-block-sm);
  margin: 0;
  transform: rotate(-1.5deg);
  animation: rise .9s cubic-bezier(.2,.8,.2,1) both .25s;
}
.kicker__dot {
  color: var(--pink-deep);
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .25; }
}

.headline {
  font-family: var(--font-display);
  font-weight: 400;
  margin: 0;
  color: var(--ink);
  line-height: .88;
  letter-spacing: -.01em;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.headline__line {
  display: inline-block;
  /* vh-aware so 3 lines never push past the fold on short viewports */
  font-size: clamp(38px, min(9.5vw, 11vh), 96px);
  padding: 0 .15em;
  line-height: 1;
  position: relative;
  text-transform: uppercase;
  animation: rise .9s cubic-bezier(.2,.8,.2,1) both;
}
.headline__line--1 {
  color: var(--cream-warm);
  -webkit-text-stroke: 3px var(--ink);
  text-shadow:
    4px 4px 0 var(--teal),
    4px 4px 0 1px var(--ink);
  animation-delay: .35s;
}
.headline__line--2 {
  color: var(--ink);
  background: var(--yellow);
  border: 4px solid var(--ink);
  padding: 4px .25em 0;
  box-shadow: var(--shadow-block);
  transform: rotate(-1deg);
  animation-delay: .45s;
  /* Extra breathing room below the boxed ON SALE block so NOW doesn't crowd it */
  margin-bottom: clamp(8px, 1.4vh, 18px);
}
.headline__line--3 {
  color: var(--cream-warm);
  -webkit-text-stroke: 3px var(--ink);
  text-shadow:
    4px 4px 0 var(--pink),
    4px 4px 0 1px var(--ink);
  animation-delay: .55s;
}

/* ---------- CTA ---------- */
.cta {
  --cta-bg: var(--yellow);
  --cta-fg: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.5vw, 14px);
  padding: clamp(12px, 1.8vh, 20px) clamp(16px, 4vw, 28px);
  background: var(--cta-bg);
  color: var(--cta-fg);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(15px, min(2.4vw, 2.6vh), 26px);
  text-transform: uppercase;
  letter-spacing: .02em;
  text-decoration: none;
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  position: relative;
  transition: transform .12s ease, box-shadow .12s ease, background .15s ease;
  animation: rise .9s cubic-bezier(.2,.8,.2,1) both .65s;
  cursor: pointer;
  /* Allow shrinking on narrow screens; keep on a single line where possible */
  max-width: min(92vw, 460px);
  white-space: nowrap;
  text-align: center;
}
.cta:hover, .cta:focus-visible {
  transform: translate(2px, 2px);
  box-shadow: 4px 4px 0 var(--ink);
  background: var(--cream-warm);
  outline: none;
}
.cta:active {
  transform: translate(6px, 6px);
  box-shadow: 0 0 0 var(--ink);
}
.cta__arrow {
  color: var(--teal);
  font-size: .8em;
  display: inline-block;
  transform: translateY(-1px);
}
.cta__chev {
  font-size: 1em;
  display: inline-block;
  transition: transform .2s ease;
}
.cta:hover .cta__chev { transform: translateX(4px); }

.cta--alt {
  --cta-bg: var(--teal);
  --cta-fg: var(--cream-warm);
}
.cta--alt:hover, .cta--alt:focus-visible {
  background: var(--ink);
  color: var(--cream-warm);
}

/* ---------- Hero meta ---------- */
.meta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px;
  margin: 6px 0 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink);
  animation: rise .9s cubic-bezier(.2,.8,.2,1) both .75s;
}
.meta div {
  display: inline-flex; align-items: baseline; gap: 8px;
  background: rgba(244,239,217,.85);
  padding: 8px 12px;
  border: 2px solid var(--ink);
}
.meta dt {
  font-weight: 500; opacity: .55; text-transform: uppercase;
  letter-spacing: .12em; font-size: 11px;
}
.meta dd { margin: 0; font-weight: 500; }
.meta time { font-variant-numeric: tabular-nums; }

/* ---------- Scroll hint — anchored to hero bottom, gently bounces ---------- */
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: clamp(10px, 2.5vh, 28px);
  transform: translateX(-50%);
  z-index: 4;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--cream-warm);
  border: 2px solid var(--ink);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  box-shadow: var(--shadow-block-sm);
  /* Custom centred-rise keeps translateX(-50%) so it doesn't snap mid-load */
  animation: scroll-rise .9s cubic-bezier(.2,.8,.2,1) both 1.1s,
             scroll-bounce 2.4s cubic-bezier(.4,0,.4,1) infinite 2.4s;
  transition: background .15s ease, color .15s ease;
}
.scroll-hint:hover, .scroll-hint:focus-visible {
  background: var(--yellow);
  color: var(--ink);
  outline: none;
  animation-play-state: paused, paused;
}
.scroll-hint__chev {
  font-size: 12px;
  color: var(--teal);
  line-height: 1;
}
.scroll-hint:hover .scroll-hint__chev,
.scroll-hint:focus-visible .scroll-hint__chev { color: var(--ink); }

@keyframes scroll-rise {
  from { opacity: 0; transform: translate(-50%, 16px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
@keyframes scroll-bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 6px); }
}

/* On very short viewports (<560px tall) hide the hint to avoid overlap */
@media (max-height: 560px) {
  .scroll-hint { display: none; }
}

/* ---------- LINEUP ---------- */
.lineup {
  background: var(--cream-warm);
  padding: clamp(48px, 8vw, 110px) clamp(16px, 4vw, 48px) clamp(40px, 7vw, 90px);
  border-bottom: 4px solid var(--ink);
  position: relative;
  z-index: 2;
}

.lineup::before {
  /* deckle-edge top — torn-paper feel */
  content: "";
  position: absolute; top: -1px; left: 0; right: 0; height: 14px;
  background: var(--cream);
  clip-path: polygon(
    0 100%, 0 30%, 3% 60%, 7% 20%, 12% 70%, 17% 40%, 22% 80%, 27% 30%,
    33% 70%, 38% 20%, 44% 60%, 50% 30%, 56% 70%, 62% 25%, 68% 65%,
    74% 30%, 80% 75%, 86% 35%, 92% 70%, 96% 40%, 100% 60%, 100% 100%
  );
}

.lineup__head {
  max-width: 980px;
  margin: 0 auto clamp(24px, 4vw, 48px);
  text-align: center;
}

.overline {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin: 0 0 12px;
}

.lineup__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(44px, 9vw, 96px);
  line-height: .9;
  margin: 0 0 12px;
  text-transform: uppercase;
  color: var(--ink);
  letter-spacing: -.01em;
}
.lineup__title .nbsp { white-space: nowrap; }

.lineup__sub {
  max-width: 540px;
  margin: 0 auto;
  font-size: 16px;
  color: var(--ink-soft);
}

/* Poster image — the visual lineup */
.lineup__poster {
  display: block;
  margin: 0 auto;
  max-width: min(560px, 90vw);
  animation: rise .6s cubic-bezier(.2,.8,.2,1) both;
}
.lineup__poster img {
  width: 100%;
  height: auto;
  filter: drop-shadow(4px 4px 0 rgba(14,42,44,.12));
}

/* Visually hidden but accessible to screen readers, crawlers, and AI agents.
   Standard "sr-only" pattern with !important guards in case other selectors
   try to restyle it. */
.lineup__list--sr {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.artist--hi span:first-child {
  color: var(--teal);
  background:
    linear-gradient(transparent 65%, var(--yellow) 65%, var(--yellow) 88%, transparent 88%);
  padding: 0 .12em;
}

.dot {
  color: var(--teal);
  margin: 0 .25em;
  font-size: .55em;
  vertical-align: middle;
  display: inline-block;
  transform: translateY(-.18em);
}

.lineup__more {
  text-align: center;
  font-family: var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin: clamp(28px, 4vw, 48px) 0 0;
  font-size: 14px;
}

.lineup__cta {
  text-align: center;
  margin-top: clamp(28px, 4vw, 44px);
}

/* ---------- Bottom strip ---------- */
.strip {
  background: var(--teal);
  color: var(--ink);
  padding: 18px 0;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  text-transform: uppercase;
  border-bottom: 4px solid var(--ink);
}
.strip__track {
  display: flex;
  width: max-content;
  /* slower than the top ticker so the rhythm reads as deliberate */
  animation: marquee 70s linear infinite;
  will-change: transform;
}
.strip__group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 24px;
  padding-right: 24px;
  white-space: nowrap;
}
.strip__dot { color: var(--cream-warm); }

/* ---------- Footer — centred close-out, not afterthought ---------- */
.footer {
  background: var(--ink);
  color: var(--cream-warm);
  padding: clamp(48px, 7vw, 84px) clamp(16px, 4vw, 48px) clamp(28px, 4vw, 44px);
  position: relative;
  overflow: hidden;
}
/* Diamond accent at the top edge that visually ties to the marquee dots */
.footer::before {
  content: "◆ ◆ ◆";
  position: absolute;
  top: clamp(14px, 2.4vw, 22px);
  left: 50%; transform: translateX(-50%);
  color: var(--teal);
  letter-spacing: 14px;
  font-size: 12px;
  opacity: .55;
}

.footer__inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(20px, 3vw, 32px);
}

.footer__logo {
  display: inline-block;
  width: clamp(220px, 32vw, 320px);
  line-height: 0;
}
.footer__logo img { width: 100%; height: auto; }

.footer__cta {
  /* Slightly chunkier than hero CTA so it reads as a real call-to-action */
  margin: 0;
}

.footer__links {
  display: inline-flex; align-items: center;
  gap: 12px; flex-wrap: wrap; justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.footer__links a {
  color: var(--cream-warm);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: border-color .15s ease, color .15s ease;
}
.footer__links a::after { content: " ↗"; opacity: .55; }
.footer__links a:hover,
.footer__links a:focus-visible {
  color: var(--yellow);
  border-color: var(--yellow);
  outline: none;
}
.footer__links a:hover::after,
.footer__links a:focus-visible::after { opacity: 1; }

.footer__sep {
  color: var(--teal);
  font-size: 9px;
  opacity: .7;
}

.footer__legal {
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: .55;
  margin: 0;
  letter-spacing: .08em;
  text-transform: uppercase;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 12px;
  max-width: 600px;
}
.footer__legal time { font-variant-numeric: tabular-nums; }

@media (max-width: 540px) {
  .footer__legal      { font-size: 10px; gap: 4px 8px; }
  .footer__cta        { font-size: 14px; padding: 12px 16px; }
  .footer__links      { font-size: 12px; }
  .footer::before     { letter-spacing: 8px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .ticker__track, .strip__track { animation: none; }
}

/* ---------- Tweaks for narrower phones ---------- */
@media (max-width: 540px) {
  .headline__line { font-size: clamp(38px, 13vw, 60px); }

  /* Lineup poster a bit tighter on mobile so it doesn't dwarf the page */
  .lineup__poster { max-width: min(420px, 92vw); }

  /* Compact meta cards on mobile — kept visible but slimmed down */
  .meta {
    gap: 6px 8px;
    font-size: 11px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .meta div { padding: 5px 9px; gap: 5px; }
  .meta dt { font-size: 9px; letter-spacing: .1em; }

  .scroll-hint { font-size: 10px; padding: 6px 10px; letter-spacing: .18em; }
  /* Tighter vertical rhythm so logo + headline + CTA + meta all fit */
  .hero__stage { gap: 10px; }
  .hero__inner { padding-top: clamp(8px, 1.5vh, 18px); }
  .hero__logo  { width: clamp(130px, min(24vw, 17vh), 200px); }
  .cta {
    box-shadow: 4px 4px 0 var(--ink);
    /* Single line, comfortable padding, fits on a 320px screen */
    font-size: 16px;
    padding: 14px 18px;
  }
}

/* Extra-short phones (landscape, small): hide hint to avoid overlap */
@media (max-height: 600px) and (max-width: 540px) {
  .kicker { display: none; }
}

/* ---------- Wider screens: more breathing room ---------- */
@media (min-width: 1024px) {
  .lineup__list .dot { font-size: .5em; }
}
