:root {
  --board: #0E4A3A;
  --board-deep: #0A3D30;
  --trace: #3E8A6C;
  --gold: #D4A72C;
  --gold-hover: #E2B845;
  --ink: #1E2B27;
  --muted: #56655F;
  --rule: #D5DDD8;
  --paper: #FFFFFF;
  --surface: #EEF2EF;
  --on-board: #F3F7F4;
  --on-board-muted: #B9D0C4;

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7.5rem);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0;
  font-stretch: 112%;
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h2 { font-size: clamp(1.875rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.1875rem; line-height: 1.3; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; }

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

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--gold);
  color: var(--ink);
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip-link:focus { top: 1rem; }

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 4px;
  font: inherit;
  font-weight: 650;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.btn-small {
  min-height: 2.5rem;
  padding: 0.4rem 1rem;
  font-size: 0.9375rem;
}

.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-hover); }

.btn-green { background: var(--board); color: var(--on-board); }
.btn-green:hover { background: var(--board-deep); }

.btn-ghost-light { border-color: var(--on-board-muted); color: var(--on-board); }
.btn-ghost-light:hover { border-color: var(--on-board); }

.btn-ghost-dark { border-color: var(--rule); color: var(--ink); }
.btn-ghost-dark:hover { border-color: var(--ink); }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 750;
  font-stretch: 115%;
  font-size: 1.0625rem;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark { width: 1.75rem; height: 1.75rem; flex: none; }

.site-nav {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
  font-size: 0.9375rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 0.25rem 0;
}
.site-nav a:hover { color: var(--ink); }

@media (max-width: 52rem) {
  .site-nav { display: none; }
  .header-inner .btn { margin-left: auto; }
}

@media (max-width: 26rem) {
  .brand span { font-size: 0.9375rem; }
  .header-inner .btn { padding: 0.4rem 0.75rem; font-size: 0.875rem; }
}

/* Hero */

.hero {
  background: var(--board);
  color: var(--on-board);
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.375rem, 5.2vw, 4rem);
  font-stretch: 108%;
  line-height: 1.04;
  max-width: 16ch;
}

.lede {
  margin: 1.5rem 0 2.25rem;
  max-width: 34rem;
  font-size: 1.1875rem;
  color: var(--on-board-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-figure {
  margin: 0;
  position: relative;
}

.traces {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.trace-lines path { stroke: var(--trace); }
.trace-ends circle { fill: var(--board); stroke: var(--trace); stroke-width: 3; }
.pad-ring { fill: var(--gold); }
.pad-hole { fill: var(--board); }

.trace-labels text {
  fill: var(--on-board-muted);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 500;
}

.hero-figure figcaption {
  position: absolute;
  right: 0;
  top: calc(50% + 12%);
  width: 20%;
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 650;
  line-height: 1.25;
  color: var(--gold);
}

@media (max-width: 52rem) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-figure { max-width: 30rem; }
}

/* The one orchestrated moment: traces draw in toward the pad on load */

@media (prefers-reduced-motion: no-preference) {
  .trace-lines path {
    stroke-dasharray: 520;
    stroke-dashoffset: 520;
    animation: draw 1.1s cubic-bezier(0.6, 0, 0.3, 1) forwards;
    animation-delay: calc(0.25s + var(--i) * 0.07s);
  }
  .pad {
    transform-origin: 392px 210px;
    transform: scale(0.4);
    opacity: 0;
    animation: pad-in 0.35s ease-out 1.35s forwards;
  }
  .hero-figure figcaption {
    opacity: 0;
    animation: fade 0.4s ease-out 1.6s forwards;
  }
}

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pad-in { to { transform: scale(1); opacity: 1; } }
@keyframes fade { to { opacity: 1; } }

/* Split layout: heading column + content column */

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 6rem);
}

.split-aside p {
  margin-top: 1.25rem;
  color: var(--muted);
  max-width: 28rem;
}

@media (min-width: 52.01rem) {
  .services .split-aside {
    position: sticky;
    top: 7rem;
    align-self: start;
  }
}

@media (max-width: 52rem) {
  .split { grid-template-columns: 1fr; }
}

/* Services */

.services { padding: var(--section) 0; }

.service-list { margin: 0; }

.service-list > div {
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule);
}
.service-list > div:last-child { border-bottom: 1px solid var(--rule); }

.service-list dt {
  font-weight: 700;
  font-stretch: 108%;
  font-size: 1.1875rem;
  line-height: 1.3;
}

.service-list dd {
  margin: 0.375rem 0 0;
  color: var(--muted);
  max-width: 38rem;
}

/* Process: numbered pads joined by a trace, because it really is a sequence */

.process {
  background: var(--surface);
  padding: var(--section) 0;
}

.steps {
  list-style: none;
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  right: calc((100% - 6rem) / 4 - 1.25rem);
  height: 4px;
  margin-top: -2px;
  background: var(--trace);
  opacity: 0.45;
}

.steps li { position: relative; }

.step-pad {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--board);
  color: var(--gold);
  font-weight: 750;
  font-size: 1rem;
  box-shadow: 0 0 0 6px var(--surface);
  margin-bottom: 1.5rem;
}

.steps h3 { margin-bottom: 0.5rem; }
.steps p { color: var(--muted); font-size: 1.0625rem; }

@media (max-width: 52rem) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before {
    top: 1.25rem;
    bottom: 1.25rem;
    left: 1.25rem;
    right: auto;
    width: 4px;
    height: auto;
    margin: 0 0 0 -2px;
  }
  .steps li {
    padding-left: 4rem;
    padding-bottom: 2rem;
  }
  .steps li:last-child { padding-bottom: 0; }
  .step-pad {
    position: absolute;
    left: 0;
    top: -0.35rem;
  }
}

/* About */

.about { padding: var(--section) 0; }

.about-body { max-width: 40rem; }
.about-body > p:first-child {
  font-size: 1.3125rem;
  line-height: 1.5;
  font-weight: 500;
}

.expect {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.expect li {
  position: relative;
  padding: 0.625rem 0 0.625rem 1.75rem;
  border-top: 1px solid var(--rule);
}

.expect li::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 1.15rem;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: var(--gold);
}

/* Contact */

.contact {
  background: var(--surface);
  padding: var(--section) 0;
}

.contact-details {
  margin: 2rem 0 0;
  display: grid;
  gap: 1rem;
}

.contact-details dt {
  font-size: 0.9375rem;
  color: var(--muted);
}

.contact-details dd {
  margin: 0;
  font-weight: 600;
}

.contact-details a { text-decoration-color: var(--trace); text-underline-offset: 3px; }

.contact-form {
  background: var(--paper);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 6px;
  border: 1px solid var(--rule);
  align-self: start;
}

.field { margin-bottom: 1.25rem; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 36rem) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.375rem;
}

.optional { font-weight: 400; color: var(--muted); }

input, textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #AFBCB5;
  border-radius: 4px;
  padding: 0.7rem 0.85rem;
}

input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--board);
  outline-offset: 0;
  border-color: var(--board);
}

textarea { resize: vertical; min-height: 8rem; }

.hp { position: absolute; left: -9999px; }

.form-status {
  margin: 1rem 0 0;
  font-size: 1rem;
  min-height: 1.5em;
}
.form-status.is-error { color: #A12D22; }
.form-status.is-success { color: var(--board); font-weight: 600; }

/* Footer */

.site-footer {
  background: var(--board);
  color: var(--on-board-muted);
  padding: 3rem 0;
  font-size: 0.9375rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 2rem;
}

.brand-light { color: var(--on-board); }
.footer-inner p { margin: 0; }
.footer-inner .copyright { margin-left: auto; }

@media (max-width: 40rem) {
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-inner .copyright { margin-left: 0; }
}
