:root {
  --ink: #071914;
  --ink-soft: #243a33;
  --foam: #eef6f2;
  --mist: #d5e8df;
  --sea: #0f6e56;
  --sea-deep: #0b1f18;
  --sea-mid: #134f3d;
  --sand: #c4a574;
  --line: rgba(15, 110, 86, 0.18);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --shell: min(1120px, calc(100% - 2.5rem));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(15, 110, 86, 0.08), transparent 60%),
    linear-gradient(180deg, #f7fbf9 0%, #eef3f0 100%);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--sea);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: white;
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.shell.narrow {
  width: min(720px, calc(100% - 2.5rem));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(247, 251, 249, 0.78);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, background 200ms ease, box-shadow 200ms ease;
}

.site-header.is-elevated {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px rgba(7, 25, 20, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 30%, #7dceb5, transparent 55%),
    linear-gradient(145deg, var(--sea), var(--sea-deep));
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.25);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.nav {
  display: none;
  align-items: center;
  gap: 1.35rem;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a:hover {
  color: var(--sea);
}

.nav-cta {
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: var(--sea-deep);
  color: #f4fbf8 !important;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 1.25rem;
  background: var(--ink);
  margin-inline: auto;
}

.mobile-nav {
  display: grid;
  gap: 0.75rem;
  padding: 0.5rem 1.25rem 1.25rem;
  background: rgba(247, 251, 249, 0.98);
  border-bottom: 1px solid var(--line);
}

.mobile-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.hero {
  position: relative;
  min-height: min(100vh, 920px);
  display: grid;
  align-items: end;
  color: #f4fbf8;
  overflow: hidden;
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 25, 20, 0.15) 0%, rgba(7, 25, 20, 0.55) 48%, rgba(7, 25, 20, 0.88) 100%);
  z-index: 1;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(215, 239, 230, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(215, 239, 230, 0.35) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, #000 20%, transparent 85%);
  animation: gridDrift 28s linear infinite;
}

.hero-coast {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wave-a {
  animation: waveShift 18s ease-in-out infinite alternate;
}

.wave-b {
  animation: waveShift 22s ease-in-out infinite alternate-reverse;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 7rem 0 4.5rem;
  max-width: 820px;
  margin-left: max(calc((100% - min(1120px, calc(100% - 2.5rem))) / 2), 1.25rem);
  margin-right: auto;
  width: min(820px, calc(100% - 2.5rem));
}

.brand-lockup {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1;
  animation: rise 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 4.2vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 14ch;
  animation: rise 900ms cubic-bezier(0.22, 1, 0.36, 1) 120ms both;
}

.lede {
  margin: 1.35rem 0 0;
  max-width: 38rem;
  color: #d5e8df;
  font-size: 1.08rem;
  animation: rise 900ms cubic-bezier(0.22, 1, 0.36, 1) 220ms both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
  animation: rise 900ms cubic-bezier(0.22, 1, 0.36, 1) 320ms both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: #f4fbf8;
  color: var(--sea-deep);
}

.btn-ghost {
  background: transparent;
  color: #f4fbf8;
  box-shadow: inset 0 0 0 1.5px rgba(244, 251, 248, 0.45);
}

.section {
  padding: 5.5rem 0;
}

.eyebrow {
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--sea);
}

.section h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 650;
}

.section-lede {
  margin: 1rem 0 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.practice-lines {
  display: grid;
  gap: 1.75rem;
  margin-top: 2.75rem;
}

.practice-lines article {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.practice-lines h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 650;
}

.practice-lines p {
  margin: 0;
  color: var(--ink-soft);
}

.path {
  background: linear-gradient(180deg, rgba(15, 110, 86, 0.06), transparent 70%);
}

.path-rail {
  list-style: none;
  margin: 2.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

.path-rail li {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1rem;
  align-items: start;
}

.path-rail .step {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--sea);
  font-weight: 650;
}

.path-rail h3 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
}

.path-rail p {
  margin: 0;
  color: var(--ink-soft);
}

.limits {
  background: var(--sea-deep);
  color: #eef6f2;
}

.limits .eyebrow {
  color: #8fd0b8;
}

.limits .section-lede {
  color: #c5d9d0;
}

.limits-grid {
  display: grid;
  gap: 2.5rem;
}

.stat-list {
  margin: 0;
  display: grid;
  gap: 1.25rem;
}

.stat-list > div {
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(143, 208, 184, 0.25);
}

.stat-list dt {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 650;
  letter-spacing: -0.03em;
}

.stat-list dd {
  margin: 0.25rem 0 0;
  color: #b7d0c4;
}

.text-link {
  display: inline-block;
  margin-top: 1.25rem;
  color: #d7efe6;
  font-weight: 650;
}

.proof-layout {
  display: grid;
  gap: 2rem;
}

.case {
  margin: 0;
  padding: 1.75rem 0 0;
  border-top: 1px solid var(--line);
}

.case-label {
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--sea);
}

.case h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.8rem;
}

.case p {
  margin: 0 0 0.85rem;
  color: var(--ink-soft);
}

.case-note {
  font-size: 0.92rem;
  color: #5a7268 !important;
}

.contact-panel {
  max-width: 720px;
}

.contact-actions {
  margin-top: 1.75rem;
}

.fineprint {
  margin: 1rem 0 0;
  color: #5a7268;
  font-size: 0.9rem;
}

.fineprint code {
  font-size: 0.85em;
}

.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--line);
  background: #e7f0eb;
}

.footer-inner {
  display: grid;
  gap: 1rem;
}

.site-footer p {
  margin: 0.35rem 0 0;
  color: #5a7268;
  font-size: 0.95rem;
}

.footer-meta {
  font-size: 0.88rem !important;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes waveShift {
  from {
    transform: translateX(-18px);
  }
  to {
    transform: translateX(18px);
  }
}

@keyframes gridDrift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 72px 36px, 36px 72px;
  }
}

@media (min-width: 800px) {
  .nav {
    display: flex;
  }

  .nav-toggle,
  .mobile-nav {
    display: none !important;
  }

  .practice-lines {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .practice-lines article {
    padding-top: 0;
    border-top: 0;
    border-left: 1px solid var(--line);
    padding-left: 1.5rem;
  }

  .practice-lines article:first-child {
    border-left: 0;
    padding-left: 0;
  }

  .path-rail {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }

  .path-rail li {
    grid-template-columns: 1fr;
  }

  .limits-grid,
  .proof-layout,
  .footer-inner {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
    gap: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-grid,
  .wave-a,
  .wave-b,
  .brand-lockup,
  .hero h1,
  .lede,
  .hero-actions {
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
