@font-face {
  font-family: 'GT Super Text';
  src: url('/fonts/GT-Super-Text-Book.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'GT Super Display';
  src: url('/fonts/GT-Super-Display-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #FAF8F8;
  --color-muted: #4F4F4F;
  --color-accent: #7F48DD;
  --font-text: 'GT Super Text', 'Georgia', serif;
  --font-display: 'GT Super Display', 'Georgia', serif;
  /*
   * Single fluid type scale — no breakpoint jumps.
   * Scales from 2.8rem at small widths up to 8rem on large screens.
   * Uses both vw and vmin to handle both portrait and landscape gracefully.
   */
  --type-size: clamp(2.8rem, 5.5vw + 0.5rem, 8rem);
  --edge-inset: clamp(2rem, 6vh, 7rem);
  --footer-height: clamp(3rem, 8vh, 6rem);
}

html {
  height: 100%;
}

body {
  background-color: var(--color-bg);
  font-family: var(--font-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* ── Responsive show/hide ── */
.mobile-only { display: none; }
.desktop-only { display: block; }

/* ── Header: logo at top center ── */
.header {
  position: absolute;
  top: var(--edge-inset);
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  z-index: 1;
  flex-shrink: 0;
}

/* ── Logo — single fluid scale ── */
.logo {
  --logo-size: clamp(36px, 5.5vw, 90px);
  width: var(--logo-size);
  height: var(--logo-size);
}

.logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

/* ── Main: body copy dead center of viewport ── */
main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 0;
  padding: clamp(5rem, 12vh, 10rem) clamp(1rem, 5vw, 6rem) clamp(5rem, 12vh, 10rem);
  text-align: center;
  overflow: visible;
}

/* ── Shared type ── */
.headline,
.firm-name,
.date {
  font-family: var(--font-text);
  font-weight: 400;
  font-size: var(--type-size);
  line-height: 0.88;
  letter-spacing: -0.045em;
  color: var(--color-muted);
  flex-shrink: 1;
  white-space: nowrap;
  font-variant-numeric: lining-nums;
  max-width: 100%;
}

.headline .line,
.firm-name .line,
.date .line {
  display: block;
  padding: 0 0.15em 0.25em;
  margin: 0 -0.15em -0.25em;
}

.headline .line-inner,
.firm-name .line-inner,
.date .line-inner {
  display: block;
}

/* Everything hidden until JS animation runs */
.headline,
.firm-name,
.date {
  visibility: hidden;
}

/* ── Date — slightly more line-height to clear descenders ── */
.date {
  line-height: 1.05;
}

/* ── Kipping Law — the king ── */
.firm-name {
  color: var(--color-accent);
  letter-spacing: -0.07em;
  margin: clamp(1.5rem, 5vh, 8rem) 0;
}

/* ── Footer ── */
.footer {
  position: absolute;
  bottom: var(--edge-inset);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: clamp(2rem, 5vw, 6.5rem);
  opacity: 0;
  z-index: 1;
  white-space: nowrap;
}

.footer-link {
  font-family: var(--font-text);
  font-size: clamp(0.9rem, 1.4vw, 1.5rem);
  color: var(--color-accent);
  text-decoration: none;
  line-height: 1.33;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.footer-link:hover {
  opacity: 0.6;
}

/* ── Tablet portrait (768px – 1023px) ── */
@media (min-width: 768px) and (max-width: 1023px) {
  :root {
    --type-size: clamp(2.8rem, 7vw, 5.5rem);
  }

  main {
    padding: clamp(5rem, 11vh, 9rem) clamp(2rem, 6vw, 5rem) clamp(5rem, 11vh, 9rem);
  }
}

/* ── Desktop ── */
@media (min-width: 1024px) {
  :root {
    --type-size: clamp(4rem, 6vw, 8rem);
  }

  main {
    padding: clamp(6rem, 12vh, 10rem) clamp(4rem, 8vw, 8rem) clamp(6rem, 12vh, 10rem);
  }
}

/* ── Mobile portrait (max 767px) ── */
@media (max-width: 767px) {
  :root {
    --type-size: clamp(2.8rem, 13vw, 5rem);
    --edge-inset: clamp(2rem, 6vh, 4rem);
  }

  .mobile-only { display: block; }
  .desktop-only { display: none; }

  .headline,
  .firm-name,
  .date {
    white-space: normal;
    word-break: break-word;
  }

  main {
    padding: clamp(4.5rem, 11vh, 8rem) 1.25rem clamp(4.5rem, 11vh, 8rem);
  }

  .logo {
    --logo-size: clamp(56px, 16vw, 90px);
  }

  .firm-name {
    margin: clamp(3rem, 8vh, 10rem) 0;
  }

  .footer-link {
    font-size: clamp(1.2rem, 5.5vw, 1.8rem);
  }
}

/* ── Mobile landscape / short viewports (height ≤ 500px) ── */
@media (max-height: 500px) {
  :root {
    --type-size: clamp(1.2rem, 4vw + 0.3rem, 2.2rem);
    --edge-inset: 0.6rem;
  }

  .firm-name {
    margin: clamp(0.3rem, 1.5vh, 0.8rem) 0;
  }

  .logo {
    --logo-size: 26px;
  }

  main {
    padding: 3rem 1rem 3rem;
  }

  .footer-link {
    font-size: clamp(0.75rem, 2.5vw, 1rem);
  }
}

/* ── Very short AND narrow (e.g. small phone landscape) ── */
@media (max-height: 500px) and (max-width: 767px) {
  :root {
    --type-size: clamp(1rem, 3.5vw + 0.2rem, 1.8rem);
  }

  main {
    padding: 2.8rem 0.75rem 2.8rem;
  }

  .headline,
  .firm-name,
  .date {
    white-space: nowrap;
  }
}