/* TROUBLE FEATURE — show site, hosted off The Firebird Project.
   Own palette: forest black, B-movie red, bone. */

:root {
  --ink:    #0b0b0d;
  --ink-2:  #131316;
  --ink-3:  #1c1c20;
  --line:   rgba(240, 232, 220, 0.14);
  --bone:   #f0e8dc;
  --bone-2: #b9b0a3;
  --red:    #ff2a2a;
  --red-d:  #c91a1a;
  --f-head: 'Anton', Impact, sans-serif;
  --f-type: 'Special Elite', 'Courier New', monospace;
  --f-body: 'Nunito', system-ui, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --bar-h:  58px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--bar-h); }
body {
  background: var(--ink); color: var(--bone);
  font-family: var(--f-body); line-height: 1.65; font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- top bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--bar-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  transition: background .3s, border-color .3s; border-bottom: 1px solid transparent;
}
.bar.scrolled { background: rgba(11, 11, 13, .88); backdrop-filter: blur(8px); border-color: var(--line); }
.bar__brand { font-family: var(--f-head); font-size: 1.15rem; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.bar__links { display: flex; align-items: center; gap: 1.75rem; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.bar__links a { color: var(--bone-2); transition: color .2s; }
.bar__links a:hover { color: var(--bone); }
.bar__links .bar__fb { color: var(--bone); border: 1px solid var(--line); padding: .35rem .8rem; border-radius: 999px; }
.bar__links .bar__fb:hover { border-color: var(--bone-2); }
.bar__toggle { display: none; width: 40px; height: 40px; position: relative; }
.bar__toggle span { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--bone); transition: transform .25s, top .25s; }
.bar__toggle span:first-child { top: 15px; } .bar__toggle span:last-child { top: 23px; }
.bar__toggle[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.bar__toggle[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; font-family: var(--f-head); font-size: 1rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .85rem 1.6rem; border: 2px solid transparent; transition: transform .2s, background .2s, border-color .2s, box-shadow .2s;
}
.btn--red { background: var(--red); color: #fff; box-shadow: 4px 4px 0 var(--red-d); }
.btn--red:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--red-d); }
.btn--ghost { border-color: var(--bone-2); color: var(--bone); }
.btn--ghost:hover { border-color: var(--bone); background: rgba(240, 232, 220, .08); }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; padding: calc(var(--bar-h) + 1.5rem) 0 4.5rem; overflow: hidden; border-bottom: 1px solid var(--line);
}
.hero__bg {
  position: absolute; inset: 0; z-index: -3;
  background: var(--ink) url('assets/forest.jpg') center / cover no-repeat;
  animation: drift 40s ease-in-out infinite alternate;
}
.hero::before { /* vignette + blend into next section */
  content: ''; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse at 70% 55%, transparent 25%, rgba(11,11,13,.55) 100%),
    linear-gradient(to bottom, rgba(11,11,13,.5), transparent 25%, transparent 75%, rgba(11,11,13,.6));
}
.hero__scan { /* faint film grain / scanlines */
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,.18) 0 1px, transparent 1px 3px);
  animation: flicker 6s steps(1) infinite;
}
@keyframes drift { from { transform: scale(1.04) translateX(-1%); } to { transform: scale(1.1) translateX(1%); } }
@keyframes flicker { 0%, 92%, 96%, 100% { opacity: .5; } 93% { opacity: .15; } 94% { opacity: .7; } 97% { opacity: .3; } }

.hero__inner {
  width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; position: relative; z-index: 3; pointer-events: none; gap: clamp(1rem, 4vw, 4rem);
}
.hero__title img { width: min(126%, 760px); max-width: none; margin: 0 0 .25rem -13%; animation: titlein 1.1s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes titlein { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }
.hero__line {
  font-family: var(--f-type); font-size: clamp(1.25rem, 2.4vw, 1.75rem); line-height: 1.25; color: var(--bone);
  max-width: 24ch; margin: 1.25rem 0 1rem; text-shadow: 0 2px 14px #000;
  animation: fadeup .9s .35s both;
}
.hero__text { max-width: 46ch; color: var(--bone-2); text-shadow: 0 1px 10px #000; animation: fadeup .9s .5s both; }
.hero__cta a, .hero__copy { pointer-events: auto; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; animation: fadeup .9s .65s both; }
@keyframes fadeup { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* tower: foreground element. The table bleeds off the right and bottom edges of
   the hero, so it reads as sitting just inside the frame. */
.hero__hand { display: none; }
.hero__table {
  position: absolute; z-index: 2; right: -2%; bottom: -1.5%; width: min(82vw, 1320px); max-width: none; height: auto;
  pointer-events: none; user-select: none;
  filter: drop-shadow(0 -6px 28px rgba(0, 0, 0, .45));
}


/* ---------- shared section bits ---------- */
.h2 { font-family: var(--f-head); font-weight: 400; text-transform: uppercase; letter-spacing: .02em; line-height: 1.02; font-size: clamp(2.4rem, 6vw, 4.25rem); }
.h2 em { font-style: normal; color: var(--red); }

/* ---------- content blocks ---------- */
.block { padding: clamp(3.5rem, 8vw, 6rem) 0; background: var(--ink); }
.block--alt { background: var(--ink-2); border-block: 1px solid var(--line); }
.dates { list-style: none; margin: 2.5rem 0 2.5rem; border-top: 1px solid var(--line); max-width: 860px; }
.dates li { display: grid; grid-template-columns: 11rem 1fr auto 6.5rem; gap: 1.5rem; align-items: baseline; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.dates__when { font-family: var(--f-type); color: var(--red); }
.dates__title { font-family: var(--f-head); text-transform: uppercase; letter-spacing: .03em; font-size: 1.5rem; line-height: 1.1; }
.dates__tix { font-weight: 800; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--red); text-align: right; white-space: nowrap; }
.dates__tix:hover { color: #fff; }
.dates__where { color: var(--bone-2); text-align: right; }
.dates__tbc { display: inline-block; margin-left: .5rem; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; border: 1px solid var(--bone-2); color: var(--bone-2); padding: .05rem .5rem; border-radius: 999px; white-space: nowrap; }
.dates--past { margin-bottom: 0; }
.credits__lead { font-family: var(--f-type); color: var(--red); margin: 1.5rem 0 1rem; }
.credits__text { max-width: 60ch; font-size: 1.1rem; }
.credits__text strong { font-weight: 800; }

/* ---------- footer ---------- */
.foot { background: #070708; border-top: 1px solid var(--line); padding: 3rem 0 2rem; }
.foot__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.foot__logo img { width: 180px; opacity: .9; transition: opacity .2s; }
.foot__logo:hover img { opacity: 1; }
.foot__links { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; font-size: .9rem; color: var(--bone-2); }
.foot__links a:hover { color: var(--bone); }
.foot__copy { width: 100%; font-size: .8rem; line-height: 1.7; color: #8a8378; max-width: 70ch; }

/* ---------- tablet / mobile ---------- */
@media (max-width: 820px) {
  .dates li { grid-template-columns: 1fr; gap: .15rem; }
  .dates__tix { text-align: left; margin-top: .35rem; }
  .dates__where { text-align: left; }
  .bar__toggle { display: block; }
  .bar__links {
    position: fixed; inset: var(--bar-h) 0 auto 0; flex-direction: column; align-items: flex-start; gap: 0;
    background: rgba(11, 11, 13, .97); border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1.25rem; transform: translateY(-120%); transition: transform .3s; visibility: hidden;
  }
  .bar__links.open { transform: none; visibility: visible; }
  .bar__links a { width: 100%; padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .bar__links .bar__fb { border-radius: 0; border: 0; border-bottom: 1px solid var(--line); padding: .85rem 0; }
  .bar.menu-open { background: rgba(11, 11, 13, .97); }

  /* hero: text first, tower in the foreground underneath, table flush to the bottom */
  .hero { flex-direction: column; align-items: stretch; justify-content: flex-start; height: auto; min-height: calc(100vh - 56px); min-height: calc(100svh - 56px); padding: calc(var(--bar-h) + 1.25rem) 0 0; }
  .hero__inner { grid-template-columns: 1fr; gap: 0; }
  .hero__title img { width: min(112%, 440px); margin: 0 0 0 -6%; }
  .hero__line { font-size: 1.3rem; margin: .5rem 0 .75rem; }
  .hero__text { font-size: .97rem; line-height: 1.55; }
  .hero__cta { margin-top: 1.25rem; }
  .hero__cta .btn { flex: 1 1 auto; text-align: center; }
  /* shadow of a reaching hand in the empty space beside the tower; JS nudges --p (0..1) on scroll */
  .hero__hand { display: block; position: absolute; z-index: 1; left: -35vw; bottom: 70px; width: 60vw; height: auto; pointer-events: none;
    filter: blur(.8px); opacity: 1;
    /* fingertip (right edge) travels from 25vw to 35vw and never reaches the tower (its left side starts at ~43vw) */
    transform: translate(calc(var(--p, 0) * 10vw), calc(var(--p, 0) * -14px)) rotate(calc(var(--p, 0) * -4deg)); transform-origin: 0 50%; will-change: transform; }
  .hero__table { position: relative; right: auto; bottom: auto; align-self: flex-start; flex-shrink: 0; width: 128%; margin: 1.5rem 0 -2% -28%; }
}
@media (max-width: 560px) {
  .block { padding: 2.75rem 0; }
  .dates { margin: 1.5rem 0 2rem; }
  .dates li { padding: .9rem 0; }
  .credits__lead { margin-top: 1rem; }
  body { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- desktop: hero is exactly one screen tall so the table (floor) is always in view ---------- */
@media (min-width: 821px) {
  .hero { height: calc(100vh - 72px); height: calc(100svh - 72px); min-height: 540px; padding-bottom: 10svh; } /* a strip of the next section stays visible */
  .hero__table { width: min(82vw, 135svh, 1400px); }
  .hero__title img { width: min(126%, 760px, 80svh); }
}
@media (min-width: 821px) and (max-height: 900px) {
  .hero__title img { width: min(110%, 600px); margin-left: -8%; }
  .hero__line { font-size: 1.3rem; margin: .75rem 0 .6rem; }
  .hero__text { font-size: .95rem; line-height: 1.55; max-width: 52ch; }
  .hero__cta { margin-top: 1.25rem; }
  .hero__cta .btn { padding: .7rem 1.3rem; }
}
