:root {
  --ink: #111;
  --muted: #5c5c5c;
  --soft: #8f8f8f;
  --faint: #b5b5b5;
  --line: rgba(17, 17, 17, 0.08);
  --line-strong: rgba(17, 17, 17, 0.18);
  --grid: rgba(17, 17, 17, 0.03);
  --shadow: rgba(17, 17, 17, 0.07);
  --glow: rgba(17, 17, 17, 0.04);
  color: #111;
  background-color: #fff;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  background: #fff;
  overflow-x: hidden;
}

body {
  min-height: 100%;
  min-height: 100dvh;
  margin: 0;
  background: #fff;
  color: var(--ink);
  display: grid;
  grid-template-rows: 1fr auto;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Soft paper grain + grid */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% 42%, rgba(17, 17, 17, 0.018), transparent 70%),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size:
    100% 100%,
    64px 64px,
    64px 64px;
  opacity: 0.9;
  mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);
}

/* Corner frame marks */
body::after {
  content: "";
  position: fixed;
  inset: 28px;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  background:
    linear-gradient(var(--line-strong), var(--line-strong)) top left / 28px 1px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) top left / 1px 28px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) top right / 28px 1px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) top right / 1px 28px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) bottom left / 28px 1px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) bottom left / 1px 28px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) bottom right / 28px 1px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) bottom right / 1px 28px no-repeat;
}

::selection {
  color: #fff;
  background: var(--ink);
}

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

#particle-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.home {
  position: relative;
  z-index: 1;
  width: min(100% - 48px, 860px);
  margin: 0 auto;
  display: flex;
  min-height: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 0 64px;
  animation: rise-in 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Top hairline */
.home::before {
  content: "";
  position: absolute;
  top: 56px;
  left: 50%;
  width: min(100%, 520px);
  height: 1px;
  border: 0;
  border-top: 1px solid transparent;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
  transform: translateX(-50%);
}

/* Soft ambient glow behind wordmark */
.home::after {
  content: "";
  position: absolute;
  top: 48%;
  left: 50%;
  width: min(72vw, 520px);
  height: 220px;
  transform: translate(-50%, -48%);
  background: radial-gradient(ellipse at center, var(--glow), transparent 68%);
  pointer-events: none;
  z-index: -1;
}

.mark {
  width: 56px;
  height: 56px;
  display: block;
  margin-bottom: 36px;
  filter: drop-shadow(0 14px 22px var(--shadow));
  transition:
    opacity 200ms ease,
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 220ms ease;
}

.home:hover .mark {
  transform: translateY(-3px);
  filter: drop-shadow(0 18px 28px rgba(17, 17, 17, 0.1));
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--soft);
  font-size: 0.76rem;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0;
  font-weight: 500;
}

.wordmark {
  position: relative;
  display: inline-block;
  padding: 0 12px;
}

.wordmark::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: -18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

h1 {
  margin: 0;
  color: var(--ink);
  font-size: 7.6rem;
  line-height: 0.92;
  font-weight: 560;
  letter-spacing: 0;
  text-shadow: 0 18px 40px rgba(17, 17, 17, 0.1);
}

.tagline {
  margin: 36px 0 0;
  max-width: 28rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
  font-weight: 400;
}

.contact-row {
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.email {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.5;
  padding: 10px 4px 14px;
  transition:
    color 180ms ease,
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.email::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.05);
  opacity: 0.75;
  transition:
    box-shadow 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

.email::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
  transform: scaleX(0.55);
  transform-origin: center;
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.email:hover,
.email:focus-visible {
  color: var(--ink);
  transform: translateY(-1px);
  outline: none;
}

.email:hover::before,
.email:focus-visible::before {
  box-shadow: 0 0 0 6px rgba(17, 17, 17, 0.07);
  opacity: 1;
  transform: scale(1.08);
}

.email:hover::after,
.email:focus-visible::after {
  transform: scaleX(1);
}

.email:focus-visible {
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--ink);
  border-radius: 2px;
}

.footer {
  position: relative;
  z-index: 1;
  padding: 0 20px 32px;
  color: var(--faint);
  font-size: 0.74rem;
  line-height: 1.5;
  text-align: center;
  animation: rise-in 700ms cubic-bezier(0.22, 1, 0.36, 1) 120ms both;
}

.footer a {
  border-bottom: 1px solid transparent;
  transition:
    color 160ms ease,
    border-color 160ms ease;
}

.footer a:hover,
.footer a:focus-visible {
  color: var(--muted);
  border-color: var(--line-strong);
  outline: none;
}

/* Opacity-only: translateY would overflow the viewport and flash a scrollbar on load */
@keyframes rise-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {

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

  .home,
  .footer {
    animation: none;
  }
}

@media (max-width: 760px) {
  body::after {
    inset: 18px;
  }

  h1 {
    font-size: 5.8rem;
  }

  .tagline {
    font-size: 0.94rem;
  }
}

@media (max-width: 520px) {
  body::after {
    inset: 14px;
    opacity: 0.4;
  }

  .home {
    width: min(100% - 32px, 760px);
    padding-top: 68px;
  }

  .home::before {
    top: 44px;
    width: min(100%, 280px);
  }

  .home::after {
    height: 160px;
  }

  .mark {
    width: 48px;
    height: 48px;
    margin-bottom: 28px;
  }

  .eyebrow {
    font-size: 0.7rem;
    margin-bottom: 16px;
  }

  h1 {
    font-size: 4.1rem;
  }

  .tagline {
    margin-top: 30px;
    font-size: 0.9rem;
    max-width: 18rem;
  }

  .contact-row {
    margin-top: 36px;
  }

  .email {
    font-size: 0.98rem;
  }

  .footer {
    padding-bottom: 20px;
  }
}