/* ============================================================
   BMM Brands Inc. — Refined Light + Ink
   Sophisticated, editorial, motion-rich. One confident accent.
   ============================================================ */

@import url("https://api.fontshare.com/v2/css?f[]=clash-display@600,700,500&f[]=satoshi@400,500,700,900&display=swap");

:root {
  /* Surfaces — refined near-white + warm paper */
  --bg:        #f7f6f3;
  --bg-2:      #ffffff;
  --tint:      #f0eee9;      /* subtle section tint */
  --ink:       #14161c;      /* near-black text */
  --ink-2:     #3a3f4a;
  --ink-3:     #6b7280;
  --line:      #e4e1da;
  --line-2:    #d6d2c8;

  /* Single confident accent + restrained support */
  --accent:    #1f49d6;      /* deep cobalt */
  --accent-2:  #143093;      /* deeper cobalt */
  --accent-soft:#eaeefc;
  --ink-band:  #0e1016;      /* dark band */

  /* Type */
  --display: "Clash Display", system-ui, sans-serif;
  --sans: "Satoshi", system-ui, -apple-system, sans-serif;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --t-int: 360ms var(--ease-out);

  --radius: 16px;
  --radius-lg: 26px;
  --wrap: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
}

.wrap { width: min(var(--wrap), 92vw); margin-inline: auto; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.04; letter-spacing: -0.02em; color: var(--ink); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
em { font-style: normal; color: var(--accent); }
strong { font-weight: 700; color: var(--ink); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--sans); font-weight: 700; font-size: 0.98rem;
  padding: 0.92rem 1.5rem; border-radius: 100px;
  cursor: pointer; border: 1px solid transparent;
  transition: transform var(--t-int), box-shadow var(--t-int), background var(--t-int), color var(--t-int), border-color var(--t-int);
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; transition: transform var(--t-int); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent); transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(31,73,214,0.55); }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); background: var(--bg-2); }

/* ============ HEADER ============ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.1rem 0;
  transition: background var(--t-int), box-shadow var(--t-int), padding var(--t-int), border-color var(--t-int);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(247,246,243,0.82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
  padding: 0.7rem 0;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); }
.brand .gem { width: 30px; height: 30px; color: var(--accent); transition: transform 600ms var(--ease-out); }
.brand:hover .gem { transform: rotate(120deg); }
.wordmark { display: flex; flex-direction: column; font-family: var(--display); font-weight: 700; font-size: 1.32rem; line-height: 0.95; letter-spacing: -0.01em; }
.wordmark small { font-family: var(--sans); font-weight: 500; font-size: 0.52rem; letter-spacing: 0.22em; color: var(--ink-3); margin-top: 2px; }

.nav-links { display: flex; gap: 2rem; }
.nav-links a { font-size: 0.97rem; font-weight: 500; color: var(--ink-2); position: relative; padding: 0.25rem 0; transition: color var(--t-int); }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--accent); border-radius: 2px; transition: width var(--t-int); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 0.75rem; }
.nav-toggle { display: none; background: none; border: none; color: var(--ink); cursor: pointer; padding: 4px; }
.nav-toggle svg { width: 26px; height: 26px; }

/* ============ HERO ============ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding-top: 84px; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 2rem; align-items: center; pointer-events: none; }
.hero-inner a, .hero-inner button { pointer-events: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-2); background: var(--accent-soft);
  border: 1px solid #d7defb; padding: 0.45rem 0.95rem; border-radius: 100px;
  margin-bottom: 1.5rem;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(31,73,214,0.5); animation: pulse 2.4s var(--ease-io) infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(31,73,214,0.45)} 70%{box-shadow:0 0 0 8px rgba(31,73,214,0)} 100%{box-shadow:0 0 0 0 rgba(31,73,214,0)} }

.hero h1 { font-size: clamp(2.9rem, 6.2vw, 5.3rem); font-weight: 600; margin-bottom: 1.5rem; }
.hero h1 .pop { color: var(--accent); }
.hero-sub { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--ink-2); max-width: 33ch; margin-bottom: 2.1rem; }
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 2.6rem; }

.hero-stats { display: flex; gap: 2.4rem; flex-wrap: wrap; }
.hero-stats .stat .num { font-family: var(--display); font-weight: 700; font-size: 1.85rem; letter-spacing: -0.02em; line-height: 1; }
.hero-stats .stat .lbl { font-size: 0.82rem; color: var(--ink-3); margin-top: 0.35rem; max-width: 16ch; }

.hero-visual { display: none; } /* desktop uses canvas */
.hero-fallback { width: 100%; border-radius: var(--radius-lg); }

.scroll-cue { position: absolute; bottom: 1.7rem; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; color: var(--ink-3); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; }
.scroll-cue .mouse { width: 22px; height: 34px; border: 2px solid var(--line-2); border-radius: 12px; position: relative; }
.scroll-cue .mouse::after { content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; background: var(--accent); border-radius: 2px; transform: translateX(-50%); animation: wheel 1.7s var(--ease-io) infinite; }
@keyframes wheel { 0%{opacity:1;transform:translate(-50%,0)} 70%{opacity:0;transform:translate(-50%,9px)} 100%{opacity:0} }

/* ============ SECTIONS ============ */
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; position: relative; }
.section-tint { background: var(--tint); }

.kicker { display: inline-flex; align-items: center; gap: 0.55rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 1.1rem; }
.kicker .tick { width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }

.section-head { max-width: 760px; margin-bottom: 3.4rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .kicker { justify-content: center; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.1rem); margin-bottom: 1rem; }
.section-head p { color: var(--ink-2); font-size: 1.08rem; }

/* Pitch band */
.pitch { max-width: 1000px; margin-inline: auto; text-align: center; }
.pitch .big { font-family: var(--display); font-weight: 500; font-size: clamp(1.6rem, 3.4vw, 2.7rem); line-height: 1.18; letter-spacing: -0.02em; color: var(--ink); }
.pitch .big em { color: var(--accent); }
.u-accent { color: var(--accent); font-weight: 600; }

/* ============ CAPABILITIES (alternating rows) ============ */
.cap-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; margin-bottom: clamp(3.5rem, 7vw, 6rem); }
.cap-row:last-child { margin-bottom: 0; }
.cap-row.reverse .cap-media { order: 2; }
.cap-media { border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgba(20,22,28,0.35); }
.cap-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform 900ms var(--ease-out); }
.cap-row:hover .cap-media img { transform: scale(1.04); }

.cap-badge { display: inline-flex; align-items: center; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.4rem 0.85rem; border-radius: 100px; margin-bottom: 1.1rem; background: var(--accent-soft); color: var(--accent-2); border: 1px solid #d7defb; }
.cap-copy h3 { font-size: clamp(1.5rem, 2.6vw, 2.05rem); margin-bottom: 0.85rem; }
.cap-copy > p { color: var(--ink-2); margin-bottom: 1.3rem; }
.cap-points { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.cap-points li { display: flex; align-items: flex-start; gap: 0.7rem; font-size: 0.98rem; color: var(--ink-2); }
.cap-points li svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--accent); margin-top: 1px; }

/* ============ STATS BAND (dark) ============ */
.stats-band { background: var(--ink-band); color: #fff; padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stats-band .stat .num { font-family: var(--display); font-weight: 700; font-size: clamp(2.2rem, 4.5vw, 3.4rem); letter-spacing: -0.02em; line-height: 1; color: #fff; }
.stats-band .stat .num.accent { color: #6f93ff; }
.stats-band .stat .lbl { font-size: 0.9rem; color: rgba(255,255,255,0.6); margin-top: 0.6rem; }

/* ============ HOW WE WORK ============ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; counter-reset: step; }
.step { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.5rem; transition: transform var(--t-int), box-shadow var(--t-int), border-color var(--t-int); }
.step:hover { transform: translateY(-4px); box-shadow: 0 24px 44px -30px rgba(20,22,28,0.4); border-color: var(--line-2); }
.step .n { font-family: var(--display); font-weight: 700; font-size: 1.05rem; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent-2); margin-bottom: 1.1rem; }
.step h4 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.step p { font-size: 0.94rem; color: var(--ink-2); }

/* ============ BRAND PORTFOLIO ============ */
.brand-logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-bottom: 3rem; }
.logo-card { display: grid; place-items: center; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.4rem; min-height: 110px; transition: transform var(--t-int), box-shadow var(--t-int), border-color var(--t-int); }
.logo-card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 22px 40px -28px rgba(20,22,28,0.35); }
.logo-card img { max-height: 42px; width: auto; object-fit: contain; filter: grayscale(100%) opacity(0.7); transition: filter var(--t-int); }
.logo-card:hover img { filter: grayscale(0) opacity(1); }

.brand-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }
.brand-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform var(--t-int), box-shadow var(--t-int), border-color var(--t-int); }
.brand-card:hover { transform: translateY(-5px); box-shadow: 0 30px 54px -34px rgba(20,22,28,0.42); border-color: var(--line-2); }
.brand-card .shot { aspect-ratio: 4/3; overflow: hidden; background: var(--tint); border-bottom: 1px solid var(--line); }
.brand-card .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 800ms var(--ease-out); }
.brand-card:hover .shot img { transform: scale(1.05); }
.brand-card .meta { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.2rem; }
.brand-card .nm { font-family: var(--display); font-weight: 600; font-size: 1.1rem; }
.brand-card .cat { font-size: 0.82rem; color: var(--ink-3); margin-top: 2px; }
.brand-card .go { width: 18px; height: 18px; color: var(--ink-3); transition: transform var(--t-int), color var(--t-int); }
.brand-card:hover .go { transform: translate(3px,-3px); color: var(--accent); }

/* ============ CTA ============ */
.cta { background: var(--ink-band); color: #fff; border-radius: var(--radius-lg); padding: clamp(3rem, 6vw, 5rem); text-align: center; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 80% 0%, rgba(31,73,214,0.35), transparent 70%), radial-gradient(500px 260px at 10% 110%, rgba(31,73,214,0.22), transparent 70%); pointer-events: none; }
.cta > * { position: relative; z-index: 1; }
.cta .kicker { color: #8aa6ff; justify-content: center; }
.cta .kicker .tick { background: #6f93ff; }
.cta h2 { color: #fff; font-size: clamp(2rem, 4.2vw, 3.2rem); margin-bottom: 1rem; }
.cta p { color: rgba(255,255,255,0.72); max-width: 60ch; margin: 0 auto 2rem; }
.cta-actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }
.cta .btn-primary { background: #fff; color: var(--ink); }
.cta .btn-primary:hover { background: var(--accent); color: #fff; }
.cta .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.3); }
.cta .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

/* ============ FOOTER ============ */
.site-footer { background: var(--ink-band); color: #fff; padding: 4rem 0 2rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 2fr; gap: 3rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand .brand { color: #fff; margin-bottom: 1rem; }
.footer-brand .brand .gem { color: #6f93ff; }
.footer-brand p { color: rgba(255,255,255,0.55); font-size: 0.95rem; max-width: 38ch; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.footer-col h5 { font-family: var(--sans); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 0.9rem; }
.footer-col a { display: block; color: rgba(255,255,255,0.68); font-size: 0.92rem; padding: 0.32rem 0; transition: color var(--t-int); }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; padding-top: 1.6rem; font-size: 0.85rem; color: rgba(255,255,255,0.45); }

/* ============================================================
   SCROLL REVEALS — IntersectionObserver (cross-browser)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
/* staggered children */
.reveal.stagger > * { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.reveal.stagger.in > * { opacity: 1; transform: none; }
.reveal.stagger.in > *:nth-child(2) { transition-delay: 80ms; }
.reveal.stagger.in > *:nth-child(3) { transition-delay: 160ms; }
.reveal.stagger.in > *:nth-child(4) { transition-delay: 240ms; }

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .nav-links { display: none; }
  #hero-canvas { display: none; }
  .hero { min-height: auto; padding: 120px 0 60px; }
  .hero-inner { grid-template-columns: 1fr; gap: 2.2rem; }
  .hero-visual { display: block; }
  .hero-sub { max-width: 46ch; }
  .scroll-cue { display: none; }
  .cap-row, .cap-row.reverse { grid-template-columns: 1fr; }
  .cap-row.reverse .cap-media { order: 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1.5rem; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .brand-logos { grid-template-columns: repeat(2, 1fr); }
  .brand-strip { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-cta .btn-primary { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header.menu-open { background: var(--bg-2); }
  .nav.open .nav-links { display: flex; flex-direction: column; gap: 0.4rem; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 1rem 4vw 1.4rem; box-shadow: 0 20px 40px -24px rgba(0,0,0,0.3); }
  .nav.open .nav-links a { padding: 0.7rem 0; font-size: 1.05rem; }
  .hero-stats { gap: 1.6rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .brand-logos { grid-template-columns: repeat(2, 1fr); }
  .brand-strip { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

/* ============ REDUCED MOTION ============ */
@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; }
  .reveal, .reveal.stagger > * { opacity: 1 !important; transform: none !important; }
}
