/* =================================================
   BUNARO COFFEE — full stylesheet
   Editorial, asymmetric, restrained motion.
   Brand brief explicitly names Fraunces + the warm-earth palette
   (overrides taste-skill Sections 4.1 & 4.2 defaults).
   ================================================= */

/* ---------- Tokens ---------- */
:root {
  --espresso: #2A1A12;
  --terracotta: #B5532A;
  --cherry: #9E3324;
  --ochre: #CB8F3E;
  --sand: #F2E8D6;
  --bone: #FBF6EC;
  --sidama-green: #5C6B43;
  --clay: #6B4A2E;

  --bg: var(--sand);
  --surface: var(--bone);
  --ink: var(--espresso);
  --ink-soft: #4a3528;
  --rule: rgba(42, 26, 18, 0.14);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Fluid type scale */
  --fs-eyebrow: 0.78rem;
  --fs-body: clamp(1.0625rem, 0.99rem + 0.35vw, 1.15rem);
  --fs-sub: clamp(1.125rem, 1rem + 0.6vw, 1.3125rem);
  --fs-h3: clamp(1.2rem, 1.05rem + 0.6vw, 1.4rem);
  --fs-h2: clamp(2rem, 1.4rem + 2.6vw, 3.5rem);
  --fs-h1: clamp(2.5rem, 1.6rem + 4.2vw, 5rem);

  /* Shape lock: small radius for surfaces, full pill for buttons */
  --radius: 4px;
  --radius-pill: 999px;

  --header-h: 72px;
  --container: 1280px;
  --gutter: clamp(1.25rem, 1rem + 2vw, 2.5rem);

  --easing: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.014em;
}
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* ---------- A11y ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  background: var(--espresso);
  color: var(--bone);
  padding: 10px 14px;
  border-radius: var(--radius);
  z-index: 200;
  font-weight: 600;
  transition: top 0.2s var(--easing);
}
.skip-link:focus { top: 12px; }
:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section {
  padding-block: clamp(4rem, 3rem + 5vw, 7.5rem);
  position: relative;
}
.section-head {
  max-width: 760px;
  margin: 0 auto 3rem;
  text-align: center;
}
.section-head-dark { color: var(--bone); }
.section-lede {
  font-size: var(--fs-sub);
  color: var(--ink-soft);
  margin-top: 1rem;
}
.section-lede.light { color: rgba(251, 246, 236, 0.82); }

/* Sentinel for header-shrink observer (not rendered) */
#headerSentinel {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(242, 232, 214, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.25s var(--easing),
              border-color 0.25s var(--easing);
}
.site-header.is-scrolled {
  background: rgba(251, 246, 236, 0.92);
  border-bottom-color: var(--rule);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
  transition: height 0.25s var(--easing);
}
.site-header.is-scrolled .header-inner { height: 60px; }

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  font-family: var(--font-display);
  color: var(--espresso);
  text-decoration: none;
}
.wordmark-strong {
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.18em;
}
.wordmark-soft {
  font-style: italic;
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--terracotta);
}
.wordmark-light { color: var(--bone); }
.wordmark-light .wordmark-soft { color: var(--ochre); }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s var(--easing);
}
.nav a:not(.btn):hover { color: var(--terracotta); }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  background: transparent; border: 0; padding: 0; position: relative;
}
.nav-toggle span {
  display: block;
  position: absolute;
  left: 8px; right: 8px;
  height: 2px;
  background: var(--espresso);
  border-radius: 2px;
  transition: transform 0.25s var(--easing),
              opacity 0.2s var(--easing),
              top 0.25s var(--easing);
}
.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 25px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem var(--gutter) 1.5rem;
  background: var(--bone);
  border-top: 1px solid var(--rule);
}
.mobile-nav a {
  text-decoration: none;
  color: var(--ink);
  padding: 0.65rem 0;
  font-weight: 500;
  border-bottom: 1px solid var(--rule);
}
.mobile-nav a.btn { border: 0; margin-top: 0.5rem; }

@media (max-width: 880px) {
  .nav { display: none; }
  .nav-toggle { display: block; }
  .site-header.nav-open .mobile-nav { display: flex; }
}

/* ---------- Type primitives ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1.25rem;
}
.display { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em; }
.display em { font-style: italic; font-weight: 400; color: var(--clay); }
.display.light em { color: var(--ochre); }
.display-xl { font-size: var(--fs-h1); line-height: 1.06; }
.display-lg { font-size: var(--fs-h2); line-height: 1.1; padding-bottom: 0.1em; }
.display.light { color: var(--bone); }
.lede-soft { font-size: var(--fs-sub); color: var(--ink-soft); max-width: 56ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background 0.2s var(--easing),
              color 0.2s var(--easing),
              transform 0.2s var(--easing),
              border-color 0.2s var(--easing);
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--terracotta);
  color: var(--bone);
}
.btn-primary:hover { background: var(--ochre); color: var(--espresso); }
.btn-outline-light {
  color: var(--bone);
  border-color: rgba(251, 246, 236, 0.55);
}
.btn-outline-light:hover {
  background: var(--bone);
  color: var(--espresso);
  border-color: var(--bone);
}
.btn-sm { padding: 0.6rem 1rem; font-size: 0.92rem; }
.btn-lg { padding: 1.05rem 1.7rem; font-size: 1.05rem; }
.link-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--espresso);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(42, 26, 18, 0.35);
  padding-bottom: 2px;
  transition: color 0.2s var(--easing),
              border-color 0.2s var(--easing);
}
.link-cta:hover { color: var(--terracotta); border-color: var(--terracotta); }
.link-cta svg { transition: transform 0.25s var(--easing); }
.link-cta:hover svg { transform: translateX(3px); }

/* =================================================
   1 · HERO — asymmetric split
   ================================================= */
.hero {
  background: var(--bg);
  min-height: calc(100dvh - var(--header-h) - 1px);
  display: flex;
  align-items: center;
  padding-block: clamp(1.5rem, 4vw, 3rem);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  width: 100%;
}
@media (max-width: 879px) {
  .hero {
    height: calc(100dvh - var(--header-h) - 1px);
    min-height: 0;
    padding-block: 1rem;
  }
  .hero-grid {
    grid-template-rows: auto minmax(0, 1fr);
    gap: 1.25rem;
    height: 100%;
  }
  .hero .eyebrow { margin-bottom: 0.8rem; }
  .hero-sub { margin-top: 1rem; }
  .hero-cta {
    gap: 1rem;
    margin-top: 1.35rem;
  }
  .hero-figure {
    height: 100%;
    min-height: 0;
    overflow: hidden;
    border-radius: var(--radius);
  }
  .hero-img {
    height: 100%;
    aspect-ratio: auto;
    object-position: center 48%;
  }
}
@media (min-width: 880px) {
  .hero {
    height: calc(100dvh - var(--header-h) - 1px);
    min-height: 0;
    padding-block: clamp(1.25rem, 3vh, 2.5rem);
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1.28fr) minmax(300px, 0.72fr);
    gap: clamp(2.5rem, 4vw, 4rem);
    height: 100%;
  }
}

.hero-copy {
  max-width: 44rem;
  opacity: 0;
  transform: translateY(12px);
  animation: hero-rise 0.9s var(--easing) 0.05s forwards;
}
.hero-headline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.5rem, 2rem + 3vw, 4.75rem);
  line-height: 1.05;
  letter-spacing: -0.022em;
  color: var(--ink);
  padding-bottom: 0.15em;
}
.hero-headline-em {
  display: block;
  line-height: 1.12;          /* descender clearance for italic 'roastery' */
  padding-bottom: 0.18em;
}
.hero-headline em {
  font-style: italic;
  font-weight: 400;
  color: var(--clay);
}
.hero-sub {
  margin-top: 1.2rem;
  font-size: var(--fs-sub);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 38ch;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1.75rem;
}

.hero-figure {
  position: relative;
  margin: 0;
  opacity: 0;
  transform: translateY(12px) scale(0.99);
  animation: hero-rise 1.1s var(--easing) 0.2s forwards;
}
.hero-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--clay);
  box-shadow:
    0 1px 0 rgba(42, 26, 18, 0.06),
    0 30px 60px -30px rgba(42, 26, 18, 0.35);
}
@media (min-width: 880px) {
  .hero-figure {
    height: min(100%, 680px);
    justify-self: end;
    width: min(100%, 500px);
  }
  .hero-img {
    height: 100%;
    aspect-ratio: auto;
  }
}
.hero-img-caption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.45rem 0.8rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone);
  background: rgba(42, 26, 18, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: var(--radius);
}
@keyframes hero-rise {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Trust band */
.trust-band {
  background: var(--bone);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.trust-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.9rem 1.5rem;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.trust-sep {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--terracotta);
  opacity: 0.7;
}

/* =================================================
   2 · FOUNDER STORY + LINEAGE THREAD
   ================================================= */
.story { background: var(--bg); }
.story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 3vw, 3.5rem);
  align-items: start;
}
@media (min-width: 980px) {
  .story-grid {
    grid-template-columns: 1.05fr 0.4fr 0.95fr;
    grid-template-areas: "copy lineage image";
  }
  .story-copy { grid-area: copy; }
  .lineage { grid-area: lineage; }
  .story-image { grid-area: image; }
}

.story-copy p {
  color: var(--ink-soft);
  max-width: 56ch;
  font-size: var(--fs-sub);
  line-height: 1.55;
}
.signature {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--clay);
  margin-top: 1.25rem;
}

.story-image {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(42, 26, 18, 0.3);
  position: relative;
}
.story-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.story-image figcaption {
  font-size: 0.78rem;
  font-style: italic;
  color: var(--clay);
  padding: 0.65rem 0.85rem;
  background: var(--bone);
  border-top: 1px solid var(--rule);
}

/* --- THE LINEAGE THREAD (signature element) --- */
.lineage {
  --line-x: 14px;
  --dot-size: 18px;
  position: relative;
  min-height: 380px;
  padding: 1.25rem 0 1.5rem;
}
.lineage-line {
  position: absolute;
  top: 1.25rem;
  bottom: 1.5rem;
  left: var(--line-x);
  width: 2px;
  background: var(--terracotta);
  border-radius: 2px;
  transform-origin: top center;
  transform: scaleY(0);
  transition: transform 1.6s var(--easing);
}
.lineage.in-view .lineage-line { transform: scaleY(1); }

.lineage-nodes {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.25rem;
  min-height: 340px;
}
.lineage-node {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s var(--easing), transform 0.6s var(--easing);
  transition-delay: calc(var(--i) * 380ms + 400ms);
}
.lineage.in-view .lineage-node { opacity: 1; transform: translateY(0); }
.lineage-node .dot {
  width: var(--dot-size);
  height: var(--dot-size);
  border-radius: 50%;
  background: var(--terracotta);
  box-shadow: 0 0 0 5px rgba(181, 83, 42, 0.15);
  flex-shrink: 0;
  /* line center sits at 15px; dot is 18px → margin-left 6px aligns dot center on line */
  margin-left: 6px;
}
.lineage-node strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.lineage-eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 2px;
}

/* =================================================
   3 · WHY BUNARO — 4 numbered cards (2x2)
   ================================================= */
.why { background: var(--surface); }
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .why-grid { grid-template-columns: repeat(4, 1fr); } }
.why-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem 1.6rem;
  border: 1px solid var(--rule);
  position: relative;
  transition: transform 0.3s var(--easing),
              box-shadow 0.3s var(--easing);
}
.why-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -22px rgba(42, 26, 18, 0.22);
}
.why-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--terracotta);
  display: block;
  margin-bottom: 0.75rem;
  letter-spacing: 0.04em;
}
.why-card h3 {
  font-size: var(--fs-h3);
  margin-bottom: 0.5rem;
  color: var(--ink);
}
.why-card p { color: var(--ink-soft); font-size: 1rem; margin: 0; }

/* =================================================
   4 · LOTS — split: image left, list right
   ================================================= */
.lots { background: var(--bg); }
.lots-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
@media (min-width: 980px) {
  .lots-grid { grid-template-columns: 0.85fr 1.15fr; }
}
.lots-image {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(42, 26, 18, 0.3);
}
.lots-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
@media (min-width: 980px) {
  .lots-image {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
  .lots-image img { aspect-ratio: 3 / 4; }
}
.lots-content header { margin-bottom: 2rem; }

/* Lot list - grouped rows, sparse rule (NOT border-t+border-b on every row) */
.lot-list {
  margin-top: 1rem;
  border-top: 1px solid var(--rule);
}
.lot {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 720px) {
  .lot {
    grid-template-columns: 1.4fr 1.8fr 0.5fr;
    align-items: baseline;
    gap: 1.5rem;
  }
}
.lot-name strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.lot-sub {
  font-size: 0.85rem;
  color: var(--clay);
  letter-spacing: 0.04em;
}
.lot-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.tag {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  background: rgba(92, 107, 67, 0.12);
  color: var(--sidama-green);
}
.lot-notes {
  font-style: italic;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 1.02rem;
}
.lot-score {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--cherry);
}
@media (min-width: 720px) {
  .lot-score { text-align: right; }
}
.footnote {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--clay);
  font-style: italic;
}

/* =================================================
   5 · HOW IT WORKS — vertical timeline
   ================================================= */
.how { background: var(--surface); }
.timeline {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  padding-left: 1.5rem;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 27px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent 0,
    var(--terracotta) 6%,
    var(--terracotta) 94%,
    transparent 100%
  );
  border-radius: 2px;
}
.timeline-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.25rem 0;
  position: relative;
}
.timeline-num {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--terracotta);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--terracotta);
}
.timeline-step h3 {
  font-size: var(--fs-h3);
  margin: 0.5rem 0 0.4rem;
}
.timeline-step p {
  color: var(--ink-soft);
  margin: 0;
  font-size: 1rem;
}
.how-cta {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

/* =================================================
   6 · TRACEABILITY — full-width image + horizontal flow
   ================================================= */
.trace { background: var(--bg); }
.trace-image {
  margin: 0 0 3rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(42, 26, 18, 0.3);
}
.trace-image img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
}
.trace-thread {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  position: relative;
  margin-bottom: 2.5rem;
}
@media (min-width: 900px) {
  .trace-thread {
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
  }
  .trace-thread::before {
    content: "";
    position: absolute;
    top: 28px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: repeating-linear-gradient(
      to right,
      var(--terracotta) 0 8px,
      transparent 8px 16px
    );
    z-index: 0;
  }
}
.trace-step {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 0.5rem;
  color: var(--terracotta);
}
.trace-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--terracotta);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  box-shadow: 0 0 0 8px var(--bg);
}
.trace-step strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.trace-step span {
  display: block;
  font-size: 0.88rem;
  color: var(--clay);
  margin-top: 2px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
.badges li {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.55rem 1rem;
  border: 1px solid var(--terracotta);
  border-radius: 999px;
  color: var(--terracotta);
  background: var(--bone);
}

/* =================================================
   7 · TEAM — 3 portrait cards
   ================================================= */
.team { background: var(--surface); }
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 760px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }

.team-card {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--rule);
  transition: transform 0.3s var(--easing),
              box-shadow 0.3s var(--easing);
}
.team-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -22px rgba(42, 26, 18, 0.22);
}
.team-card img {
  width: 100%;
  height: clamp(240px, 24vw, 310px);
  object-fit: cover;
  background: var(--clay);
}
.team-card:nth-child(1) img { object-position: center 34%; }
.team-card:nth-child(2) img { object-position: center 30%; }
.team-card:nth-child(3) img { object-position: center 28%; }

@media (max-width: 759px) {
  .team-card img {
    height: min(78vw, 300px);
  }
}
.team-body { padding: 1.5rem; }
.team-body h3 {
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
}
.team-body .role {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
}
.team-body p:last-child {
  color: var(--ink-soft);
  font-size: 0.98rem;
  margin: 0;
}

/* =================================================
   8 · BOOKING — single allowed theme inversion
   ================================================= */
.booking {
  background: var(--espresso);
  color: var(--bone);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.booking::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 80% 10%, rgba(203, 143, 62, 0.16), transparent 70%),
    radial-gradient(50% 40% at 10% 90%, rgba(158, 51, 36, 0.2), transparent 70%);
  z-index: -1;
}
.booking .section-head { margin-bottom: 2.5rem; }
.calendly-inline-widget {
  background: var(--bone);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.5);
}
.booking-fallback {
  margin-top: 2rem;
  text-align: center;
  color: rgba(251, 246, 236, 0.75);
}
.booking-fallback p { margin-bottom: 0.75rem; }

/* =================================================
   9 · FOOTER
   ================================================= */
.site-footer {
  background: var(--espresso);
  color: rgba(251, 246, 236, 0.78);
  padding: 4rem 0 1.5rem;
  border-top: 1px solid rgba(251, 246, 236, 0.08);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.footer-brand .tagline {
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ochre);
  max-width: 32ch;
}
.site-footer h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone);
  margin-bottom: 1rem;
}
.footer-nav { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-nav a {
  text-decoration: none;
  color: rgba(251, 246, 236, 0.78);
  transition: color 0.2s var(--easing);
}
.footer-nav a:hover { color: var(--ochre); }
.footer-contact a {
  color: var(--ochre);
  text-decoration: none;
  border-bottom: 1px solid rgba(203, 143, 62, 0.4);
  transition: border-color 0.2s var(--easing);
}
.footer-contact a:hover { border-color: var(--ochre); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(251, 246, 236, 0.08);
  font-size: 0.85rem;
  color: rgba(251, 246, 236, 0.55);
}
.footer-bottom p { margin: 0; }
.small-print { font-style: italic; }

/* =================================================
   Scroll-reveal
   ================================================= */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.95s var(--easing),
    transform 0.95s var(--easing);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.why-card:nth-child(2),
.lot:nth-child(2),
.timeline-step:nth-child(2),
.team-card:nth-child(2) {
  --reveal-delay: 90ms;
}
.why-card:nth-child(3),
.lot:nth-child(3),
.timeline-step:nth-child(3),
.team-card:nth-child(3) {
  --reveal-delay: 180ms;
}
.why-card:nth-child(4),
.lot:nth-child(4),
.timeline-step:nth-child(4) {
  --reveal-delay: 270ms;
}

/* =================================================
   Reduced motion
   ================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .hero-copy, .hero-figure { opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; }
  .lineage-line { transform: scaleY(1) !important; }
  .lineage-node { opacity: 1 !important; transform: none !important; }
}
