:root {
  --bg: #080808;
  --fg: #f3f3f3;
  --muted: #8e8e8e;
  --line: rgba(255, 255, 255, 0.18);
  --line-strong: rgba(255, 255, 255, 0.38);
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,.035), transparent 28%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,.03), transparent 30%),
    var(--bg);
  color: var(--fg);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

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

#leafCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: .58;
}

.grain {
  position: fixed;
  inset: -40%;
  z-index: 1;
  pointer-events: none;
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  animation: grain .23s steps(2) infinite;
}

@keyframes grain {
  0% { transform: translate(0,0); }
  20% { transform: translate(-3%,2%); }
  40% { transform: translate(2%,-3%); }
  60% { transform: translate(3%,3%); }
  80% { transform: translate(-2%,-2%); }
  100% { transform: translate(0,0); }
}

.page-shell {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px 0 30px;
  display: flex;
  flex-direction: column;
}

.topbar, .footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "Space Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.brand { font-weight: 700; }
.status { color: var(--muted); }
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--fg);
  box-shadow: 0 0 18px rgba(255,255,255,.75);
}

.hero {
  position: relative;
  flex: 1;
  min-height: 570px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  align-items: center;
  gap: 40px;
  padding: 8vh 0 5vh;
}

.hero-copy { position: relative; z-index: 3; }
.eyebrow {
  margin: 0 0 22px;
  color: var(--muted);
  font: 700 12px/1.2 "Space Mono", monospace;
  letter-spacing: .14em;
}

h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(64px, 11vw, 170px);
  line-height: .82;
  letter-spacing: -.075em;
  font-weight: 600;
}

.cursor {
  display: inline-block;
  margin-left: .04em;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.subtitle {
  max-width: 440px;
  margin: 30px 0 0;
  color: #c8c8c8;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.45;
}

.uuu-link {
  position: relative;
  justify-self: end;
  width: min(470px, 100%);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.24);
  transform: rotate(2.5deg);
  transition: transform .45s cubic-bezier(.2,.8,.2,1), border-color .35s ease, box-shadow .35s ease;
}

.uuu-link:hover,
.uuu-link:focus-visible {
  transform: rotate(-1deg) scale(1.035);
  border-color: var(--line-strong);
  box-shadow: 0 30px 90px rgba(0,0,0,.55);
  outline: none;
}

.uuu-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: screen;
  opacity: .75;
  filter: grayscale(1) contrast(1.15);
  transition: opacity .35s ease, transform .45s ease;
}

.uuu-link:hover img,
.uuu-link:focus-visible img { opacity: .92; transform: scale(1.04); }

.uuu-caption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 2;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(8,8,8,.62);
  backdrop-filter: blur(8px);
  font: 700 10px/1 "Space Mono", monospace;
  letter-spacing: .09em;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact-card {
  position: relative;
  min-height: 150px;
  padding: 23px 22px 20px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background .25s ease, padding .25s ease;
}

.contact-card:last-child { border-right: 0; }
.contact-card:hover { background: rgba(255,255,255,.045); padding-top: 27px; }

.label {
  color: var(--muted);
  font: 700 10px/1 "Space Mono", monospace;
  letter-spacing: .12em;
}

.value {
  font-size: clamp(18px, 2.3vw, 26px);
  letter-spacing: -.035em;
  word-break: break-word;
}

.arrow {
  position: absolute;
  top: 21px;
  right: 21px;
  color: var(--fg);
  font-size: 18px;
}

.muted { color: #555; }
.email-card { cursor: default; }

.footer {
  padding-top: 24px;
  color: var(--muted);
}

@media (max-width: 820px) {
  .page-shell { width: min(100% - 28px, 680px); }
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 38px;
    padding: 10vh 0 7vh;
  }
  .uuu-link {
    width: min(420px, 78vw);
    justify-self: center;
  }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-card {
    min-height: 124px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .contact-card:last-child { border-bottom: 0; }
}

@media (max-width: 520px) {
  .page-shell { width: min(100% - 22px, 460px); padding-top: 18px; }
  .hero { padding-top: 9vh; }
  h1 { font-size: clamp(58px, 18vw, 100px); }
  .uuu-link { width: min(340px, 84vw); }
  .footer { font-size: 10px; }
}

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