/* MORTZ · waitlist · mobile-first */

@font-face {
  font-family: "Archivo Black";
  src: url("/mortz-assets/fonts/archivo-black.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fruktur M";
  src: url("/mortz-assets/fonts/fruktur-m.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

:root {
  --bg: #0e0e0f;
  --ink: #f5f3ee;
  --grey: #8d8b86;
  --grey-2: #5c5b58;
  --line: rgba(245, 243, 238, .9);
  --head: "Archivo Black", "Arial Black", Impact, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
html:focus-within { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, p, figure { margin: 0; }
a { color: inherit; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

/* film grain over the whole page (static, GPU-cheap) */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 50;
  pointer-events: none;
  opacity: .09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 -.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  transform: translateZ(0);
}

/* ============ 1 · HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: calc(56px + var(--safe-t)) 24px calc(96px + var(--safe-b));
}
.hero__bg {
  position: absolute;
  inset: -6%;
  z-index: -3;
  background: var(--bg) url("/mortz-assets/web/hero_bg.webp") center 40% / cover no-repeat;
  opacity: .9;
}
.hero__vignette {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 70% 55% at 50% 45%, rgba(14,14,15,.15) 0%, rgba(14,14,15,.55) 55%, rgba(14,14,15,.94) 85%, var(--bg) 100%),
    linear-gradient(to bottom, rgba(14,14,15,0) 70%, var(--bg) 100%);
}
.hero__frame {
  position: absolute;
  inset: calc(14px + var(--safe-t)) 14px calc(14px + var(--safe-b));
  border: 1px solid var(--line);
  z-index: -1;
  pointer-events: none;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero__eye { color: var(--ink); opacity: .85; margin-bottom: 14px; }
.hero__kicker {
  font-size: 11px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 18px;
  padding-left: .32em;
}

.hero__title {
  position: relative;
  display: grid;
  place-items: center;
  font-weight: 400;
  line-height: 1;
  margin-bottom: 34px;
}
.hero__soon {
  font-family: var(--head);
  font-size: clamp(100px, 28vw, 300px);
  line-height: .9;
  letter-spacing: -.01em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
  paint-order: stroke;
}
.hero__coming {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-3deg);
  font-family: var(--head);
  font-size: clamp(30px, 9vw, 92px);
  line-height: 1;
  color: var(--ink);
  background: var(--bg);
  padding: .14em .34em .16em;
  white-space: nowrap;
}

.pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  padding: 10px 20px 10px calc(20px + .3em);
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 16px;
}
.hero__handle { font-size: 13px; color: var(--grey); letter-spacing: .04em; }

.hero__swipe {
  position: absolute;
  left: 50%;
  bottom: calc(34px + var(--safe-b));
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--grey);
  text-decoration: none;
  white-space: nowrap;
  padding: 8px 12px;
}
.hero__swipe svg { color: var(--ink); animation: bounce 1.8s cubic-bezier(.45,0,.55,1) infinite; }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}

/* ============ 2 · SCROLL STORY ============ */
.story {
  position: relative;
  height: 600vh;
  height: 600svh;
}
.story__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: calc(28px + var(--safe-t)) 0 calc(30px + var(--safe-b));
}
.story__media {
  position: relative;
  min-height: 0;
}
.slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0 6vw;
  opacity: 0;
  will-change: opacity, transform;
  transform: translateZ(0);
}
.slide.is-on { opacity: 1; }
.slide img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.9);
}
.slide--full img {
  width: min(100%, 62svh);
  max-height: 100%;
  object-fit: cover;
  box-shadow: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 60%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 60%, transparent 100%);
}

.story__caption {
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 26px 28px 0;
}
.cap {
  grid-area: 1 / 1;
  opacity: 0;
  will-change: opacity, transform;
}
.cap.is-on { opacity: 1; }
.cap h2 {
  font-family: var(--head);
  font-weight: 400;
  font-size: clamp(26px, 7.4vw, 52px);
  line-height: 1.05;
  letter-spacing: -.01em;
  margin-bottom: 10px;
}
.cap p { color: var(--grey); font-size: 15px; max-width: 30ch; margin: 0 auto; }

.dashes {
  grid-area: 2 / 1;
  display: flex;
  gap: 8px;
  margin-top: 24px;
}
.dashes span {
  width: 28px;
  height: 2px;
  background: rgba(245,243,238,.18);
  overflow: hidden;
}
.dashes i {
  display: block;
  height: 100%;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

/* ============ 3 · REGISTER ============ */
.register {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(72px + var(--safe-t)) 24px 72px;
  overflow: hidden;
  isolation: isolate;
}
.register__bg {
  position: absolute;
  inset: -6%;
  z-index: -2;
  background: var(--bg) url("/mortz-assets/web/register_bg.webp") center / cover no-repeat;
  opacity: .55;
}
.register::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 50% 45%, rgba(14,14,15,.35), rgba(14,14,15,.9) 75%, var(--bg)),
    linear-gradient(to bottom, var(--bg), rgba(14,14,15,0) 18%, rgba(14,14,15,0) 82%, var(--bg));
}
.register__inner {
  width: 100%;
  max-width: 420px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.register__m {
  font-family: "Fruktur M", serif;
  font-size: clamp(120px, 36vw, 200px);
  line-height: .95;
  margin-bottom: 6px;
}
.register__title {
  font-family: var(--head);
  font-weight: 400;
  font-size: clamp(40px, 12vw, 72px);
  line-height: 1;
  letter-spacing: -.01em;
  margin-bottom: 16px;
}
.register__text {
  color: var(--grey);
  font-size: 16px;
  max-width: 32ch;
  margin-bottom: 34px;
}

.form { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.form__input {
  width: 100%;
  height: 56px;
  padding: 0 18px;
  font: inherit;
  font-size: 16px; /* >=16px: no iOS zoom */
  color: var(--ink);
  background: rgba(14,14,15,.6);
  border: 1px solid rgba(245,243,238,.28);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .2s;
}
.form__input::placeholder { color: var(--grey-2); }
.form__input:focus { outline: none; border-color: var(--ink); }
.form__input[aria-invalid="true"] { border-color: #d9826b; }
.form__btn {
  width: 100%;
  height: 56px;
  font-family: var(--head);
  font-size: 14px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--ink);
  border: 0;
  border-radius: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: opacity .2s, transform .1s;
}
.form__btn:active { transform: scale(.985); }
.form__btn[disabled] { opacity: .55; cursor: progress; }
.form__msg { min-height: 1.4em; font-size: 13px; color: #e39a86; }
.form__msg:empty { min-height: 0; }
.form__note { font-size: 12px; color: var(--grey); }
.form__note a { color: var(--grey); text-underline-offset: 3px; }

/* Turnstile: invisible unless Cloudflare needs a click */
.ts { display: flex; justify-content: center; }
.ts:empty { display: none; }
.ts iframe { max-width: 100%; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.success {
  font-family: var(--head);
  font-size: clamp(22px, 6.4vw, 32px);
  line-height: 1.2;
  max-width: 18ch;
  padding: 26px 0 10px;
  border-top: 1px solid rgba(245,243,238,.25);
  animation: rise .6s cubic-bezier(.2,.7,.2,1) both;
}
.success:focus { outline: none; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ============ FOOTER ============ */
.footer {
  padding: 56px 24px calc(40px + var(--safe-b));
  text-align: center;
  border-top: 1px solid rgba(245,243,238,.1);
}
.footer__slogan { font-family: var(--head); font-size: 22px; margin-bottom: 18px; }
.footer__links { display: flex; justify-content: center; gap: 28px; margin-bottom: 22px; }
.footer__links a {
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 2px;
  border-bottom: 1px solid rgba(245,243,238,.3);
}
.footer__copy { font-size: 12px; color: var(--grey-2); }

/* ============ PRIVACY PAGE ============ */
.legal__inner {
  max-width: 620px;
  margin: 0 auto;
  padding: calc(40px + var(--safe-t)) 24px calc(64px + var(--safe-b));
}
.legal h1 { font-family: var(--head); font-weight: 400; font-size: 44px; line-height: 1; margin: 28px 0 14px; }
.legal h2 { font-family: var(--head); font-weight: 400; font-size: 18px; margin: 34px 0 8px; }
.legal p { color: #c9c6bf; margin-bottom: 10px; }
.legal__lead { font-size: 18px; color: var(--ink) !important; }
.legal__back { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--grey); }
.legal__date { font-size: 12px; color: var(--grey-2) !important; margin-top: 40px; }

/* ============ larger screens ============ */
@media (min-width: 768px) {
  .hero__frame { inset: 24px; }
  .hero__kicker, .pill, .hero__swipe { font-size: 12px; }
  .slide { padding: 0 12vw; }
  .cap p { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within { scroll-behavior: auto; }
  .hero__swipe svg, .success { animation: none; }
}
