:root {
  color-scheme: light;
  font-family: 'Segoe UI', Helvetica, Arial, sans-serif;
  color: #252523;
  background: #f3f1eb;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html.intro-active {
  overflow: hidden;
}

/* The page stays visible underneath; a closed dialog never covers it. */
.logo-intro {
  position: fixed;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: #252523;
  background: #fff;
  opacity: 1;
  transition: opacity 1200ms ease-in-out;
}

.logo-intro[open] {
  display: grid;
  place-items: center;
}

.logo-intro::backdrop {
  background: transparent;
}

.logo-intro.is-leaving {
  opacity: 0;
}

.logo-intro-stage {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.logo-intro-front-rays {
  mix-blend-mode: multiply;
}

.logo-intro-outro {
  position: absolute;
  inset-inline: 24px;
  /* Match the final logo's bottom edge under its uniform viewport scale. */
  top: calc(50% + min(12.2vw, 176px, 35vh) + clamp(16px, 2.5vh, 28px));
  margin: 0;
  color: #575751;
  font-size: clamp(16px, 2vw, 24px);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-align: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 500ms ease-out;
  pointer-events: none;
}

.logo-intro.has-outro .logo-intro-outro {
  visibility: visible;
  opacity: 1;
}

.logo-intro-skip {
  position: absolute;
  right: max(clamp(24px, 6vw, 96px), env(safe-area-inset-right));
  bottom: max(28px, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 24px;
  min-height: 44px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid #d4d1c8;
  color: #575751;
  background: transparent;
  font-family: 'Courier New', Courier, monospace;
  font-size: 12px;
  cursor: pointer;
}

.logo-intro-skip:hover {
  color: #252523;
}

.logo-intro-skip:focus-visible,
h1:focus-visible {
  outline: 2px solid #294cce;
  outline-offset: 5px;
}

.page {
  display: flex;
  flex-direction: column;
  width: min(100%, 1440px);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 64px) clamp(24px, 6vw, 96px);
}

.site-header {
  padding-bottom: 24px;
  border-bottom: 1px solid #d4d1c8;
}

.brand-logo {
  display: block;
  width: min(100%, 240px);
  height: auto;
  mix-blend-mode: multiply;
}

main {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding: clamp(72px, 12vh, 144px) 0;
}

.eyebrow {
  margin: 0 0 24px;
  color: #294cce;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 6.6vw, 96px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.055em;
  overflow-wrap: break-word;
}

.intro {
  max-width: 42ch;
  margin: 32px 0 0;
  color: #575751;
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.6;
}

.site-footer {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid #d4d1c8;
}

.site-footer p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.footer-rule {
  width: 40px;
  height: 2px;
  margin-left: auto;
  background: #294cce;
}

@media (prefers-reduced-motion: reduce) {
  .logo-intro,
  .logo-intro-outro {
    transition: none;
  }
}

@media (max-height: 480px) {
  .logo-intro-skip {
    top: max(16px, env(safe-area-inset-top));
    bottom: auto;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding-bottom: 20px;
  }

  .brand-logo {
    width: min(100%, 200px);
  }

  h1 {
    font-size: clamp(36px, 10vw, 48px);
    letter-spacing: -0.045em;
  }

  .intro {
    margin-top: 24px;
  }
}
