:root {
  --bg: #f4f6f2;
  --ink: #1b241c;
  --muted: #5d6a60;
  --line: rgba(27, 36, 28, 0.1);
  --accent: #2f6ed4;
  --glow: rgba(47, 110, 212, 0.12);
  --mx: 50%;
  --my: 28%;
  --pad: clamp(1.25rem, 4vw, 2.75rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Figtree, system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.55;
}

::selection {
  background: var(--accent);
  color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

.is-hidden {
  display: none !important;
}

.glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(520px circle at var(--mx) var(--my), var(--glow), transparent 46%),
    radial-gradient(820px circle at 85% -10%, rgba(47, 110, 212, 0.08), transparent 44%);
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.08;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 2;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: var(--pad);
}

.menu {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.menu a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.menu a:hover,
.menu a[aria-current="page"] {
  color: var(--ink);
}

.hero {
  padding: clamp(3.5rem, 14vh, 8rem) var(--pad) clamp(4rem, 12vh, 7rem);
}

h1 {
  margin: 0;
  font-family: "Bricolage Grotesque", Georgia, serif;
  font-size: clamp(5.2rem, 17vw, 10.5rem);
  font-weight: 500;
  line-height: 0.84;
  letter-spacing: -0.05em;
  animation: rise 1s 0.08s ease both;
}

.bit {
  display: inline-block;
  width: 0.14em;
  height: 0.14em;
  margin-left: 0.08em;
  background: var(--accent);
  vertical-align: 0.72em;
  animation: blink 1.7s steps(1) infinite;
}

.word {
  margin: 0.55rem 0 0;
  font-size: clamp(1.3rem, 3.2vw, 2rem);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  animation: rise 1s 0.16s ease both;
}

.lede {
  max-width: 22rem;
  margin: 2.4rem 0 0;
  color: var(--ink);
  font-size: 1.08rem;
  animation: rise 1s 0.24s ease both;
}

.services {
  border-top: 1px solid var(--line);
}

.service {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1rem;
  padding: 1.6rem var(--pad);
  border-bottom: 1px solid var(--line);
  transition: background 0.35s ease;
}

.service:hover {
  background: rgba(47, 110, 212, 0.05);
}

.index {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  padding-top: 0.2rem;
}

.service-copy h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.service-copy p {
  margin: 0.35rem 0 0;
  max-width: 28rem;
  color: var(--muted);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding: var(--pad);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer a:hover {
  color: var(--ink);
}

.domain {
  margin: 0;
  letter-spacing: 0.08em;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes blink {
  0%,
  55% {
    opacity: 1;
  }
  56%,
  100% {
    opacity: 0.2;
  }
}

@media (max-width: 640px) {
  .word {
    letter-spacing: 0.16em;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
}

@media (min-width: 800px) {
  .service {
    grid-template-columns: 4.5rem minmax(14rem, 22rem) 1fr;
    align-items: baseline;
  }

  .service-copy {
    display: contents;
  }

  .service-copy p {
    margin: 0;
    justify-self: end;
    text-align: right;
  }
}

@media (max-height: 760px) {
  .hero {
    padding-top: clamp(2rem, 8vh, 4.5rem);
    padding-bottom: clamp(2.5rem, 8vh, 4.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  h1,
  .word,
  .lede,
  .bit {
    animation: none;
  }
}
