@font-face {
  font-family: 'Elza Text';
  src: local('Elza Text'), local('ElzaText-Regular'), local('Elza');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Elza Text';
  src: local('Elza Text Medium'), local('ElzaText-Medium');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Elza Text';
  src: local('Elza Text Bold'), local('ElzaText-Bold');
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #050505;
  --bg-2: #0c0c0c;
  --fg: #f4f1ea;
  --fg-dim: rgba(244, 241, 234, 0.55);
  --fg-faint: rgba(244, 241, 234, 0.12);
  --accent: #2A6BFF;
  --hair: rgba(244, 241, 234, 0.14);
  --pad: clamp(36px, 4vw, 56px);
  --bracket: 22px;
  --frame-inset: 24px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg); }
body {
  font-family: "Elza Text", "Inter", "Helvetica Neue", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ---------- background layer ---------- */
.bg {
  position: fixed; inset: 0; z-index: 0;
  background: #000;
  overflow: hidden;
}
.bg-image {
  position: absolute; inset: 0;
  background: var(--bg-image, none);
  background-size: cover;
  background-position: center;
  filter: contrast(1.05) brightness(0.55) grayscale(0.2);
  opacity: 0.3;
  mix-blend-mode: overlay;
}
.bg-grain {
  position: absolute; inset: 0;
  opacity: 0.5;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.95  0 0 0 0 0.93  0 0 0 0 0.88  0 0 0 0.35 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.bg-vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 50% 50%, transparent 35%, rgba(0,0,0,0.5) 75%, rgba(0,0,0,0.9) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 65%, rgba(0,0,0,0.85) 100%);
  pointer-events: none;
}
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  mask-image: radial-gradient(120% 80% at 50% 50%, black 30%, transparent 90%);
}
body.no-grid .bg-grid { display: none; }
.bg-video {
  position: absolute;
  top: 50%; left: 50%;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: -1;
  filter: contrast(1.1) brightness(0.5);
}

/* ---------- frame (corner brackets) ---------- */
.frame {
  position: fixed; inset: var(--frame-inset); z-index: 5;
  pointer-events: none;
}
.frame::before, .frame::after,
.frame > span::before, .frame > span::after {
  content: ""; position: absolute;
  width: var(--bracket); height: var(--bracket);
  border-color: var(--fg);
  border-style: solid;
  border-width: 0;
}
.frame::before { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; }
.frame::after { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; }
.frame > span::before { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.frame > span::after { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; }

/* registration mark */
.reg {
  position: fixed; top: 36px; left: 50%; transform: translateX(-50%);
  z-index: 6;
  width: 14px; height: 14px;
  color: var(--accent);
  pointer-events: none;
}
.reg::before, .reg::after {
  content: ""; position: absolute; background: currentColor;
}
.reg::before { left: 50%; top: 0; bottom: 0; width: 1.5px; transform: translateX(-50%); }
.reg::after { top: 50%; left: 0; right: 0; height: 1.5px; transform: translateY(-50%); }

/* ---------- top bar ---------- */
.topbar {
  flex-shrink: 0;
  position: relative; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  flex-direction: row-reverse;
  padding: clamp(16px, 2.5vh, 36px) calc(var(--pad) + 12px);
  font-family: "Public Pixel", "Space Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.topbar .logo {
  display: flex; align-items: center; gap: 12px;
  color: var(--fg);
}
.topbar .logo img {
  height: clamp(48px, 6vh, 64px); width: auto; display: block;
}
.topbar .right { display: flex; gap: 28px; align-items: center; }
.topbar .right span.dot { color: var(--accent); }

/* ---------- main content ---------- */
main {
  position: relative; z-index: 10;
  display: grid;
  grid-template-rows: 1fr auto;
  flex: 1;
  min-height: 0;
  padding: clamp(16px, 2.5vh, 40px) calc(var(--pad) + 12px) calc(var(--pad));
  overflow: hidden;
}
.hero {
  align-self: center;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  text-align: center;
}
.hero-logo {
  display: block;
  margin: 0 auto clamp(20px, 3vh, 40px);
  height: clamp(90px, 14vh, 160px);
  width: auto;
}
.kicker {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: "Public Pixel", monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: clamp(18px, 2.6vh, 32px);
}
.kicker .vol {
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 4px 8px;
}
.kicker .pulse {
  width: 6px; height: 6px; background: var(--accent); border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--accent); }
  50% { opacity: 0.5; box-shadow: 0 0 0 6px transparent; }
}
h1 {
  font-family: "Elza Text", "Inter", "Helvetica Neue", sans-serif;
  font-weight: 700;
  font-size: clamp(36px, min(6.2vw, 10vh), 92px);
  line-height: 0.94;
  letter-spacing: -0.04em;
  margin: 0 0 8px;
  text-wrap: balance;
  white-space: pre-line;
}
h1 .ink-word {
  font-style: normal;
  font-weight: 700;
  color: var(--accent);
  position: relative;
}
.strapline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: clamp(18px, 2.6vh, 28px);
  font-family: "Public Pixel", monospace;
  font-size: 11px;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--fg);
}
.strapline .sep { color: var(--accent); font-weight: 700; }
.strapline .line {
  flex: 0 1 80px;
  height: 1px;
  background: var(--hair);
}
.meta {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 4vw, 60px);
  margin: clamp(24px, 3.6vh, 40px) 0 clamp(28px, 4vh, 44px);
  font-family: "Public Pixel", monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg);
  flex-wrap: wrap;
}
.meta .col { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.meta .col .label { color: var(--fg-dim); font-size: 9px; }
.meta .col .val { font-size: 11px; }
.meta .sep { width: 1px; height: 32px; background: var(--hair); }

/* ---------- email capture ---------- */
.capture { max-width: 540px; margin: 0 auto; }
.capture .label {
  font-family: "Public Pixel", monospace;
  font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg-dim); margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px; justify-content: center;
}
.capture .label::before, .capture .label::after {
  content: ""; flex: 1; height: 1px; background: var(--hair); max-width: 60px;
}
.form {
  display: flex; gap: 0;
  border: 1px solid var(--fg);
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.form input[type="email"] {
  flex: 1; background: transparent; border: 0; outline: 0;
  color: var(--fg);
  font-family: "Elza Text", "Inter", sans-serif;
  font-size: 14px; letter-spacing: 0.06em; padding: 18px 22px;
}
.form input::placeholder { color: var(--fg-dim); }
.form button {
  background: var(--fg); color: var(--bg); border: 0;
  font-family: "Public Pixel", monospace;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0 28px; cursor: pointer;
  transition: background 120ms ease;
  display: flex; align-items: center; gap: 10px; font-weight: 700;
}
.form button:hover { background: var(--accent); color: #000; }
.form button .arrow { display: inline-block; transition: transform 200ms; }
.form button:hover .arrow { transform: translateX(4px); }
.capture .helper {
  margin-top: 14px;
  font-family: "Public Pixel", monospace;
  font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-dim); text-align: center;
}
.capture.success .form { border-color: var(--accent); }
.capture .success-msg {
  display: none;
  border: 1px solid var(--accent);
  padding: 22px; text-align: center;
  background: rgba(42, 107, 255, 0.06);
}
.capture.success .form,
.capture.success .helper { display: none; }
.capture.success .success-msg { display: block; }
.success-msg .check {
  width: 32px; height: 32px;
  border: 1.5px solid var(--accent); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent); margin-bottom: 12px;
}
.success-msg h3 {
  font-family: "Elza Text", "Inter", sans-serif;
  font-size: 18px; font-weight: 600; margin: 0 0 8px; letter-spacing: -0.01em;
}
.success-msg p {
  font-family: "Public Pixel", monospace;
  font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-dim); margin: 0;
}

/* ---------- bottom bar ---------- */
.bottom {
  display: flex; align-items: end; justify-content: space-between;
  padding-top: clamp(24px, 4vh, 44px);
  font-family: "Public Pixel", monospace;
  font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-dim);
}
.bottom .specimen { display: flex; flex-direction: column; gap: 4px; }
.bottom .specimen strong { color: var(--fg); font-weight: 400; letter-spacing: 0.14em; }
.bottom .links { display: flex; gap: 26px; }
.bottom .links a {
  color: var(--fg-dim); text-decoration: none;
  border-bottom: 1px solid transparent; padding-bottom: 2px;
  transition: color 120ms, border-color 120ms;
}
.bottom .links a:hover { color: var(--fg); border-color: var(--fg); }
.bottom .enter {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--fg); text-decoration: none;
  border-bottom: 1px solid var(--fg); padding-bottom: 2px; font-weight: 700;
}

/* ---------- side ticker ---------- */
.ticker {
  position: fixed; right: 44px; top: 50%;
  width: 100vh; height: 16px;
  transform: translate(50%, -50%) rotate(90deg);
  transform-origin: center center;
  overflow: hidden; z-index: 6; pointer-events: none;
}
.ticker-track {
  display: inline-flex; align-items: center; gap: 0;
  white-space: nowrap;
  animation: tickerLoop 36s linear infinite;
  font-family: "Public Pixel", monospace;
  font-size: 9px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--fg-dim); will-change: transform;
}
.ticker-track span { padding-right: 80px; }
@keyframes tickerLoop {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  :root { --pad: 20px; --frame-inset: 14px; }
  body { height: auto; min-height: 100vh; min-height: 100svh; overflow-y: auto; }
  main { overflow: visible; }
  .ticker { display: none; }
  .topbar .right { display: none; }
  .topbar { padding: 14px calc(var(--pad) + 8px); }
  .bottom { flex-direction: column; gap: 20px; align-items: flex-start; }
  .form { flex-direction: column; }
  .form input[type="email"] { min-height: 52px; padding: 14px 18px; }
  .form button { min-height: 52px; padding: 16px; justify-content: center; }
  h1 { font-size: clamp(36px, 11vw, 72px); }
  .strapline { gap: 8px; font-size: 9px; letter-spacing: 0.22em; }
  .strapline .line { flex: 0 1 40px; }
  .meta { gap: 14px; }
  .capture { max-width: 100%; }
  main { padding-left: calc(var(--pad) + 8px); padding-right: calc(var(--pad) + 8px); }
}

/* ---------- load animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .topbar   { animation: fadeIn  0.6s ease both; animation-delay: 0.1s; }
  .kicker   { animation: fadeUp  0.7s cubic-bezier(0.16,1,0.3,1) both; animation-delay: 0.25s; }
  h1        { animation: fadeUp  0.8s cubic-bezier(0.16,1,0.3,1) both; animation-delay: 0.4s; }
  .strapline { animation: fadeUp 0.7s cubic-bezier(0.16,1,0.3,1) both; animation-delay: 0.6s; }
  .meta     { animation: fadeUp  0.7s cubic-bezier(0.16,1,0.3,1) both; animation-delay: 0.72s; }
  .capture  { animation: fadeUp  0.7s cubic-bezier(0.16,1,0.3,1) both; animation-delay: 0.88s; }
  .bottom   { animation: fadeIn  0.6s ease both; animation-delay: 1.1s; }
  .frame    { animation: fadeIn  1s ease both; animation-delay: 0.2s; }
  .reg      { animation: fadeIn  0.8s ease both; animation-delay: 0.5s; }
}

#tweaks-root { position: fixed; inset: 0; pointer-events: none; z-index: 99; }
#tweaks-root > * { pointer-events: auto; }
