:root {
  --bg: #f5f1e8;
  --bg-deep: #0f1c1b;
  --surface: #ede7da;
  --surface-2: #e4dccd;
  --text: #16211f;
  --muted: #5f685f;
  --line: rgba(22, 33, 31, 0.14);
  --accent: #b9854d;
  --accent-soft: rgba(185, 133, 77, 0.16);
  --white: #fffdf8;
  --max: 1240px;
  --header-h: 78px;
  --shadow: 0 24px 80px rgba(13, 28, 27, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  background: var(--bg);
  color: var(--text);
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

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

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

.page-shell {
  min-height: 100vh;
  overflow-x: clip;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  height: var(--header-h);
  padding: 1rem clamp(1rem, 2vw, 2rem);
  backdrop-filter: blur(18px);
  background: rgba(245, 241, 232, 0.72);
  border-bottom: 1px solid rgba(22, 33, 31, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: var(--bg-deep);
  color: var(--white);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
}

.brand-text {
  display: grid;
  line-height: 1.05;
}

.brand-text strong {
  font-family: "Fraunces", serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.brand-text span {
  font-size: 0.84rem;
  color: var(--muted);
}

.site-nav {
  display: inline-flex;
  gap: 1.5rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.site-nav a {
  position: relative;
  padding-bottom: 0.15rem;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.1rem;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 220ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 220ms ease, background-color 220ms ease, color 220ms ease, border-color 220ms ease;
}

.header-cta {
  min-height: 2.8rem;
  padding: 0 1.15rem;
  background: var(--bg-deep);
  color: var(--white);
}

.header-cta:hover,
.btn:hover {
  transform: translateY(-1px);
}

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  isolation: isolate;
  overflow: clip;
  background:
    radial-gradient(circle at 12% 16%, rgba(185, 133, 77, 0.18), transparent 28%),
    radial-gradient(circle at 88% 22%, rgba(45, 78, 73, 0.14), transparent 24%),
    linear-gradient(180deg, #f9f5ec 0%, #efe7d9 52%, #e6ddcd 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid,
.hero-orbit {
  position: absolute;
  inset: 0;
}

.hero-grid {
  background-image:
    linear-gradient(to right, rgba(22, 33, 31, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(22, 33, 31, 0.05) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 88%);
}

.hero-orbit {
  border: 1px solid rgba(22, 33, 31, 0.12);
  border-radius: 50%;
}

.hero-orbit-a {
  inset: 10% 24% auto auto;
  width: 52vw;
  height: 52vw;
  max-width: 720px;
  max-height: 720px;
  animation: driftA 18s ease-in-out infinite alternate;
}

.hero-orbit-b {
  inset: auto auto -18% -12%;
  width: 42vw;
  height: 42vw;
  max-width: 560px;
  max-height: 560px;
  animation: driftB 22s ease-in-out infinite alternate;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.7fr);
  gap: clamp(2rem, 6vw, 6rem);
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) clamp(1rem, 3vw, 2rem) clamp(2.5rem, 5vw, 4rem);
}

.hero-copy {
  max-width: 46rem;
  align-self: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--muted);
}

.hero h1,
.section-heading h2,
.process-heading h2,
.contact-copy h2,
.proof-copy h2 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.hero h1 {
  font-size: clamp(3.4rem, 8vw, 7rem);
  max-width: 10.8ch;
}

.hero-body {
  max-width: 40rem;
  margin: 1.6rem 0 0;
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.btn {
  min-height: 3.25rem;
  padding: 0 1.35rem;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--bg-deep);
  color: var(--white);
}

.btn-secondary {
  border-color: rgba(22, 33, 31, 0.18);
  color: var(--text);
  background: rgba(255, 253, 248, 0.4);
}

.hero-rail {
  align-self: center;
  justify-self: end;
  display: grid;
  gap: 0.8rem;
  text-align: right;
}

.rail-word {
  font-family: "Fraunces", serif;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1px rgba(15, 28, 27, 0.34);
  opacity: 0.95;
}

section:not(.hero) {
  padding: clamp(3.5rem, 7vw, 6rem) clamp(1rem, 3vw, 2rem);
}

.proof-band,
.system-section,
.search-copy-section,
.packages-section,
.process-section,
.areas-section,
.faq-section,
.contact-section {
  max-width: var(--max);
  margin: 0 auto;
}

.proof-band {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 2rem;
  border-top: 1px solid var(--line);
}

.proof-copy h2,
.section-heading h2,
.process-heading h2,
.contact-copy h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  max-width: 12ch;
}

.proof-list {
  display: grid;
  gap: 1rem;
  color: var(--muted);
}

.proof-list p {
  margin: 0;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.system-panel {
  min-height: 260px;
  padding: 1.8rem;
  background: var(--surface);
}

.search-copy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.search-copy-card {
  min-height: 240px;
  padding: 1.8rem;
  background: rgba(255, 253, 248, 0.54);
}

.system-panel h3,
.search-copy-card h3,
.package-name span,
.process-step h3 {
  margin: 0 0 0.8rem;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.system-panel p,
.search-copy-card p,
.package-row p,
.process-step p,
.area-note p,
.contact-copy p,
.faq-list p {
  margin: 0;
  line-height: 1.75;
  color: var(--muted);
}

.package-stack {
  border-top: 1px solid var(--line);
}

.package-row {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 220ms ease, background-color 220ms ease;
}

.package-row:hover {
  padding-left: 0.6rem;
  background: rgba(185, 133, 77, 0.04);
}

.package-name {
  display: grid;
  gap: 0.4rem;
}

.package-name strong {
  font-family: "Fraunces", serif;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 700;
}

.process-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 2rem;
}

.process-heading {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
  align-self: start;
}

.process-timeline {
  display: grid;
  gap: 1.4rem;
}

.process-step {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 1rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}

.step-index {
  font-family: "Fraunces", serif;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--accent);
}

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

.area-pill {
  padding: 0.8rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(22, 33, 31, 0.14);
  background: rgba(255, 253, 248, 0.55);
}

.area-note {
  margin-top: 1.5rem;
  max-width: 44rem;
}

.faq-list {
  display: grid;
  gap: 0.85rem;
}

.faq-list details {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  color: var(--accent);
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list p {
  max-width: 48rem;
  margin-top: 0.85rem;
}

.contact-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  gap: 2rem;
  padding: clamp(1.5rem, 4vw, 2rem);
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.6), rgba(228, 220, 205, 0.92));
  border: 1px solid rgba(22, 33, 31, 0.12);
  box-shadow: var(--shadow);
}

.contact-lines {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.contact-line {
  width: fit-content;
  color: var(--text);
  border-bottom: 1px solid rgba(22, 33, 31, 0.2);
}

.lead-form {
  display: grid;
  gap: 1rem;
}

.lead-form label {
  display: grid;
  gap: 0.45rem;
  font-size: 0.93rem;
  font-weight: 700;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  border: 1px solid rgba(22, 33, 31, 0.14);
  background: rgba(255, 253, 248, 0.88);
  color: var(--text);
  padding: 0.95rem 1rem;
  font: inherit;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: 2px solid rgba(185, 133, 77, 0.4);
  outline-offset: 2px;
}

.form-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem clamp(1rem, 3vw, 2rem) 2.5rem;
  color: var(--muted);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes driftA {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(1.5rem, -1rem, 0) scale(1.04);
  }
}

@keyframes driftB {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-1rem, 1.4rem, 0) scale(0.98);
  }
}

@media (max-width: 1080px) {
  .hero-inner,
  .proof-band,
  .search-copy-grid,
  .process-layout,
  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .hero-rail {
    justify-self: start;
    text-align: left;
  }

  .package-row {
    grid-template-columns: 1fr;
  }

  .process-heading {
    position: static;
  }
}

@media (max-width: 820px) {
  :root {
    --header-h: auto;
  }

  .site-header {
    position: relative;
    flex-wrap: wrap;
    align-items: flex-start;
    padding-block: 1rem 0.9rem;
  }

  .site-nav {
    order: 3;
    flex-wrap: wrap;
    gap: 0.9rem 1.2rem;
    width: 100%;
    padding-top: 0.2rem;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding-top: 2rem;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 15vw, 4.6rem);
  }

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

@media (max-width: 560px) {
  .header-cta {
    width: 100%;
  }

  .hero-actions,
  .btn {
    width: 100%;
  }

  .hero-actions .btn {
    justify-content: center;
  }

  .contact-wrap {
    padding: 1.2rem;
  }
}
