/* ————————————————————————————————
   Wired Aerial Theatre
   Palette
   ink           #101418  deep slate, base of every panel
   bone          #EDE7DC  primary text
   bone-dim      #B7AFA2  secondary text
   red           #DB1921  brand red (logo) — buttons, solid fills
   red-bright    #EA5158  lifted red for small text on dark
   hairline      rgba(237,231,220,.14)
———————————————————————————————— */

:root {
  --ink: #101418;
  --bone: #ede7dc;
  --bone-dim: #b7afa2;
  --red: #db1921;
  --red-bright: #ea5158;
  --hairline: rgba(237, 231, 220, 0.14);
  --panel: rgba(16, 20, 24, 0.55);
  --display: "Marcellus", "Times New Roman", serif;
  --body: "Instrument Sans", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(1.25rem, 5vw, 4rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--bone);
  background: var(--ink);
  overflow-x: hidden;
}

::selection { background: var(--red); color: var(--bone); }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--red-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ——— Fixed backdrop ——— */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
}

.backdrop__image {
  position: absolute;
  inset: -2%;
  background: url("https://s3-eu-west-2.amazonaws.com/cdn.wiredaerialtheatre.com/media/images/20190711_bo4_karl_forster8%20copy%202.jpg") center / cover no-repeat;
  filter: saturate(0.7) contrast(1.05);
  animation: backdrop-in 2.4s var(--ease-out) both;
}

.backdrop__tint {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16, 20, 24, 0.72) 0%, rgba(16, 20, 24, 0.45) 40%, rgba(16, 20, 24, 0.82) 100%),
    radial-gradient(120% 90% at 50% 108%, rgba(219, 25, 33, 0.14) 0%, transparent 55%);
}

.backdrop__grain {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}

@keyframes backdrop-in {
  from { opacity: 0; transform: scale(1.04); }
  to   { opacity: 1; transform: scale(1); }
}

/* ——— Header ——— */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--gutter);
  transition: background-color 0.5s ease, backdrop-filter 0.5s ease, border-color 0.5s ease;
  border-bottom: 1px solid transparent;
  animation: fade-down 1.2s var(--ease-out) 0.3s both;
}

.site-header.scrolled {
  background: rgba(16, 20, 24, 0.6);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--hairline);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.wordmark__logo {
  display: block;
  height: 2.5rem;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.nav-social {
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 2vw, 1.15rem);
}

.nav-social a {
  color: var(--bone-dim);
  font-size: 1.05rem;
  text-decoration: none;
  line-height: 1;
  transition: color 0.3s ease;
}

.nav-social a:hover { color: var(--bone); }

.site-nav a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bone-dim);
  transition: color 0.3s ease;
}

.site-nav a:hover { color: var(--bone); }

@keyframes fade-down {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ——— Shared bits ——— */

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--red-bright);
}

/* ——— Hero ——— */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem var(--gutter) 5rem;
  position: relative;
}

.hero__logo {
  display: block;
  height: clamp(4.5rem, 10vw, 6.5rem);
  width: auto;
  margin-bottom: clamp(1.8rem, 4vh, 2.8rem);
  animation: rise 1.1s var(--ease-out) 0.35s both;
}

.hero__notice { animation: rise 1.1s var(--ease-out) 0.5s both; }

.notice {
  display: inline-block;
  max-width: min(100%, 36rem);
  padding: 0.55em 1.4em;
  border: 1px solid var(--hairline);
  border-radius: 2rem;
  background: rgba(16, 20, 24, 0.45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 0.85rem;
  line-height: 1.6;
  text-align: center;
  color: var(--bone-dim);
}

.notice a { white-space: nowrap; }

.notice a {
  color: var(--red-bright);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: color 0.3s ease;
}

.notice a:hover { color: var(--bone); }

.hero__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.3rem, 6.5vw, 4.8rem);
  line-height: 1.1;
  margin: 1.6rem 0 2.2rem;
  letter-spacing: 0.01em;
  animation: title-in 1.6s var(--ease-out) 0.65s both;
}

.hero__copy {
  max-width: 42rem;
  display: grid;
  gap: 1.1rem;
  justify-items: center;
  color: var(--bone-dim);
}

.hero__copy > * { animation: rise 1.1s var(--ease-out) both; }
.hero__copy > *:nth-child(1) { animation-delay: 1.05s; }
.hero__copy > *:nth-child(2) { animation-delay: 1.2s; }
.hero__copy > *:nth-child(3) { animation-delay: 1.35s; }
.hero__copy > *:nth-child(4) { animation-delay: 1.5s; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--red-bright);
  margin-bottom: 1.2rem;
  transition: color 0.3s ease;
}

.text-link::after {
  content: "\2193";
  font-size: 1.1em;
  transition: transform 0.3s var(--ease-out);
}

.text-link:hover { color: var(--bone); }
.text-link:hover::after { transform: translateY(3px); }

.hero__statement {
  max-width: 40rem;
  margin-top: clamp(2.5rem, 6vh, 4rem);
  font-family: var(--display);
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1.35;
  color: var(--bone);
  animation: rise 1.1s var(--ease-out) 1.65s both;
}

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

@keyframes title-in {
  from { opacity: 0; transform: translateY(26px); letter-spacing: 0.12em; }
  to   { opacity: 1; transform: translateY(0); letter-spacing: 0.01em; }
}

/* Scroll cue */

.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  animation: rise 1.1s var(--ease-out) 1.7s both;
}

.scroll-cue__label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--bone-dim);
  transition: color 0.3s ease;
}

.scroll-cue:hover .scroll-cue__label { color: var(--bone); }

.scroll-cue__line {
  width: 1px;
  height: 3.2rem;
  background: var(--hairline);
  position: relative;
  overflow: hidden;
}

.scroll-cue__line::after {
  content: "";
  position: absolute;
  left: 0;
  top: -40%;
  width: 100%;
  height: 40%;
  background: var(--red-bright);
  animation: cue-drop 2.2s ease-in-out infinite;
}

@keyframes cue-drop {
  0%   { top: -40%; }
  60%, 100% { top: 110%; }
}

/* ——— Films ——— */

.films {
  display: grid;
  gap: clamp(4rem, 10vh, 7rem);
  padding: clamp(4rem, 12vh, 8rem) var(--gutter);
  max-width: 68rem;
  margin: 0 auto;
}

.film {
  display: grid;
  gap: 1.6rem;
}

.film__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1.5rem;
}

.film__meta .eyebrow { flex-basis: 100%; margin-bottom: 0.4rem; }

.film__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.1;
}

.film__note {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--bone-dim);
}

.film__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: rgba(16, 20, 24, 0.6);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.65);
}

.film__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ——— Legal pages ——— */

.legal {
  max-width: 56rem;
  margin: 0 auto;
  padding: clamp(8rem, 18vh, 11rem) var(--gutter) clamp(4rem, 10vh, 7rem);
}

.legal__panel {
  padding: clamp(2rem, 5vw, 3.5rem);
  background: var(--panel);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid var(--hairline);
  border-radius: 8px;
}

.legal__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.15;
  margin: 1rem 0 0.6rem;
}

.legal__updated {
  font-size: 0.85rem;
  color: var(--bone-dim);
  margin-bottom: 2.2rem;
}

.legal__body {
  display: grid;
  gap: 1.1rem;
  color: var(--bone-dim);
}

.legal__body h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--bone);
  margin-top: 1.4rem;
}

.legal__body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--bone);
  margin-top: 0.8rem;
}

.legal__body ul,
.legal__body ol {
  padding-left: 1.4rem;
  display: grid;
  gap: 0.5rem;
}

.legal__body a {
  color: var(--red-bright);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.legal__body a:hover { color: var(--bone); }

/* ——— Contact ——— */

.contact {
  max-width: 68rem;
  margin: 0 auto;
  padding: clamp(4rem, 12vh, 8rem) var(--gutter) clamp(5rem, 14vh, 9rem);
}

.contact__panel {
  padding: clamp(2rem, 5vw, 3.5rem);
  background: var(--panel);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid var(--hairline);
  border-radius: 8px;
}

.contact__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  line-height: 1.18;
  margin: 1.2rem 0 2.2rem;
}

.contact__form {
  display: grid;
  gap: 1.6rem;
}

@media (min-width: 700px) {
  .contact__form {
    grid-template-columns: 1fr 1fr;
    column-gap: 2.5rem;
  }

  .contact__form .field--message,
  .contact__form .button,
  .contact__form .form-status {
    grid-column: 1 / -1;
  }
}

.field {
  display: grid;
  gap: 0.5rem;
}

.field--hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

.field input,
.field textarea {
  font: inherit;
  color: var(--bone);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  padding: 0.55rem 0;
  border-radius: 0;
  transition: border-color 0.35s ease;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder { color: rgba(183, 175, 162, 0.5); }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--red-bright);
}

.button {
  justify-self: start;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #fff;
  background: var(--red);
  border: 1px solid var(--red);
  border-radius: 3px;
  padding: 0.95rem 2.2rem;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin-top: 0.4rem;
}

.button:hover {
  background: transparent;
  color: var(--red-bright);
}

.button:disabled {
  opacity: 0.6;
  cursor: default;
  pointer-events: none;
}

.form-status {
  min-height: 1.5em;
  font-size: 0.9rem;
  color: var(--red-bright);
}

/* ——— Footer ——— */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem var(--gutter);
  border-top: 1px solid var(--hairline);
  background: rgba(16, 20, 24, 0.6);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  font-size: 0.82rem;
  color: var(--bone-dim);
}

.site-footer a {
  color: var(--bone);
  text-decoration: none;
  letter-spacing: 0.14em;
  transition: color 0.3s ease;
}

.site-footer a:hover { color: var(--red-bright); }

.site-footer__legal a {
  color: var(--bone-dim);
  letter-spacing: normal;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(237, 231, 220, 0.35);
}

.site-footer__legal a:hover { color: var(--bone); }

.pazaz-link {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  font-weight: 600;
}

.pazaz-link svg {
  width: 1.1em;
  height: 1.1em;
}

/* ——— Back to top ——— */

.back-to-top {
  position: fixed;
  right: 50px;
  bottom: 50px;
  z-index: 15;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  background: rgba(16, 20, 24, 0.6);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--bone-dim);
  font-size: 1.15rem;
  text-decoration: none;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s var(--ease-out), color 0.3s ease, border-color 0.3s ease;
}

.back-to-top.visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.back-to-top:hover {
  color: var(--bone);
  border-color: var(--red-bright);
}

/* ——— Scroll reveals ——— */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* ——— Small screens ——— */

@media (max-width: 600px) {
  .wordmark__logo { height: 2rem; }

  .notice {
    font-size: 0.8rem;
    padding: 0.75em 1.3em;
    border-radius: 1rem;
  }

  .site-nav { gap: 1rem; }
  .nav-social { gap: 0.75rem; }

  .back-to-top {
    right: 1.25rem;
    bottom: 1.25rem;
    width: 2.6rem;
    height: 2.6rem;
  }
  .hero { padding-bottom: 9rem; }
  .scroll-cue__line { height: 2.4rem; }
}

/* ——— Reduced motion ——— */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .backdrop__image,
  .site-header,
  .hero__logo,
  .hero__notice,
  .hero__title,
  .hero__copy > *,
  .hero__statement,
  .scroll-cue { animation: none; }

  .scroll-cue__line::after { animation: none; top: 30%; }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
