@font-face {
  font-family: "Familjen Grotesk";
  src: url("/fonts/familjen-grotesk.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0f212a;
  --ink-soft: #1a3541;
  --snow: #f3f6f6;
  --mist: #dce8ea;
  --lake: #1d6b78;
  --text: #17262d;
  --muted: #4b5f67;
  --line: #c3d3d6;
  --gold: #e0a526;
  --on-dark: #e8f0f1;
  --on-dark-muted: #a9c0c5;

  --display: "Familjen Grotesk", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Source Serif 4", Georgia, "Times New Roman", serif;

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --max: 72rem;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--snow);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.62;
  font-optical-sizing: auto;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
}

p { margin: 0; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 600;
  padding: 0.6rem 1rem;
  z-index: 10;
}
.skip:focus { top: 0.75rem; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  background: var(--ink);
  color: var(--on-dark);
  min-height: min(92vh, 50rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.waves {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 56%;
  z-index: -1;
  display: block;
}

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: #fff;
}
.brand svg { width: 2rem; height: 1.4rem; flex: none; }

.nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.75rem; }
.nav a {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  color: var(--on-dark-muted);
  padding-block: 0.25rem;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: #fff; border-bottom-color: var(--gold); }

.hero-copy {
  padding-block: clamp(3rem, 9vh, 6.5rem) clamp(14rem, 34vh, 22rem);
}

.hero h1 {
  font-size: clamp(2.5rem, 6.4vw, 5.1rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 15ch;
  color: #fff;
}

.lead {
  margin-top: 1.6rem;
  max-width: 34rem;
  font-size: clamp(1.1rem, 1.7vw, 1.3rem);
  color: var(--on-dark);
}

.actions { margin-top: 2.2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }

.button {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  background: var(--gold);
  color: var(--ink);
  padding: 0.85rem 1.5rem;
  border-radius: 3px;
}
.button:hover { background: #f0b83a; }

.text-link {
  font-family: var(--display);
  font-weight: 500;
  color: var(--on-dark);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
  text-decoration-color: var(--on-dark-muted);
}
.text-link:hover { text-decoration-color: var(--gold); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }

.split {
  display: grid;
  gap: 2.5rem clamp(2rem, 6vw, 6rem);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 52rem) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); }
  .split > .sticky { position: sticky; top: 2rem; align-self: start; }
}

h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }

.section-intro { margin-top: 1.1rem; color: var(--muted); max-width: 26rem; }

.services { margin: 0; padding: 0; list-style: none; }
.services li {
  padding-block: 1.7rem;
  border-top: 1px solid var(--line);
}
.services li:last-child { border-bottom: 1px solid var(--line); }
.services h3 { font-size: 1.55rem; margin-bottom: 0.55rem; }
.services p { color: var(--muted); max-width: 38rem; }

/* How we work */
.work { background: var(--mist); }
.terms {
  margin: 3rem 0 0;
  display: grid;
  gap: 0 clamp(2rem, 6vw, 5rem);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 46rem) { .terms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.terms div { border-top: 2px solid var(--ink); padding-block: 1.1rem 2.2rem; }
.terms dt { font-family: var(--display); font-weight: 600; font-size: 1.35rem; margin-bottom: 0.5rem; }
.terms dd { margin: 0; color: var(--text); max-width: 30rem; }

/* Contact */
.contact { background: var(--ink); color: var(--on-dark); }
.contact h2 { color: #fff; }
.address {
  margin-top: 2rem;
  font-style: normal;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  line-height: 1.25;
  color: #fff;
}
.phone {
  margin-top: 1.25rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  line-height: 1.25;
}
.phone a { color: var(--gold); text-decoration: none; }
.phone a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.contact .text-link { display: inline-block; margin-top: 1.75rem; }

.footer { background: var(--ink); color: var(--on-dark-muted); padding-block: 1.5rem 2.25rem; font-size: 0.95rem; border-top: 1px solid var(--ink-soft); }
