:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #050505;
  color: #fff;
  --edge: clamp(18px, 3vw, 48px);
  --ease: cubic-bezier(.22,.61,.36,1);
  --ml-accent: #05F2DB;
  --ml-violet: #4616F2;
  --ml-purple: #311273;
  --ml-ink: #210B40;
  --ml-magenta: #B527F2;
}

* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; min-height: 100%; background: #050505; }
body { overflow: hidden; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.experience, .gallery { width: 100%; height: 100dvh; }
.gallery {
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  background: #050505;
}
.gallery::-webkit-scrollbar { display: none; }

.campaign {
  position: relative;
  width: 100%;
  height: 100dvh;
  min-height: 100svh;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  isolation: isolate;
  background: #111;
}
.media-layer, .campaign-picture, .campaign-picture img, .campaign-video, .media-shade {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.campaign-picture { display: block; }
.campaign-picture img, .campaign-video { object-fit: cover; }
.campaign-picture img { display: block; background: #111; }
.campaign-video { z-index: 2; }
.media-shade {
  z-index: 3;
  background: linear-gradient(180deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,.02) 35%, rgba(0,0,0,.07) 64%, rgba(0,0,0,.48) 100%);
  pointer-events: none;
}

.campaign-content {
  position: absolute;
  z-index: 5;
  left: var(--edge);
  right: var(--edge);
  bottom: max(9vh, calc(env(safe-area-inset-bottom) + 56px));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(18px, 2vw, 28px);
  pointer-events: none;
}
.campaign-content h1, .campaign-content h2 {
  margin: 0;
  max-width: min(11ch, 82vw);
  font-size: clamp(3.4rem, 9vw, 9.5rem);
  line-height: .88;
  letter-spacing: -.065em;
  font-weight: 800;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0,0,0,.16);
}
.campaign-cta {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 22px;
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 999px;
  background: rgba(0,0,0,.16);
  color: #fff;
  backdrop-filter: blur(10px);
  text-decoration: none;
  font-size: .79rem;
  font-weight: 750;
  letter-spacing: .12em;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.campaign-cta:hover, .campaign-cta:focus-visible {
  transform: translateY(-2px);
  background: #fff;
  color: #080808;
  outline: none;
}
.campaign-full-link { position: absolute; z-index: 4; inset: 0; }
.campaign-full-link:focus-visible { outline: 3px solid #fff; outline-offset: -8px; }

.campaign-index {
  pointer-events: none;
  position: absolute;
  z-index: 6;
  left: var(--edge);
  bottom: max(22px, env(safe-area-inset-bottom));
  font-size: .67rem;
  letter-spacing: .16em;
  opacity: .72;
}

.global-shell {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto 0;
  height: 94px;
  padding: max(18px, env(safe-area-inset-top)) var(--edge) 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
  color: #fff;
  transition: color .2s ease;
}
.global-shell[data-theme="dark"] { color: #0a0a0a; }
.brand-button, .menu-button, .join-button {
  pointer-events: auto;
  border: 0;
  color: inherit;
  cursor: pointer;
}
.brand-button {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  padding: 6px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 17px;
  background: rgba(8,8,12,.22);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 10px 30px rgba(0,0,0,.13);
  text-decoration: none;
}
.brand-mark { width: 100%; height: 100%; object-fit: contain; display: block; }
.shell-actions { display: flex; align-items: center; gap: 14px; pointer-events: auto; }
.join-button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: rgba(5,5,5,.14);
  backdrop-filter: blur(12px);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .16em;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.join-button:hover, .join-button:focus-visible { transform: translateY(-1px); background: var(--ml-accent); color: #07100e; border-color: var(--ml-accent); outline: none; }
.join-button[hidden] { display: none !important; }
.menu-button {
  display: flex; align-items: center; gap: 12px; padding: 8px 0;
  background: transparent;
  font-size: .72rem; font-weight: 750; letter-spacing: .14em;
}
.menu-glyph { font-size: 1.35rem; line-height: .7; font-weight: 300; }

.global-menu {
  position: fixed;
  z-index: 100;
  inset: 0;
  background: rgba(5,5,5,.96);
  color: #fff;
  pointer-events: auto;
}
.global-menu[hidden] { display: none; }
.global-menu__inner {
  min-height: 100%;
  padding: max(28px, env(safe-area-inset-top)) var(--edge) max(28px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.menu-close { position: absolute; top: max(20px, env(safe-area-inset-top)); right: var(--edge); border: 0; background: none; color: #fff; font-size: 2.2rem; cursor: pointer; }
.menu-kicker { position: absolute; top: max(24px, env(safe-area-inset-top)); left: var(--edge); font-size: .7rem; letter-spacing: .16em; opacity: .65; }
.global-menu ul { margin: 0; padding: 0; list-style: none; }
.global-menu li + li { border-top: 1px solid rgba(255,255,255,.14); }
.global-menu li a { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; text-decoration: none; font-size: clamp(1.5rem, 5vw, 4.5rem); font-weight: 650; letter-spacing: -.04em; }
.menu-placeholder { max-width: 540px; color: rgba(255,255,255,.7); font-size: 1rem; line-height: 1.6; }
.menu-placeholder code { color: #fff; }

.gallery-progress {
  position: fixed;
  z-index: 40;
  top: 50%;
  right: max(18px, calc(var(--edge) * .75));
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.gallery-progress [data-progress-to] { display: block; text-decoration: none; width: 18px; height: 18px; border: 0; padding: 5px; background: transparent; cursor: pointer; }
.gallery-progress [data-progress-to] span { display: block; width: 8px; height: 8px; border: 1px solid rgba(255,255,255,.82); border-radius: 50%; transition: transform .2s ease, background .2s ease; }
.gallery-progress [data-progress-to][aria-current="true"] span { background: #fff; transform: scale(1.35); }
.gallery-progress [data-progress-to]:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 50%; }

.scroll-hint {
  position: fixed;
  z-index: 30;
  right: var(--edge);
  bottom: max(20px, env(safe-area-inset-bottom));
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: .62rem;
  letter-spacing: .16em;
  opacity: .72;
  pointer-events: none;
}

.error-page { min-height: 100dvh; display: grid; place-items: center; padding: 32px; text-align: center; background: #050505; }
.error-page h1 { font-size: clamp(5rem, 18vw, 14rem); line-height: .8; margin: 0; }
.error-page p { opacity: .72; }
.error-page a { display: inline-block; margin-top: 18px; padding: 14px 20px; border: 1px solid #fff; border-radius: 999px; text-decoration: none; }

@media (max-width: 767px) {
  :root { --edge: 20px; }
  .global-shell { height: 76px; }
  .brand-button { width: 50px; height: 50px; border-radius: 15px; padding: 5px; }
  .join-button { min-height: 36px; padding: 0 13px; font-size: .62rem; }
  .menu-button span:first-child { display: none; }
  .shell-actions { gap: 12px; }
  .campaign-content { bottom: max(10vh, calc(env(safe-area-inset-bottom) + 54px)); }
  .campaign-content h1, .campaign-content h2 { font-size: clamp(3.4rem, 18vw, 6.3rem); max-width: 8.5ch; }
  .campaign-cta { min-height: 50px; padding: 0 18px; }
  .gallery-progress { right: 13px; gap: 8px; }
  .gallery-progress [data-progress-to] { display: block; text-decoration: none; width: 16px; height: 16px; padding: 5px; }
  .gallery-progress [data-progress-to] span { width: 6px; height: 6px; }
  .scroll-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within { scroll-behavior: auto; }
  .gallery { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .campaign-video { display: none !important; }
}

.campaign[data-logo-theme="dark"] .campaign-content h1,
.campaign[data-logo-theme="dark"] .campaign-content h2,
.campaign[data-logo-theme="dark"] .campaign-index { color: #090909; text-shadow: none; }
.campaign[data-logo-theme="dark"] .campaign-cta { color: #090909; border-color: rgba(0,0,0,.68); background: rgba(255,255,255,.2); }
.campaign[data-logo-theme="dark"] .campaign-cta:hover,
.campaign[data-logo-theme="dark"] .campaign-cta:focus-visible { color: #fff; background: #090909; }
html[data-ui-theme="dark"] .gallery-progress [data-progress-to] span { border-color: rgba(0,0,0,.8); }
html[data-ui-theme="dark"] .gallery-progress [data-progress-to][aria-current="true"] span { background: #090909; }
html[data-ui-theme="dark"] .scroll-hint { color: #090909; }


/* Lead capture ----------------------------------------------------------- */
body.modal-open { overflow: hidden; }
.lead-modal { position: fixed; z-index: 140; inset: 0; display: grid; place-items: center; padding: 22px; }
.lead-modal[hidden] { display: none; }
.lead-modal__backdrop { position: absolute; inset: 0; background: rgba(3,2,8,.76); backdrop-filter: blur(18px); }
.lead-card {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  max-height: min(850px, calc(100dvh - 40px));
  overflow: auto;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(33,11,64,.98), rgba(8,5,19,.98));
  color: #fff;
  box-shadow: 0 34px 90px rgba(0,0,0,.42);
}
.lead-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(circle at 12% 0%, rgba(5,242,219,.12), transparent 34%), radial-gradient(circle at 100% 100%, rgba(181,39,242,.16), transparent 38%);
}
.lead-card > * { position: relative; }
.lead-close { position: absolute; z-index: 2; top: 18px; right: 22px; border: 0; background: none; color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; opacity: .78; }
.lead-brand { width: 48px; height: 48px; margin-bottom: 30px; }
.lead-brand img { display: block; width: 100%; height: 100%; object-fit: contain; }
.lead-kicker { margin: 0 0 10px; color: var(--ml-accent); font-size: .68rem; font-weight: 800; letter-spacing: .18em; }
.lead-card h2 { margin: 0; font-size: clamp(2.4rem, 7vw, 5.3rem); line-height: .9; letter-spacing: -.055em; font-weight: 760; }
.lead-copy { max-width: 42ch; margin: 18px 0 34px; color: rgba(255,255,255,.72); line-height: 1.55; }
.lead-form { display: grid; gap: 22px; }
.lead-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 14px; }
.lead-form label > span, .interest-fieldset legend { display: block; margin-bottom: 8px; color: rgba(255,255,255,.64); font-size: .67rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.lead-form input[type="text"], .lead-form input[type="email"] {
  width: 100%; height: 52px; padding: 0 15px; border: 1px solid rgba(255,255,255,.16); border-radius: 14px; background: rgba(255,255,255,.06); color: #fff; outline: none; font: inherit;
}
.lead-form input[type="text"]:focus, .lead-form input[type="email"]:focus { border-color: var(--ml-accent); box-shadow: 0 0 0 3px rgba(5,242,219,.11); }
.interest-fieldset { margin: 0; padding: 0; border: 0; }
.interest-list { display: flex; flex-wrap: wrap; gap: 8px; }
.interest-chip { position: relative; cursor: pointer; }
.interest-chip input { position: absolute; opacity: 0; pointer-events: none; }
.interest-chip span { display: inline-flex !important; margin: 0 !important; padding: 10px 13px; border: 1px solid rgba(255,255,255,.15); border-radius: 999px; color: rgba(255,255,255,.78) !important; background: rgba(255,255,255,.04); font-size: .72rem !important; letter-spacing: 0 !important; text-transform: none !important; }
.interest-chip input:checked + span { border-color: var(--ml-accent); background: rgba(5,242,219,.12); color: #fff !important; }
.consent-row { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.consent-row input { margin-top: 3px; accent-color: var(--ml-accent); }
.consent-row span { margin: 0 !important; color: rgba(255,255,255,.7) !important; font-size: .76rem !important; line-height: 1.45; letter-spacing: 0 !important; text-transform: none !important; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.lead-submit { display: inline-flex; justify-content: space-between; align-items: center; min-height: 56px; padding: 0 19px; border: 0; border-radius: 16px; background: var(--ml-accent); color: #06110f; font-size: .76rem; font-weight: 900; letter-spacing: .11em; cursor: pointer; transition: transform .2s var(--ease), filter .2s var(--ease); }
.lead-submit:hover, .lead-submit:focus-visible { transform: translateY(-1px); filter: brightness(1.04); outline: none; }
.lead-submit:disabled { opacity: .55; cursor: wait; transform: none; }
.lead-status { min-height: 1.3em; margin: -7px 0 0; color: rgba(255,255,255,.75); font-size: .78rem; }

@media (max-width: 640px) {
  .lead-modal { padding: 10px; align-items: end; }
  .lead-card { width: 100%; max-height: calc(100dvh - 20px); border-radius: 25px; padding: 30px 22px 26px; }
  .lead-grid { grid-template-columns: 1fr; }
  .lead-brand { margin-bottom: 22px; }
  .lead-copy { margin-bottom: 26px; }
}
