/* ============================================================
   BODY OF WORK — styles.css
   ============================================================
   Anastasia Script is a commercial font. When the file is
   available, add an @font-face block here and it will load
   automatically — it is already first in --font-script stack.
   Great Vibes (Google Fonts) serves as the fallback.
   ============================================================ */


/* ============================================================
   RESET
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }


/* ============================================================
   BRAND TOKENS
============================================================ */
:root {
  --peach:        #FFD099;
  --peach-light:  #FFEACE;
  --cyan:         #61e2df;
  --turquoise:    #CDFFED;
  --cocoa:        #6b3e0a;
  --fluoro:       #EDFF97;
  --cool-pale:    #F3FADC;
  --olive:        #64690C;
  --deep:         #47365C;
  --vivid-red:    rgb(151, 12, 16);

  --font-display: 'Noto Serif Display', Georgia, serif;
  --font-script:  'Pinyon Script', 'Great Vibes', cursive;
  --font-body:    'Noto Serif', Georgia, serif;

  --track-display:  0.285em;
  --track-wide:     0.209em;
  --track-normal:  -0.033em;
  --track-tight:   -0.057em;
}

html { scroll-behavior: smooth; }

body {
  background: var(--peach);
  color: var(--cocoa);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Side gutters — light-peach slivers fixed to viewport edges */
body::before,
body::after {
  content: '';
  position: fixed;
  top: 0;
  width: clamp(1.2rem, 2vw, 2.5rem);
  height: 100vh; /* fallback */
  height: 100dvh;
  background: var(--peach-light);
  z-index: 997;
  pointer-events: none;
}
body::before { left: 0; }
body::after  { right: 0; }


/* ============================================================
   FLASK PROGRESS — vertical line, left edge, fills bottom to top
============================================================ */
.flask-track {
  position: fixed;
  left: calc(clamp(2rem, 2vw, 3rem) + 6px);
  top: 0;
  width: 5px;
  height: 100vh;
  background: rgba(71, 54, 92, 0.12);
  z-index: 998;
  pointer-events: none;
}

.flask-fill {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  background: var(--turquoise);
  height: 0%;
  transition: height 0.08s linear;
}


/* ============================================================
   HERO ENTRANCE ANIMATIONS
============================================================ */
@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__script  { animation: hero-fade-up 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both; }
.title-display { animation: hero-fade-up 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both; }
.hero__subtitle { animation: hero-fade-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both; }


/* ============================================================
   SCROLL REVEAL — non-hero sections
============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible    { opacity: 1; transform: translateY(0); }
.reveal-delay-1    { transition-delay: 0.12s; }
.reveal-delay-2    { transition-delay: 0.26s; }
.reveal-delay-3    { transition-delay: 0.42s; }
.reveal-delay-4    { transition-delay: 0.6s; }


/* ============================================================
   HERO
============================================================ */
.hero {
  min-height: 100svh;
  background: var(--peach);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Inset content clear of gutters (clamp(1.2rem,2vw,2.5rem)) and flask track on left */
  padding-left: calc(clamp(1.2rem, 2vw, 2.5rem) + 1.4rem);
  padding-right: calc(clamp(1.2rem, 2vw, 2.5rem) + 0.8rem);
}

.hero__beaker {
  right: clamp(1rem, 3vw, 3rem);
  bottom: 0;
  height: 100svh;
  max-height: 80svh;
  width: auto;
  /* Subtract right gutter so beaker never slides underneath it */
  max-width: calc(50vw - clamp(1.2rem, 2vw, 2.5rem) - 0.8rem);
  min-width: 0;
  opacity: 0.88;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  display: block;
  object-fit: contain;
}

/* Hero text — simple flex column, intentionally off-centre */
.hero__text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
}

.hero__script {
  font-family: var(--font-script);
  font-size: clamp(5rem, 12vw, 11rem);
  color: var(--cool-pale);
  white-space: nowrap;
  line-height: 1;
  margin-bottom: -0.12em;
  text-shadow: 5px 5px 0px rgba(173, 156, 0, 0.60);
}

/* "WORK" — primary display word */
.title-display {
  font-family: var(--font-display);
  font-size: clamp(6rem, 14vw, 13rem);
  font-weight: 400;
  font-variation-settings: 'wdth' 62.5, 'wght' 400, 'opsz' 72;
  letter-spacing: var(--track-display);
  /* Compensate for trailing letter-spacing so text is optically centred */
  padding-left: var(--track-display);
  color: var(--fluoro);
  line-height: 0.85;
  text-shadow: 8px 8px 0px rgba(173, 156, 0, 0.60);
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(2.5rem, 3vw, 2.4rem);
  font-weight: 200;
  font-stretch: condensed;
  font-variation-settings: 'wdth' 75, 'wght' 400, 'opsz' 36;
  letter-spacing: var(--track-wide);
  text-shadow: 2px 2px 0px rgb(151, 12, 16, 0.40);
  color: var(--cocoa);
  margin-top: -7px;
}

.hero__credits {
  font-family: var(--font-body);
  font-size: clamp(.8rem, 1vw, 2.2rem);
  letter-spacing: var(--track-tight);
  color: var(--olive);
  font-weight: 400;
  line-height: 1.6;
  text-align: center;
}


/* ============================================================
   INFO LIST — numbered rows
============================================================ */
.info-list {
  background: var(--peach);
  padding: 3vh 5vw 8vh clamp(5rem, 8vw, 9rem);
}

.info-list__row_first {
  border-top: 1px solid rgba(71, 54, 92, 0.12);
}

.info-list__row {
  display: grid;
  grid-template-columns: 11rem 1fr auto;
  align-items: center;
  row-gap: clamp(1rem, 2vw, 2.5rem);
  column-gap: clamp(5rem, 2vw, 6rem);;
  padding: clamp(1.2rem, 2vh, 1.8rem) 15px;
  border-bottom: 1px solid rgba(71, 54, 92, 0.12);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

/* Fluoro hover wipe — add class "info-list__row--hover-wipe" to any row to enable.
   The ::before pseudo-element starts scaleX(0) and sweeps to scaleX(1) on hover.
   Children are z-index:1 so they sit above the wipe layer. */
.info-list__row--hover-wipe::before {
  content: '';
  position: absolute;
  inset: 4px 0;
  background: var(--fluoro);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
}

.info-list__row--hover-wipe:hover::before { transform: scaleX(1); }

/* Children above wipe layer — already in place for when wipe is active */
.info-list__row > * {
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.info-list__label {
  font-family: var(--font-body);
  font-size: 1.5rem;
  letter-spacing: 0.28em;
  text-transform: lowercase;
  color: var(--olive);
  white-space: nowrap;
}

.info-list__value {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 2.4rem);
  font-weight: 400;
  font-stretch: extra-condensed;
  font-variation-settings: 'wdth' 62.5, 'wght' 400, 'opsz' 36;
  color: var(--deep);
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.info-list__arrow {
  font-size: 1.1rem;
  color: var(--deep);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}

/* Hover colour inversions */
/* .info-list__row:hover .info-list__num,
.info-list__row:hover .info-list__label,
.info-list__row:hover .info-list__value,
.info-list__row:hover .info-list__arrow { color: var(--cool-pale); } */

.info-list__row:hover .info-list__num   { opacity: 0.5; }
.info-list__row:hover .info-list__label { opacity: 1; }

.info-list__row:hover .info-list__arrow {
  opacity: 1;
  transform: translateX(0);
}

/* CTA row — tickets link is slightly bolder */
.info-list__row--cta .info-list__value {
  font-style: italic;
}


/* ============================================================
   PLOT SUMMARY — editorial
============================================================ */
.plot {
  background: var(--peach);
  height: 10svh;
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  padding: 0 5vw;
  overflow: hidden;
}

.plot__text {
  font-family: var(--font-display);
  font-size: clamp(0.7rem, 7vw, 3rem);
  font-weight: 400;
  font-variation-settings: 'wdth' 62.5, 'wght' 400, 'opsz' 36;
  color: var(--cocoa);
  white-space: nowrap;
  letter-spacing: 0.02em;
}




/* ============================================================
   FOOTER
============================================================ */
footer {
  background: var(--deep);
  overflow: hidden;
  padding: 1rem clamp(1.8rem, 7vw, 4rem) 1rem;
}

.footer__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: clamp(0.4rem, 1.5vw, 2rem);
  font-family: var(--font-body);
  font-size: clamp(0.5rem, 3vw, 1.6rem);
  letter-spacing: var(--track-tight);
  color: var(--cool-pale);
  opacity: 0.6;
  white-space: nowrap;
  line-height: 1.8;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    justify-content: center;
    padding: clamp(4rem, 7vh, 6rem) clamp(1.5rem, 5vw, 3rem) 0;
    gap: 35px;
  }

  .hero__text {
    align-items: center;
    text-align: center;
  }

  .hero__script {
    font-size: clamp(3.5rem, 9vw, 6rem);
  }

  .hero__subtitle {
    font-size: clamp(1rem, 4.5vw, 2.4rem);
  }

  .hero__beaker {
    max-width: 80%;
    max-height: 50svh;
    opacity: 0.7;
  }
}

@media (max-width: 700px) {
  .info-list {
    padding: 2vh 5vw;
  }

  .info-list__row {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }

  .info-list__label {
    grid-column: 1;
    grid-row: 1;
  }

  .info-list__value {
    grid-column: 1;
    grid-row: 2;
  }

  .info-list__arrow { grid-row: 1 / 3; }

  .flask-track { display: none; }
}


/* ============================================================
   SELECTION + FOCUS
============================================================ */
::selection { background: var(--fluoro); color: var(--cocoa); }
:focus-visible { outline: 2px solid var(--turquoise); outline-offset: 3px; }
