:root {
  --paper: #f2f6f7;
  --paper-alt: #e4edef;
  --ink: #0a2540;
  --muted: #4a6074;
  --wave: #1d6fb8;
  --wave-2: #5fa8d3;
  --wave-3: #b9dbe8;
  --sun: #f0b43c;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--wave); text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 2px; }

.top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem clamp(1rem, 5vw, 4rem);
}
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  font: 700 1.35rem/1 var(--serif); letter-spacing: -.01em;
  color: var(--ink); text-decoration: none;
}
.brand svg { color: var(--wave); }
.top nav { display: flex; gap: 1.5rem; }
.top nav a { color: var(--ink); text-decoration: none; font-size: .975rem; }
.top nav a:hover { text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 3px; }

.hero {
  position: relative; overflow: hidden;
  padding: clamp(3rem, 9vw, 6rem) clamp(1rem, 5vw, 4rem) clamp(10rem, 18vw, 13rem);
}
h1 {
  margin: 0 0 1.5rem;
  font: 700 clamp(2.4rem, 7vw, 4.75rem)/1.05 var(--serif);
  letter-spacing: -.025em;
  }
.lead { max-width: 34rem; font-size: 1.2rem; color: var(--muted); margin: 0; }
.btn {
  display: inline-block; padding: .85rem 1.6rem;
  background: var(--ink); color: var(--paper);
  text-decoration: none; font-weight: 600; border-radius: 999px;
  transition: background .2s;
}
.btn:hover { background: var(--wave); }

.waves { position: absolute; left: 0; bottom: 0; width: 100%; height: clamp(8rem, 16vw, 12rem); display: block; }
.w { animation: drift 18s linear infinite; }
.w1 { fill: var(--wave); animation-duration: 22s; }
.w2 { fill: var(--wave-2); animation-duration: 30s; animation-direction: reverse; }
.w3 { fill: var(--wave-3); animation-duration: 40s; }
@keyframes drift { to { transform: translateX(-600px); } }

.block { padding: clamp(3rem, 7vw, 5.5rem) clamp(1rem, 5vw, 4rem); }
.alt { background: var(--paper-alt); }
h2 { margin: 0 0 1.5rem; font: 700 clamp(1.75rem, 4vw, 2.5rem)/1.15 var(--serif); letter-spacing: -.015em; }
.block > p { max-width: 40rem; margin: 0; }

.services, .facts { margin: 0; max-width: 56rem; }
.services > div, .facts > div {
  display: grid; grid-template-columns: minmax(10rem, 1fr) 2fr; gap: 1rem 3rem;
  padding: 1.25rem 0; border-top: 2px solid var(--wave-3);
}
.services > div:last-child, .facts > div:last-child { border-bottom: 2px solid var(--wave-3); }
.services dt, .facts dt { font: 700 1.25rem/1.3 var(--serif); }
.services dd, .facts dd { margin: 0; color: var(--muted); max-width: 34rem; }

.contact { display: flex; flex-wrap: wrap; gap: 2rem 5rem; font-size: 1.15rem; }
.contact p { margin: 0; }

footer {
  padding: 2rem clamp(1rem, 5vw, 4rem) 2.5rem;
  background: var(--ink); color: #c5d3e0; font-size: .875rem;
}
footer p { margin: 0 0 .5rem; max-width: 48rem; }

@media (max-width: 40rem) {
  .top nav { gap: 1rem; }
  .services > div, .facts > div { grid-template-columns: 1fr; gap: .35rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .w { animation: none; }
}
