@font-face {
  font-family: Fraunces;
  src: url("../assets/fonts/Fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Sora;
  src: url("../assets/fonts/Sora.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f3eee4;
  --paper-deep: #e7e0d2;
  --card: #fbf7f0;
  --ink: #1c1915;
  --ink-soft: #3c3832;
  --muted: #4a453e;
  --line: #ddd4c6;
  --pine: #143528;
  --pine-2: #1e4a38;
  --copper: #b55233;
  --copper-deep: #8c3d24;
  --tint: #e4efe8;
  --cream: #f6f1e7;
  --serif: Fraunces, "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  --sans: Sora, "Avenir Next", "Segoe UI", sans-serif;
  --header: 78px;
  --shadow: 0 24px 60px rgba(28, 25, 21, 0.08);
  --radius: 22px;
}

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

html { scroll-padding-top: calc(var(--header) + 16px); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1000px 480px at 100% -8%, rgba(181, 82, 51, 0.09), transparent 55%),
    radial-gradient(820px 460px at -12% 12%, rgba(20, 53, 40, 0.07), transparent 50%),
    var(--paper);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  color-scheme: light;
}

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

a { color: var(--pine); }

a:hover { color: var(--copper-deep); }

p, li, dd { text-wrap: pretty; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin: 0;
  font-variation-settings: "opsz" 96, "SOFT" 24, "WONK" 1;
}

h1 {
  font-size: clamp(2.7rem, 5.6vw, 4.8rem);
  font-variation-settings: "opsz" 144, "SOFT" 32, "WONK" 1;
}

h2 { font-size: clamp(2rem, 3.4vw, 3.15rem); }

h3 { font-size: clamp(1.45rem, 2vw, 1.85rem); line-height: 1.15; }

p { margin: 0; }

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

::selection { background: var(--pine); color: var(--cream); }

.skip {
  position: absolute;
  left: 16px;
  top: 8px;
  transform: translateY(-140%);
  background: var(--pine);
  color: var(--cream);
  padding: 10px 14px;
  border-radius: 999px;
  z-index: 50;
  text-decoration: none;
}

.skip:focus { transform: none; }

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

.kicker {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pine-2);
}

.lede {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 42rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(243, 238, 228, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(28, 25, 21, 0.08);
}

.mast-rule {
  height: 4px;
  background: linear-gradient(90deg, var(--pine) 0 72%, var(--copper) 72% 100%);
}

.header-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header);
}

.logo {
  display: flex;
  align-items: center;
  margin-right: auto;
  text-decoration: none;
}

.logo img { height: 42px; width: auto; }

.nav-toggle-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.nav-toggle .when-open { display: none; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 999px;
}

.site-nav a[aria-current="page"] {
  background: rgba(20, 53, 40, 0.08);
  color: var(--pine);
}

.site-nav a:hover { background: rgba(20, 53, 40, 0.06); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1.5px solid var(--pine);
  background: var(--pine);
  color: var(--cream);
  text-decoration: none;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.btn:hover { background: var(--pine-2); color: var(--cream); border-color: var(--pine-2); }

.btn-ghost {
  background: transparent;
  color: var(--pine);
}

.btn-ghost:hover { background: rgba(20, 53, 40, 0.06); color: var(--pine); }

.nav-cta { margin-left: 6px; padding-inline: 16px; min-height: 42px; }

.site-nav a.nav-cta,
.site-nav a.nav-cta:hover,
.site-nav a.nav-cta[aria-current="page"] {
  color: var(--cream);
  background: var(--pine);
  border-color: var(--pine);
}

.site-nav a.nav-cta:hover {
  background: var(--pine-2);
  border-color: var(--pine-2);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
  padding: 54px 0 28px;
}

.hero h1 { max-width: 13ch; margin-bottom: 18px; }

.hero .lede { margin-bottom: 26px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }

.hero-figure {
  margin: 0;
  filter: drop-shadow(0 22px 40px rgba(28, 25, 21, 0.08));
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
}

.facts div {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.facts dt {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pine-2);
  font-weight: 600;
}

.facts dd { margin: 4px 0 0; font-weight: 500; }

.section { padding: 72px 0; }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 28px;
}

.section-head .lede { justify-self: end; }

.service-index { display: flex; flex-direction: column; }

.service-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 22px 12px;
  border-top: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.service-row:last-child { border-bottom: 1px solid var(--line); }

.service-row:hover { background: rgba(251, 247, 240, 0.75); }

.service-row .num {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-variation-settings: "opsz" 48, "SOFT" 40, "WONK" 1;
  color: var(--pine-2);
}

.service-row:hover .num { color: var(--copper-deep); }

.service-row h3 { font-size: 1.45rem; margin-bottom: 4px; }

.service-row p { color: var(--muted); max-width: 62ch; }

.go {
  font-weight: 500;
  color: var(--pine);
  white-space: nowrap;
}

.band {
  background: var(--pine);
  color: var(--cream);
  border-radius: 32px;
  padding: 56px 48px;
}

.band h2 { color: var(--cream); max-width: 16ch; }

.band .lede { color: #e7e0d2; }

.band-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  background: rgba(246, 241, 231, 0.06);
  border: 1px solid rgba(246, 241, 231, 0.14);
  border-radius: 18px;
  padding: 18px 16px 20px;
}

.steps .num {
  display: block;
  font-family: var(--serif);
  font-size: 1.8rem;
  margin-bottom: 12px;
  color: #f0b08a;
  font-variation-settings: "opsz" 36, "SOFT" 50, "WONK" 1;
}

.steps h3 { font-size: 1.25rem; color: var(--cream); margin-bottom: 8px; }

.steps p { color: #e7e0d2; font-size: 0.98rem; }

.process-figure { margin: 28px 0 0; }

.sectors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
  margin: 0;
}

.sectors div {
  padding: 20px 0 18px;
  border-top: 1px solid var(--line);
}

.sectors dt {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 560;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.sectors dd { margin: 0; color: var(--muted); max-width: 46ch; }

.visit {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.visit address { font-style: normal; margin: 12px 0; }

.visit a { font-weight: 500; }

.page-hero { padding: 48px 0 12px; }

.page-hero h1 { max-width: 16ch; margin-bottom: 16px; }

.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 8px;
}

.subnav a {
  text-decoration: none;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.92rem;
  font-weight: 500;
}

.subnav a:hover { border-color: var(--pine); color: var(--pine); }

.service {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 36px;
  align-items: center;
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.service .kicker { color: var(--copper-deep); }

.service h2 { margin-bottom: 12px; }

.service p { margin-bottom: 14px; color: var(--ink-soft); }

.service ul { margin: 0 0 18px; padding-left: 1.1rem; color: var(--ink-soft); }

.service li + li { margin-top: 6px; }

.service figure { margin: 0; }

.text-link { font-weight: 600; text-underline-offset: 4px; }

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.split + .split,
.prose + .split,
.split + .prose { margin-top: 28px; }

.prose { max-width: 68ch; }

.prose p + p,
.prose ul { margin-top: 14px; }

.prose ul { padding-left: 1.15rem; }

.prose li + li { margin-top: 8px; }

.record {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 18px;
  margin: 18px 0 0;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.record dt { font-weight: 600; color: var(--pine); }

.record dd { margin: 0; }

.plain-steps {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.plain-steps li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: start;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.plain-steps .num {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--copper-deep);
  font-variation-settings: "opsz" 36, "SOFT" 40, "WONK" 1;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 36px;
  align-items: start;
  padding-bottom: 72px;
}

.form-panel, .office-card, .success {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
}

form h2, .success h2 { margin-bottom: 8px; }

.form-intro { color: var(--muted); margin-bottom: 18px; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }

.field-wide { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 6px; }

.field label { font-weight: 500; font-size: 0.95rem; }

input, select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid #cfc5b6;
  background: #fffdf9;
  color: var(--ink);
  font: inherit;
}

textarea { min-height: 140px; resize: vertical; }

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--pine) 50%), linear-gradient(135deg, var(--pine) 50%, transparent 50%);
  background-position: calc(100% - 18px) 22px, calc(100% - 12px) 22px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

input:focus, select:focus, textarea:focus { border-color: var(--pine); }

[aria-invalid="true"] {
  border-color: var(--copper-deep);
  background: #fbf4f1;
}

.field-error { color: var(--copper-deep); font-size: 0.92rem; margin: 0; }

.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 16px; }

.fine { color: var(--muted); font-size: 0.92rem; }

.error-summary {
  background: #fbf4f1;
  border: 1px solid var(--copper-deep);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.success {
  background: var(--tint);
  border-color: var(--pine);
  scroll-margin-top: calc(var(--header) + 20px);
}

.success h2 {
  max-width: 16ch;
  scroll-margin-top: calc(var(--header) + 24px);
}

.success p { margin-top: 12px; }

.success-list { margin: 14px 0 0; padding-left: 1.1rem; }

.success-list li + li { margin-top: 4px; }

.office-card figure { margin: 0 0 16px; }

.office-card address { font-style: normal; margin: 8px 0 12px; }

.office-card p + p { margin-top: 8px; }

.site-footer {
  background: var(--pine);
  color: var(--cream);
  padding: 48px 0 28px;
  margin-top: 20px;
}

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

.site-footer a:hover { color: #f0b08a; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 0.8fr;
  gap: 32px;
}

.footer-logo { height: 44px; width: auto; margin-bottom: 14px; }

.site-footer p, .site-footer address { color: #e7e0d2; font-style: normal; }

.footer-title {
  margin: 0 0 10px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: #f0b08a;
}

.footer-links { list-style: none; margin: 0; padding: 0; }

.footer-links a { text-decoration: none; display: inline-block; padding: 4px 0; }

.footer-links a:hover { text-decoration: underline; text-underline-offset: 3px; }

.footer-base {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(246, 241, 231, 0.16);
  font-size: 0.92rem;
}

.note {
  background: var(--card);
  border-left: 4px solid var(--copper);
  padding: 14px 16px;
  border-radius: 0 14px 14px 0;
  margin-top: 16px;
}

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(12px);
    animation: rise 0.7s ease forwards;
  }

  .js .reveal:nth-child(2) { animation-delay: 0.08s; }

  .hero-figure img { animation: float 8s ease-in-out infinite; }

  @keyframes rise {
    to { opacity: 1; transform: none; }
  }

  @keyframes float {
    50% { transform: translateY(-8px); }
  }
}

@media (max-width: 980px) {
  .hero,
  .section-head,
  .band-head,
  .split,
  .service,
  .visit,
  .contact-grid,
  .footer-grid { grid-template-columns: 1fr; }

  .section-head .lede,
  .band-head .lede { justify-self: start; }

  .steps { grid-template-columns: 1fr 1fr; }

  .hero h1, .page-hero h1 { max-width: 16ch; }

  .band { padding: 36px 22px; border-radius: 24px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }

  .nav-toggle-input:focus-visible + .nav-toggle {
    outline: 3px solid var(--copper);
    outline-offset: 3px;
  }

  .nav-toggle-input:checked + .nav-toggle .when-closed { display: none; }

  .nav-toggle-input:checked + .nav-toggle .when-open { display: inline; }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px 16px 18px;
    background: var(--card);
    border-bottom: 1px solid var(--line);
  }

  .nav-toggle-input:checked ~ .site-nav { display: flex; }

  .site-nav a { padding: 12px; }

  .nav-cta { margin: 8px 0 0; }
}

@media (min-width: 861px) {
  .nav-toggle-input { display: none; }
}

@media (max-width: 700px) {
  .wrap { width: min(1120px, calc(100% - 32px)); }

  .facts, .sectors, .fields, .steps { grid-template-columns: 1fr; }

  .service-row { grid-template-columns: 48px minmax(0, 1fr); }

  .go { grid-column: 2; }

  .section { padding: 52px 0; }

  .form-panel, .office-card, .success, .visit { padding: 20px; }

  h1 { font-size: clamp(2.35rem, 11vw, 3.3rem); }
}
