:root {
  --dark: #4C3430;
  --dark-deep: #3A2724;
  --warm: #7F5A40;
  --warm-hover: #684832;
  --warm-light: #C9A27E;
  --cream: #F5EFE6;
  --white: #FFFFFF;
  --text: #3A2C29;
  --muted: #6E5D55;
  --line: #E4D9CB;
  --serif: "Marcellus", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 4px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--text);
  font-family: var(--sans); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--warm); }
a:hover { color: var(--warm-hover); }
:focus-visible { outline: 2px solid var(--warm); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--dark); line-height: 1.12; margin: 0 0 .5em; }
h1 { font-size: clamp(2.5rem, 6.4vw, 5rem); letter-spacing: -.005em; }
h2 { font-size: clamp(2.1rem, 4.8vw, 3.6rem); }
h3 { font-size: 1.55rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 32px; }

.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--warm); margin-bottom: 1.1rem;
}

/* ---------- Header (always white: logo never on dark) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--white);
  transition: box-shadow .3s var(--ease);
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(76, 52, 48, .10); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.logo img { width: 176px; height: auto; }
nav { display: flex; align-items: center; gap: 32px; }
nav a {
  position: relative; color: var(--dark); text-decoration: none; font-size: .95rem; font-weight: 500;
}
nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--warm); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
nav a:not(.nav-cta):hover::after { transform: scaleX(1); }
nav a:hover { color: var(--warm); }
.nav-cta {
  background: var(--warm); color: var(--white) !important; padding: 10px 22px; border-radius: var(--radius);
  transition: background .25s;
}
.nav-cta:hover { background: var(--warm-hover); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--warm); color: var(--white);
  padding: 16px 30px; border-radius: var(--radius); border: 1px solid var(--warm);
  font-weight: 500; text-decoration: none;
  transition: background .25s, transform .25s var(--ease), box-shadow .25s;
}
.btn:hover { background: var(--warm-hover); border-color: var(--warm-hover); color: var(--white); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .7); color: var(--white); }
.btn-ghost:hover { background: var(--white); border-color: var(--white); color: var(--dark); }
.btn-lg { padding: 19px 36px; font-size: 1.08rem; }

/* ---------- Hero: full-width photo ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: calc(100vh - 76px); min-height: calc(100svh - 76px);
  display: flex; align-items: flex-end;
  padding: 120px 0 110px; color: var(--white);
  background: var(--dark-deep);
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 62%;
  animation: heroZoom 9s var(--ease) both;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(42, 27, 24, .82) 0%, rgba(42, 27, 24, .55) 45%, rgba(42, 27, 24, .15) 100%),
    linear-gradient(0deg, rgba(42, 27, 24, .55) 0%, rgba(42, 27, 24, 0) 45%);
}
.hero-inner { position: relative; z-index: 1; }
.hero h1 { color: var(--white); max-width: 13em; }
.hero h1 em { font-style: normal; color: var(--warm-light); }
.hero .eyebrow { color: var(--warm-light); }
.hero .lead { font-size: 1.2rem; color: rgba(255, 255, 255, .86); max-width: 33em; margin-bottom: 2.4rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.scroll-cue {
  position: absolute; z-index: 1; left: 50%; bottom: 28px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1px solid rgba(255, 255, 255, .6); border-radius: 14px;
}
.scroll-cue span {
  position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px;
  background: var(--white); border-radius: 2px; animation: cue 2s ease-in-out infinite;
}

@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

.hero-anim { animation: fadeUp 1s var(--ease) both; animation-delay: var(--d, 0s); }

/* ---------- Promise band ---------- */
.band { background: var(--warm); color: var(--white); padding: 56px 0; }
.band-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.band-item { display: flex; align-items: center; gap: 20px; }
.band-item + .band-item { border-left: 1px solid rgba(255, 255, 255, .25); padding-left: 32px; }
.band-big { font-family: var(--serif); font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: 1; white-space: nowrap; }
.band-label { font-size: .95rem; line-height: 1.45; color: rgba(255, 255, 255, .88); }

/* ---------- Sections ---------- */
.section { padding: 128px 0; }
.section-head { margin-bottom: 64px; }
.section-head h2 { margin-bottom: 0; }
.section-intro { max-width: 38em; color: var(--muted); font-size: 1.12rem; margin: 1.4rem 0 0; }

/* Cards */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.card {
  position: relative; overflow: hidden;
  background: var(--white); padding: 56px 48px 48px; border-radius: var(--radius);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: var(--warm); transform: scaleX(.18); transform-origin: left; transition: transform .6s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(76, 52, 48, .12); }
.card:hover::before { transform: scaleX(1); }
.card-num {
  display: block; font-family: var(--serif); font-size: 4.5rem; line-height: 1;
  color: var(--cream); -webkit-text-stroke: 1px var(--warm-light); margin-bottom: 1.4rem;
}
.card h3 { font-size: 2rem; }
.card p { color: var(--muted); }
.card-for { margin: 1.8rem 0 0; padding-top: 1.3rem; border-top: 1px solid var(--line); font-size: .95rem; color: var(--dark) !important; font-weight: 500; }

/* ---------- How it works (dark) ---------- */
.section-dark { background: var(--dark); color: #E9DFD2; }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark .eyebrow { color: var(--warm-light); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px; }
.steps li { position: relative; padding-top: 88px; }
.steps li::before {
  content: ""; position: absolute; top: 31px; left: 64px; right: -32px; height: 1px;
  background: rgba(233, 223, 210, .35);
  transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease); transition-delay: calc(var(--d, 0s) + .3s);
}
.steps li:last-child::before { display: none; }
.step-num {
  position: absolute; top: 0; left: 0;
  width: 62px; height: 62px; border-radius: 50%;
  border: 1px solid var(--warm-light); color: var(--warm-light);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 1.6rem;
  transition: background .3s, color .3s;
}
.steps li:hover .step-num { background: var(--warm-light); color: var(--dark); }
.steps h3 { font-size: 1.35rem; }
.steps p { color: rgba(233, 223, 210, .78); font-size: .95rem; margin: 0; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 250px; gap: 16px;
  grid-template-areas:
    "a b c d"
    "a f e d"
    "g g e d";
}
.gallery > :nth-child(1) { grid-area: a; }
.gallery > :nth-child(2) { grid-area: b; }
.gallery > :nth-child(3) { grid-area: c; }
.gallery > :nth-child(4) { grid-area: d; }
.gallery > :nth-child(5) { grid-area: e; }
.gallery > :nth-child(6) { grid-area: f; }
.gallery > :nth-child(7) { grid-area: g; }

.g-item { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--white); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.g-item::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(42, 27, 24, .55) 0%, rgba(42, 27, 24, 0) 45%);
  opacity: 0; transition: opacity .5s var(--ease);
}
.g-item:hover img { transform: scale(1.06); }
.g-item:hover::after { opacity: 1; }
.g-item figcaption {
  position: absolute; z-index: 1; left: 14px; bottom: 14px;
  background: rgba(255, 255, 255, .94); color: var(--dark);
  font-size: .82rem; font-weight: 500; padding: 6px 13px; border-radius: 2px;
  transition: transform .5s var(--ease);
}
.g-item:hover figcaption { transform: translateY(-4px); }
.g-text {
  padding: 36px; display: flex; flex-direction: column; justify-content: center;
  background: var(--dark); color: #E9DFD2;
}
.g-text::after { display: none; }
.g-text h3 { color: var(--white); font-size: 2rem; margin-bottom: .35em; }
.g-text p { color: rgba(233, 223, 210, .8); margin: 0; max-width: 30em; }

/* ---------- Contact ---------- */
.contact { background: var(--white); text-align: center; }
.contact-inner { max-width: 820px; }
.contact h2 { font-size: clamp(2.3rem, 5.4vw, 4rem); margin-bottom: 0; }
.contact .section-intro { margin: 1.4rem auto 2.6rem; }
.contact-actions { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.email-link { font-size: 1.1rem; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

/* ---------- Footer: dark, text only ---------- */
.site-footer { background: var(--dark); color: #E9DFD2; padding: 56px 0; text-align: center; }
.footer-name { font-family: var(--serif); font-size: 1.6rem; letter-spacing: .14em; color: var(--white); margin-bottom: .4rem; }
.site-footer p { margin: 0 0 .3rem; font-size: .92rem; }
.footer-small { opacity: .7; font-size: .82rem !important; margin-top: .9rem !important; }

/* ---------- Scroll reveal (only when JS runs) ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(32px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].in { opacity: 1; transform: none; }
/* steps: reveal each step in sequence, then draw the connecting line */
.js .steps[data-reveal] { opacity: 1; transform: none; }
.js .steps li { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .steps.in li { opacity: 1; transform: none; }
.steps.in li::before, html:not(.js) .steps li::before { transform: scaleX(1); }

/* ---------- Tablet ---------- */
@media (max-width: 1000px) {
  .steps { grid-template-columns: 1fr 1fr 1fr; row-gap: 56px; }
  .steps li:nth-child(3)::before { display: none; }
  .band-inner { grid-template-columns: 1fr; gap: 24px; }
  .band-item + .band-item { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255, 255, 255, .25); padding-top: 24px; }
  .gallery {
    grid-template-columns: 1fr 1fr; grid-auto-rows: 220px;
    grid-template-areas: "a d" "a d" "b c" "e f" "e f" "g g";
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .header-inner { min-height: 64px; }
  .logo img { width: 136px; }
  nav { gap: 0; }
  nav a:not(.nav-cta) { display: none; }
  .nav-cta { padding: 8px 16px; font-size: .9rem; }
  html { scroll-padding-top: 68px; }

  .hero { min-height: calc(100svh - 64px); padding: 96px 0 88px; }
  .hero-bg img { object-position: 60% 60%; }
  .hero-bg::after {
    background: linear-gradient(0deg, rgba(42, 27, 24, .9) 0%, rgba(42, 27, 24, .6) 55%, rgba(42, 27, 24, .25) 100%);
  }
  .hero .lead { font-size: 1.05rem; }
  .hero-actions .btn { flex: 1 1 100%; text-align: center; }
  .scroll-cue { display: none; }

  .band { padding: 40px 0; }
  .band-item { gap: 16px; }

  .section { padding: 88px 0; }
  .section-head { margin-bottom: 44px; }
  .cards { grid-template-columns: 1fr; gap: 20px; }
  .card { padding: 40px 26px 32px; }
  .card-num { font-size: 3.4rem; }
  .card h3 { font-size: 1.7rem; }

  .steps { grid-template-columns: 1fr; gap: 0; row-gap: 0; }
  .steps li { padding: 4px 0 40px 84px; min-height: 62px; }
  .steps li::before {
    display: block !important; top: 62px; bottom: 0; left: 31px; right: auto; width: 1px; height: auto;
    transform: scaleY(0); transform-origin: top;
  }
  .steps.in li::before, html:not(.js) .steps li::before { transform: scaleY(1); }
  .steps li:last-child::before { display: none !important; }
  .steps li:last-child { padding-bottom: 0; }

  .gallery { grid-auto-rows: 170px; gap: 10px; }
  .g-text { padding: 26px; }
  .g-text h3 { font-size: 1.7rem; }
  .btn-lg { width: 100%; max-width: 380px; }
}

/* ---------- Respect "reduce motion" setting ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal], .js .steps li { opacity: 1 !important; transform: none !important; }
  .steps li::before { transform: none !important; }
}
