:root {
  --bg: #0a0a09;
  --fg: #f4f3ef;
  --muted: #b3b2ab;
  --line: rgba(244, 243, 239, 0.14);
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--fg);
  font-family: "agency-fb", 'Arial Narrow', Arial, sans-serif;
  font-weight: 400;
  display: flex;
  flex-direction: column;
}

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

a:hover {
  color: var(--muted);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 4px;
}

/* Subtle film-grain texture, matching the polish of the reference design */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.site-header {
  position: relative;
  z-index: 2;
  padding: var(--space-3) var(--space-4);
}

.site-nav {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-4);
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-4) var(--space-3);
}

.wordmark {
  margin: 0 0 var(--space-5);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(1rem, calc((100vw - 3rem) / 13.004), 4.5rem);
  line-height: 1.15;
  white-space: nowrap;
}

.contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: 1.05rem;
  letter-spacing: 0.03em;
}

.contact p {
  margin: 0;
}

.contact .address {
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.6;
}

.contact a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.contact-email {
  margin-top: -0.4rem;
  font-size: 1.2rem;
}

.contact-email a {
  align-items: flex-start;
}

.site-footer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 480px) {
  .site-footer {
    flex-direction: column;
    text-align: center;
    gap: var(--space-1);
  }

  .site-nav {
    gap: var(--space-3);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .wordmark,
  .contact {
    opacity: 0;
    transform: translateY(12px);
    animation: rise 0.7s ease-out forwards;
  }

  .wordmark {
    animation-delay: 0.08s;
  }

  .contact {
    animation-delay: 0.16s;
  }
}

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