:root {
  --bg: #0E0D0B;
  --bg-grain: #131210;
  --fg: #F5F2EC;
  --fg-muted: rgba(245, 242, 236, 0.55);
  --fg-faint: rgba(245, 242, 236, 0.35);
  --accent: #B794F6;
  --line: rgba(245, 242, 236, 0.12);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--serif);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(ellipse at top, rgba(183, 148, 246, 0.05), transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(183, 148, 246, 0.03), transparent 50%);
  pointer-events: none;
  z-index: 1;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  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.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: overlay;
  z-index: 2;
}

.frame {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 5vw, 4rem);
}

header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  letter-spacing: 0.02em;
}

.wordmark {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  letter-spacing: -0.01em;
  position: relative;
}

.wordmark::after {
  content: '';
  position: absolute;
  right: -0.5em;
  top: 0.3em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  animation: pulse 3s ease-in-out infinite;
  animation-delay: 1.5s;
}

@keyframes pulse {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

.status {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: breathe 2.5s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}

main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 4rem 0;
  max-width: 1100px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 2rem;
  opacity: 0;
  animation: rise 1.2s ease-out 0.2s forwards;
}

h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  max-width: 18ch;
  opacity: 0;
  animation: rise 1.4s ease-out 0.4s forwards;
}

h1 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

.lede {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  line-height: 1.55;
  color: var(--fg-muted);
  max-width: 52ch;
  font-weight: 300;
  margin-bottom: 3rem;
  opacity: 0;
  animation: rise 1.4s ease-out 0.7s forwards;
}

.cta-row {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: rise 1.4s ease-out 1s forwards;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg);
  text-decoration: none;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--fg);
  transition: gap 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.cta::after {
  content: '→';
  transition: transform 0.3s ease;
  font-family: var(--serif);
  font-size: 1rem;
}

.cta:hover {
  gap: 1rem;
  color: var(--accent);
  border-color: var(--accent);
}

.cta:hover::after {
  transform: translateX(4px);
}

.cta-secondary {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-faint);
  text-decoration: none;
  padding: 0.85rem 0;
  transition: color 0.3s ease;
}

.cta-secondary:hover {
  color: var(--fg);
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

footer a {
  color: var(--fg-faint);
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--fg);
}

.coords {
  display: flex;
  gap: 2rem;
}

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

@media (max-width: 640px) {
  main {
    padding: 2rem 0;
  }
  h1 {
    max-width: 14ch;
  }
  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .coords {
    flex-direction: column;
    gap: 0.5rem;
  }
}
