:root {
  --ink: #141311;
  --ink-soft: #4a4742;
  --paper: #faf8f3;
  --paper-2: #f1ede4;
  --line: #dcd6c8;
  --gold: #d9b84a;
  --gold-deep: #b8962e;
  --dark: #17160f;
  --dark-2: #22211a;
  --on-dark: #f3efe4;
  --on-dark-soft: #b9b3a3;
  --ok: #2f7a4a;
  --err: #b23b3b;

  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Charter, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --container: 1120px;
  --gutter: clamp(16px, 5vw, 48px);
  --section-y: clamp(72px, 12vw, 144px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.6rem, 7.2vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.6rem); line-height: 1.2; }

p { margin: 0 0 1em; }

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1.25rem;
}

.section-dark .eyebrow { color: var(--gold); }

.section-intro {
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 58ch;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 243, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.brand img { width: 132px; height: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
}

.site-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.site-nav a:hover { color: var(--ink); border-color: var(--gold); }

.site-nav .nav-cta {
  color: var(--ink);
  font-weight: 600;
  padding: 10px 18px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
}

.site-nav .nav-cta:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */

.hero {
  padding-block: clamp(88px, 14vw, 176px) var(--section-y);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -12vw;
  top: -10vw;
  width: min(52vw, 640px);
  aspect-ratio: 1;
  border: 18px solid var(--gold);
  opacity: 0.35;
  pointer-events: none;
}

.hero .container { position: relative; }

.hero h1 { max-width: 14ch; }

.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 52ch;
  margin-top: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 2.25rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
}

.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-primary:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: var(--ink); }
.btn-primary:disabled { opacity: 0.6; cursor: wait; }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }

/* Sections */

.section { padding-block: var(--section-y); scroll-margin-top: 76px; }

.section-head { margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 { max-width: 18ch; }

.section-dark {
  background: var(--dark);
  color: var(--on-dark);
}

.section-dark .section-intro { color: var(--on-dark-soft); }

/* Cards */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(28px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -22px rgba(20, 19, 17, 0.35);
}

.card-num {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--gold-deep);
  margin-bottom: 1.75rem;
}

.card h3 { margin-bottom: 0.6em; }
.card p { color: var(--ink-soft); margin: 0; }

/* Criteria */

.criteria-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 4vw, 56px);
}

.criteria-block {
  border-top: 1px solid rgba(243, 239, 228, 0.18);
  padding-top: 24px;
}

.criteria-block h3 { color: var(--gold); font-size: 1.15rem; margin-bottom: 1rem; }
.criteria-block p { color: var(--on-dark-soft); margin: 0; }

.pill-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-list li {
  padding: 8px 14px;
  border: 1px solid rgba(243, 239, 228, 0.28);
  border-radius: 999px;
  font-size: 0.95rem;
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.about-grid .section-head { margin-bottom: 0; }

.about-copy p {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  color: var(--ink-soft);
}

.about-copy p:first-child {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1.8vw, 1.6rem);
  line-height: 1.4;
  color: var(--ink);
}

/* Contact */

.section-contact { background: var(--paper-2); }

.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

address { font-style: normal; margin-top: 2rem; line-height: 1.7; }
address a { text-decoration: none; border-bottom: 1px solid var(--gold); }
address a:hover { border-bottom-color: var(--ink); }

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(24px, 3vw, 40px);
}

.field { margin-bottom: 20px; }

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.optional { font-weight: 400; color: var(--ink-soft); }

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field textarea { resize: vertical; min-height: 130px; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(217, 184, 74, 0.25);
}

.field input.invalid,
.field select.invalid,
.field textarea.invalid { border-color: var(--err); }

.field-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field-captcha { min-height: 78px; }
.field-captcha > div { max-width: 100%; }

.form-status {
  margin: 16px 0 0;
  font-size: 0.95rem;
  min-height: 1.5em;
}

.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--err); }

/* Footer */

.site-footer {
  background: var(--dark);
  color: var(--on-dark-soft);
  font-size: 0.9rem;
  padding-block: 36px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
}

.footer-inner p { margin: 0; }

.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--on-dark); }

/* Responsive */

@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
  .criteria-grid { grid-template-columns: 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 16px;
  }

  .site-nav.open { display: flex; }

  .site-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }

  .site-nav .nav-cta {
    margin-top: 12px;
    text-align: center;
    border-radius: 999px;
    border: 1.5px solid var(--ink);
  }

  .hero::after { border-width: 12px; right: -30vw; top: -20vw; width: 70vw; }
  .hero-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn, .site-nav a, .nav-toggle span { transition: none; }
}
