/* =========================================================
   The Buffalo Barn Collective — Brand System
   Where Design Becomes an Experience
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Palette */
  --bone: #F2EAD9;
  --bone-soft: #EFE6D2;
  --ivory: #E8DEC8;
  --cream: #F8F2E5;
  --paper: #FBF7EE;

  --charcoal: #1C1714;
  --ink: #0F0B09;
  --espresso: #3A2A20;
  --saddle: #8B5A3C;
  --leather: #6B4226;
  --brass: #B08D57;
  --brass-soft: #C9A876;
  --taupe: #A89684;
  --stone: #C9BFB0;
  --smoke: #2A2421;

  /* Functional */
  --bg: var(--bone);
  --bg-alt: var(--cream);
  --bg-dark: var(--ink);
  --text: var(--charcoal);
  --text-muted: #5A4D42;
  --accent: var(--brass);
  --rule: rgba(28, 23, 20, 0.14);
  --rule-dark: rgba(248, 242, 229, 0.18);

  /* Type */
  --serif: 'Cormorant Garamond', 'Cormorant', 'EB Garamond', Georgia, serif;
  --sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;

  /* Sizing */
  --container: 1320px;
  --container-narrow: 980px;
  --gutter: clamp(20px, 4vw, 56px);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--charcoal); color: var(--cream); }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--charcoal);
  margin: 0;
}

.display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 7.2vw, 6.8rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.display-italic {
  font-style: italic;
  font-weight: 300;
}

.h1 { font-size: clamp(2.2rem, 5vw, 4.4rem); }
.h2 { font-size: clamp(1.8rem, 3.6vw, 3.2rem); }
.h3 { font-size: clamp(1.4rem, 2.4vw, 2.1rem); }
.h4 { font-size: 1.25rem; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--leather);
  display: inline-block;
}

.eyebrow--light { color: var(--brass-soft); }

.lead {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.15rem, 1.8vw, 1.6rem);
  line-height: 1.4;
  color: var(--espresso);
  max-width: 56ch;
}

.body { font-size: 1rem; color: var(--text-muted); max-width: 60ch; }
.body--lg { font-size: 1.08rem; }

.rule {
  display: inline-block;
  width: 56px;
  height: 1px;
  background: var(--leather);
  margin: 0;
  vertical-align: middle;
}

.rule--light { background: var(--brass-soft); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }

section { padding: clamp(64px, 10vw, 140px) 0; }
section.tight { padding: clamp(48px, 6vw, 88px) 0; }

.grid { display: grid; gap: clamp(20px, 3vw, 40px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-3.keep-2-md { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 22px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(242, 234, 217, 0.0);
  transition: background 400ms var(--ease), padding 400ms var(--ease), border-color 400ms var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(242, 234, 217, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 14px var(--gutter);
  border-bottom: 1px solid var(--rule);
}
.nav.on-dark { color: var(--cream); }
.nav.on-dark.is-scrolled { color: var(--charcoal); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2.4vw, 1.32rem);
  letter-spacing: 0.04em;
  line-height: 1;
  font-weight: 400;
  white-space: nowrap;
}
.brand__mark {
  height: clamp(30px, 5.5vw, 40px);
  width: auto;
  display: block;
  flex-shrink: 0;
  transition: height 400ms var(--ease);
}
.nav.is-scrolled .brand__mark { height: clamp(26px, 4.5vw, 32px); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand .amp { font-style: italic; color: var(--brass); }
.brand-mark {
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  display: block;
  margin-top: 6px;
  opacity: 0.7;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 6px 0;
  position: relative;
  transition: color 240ms var(--ease);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 320ms var(--ease);
}
.nav-links a:hover::after,
.nav-links a.is-active::after { transform: scaleX(1); }

.nav-cta {
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 6px 0;
  border: 0;
  border-radius: 0;
}

.nav-toggle {
  display: none;
  width: 34px; height: 34px;
  position: relative;
}
.nav-toggle span {
  position: absolute; left: 4px; right: 4px;
  height: 1px; background: currentColor;
  transition: transform 320ms var(--ease), opacity 240ms var(--ease);
}
.nav-toggle span:nth-child(1) { top: 12px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle.is-open span:nth-child(1) { top: 17px; transform: rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { top: 17px; transform: rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav-links.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 70px 0 0 0;
    background: var(--bone);
    padding: 40px var(--gutter);
    gap: 24px;
    align-items: flex-start;
    border-top: 1px solid var(--rule);
  }
  .nav-links.is-open a { font-size: 1rem; letter-spacing: 0.2em; color: var(--charcoal); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--cream);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0;
  background-color: var(--smoke);
  background-size: cover;
  background-position: center;
  z-index: -2;
  transform: scale(1.04);
  animation: heroZoom 18s var(--ease) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(15, 11, 9, 0.55) 0%, rgba(15, 11, 9, 0.35) 40%, rgba(15, 11, 9, 0.78) 100%);
}
.hero__inner {
  width: 100%;
  padding: 180px 0 120px;
}
.hero .eyebrow { color: var(--brass-soft); }
.hero .lead { color: rgba(248, 242, 229, 0.86); }
.hero h1, .hero h2, .hero h3, .hero h4 { color: var(--cream); }

.hero__title {
  margin: 24px 0 18px;
}
.hero__logo { margin: 0 0 26px; }
.hero__logo img {
  width: clamp(320px, 50vw, 620px);
  height: auto;
  filter: drop-shadow(0 12px 42px rgba(0, 0, 0, 0.55));
}
.hero__sub {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.3rem, 2.2vw, 1.9rem);
  color: var(--brass-soft);
  margin: 0 0 28px;
  letter-spacing: 0.005em;
}
.hero__copy {
  max-width: 54ch;
  color: rgba(248, 242, 229, 0.78);
  margin-bottom: 44px;
  font-size: 1.05rem;
  line-height: 1.65;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.hero--short { min-height: 70vh; }
.hero--short .hero__inner { padding: 160px 0 80px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 16px 28px;
  border-radius: 999px;
  border: 1px solid var(--charcoal);
  background: var(--charcoal);
  color: var(--cream);
  transition: background 280ms var(--ease), color 280ms var(--ease), border-color 280ms var(--ease), transform 280ms var(--ease);
  cursor: pointer;
}
.btn:hover { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn .arrow { transition: transform 280ms var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(248, 242, 229, 0.6);
}
.btn--ghost:hover { background: var(--cream); color: var(--charcoal); border-color: var(--cream); }

.btn--outline {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}
.btn--outline:hover { background: var(--charcoal); color: var(--cream); }

.btn--link {
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--leather);
  border-radius: 0;
}
.btn--link::after {
  content: '';
  display: block;
  height: 1px;
  background: currentColor;
  margin-top: 6px;
  transform: scaleX(1);
  transform-origin: left;
  transition: transform 320ms var(--ease);
}
.btn--link:hover::after { transform: scaleX(0.4); }

/* ---------- Section Heads ---------- */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(24px, 4vw, 80px);
  align-items: end;
  padding-bottom: clamp(40px, 5vw, 70px);
  border-bottom: 1px solid var(--rule);
  margin-bottom: clamp(40px, 5vw, 70px);
}
.section-head h2 { margin: 0; }
.section-head__meta { display: flex; flex-direction: column; gap: 18px; }
.section-head__lede { color: var(--text-muted); max-width: 48ch; }
@media (max-width: 900px) { .section-head { grid-template-columns: 1fr; align-items: start; } }

/* ---------- Cards ---------- */
.card {
  position: relative;
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  overflow: hidden;
  transition: transform 480ms var(--ease), box-shadow 480ms var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px rgba(28, 23, 20, 0.10); }

.card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--stone);
}
.card__media img,
.card__media .img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  background-size: cover; background-position: center;
  transition: transform 1200ms var(--ease);
}
.card:hover .card__media img,
.card:hover .card__media .img { transform: scale(1.05); }

.card__body { padding: 24px 24px 28px; }
.card__index {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--taupe);
}
.card__title {
  font-family: var(--serif);
  font-size: 1.55rem;
  margin: 8px 0 10px;
  letter-spacing: -0.005em;
}
.card__copy { font-size: 0.95rem; color: var(--text-muted); line-height: 1.55; }

/* ---------- Category tiles (Collections) ---------- */
.tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  isolation: isolate;
  background: var(--smoke);
}
.tile .img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 1400ms var(--ease), filter 600ms var(--ease);
  filter: brightness(0.78) saturate(0.92);
}
.tile:hover .img { transform: scale(1.06); filter: brightness(0.88) saturate(1); }
.tile::after {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(15,11,9,0.05) 0%, rgba(15,11,9,0.55) 65%, rgba(15,11,9,0.85) 100%);
  pointer-events: none;
}
.tile__inner {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px 28px 30px;
  z-index: 2;
  color: var(--cream);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.tile__title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  letter-spacing: -0.005em;
  line-height: 1.05;
  color: var(--cream);
}
.tile__sub {
  display: block;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brass-soft);
  margin-top: 12px;
  font-weight: 500;
}
.tile__arrow {
  width: 38px; height: 38px;
  border: 1px solid rgba(248, 242, 229, 0.5);
  border-radius: 999px;
  display: grid; place-items: center;
  transition: transform 320ms var(--ease), background 320ms var(--ease), color 320ms var(--ease);
  flex-shrink: 0;
}
.tile:hover .tile__arrow { background: var(--cream); color: var(--charcoal); transform: rotate(-45deg); }

/* ---------- Editorial split ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 90px);
  align-items: center;
}
.split--reverse { grid-template-columns: 1fr 1.05fr; }
.split--reverse .split__media { order: 2; }
.split__media {
  aspect-ratio: 4 / 5;
  background-color: var(--taupe);
  background-size: cover;
  background-position: center;
  position: relative;
}
.split__media::after {
  content: '';
  position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px var(--rule);
}
.split__body h2 { margin-bottom: 22px; }
.split__body p { color: var(--text-muted); margin: 0 0 16px; max-width: 52ch; }
.split__body .eyebrow { margin-bottom: 14px; }
.split__cta { margin-top: 28px; display: inline-flex; }

@media (max-width: 900px) {
  .split, .split--reverse { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}

/* ---------- Audience block (home page sections) ---------- */
.audience {
  position: relative;
  padding: clamp(70px, 9vw, 120px) clamp(28px, 5vw, 80px);
  background: var(--bg-alt);
  border: 1px solid var(--rule);
}
.audience .eyebrow { color: var(--leather); }
.audience h3 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); margin: 14px 0 18px; }
.audience p { color: var(--text-muted); max-width: 52ch; margin: 0 0 24px; }
.audience--dark {
  background: var(--ink);
  color: var(--cream);
  border-color: rgba(248,242,229,0.08);
}
.audience--dark h3 { color: var(--cream); }
.audience--dark p { color: rgba(248,242,229,0.7); }
.audience--dark .eyebrow { color: var(--brass-soft); }

/* ---------- Quote / pull ---------- */
.pullquote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.6rem, 3.4vw, 2.8rem);
  line-height: 1.2;
  color: var(--espresso);
  max-width: 22ch;
  letter-spacing: -0.005em;
}

/* ---------- Atelier strip ---------- */
.atelier-strip {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(70px, 9vw, 140px) 0;
  position: relative;
  overflow: hidden;
}
.atelier-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 50%, rgba(176, 141, 87, 0.18) 0%, transparent 55%),
    radial-gradient(circle at 10% 100%, rgba(139, 90, 60, 0.14) 0%, transparent 45%);
  pointer-events: none;
}
.atelier-strip__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 80px);
  align-items: center;
}
.atelier-strip h2 { color: var(--cream); margin-bottom: 16px; }
.atelier-strip p { color: rgba(248,242,229,0.72); margin: 0 0 28px; max-width: 50ch; }
.atelier-strip .eyebrow { color: var(--brass-soft); }
@media (max-width: 900px) { .atelier-strip__inner { grid-template-columns: 1fr; } }

/* ---------- Vendor cards (Source Library) ---------- */
.vendor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.vendor {
  background: var(--paper);
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 320ms var(--ease);
}
.vendor:hover { background: var(--cream); }
.vendor__cat {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--taupe);
  text-transform: uppercase;
}
.vendor__name {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: -0.005em;
  margin: 0;
}
.vendor__desc { font-size: 0.92rem; color: var(--text-muted); line-height: 1.55; margin: 0; flex: 1; }
.vendor__link {
  margin-top: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--leather);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.vendor__link::after { content: '→'; transition: transform 280ms var(--ease); }
.vendor__link:hover::after { transform: translateX(4px); }
@media (max-width: 900px) {
  .vendor-grid { grid-template-columns: 1fr; }
}

.category-anchor {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding-bottom: 20px;
  margin: clamp(40px, 6vw, 80px) 0 28px;
  border-bottom: 1px solid var(--rule);
}
.category-anchor h3 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
}
.category-anchor .count {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--taupe);
  text-transform: uppercase;
}

/* ---------- The Atelier (full page) ---------- */
.atelier-page {
  min-height: 100vh;
  background: var(--ink);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.atelier-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  isolation: isolate;
}
.atelier-hero::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at 75% 30%, rgba(176, 141, 87, 0.22) 0%, transparent 55%),
    radial-gradient(circle at 15% 80%, rgba(139, 90, 60, 0.18) 0%, transparent 50%),
    linear-gradient(180deg, #1a1310 0%, #0E0908 100%);
}
.atelier-hero__inner { padding: 160px 0 120px; max-width: 760px; }
.atelier-hero h1 { color: var(--cream); margin: 18px 0 24px; }
.atelier-hero p { color: rgba(248,242,229,0.75); font-size: 1.08rem; max-width: 56ch; }
.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border: 1px solid rgba(176, 141, 87, 0.5);
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brass-soft);
  margin-bottom: 22px;
}
.coming-soon-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--brass);
  box-shadow: 0 0 0 4px rgba(176, 141, 87, 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.45; transform: scale(0.9); } }

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(248,242,229,0.10);
  border: 1px solid rgba(248,242,229,0.10);
  margin-top: 80px;
}
.feature {
  background: var(--ink);
  padding: 36px 32px;
}
.feature__num {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--brass);
  text-transform: uppercase;
}
.feature h4 {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--cream);
  margin: 10px 0 10px;
}
.feature p { color: rgba(248,242,229,0.65); font-size: 0.95rem; margin: 0; line-height: 1.55; }
@media (max-width: 720px) { .feature-list { grid-template-columns: 1fr; } }

/* ---------- Contact form ---------- */
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 28px;
  margin-top: 40px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: span 2; }
.field label {
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--leather);
  font-weight: 500;
}
.field input,
.field select,
.field textarea {
  font: inherit;
  font-family: var(--sans);
  font-size: 1rem;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  padding: 12px 0;
  color: var(--charcoal);
  transition: border-color 280ms var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--charcoal);
}
.field textarea { resize: vertical; min-height: 140px; }
.form__submit { grid-column: span 2; margin-top: 18px; }
@media (max-width: 720px) {
  .form { grid-template-columns: 1fr; }
  .field--full, .form__submit { grid-column: span 1; }
}

/* ---------- Sidebar info on contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(40px, 6vw, 80px);
}
.contact-side {
  padding: 36px 32px;
  background: var(--cream);
  border: 1px solid var(--rule);
  align-self: start;
}
.contact-side h4 { font-family: var(--serif); font-size: 1.4rem; margin: 0 0 14px; }
.contact-side p { color: var(--text-muted); margin: 0 0 22px; font-size: 0.96rem; }
.contact-side .detail { margin-bottom: 18px; }
.contact-side .detail span {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--leather);
  margin-bottom: 4px;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(70px, 8vw, 110px) 0 36px;
  position: relative;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--rule-dark);
}
/* Footer color system — three colors only:
   1) Copper #9B673A → brand mark + tagline
   2) Brass-soft #C9A876 → column headings
   3) #C9BFB0 → all body text (links, description, copyright)        */
.footer h5 {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brass-soft);
  margin: 0 0 22px;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer a { color: #C9BFB0; font-size: 0.95rem; transition: color 240ms var(--ease); }
.footer a:hover { color: var(--cream); }
.footer__brand { font-family: var(--serif); font-size: 1.7rem; line-height: 1.1; }
.footer__brand .amp { font-style: italic; color: var(--brass); }
.footer__logo {
  width: 360px;
  max-width: 90%;
  height: auto;
  margin-bottom: 22px;
  display: block;
}
/* Hidden: the new thicker logo already includes the "Where design becomes an experience." slogan baked in,
   so the separate text line below would be a duplicate. Kept in HTML for accessibility/screen readers. */
.footer__tag {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
.footer__copy {
  font-size: 0.85rem;
  color: #C9BFB0;
  max-width: 36ch;
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  padding-top: 32px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: #C9BFB0;
}
@media (max-width: 900px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer__top { grid-template-columns: 1fr; }
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
  /* CSS-only safety net: kicks in at 400ms so content never feels delayed.
     JS .is-visible cancels it for the staggered scroll animation. */
  animation: revealFallback 400ms ease 400ms forwards;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); animation: none; }
@keyframes revealFallback { to { opacity: 1; transform: translateY(0); } }
.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }

/* ---------- Decorative ---------- */
.deco-marquee {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 28px 0;
  overflow: hidden;
  background: var(--cream);
}
.deco-marquee__track {
  display: flex;
  gap: clamp(40px, 6vw, 90px);
  white-space: nowrap;
  animation: marquee 50s linear infinite;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  color: var(--espresso);
}
.deco-marquee__track span { display: inline-flex; align-items: center; gap: clamp(40px, 6vw, 90px); }
.deco-marquee__track span::after { content: '✦'; color: var(--brass); font-size: 0.8em; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Misc ---------- */
.center { text-align: center; }
.center .lead, .center .body { margin-left: auto; margin-right: auto; }
.spacer-sm { height: 32px; }
.spacer-md { height: 64px; }
.spacer-lg { height: 100px; }

.text-muted { color: var(--text-muted); }
.bg-cream { background: var(--cream); }
.bg-bone { background: var(--bone); }
.bg-ink { background: var(--ink); color: var(--cream); }
.bg-ink h2, .bg-ink h3 { color: var(--cream); }
.bg-ink .body, .bg-ink p { color: rgba(248,242,229,0.72); }
.bg-ink .eyebrow { color: var(--brass-soft); }

/* ---------- Print / a11y ---------- */
/* end of stylesheet — Buffalo Barn Collective */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
