:root {
  color-scheme: dark;
  --ink: #fff8f3;
  --muted: #d9cbd4;
  --soft: #9f919a;
  --night: #151014;
  --panel: #221820;
  --panel-2: #2c2029;
  --line: rgba(255, 248, 243, 0.14);
  --magenta: #ff4f91;
  --cyan: #22b8c8;
  --gold: #f1bf4d;
  --green: #64d28a;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-color: currentColor;
}

button,
input {
  font: inherit;
}

.skip-link,
.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;
}

.skip-link:focus {
  z-index: 1000;
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.7rem 1rem;
  clip: auto;
  border-radius: 6px;
  background: var(--ink);
  color: var(--night);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem clamp(1rem, 4vw, 3rem);
  background: rgba(21, 16, 20, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  gap: 4px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle__line {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 88svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: clamp(7rem, 13vh, 10rem) clamp(1rem, 4vw, 3rem) clamp(3rem, 8vh, 5rem);
}

.hero__media,
.hero__shade {
  position: absolute;
  inset: 0;
}

.hero__media {
  background-image: url("/assets/images/biphoria-hero.png");
  background-size: cover;
  background-position: center;
  transform: scale(1.01);
}

.hero__shade {
  background: rgba(11, 9, 12, 0.62);
}

.hero__content {
  position: relative;
  width: min(760px, 100%);
  z-index: 1;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 13ch;
  margin-bottom: 1.1rem;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  max-width: 14ch;
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.7rem;
  font-size: 1.35rem;
  line-height: 1.16;
}

.hero__intro {
  max-width: 640px;
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.32rem);
}

.hero__actions,
.button-row,
.signup-form__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 900;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
}

.button--primary {
  background: var(--magenta);
  color: #130d12;
}

.button--primary:hover,
.button--primary:focus-visible {
  background: #ff72a7;
}

.button--ghost {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.button--secondary {
  border-color: rgba(34, 184, 200, 0.7);
  color: var(--ink);
}

.button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(34, 184, 200, 0.55);
  outline-offset: 2px;
}

.notice {
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: var(--gold);
  color: #17110c;
}

.notice p {
  max-width: var(--max);
  margin: 0 auto;
  font-weight: 650;
}

.notice a {
  color: #17110c;
  font-weight: 900;
}

.section {
  padding: clamp(4rem, 9vw, 7rem) clamp(1rem, 4vw, 3rem);
}

.section__heading {
  max-width: var(--max);
  margin: 0 auto clamp(2rem, 5vw, 3.5rem);
}

.section__heading h2 {
  max-width: 790px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
}

.feature-card,
.event-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.feature-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.feature-card__body {
  padding: 1.35rem;
}

.feature-card p,
.event-card p,
.newsletter p,
.timeline span,
.form-note {
  color: var(--muted);
}

.feature-card p:last-child,
.event-card p:last-child,
.newsletter p:last-child {
  margin-bottom: 0;
}

.section--events {
  background: #1c1613;
}

.event-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
}

.event-card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.2rem, 3vw, 2rem);
}

.event-card__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.event-card__city,
.event-card__day {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 900;
}

.event-card__city {
  padding: 0.35rem 0.6rem;
  background: var(--cyan);
  color: #071315;
}

.event-card__day {
  color: var(--gold);
}

.timeline {
  display: grid;
  gap: 1rem;
  margin: 1.2rem 0 1.4rem;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.timeline strong {
  color: var(--green);
}

.button-row {
  margin-top: auto;
}

.newsletter {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.75fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) clamp(1rem, 4vw, 3rem);
}

.newsletter h2 {
  max-width: 660px;
}

.signup-form {
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  box-shadow: var(--shadow);
}

.signup-form label:not(.checkbox) {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 850;
}

.signup-form__row {
  flex-wrap: nowrap;
  margin-bottom: 0.85rem;
}

.signup-form input[type="email"] {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.95);
  color: #181219;
  padding: 0 0.85rem;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0.75rem 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.checkbox input {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.22rem;
  accent-color: var(--magenta);
}

.form-note {
  margin: 0;
  font-size: 0.9rem;
}

.form-success {
  margin: 0.75rem 0 0;
  color: var(--green);
  font-size: 0.92rem;
  font-weight: 800;
}

.hidden-frame {
  position: absolute;
  width: 1px;
  height: 1px;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.4rem clamp(1rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer div {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-weight: 900;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-end;
}

.site-footer p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--soft);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .feature-grid,
  .event-layout,
  .newsletter {
    grid-template-columns: 1fr;
  }

  .newsletter {
    padding-inline: clamp(1rem, 4vw, 3rem);
  }
}

@media (max-width: 760px) {
  body.nav-open {
    position: fixed;
    width: 100%;
  }

  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: fixed;
    inset: 73px 0 auto;
    display: none;
    padding: 0.8rem 1rem 1rem;
    background: rgba(21, 16, 20, 0.97);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    padding: 0.85rem 0.75rem;
  }

  .hero {
    min-height: 84svh;
  }

  h1 {
    font-size: clamp(2.65rem, 16vw, 4.7rem);
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .signup-form__row {
    flex-direction: column;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
