:root {
  --ink: #1a2332;
  --ink-soft: #3d4a5c;
  --paper: #f7f4ef;
  --paper-2: #efeae2;
  --sky: #d9e6ef;
  --sky-deep: #b7cddc;
  --accent: #0d6e6e;
  --accent-hover: #0a5757;
  --line: rgba(26, 35, 50, 0.12);
  --font-display: "Syne", sans-serif;
  --font-body: "Source Sans 3", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.55;
  background:
    radial-gradient(1200px 700px at 85% -10%, var(--sky) 0%, transparent 55%),
    radial-gradient(900px 500px at -10% 30%, rgba(13, 110, 110, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, #fbfaf7 0%, var(--paper) 40%, var(--paper-2) 100%);
  min-height: 100vh;
}

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

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

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

.wrap {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: stretch;
  overflow: hidden;
  isolation: isolate;
}

.hero__plane {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(105deg, rgba(251, 250, 247, 0.92) 0%, rgba(251, 250, 247, 0.55) 42%, rgba(217, 230, 239, 0.35) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%231a2332' stroke-opacity='0.07'%3E%3Cpath d='M0 80h160M80 0v160'/%3E%3Ccircle cx='80' cy='80' r='36'/%3E%3Cpath d='M80 20l52 90H28z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: auto, 160px 160px;
  animation: plane-drift 28s linear infinite;
}

.hero__mesh {
  position: absolute;
  right: -8%;
  top: 8%;
  width: min(58vw, 640px);
  aspect-ratio: 1;
  z-index: -1;
  opacity: 0.55;
  pointer-events: none;
}

.hero__mesh svg {
  width: 100%;
  height: 100%;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(4rem, 12vh, 7rem) 0 clamp(3rem, 8vh, 5rem);
  max-width: 36rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 1.75rem;
  color: inherit;
  text-decoration: none;
  animation: rise 0.9s ease both;
}

.brand__mark {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  color: var(--ink);
}

.brand__word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 4.2vw, 2.75rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  animation: rise 0.9s ease both 0.12s;
}

.hero__lead {
  margin: 0 0 2rem;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 32rem;
  animation: rise 0.9s ease both 0.22s;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  animation: rise 0.9s ease both 0.32s;
}

.cta__primary {
  display: inline-block;
  padding: 0.85rem 1.35rem;
  background: var(--accent);
  color: #f7fbfb;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.2s ease, transform 0.2s ease;
}

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

.cta__secondary {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.1rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.cta__secondary:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.hero__scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  animation: rise 1s ease both 0.7s;
}

/* —— Sections —— */
section {
  padding: clamp(3.5rem, 9vw, 6rem) 0;
}

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

.section__eyebrow {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.section__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 18ch;
}

.section__text {
  margin: 0;
  color: var(--ink-soft);
  max-width: 38rem;
}

.services {
  display: grid;
  gap: 2.5rem 3rem;
  margin-top: 2.75rem;
}

@media (min-width: 720px) {
  .services {
    grid-template-columns: 1fr 1fr;
  }
}

.service h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.service p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.systems-list {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
  max-width: 40rem;
}

.systems-list li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}

.systems-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.systems-list strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}

.systems-list span {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.contact-block {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: flex-start;
}

.contact-block a {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  transition: color 0.2s ease;
}

.contact-block a:hover {
  color: var(--accent);
}

.contact-meta {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: baseline;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.site-footer a {
  color: var(--ink-soft);
}

.site-footer__brand {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
}

@keyframes rise {
  from {
    opacity: 0.01;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes plane-drift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 0 0, 160px 80px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .brand,
  .hero h1,
  .hero__lead,
  .cta,
  .hero__scroll {
    opacity: 1;
    transform: none;
  }
}
