:root {
  --charcoal: #121417;
  --charcoal-2: #0a0b0d;
  --elevated: #1c1f26;
  --coral: #ff6b5a;
  --coral-deep: #e85a4a;
  --cream: #f5f0eb;
  --mist: #b8c0cc;
  --line: rgba(245, 240, 235, 0.14);
  --font-display: "Syne", sans-serif;
  --font-body: "Manrope", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--cream);
  background: var(--charcoal-2);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  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");
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.14em;
  font-size: 1rem;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--mist);
}

.nav-links a:hover {
  color: var(--cream);
}

/* ----- Hero: one composition ----- */

.hero {
  min-height: 100svh;
  position: relative;
}

.hero-stage {
  min-height: 100svh;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: clamp(5.5rem, 12vh, 7rem) clamp(1.25rem, 4vw, 3rem) clamp(2.5rem, 6vh, 4rem);
  overflow: hidden;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.04);
  animation: hero-drift 18s ease-in-out infinite alternate;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 11, 13, 0.88) 0%, rgba(10, 11, 13, 0.55) 48%, rgba(10, 11, 13, 0.28) 100%),
    linear-gradient(to top, rgba(10, 11, 13, 0.92) 0%, rgba(10, 11, 13, 0.25) 42%, rgba(10, 11, 13, 0.45) 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 36rem;
}

.brand-lockup {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.4rem, 11vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: 0.06em;
  color: var(--cream);
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

.brand-lockup.small {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.5rem;
  opacity: 1;
  transform: none;
  animation: none;
}

.hero-copy h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.65rem, 4.2vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.28s forwards;
}

.support {
  margin: 0 0 1.75rem;
  color: var(--mist);
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  max-width: 28rem;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.42s forwards;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0.85rem 1.4rem;
  border-radius: 0.9rem;
  background: var(--coral);
  color: #fff;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 10px 30px rgba(255, 107, 90, 0.25);
}

.cta-primary:hover {
  background: var(--coral-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(255, 107, 90, 0.35);
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0.85rem 1.2rem;
  border-radius: 0.9rem;
  border: 1px solid var(--line);
  color: var(--cream);
  font-weight: 500;
  font-size: 0.98rem;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.cta-secondary:hover {
  border-color: rgba(245, 240, 235, 0.35);
  background: rgba(245, 240, 235, 0.05);
}

/* ----- Sections ----- */

.section {
  padding: clamp(4rem, 10vh, 6.5rem) clamp(1.25rem, 4vw, 3rem);
  max-width: 1100px;
  margin: 0 auto;
}

.section h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-lede {
  margin: 0 0 2rem;
  color: var(--mist);
  max-width: 36rem;
  font-size: 1.05rem;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
  }
}

.steps li {
  padding: 1.35rem 0 0;
  border-top: 1px solid var(--line);
}

.step-num {
  display: block;
  margin-bottom: 0.85rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--coral);
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}

.steps h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

.steps p {
  margin: 0;
  color: var(--mist);
  font-size: 0.98rem;
}

.honest {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 80% at 10% 20%, rgba(255, 107, 90, 0.12), transparent 55%),
    var(--charcoal);
  max-width: none;
  padding-left: clamp(1.25rem, 8vw, 8rem);
  padding-right: clamp(1.25rem, 8vw, 8rem);
}

.text-link {
  color: var(--coral);
  font-weight: 600;
  border-bottom: 1px solid transparent;
}

.text-link:hover {
  border-bottom-color: var(--coral);
}

.close {
  text-align: left;
}

.close .cta-primary {
  margin-top: 0.5rem;
}

.site-footer {
  padding: 2.5rem clamp(1.25rem, 4vw, 3rem) 3rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.75rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.12em;
}

.footer-note {
  margin: 0;
  color: var(--mist);
  font-size: 0.9rem;
}

.footer-note code {
  font-size: 0.85em;
  color: var(--cream);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  margin-top: 0.5rem;
  color: var(--mist);
  font-size: 0.92rem;
}

.footer-nav a:hover {
  color: var(--cream);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(-1.2%, -0.8%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .brand-lockup,
  .hero-copy h1,
  .support,
  .cta-group {
    opacity: 1;
    transform: none;
  }
}
