:root {
  --ink: #1f1c19;
  --ink-soft: #5e5850;
  --line: rgba(31, 28, 25, .14);
  --paper: #f6f3ee;
  --paper-alt: #ece6dc;
  --oak: #a87a4a;
  --oak-deep: #8a6038;
  --white: #ffffff;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --gutter: clamp(16px, 6vw, 96px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--ink); color: var(--white); padding: 10px 14px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- top bar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--gutter);
  transition: background .35s var(--ease), box-shadow .35s var(--ease), padding .35s var(--ease);
}
.topbar.is-scrolled {
  background: rgba(246, 243, 238, .92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
  padding-top: 12px; padding-bottom: 12px;
}
.brand { display: grid; gap: 2px; text-decoration: none; }
.brand-name { font-family: var(--serif); font-size: 1.15rem; letter-spacing: .28em; }
.brand-sub { font-size: .68rem; letter-spacing: .26em; text-transform: uppercase; color: var(--oak-deep); }
.nav { display: flex; gap: clamp(14px, 2.4vw, 34px); align-items: center; }
.nav a { text-decoration: none; font-size: .9rem; letter-spacing: .03em; }
.nav a:not(.nav-cta):hover { color: var(--oak-deep); }
.nav-cta { border: 1px solid currentColor; padding: 9px 16px; white-space: nowrap; }
.nav-cta:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* ---------- shared type ---------- */
.eyebrow {
  margin: 0 0 14px; font-size: .74rem; letter-spacing: .28em; text-transform: uppercase; color: var(--oak-deep);
}
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.4rem); line-height: 1.04; letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.9rem); line-height: 1.1; }
h3 { font-size: 1.3rem; }
.lead { margin: 18px 0 30px; font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.6; color: var(--ink-soft); }
.btn {
  display: inline-block; padding: 15px 26px; text-decoration: none; font: inherit; font-size: .95rem; letter-spacing: .03em;
  border: 1px solid var(--ink); cursor: pointer; transition: background .25s, color .25s;
}
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: #3a3530; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- variant 1: autoplay video hero ---------- */
.hero {
  position: relative;
  height: 100vh; height: 100svh; min-height: 520px;
  overflow: hidden;
  background: #ebe7e1;
}
.hero-video, .hero-still {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 55% 50%;
}
.hero-still { opacity: 0; transition: opacity .6s var(--ease); }
.hero.is-static .hero-still { opacity: 1; }
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  /* strong behind the text, then a quick fade so the kitchen itself is not washed out */
  background: linear-gradient(90deg, rgba(246,243,238,.92) 0%, rgba(246,243,238,.78) 20%, rgba(246,243,238,.3) 38%, rgba(246,243,238,0) 50%);
  opacity: 0; transition: opacity 1.4s var(--ease);
}
.hero-copy {
  position: absolute; left: var(--gutter); bottom: clamp(72px, 16vh, 180px);
  max-width: min(560px, 88vw);
  opacity: 0; transform: translateY(18px);
  transition: opacity 1.1s var(--ease) .25s, transform 1.1s var(--ease) .25s;
}
.hero.is-done .hero-shade { opacity: 1; }
.hero.is-done .hero-copy { opacity: 1; transform: none; }
.skip {
  position: absolute; right: var(--gutter); bottom: 28px; z-index: 5;
  font: inherit; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink); background: rgba(255,255,255,.6); border: 1px solid rgba(31,28,25,.25);
  padding: 9px 16px; cursor: pointer; backdrop-filter: blur(6px); transition: opacity .4s;
}
.skip:hover { background: rgba(255,255,255,.9); }
.hero.is-done .skip { opacity: 0; pointer-events: none; }
.scroll-hint {
  position: absolute; left: 50%; bottom: 26px; width: 22px; height: 36px; margin-left: -11px;
  border: 1px solid rgba(31,28,25,.45); border-radius: 12px;
  opacity: 0; transition: opacity 1s var(--ease) 1s;
}
.scroll-hint span {
  position: absolute; left: 50%; top: 7px; width: 2px; height: 7px; margin-left: -1px;
  background: var(--ink); border-radius: 1px; animation: hint 1.8s infinite;
}
.hero.is-done .scroll-hint { opacity: 1; }
@keyframes hint { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(10px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- variant 2: scroll-driven hero ---------- */
.scrub { position: relative; height: 520vh; background: #ebe7e1; }
.scrub-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.scrub-canvas, .scrub-fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.scrub-fallback { object-fit: cover; object-position: 55% 50%; opacity: 0; }
.scrub-shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(246,243,238,.9) 0%, rgba(246,243,238,.55) 30%, rgba(246,243,238,0) 55%);
}
.scrub-intro, .scrub-outro {
  position: absolute; left: var(--gutter); bottom: clamp(80px, 18vh, 200px); max-width: min(560px, 88vw);
  opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease);
  pointer-events: none;
}
.scrub-outro h2 { margin-bottom: 28px; }
.scrub-hint-text { margin: 22px 0 0; color: var(--ink-soft); font-size: .95rem; }
.scrub-hint-text::after { content: " \2193"; }
.scrub-intro.is-active, .scrub-outro.is-active { opacity: 1; transform: none; pointer-events: auto; }
.scrub-captions {
  position: absolute; left: var(--gutter); bottom: clamp(80px, 18vh, 200px);
  list-style: none; margin: 0; padding: 0; display: grid; gap: 12px;
}
.scrub-captions li {
  font-family: var(--serif); font-size: clamp(1.05rem, 1.6vw, 1.35rem); color: var(--ink-soft);
  opacity: .32; transform: translateX(0); transition: opacity .45s var(--ease), color .45s, transform .45s var(--ease);
}
.scrub-captions li span { display: inline-block; width: 2.6em; font-family: var(--sans); font-size: .72rem; letter-spacing: .2em; color: var(--oak-deep); }
.scrub-captions li.is-active { opacity: 1; color: var(--ink); transform: translateX(8px); }
.scrub[data-step-intro] .scrub-captions, .scrub .scrub-captions { transition: opacity .5s var(--ease); }
.scrub-stage:has(.scrub-intro.is-active) .scrub-captions,
.scrub-stage:has(.scrub-outro.is-active) .scrub-captions { opacity: 0; }
.scrub-progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 32px; height: 1px; background: var(--line); }
.scrub-progress span { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.scrub.is-static { height: 100vh; height: 100svh; }
.scrub.is-static .scrub-canvas, .scrub.is-static .scrub-captions, .scrub.is-static .scrub-intro, .scrub.is-static .scrub-progress { display: none; }
.scrub.is-static .scrub-fallback { opacity: 1; }
.scrub.is-static .scrub-outro { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- content ---------- */
.section { padding: clamp(72px, 10vw, 140px) var(--gutter); }
.section-alt { background: var(--paper-alt); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-lead { color: var(--ink-soft); margin: 16px 0 0; max-width: 60ch; line-height: 1.65; }

.facts {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}
.fact { padding: clamp(26px, 4vw, 44px) var(--gutter); border-right: 1px solid var(--line); display: grid; gap: 6px; }
.fact:last-child { border-right: 0; }
.fact strong { font-family: var(--serif); font-weight: 400; font-size: clamp(1.25rem, 2vw, 1.6rem); }
.fact span { color: var(--ink-soft); font-size: .92rem; line-height: 1.5; }
.facts .fact { padding-left: clamp(16px, 3vw, 40px); padding-right: clamp(16px, 3vw, 40px); }
.facts .fact:first-child { padding-left: var(--gutter); }

.services { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.service { padding: 34px 28px 38px 0; border-bottom: 1px solid var(--line); }
.service + .service { padding-left: 28px; }
.service:nth-child(3n + 1) { padding-left: 0; }
.service:not(:nth-child(3n)) { border-right: 1px solid var(--line); }
/* four services: one row on wide screens, two on tablets, one on phones */
.services-4 { grid-template-columns: repeat(4, 1fr); }
.services-4 .service, .services-4 .service + .service, .services-4 .service:nth-child(3n + 1) {
  padding: 34px 24px 38px; border-right: 1px solid var(--line);
}
.services-4 .service:first-child { padding-left: 0; }
.services-4 .service:last-child { border-right: 0; }
.service-no { display: block; font-size: .72rem; letter-spacing: .22em; color: var(--oak-deep); margin-bottom: 18px; }
.service h3 { margin-bottom: 10px; }
.service p { margin: 0; color: var(--ink-soft); line-height: 1.6; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2.5vw, 36px); }
.step-img { margin: 0 0 20px; aspect-ratio: 4 / 3; overflow: hidden; background: #ddd5c8; }
.step-img img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; transition: transform 1.2s var(--ease); }
.step:hover .step-img img { transform: scale(1.04); }
.step-no { display: block; font-size: .72rem; letter-spacing: .22em; color: var(--oak-deep); margin-bottom: 8px; }
.step h3 { margin-bottom: 8px; }
.step p { margin: 0; color: var(--ink-soft); line-height: 1.6; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(160px, 18vw, 260px); gap: 14px; }
.gallery-item { margin: 0; position: relative; overflow: hidden; background: #ddd5c8; }
.gallery-wide { grid-column: span 2; grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px; font-size: .88rem; color: var(--white);
  background: linear-gradient(0deg, rgba(20,18,16,.6), rgba(20,18,16,0));
}
.gallery-slot {
  display: grid; place-items: center; color: var(--ink-soft); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  background: repeating-linear-gradient(135deg, #e6dfd3 0 14px, #e1d9cc 14px 28px);
}

.contact { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: start; background: var(--paper-alt); }
.contact-phone {
  display: inline-block; margin-top: 26px; font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.4rem);
  text-decoration: none; border-bottom: 1px solid var(--oak);
}
.contact-phone:hover { color: var(--oak-deep); }
.contact-facts { margin: 34px 0 0; display: grid; gap: 12px; }
.contact-facts div { display: grid; grid-template-columns: 70px 1fr; gap: 12px; }
.contact-facts dt { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--oak-deep); padding-top: 3px; }
.contact-facts dd { margin: 0; color: var(--ink-soft); }
.contact-form { display: grid; gap: 18px; background: var(--paper); padding: clamp(22px, 3vw, 40px); }
.contact-form label { display: grid; gap: 8px; font-size: .82rem; letter-spacing: .08em; color: var(--ink-soft); }
.contact-form input, .contact-form textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--line); padding: 8px 0; border-radius: 0;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-bottom-color: var(--ink); }
.contact-form [aria-invalid] { border-bottom-color: #a33a2a; }
.contact-form select {
  font: inherit; font-size: 1rem; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--line); padding: 8px 0; border-radius: 0;
}
.contact-form select:focus { outline: none; border-bottom-color: var(--ink); }
.contact-form .btn { justify-self: start; }
.form-privacy { margin: -6px 0 0; font-size: .8rem; color: var(--ink-soft); }
.contact-facts dd a { text-decoration: none; border-bottom: 1px solid var(--line); }
.form-note { margin: 0; min-height: 1.4em; font-size: .9rem; color: var(--ink-soft); }

.footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding: 28px var(--gutter) 84px; font-size: .86rem; color: var(--ink-soft); border-top: 1px solid var(--line);
}
.footer a { text-decoration: none; }

/* demo-only switcher between the two intro variants */
.demo-switch {
  position: fixed; right: 16px; bottom: 16px; z-index: 30;
  display: flex; gap: 4px; align-items: center; padding: 6px 6px 6px 12px;
  background: rgba(31,28,25,.86); color: #f6f3ee; font-size: .78rem; border-radius: 999px;
  backdrop-filter: blur(6px);
}
.demo-switch { transition: opacity .3s, transform .3s; }
.demo-switch.is-hidden { opacity: 0; transform: translateY(12px); pointer-events: none; }
.demo-switch a { text-decoration: none; padding: 6px 12px; border-radius: 999px; }
.demo-switch a[aria-current] { background: #f6f3ee; color: var(--ink); }

@media (max-width: 1000px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .facts .fact:nth-child(3) { padding-left: var(--gutter); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .service, .service + .service, .service:nth-child(3n + 1) { padding: 30px 22px 32px 0; border-right: 0; }
  .service:nth-child(2n) { padding-left: 22px; }
  .service:nth-child(2n + 1) { border-right: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; }
  .services-4 { grid-template-columns: repeat(2, 1fr); }
  .services-4 .service, .services-4 .service + .service, .services-4 .service:nth-child(3n + 1) { padding: 30px 22px 32px; }
  .services-4 .service:nth-child(2n + 1) { padding-left: 0; border-right: 1px solid var(--line); }
  .services-4 .service:nth-child(2n) { border-right: 0; }
}

@media (max-width: 700px) {
  .nav a:not(.nav-cta) { display: none; }
  .brand-name { font-size: 1rem; letter-spacing: .22em; }
  .brand-sub { font-size: .6rem; }
  .nav-cta { padding: 8px 12px; font-size: .82rem; }
  .hero-shade, .scrub-shade {
    background: linear-gradient(0deg, rgba(246,243,238,.96) 0%, rgba(246,243,238,.86) 40%, rgba(246,243,238,0) 72%);
  }
  .hero-copy { bottom: 64px; }
  .skip { bottom: 18px; }
  .scroll-hint { display: none; }
  .scrub-intro, .scrub-outro, .scrub-captions { bottom: 70px; }
  .facts { grid-template-columns: 1fr; }
  .fact, .facts .fact, .facts .fact:nth-child(3) { border-right: 0; border-bottom: 1px solid var(--line); padding-left: var(--gutter); }
  .services { grid-template-columns: 1fr; }
  .service, .service + .service, .service:nth-child(2n), .service:nth-child(3n + 1) { padding: 26px 0; border-right: 0; }
  .service:nth-child(2n + 1) { border-right: 0; }
  .services-4 { grid-template-columns: 1fr; }
  .services-4 .service, .services-4 .service + .service, .services-4 .service:nth-child(n) { padding: 26px 0; border-right: 0; }
  .steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; gap: 10px; }
  .footer { padding-bottom: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy, .hero-shade, .hero-still, .scrub-intro, .scrub-outro, .scrub-captions li { transition: none; }
  .scroll-hint span { animation: none; }
  .step:hover .step-img img { transform: none; }
}
