/* APEX Launch — cinematic keynote */

:root {
  --bg: #0a0a0c;
  --bg-elev: #121216;
  --bg-card: #16161c;
  --coral: #ff4d3a;
  --coral-dim: rgba(255, 77, 58, 0.18);
  --ice: #f4f2ef;
  --ice-muted: rgba(244, 242, 239, 0.62);
  --ice-faint: rgba(244, 242, 239, 0.12);
  --line: rgba(244, 242, 239, 0.1);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --max: 72rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ice);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
}

button {
  cursor: pointer;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 1rem;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2.4rem, 5.5vw, 4.25rem);
  max-width: 14ch;
}

/* Header */
.site-header {
  position: fixed;
  top: 1.1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: min(calc(100% - 1.5rem), 52rem);
  padding: 0.55rem 0.55rem 0.55rem 1.1rem;
  border-radius: 999px;
  background: rgba(10, 10, 12, 0.72);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.brand__mark {
  color: var(--coral);
}

.header-meta {
  display: none;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--ice-muted);
}

.header-meta__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 4px var(--coral-dim);
}

.blast-toggle {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: var(--ice);
  color: var(--bg);
  transition: transform 0.45s var(--ease);
}

.blast-toggle:active {
  transform: scale(0.97);
}

.blast-toggle__bars {
  position: relative;
  width: 16px;
  height: 10px;
}

.blast-toggle__bars i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.45s var(--ease), top 0.45s var(--ease);
}

.blast-toggle__bars i:first-child {
  top: 2px;
}

.blast-toggle__bars i:last-child {
  top: 7px;
}

.blast-toggle.is-open .blast-toggle__bars i:first-child {
  top: 4.5px;
  transform: rotate(45deg);
}

.blast-toggle.is-open .blast-toggle__bars i:last-child {
  top: 4.5px;
  transform: rotate(-45deg);
}

.blast-toggle__label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Blast menu */
.blast-menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: grid;
  place-items: center;
  padding: 5rem var(--pad) 2rem;
  background: rgba(10, 10, 12, 0.94);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.blast-menu[hidden] {
  display: none;
}

.blast-menu__nav {
  display: grid;
  gap: 0.35rem;
  width: min(100%, 36rem);
}

.blast-link {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.blast-link::before {
  content: attr(data-index);
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--coral);
}

.blast-link span {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  transition: color 0.35s var(--ease);
}

.blast-link em {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--ice-muted);
}

.blast-link:hover span {
  color: var(--coral);
}

.blast-menu__foot {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ice-muted);
  white-space: nowrap;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  padding: 8rem var(--pad) 4rem;
  overflow: hidden;
}

.hero__parallax {
  position: absolute;
  inset: -8% 0 -8%;
  z-index: 0;
}

.hero__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.1) saturate(0.85) brightness(0.55);
  transform: scale(1.08);
}

.hero__wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 70% 30%, rgba(255, 77, 58, 0.22), transparent 60%),
    linear-gradient(180deg, rgba(10, 10, 12, 0.35) 0%, rgba(10, 10, 12, 0.55) 45%, var(--bg) 100%);
}

.hero__orb {
  position: absolute;
  width: 42vw;
  height: 42vw;
  max-width: 520px;
  max-height: 520px;
  right: -6%;
  top: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 77, 58, 0.35), transparent 68%);
  filter: blur(40px);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max));
  margin: 0 auto;
}

.hero__kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 1.25rem;
}

.hero__title {
  font-size: clamp(2.75rem, 8vw, 5.75rem);
  max-width: 14ch;
  margin-bottom: 1.5rem;
}

.hero__line {
  display: block;
}

.hero__line--accent {
  color: var(--coral);
}

.hero__lede {
  max-width: 38rem;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--ice-muted);
  margin-bottom: 2rem;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 5.5rem));
  gap: 0.65rem;
  margin-bottom: 2rem;
}

.countdown__cell {
  padding: 0.85rem 0.5rem;
  border-radius: 1rem;
  background: rgba(22, 22, 28, 0.85);
  border: 1px solid var(--line);
  text-align: center;
}

.countdown__val {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.countdown__cell span {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ice-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__scroll {
  position: absolute;
  right: var(--pad);
  bottom: 2rem;
  z-index: 1;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ice-muted);
  writing-mode: vertical-rl;
}

.hero__scroll i {
  width: 1px;
  height: 3rem;
  background: linear-gradient(var(--coral), transparent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3rem;
  padding: 0.75rem 1.25rem 0.75rem 1.4rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  transition: transform 0.45s var(--ease), background 0.45s var(--ease), color 0.45s var(--ease);
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--coral);
  color: #140806;
}

.btn--primary:hover {
  background: #ff6a5a;
}

.btn__icon {
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: rgba(10, 10, 12, 0.18);
  transition: transform 0.45s var(--ease);
}

.btn--primary:hover .btn__icon {
  transform: translate(2px, -1px) scale(1.05);
}

.btn--ghost {
  background: transparent;
  color: var(--ice);
  border: 1px solid var(--ice-faint);
  padding-inline: 1.4rem;
}

.btn--ghost:hover {
  border-color: rgba(244, 242, 239, 0.28);
  background: rgba(244, 242, 239, 0.04);
}

.btn--full {
  width: 100%;
}

/* Agenda */
.agenda {
  display: grid;
  gap: 3rem;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(5rem, 12vw, 9rem) var(--pad);
}

.agenda__sticky h2 {
  margin-bottom: 1.25rem;
}

.agenda__intro {
  max-width: 28rem;
  color: var(--ice-muted);
  margin-bottom: 1.75rem;
}

.agenda__progress {
  height: 2px;
  width: min(100%, 16rem);
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.agenda__progress-fill {
  height: 100%;
  width: 0%;
  background: var(--coral);
  transform-origin: left center;
}

.agenda__steps {
  display: grid;
  gap: 2.5rem;
}

.chapter {
  display: grid;
  gap: 1.25rem;
  padding: 1.5rem;
  border-radius: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
}

.chapter__num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--coral);
}

.chapter__body h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.4rem;
}

.chapter__time {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 0.85rem;
}

.chapter__body p:last-child {
  color: var(--ice-muted);
  max-width: 36rem;
}

.chapter__media {
  border-radius: 1.15rem;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--bg-elev);
}

.chapter__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05);
  transition: transform 0.8s var(--ease);
}

.chapter:hover .chapter__media img {
  transform: scale(1.04);
}

/* Speakers */
.speakers {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 8rem) var(--pad);
}

.section-head {
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.speakers__grid {
  display: grid;
  gap: 1.25rem;
}

.speaker {
  display: grid;
  gap: 1.15rem;
  padding: 0.65rem;
  border-radius: 1.75rem;
  background: rgba(244, 242, 239, 0.03);
  border: 1px solid var(--line);
}

.speaker__photo {
  border-radius: 1.25rem;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--bg-elev);
}

.speaker__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.25) contrast(1.08);
  transition: transform 0.8s var(--ease), filter 0.8s var(--ease);
}

.speaker:hover .speaker__photo img {
  transform: scale(1.05);
  filter: grayscale(0) contrast(1.08);
}

.speaker__meta {
  padding: 0.35rem 0.75rem 1rem;
}

.speaker__meta h3 {
  font-size: 1.45rem;
  margin-bottom: 0.25rem;
}

.speaker__role {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 0.75rem;
}

.speaker__meta p:last-child {
  color: var(--ice-muted);
  font-size: 0.95rem;
}

/* Venue */
.venue {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 8rem) var(--pad);
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.venue__lede {
  max-width: 32rem;
  color: var(--ice-muted);
  margin: 1.25rem 0 1.75rem;
  font-size: 1.05rem;
}

.venue__list {
  list-style: none;
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.venue__list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ice-muted);
}

.venue__list svg {
  color: var(--coral);
  flex-shrink: 0;
}

.venue__media {
  border-radius: 1.75rem;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--line);
}

.venue__media img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  filter: contrast(1.08) saturate(0.9);
}

.venue__media figcaption {
  padding: 1rem 1.25rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ice-muted);
}

/* Register */
.register {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0 var(--pad) clamp(5rem, 12vw, 9rem);
}

.register__card {
  display: grid;
  gap: 2.5rem;
  padding: clamp(1.75rem, 4vw, 3rem);
  border-radius: 2rem;
  background:
    radial-gradient(ellipse 80% 70% at 100% 0%, rgba(255, 77, 58, 0.16), transparent 55%),
    var(--bg-card);
  border: 1px solid var(--line);
}

.register__copy p:not(.eyebrow) {
  max-width: 32rem;
  color: var(--ice-muted);
  margin-top: 1.15rem;
}

.register__form {
  display: grid;
  gap: 1rem;
}

.register__form label {
  display: grid;
  gap: 0.45rem;
}

.register__form label span {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ice-muted);
}

.register__form input,
.register__form select {
  width: 100%;
  min-height: 3.1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.9rem;
  background: rgba(10, 10, 12, 0.55);
  border: 1px solid var(--line);
  outline: none;
  transition: border-color 0.35s var(--ease);
}

.register__form input::placeholder {
  color: rgba(244, 242, 239, 0.28);
}

.register__form input:focus,
.register__form select:focus {
  border-color: rgba(255, 77, 58, 0.55);
}

.register__form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ice-muted) 50%),
    linear-gradient(135deg, var(--ice-muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 12px) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.register__note {
  font-size: 0.82rem;
  color: var(--ice-muted);
  text-align: center;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem var(--pad) 2.5rem;
  display: grid;
  gap: 0.5rem;
  justify-items: start;
  color: var(--ice-muted);
  font-size: 0.88rem;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ice);
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.footer__brand svg {
  color: var(--coral);
}

.footer__legal {
  font-size: 0.78rem;
  opacity: 0.75;
}

/* Reveal helper */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  filter: blur(8px);
}

/* Responsive */
@media (min-width: 720px) {
  .header-meta {
    display: inline-flex;
  }

  .blast-toggle {
    margin-left: 0;
  }

  .hero__scroll {
    display: flex;
  }

  .countdown {
    grid-template-columns: repeat(4, minmax(0, 6.5rem));
  }

  .speakers__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .chapter {
    grid-template-columns: auto 1fr 1.1fr;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem;
  }

  .chapter__num {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 1rem;
  }
}

@media (min-width: 960px) {
  .agenda {
    grid-template-columns: minmax(16rem, 0.9fr) 1.2fr;
    gap: 4rem;
    align-items: start;
  }

  .agenda__sticky {
    position: sticky;
    top: 7rem;
  }

  .venue {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 3.5rem;
  }

  .register__card {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 3rem;
  }
}

@media (max-width: 719px) {
  .site-header {
    width: calc(100% - 1rem);
    top: 0.75rem;
  }

  .blast-toggle__label {
    display: none;
  }
}
