:root {
  --ink: #14201c;
  --ink-soft: #3a4a44;
  --line: rgba(20, 32, 28, 0.14);
  --accent: #2f6b5a;
  --accent-deep: #1f4d41;
  --glow: rgba(47, 107, 90, 0.28);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Outfit", "Avenir Next", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  background:
    radial-gradient(1100px 680px at 90% -12%, rgba(47, 107, 90, 0.18), transparent 55%),
    radial-gradient(860px 560px at -14% 22%, rgba(20, 32, 28, 0.08), transparent 50%),
    linear-gradient(160deg, #eef3f1 0%, #e2ebe7 45%, #e8eee9 100%);
  line-height: 1.55;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 2;
  opacity: 0.045;
  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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.top, main, .foot { position: relative; z-index: 3; }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem clamp(1.25rem, 4vw, 3.5rem);
}

.mark {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
}

.nav a, .foot a, .coords a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
}

.nav a:hover, .foot a:hover, .coords a:hover { color: var(--accent-deep); }

.hero {
  min-height: calc(100vh - 5rem);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: end;
  padding: clamp(1.5rem, 5vh, 3rem) clamp(1.25rem, 4vw, 3.5rem) clamp(2rem, 6vh, 4rem);
}

.hero-copy {
  max-width: 38rem;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.ready .hero-copy { opacity: 1; transform: none; }

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 600;
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(3.2rem, 9vw, 6.2rem);
  line-height: 0.94;
  letter-spacing: -0.02em;
}

.lede {
  margin: 1.4rem 0 0;
  font-size: clamp(1.02rem, 2.1vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 32rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.7rem 1.2rem;
  border-radius: 0.2rem;
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn.primary { background: var(--ink); color: #f3f7f5; }
.btn.primary:hover { background: var(--accent-deep); transform: translateY(-1px); }

.btn.ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.35);
}
.btn.ghost:hover { border-color: var(--accent); color: var(--accent-deep); }

.hero-visual {
  position: relative;
  min-height: 22rem;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 1s ease 0.15s, transform 1s ease 0.15s;
}

.ready .hero-visual { opacity: 1; transform: none; }

.orbit {
  position: absolute;
  inset: 8% 6%;
  border-radius: 46% 54% 50% 50% / 54% 46% 54% 46%;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.58), rgba(210, 224, 218, 0.22)),
    radial-gradient(circle at 30% 30%, rgba(47, 107, 90, 0.36), transparent 55%);
  box-shadow: 0 30px 80px var(--glow);
  animation: drift 12s ease-in-out infinite alternate;
}

.panel {
  position: relative;
  z-index: 1;
  width: min(100%, 17rem);
  padding: 1.6rem 1.5rem 1.45rem;
  background: rgba(20, 32, 28, 0.92);
  color: #edf4f1;
  border-radius: 0.25rem;
  animation: rise 1.1s ease 0.35s both;
}

.panel span {
  display: block;
  font-family: var(--serif);
  font-size: 4.2rem;
  line-height: 0.9;
  font-weight: 600;
}

.panel em {
  display: block;
  margin-top: 0.55rem;
  font-style: normal;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: rgba(237, 244, 241, 0.78);
}

.block {
  padding: 3.5rem clamp(1.25rem, 4vw, 3.5rem);
  border-top: 1px solid var(--line);
  max-width: 52rem;
}

.block h2 {
  margin: 0 0 0.9rem;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 600;
}

.block p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 40rem;
}

.coords dl {
  margin: 1.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
}

.coords dt {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.coords dd { margin: 0; font-size: 1.02rem; }

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem clamp(1.25rem, 4vw, 3.5rem) 2rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.foot strong {
  display: block;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.foot-links { display: flex; gap: 1.1rem; align-items: center; }

.legal-page {
  padding: 2.5rem clamp(1.25rem, 4vw, 3.5rem) 4rem;
  max-width: 46rem;
}

.legal-page h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin: 0 0 1rem;
}

.legal-page h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.45rem;
  margin: 2rem 0 0.6rem;
}

.legal-page p, .legal-page li { color: var(--ink-soft); }
.legal-page ul { padding-left: 1.2rem; }

@keyframes drift {
  from { transform: translate3d(0, 0, 0) rotate(0deg); }
  to { transform: translate3d(0, -10px, 0) rotate(4deg); }
}

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

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    align-items: start;
  }
  .hero-visual { min-height: 16rem; order: -1; }
  .coords dl { grid-template-columns: 1fr; }
  .nav { display: none; }
}
