/* ============================================
   PRONGHORN CUSTOMS — OUR BEGINNINGS PAGE
   ============================================ */
:root {
  --black:      #0a0906;
  --near-black: #111008;
  --white:      #fff;
  --clay:       #c41f1f;
  --clay-light: #e03030;
  --text-dark:  #1a1814;
  --line-light: rgba(255,255,255,.12);
  --max:        1440px;
  --gutter:     clamp(16px, 4vw, 56px);
  --gap:        4px;
  --radius:     6px;
  --transition: .35s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  background: var(--black);
  color: var(--white);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: 'Bebas Neue', sans-serif; letter-spacing: .02em; line-height: .95; }
h1 { font-size: clamp(4.5rem, 14vw, 10rem); }
h2 { font-size: clamp(2.8rem, 6vw, 5.5rem); }
h3 { font-size: clamp(1.4rem, 2vw, 2rem); }

.eyebrow {
  display: block;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: .8rem;
}
.eyebrow--dark { color: rgba(26,24,20,.45); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.75rem; border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif; font-size: .82rem;
  font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  transition: var(--transition); cursor: pointer; border: 1.5px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--clay); color: #fff; border-color: var(--clay); }
.btn--primary:hover { background: var(--clay-light); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn--ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.7); }
.btn--xl { padding: 1.1rem 2.2rem; font-size: .88rem; }

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

/* ---- HEADER ---- */
.bg-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem var(--gutter);
  background: transparent;
  transition: background var(--transition), padding var(--transition);
}
.bg-header.scrolled {
  background: rgba(10,9,6,.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  padding: .7rem var(--gutter);
  box-shadow: 0 1px 0 var(--line-light);
}
.bg-logo { padding: .4rem 0; }
.bg-logo img { height: 38px; width: auto; }
.bg-back-link {
  display: flex; align-items: center; gap: .4rem;
  font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.6); transition: color var(--transition);
}
.bg-back-link:hover { color: #fff; }

/* ---- HERO ---- */
.bg-hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end; overflow: hidden;
  background-image: var(--hero-img);
  background-size: cover; background-position: center 35%;
}
.bg-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(170deg,
    rgba(10,9,6,.4) 0%, rgba(10,9,6,.15) 35%,
    rgba(10,9,6,.6) 65%, rgba(10,9,6,.95) 100%);
}
.bg-hero__content {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--max); margin: 0 auto;
  padding: 0 var(--gutter) clamp(3rem, 8vh, 5.5rem);
}
.bg-hero__content h1 { color: #fff; margin-bottom: 1.4rem; }
.bg-hero__lede {
  max-width: 600px;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: rgba(255,255,255,.78); line-height: 1.7;
  font-weight: 300; font-style: italic;
  border-left: 3px solid var(--clay); padding-left: 1.4rem;
  min-height: 1.4em;
}
.bg-hero__lede:empty::before {
  content: 'Add your intro text in beginnings.html inside .bg-hero__lede';
  color: rgba(255,255,255,.2); font-size: .85rem;
}
.bg-hero__scroll-hint {
  position: absolute; bottom: 2.5rem; right: var(--gutter); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  color: rgba(255,255,255,.3); font-size: .62rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, rgba(255,255,255,.35), transparent);
  animation: scrollpulse 2s ease-in-out infinite;
}
@keyframes scrollpulse {
  0%,100% { opacity:.35; transform:scaleY(1); }
  50%      { opacity:.7;  transform:scaleY(.7); }
}

/* ---- INTRO COPY ---- */
.bg-intro {
  background: #fff; color: var(--text-dark);
  padding: clamp(4rem, 8vw, 6rem) 0;
}
.bg-intro__grid {
  display: grid; grid-template-columns: 180px 1fr;
  gap: clamp(2rem, 5vw, 5rem); align-items: start;
}
.bg-intro__copy p {
  font-size: 1.05rem; color: #444; line-height: 1.8; margin-bottom: 1.3rem;
}
.bg-intro__copy p:last-child { margin-bottom: 0; }
.bg-intro__copy p:empty::before {
  content: 'Add your story here — search for REPLACE: in beginnings.html';
  color: rgba(26,24,20,.2); font-style: italic; font-size: .85rem;
}

/* ---- GALLERY WRAPPER ---- */
.bg-gallery {
  background: var(--black);
  padding: clamp(4rem, 7vw, 6rem) 0 0;
}
.bg-gallery__header {
  max-width: var(--max); margin: 0 auto clamp(2rem, 4vw, 3.5rem);
  padding: 0 var(--gutter);
}
.bg-gallery__header h2 { color: #fff; }

/* ---- ROW LAYOUTS ---- */
/* All rows share full-bleed up to max-width */
.bg-row {
  display: grid;
  gap: var(--gap);
  max-width: var(--max); margin: 0 auto var(--gap);
  padding: 0 var(--gutter);
}
.bg-row--3col-tall-left {
  /* col 1 = tall, cols 2+3 stacked */
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-template-rows: 540px;
}
.bg-row--3col-tall-left .bg-card--tall { grid-row: span 1; }
.bg-row--wide-left {
  grid-template-columns: 1.6fr 1fr;
  grid-template-rows: 520px;
}
.bg-row--wide-right {
  grid-template-columns: 1fr 1.6fr;
  grid-template-rows: 520px;
}
.bg-row--3col {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 460px;
}
.bg-row--2col {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: 500px;
}
.bg-row--full {
  grid-template-columns: 1fr;
  grid-template-rows: min(90vw, 760px);
}

/* ---- CARD ---- */
.bg-card {
  position: relative; overflow: hidden; border-radius: var(--radius); cursor: pointer;
}
.bg-card__img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform .7s cubic-bezier(.4,0,.2,1);
}
.bg-card:hover .bg-card__img { transform: scale(1.05); }

.bg-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,9,6,.80) 0%,
    rgba(10,9,6,.3)  45%,
    rgba(10,9,6,.1)  100%
  );
  transition: background var(--transition);
}
.bg-card:hover .bg-card__overlay {
  background: linear-gradient(
    to top,
    rgba(10,9,6,.88) 0%,
    rgba(10,9,6,.5)  50%,
    rgba(10,9,6,.18) 100%
  );
}

.bg-card__content {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  padding: clamp(1.2rem, 2.5vw, 2rem);
  transform: translateY(4px); transition: transform var(--transition);
}
.bg-card:hover .bg-card__content { transform: none; }

.bg-card__tag {
  display: inline-block; padding: .28rem .65rem;
  background: var(--clay); color: #fff;
  font-size: .6rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  border-radius: 2px; margin-bottom: .55rem;
}
.bg-card h3 {
  color: #fff; margin-bottom: .3rem;
  text-shadow: 0 1px 12px rgba(0,0,0,.4);
}
.bg-card h3:empty::before {
  content: 'REPLACE: Build Title';
  color: rgba(255,255,255,.3); font-style: italic;
}
.bg-card p {
  font-size: .83rem; color: rgba(255,255,255,.72); line-height: 1.55;
  max-width: 420px;
}
.bg-card p:empty::before {
  content: 'REPLACE: 1–2 sentence description';
  color: rgba(255,255,255,.22); font-style: italic; font-size: .78rem;
}

/* ---- CTA ---- */
.bg-cta {
  background: var(--near-black);
  border-top: 1px solid var(--line-light);
  padding: clamp(5rem, 9vw, 7rem) var(--gutter);
  text-align: center;
  margin-top: var(--gap);
}
.bg-cta__inner { max-width: 620px; margin: 0 auto; }
.bg-cta .eyebrow { color: rgba(255,255,255,.4); margin-bottom: 1rem; }
.bg-cta h2 { color: #fff; margin-bottom: 1.2rem; font-size: clamp(2.8rem, 6vw, 5rem); }
.bg-cta p {
  font-size: 1.05rem; color: rgba(255,255,255,.65);
  line-height: 1.7; margin-bottom: 2.5rem;
  max-width: 500px; margin-left: auto; margin-right: auto;
}
.bg-cta__buttons { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ---- FOOTER ---- */
.bg-footer { background: var(--black); border-top: 1px solid var(--line-light); padding: 2.5rem var(--gutter); }
.bg-footer__inner { max-width: var(--max); margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: .6rem; text-align: center; }
.bg-footer__logo { height: 34px; opacity: .55; }
.bg-footer__copy { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.22); }

/* ---- REVEAL ---- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .bg-row--3col-tall-left,
  .bg-row--3col {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .bg-row--3col-tall-left .bg-card,
  .bg-row--3col .bg-card { min-height: 380px; }
  .bg-row--3col-tall-left .bg-card--tall { grid-column: span 2; min-height: 420px; }
  .bg-row--wide-left,
  .bg-row--wide-right { grid-template-columns: 1fr; grid-template-rows: auto; }
  .bg-row--wide-left .bg-card,
  .bg-row--wide-right .bg-card { min-height: 380px; }
  .bg-row--full { grid-template-rows: 460px; }
}

@media (max-width: 700px) {
  .bg-intro__grid { grid-template-columns: 1fr; gap: 1rem; }
  .bg-row--3col-tall-left,
  .bg-row--3col,
  .bg-row--2col,
  .bg-row--wide-left,
  .bg-row--wide-right { grid-template-columns: 1fr; grid-template-rows: auto; }
  .bg-row--3col-tall-left .bg-card--tall { grid-column: span 1; }
  .bg-card, .bg-card--tall, .bg-card--wide, .bg-card--hero { min-height: 320px !important; }
  .bg-row--full { grid-template-rows: 90vw; }
  .bg-cta__buttons { flex-direction: column; align-items: center; }
}
