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

@keyframes shimmer {
  from { background-position: 100% center; }
  to   { background-position: 0% center; }
}

@keyframes blink {
  50% { opacity: 0; }
}

@keyframes arrowBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(7px); }
}

/* ── Scroll container ────────────────────────────────────────────────── */

html {
  height: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  height: 100%;
}

/* ── Shared page layout ──────────────────────────────────────────────── */

.page {
  height: 100vh;
  scroll-snap-align: start;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  width: 100%;
}

/* ── Page 1: black ───────────────────────────────────────────────────── */

.page-1 {
  background: #000000;
}

/* ── Page 2: white ───────────────────────────────────────────────────── */

.page-2 {
  background: #ffffff;
}


/* ── Shared shimmer base ─────────────────────────────────────────────── */

.logo-headline,
.headline {
  font-family: 'Montserrat', sans-serif;
  font-style: italic;
  letter-spacing: 0.02em;
  line-height: 1.2;
  background-size: 300% 100%;
  background-position: 100% center;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
}

/* Page 1: white shimmer on black */
.page-1 .logo-headline {
  background-image: linear-gradient(
    120deg,
    #ffffff 30%,
    #a8ccff 47%,
    #daeeff 50%,
    #a8ccff 53%,
    #ffffff 70%
  );
}

/* Page 2: dark-blue shimmer on white */
.page-2 .headline {
  background-image: linear-gradient(
    120deg,
    #002a5c 25%,
    #0050b3 45%,
    #4d9eff 50%,
    #0050b3 55%,
    #002a5c 75%
  );
}

/* ── Logo headline (page 1) ─────────────────────────────────────────── */

.logo-headline {
  font-size: clamp(2.2rem, 9vw, 9rem);
  font-weight: 300;
  text-align: center;
}

.logo-brand {
  font-weight: 700;
}

.logo-suffix {
  font-weight: 300;
}

/* ── Scroll arrow (page 1) ──────────────────────────────────────────── */

.scroll-arrow {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 0.5rem;
  animation: arrowBounce 1.8s ease-in-out infinite;
  transition: color 0.2s;
}

.scroll-arrow:hover {
  color: rgba(255, 255, 255, 0.85);
}

/* ── Typewriter headline (page 2) ───────────────────────────────────── */

.headline {
  font-size: clamp(1.4rem, 5.5vw, 5.5rem);
  font-weight: 300;
  /* inline-flex sizes to content; ghost row locks the width to the widest phrase */
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
}

.headline-live {
  display: flex;
  align-items: baseline;
  white-space: nowrap;
}

/* Invisible row that holds the longest phrase — sets a permanent width */
.headline-ghost {
  display: flex;
  align-items: baseline;
  white-space: nowrap;
  height: 0;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
  user-select: none;
}

.static {
  font-weight: 700;
}

.ghost-suffix {
  font-weight: 300;
}

.cursor {
  animation: blink 0.9s step-end infinite;
}

/* ── Coming Soon label ───────────────────────────────────────────────── */

.coming-soon {
  font-style: normal;
  font-weight: 300;
  font-size: clamp(0.65rem, 1.1vw, 0.9rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

.page-1 .coming-soon {
  color: rgba(255, 255, 255, 0.4);
}

.page-2 .coming-soon {
  color: rgba(0, 42, 92, 0.45);
}

/* ── Legal footer (page 2) ──────────────────────────────────────────── */

.legal-footer {
  position: absolute;
  bottom: 2rem;
  right: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
}

.legal-footer a {
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: rgba(0, 42, 92, 0.4);
  text-decoration: none;
  transition: color 0.2s;
}

.legal-footer a:hover {
  color: rgba(0, 42, 92, 0.8);
}

/* ── Mobile ──────────────────────────────────────────────────────────── */

@media (max-width: 520px) {
  .headline {
    font-size: clamp(1.1rem, 7vw, 2.2rem);
    align-items: center;
  }

  .legal-footer {
    right: 1.2rem;
    bottom: 1.2rem;
  }
}
