:root {
  --ink: #e8f2f4;
  --ink-muted: #9bb8c2;
  --brand: #022e46;
  --brand-mid: #0a4a66;
  --brand-deep: #011c2b;
  --accent: #5ec4c8;
  --accent-soft: rgba(94, 196, 200, 0.18);
  --font-brand: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --max: 68rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--brand-deep);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #8fdcdf;
}

/* —— Hero: one composition —— */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100svh;
  padding: calc(var(--pad) + 0.5rem) var(--pad) var(--pad);
  overflow: hidden;
}

.hero__atmosphere {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 90% 70% at 75% 20%, rgba(94, 196, 200, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 50% at 10% 90%, rgba(10, 74, 102, 0.9), transparent 50%),
    linear-gradient(165deg, var(--brand-mid) 0%, var(--brand) 42%, var(--brand-deep) 100%);
  animation: atmosphere-shift 18s ease-in-out infinite alternate;
}

.hero__atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.07;
  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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero__copy {
  position: relative;
  z-index: 1;
  max-width: 34rem;
  padding-bottom: 0.5rem;
}

.brand {
  margin: 0 0 1.1rem;
  font-family: var(--font-brand);
  font-size: clamp(3.4rem, 12vw, 6.5rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.045em;
  color: var(--ink);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-brand);
  font-size: clamp(1.55rem, 4.2vw, 2.35rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.lede {
  margin: 0 0 1.75rem;
  max-width: 28rem;
  color: var(--ink-muted);
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.16s both;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.24s both;
}

.cta__primary,
.cta__secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.25rem;
  border-radius: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.cta__primary {
  background: var(--ink);
  color: var(--brand-deep);
}

.cta__primary:hover {
  background: #fff;
  color: var(--brand-deep);
  transform: translateY(-1px);
}

.cta__secondary {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px rgba(232, 242, 244, 0.45);
}

.cta__secondary:hover {
  background: var(--accent-soft);
  color: var(--ink);
  transform: translateY(-1px);
}

.hero__visual {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: var(--pad);
  pointer-events: none;
}

.hero__icon {
  width: min(42vw, 14rem);
  max-width: none;
  opacity: 0.85;
  mix-blend-mode: normal;
  filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.3));
  animation: float-in 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both,
    bob 7s ease-in-out 1.2s infinite;
}

/* —— Feature sections: one job each —— */
.feature {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3.5rem, 10vw, 6.5rem) var(--pad);
}

.feature--alt {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(10, 74, 102, 0.35) 20%,
    rgba(10, 74, 102, 0.35) 80%,
    transparent 100%
  );
  max-width: none;
  padding-left: max(var(--pad), calc((100% - var(--max)) / 2 + var(--pad)));
  padding-right: max(var(--pad), calc((100% - var(--max)) / 2 + var(--pad)));
}

.feature h2 {
  margin: 0 0 0.75rem;
  max-width: 22ch;
  font-family: var(--font-brand);
  font-size: clamp(1.65rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.feature p {
  margin: 0;
  max-width: 36rem;
  color: var(--ink-muted);
  font-size: 1.0625rem;
}

.feature.is-visible h2,
.feature.is-visible p {
  animation: rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.feature.is-visible p {
  animation-delay: 0.08s;
}

.site-footer {
  padding: 2.5rem var(--pad) 3rem;
  border-top: 1px solid rgba(155, 184, 194, 0.18);
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.site-footer p {
  margin: 0 0 0.5rem;
  max-width: var(--max);
  margin-inline: auto;
}

.brand-inline {
  font-family: var(--font-brand);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.site-footer__meta {
  opacity: 0.85;
}

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

@keyframes float-in {
  from {
    opacity: 0;
    transform: translate(2rem, 1.5rem) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.65rem);
  }
}

@keyframes atmosphere-shift {
  from {
    filter: hue-rotate(0deg);
  }
  to {
    filter: hue-rotate(8deg);
  }
}

@media (min-width: 860px) {
  .hero {
    justify-content: center;
    padding-block: var(--pad);
  }

  .hero__copy {
    max-width: 36rem;
  }

  .hero__icon {
    width: min(28vw, 16rem);
    margin-left: 0;
    opacity: 0.95;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__atmosphere,
  .brand,
  .hero h1,
  .lede,
  .cta,
  .hero__icon,
  .feature.is-visible h2,
  .feature.is-visible p {
    animation: none !important;
  }
}
