:root {
  --forest: #0f3a04;
  --green: #195e00;
  --green-mid: #246e0c;
  --leaf: #70a92c;
  --gold: #db9202;
  --gold-deep: #b67800;
  --ink: #172110;
  --muted: #3c4936;
  --cream: #f4f1e7;
  --paper: #fffdf8;
  --line: #e3dccb;
  --white: #ffffff;
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Outfit", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 18px 40px rgba(23, 33, 16, 0.08);
  --wrap: 1120px;
  --header: 92px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 1.05rem;
}

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

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

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  line-height: 1.12;
  font-weight: 560;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
}

h1 { font-size: clamp(2.35rem, 5vw, 4.35rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1rem; }

ul, ol { margin: 0 0 1rem; padding-left: 1.15rem; }

.wrap {
  width: min(var(--wrap), calc(100% - 2rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--white);
  color: var(--green);
  padding: 0.6rem 1rem;
  z-index: 200;
  border-radius: 6px;
}

.skip-link:focus { top: 0.75rem; }

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

#main:focus { outline: none; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.topbar {
  background: var(--forest);
  color: #e7f0df;
  font-size: 0.92rem;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  min-height: 42px;
  padding: 0.35rem 0;
}

.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: #ffd27a; }

.topbar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.topbar-brand { margin: 0; letter-spacing: 0.02em; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header);
}

.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 78px; width: auto; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font: inherit;
  color: var(--forest);
  cursor: pointer;
}

.nav-toggle-box {
  width: 18px;
  height: 14px;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle-box span {
  display: block;
  height: 2px;
  background: var(--forest);
  border-radius: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem 0.15rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.2rem 0.65rem;
  color: var(--forest);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  border-radius: 999px;
}

.nav-list a:hover,
.nav-list a[aria-current="page"],
.is-section > a {
  background: #e7f3d8;
  color: var(--forest);
}

.has-sub { position: relative; display: flex; align-items: center; }

.sub-toggle {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  color: var(--forest);
  position: relative;
}

.sub-toggle::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.has-sub ul {
  display: none;
  position: absolute;
  top: calc(100% - 4px);
  left: 0;
  min-width: 240px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.4rem;
  box-shadow: var(--shadow);
  list-style: none;
  margin: 0;
  z-index: 30;
}

.has-sub:hover > ul,
.has-sub:focus-within > ul,
.has-sub.is-open > ul { display: block; }

.has-sub ul a { width: 100%; border-radius: 10px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 46px;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 1.5px solid transparent;
  line-height: 1.2;
  cursor: pointer;
}

.btn-gold { background: var(--gold); color: #1c1403; }
.btn-gold:hover { background: var(--gold-deep); color: #1c1403; }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--forest); color: var(--white); }
.btn-ghost {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}
.btn-ghost:hover { background: #e7f3d8; color: var(--forest); }
.btn-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.75);
}
.btn-light:hover { background: rgba(255, 255, 255, 0.12); color: var(--white); }

.nav-apply { margin-left: 0.4rem; min-height: 42px; }

.hero {
  position: relative;
  color: var(--white);
  min-height: 78vh;
  display: grid;
  align-items: end;
  background: #123306 center/cover no-repeat;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 28, 2, 0.88) 0%, rgba(8, 28, 2, 0.55) 48%, rgba(8, 28, 2, 0.2) 100%),
    linear-gradient(180deg, rgba(8, 28, 2, 0.15), rgba(8, 28, 2, 0.45));
  z-index: -1;
}

.hero-inner { padding: 4.5rem 0 3.5rem; max-width: 760px; }

.eyebrow {
  display: inline-block;
  margin: 0 0 0.8rem;
  color: #f0c15a;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hero h1 { color: var(--white); max-width: 12ch; }
.hero .lede { font-size: 1.15rem; max-width: 42rem; color: #f4f7ef; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.3rem; }

.stats {
  margin-top: -2.2rem;
  position: relative;
  z-index: 2;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.stat {
  padding: 1.2rem 1.1rem 1.05rem;
  border-right: 1px solid var(--line);
}

.stat:last-child { border-right: 0; }

.stat strong {
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--green);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.section { padding: 4.2rem 0; }
.section-tight { padding: 2.4rem 0 0; }

.kicker {
  margin: 0 0 0.45rem;
  color: var(--green-mid);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.lede { font-size: 1.12rem; color: var(--muted); }

.card-grid,
.teaser-grid,
.split,
.team-grid,
.role-grid,
.equip-grid,
.contact-grid,
.step-grid { display: grid; gap: 1rem; }

.teaser-grid { grid-template-columns: repeat(3, 1fr); }
.card-grid { grid-template-columns: repeat(3, 1fr); }
.role-grid { grid-template-columns: 1.2fr 1fr 1fr; }
.equip-grid { grid-template-columns: repeat(3, 1fr); }
.team-grid { grid-template-columns: repeat(3, 1fr); }
.contact-grid { grid-template-columns: 1.1fr 0.9fr; }
.step-grid { grid-template-columns: repeat(4, 1fr); }
.split { grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 2rem; }
.split-top { align-items: start; }

.card, .panel, .team-card, .role-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.2rem 1.2rem 1.15rem;
}

.card {
  display: flex;
  flex-direction: column;
}

.card .card-actions { margin-top: auto; }

.card h3, .role-card h3, .team-card h3 { margin-bottom: 0.35rem; }
.card p:last-child, .role-card p:last-child { margin-bottom: 0; }
.card-actions, .inline-actions { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1rem; }

.media {
  border-radius: 18px;
  overflow: hidden;
  background: #d7e3c8;
}

.media img { width: 100%; height: 100%; object-fit: cover; }
.frame-tall { min-height: 360px; }
.frame-tall img { height: 420px; object-fit: cover; }

.band {
  background: var(--forest);
  color: #f3f7ee;
}

.band a { color: #ffd27a; }
.band h2, .band h3 { color: var(--white); }

.why-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
}

.why-list li {
  background: #f7f4eb;
  border-left: 4px solid var(--gold);
  border-radius: 12px;
  padding: 0.9rem 1rem;
}

.why-list strong { display: block; margin-bottom: 0.2rem; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.tags li {
  background: #eef6e4;
  color: var(--forest);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.page-hero { padding: 2.6rem 0 0.4rem; }

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.crumbs li:not(:last-child)::after { content: "/"; margin-left: 0.35rem; color: #8b907f; }
.crumbs a { color: var(--green); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.note {
  background: #fff8e8;
  border: 1px solid #efd7a0;
  border-radius: 14px;
  padding: 0.95rem 1rem;
  color: #3d3114;
}

.prose { max-width: 72ch; }
.prose h2 { margin-top: 0.2rem; }

.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1rem 1rem 3.3rem;
  position: relative;
  margin-bottom: 0.7rem;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0.85rem;
  top: 0.95rem;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--green);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.equip figure { margin: 0; }
.equip img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 14px;
  background: #d5e0c8;
}
.equip figcaption {
  margin-top: 0.45rem;
  font-weight: 700;
  color: var(--forest);
}

.role-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 0.8rem;
}

.team-card { text-align: left; }
.team-photo, .monogram {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  margin-bottom: 0.9rem;
  object-fit: cover;
}
.monogram {
  display: grid;
  place-items: center;
  background: var(--forest);
  color: #f3d48a;
  font-family: var(--serif);
  font-size: 1.8rem;
}
.team-card .role { color: var(--green-mid); font-weight: 700; margin-bottom: 0.7rem; }
blockquote {
  margin: 0;
  color: var(--muted);
  font-style: italic;
}
blockquote p { margin: 0; }
cite { display: block; margin-top: 0.45rem; font-style: normal; font-weight: 700; color: var(--ink); font-size: 0.92rem; }

.rate-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: end;
  margin: 0.4rem 0 0.9rem;
}

.rate-tools label { display: block; font-weight: 700; margin-bottom: 0.3rem; }

.rate-tools input {
  font: inherit;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  border: 1px solid #cfc6b2;
  min-width: min(100%, 280px);
  background: var(--white);
}

.table-wrap {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: auto;
}

table.rates {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.rates caption {
  text-align: left;
  padding: 0.9rem 1rem 0.2rem;
  font-weight: 700;
  color: var(--forest);
}

.rates th, .rates td {
  text-align: left;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
}

.rates th { background: #f6f3ea; font-size: 0.86rem; letter-spacing: 0.04em; text-transform: uppercase; }
.rates tr:last-child td { border-bottom: 0; }
.rates td:last-child, .rates th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.rate-count { margin: 0.55rem 0 0; color: var(--muted); font-size: 0.92rem; }

.map-panel img { width: 100%; border-radius: 16px; border: 1px solid var(--line); }

.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-list li:last-child { border-bottom: 0; }
.contact-list span { display: block; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; color: var(--green-mid); }
.contact-list a { font-weight: 700; font-size: 1.08rem; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

.site-footer {
  background: var(--forest);
  color: #e5eedd;
  padding: 2.6rem 0 1.4rem;
  margin-top: 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr;
  gap: 1.5rem;
}

.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #ffd27a; }
.site-footer h2 { font-size: 1.15rem; color: #fff; }
.footer-logo { height: 108px; width: auto; margin-bottom: 0.6rem; }
.footer-links, .footer-meta { list-style: none; padding: 0; margin: 0; }
.footer-links li, .footer-meta li { margin: 0.3rem 0; }
.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 1.4rem;
  padding-top: 0.9rem;
  font-size: 0.92rem;
}

.banner-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.empty-filter { display: none; padding: 1rem; margin: 0; }
.empty-filter.is-visible { display: block; }

@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.4rem 1rem 1rem;
    flex-direction: column;
    align-items: stretch;
    max-height: calc(100vh - 80px);
    overflow: auto;
  }
  body.nav-open .site-nav { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-list a { border-radius: 10px; }
  .has-sub { flex-wrap: wrap; }
  .has-sub > a { flex: 1; }
  .has-sub ul {
    position: static;
    display: none;
    box-shadow: none;
    min-width: 0;
    width: 100%;
    border: 0;
    padding: 0 0 0.4rem 0.6rem;
  }
  .has-sub.is-open > ul { display: block; }
  .nav-apply { margin: 0.4rem 0 0; }
  .stat-grid, .teaser-grid, .card-grid, .role-grid, .equip-grid, .team-grid, .step-grid, .split, .contact-grid, .footer-grid, .why-list {
    grid-template-columns: 1fr 1fr;
  }
  .step-grid, .contact-grid, .split { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .topbar-inner { align-items: flex-start; flex-direction: column; gap: 0.15rem; }
  .brand img { height: 62px; }
  .stat-grid, .teaser-grid, .card-grid, .role-grid, .equip-grid, .team-grid, .why-list, .footer-grid {
    grid-template-columns: 1fr;
  }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .hero { min-height: 0; }
  .hero-inner { padding: 2.6rem 0 2.2rem; }
  .hero h1 { max-width: none; }
  .section { padding: 2.6rem 0; }
  .frame-tall img, .role-card img { height: 220px; }
  .footer-base { flex-direction: column; }
  table.rates { min-width: 0; }
  .rates thead { display: none; }
  .rates tr {
    display: block;
    border-bottom: 1px solid var(--line);
    padding: 0.35rem 0;
  }
  .rates td {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border: 0;
    padding: 0.25rem 1rem;
    text-align: right;
  }
  .rates td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--muted);
    text-align: left;
  }
  .rates caption { padding-bottom: 0.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
