:root {
  --ink: #0f2a3a;
  --ink-soft: #3a5566;
  --teal: #1a7a72;
  --teal-deep: #0f524c;
  --sand: #e8f0ee;
  --mist: #f4f8f7;
  --line: rgba(15, 42, 58, 0.12);
  --accent: #c47a2c;
  --white: #ffffff;
  --display: "Fraunces", Georgia, serif;
  --body: "Outfit", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--mist);
  line-height: 1.55;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem clamp(1.25rem, 4vw, 3.5rem) clamp(2.5rem, 6vw, 4.5rem);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 70% 30%, rgba(26, 122, 114, 0.45), transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(196, 122, 44, 0.25), transparent 50%),
    linear-gradient(165deg, #0a1c28 0%, #123848 42%, #0f524c 100%);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 38px,
      rgba(255,255,255,0.02) 38px,
      rgba(255,255,255,0.02) 39px
    );
  opacity: 0.9;
  animation: drift 28s linear infinite;
}
@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(-39px); }
}

.hero-visual {
  position: absolute;
  right: -4%;
  top: 8%;
  width: min(58vw, 640px);
  height: auto;
  opacity: 0.55;
  z-index: -1;
  animation: floaty 9s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-18px) rotate(1deg); }
}

.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem clamp(1.25rem, 4vw, 3.5rem);
  z-index: 2;
}
.nav-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.85;
}
.nav-links a:hover { opacity: 1; }
@media (max-width: 640px) {
  .nav-links { display: none; }
}

.hero-brand {
  font-family: var(--display);
  font-size: clamp(3.2rem, 11vw, 7.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin-bottom: 1.25rem;
  animation: rise 0.9s ease-out both;
}
.hero-headline {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  font-weight: 500;
  max-width: 22ch;
  line-height: 1.25;
  margin-bottom: 0.85rem;
  animation: rise 0.9s 0.12s ease-out both;
}
.hero-support {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  max-width: 38ch;
  opacity: 0.88;
  margin-bottom: 1.75rem;
  animation: rise 0.9s 0.22s ease-out both;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  animation: rise 0.9s 0.32s ease-out both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 4px;
  border: 1.5px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-primary:hover { background: #d48938; }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.45);
}
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-ink {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.btn-ink:hover { background: #1a3d52; }
.btn-teal {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.btn-teal:hover { background: var(--teal-deep); }

/* —— Cascade stages —— */
.cascade {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5.5rem) clamp(1.25rem, 4vw, 2rem);
}
.cascade-intro {
  margin-bottom: 3rem;
  max-width: 42ch;
}
.cascade-intro h2 {
  font-family: var(--display);
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.cascade-intro p { color: var(--ink-soft); }

.stage {
  position: relative;
  padding: 2.25rem 0 2.25rem 1.5rem;
  border-left: 2px solid var(--line);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.stage.visible {
  opacity: 1;
  transform: translateY(0);
}
.stage::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 2.55rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--teal);
  border: 2px solid var(--mist);
}
.stage-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.4rem;
}
.stage h3 {
  font-family: var(--display);
  font-size: 1.55rem;
  margin-bottom: 0.5rem;
}
.stage p {
  color: var(--ink-soft);
  max-width: 48ch;
  margin-bottom: 1rem;
}
.stage .cta-row { margin-top: 0.25rem; }

/* —— About / disclaimer —— */
.about {
  background: var(--sand);
  padding: clamp(3rem, 7vw, 4.5rem) clamp(1.25rem, 4vw, 3.5rem);
}
.about-inner {
  max-width: 720px;
  margin: 0 auto;
}
.about h2 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1rem;
}
.about p {
  color: var(--ink-soft);
  margin-bottom: 1rem;
  font-size: 0.98rem;
}
.about .credit {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--ink);
}
.about a {
  color: var(--teal-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

footer {
  padding: 1.5rem clamp(1.25rem, 4vw, 3.5rem) 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  background: var(--mist);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-links a:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .hero-bg::after,
  .hero-visual,
  .hero-brand,
  .hero-headline,
  .hero-support,
  .cta-row {
    animation: none;
  }
  .stage {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
