:root {
  --slate: #6b7f99;
  --slate-deep: #4a5d75;
  --sage: #7a8f6e;
  --sage-soft: #9aab8f;
  --mist: #a8a4b0;
  --ink: #3d4450;
  --ink-soft: #5c6570;
  --paper: #f4f5f7;
  --paper-warm: #eef0f3;
  --line: rgba(61, 68, 80, 0.12);
  --white: #ffffff;

  --font-display: "Syne", sans-serif;
  --font-body: "Outfit", sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3.5rem;
  --space-xl: 6rem;
  --space-2xl: 9rem;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(120% 80% at 10% -10%, rgba(107, 127, 153, 0.18), transparent 55%),
    radial-gradient(90% 70% at 95% 5%, rgba(122, 143, 110, 0.16), transparent 50%),
    radial-gradient(70% 50% at 70% 100%, rgba(168, 164, 176, 0.2), transparent 55%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-warm) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.page-glow {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background:
    linear-gradient(
      125deg,
      transparent 40%,
      rgba(255, 255, 255, 0.35) 50%,
      transparent 60%
    );
  opacity: 0.4;
  mix-blend-mode: soft-light;
  z-index: 0;
}

/* ——— Header ——— */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  background: rgba(244, 245, 247, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease-out), background 0.4s var(--ease-out);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(244, 245, 247, 0.9);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.wordmark-mark {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
}

.site-nav a {
  font-size: 0.9rem;
  font-weight: 450;
  color: var(--ink-soft);
  transition: color 0.25s var(--ease-out);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--slate-deep);
}

.nav-cta {
  color: var(--slate-deep) !important;
  font-weight: 500;
}

/* ——— Hero ——— */

.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 2rem) clamp(1.25rem, 4vw, 3rem) var(--space-xl);
  overflow: hidden;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  opacity: 0.55;
  animation: drift 18s var(--ease-out) infinite alternate;
}

.blob-blue {
  width: min(55vw, 480px);
  height: min(55vw, 480px);
  background: var(--slate);
  top: 8%;
  left: 5%;
  animation-delay: 0s;
}

.blob-green {
  width: min(45vw, 380px);
  height: min(45vw, 380px);
  background: var(--sage);
  top: 20%;
  right: 8%;
  animation-delay: -4s;
  animation-duration: 22s;
}

.blob-grey {
  width: min(40vw, 320px);
  height: min(40vw, 320px);
  background: var(--mist);
  bottom: 12%;
  left: 35%;
  animation-delay: -8s;
  animation-duration: 20s;
}

@keyframes drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(4%, 6%) scale(1.08);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 42rem;
}

.hero-logo {
  width: min(58vw, 280px);
  height: auto;
  margin-bottom: var(--space-sm);
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  animation: rise-in 1.1s var(--ease-out) 0.15s forwards;
  filter: drop-shadow(0 20px 40px rgba(74, 93, 117, 0.1));
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 7vw, 4.25rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: var(--space-sm);
  opacity: 0;
  transform: translateY(20px);
  animation: rise-in 0.9s var(--ease-out) 0.35s forwards;
}

.hero-lede {
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  font-weight: 300;
  color: var(--ink-soft);
  max-width: 28rem;
  margin-bottom: var(--space-md);
  opacity: 0;
  transform: translateY(16px);
  animation: rise-in 0.9s var(--ease-out) 0.5s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  opacity: 0;
  transform: translateY(16px);
  animation: rise-in 0.9s var(--ease-out) 0.65s forwards;
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ——— Buttons ——— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 0.35rem;
  transition:
    background 0.3s var(--ease-out),
    color 0.3s var(--ease-out),
    border-color 0.3s var(--ease-out),
    transform 0.3s var(--ease-out);
}

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

.btn-primary {
  background: var(--slate-deep);
  color: var(--white);
  border: 1px solid var(--slate-deep);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--slate);
  border-color: var(--slate);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--line);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  color: var(--slate-deep);
  border-color: var(--slate);
  background: rgba(255, 255, 255, 0.45);
}

/* ——— Sections ——— */

.section {
  position: relative;
  z-index: 1;
  max-width: 52rem;
  margin: 0 auto;
  padding: var(--space-xl) clamp(1.25rem, 4vw, 3rem);
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: var(--space-sm);
}

.section h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: var(--space-md);
}

.section-copy {
  font-size: 1.125rem;
  font-weight: 300;
  color: var(--ink-soft);
  max-width: 36rem;
}

.approach {
  border-top: 1px solid var(--line);
}

.approach h2 {
  max-width: 18ch;
}

/* ——— Focus list ——— */

.focus {
  max-width: 52rem;
}

.focus-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  margin-top: var(--space-lg);
  border-top: 1px solid var(--line);
}

.focus-list li {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
}

.focus-list li.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.focus-index {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate);
  padding-top: 0.35rem;
}

.focus-list h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.focus-list p {
  font-weight: 300;
  color: var(--ink-soft);
  max-width: 34rem;
}

/* ——— Contact ——— */

.contact {
  text-align: left;
  padding-bottom: var(--space-2xl);
}

.contact .btn {
  margin-top: var(--space-md);
}

/* ——— Footer ——— */

.site-footer {
  position: relative;
  z-index: 1;
  padding: var(--space-md) clamp(1.25rem, 4vw, 3rem) var(--space-lg);
  border-top: 1px solid var(--line);
  text-align: center;
}

.site-footer p {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 300;
}

/* ——— Reveal helpers ——— */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ——— Responsive ——— */

@media (max-width: 640px) {
  .site-nav a:not(.nav-cta) {
    display: none;
  }

  .hero {
    padding-top: calc(var(--header-h) + 1.5rem);
    padding-bottom: var(--space-lg);
  }

  .hero-logo {
    width: min(72vw, 220px);
  }

  .focus-list li {
    grid-template-columns: 2.5rem 1fr;
    gap: var(--space-sm);
  }

  .section {
    padding-top: var(--space-lg);
    padding-bottom: var(--space-lg);
  }

  .contact {
    padding-bottom: var(--space-xl);
  }
}

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

  .blob,
  .hero-logo,
  .hero-brand,
  .hero-lede,
  .hero-actions {
    animation: none !important;
    opacity: 1;
    transform: none;
  }

  .focus-list li,
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
