:root {
  --background: #f5f3ee;
  --foreground: #151515;
  --muted: #7f7c75;
  --line: rgba(20, 20, 20, 0.105);
  --point: rgba(20, 20, 20, 0.34);
  --accent: #1768ff;
  --page-padding: clamp(24px, 4.2vw, 72px);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--background);
  color: var(--foreground);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 39%, rgba(255, 255, 255, 0.7), transparent 34%),
    radial-gradient(circle at 12% 80%, rgba(255, 255, 255, 0.42), transparent 36%),
    var(--background);
}

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

.network {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  animation: canvas-in 1.8s 0.5s ease forwards;
}

.page {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  padding: var(--page-padding);
}

.site-header,
.site-footer,
.hero-copy {
  opacity: 0;
  transform: translateY(10px);
  animation: reveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.site-header {
  animation-delay: 0.05s;
}

.hero-copy {
  animation-delay: 0.18s;
}

.site-footer {
  animation-delay: 0.38s;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  font-size: clamp(17px, 1.4vw, 22px);
  font-weight: 620;
  letter-spacing: -0.045em;
}

.brand-mark,
.accent {
  color: var(--accent);
}

.hero {
  display: flex;
  align-items: center;
  padding-top: 2vh;
}

.hero-copy {
  margin-left: clamp(0px, 1.2vw, 18px);
}

h1 {
  margin: 0;
  max-width: 860px;
  font-size: clamp(58px, 8.5vw, 142px);
  font-weight: 390;
  line-height: 0.88;
  letter-spacing: -0.065em;
}

h1 span {
  display: block;
}

.services {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1vw, 18px);
  margin: clamp(24px, 3vw, 42px) 0 0;
  color: var(--muted);
  font-size: clamp(12px, 1.05vw, 16px);
  letter-spacing: -0.01em;
}

.services i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.9;
}

.site-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  color: #44413c;
  font-size: clamp(12px, 0.95vw, 15px);
}

.site-footer p {
  margin: 0;
}

.email {
  position: relative;
  display: inline-grid;
  overflow: hidden;
  text-align: right;
}

.email span {
  grid-area: 1 / 1;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.3s ease;
}

.email-hover {
  color: var(--accent);
  opacity: 0;
  transform: translateY(110%);
}

.email:hover .email-default,
.email:focus-visible .email-default {
  opacity: 0;
  transform: translateY(-110%);
}

.email:hover .email-hover,
.email:focus-visible .email-hover {
  opacity: 1;
  transform: translateY(0);
}

.email:focus-visible,
.brand:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes canvas-in {
  to {
    opacity: 1;
  }
}

@media (max-width: 700px) {
  body {
    overflow: auto;
  }

  .page {
    min-height: 100svh;
  }

  .hero {
    align-items: center;
    padding: 10vh 0 6vh;
  }

  h1 {
    font-size: clamp(52px, 16.2vw, 92px);
    line-height: 0.91;
  }

  .services {
    flex-wrap: wrap;
    max-width: 320px;
    row-gap: 8px;
  }

  .site-footer {
    align-items: flex-start;
  }
}

@media (max-width: 430px) {
  .site-footer {
    flex-direction: column;
    gap: 14px;
  }

  .email {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .network {
    display: none;
  }
}
