:root {
  --pine: #1f4321;
  --pine-deep: #16311a;
  --olive: #7a8a3a;
  --olive-soft: #e6e3c8;
  --sun: #f2a93b;
  --sun-soft: #fbe3b8;
  --bg: #fbf7ef;
  --bg-alt: #f3ede0;
  --ink: #23301f;
  --muted: #5d6656;
  --card: #fffdf8;
  --line: #e1d9c6;
  --mark-outline: var(--bg);
  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(31, 67, 33, 0.25);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--pine); }
h1, h2, h3 {
  font-family: var(--serif);
  font-variation-settings: "SOFT" 100;
  color: var(--pine);
  line-height: 1.1;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); font-weight: 900; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; letter-spacing: -0.015em; }
h3 { font-size: 1.35rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 32px); }
.sr-only, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip:focus { position: fixed; top: 12px; left: 12px; z-index: 100; background: var(--pine); color: #fff; padding: 8px 14px; border-radius: 8px; }

.eyebrow {
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: .9em;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5em;
  padding: .85em 1.6em;
  border-radius: 999px;
  border: 2px solid var(--pine);
  background: var(--pine);
  color: #fff;
  font: 600 1rem/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--pine-deep); border-color: var(--pine-deep); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--sun); outline-offset: 3px;
}
.btn-ghost { background: transparent; color: var(--pine); }
.btn-ghost:hover { background: var(--pine); color: #fff; }
.btn-small { padding: .6em 1.2em; font-size: .95rem; }
.btn.full { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px -12px rgba(0,0,0,.15); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand-mark { width: 54px; height: 45px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--serif); font-weight: 900; font-variation-settings: "SOFT" 100;
  font-size: 1.45rem; color: var(--pine); letter-spacing: -0.01em;
}
.brand-sub {
  font-weight: 600; font-size: .66rem; letter-spacing: .42em; text-transform: uppercase;
  color: var(--olive); margin-top: 4px; display: flex; align-items: center; gap: .5em;
}
.brand-sub::before, .brand-sub::after { content: ""; height: 2px; width: 14px; background: currentColor; border-radius: 2px; }

.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; position: relative; }
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--sun); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.site-nav a:not(.btn):hover::after { transform: scaleX(1); }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle .bar { display: block; width: 24px; height: 2.5px; background: var(--pine); border-radius: 2px; margin: 5px 0; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(4) { transform: translateY(-7.5px) rotate(-45deg); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 96px) 0 140px; }
.hero::before {
  content: ""; position: absolute; width: 620px; height: 620px; right: -160px; top: -200px;
  background: radial-gradient(circle, var(--sun-soft) 0%, transparent 65%); opacity: .7; pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 em { font-style: normal; color: var(--olive); }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 36ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-art { display: flex; justify-content: center; }
.hero-mark { width: min(420px, 100%); height: auto; aspect-ratio: 120 / 100; filter: drop-shadow(0 18px 30px rgba(31,67,33,.18)); }
.hero-hills { position: absolute; left: 0; bottom: -1px; width: 100%; height: 120px; }

/* Sections */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head p:last-child { color: var(--muted); }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--olive-soft); }
.card p { color: var(--muted); margin: 0; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--sun-soft); margin-bottom: 18px;
}
.card-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--pine); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; }
.step { position: relative; padding: 28px 24px; border-top: 4px solid var(--olive); background: var(--card); border-radius: 0 0 var(--radius) var(--radius); }
.step:nth-child(2) { border-color: var(--sun); }
.step:nth-child(3) { border-color: var(--pine); }
.step:nth-child(4) { border-color: var(--olive); }
.step-num { font-family: var(--serif); font-weight: 900; font-size: 2.4rem; color: var(--olive-soft); line-height: 1; display: block; margin-bottom: 10px; }
.step p { color: var(--muted); margin: 0; }

/* About */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.about-copy p { color: var(--muted); }
.values { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.values li {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 20px 18px 56px; position: relative; color: var(--muted);
}
.values li::before {
  content: ""; position: absolute; left: 20px; top: 50%; translate: 0 -50%;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--pine) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat;
}
.values strong { color: var(--pine); }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px;
}
.plan h3 { font-size: 1.8rem; margin-bottom: .2em; }
.plan-for { color: var(--olive); font-weight: 600; }
.plan ul { list-style: none; padding: 0; margin: 8px 0 28px; flex: 1; }
.plan li { padding: 10px 0 10px 28px; border-bottom: 1px dashed var(--line); position: relative; }
.plan li::before { content: ""; position: absolute; left: 4px; top: 18px; width: 10px; height: 10px; border-radius: 50%; background: var(--sun); }
.plan.featured { background: var(--pine); border-color: var(--pine); color: #e9efe2; box-shadow: var(--shadow); transform: translateY(-8px); }
.plan.featured h3 { color: #fff; }
.plan.featured .plan-for { color: var(--sun); }
.plan.featured li { border-color: rgba(255,255,255,.15); }
.plan.featured .btn { background: var(--sun); border-color: var(--sun); color: var(--pine-deep); }
.plan.featured .btn:hover { background: #fff; border-color: #fff; }
.plan-badge {
  position: absolute; top: -14px; left: 30px; background: var(--sun); color: var(--pine-deep);
  font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px;
}

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 32px 20px 0; position: relative;
  font-weight: 600; color: var(--pine); font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; translate: 0 -50%;
  font-size: 1.6rem; font-weight: 400; color: var(--olive); transition: rotate .2s ease;
}
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* Contact */
.contact { background: var(--pine); color: #dfe7d6; position: relative; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; width: 520px; height: 520px; left: -180px; bottom: -260px;
  background: radial-gradient(circle, rgba(242,169,59,.35) 0%, transparent 65%); pointer-events: none;
}
.contact h2 { color: #fff; }
.contact .eyebrow { color: var(--sun); }
.contact-inner { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; }
.contact-list li { display: flex; flex-direction: column; gap: 2px; }
.contact-list span { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: #a9b99c; }
.contact-list a { color: #fff; font-weight: 600; word-break: break-word; }

.contact-form {
  background: var(--card); color: var(--ink); border-radius: var(--radius); padding: 32px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px; box-shadow: 0 24px 50px -20px rgba(0,0,0,.45);
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full, .contact-form .btn, .form-note { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .92rem; color: var(--pine); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%;
  transition: border-color .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--olive); }
.field textarea { resize: vertical; }
.field.invalid input { border-color: #c0492b; }
.form-note { margin: 0; font-size: .95rem; color: var(--olive); min-height: 1.4em; }
.form-note.error { color: #c0492b; }

/* Footer */
.site-footer { background: var(--pine-deep); color: #a9b99c; padding: 40px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.brand-light { --pine: #ffffff; --mark-outline: var(--pine-deep); }
.brand-light .brand-name { color: #fff; }
.brand-light .brand-sub { color: #b7c47c; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-nav a { color: #dfe7d6; text-decoration: none; }
.footer-nav a:hover { color: var(--sun); }
.copyright { margin: 0; font-size: .9rem; width: 100%; text-align: center; border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .plan.featured.reveal.in { transform: translateY(-8px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}

/* Responsive */
@media (max-width: 980px) {
  .cards, .plans { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .plan.featured, .js .plan.featured.reveal.in { transform: none; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 20px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav .btn { margin-top: 16px; }
  .hero-inner, .about, .contact-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-mark { width: min(260px, 70%); }
  .hero { padding-bottom: 120px; }
}
@media (max-width: 600px) {
  .cards, .plans, .steps { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; padding: 24px; }
  .brand-name { font-size: 1.25rem; }
  .brand-mark { width: 46px; height: 38px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .copyright { text-align: left; }
}

/* Work */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.work-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.work-card img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-bottom: 1px solid var(--line); }
.work-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.work-body p { color: var(--muted); margin: 0 0 14px; flex: 1; }
.work-tags { font-size: .8rem; font-weight: 600; letter-spacing: .06em; color: var(--olive); }

.logos-title { text-align: center; margin: 72px 0 24px; font-size: 1.6rem; }
.logo-wall { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.logo-wall li {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 20px 14px; min-height: 150px;
}
.logo-wall li:has(.on-dark) { background: var(--pine-deep); border-color: var(--pine-deep); color: #dfe7d6; }
.logo-wall img { max-height: 72px; max-width: 100%; width: auto; object-fit: contain; }
.logo-wall span { font-size: .85rem; font-weight: 600; color: var(--muted); text-align: center; }
.logo-wall li:has(.on-dark) span { color: #dfe7d6; }

@media (max-width: 980px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .logo-wall { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .work-grid { grid-template-columns: 1fr; }
  .logo-wall { grid-template-columns: repeat(2, 1fr); }
}

.copyright a { color: #dfe7d6; }
.copyright a:hover { color: var(--sun); }

/* 13 cards: wide first and last on 3 columns, wide first on 2 columns */
@media (min-width: 981px) {
  .work-card:first-child, .work-card:last-child { grid-column: span 2; }
  .work-card:first-child img, .work-card:last-child img { aspect-ratio: 16 / 8; }
}
@media (min-width: 601px) and (max-width: 980px) {
  .work-card:first-child { grid-column: span 2; }
  .work-card:first-child img { aspect-ratio: 16 / 8; }
}
