@font-face {
  font-family: "Geist";
  src: url("fonts/geist-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("fonts/geist-mono-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --background: #080a0f;
  --foreground: #f4f1e8;
  --muted: #9c9b97;
  --line: rgb(244 241 232 / 14%);
  --blue: #5b7cff;
  --orange: #ff7448;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Geist", ui-sans-serif, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

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

svg {
  width: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.site-shell {
  isolation: isolate;
  position: relative;
  display: grid;
  min-height: 100svh;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  background:
    linear-gradient(rgb(255 255 255 / 2%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 2%) 1px, transparent 1px),
    var(--background);
  background-size: 68px 68px;
}

.site-shell::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(circle at center, transparent 15%, #080a0f 82%);
  content: "";
  pointer-events: none;
}

.ambient {
  position: absolute;
  z-index: -2;
  border-radius: 999px;
  filter: blur(8px);
  opacity: 0.9;
  pointer-events: none;
}

.ambient-one {
  top: 7%;
  right: -14rem;
  width: min(44rem, 72vw);
  height: min(44rem, 72vw);
  background: radial-gradient(circle, rgb(91 124 255 / 24%), transparent 68%);
}

.ambient-two {
  bottom: -17rem;
  left: -12rem;
  width: min(38rem, 70vw);
  height: min(38rem, 70vw);
  background: radial-gradient(circle, rgb(255 116 72 / 15%), transparent 69%);
}

.topbar,
footer {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  padding-inline: clamp(1.35rem, 4.5vw, 4.5rem);
}

.topbar {
  padding-top: clamp(1.25rem, 3vw, 2.25rem);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.wordmark-mark {
  display: grid;
  width: 2.15rem;
  height: 2.15rem;
  place-items: center;
  border: 1px solid rgb(91 124 255 / 42%);
  border-radius: 50%;
  background: rgb(91 124 255 / 9%);
  color: var(--orange);
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, monospace;
  font-size: 0.625rem;
  letter-spacing: -0.08em;
}

.nav-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-bottom: 1px solid var(--line);
  padding: 0.3rem 0;
  color: #d2d0ca;
  font-size: 0.8125rem;
  transition:
    color 180ms ease,
    border-color 180ms ease;
}

.nav-contact:hover,
.nav-contact:focus-visible {
  border-color: var(--orange);
  color: var(--orange);
}

.hero {
  align-self: center;
  width: min(calc(100% - 2.7rem), 1440px);
  margin: 0 auto;
  padding: clamp(5rem, 12vh, 9rem) clamp(0rem, 4.5vw, 3.15rem);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 clamp(1.3rem, 3vw, 2rem);
  color: var(--muted);
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, monospace;
  font-size: clamp(0.66rem, 1vw, 0.75rem);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 18px rgb(255 116 72 / 58%);
}

h1 {
  max-width: 1100px;
  margin: 0;
  font-size: clamp(3.5rem, 10.5vw, 9.6rem);
  font-weight: 510;
  letter-spacing: -0.072em;
  line-height: 0.84;
}

h1 span {
  color: #6687ff;
  text-shadow: 0 0 48px rgb(91 124 255 / 18%);
}

.intro {
  max-width: 38rem;
  margin: clamp(2.4rem, 5vw, 4rem) 0 0;
  color: #aaa9a5;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  letter-spacing: -0.02em;
  line-height: 1.65;
}

.email-link {
  display: inline-flex;
  margin-top: clamp(2rem, 4vw, 3rem);
  align-items: center;
  gap: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.65rem 0.45rem 0.45rem;
  background: rgb(255 255 255 / 3%);
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, monospace;
  font-size: clamp(0.71rem, 1.2vw, 0.875rem);
  letter-spacing: -0.025em;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.email-icon {
  display: grid;
  width: 2.55rem;
  height: 2.55rem;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #ffffff;
}

.email-icon svg {
  width: 1.125rem;
}

.email-arrow {
  width: 1.125rem;
  margin-left: 0.1rem;
  color: var(--muted);
}

.email-link:hover,
.email-link:focus-visible {
  border-color: rgb(91 124 255 / 78%);
  background: rgb(91 124 255 / 10%);
  transform: translateY(-2px);
}

.email-link:focus-visible,
.nav-contact:focus-visible,
.wordmark:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

footer {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  color: #6f706d;
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, monospace;
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

footer p {
  margin: 0;
}

@media (max-width: 560px) {
  .wordmark > span:last-child {
    max-width: 8rem;
    line-height: 1.1;
  }

  .hero {
    padding-block: 5rem;
  }

  .email-link {
    gap: 0.65rem;
  }

  .email-arrow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
