/* ============================================================
   SITE — McMullen's Sourcing Group one-page marketing site
   Layout, sections, reveal motion and responsive rules.
   Cinematic "1a" direction: full-bleed hero, frosted header,
   editorial gallery, chocolate process block, proof cases.
   ============================================================ */

body { background: var(--ivory); overflow-x: hidden; }
.site { font-family: var(--font-sans); color: var(--text-body); background: var(--ivory); overflow-x: hidden; }

/* ---- Reveal-on-scroll ---- */
[data-reveal] { will-change: opacity, transform; }
.reveal-init { opacity: 0; transform: translateY(28px);
  transition: opacity .85s var(--ease-out), transform .85s var(--ease-out); }
.reveal-in { opacity: 1; transform: none; }

/* ---- Keyframes ---- */
@keyframes msgKen  { 0% { transform: scale(1.05); } 100% { transform: scale(1.16); } }
@keyframes msgFade { 0% { opacity: 0; transform: translateY(16px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes msgScroll { 0%, 100% { transform: translateY(0); opacity: .4; } 50% { transform: translateY(8px); opacity: 1; } }
.msg-fade { animation: msgFade 1.1s var(--ease-out) both; }
.msg-ken  { animation: msgKen 22s ease-in-out infinite alternate; }

/* ============ HEADER ============ */
.msg-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 48px; color: var(--ivory); border-bottom: 1px solid transparent;
  transition: background-color .5s var(--ease-out), color .5s var(--ease-out),
              box-shadow .5s var(--ease-out), border-color .5s var(--ease-out);
}
.msg-header__logo { display: flex; align-items: center; color: inherit; }
.msg-header__logo img { height: 32px; width: auto; filter: brightness(0) invert(1); transition: filter .5s var(--ease-out); }
.msg-nav { display: flex; align-items: center; gap: 34px;
  font-family: var(--font-sans); font-size: 11.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }
.msg-nav a { color: inherit; opacity: .85; }
.msg-nav a:hover { color: inherit; opacity: 1; }

/* solid (scrolled) state, toggled by JS */
.msg-header.is-solid {
  background: rgba(243, 240, 235, .88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border-subtle);
  color: var(--charcoal);
  box-shadow: 0 1px 24px rgba(75, 62, 52, .08);
}
.msg-header.is-solid .msg-header__logo img { filter: none; }

/* ============ HERO ============ */
.msg-hero-sec {
  position: relative; height: 100vh; min-height: 720px;
  display: flex; align-items: flex-end; overflow: hidden; background: var(--charcoal);
}
.msg-hero-ken { position: absolute; inset: 0; }
.msg-hero-ken img { width: 100%; height: 100%; object-fit: cover; }
.msg-hero-scrim { position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30,30,30,.52) 0%, rgba(30,30,30,.10) 30%, rgba(30,30,30,.28) 66%, rgba(30,30,30,.74) 100%); }
.msg-hero {
  position: relative; width: 100%;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 0 40px 128px;
}
.msg-hero-eyebrow {
  display: flex; align-items: center; gap: 16px; margin: 0 0 28px;
  font-family: var(--font-sans); font-weight: 500; font-size: 12px; letter-spacing: .28em;
  text-transform: uppercase; color: var(--brass-200); animation-delay: .15s;
}
.msg-hero-eyebrow span { width: 34px; height: 1px; background: var(--brass-300); }
.msg-hero-h1 {
  font-family: var(--font-display); font-weight: 500; font-size: 84px; line-height: 1.02;
  letter-spacing: -.015em; color: var(--ivory); margin: 0 0 26px; max-width: 960px;
  text-wrap: balance; animation-delay: .3s;
}
.msg-hero-sub {
  font-family: var(--font-sans); font-size: 17px; line-height: 1.65;
  color: rgba(243, 240, 235, .86); margin: 0 0 40px; max-width: 520px; animation-delay: .45s;
}
.msg-hero-cta { animation-delay: .6s; }
.msg-hero-scroll {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.msg-hero-scroll span:first-child {
  font-family: var(--font-sans); font-size: 9.5px; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(243, 240, 235, .7);
}
.msg-hero-scroll .line {
  width: 1px; height: 34px;
  background: linear-gradient(180deg, rgba(243,240,235,.7), rgba(243,240,235,0));
  animation: msgScroll 2.4s var(--ease-out) infinite;
}

/* ============ Shared section shells ============ */
.msg-wrap { max-width: 1280px; margin: 0 auto; }
.msg-sec-pad { padding: 120px 40px; }
.msg-h2 {
  font-family: var(--font-display); font-weight: 500; font-size: 52px; line-height: 1.08;
  letter-spacing: -.01em; margin: 0; text-wrap: balance;
}
.msg-eyebrow {
  margin: 0 0 18px; font-family: var(--font-sans); font-weight: 600; font-size: 11.5px;
  letter-spacing: .24em; text-transform: uppercase;
}
.msg-sec-head { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.msg-sec-head .msg-h2 { color: var(--charcoal); margin: 0 0 18px; }
.msg-lede { font-size: 16px; line-height: 1.65; color: var(--text-secondary); margin: 0; }

/* ============ PILLARS ============ */
.msg-pillars { border-top: 1px solid var(--brass-300); background: var(--ivory); }
.msg-pillars-inner { padding: 64px 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 44px; }
.msg-pillar { display: flex; flex-direction: column; gap: 14px; }
.msg-pillar img { height: 36px; width: auto; align-self: flex-start; }
.msg-pillar h4 { font-family: var(--font-sans); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--charcoal); margin: 0; font-weight: 600; }
.msg-pillar p { font-size: 13.5px; line-height: 1.65; color: var(--text-secondary); margin: 0; }

/* ============ COLLECTION / GALLERY ============ */
.msg-collection { background: var(--sand-50); border-top: 1px solid var(--border-subtle); }
.msg-collection .msg-eyebrow { color: var(--brass-500); }
.msg-gallery { column-count: 3; column-gap: 26px; }
.msg-gallery > div { break-inside: avoid; margin: 0 0 26px; }
.msg-gallery img { width: 100%; display: block; border-radius: var(--radius-lg); border: 1px solid var(--border-subtle); }

/* ============ PROCESS (dark block) ============ */
.msg-process-sec { background: var(--chocolate); color: var(--ivory); }
.msg-process-head { max-width: 620px; margin: 0 0 72px; }
.msg-process-head .msg-eyebrow { color: var(--brass-300); }
.msg-process-head .msg-h2 { color: var(--ivory); }
.msg-process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.msg-process > div { padding: 0 32px; border-right: 1px solid var(--border-inverse); }
.msg-process > div:first-child { padding: 0 32px 0 0; }
.msg-process > div:last-child { padding: 0 0 0 32px; border-right: none; }
.msg-step-num { font-family: var(--font-display); font-size: 30px; color: var(--brass-300); margin: 0 0 20px; }
.msg-process h4 { font-family: var(--font-sans); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ivory); margin: 0 0 12px; font-weight: 600; }
.msg-process p { font-size: 14px; line-height: 1.7; color: var(--text-on-dark-muted); margin: 0; }

/* ============ CASE STUDIES / PROOF ============ */
.msg-cases-sec { background: var(--ivory); }
.msg-cases-sec .msg-eyebrow { color: var(--brass-500); }
.msg-cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.msg-case { display: flex; flex-direction: column; }
.msg-case-media { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius-lg); background: var(--sand-200); }
.msg-case-media img { width: 100%; height: 100%; object-fit: cover; }
.msg-case-foot {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border-default);
}
.msg-case-label { font-family: var(--font-sans); font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--charcoal); }
.msg-case-stat { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.msg-case-pct { font-family: var(--font-display); font-weight: 500; font-size: 52px; line-height: 1; color: var(--brass-400); }
.msg-case-cap { font-family: var(--font-sans); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }

/* ============ TESTIMONIAL ============ */
.msg-testi-sec { background: var(--sand-200); border-top: 1px solid var(--border-subtle); }
.msg-testi { max-width: 960px; margin: 0 auto; padding: 112px 40px; text-align: center; }
.msg-testi .tick { display: inline-block; width: 40px; height: 1px; background: var(--brass-400); margin: 0 0 34px; }
.msg-quote {
  font-family: var(--font-display); font-weight: 500; font-size: 38px; line-height: 1.28;
  letter-spacing: -.005em; color: var(--charcoal); margin: 0 0 30px; text-wrap: balance;
}
.msg-testi-cite { font-family: var(--font-sans); font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-secondary); margin: 0; }
.msg-trust { border-top: 1px solid var(--border-default); }
.msg-trust-inner {
  max-width: 1280px; margin: 0 auto; padding: 34px 40px;
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
  font-family: var(--font-sans); font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-muted);
}
.msg-trust-inner .dot { color: var(--brass-500); }

/* ============ FINAL CTA ============ */
.msg-cta-sec { background: var(--charcoal); color: var(--ivory); }
.msg-cta { max-width: 820px; margin: 0 auto; padding: 128px 40px; text-align: center; }
.msg-cta-logo { height: 118px; width: auto; margin: 0 0 34px; opacity: .96; }
.msg-cta-h2 {
  font-family: var(--font-display); font-weight: 500; font-size: 60px; line-height: 1.05;
  letter-spacing: -.01em; color: var(--ivory); margin: 0 0 22px; text-wrap: balance;
}
.msg-cta-sub { font-size: 16.5px; line-height: 1.65; color: rgba(243,240,235,.82); margin: 0 auto 40px; max-width: 520px; }
.msg-cta-alt { margin: 26px 0 0; font-family: var(--font-sans); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-on-dark-muted); }
.msg-cta-alt a { color: var(--brass-300); }

/* ============ FOOTER ============ */
.msg-footer-sec { background: var(--sand-900); color: var(--text-on-dark-muted); }
.msg-footer {
  max-width: 1280px; margin: 0 auto; padding: 56px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.msg-footer img { height: 40px; width: auto; filter: brightness(0) invert(1); opacity: .92; }
.msg-footer-tag { margin: 0; font-family: var(--font-sans); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--brass-300); }
.msg-footer-copy { margin: 0; font-family: var(--font-sans); font-size: 12px; color: var(--text-on-dark-muted); }

/* ============ MODAL ============ */
.msg-overlay {
  position: fixed; inset: 0; z-index: 300; background: var(--scrim);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  animation: msgFade .35s var(--ease-out) both;
}
.msg-overlay[hidden] { display: none; }
.msg-modal {
  position: relative; width: 100%; max-width: 560px; max-height: 92vh; overflow: auto;
  background: var(--sand-50); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl); padding: 44px 44px 40px;
}
.msg-modal-close {
  position: absolute; top: 18px; right: 18px; width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--border-default); border-radius: 50%;
  color: var(--text-secondary); cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard);
}
.msg-modal-close:hover { border-color: var(--charcoal); color: var(--charcoal); }
.msg-modal-eyebrow { margin: 0 0 12px; font-family: var(--font-sans); font-weight: 600; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--brass-500); }
.msg-modal-h3 { font-family: var(--font-display); font-weight: 500; font-size: 32px; line-height: 1.1; color: var(--charcoal); margin: 0 0 8px; }
.msg-modal-lede { font-size: 14px; line-height: 1.6; color: var(--text-secondary); margin: 0 0 28px; }
.msg-form { display: flex; flex-direction: column; gap: 18px; }
.msg-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.msg-form-submit { margin-top: 4px; }
.msg-form-alt { margin: 2px 0 0; text-align: center; font-family: var(--font-sans); font-size: 11px; letter-spacing: .08em; color: var(--text-muted); }

/* Thank-you state */
.msg-thanks { text-align: center; padding: 14px 0 6px; }
.msg-thanks-badge {
  width: 60px; height: 60px; border-radius: 50%; background: var(--brass-100);
  border: 1px solid var(--brass-300); display: flex; align-items: center; justify-content: center; margin: 0 auto 24px;
}
.msg-thanks-h3 { font-family: var(--font-display); font-weight: 500; font-size: 34px; color: var(--charcoal); margin: 0 0 14px; }
.msg-thanks-p { font-size: 15px; line-height: 1.65; color: var(--text-secondary); margin: 0 auto 30px; max-width: 380px; }
.msg-form-error { font-size: 13px; color: var(--danger); text-align: center; margin: 0; }
[hidden] { display: none !important; }

/* ============ RESPONSIVE ============ */
@media (max-width: 860px) {
  .msg-header { padding: 15px 20px; }
  .msg-nav { gap: 0; }
  .msg-nav a { display: none; }
  .msg-hero { padding: 0 24px 92px; }
  .msg-hero-eyebrow { font-size: 9.5px; letter-spacing: .16em; gap: 9px; }
  .msg-hero-h1 { font-size: 46px; }
  .msg-hero-sub { font-size: 15.5px; }
  .msg-h2 { font-size: 33px; }
  .msg-sec-pad { padding: 78px 24px; }
  .msg-pillars-inner { padding: 48px 24px; grid-template-columns: 1fr 1fr; gap: 34px 28px; }
  .msg-gallery { column-count: 2; column-gap: 18px; }
  .msg-process { grid-template-columns: 1fr 1fr; gap: 40px 30px; }
  .msg-process > div { border-right: none; padding: 0; }
  .msg-cases { grid-template-columns: 1fr; gap: 48px; max-width: 440px; margin-left: auto; margin-right: auto; }
  .msg-testi { padding: 80px 24px; }
  .msg-quote { font-size: 26px; }
  .msg-cta { padding: 90px 24px; }
  .msg-cta-logo { height: 100px; }
  .msg-cta-h2 { font-size: 41px; }
  .msg-footer { justify-content: center; text-align: center; gap: 18px; padding: 44px 24px; }
  .msg-modal { padding: 34px 22px 28px; }
  .msg-form-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .msg-hero-h1 { font-size: 37px; }
  .msg-cta-logo { height: 84px; }
  .msg-hero-sub { font-size: 15px; }
  .msg-h2 { font-size: 28px; }
  .msg-pillars-inner { grid-template-columns: 1fr; }
  .msg-gallery { column-count: 1; }
  .msg-quote { font-size: 23px; }
  .msg-cta-h2 { font-size: 33px; }
}
