:root {
  color-scheme: light dark;
  --bg: #fbfaf6;
  --bg-soft: #f2efe5;
  --fg: #1b1f1b;
  --fg-muted: #555b51;
  --line: #ded9cb;
  --brand: #2c5738;
  --brand-contrast: #fbfaf6;
  --accent: #0f5f7d;
  --earth: #7a5433;
  --max: 64rem;
  --radius-card: 0.75rem;
  --radius-control: 0.5rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101310;
    --bg-soft: #181c17;
    --fg: #e9ece6;
    --fg-muted: #a3aa9c;
    --line: #2a3026;
    --brand: #8cc79a;
    --brand-contrast: #101310;
    --accent: #6ec3e0;
    --earth: #cfa47a;
  }
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-feature-settings: "kern", "liga";
}

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

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

a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: var(--brand-contrast);
  padding: 0.75rem 1.25rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: saturate(1.3) blur(8px);
}

.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--fg);
  font-weight: 650;
  letter-spacing: 0.01em;
  text-decoration: none;
}
.brand img { width: 28px; height: 37px; }

.site-nav { display: flex; gap: 1.4rem; font-size: 0.95rem; }
.site-nav a { color: var(--fg-muted); text-decoration: none; }
.site-nav a:hover { color: var(--fg); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.65rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: 0.98rem;
  font-weight: 550;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { border-color: var(--fg-muted); }

.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-contrast);
}
.btn-primary:hover { background: color-mix(in srgb, var(--brand) 88%, var(--fg)); }

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

/* ---------- hero ---------- */

.hero {
  padding: 3.5rem 0 3rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2.5rem;
}

.hero h1 {
  font-size: clamp(2rem, 5.2vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 1rem;
  max-width: 18ch;
}

.hero-lede {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  color: var(--fg-muted);
  max-width: 42ch;
  margin: 0 0 1.75rem;
}

.hero-crest { width: 200px; height: 263px; }

.hero-fallback {
  margin: 1.25rem 0 0;
  font-size: 0.95rem;
  color: var(--fg-muted);
}

/* ---------- sections ---------- */

section {
  padding: 3.75rem 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 4.5rem;
}

section > .wrap > h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--fg-muted);
  font-weight: 650;
  margin: 0 0 0.5rem;
}

.section-lede {
  font-size: 1.35rem;
  line-height: 1.35;
  letter-spacing: -0.015em;
  max-width: 34ch;
  margin: 0 0 2rem;
}

.prose { max-width: 62ch; }
.prose p { margin: 0 0 1.1rem; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- cards ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  gap: 1rem;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--bg-soft);
  padding: 1.4rem;
}
.card h3 { margin: 0 0 0.5rem; font-size: 1.05rem; letter-spacing: -0.01em; }
.pillar-grid { margin-top: 2rem; }
.card p { margin: 0; color: var(--fg-muted); font-size: 0.97rem; }

.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1.5rem 3.25rem;
  max-width: 60ch;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.1rem;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: var(--brand-contrast);
  font-size: 0.95rem;
  font-weight: 650;
}
.steps li:last-child { padding-bottom: 0; }
.steps h3 { margin: 0 0 0.3rem; font-size: 1.05rem; }
.steps p { margin: 0; color: var(--fg-muted); }

/* ---------- pricing ---------- */

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.price {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--bg-soft);
  padding: 1.6rem;
}
.price .amount {
  display: block;
  font-size: 2.1rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 650;
  color: var(--brand);
  margin-bottom: 0.35rem;
}
.price h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.price p { margin: 0; color: var(--fg-muted); font-size: 0.97rem; }

/* ---------- work ---------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  gap: 1.25rem;
}

.work-intro { margin-bottom: 2rem; }

.work-item { margin: 0; }
.work-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  background: var(--bg-soft);
  display: block;
}
.work-item figcaption {
  margin-top: 0.7rem;
  font-size: 0.95rem;
  color: var(--fg-muted);
}

/* ---------- lists ---------- */

.city-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}
.city-list li {
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--bg-soft);
  padding: 0.45rem 0.8rem;
  font-size: 0.95rem;
}

.platform-list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.platform-list li {
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  padding: 0.5rem 0.9rem;
  font-weight: 550;
  font-size: 0.95rem;
}

/* ---------- faq ---------- */

.faq { max-width: 62ch; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  font-weight: 550;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--fg-muted);
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0.85rem 0 0; color: var(--fg-muted); }
.faq details p + p { margin-top: 0.7rem; }

/* ---------- form ---------- */

.estimate-form {
  max-width: 34rem;
  display: grid;
  gap: 1.1rem;
}

.field { display: grid; gap: 0.35rem; }
.field label { font-size: 0.95rem; font-weight: 550; }
.field .hint { font-size: 0.87rem; color: var(--fg-muted); font-weight: 400; }

.field input,
.field select,
.field textarea {
  font: inherit;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  padding: 0.7rem 0.8rem;
  min-height: 2.75rem;
  width: 100%;
}
.field textarea { min-height: 7rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }

.field-error {
  font-size: 0.9rem;
  color: var(--earth);
  font-weight: 550;
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--earth); }

.form-note { font-size: 0.9rem; color: var(--fg-muted); margin: 0; max-width: 46ch; }

.fallback {
  margin: 2.25rem 0 0;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-card);
  background: var(--bg-soft);
  max-width: 34rem;
}
.fallback h3 { margin: 0 0 0.5rem; font-size: 1rem; }
.fallback p { margin: 0; color: var(--fg-muted); font-size: 0.97rem; }
.fallback a { font-weight: 550; }

/* ---------- footer ---------- */

.site-foot {
  padding: 3rem 0 5.5rem;
  color: var(--fg-muted);
  font-size: 0.93rem;
}
.site-foot .wrap { display: grid; gap: 1.5rem; }
.foot-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr));
  gap: 1.5rem;
}
.foot-cols h2 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--fg-muted);
  margin: 0 0 0.6rem;
}
.foot-cols ul { list-style: none; margin: 0; padding: 0; }
.foot-cols li { margin-bottom: 0.35rem; }
.foot-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
}

/* ---------- sticky mobile action bar ---------- */

.action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: none;
  gap: 0.6rem;
  padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: saturate(1.3) blur(8px);
}
.action-bar .btn { flex: 1; }

/* ---------- thanks page ---------- */

.notice {
  padding: 4.5rem 0;
}
.notice h1 {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 1rem;
  max-width: 20ch;
}

/* ---------- responsive ---------- */

@media (max-width: 52rem) {
  .site-nav { display: none; }
  .hero .wrap { grid-template-columns: 1fr; gap: 1.75rem; }
  .hero-crest { width: 150px; height: 197px; }
  .action-bar { display: flex; }
  body { padding-bottom: 4.5rem; }
  section { padding: 3rem 0; }
  .hero { padding: 2.5rem 0 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
