:root {
  --bg: #0e0c0a;
  --ink: #f4ede4;
  --ink-soft: #a89a88;
  --bronze: #c48a4a;
  --bronze-deep: #a56f35;
  --bronze-glow: rgba(196, 138, 74, 0.28);
  --line: rgba(244, 237, 228, 0.1);
  --shadow: 0 20px 48px rgba(196, 138, 74, 0.22);
  --radius: 999px;
  --font: "DM Sans", system-ui, sans-serif;
}

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

html,
body {
  margin: 0;
  height: 100%;
}

body {
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.5;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.page-lock {
  overflow: hidden;
  height: 100dvh;
}

.shell {
  height: 100dvh;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: stretch;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 45% at 8% -8%, rgba(196, 138, 74, 0.22), transparent 55%),
    radial-gradient(ellipse 55% 40% at 92% 8%, rgba(196, 138, 74, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 35% at 70% 110%, rgba(165, 111, 53, 0.16), transparent 55%),
    linear-gradient(180deg, #14110e 0%, var(--bg) 45%, #0a0908 100%);
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  animation: rise 0.7s ease both;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.brand-mark img {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.wordmark {
  font-family: var(--font);
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: -0.045em;
  color: var(--ink);
  line-height: 1;
}

.brand .wordmark {
  font-size: 1.3rem;
  letter-spacing: -0.04em;
}

.wordmark-sm {
  font-size: 1em;
  letter-spacing: -0.04em;
}

.slogan {
  margin: 0.85rem 0 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius);
  padding: 0.8rem 1.25rem;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-small {
  padding: 0.5rem 0.95rem;
  font-size: 0.9rem;
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.btn-small:hover {
  background: rgba(244, 237, 228, 0.06);
}

.btn-primary {
  background: var(--bronze);
  color: #0e0c0a;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: var(--bronze-deep);
  color: #fff;
}

.hero-lock {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  align-items: center;
  min-height: 0;
  padding: 0.5rem 0;
}

.hero-copy {
  animation: rise 0.85s 0.08s ease both;
}

.hero h1.wordmark {
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 4.6rem);
  letter-spacing: -0.05em;
}

.lede {
  margin: 0.85rem 0 0;
  max-width: 32rem;
  font-size: 1.05rem;
  color: var(--ink-soft);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 0;
  animation: rise 0.9s 0.14s ease both;
}

.mark-standalone {
  display: block;
  width: min(42vh, 300px);
  height: auto;
  filter: drop-shadow(0 24px 40px var(--bronze-glow));
  animation: breath 5.5s ease-in-out infinite;
}

.foot-lock {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.85rem 0 1.1rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  animation: rise 0.7s 0.2s ease both;
}

.foot-lock p {
  margin: 0;
}

.foot-links a {
  font-weight: 600;
  text-decoration: none;
}

.foot-links a:hover {
  color: var(--ink);
}

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

@keyframes breath {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@media (max-width: 820px) {
  .hero-lock {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .hero-visual {
    order: -1;
  }

  .mark-standalone {
    width: min(28vh, 180px);
  }

  .lede {
    margin-left: auto;
    margin-right: auto;
  }

  .cta-row {
    justify-content: center;
  }
}

@media (max-height: 700px) {
  .mark-standalone {
    width: min(30vh, 200px);
  }

  .hero h1.wordmark {
    font-size: clamp(2.4rem, 6vw, 3.6rem);
  }

  .lede {
    font-size: 0.98rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .mark-standalone,
  .top,
  .hero-copy,
  .hero-visual,
  .foot-lock {
    animation: none;
    transition: none;
  }
}
