:root {
  --paper: #f6f1e7;
  --paper-deep: #efe7d3;
  --ink: #1e2a24;
  --pine: #2e4b3f;
  --gold: #c2902b;
  --gold-deep: #9a6f1d;
  --line: #d8cdb4;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", sans-serif;
  --ease-out-expo: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-out-expo-alt: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-in-out-quart: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-out-circ: cubic-bezier(0.075, 0.82, 0.165, 1);
  --dur-fast: 0.3s;
  --dur-hover: 0.5s;
  --dur-enter: 0.7s;
  --dur-nav: 0.8s;
  --dur-hero: 1.5s;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  z-index: 50;
}
.skip:focus { top: 1rem; }

section { scroll-margin-top: 96px; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 0.75rem;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1rem; }
a { color: var(--pine); }

.kicker {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--pine);
  margin-bottom: 0.9rem;
}
.kicker::after {
  content: "";
  display: block;
  width: 3.2rem;
  height: 3px;
  background: var(--gold);
  margin-top: 0.55rem;
  transform-origin: left center;
  transform: scaleX(0.3);
  transition: transform var(--dur-hover) var(--ease-out-expo);
}
.is-in .kicker::after { transform: scaleX(1); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.9rem clamp(1rem, 4vw, 2.5rem);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
  white-space: nowrap;
}
.site-header nav { display: flex; gap: 1.4rem; }
.site-header nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  background-image: linear-gradient(currentcolor, currentcolor);
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: left calc(100% - 1px);
  transition: background-size var(--dur-hover) var(--ease-out-expo);
  padding-bottom: 2px;
}
.site-header nav a:hover { background-size: 100% 1px; }

/* Buttons */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.85rem 1.7rem;
  border: 1.5px solid transparent;
  transition: transform var(--dur-fast) var(--ease-out-circ), background-color var(--dur-fast) var(--ease-out-circ), color var(--dur-fast) var(--ease-out-circ), border-color var(--dur-fast) var(--ease-out-circ);
}
.btn:hover { transform: scale(1.03); }
.btn-fill { background: var(--gold); color: var(--ink); border-color: var(--gold-deep); }
.btn-fill:hover { background: var(--gold-deep); color: #fff; }
.btn-ghost { border-color: currentcolor; color: inherit; background: transparent; }
.call-nowrap { white-space: nowrap; }
.site-header .btn { padding: 0.6rem 1.2rem; font-size: 0.95rem; }

/* Hero */
.hero {
  position: relative;
  overflow: clip;
  min-height: min(92vh, 760px);
  display: flex;
  align-items: flex-end;
  color: #fff;
}
.hero-img {
  position: absolute;
  inset: -8% 0;
  height: 116%;
  width: 100%;
  object-fit: cover;
  object-position: 75% 15%;
  opacity: 0;
  transition: opacity var(--dur-hero) var(--ease-out-expo);
}
.hero-img.is-in { opacity: 1; }
.hero-copy {
  position: relative;
  max-width: 38rem;
  margin: clamp(1rem, 4vw, 3rem);
  padding: clamp(1.4rem, 3vw, 2.4rem);
  background: linear-gradient(160deg, rgba(20, 30, 25, 0.88), rgba(20, 30, 25, 0.72));
  border-left: 4px solid var(--gold);
  border-radius: 4px;
}
.hero-copy .kicker { color: var(--gold); }
.hero-copy .kicker::after { background: var(--gold); }
.hero-copy h1 { color: #fff; }
.hero-copy p { color: #f2ede0; }
.hero-copy .btn-ghost { color: #fff; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.2rem 0 0;
}

/* Sections */
section[id]:not(.hero) {
  padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1.2rem, 6vw, 5rem);
  max-width: 72rem;
  margin: 0 auto;
}
.section-head { max-width: 46rem; margin-bottom: 2.5rem; }
.section-head p:last-child { color: var(--pine); }

/* Services river */
.river { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); }
.river-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.4rem, 4vw, 3.5rem);
  align-items: center;
}
.river-row.flip img { order: 2; }
.river-row img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--paper-deep);
}
.river-text h3 { margin-bottom: 0.5rem; }
.river-text p { color: var(--pine); margin: 0; }

/* About */
.about { background: var(--paper-deep); max-width: none !important; }
.about > * { max-width: 72rem; margin-left: auto; margin-right: auto; }
.creed {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 2rem 0 0;
  margin: 0;
}
.creed li {
  border-top: 2px solid var(--gold);
  padding-top: 1rem;
}
.creed strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 600;
}
.creed span { color: var(--pine); font-size: 0.95rem; }

/* FAQ */
.faq-list { max-width: 46rem; }
.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0;
}
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary {
  font-family: var(--serif);
  font-size: 1.2rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  color: var(--gold-deep);
  font-size: 1.5rem;
  line-height: 1;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { color: var(--pine); margin: 0.7rem 0 0; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-bottom: 2rem;
}
.contact-lines p {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.1rem;
}
.contact-lines svg { color: var(--gold-deep); flex: none; }
.contact-lines a { color: var(--ink); font-weight: 600; }
.contact-form {
  display: grid;
  gap: 1rem;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.6rem;
}
.contact-form label { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.95rem; }
.contact-form input, .contact-form textarea {
  font: inherit;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
}
.contact-form input:focus-visible, .contact-form textarea:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 1px;
}
.contact-form .btn { justify-self: start; cursor: pointer; font: inherit; }
.map {
  width: 100%;
  height: 320px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem clamp(1.2rem, 6vw, 5rem) 6rem;
  text-align: center;
  color: var(--pine);
  font-size: 0.95rem;
}
.site-footer a { color: var(--ink); }

/* Call dock */
.call-dock { display: none; }

/* Motion hooks */
[data-hero-img] { opacity: 0; }
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-enter) var(--ease-out-expo), transform var(--dur-enter) var(--ease-out-expo);
}
[data-reveal="cascade"] > * {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity var(--dur-enter) var(--ease-out-expo), transform var(--dur-enter) var(--ease-out-expo);
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal="cascade"].is-in > * { opacity: 1; transform: none; }
.hero-copy[data-reveal="cascade"] > * {
  transform: translateY(50px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-hero-img], [data-reveal], [data-reveal="cascade"] > *, .hero-copy[data-reveal="cascade"] > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .kicker::after { transform: scaleX(1); }
}

@media (max-width: 750px) {
  .site-header nav { display: none; }
  .hero {
    min-height: 100svh;
    align-items: stretch;
  }
  .hero-img { object-position: 68% 8%; }
  .hero-copy {
    align-self: flex-end;
    margin: 0;
    border-left: none;
    border-top: 4px solid var(--gold);
    border-radius: 0;
    padding: 1.2rem 1.2rem 1.4rem;
  }
  .hero-copy h1 { font-size: 1.65rem; }
  .hero-copy > p:nth-of-type(1) {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .river-row { grid-template-columns: 1fr; }
  .river-row.flip img { order: 0; }
  .creed { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .call-dock {
    display: block;
    position: sticky;
    bottom: 0;
    z-index: 20;
    padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
    background: var(--paper);
    border-top: 1px solid var(--line);
    text-align: center;
  }
  .call-dock .btn { width: 100%; padding: 0.8rem 1rem; }
  .site-footer { padding-bottom: 2rem; }
}
