:root {
  --ink: #000000;
  --cream: #f4efe6;
  --muted: rgba(244, 239, 230, 0.72);
  --blackletter: "UnifrakturMaguntia", Georgia, "Times New Roman", serif;
  --display-hero: "Pirata One", Georgia, "Times New Roman", serif;
  --display: "Aboreto", "Palatino Linotype", Palatino, serif;
}

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

html { scroll-behavior: smooth; }

html, body { overflow-x: hidden; }

body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--display);
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}

img, svg { max-width: 100%; height: auto; }

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

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100dvh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding:
    max(28px, env(safe-area-inset-top))
    max(20px, env(safe-area-inset-right))
    clamp(28px, 5vw, 56px)
    max(20px, env(safe-area-inset-left));
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  inset: 0;
  background:
    center 42% / cover no-repeat
    url("assets/wallpaper/photo-1783766400258-b7731eb581ae.png");
  opacity: 0;
  filter: blur(16px);
  transform: scale(1.1);
}

.ready .hero-photo {
  animation: bgBlurIn 2080ms cubic-bezier(0.33, 0.08, 0.2, 1) both;
}

@keyframes bgBlurIn {
  from { opacity: 0; filter: blur(16px); transform: scale(1.1); }
  to   { opacity: 1; filter: blur(0); transform: scale(1.04); }
}

/* 30% dark overlay across the wallpaper */
.hero-dim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}

/*
  Soft oval vignette + bottom fade into pure black so the wallpaper
  ends cleanly into the following section.
*/
.hero-fade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 78% 72% at 50% 42%,
      transparent 28%,
      rgba(0, 0, 0, 0.55) 72%,
      rgba(0, 0, 0, 0.92) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.35) 0%,
      transparent 18%,
      transparent 52%,
      rgba(0, 0, 0, 0.55) 78%,
      #000 100%
    );
}

.nav,
.hero-copy,
.scroll {
  position: relative;
  z-index: 1;
}

/* ---------- header ---------- */

.nav {
  width: 100%;
  display: flex;
  justify-content: center;
}

.nav-status {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(0.78rem, 2.4vw, 1.85rem);
  letter-spacing: clamp(0.08em, 0.6vw, 0.22em);
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
  text-align: center;
}

/* ---------- center copy ---------- */

.hero-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(14px, 2vw, 22px);
  padding: clamp(24px, 8vh, 10vh) 0 clamp(16px, 4vh, 48px);
  width: 100%;
  max-width: min(920px, 100%);
}

.title {
  font-family: var(--display-hero);
  font-weight: 400;
  font-size: clamp(2.15rem, 11vw, 7.2rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.55);
  max-width: 100%;
}

.subtxt {
  font-family: var(--display);
  font-size: clamp(0.48rem, 2.35vw, 1rem);
  font-weight: 700;
  letter-spacing: clamp(0.04em, 0.45vw, 0.22em);
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  max-width: 100%;
}

/* ---------- scroll cue ---------- */

.scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.scroll:hover { opacity: 1; }

.scroll-line {
  width: 1px;
  height: 42px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.85));
  position: relative;
}

.scroll-line::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 7px;
  height: 7px;
  border-right: 1px solid rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.85);
  transform: translateX(-50%) rotate(45deg);
}

/* ---------- below hero ---------- */

.after {
  position: relative;
  background: #000;
  min-height: 0;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.after-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding:
    clamp(24px, 4vh, 48px)
    max(20px, env(safe-area-inset-right))
    clamp(8px, 1.5vh, 16px)
    max(20px, env(safe-area-inset-left));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: center;
  transform: translateY(-8%);
}

.after-copy,
.after-figure {
  opacity: 1;
  filter: none;
}

.ready .after-copy,
.ready .after-figure {
  opacity: 0;
  filter: blur(16px);
}

.after.show .after-copy,
.after.show .after-figure {
  animation: sectionBlurIn 2080ms cubic-bezier(0.33, 0.08, 0.2, 1) both;
}

.after.show .after-figure {
  animation-delay: 220ms;
}

@keyframes sectionBlurIn {
  from { opacity: 0; filter: blur(16px); }
  to   { opacity: 1; filter: blur(0); }
}

.after-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(20px, 3vw, 28px);
  max-width: 42rem;
  padding-block: clamp(24px, 4vh, 48px);
}

.after-title {
  font-family: var(--blackletter);
  font-weight: 400;
  font-size: clamp(2.2rem, 8vw, 5.4rem);
  line-height: 0.95;
  color: #fff;
  letter-spacing: 0.02em;
  max-width: 100%;
}

.after-body {
  font-family: var(--display);
  font-size: clamp(0.62rem, 1.2vw, 0.92rem);
  line-height: 1.85;
  letter-spacing: clamp(0.06em, 0.4vw, 0.14em);
  text-transform: uppercase;
  color: var(--muted);
  max-width: min(48ch, 100%);
}

.after-signup {
  display: flex;
  flex-direction: column;
  width: min(100%, 420px);
  max-width: 100%;
  margin-top: 8px;
  border: 1px solid rgba(244, 239, 230, 0.45);
  background: rgba(0, 0, 0, 0.35);
}

.after-input {
  width: 100%;
  min-width: 0;
  padding: 14px 16px;
  border: 0;
  background: transparent;
  color: var(--cream);
  font-family: "Palatino Linotype", Palatino, "Times New Roman", serif;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: none;
  outline: none;
}

.after-input + .after-input {
  border-top: 1px solid rgba(244, 239, 230, 0.35);
}

.after-input::placeholder {
  color: rgba(244, 239, 230, 0.4);
  text-transform: none;
  letter-spacing: 0.08em;
}

.after-submit {
  flex-shrink: 0;
  padding: 14px 18px;
  border: 0;
  border-top: 1px solid rgba(244, 239, 230, 0.35);
  background: transparent;
  color: var(--cream);
  font-family: var(--display);
  font-size: clamp(0.62rem, 0.95vw, 0.75rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.after-submit:disabled {
  cursor: default;
  opacity: 0.6;
}

.after-note {
  margin: 0;
  padding: 10px 16px 14px;
  font-family: var(--display);
  font-size: clamp(0.58rem, 0.9vw, 0.7rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.after-submit:hover {
  background: rgba(244, 239, 230, 0.08);
  color: #fff;
}

.after-figure {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: clamp(320px, 58vh, 720px);
  pointer-events: none;
}

.after-figure img {
  width: min(100%, 644px);
  height: auto;
  object-fit: contain;
  object-position: bottom center;
  filter: contrast(1.05);
  user-select: none;
  -webkit-user-drag: none;
}

@media (max-width: 900px) {
  .after-inner {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-bottom: 0;
    transform: none;
  }

  .after-copy {
    order: 1;
    max-width: none;
    align-items: center;
    text-align: center;
    padding-block: clamp(8px, 2vh, 24px);
  }

  .after-body {
    max-width: min(42ch, 100%);
  }

  .after-signup {
    width: min(100%, 420px);
  }

  .after-figure {
    order: 2;
    min-height: 0;
  }

  .after-figure img {
    width: min(72%, 420px);
  }

  .site-footer {
    margin-top: -8vh;
    padding-bottom: max(22px, env(safe-area-inset-bottom));
  }
}

/* ---------- footer ---------- */

.site-footer {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.4vw, 28px);
  padding: clamp(22px, 2.8vw, 32px) clamp(20px, 5vw, 64px);
  background: #000;
  border-top: 0;
  margin-top: calc(-12px - 20vh);
  position: relative;
  z-index: 2;
}

.footer-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 22px);
  width: calc(100% + 2 * clamp(20px, 5vw, 64px));
  margin-left: calc(-1 * clamp(20px, 5vw, 64px));
  margin-right: calc(-1 * clamp(20px, 5vw, 64px));
  padding-inline: 0;
}

.footer-rule i {
  flex: 1;
  height: 1px;
  background: rgba(244, 239, 230, 0.7);
}

.footer-rule b {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border: 0;
  background: #f4efe6;
  transform: rotate(45deg);
}

.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.footer-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.footer-brand img {
  height: clamp(28px, 3.2vw, 36px);
  width: auto;
  max-width: none;
  display: block;
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(18px, 2.4vw, 28px);
  margin-left: auto;
}

.footer-social-link {
  display: flex;
  color: rgba(244, 239, 230, 0.7);
  transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-social-link:hover {
  color: #fff;
}

.footer-social-link svg {
  width: 18px;
  height: 18px;
  max-width: none;
  display: block;
}

/* ---------- motion ---------- */

.reveal {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
}

.ready .reveal {
  animation: riseIn 1430ms cubic-bezier(0.33, 0.08, 0.2, 1) both;
}

.ready .nav,
.ready .title,
.ready .subtxt {
  animation-name: popUp;
  animation-duration: 1014ms;
  animation-timing-function: cubic-bezier(0.22, 0.7, 0.2, 1);
}

.ready .nav { animation-delay: 364ms; }
.ready .title { animation-delay: 598ms; }
.ready .subtxt { animation-delay: 832ms; }
.ready .scroll { animation-delay: 1170ms; }

@keyframes riseIn {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes popUp {
  0%   { opacity: 0; transform: translate3d(0, 18px, 0) scale(0.94); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-photo,
  .ready .hero-photo {
    opacity: 1;
    filter: none;
    transform: scale(1.04);
    animation: none !important;
  }
  .ready .after-copy,
  .ready .after-figure,
  .after.show .after-copy,
  .after.show .after-figure {
    opacity: 1;
    filter: none;
    animation: none !important;
  }
  .reveal,
  .ready .reveal {
    opacity: 1;
    transform: none;
    animation: none !important;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: max(20px, env(safe-area-inset-top));
  }

  .scroll-line { height: 28px; }

  .after-title {
    font-size: clamp(2rem, 12vw, 3.4rem);
  }

  .site-footer {
    gap: 16px;
    margin-top: -4vh;
  }

  .footer-bar {
    gap: 16px;
  }

  .footer-social-link {
    padding: 8px;
  }
}
