*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: #08090A;
}

:root {
  --bg: #08090A;
  --ink: #ECE8E0;
  --muted: #B7B2A8;
  --faint: #7C7A72;
  --hairline: rgba(255, 255, 255, 0.08);
  --accent: #7FD8CB;
  --gutter: clamp(24px, 6vw, 84px);
}

.page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Instrument Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Animated background --- */
.bg-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.bg-veil,
.bg-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.bg-veil {
  background: radial-gradient(120% 90% at 18% 42%,
      rgba(8, 9, 10, 0) 30%,
      rgba(8, 9, 10, 0.55) 78%,
      rgba(8, 9, 10, 0.9) 100%);
}

.bg-glow {
  background: radial-gradient(60% 55% at 80% 20%,
      rgba(70, 196, 178, 0.10),
      rgba(70, 196, 178, 0) 70%);
}

/* --- Header --- */
.site-header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 34px var(--gutter);
}

.logo-mark {
  display: block;
  flex: none;
}

.wordmark {
  font-size: 18.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* --- Hero --- */
.hero {
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1120px;
  padding: clamp(20px, 3vh, 56px) var(--gutter);
}

.hero-title {
  margin: 0 0 34px;
  max-width: 15ch;
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(46px, 7.6vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-lede {
  margin: 0 0 26px;
  max-width: 44ch;
  font-size: clamp(17px, 1.9vw, 21px);
  line-height: 1.5;
  color: var(--muted);
}

/* --- CTA --- */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 16px 28px;
  border-radius: 999px;
  background: var(--ink);
  color: #0B0C0D;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.cta:hover {
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(70, 196, 178, 0.32);
}

.cta-arrow {
  font-size: 18px;
  line-height: 1;
}

.cta-note {
  max-width: 26ch;
  font-size: 14px;
  line-height: 1.45;
  color: var(--faint);
}

/* --- Footer --- */
.site-footer {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 22px var(--gutter);
  font-size: 13px;
  color: #5E5C56;
}

@media (prefers-reduced-motion: reduce) {
  .cta {
    transition: none;
  }
}
