:root {
  --paper: #f6f5f2;
  --ink: #121212;
  --ink-muted: #3a3a3a;
  --teal: #0b6e6a;
  --teal-hover: #095954;
  --border: rgba(18, 18, 18, 0.12);
  --font-display: "Syne", sans-serif;
  --font-body: "Manrope", sans-serif;
  --space: clamp(1.25rem, 3vw, 2.5rem);
  --max: 68rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.2s ease, transform 0.2s ease;
}

a:hover {
  color: var(--teal-hover);
}

a:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

/* ——— Hero ——— */

.hero {
  display: grid;
  min-height: 100svh;
  grid-template-rows: minmax(42vh, 1fr) auto;
}

.hero__brand {
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 6vw, 4rem);
}

.hero__logo {
  width: min(100%, 28rem);
  height: auto;
}

.hero__copy {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 3.5rem) var(--space) clamp(2.5rem, 6vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: var(--max);
  margin-inline: auto;
  width: 100%;
}

.hero__mesh {
  position: absolute;
  inset: -20% -10% -10%;
  pointer-events: none;
  background-image:
    radial-gradient(
      ellipse 70% 55% at 85% 20%,
      rgba(11, 110, 106, 0.1),
      transparent 55%
    ),
    radial-gradient(
      ellipse 50% 40% at 10% 90%,
      rgba(18, 18, 18, 0.04),
      transparent 50%
    ),
    linear-gradient(rgba(18, 18, 18, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 18, 18, 0.045) 1px, transparent 1px);
  background-size:
    100% 100%,
    100% 100%,
    48px 48px,
    48px 48px;
  animation: mesh-drift 28s ease-in-out infinite alternate;
}

.hero__headline,
.hero__support,
.hero__cta {
  position: relative;
  z-index: 1;
}

.hero__headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 4.2vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.85rem;
  max-width: 18ch;
  animation: rise-in 0.7s ease both;
}

.hero__support {
  margin: 0 0 1.75rem;
  color: var(--ink-muted);
  max-width: 38rem;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  animation: rise-in 0.7s ease 0.12s both;
}

.hero__cta {
  margin: 0;
  animation: rise-in 0.7s ease 0.22s both;
}

@media (min-width: 900px) {
  .hero {
    grid-template-rows: none;
    grid-template-columns: 1.05fr 0.95fr;
  }

  .hero__brand {
    min-height: 100svh;
  }

  .hero__copy {
    min-height: 100svh;
    padding-inline: clamp(2rem, 4vw, 3.5rem);
  }
}

/* ——— CTA ——— */

.cta {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--paper);
  background: var(--ink);
  padding: 0.85rem 1.35rem;
  text-decoration: none;
  border: 1px solid var(--ink);
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.cta:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--paper);
  transform: translateY(-2px);
}

.cta:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

/* ——— Sections ——— */

.section {
  padding: clamp(3rem, 8vw, 5.5rem) var(--space);
  max-width: var(--max);
  margin-inline: auto;
}

.section + .section {
  border-top: 1px solid var(--border);
}

.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
}

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

.how {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.75rem 2.5rem;
}

@media (min-width: 720px) {
  .how {
    grid-template-columns: repeat(3, 1fr);
  }
}

.how__heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
  letter-spacing: -0.01em;
}

.how__text {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.98rem;
}

.contact__email {
  margin: 1.25rem 0 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
}

.contact__email a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--teal);
}

.contact__email a:hover {
  color: var(--teal);
}

.footer {
  padding: 1.5rem var(--space) 2.5rem;
  max-width: var(--max);
  margin-inline: auto;
  border-top: 1px solid var(--border);
  color: var(--ink-muted);
  font-size: 0.875rem;
}

.footer p {
  margin: 0;
}

/* ——— Motion ——— */

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

@keyframes mesh-drift {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(-1.5%, 1.5%);
  }
}

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

  .hero__headline,
  .hero__support,
  .hero__cta,
  .hero__mesh {
    animation: none;
  }

  .cta:hover {
    transform: none;
  }
}
