/* ============================================================
   B. HOLDER UNION LLC — site stylesheet
   Mid Sage #3F5245 / Gold #C9A24C / Clay Rust #8B4B3C / Bone #EFE9D8
   Marcellus headings · Work Sans body · light mode only
   ============================================================ */

/* ---- 1. Brand tokens ---- */
:root {
  --bone: #efe9d8;
  --bone-light: #f4efe1;
  --bone-lighter: #faf6ec;
  --bone-deep: #e5dec9;

  --ink: #17150f;
  --ink-muted: #453f34;
  --ink-faint: #5f5849;

  --sage: #3f5245;
  --sage-deep: #2f3f33;
  --gold: #c9a24c;
  --gold-ink: #7d6122;
  --rust: #8b4b3c;

  --on-sage: #f7f2e3;
  --on-sage-muted: #ddd6c2;
  --gold-on-sage: #e2bd6c;

  --hairline: rgba(63, 82, 69, 0.18);
  --hairline-strong: rgba(63, 82, 69, 0.32);

  --font-display: "Marcellus", "Georgia", "Times New Roman", serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* type scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1.0625rem;
  --text-lg: clamp(1.125rem, 1.6vw, 1.3125rem);
  --text-xl: clamp(1.5rem, 2.6vw, 2rem);
  --text-2xl: clamp(2rem, 4.2vw, 3rem);
  --text-hero: clamp(2.4rem, 5.6vw, 4.25rem);

  /* spacing */
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --measure: 66ch;
  --section-y: clamp(4.5rem, 9vw, 8.5rem);
  --max: 1220px;
  --max-narrow: 860px;
}

/* ---- 2. Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }

/* ---- 3. Type ---- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--text-hero); line-height: 1.08; }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }

.lede {
  font-size: var(--text-lg);
  color: var(--ink-muted);
  max-width: 58ch;
  line-height: 1.55;
}
.prose { max-width: var(--measure); }
.prose p + p { margin-top: 0; }
.muted { color: var(--ink-muted); }

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin: 0 0 1.1rem;
}

.rule-short {
  width: 64px;
  height: 2px;
  background: var(--gold);
  border: 0;
  margin: 0 0 1.75rem;
}
.hairline { height: 1px; background: var(--gold); opacity: .5; border: 0; margin: 0; }

/* body copy links */
.prose a, .stack a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 1px;
  transition: color 180ms ease, border-color 180ms ease;
}
.prose a:hover, .stack a:not(.btn):hover { color: var(--gold-ink); border-bottom-color: var(--gold-ink); }

/* ---- 4. Layout ---- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: var(--max-narrow); }
section { padding-block: var(--section-y); }
.stack > * + * { margin-top: 1.1rem; }

.grid-2 {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
@media (min-width: 860px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-2--head { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
  .grid-2--media { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; }
}

/* ---- 5. Section themes ---- */
.theme-bone { background: var(--bone); }
.theme-bone-light { background: var(--bone-light); }
.theme-bone-lighter { background: var(--bone-lighter); }

.theme-sage {
  background: var(--sage);
  color: var(--on-sage);
}
.theme-sage h1, .theme-sage h2, .theme-sage h3, .theme-sage h4 { color: var(--on-sage); }
.theme-sage p, .theme-sage li, .theme-sage .lede, .theme-sage .muted { color: var(--on-sage-muted); }
.theme-sage .eyebrow { color: var(--gold-on-sage); }
.theme-sage .hairline { opacity: .45; }
.theme-sage a:not(.btn) { color: var(--on-sage); border-bottom-color: var(--gold-on-sage); }
.theme-sage a:not(.btn):hover { color: var(--gold-on-sage); }

/* ---- 6. Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  padding: .95rem 1.6rem;
  border-radius: 4px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}
.btn--primary { background: var(--sage); color: var(--on-sage); border-color: var(--sage); }
.btn--primary:hover { background: var(--sage-deep); border-color: var(--sage-deep); }
.btn--secondary { background: transparent; color: var(--ink); border-color: var(--hairline-strong); }
.btn--secondary:hover { border-color: var(--ink); background: var(--bone-lighter); }

.theme-sage .btn--primary { background: var(--gold); border-color: var(--gold); color: #2b3a2f; }
.theme-sage .btn--primary:hover { background: var(--gold-on-sage); border-color: var(--gold-on-sage); }
.theme-sage .btn--secondary { color: var(--on-sage); border-color: rgba(247, 242, 227, 0.45); }
.theme-sage .btn--secondary:hover { border-color: var(--on-sage); background: rgba(247, 242, 227, 0.08); }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--gold-ink);
  outline-offset: 3px;
  border-radius: 2px;
}
.theme-sage :where(a, button):focus-visible { outline-color: var(--gold-on-sage); }

/* ---- 7. Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(239, 233, 216, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 74px;
  padding-block: .75rem;
}
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-display); font-size: 1.0625rem; letter-spacing: .01em; }
.brand__tag {
  font-size: .5625rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: .3rem;
}

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); }
.nav a {
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--gold-ink); border-bottom-color: var(--gold); }
.nav .btn { border-bottom: 0; letter-spacing: .02em; text-transform: none; font-size: var(--text-sm); padding: .7rem 1.15rem; }
.nav .btn--primary,
.nav .btn--primary:hover,
.nav .btn--primary[aria-current="page"] { color: var(--on-sage); border-bottom: 1px solid transparent; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--hairline-strong);
  border-radius: 4px;
  padding: .55rem .7rem;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle svg { width: 18px; height: 18px; }

@media (max-width: 859px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: 74px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bone-lighter);
    border-bottom: 1px solid var(--hairline);
    padding: .5rem var(--gutter) 1.5rem;
    box-shadow: 0 18px 40px rgba(23, 21, 15, .1);
    display: none;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: 1rem 0; border-bottom: 1px solid var(--hairline); border-top: 0; }
  .nav a[aria-current="page"] { border-bottom-color: var(--gold); }
  .nav .btn { margin-top: 1.25rem; justify-content: center; padding: .95rem 1.6rem; }
}

/* ---- 8. Hero ---- */
.hero { padding-block: clamp(3.5rem, 7vw, 6.5rem) var(--section-y); }
.hero__grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); }
}
.hero__figure { position: relative; overflow: visible; }
.hero__figure img {
  width: 100%;
  border-radius: 6px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.hero__figure::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -14px;
  width: 58%;
  height: 1px;
  background: var(--gold);
  opacity: .8;
}
@media (min-width: 900px) {
  .hero__figure::after { right: -14px; }
}
.page-hero { padding-block: clamp(3.25rem, 6vw, 5.5rem) clamp(2.5rem, 5vw, 4rem); }
.page-hero h1 { font-size: var(--text-2xl); max-width: 26ch; }

/* ---- 9. Numbered capability list ---- */
.caps { border-top: 1px solid var(--hairline); }
.caps__item {
  display: grid;
  gap: .5rem 2rem;
  padding-block: clamp(1.6rem, 3vw, 2.4rem);
  border-bottom: 1px solid var(--hairline);
}
@media (min-width: 760px) {
  .caps__item { grid-template-columns: 4.5rem minmax(0, 15rem) minmax(0, 1fr); align-items: baseline; }
}
.caps__num {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--gold-ink);
  font-variant-numeric: tabular-nums;
}
.caps__title { font-family: var(--font-display); font-size: var(--text-lg); line-height: 1.2; }
.caps__body { color: var(--ink-muted); margin: 0; }
.theme-sage .caps { border-color: rgba(247,242,227,.2); }
.theme-sage .caps__item { border-color: rgba(247,242,227,.2); }
.theme-sage .caps__num { color: var(--gold-on-sage); }

/* ---- 10. Quote band ---- */
.band {
  position: relative;
  isolation: isolate;
  background: var(--sage-deep);
  color: var(--on-sage);
  padding-block: clamp(5rem, 11vw, 9rem);
  overflow: hidden;
}
.band__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(29, 40, 32, .88) 0%, rgba(35, 47, 38, .74) 55%, rgba(35, 47, 38, .58) 100%);
}
.band blockquote {
  margin: 0;
  max-width: 24ch;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--on-sage);
  text-wrap: balance;
}
.band__attrib {
  margin-top: 1.75rem;
  font-size: var(--text-xs);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-on-sage);
}
.band .rule-short { margin-bottom: 1.75rem; }

/* ---- 11. Stage list ---- */
.stages { margin-top: 0; }
.stage {
  display: grid;
  gap: .55rem 2.5rem;
  padding-block: clamp(1.6rem, 3vw, 2.25rem);
  border-top: 1px solid rgba(247, 242, 227, 0.22);
}
.stage:last-child { border-bottom: 1px solid rgba(247, 242, 227, 0.22); }
@media (min-width: 760px) {
  .stage { grid-template-columns: 9rem minmax(0, 13rem) minmax(0, 1fr); align-items: baseline; }
}
.stage__label {
  font-size: var(--text-xs);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-on-sage);
}
.stage__name { font-family: var(--font-display); font-size: var(--text-lg); color: var(--on-sage); line-height: 1.2; }
.stage__body { margin: 0; color: var(--on-sage-muted); }

/* ---- 12. Cards ---- */
.cards {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  list-style: none;
}
@media (min-width: 760px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 700px) { .cards--2 { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--bone-lighter);
  border: 1px solid var(--hairline);
  border-top: 2px solid var(--gold);
  border-radius: 6px;
  padding: clamp(1.5rem, 2.6vw, 2.25rem);
  display: flex;
  flex-direction: column;
}
.card h3 { font-size: var(--text-lg); margin-bottom: .85rem; }
.card p { color: var(--ink-muted); margin-bottom: 0; }
.card__meta {
  margin-top: auto;
  padding-top: 1.5rem;
  font-size: var(--text-xs);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.card--plain { border-top-color: var(--hairline); background: transparent; }
.card--plain h3 { display: flex; align-items: baseline; gap: .7rem; }

.theme-sage .card {
  background: rgba(247, 242, 227, 0.05);
  border-color: rgba(247, 242, 227, 0.18);
  border-top-color: var(--gold);
}
.theme-sage .card p { color: var(--on-sage-muted); }
.theme-sage .card__meta { color: var(--gold-on-sage); }

/* ---- 13. Service blocks ---- */
.service { border-top: 1px solid var(--hairline); padding-block: clamp(2.5rem, 5vw, 4rem); }
.service__grid { display: grid; gap: clamp(1.75rem, 4vw, 3.5rem); }
@media (min-width: 880px) {
  .service__grid { grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); }
}
.service h2 { font-size: var(--text-xl); margin-bottom: 1rem; }
.deliverables { list-style: none; margin-top: 1.5rem; }
.deliverables li {
  position: relative;
  padding-left: 1.35rem;
  padding-block: .5rem;
  border-top: 1px solid var(--hairline);
  color: var(--ink-muted);
  font-size: var(--text-sm);
}
.deliverables li:first-child { border-top: 0; }
.deliverables li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}
.figure-note {
  margin-top: .85rem;
  font-size: var(--text-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.figure img { border-radius: 6px; width: 100%; object-fit: cover; }
.figure--tall img { aspect-ratio: 3 / 4; }
.figure--wide img { aspect-ratio: 3 / 2; }

/* ---- 14. Principals + rules ---- */
.principal { padding-top: 1.5rem; border-top: 2px solid var(--gold); }
.principal__role {
  font-size: var(--text-xs);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin: .5rem 0 1rem;
}
.principal h3 { font-size: var(--text-lg); }
.theme-sage .principal__role { color: var(--gold-on-sage); }

.signet { display: grid; place-items: center; gap: 1rem; text-align: center; }
.signet svg { width: clamp(120px, 18vw, 168px); height: auto; }
.signet__name { font-family: var(--font-display); font-size: var(--text-lg); }
.signet__tag { font-size: var(--text-xs); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-on-sage); }

/* ---- 15. Contact ---- */
.contact-grid { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); } }

.detail-list { list-style: none; }
.detail-list > li { padding-block: 1.35rem; border-top: 1px solid var(--hairline); }
.detail-list > li:first-child { border-top: 0; padding-top: 0; }
.detail-list dt, .detail__label {
  font-size: var(--text-xs);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: .5rem;
}
.detail__value { font-size: var(--text-base); color: var(--ink); margin: 0; }
.detail__value a { color: var(--ink); border-bottom: 1px solid var(--gold); text-decoration: none; padding-bottom: 1px; }
.detail__value a:hover { color: var(--gold-ink); border-bottom-color: var(--gold-ink); }
.detail__note { font-size: var(--text-sm); color: var(--ink-muted); margin: .4rem 0 0; }

.form-card {
  background: var(--bone-lighter);
  border: 1px solid var(--hairline);
  border-top: 2px solid var(--gold);
  border-radius: 6px;
  padding: clamp(1.5rem, 3.2vw, 2.75rem);
}
.field { display: block; margin-bottom: 1.35rem; }
.field > span {
  display: block;
  font-size: var(--text-xs);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: .5rem;
}
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--ink);
  background: var(--bone-light);
  border: 1px solid rgba(63, 82, 69, 0.28);
  border-radius: 4px;
  padding: .8rem .9rem;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--sage);
  outline: 2px solid var(--gold-ink);
  outline-offset: 2px;
}
.field-row { display: grid; gap: 1.35rem; }
@media (min-width: 620px) { .field-row { grid-template-columns: 1fr 1fr; } }
.form-note { font-size: var(--text-sm); color: var(--ink-muted); margin: 1.25rem 0 0; }

/* ---- 16. Footer ---- */
.site-footer { background: var(--sage); color: var(--on-sage); padding-block: clamp(3.5rem, 6vw, 5rem) 2rem; }
.site-footer h2, .site-footer h3 { color: var(--on-sage); }
.footer__top { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
@media (min-width: 780px) { .footer__top { grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, .8fr)); } }
.footer__word { font-family: var(--font-display); font-size: var(--text-xl); }
.footer__tag { font-size: var(--text-xs); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-on-sage); margin-top: .9rem; }
.footer__divider { height: 1px; background: var(--gold); opacity: .75; border: 0; margin: 1.25rem 0 0; max-width: 180px; }
.footer__heading {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-on-sage);
  margin: 0 0 1.1rem;
}
.footer__list { list-style: none; }
.footer__list li + li { margin-top: .7rem; }
.footer__list a, .site-footer p { color: var(--on-sage-muted); text-decoration: none; }
.footer__list a { border-bottom: 1px solid transparent; padding-bottom: 1px; transition: color 180ms ease, border-color 180ms ease; }
.footer__list a:hover { color: var(--gold-on-sage); border-bottom-color: var(--gold-on-sage); }
.footer__bottom {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(247, 242, 227, .2);
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--on-sage-muted);
  letter-spacing: .04em;
}

/* ---- 17. Reveal on scroll ---- */
/* Progressive enhancement: the hidden start state applies only when the
   inline head script has confirmed JS is running. Without JS the content
   renders plainly instead of staying invisible. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms cubic-bezier(.16,1,.3,1), transform 700ms cubic-bezier(.16,1,.3,1); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--sage);
  color: var(--on-sage);
  padding: .75rem 1rem;
  z-index: 100;
  border-radius: 0 0 4px 0;
}
.skip-link:focus { left: 0; }
