@font-face {
  font-family: "TT Firs Neue";
  src: url("fonts/TTFirsNeue-Regular.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --blue: #02099a;
  --blue-soft: #e7e9ff;
  --sun: #ffc83d;
  --ink: #101125;
  --paper: #f9f9ff;
  --white: #ffffff;
  --border: rgba(2, 9, 154, 0.14);
  --display: "TT Firs Neue", "Figtree", "Helvetica Neue", Arial, sans-serif;
  --serif: "Noto Serif", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.page-shell {
  min-height: 100vh;
}

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.8rem clamp(1.25rem, 5vw, 5rem);
  color: var(--blue);
  font-family: var(--display);
}

.wordmark {
  display: inline-block;
  font-size: clamp(1rem, 1.4vw, 1.3rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  text-decoration: none;
}

.hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  align-items: center;
  padding: 6.5rem clamp(1.25rem, 8vw, 9rem) 5rem;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size:
    clamp(3rem, 7vw, 7rem)
    clamp(3rem, 7vw, 7rem);
  mask-image:
    linear-gradient(
      to bottom,
      transparent 5%,
      black 38%,
      transparent 96%
    );
  content: "";
  opacity: 0.45;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(72rem, 78%);
}

h1 {
  max-width: 11ch;
  margin: 0;
  color: var(--blue);
  font-family: var(--display);
  font-size: clamp(4.2rem, 8.7vw, 8.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.9;
}

h1 span {
  color: transparent;
  -webkit-text-stroke:
    clamp(1.5px, 0.13vw, 2.3px)
    var(--blue);
}

.hero-copy {
  display: grid;
  max-width: 44rem;
  gap: 0.75rem;
  margin-top: clamp(2rem, 4vh, 3.25rem);
  text-align: left;
}

.hero-copy p {
  margin: 0;
  font-size: clamp(1.08rem, 1.5vw, 1.38rem);
  line-height: 1.55;
}

.hero-copy .coming-soon {
  max-width: 39rem;
  color: rgba(16, 17, 37, 0.58);
  font-size: clamp(0.96rem, 1.15vw, 1.08rem);
}

.sun-illustration {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: clamp(-5rem, 2vw, 3rem);
  width: clamp(18rem, 29vw, 31rem);
  overflow: visible;
  transform: translateY(-50%) rotate(-4deg);
}

.sun-rays path {
  fill: none;
  stroke: var(--blue);
  stroke-linecap: round;
  stroke-width: 7;
}

.sun-halo {
  fill: var(--blue-soft);
  stroke: var(--blue);
  stroke-width: 3;
}

.sun-face {
  fill: var(--sun);
  stroke: var(--blue);
  stroke-width: 4;
}

.sun-curve {
  fill: none;
  stroke: var(--blue);
  stroke-linecap: round;
  stroke-width: 6;
}

.sun-eye {
  fill: var(--blue);
}

.scroll-cue {
  position: absolute;
  z-index: 3;
  right: clamp(1.25rem, 4vw, 4.5rem);
  bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--blue);
  font-family: var(--display);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-decoration: none;
  text-transform: uppercase;
}

.scroll-cue span:last-child {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  transition:
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.scroll-cue:hover span:last-child {
  color: var(--white);
  background: var(--blue);
  transform: translateY(0.2rem);
}

.contact {
  display: grid;
  min-height: 100svh;
  grid-template-rows: 1fr auto;
  padding:
    clamp(3.5rem, 7vh, 6rem)
    clamp(1.25rem, 8vw, 9rem)
    1.75rem;
  color: var(--white);
  background: var(--blue);
}

.contact-content {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(3rem, 10vw, 10rem);
  align-items: center;
}

.section-number {
  margin: 0 0 1.2rem;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.contact h2 {
  max-width: 9ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.1rem, 5.7vw, 5.9rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 0.96;
}

.contact-details p {
  max-width: 28rem;
  margin: 0 0 2rem;
  font-size: clamp(1.06rem, 1.5vw, 1.3rem);
  line-height: 1.6;
}

.email-placeholder {
  display: inline-block;
  border-bottom:
    1px solid rgba(255, 255, 255, 0.6);
  padding-bottom: 0.42rem;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--display);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  text-decoration: none;
}

.site-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  border-top:
    1px solid rgba(255, 255, 255, 0.24);
  padding-top: 1.35rem;
}

.socials {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.62rem;
}

.socials a {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  flex: 0 0 auto;
  place-items: center;
  border:
    1px solid rgba(255, 255, 255, 0.48);
  border-radius: 50%;
  font-size: 1.05rem;
  text-decoration: none;
  transition:
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.socials a:hover,
.socials a:focus-visible {
  color: var(--blue);
  background: var(--white);
  transform: translateY(-0.18rem);
}

.substack-icon {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.footer-meta {
  display: flex;
  gap: 2rem;
  color: rgba(255, 255, 255, 0.58);
  font-family: var(--display);
  font-size: 0.73rem;
  letter-spacing: 0.03em;
}

.reveal {
  opacity: 0;
  animation:
    rise-in 700ms
    cubic-bezier(0.22, 1, 0.36, 1)
    forwards;
}

.reveal-delay-one {
  animation-delay: 130ms;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(1.2rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .hero-content {
    width: 82%;
  }

  .sun-illustration {
    right: -7rem;
    width: 23rem;
    opacity: 0.9;
  }

  .contact-content {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 2rem;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding-top: 1.25rem;
  }

  .hero {
    min-height: 100svh;
    align-items: flex-start;
    padding-top: 7.2rem;
    padding-bottom: 5.8rem;
  }

  .hero-content {
    width: 100%;
  }

  h1 {
    font-size: clamp(3.45rem, 16.4vw, 5rem);
    line-height: 0.9;
  }

  .hero-copy {
    max-width: 86%;
    gap: 0.6rem;
    margin-top: 2rem;
  }

  .hero-copy p {
    font-size: 1rem;
  }

  .hero-copy .coming-soon {
    font-size: 0.9rem;
  }

  .sun-illustration {
    top: auto;
    right: -4.5rem;
    bottom: 2.8rem;
    width: 15.5rem;
    transform: rotate(-7deg);
    opacity: 0.94;
  }

  .scroll-cue {
    right: auto;
    left: 1.25rem;
    bottom: 1.2rem;
  }

  .contact {
    min-height: 100svh;
    padding-top: 3.5rem;
    padding-bottom: 1.25rem;
  }

  .contact-content {
    align-content: center;
    gap: 1.5rem;
  }

  .contact h2 {
    font-size: clamp(3.25rem, 15vw, 4.3rem);
  }

  .contact-details p {
    margin-bottom: 1.25rem;
    font-size: 1rem;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1rem;
  }

  .socials {
    width: 100%;
    justify-content: flex-start;
    gap: 0.45rem;
  }

  .socials a {
    width: 2.55rem;
    height: 2.55rem;
    font-size: 0.96rem;
  }

  .footer-meta {
    width: 100%;
    justify-content: space-between;
    gap: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    animation: none;
  }

  .scroll-cue span:last-child,
  .socials a {
    transition: none;
  }
}