/* =========================================================
   Media Guys — Home page (index.php). Everything is scoped to .hm
   so it can't leak into the shared header/footer or other pages.
   ========================================================= */
.hm { font-family: 'Plus Jakarta Sans', 'Sora', system-ui, sans-serif; color: #1A1512; background: #FBF1E6; -webkit-font-smoothing: antialiased; }
.hm *, .hm *::before, .hm *::after { box-sizing: border-box; }
.hm a { color: inherit; text-decoration: none; }
.hm a:hover { color: #F26522; }
.hm img { display: block; max-width: 100%; }
.hm h1, .hm h2, .hm h3, .hm p, .hm ul { margin: 0; padding: 0; }
.hm ul { list-style: none; }
.hm-wrap { max-width: none; margin: 0 auto; padding: 0 clamp(16px, 4vw, 58px); }
.hm-label { font-size: 11px; letter-spacing: 1.6px; font-weight: 600; color: #6B6256; }
.hm-accent { color: #F26522; }

/* Buttons */
.hm .hm-btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 6px; font-size: 13px; font-weight: 600; border: 1px solid transparent; transition: opacity .15s; }
.hm .hm-btn:hover { opacity: .85; color: inherit; }
.hm .hm-btn-dark { background: #1A1512; color: #fff; }
.hm .hm-btn-dark:hover { color: #fff; }
.hm .hm-btn-light { background: #fff; color: #1A1512; border-color: #EADCCB; }
.hm .hm-btn-white { background: #fff; color: #1A1512; }
.hm .hm-btn-sm { padding: 10px 18px; font-size: 12px; border-radius: 5px; }

/* Hero */
.hm-hero { background: linear-gradient(100deg, #FCF2E7 0%, #FBF0E2 60%, #FBEFE0 100%); overflow: hidden; padding: 56px 0; }
.hm-hero-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr); gap: 32px; align-items: center; }
.hm-eyebrow { font-size: 12px; letter-spacing: 1.2px; color: #A99F92; font-weight: 500; }
.hm-hero h1 { margin-top: 16px; font-size: clamp(32px, 5vw, 46px); line-height: 1.12; font-weight: 700; letter-spacing: -1px; text-wrap: balance; }
.hm-hero p { margin-top: 22px; font-size: 15px; line-height: 1.7; color: #6B6256; max-width: 520px; }
.hm-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.hm-hero-grid > img { width: 100%; max-width: none; height: auto; }

/* Services */
.hm-services { background: #FBF1E6; padding: 56px 0; }
.hm-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.hm-head h2 { margin-top: 14px; font-size: clamp(22px, 3vw, 30px); font-weight: 700; letter-spacing: -.5px; }
.hm-head p { font-size: 14px; line-height: 1.7; color: #6B6256; max-width: 340px; }
.hm-svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; margin-top: 32px; }
.hm-svc { display: flex; flex-direction: column; background: #fff; border: 1px solid #EEE2D3; border-radius: 16px; padding: 26px 26px 22px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.hm-svc:hover { transform: translateY(-3px); border-color: #F5C9A8; box-shadow: 0 14px 30px rgba(120, 90, 40, .10); }
.hm-svc-icon { width: 44px; height: 44px; border-radius: 12px; background: #FDE9D5; display: flex; align-items: center; justify-content: center; color: #F26522; }
.hm-svc h3 { margin-top: 18px; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.hm-svc-sub { margin-top: 6px; font-size: 13px; line-height: 1.5; color: #7A6E63; }
.hm-svc ul { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin-top: 20px; padding-top: 20px; border-top: 1px solid #EEE2D3; }
.hm-svc li { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: #6B6256; }
.hm-svc li span { color: #F26522; font-size: 11px; flex: none; }
.hm .hm-svc-cta { margin-top: auto; padding-top: 22px; font-size: 13px; font-weight: 600; display: flex; gap: 8px; align-items: center; color: #1A1512; }
.hm .hm-svc-cta:hover { color: #F26522; }
.hm .hm-svc-cta span { transition: transform .15s; }
.hm .hm-svc-cta:hover span { transform: translateX(3px); }

/* Featured work */
.hm-work { background: #FBF1E6; padding: 44px 0 48px; overflow: hidden; }
.hm-work-title { margin-top: 12px; font-size: clamp(20px, 2.6vw, 26px); font-weight: 700; letter-spacing: -.5px; }
.hm-marquee { margin-top: 26px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.hm-track { display: flex; gap: 18px; width: max-content; animation: hm-slide 40s linear infinite; }
.hm-marquee:hover .hm-track { animation-play-state: paused; }
@keyframes hm-slide { to { transform: translateX(calc(-50% - 9px)); } }
.hm .hm-proj { flex: none; width: 260px; display: flex; flex-direction: column; gap: 4px; padding: 22px; background: #fff; border: 1px solid #EEE2D3; border-radius: 16px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.hm .hm-proj:hover { transform: translateY(-3px); border-color: #F5C9A8; box-shadow: 0 14px 30px rgba(120, 90, 40, .10); color: inherit; }
.hm-proj-mark { width: 40px; height: 40px; border-radius: 11px; background: #FDE9D5; color: #F26522; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800; margin-bottom: 12px; }
.hm-proj-name { font-size: 16px; font-weight: 700; }
.hm-proj-url { font-size: 12px; color: #7A6E63; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-proj-go { margin-top: 14px; font-size: 12.5px; font-weight: 600; color: #F26522; display: flex; gap: 6px; }
.hm-proj-go span { transition: transform .15s; }
.hm-proj:hover .hm-proj-go span { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .hm-track { animation: none; } .hm-marquee { overflow-x: auto; } }

/* Development process */
.hm-dev { background: #FBF1E6; padding: 44px 0; }
.hm-dev-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 40px; align-items: center; }
.hm-dev h2, .hm-content h2, .hm-how h2 { margin-top: 12px; font-size: clamp(20px, 2.6vw, 26px); line-height: 1.2; font-weight: 700; letter-spacing: -.5px; }
.hm-dev p { margin-top: 18px; font-size: 13px; line-height: 1.7; color: #6B6256; max-width: 340px; }
.hm-dev .hm-btn { margin-top: 22px; }
.hm-dev-steps { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.hm-dev-step { display: flex; align-items: center; gap: 8px; flex: 1; }
.hm-dev-col { display: flex; flex-direction: column; align-items: center; gap: 12px; flex: 1; }
.hm-dev-circle { width: 52px; height: 52px; border-radius: 50%; background: #fff; box-shadow: 0 4px 16px rgba(120,90,40,.09); display: flex; align-items: center; justify-content: center; color: #1A1512; }
.hm-dev-label { font-size: 12px; font-weight: 600; text-align: center; }
.hm-dev-arrow { color: #A99F92; font-size: 12px; margin-top: -26px; }
.hm-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.hm-chip { flex: 1; min-width: 100px; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 10px; border: 1px solid #EEE2D3; border-radius: 6px; font-size: 11px; color: #6B6256; background: #fff; }

/* Content creation */
.hm-content { background: #FBF1E6; padding: 36px 0; }
.hm-content-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 40px; align-items: center; }
.hm-content p { margin-top: 12px; font-size: 13px; line-height: 1.7; color: #6B6256; max-width: 340px; }
.hm-content .hm-btn { margin-top: 18px; }
.hm-collage { display: grid; grid-template-columns: 148fr 121fr 78fr 71fr; grid-template-rows: 57fr 12fr 45fr; gap: 6px; aspect-ratio: 434 / 121; min-height: 180px; }
.hm-collage img { width: 100%; height: 100%; object-fit: cover; }
.hm-collage-pair { grid-column: 2 / 4; grid-row: 2 / 4; display: grid; grid-template-columns: 94fr 105fr; gap: 6px; }

/* Performance marketing */
.hm-perf { background: #1A1512; color: #fff; position: relative; overflow: hidden; }
.hm-perf > img { position: absolute; right: 0; top: 0; height: 100%; width: 53%; object-fit: cover; object-position: left center; max-width: none; }
.hm-perf-inner { position: relative; padding-top: 36px; padding-bottom: 36px; min-height: 240px; display: flex; align-items: center; }
.hm-perf-copy { max-width: 340px; }
.hm-perf .hm-label { color: #E4DACB; }
.hm-perf h2 { margin-top: 12px; font-size: clamp(20px, 2.6vw, 26px); line-height: 1.2; font-weight: 700; letter-spacing: -.5px; }
.hm-perf p { margin-top: 10px; font-size: 12px; line-height: 1.7; color: #E7DDD2; }
.hm-perf .hm-btn { margin-top: 18px; }
.hm .hm-perf .hm-btn-white:hover { color: #1A1512; }

/* How we work + industries */
.hm-how { background: #FBF1E6; padding: 36px 0; }
.hm-how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 40px; }
.hm-how h2 { margin-top: 8px; font-size: 22px; }
.hm-how-sub { margin-top: 6px; font-size: 12px; color: #7A6E63; }
.hm-how-steps { display: flex; gap: 6px; margin-top: 20px; }
.hm-how-step { flex: 1; display: flex; gap: 6px; }
.hm-how-step > div { flex: 1; }
.hm-how-n { width: 28px; height: 28px; border-radius: 50%; border: 1px solid #EADCCB; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; }
.hm-how-t { margin-top: 12px; font-size: 12px; font-weight: 600; }
.hm-how-d { margin-top: 3px; font-size: 10px; color: #7A6E63; }
.hm-how-arrow { color: #A99F92; font-size: 11px; margin-top: 6px; }
.hm-ind { border-left: 1px solid #EADCCB; padding-left: 36px; }
.hm-ind h2 { font-size: 19px; line-height: 1.3; }
.hm-ind p { margin-top: 10px; font-size: 12px; line-height: 1.7; color: #7A6E63; max-width: 340px; }
.hm-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; max-width: 340px; }
.hm-pill { padding: 6px 13px; border: 1px solid #EADCCB; border-radius: 999px; background: #fff; font-size: 11px; font-weight: 600; }

/* About + CTA */
.hm-about { background: #FBF1E6; }
.hm-about-grid { display: grid; grid-template-columns: 1fr 1fr; }
.hm-about-text { padding: 28px clamp(16px, 4vw, 58px); }
.hm-about h2 { margin-top: 8px; font-size: 20px; font-weight: 700; }
.hm-about-text p { margin-top: 10px; font-size: 12px; line-height: 1.7; color: #6B6256; max-width: 350px; }
.hm-stats { display: flex; gap: 36px; margin-top: 18px; flex-wrap: wrap; }
.hm-stat-v { font-size: 18px; font-weight: 700; }
.hm-stat-l { font-size: 11px; color: #7A6E63; margin-top: 2px; }
.hm-cta { position: relative; background: linear-gradient(90deg, #14100D 0%, #211A15 60%, #2A211A 100%); color: #fff; overflow: hidden; min-height: 220px; }
.hm-cta > img { position: absolute; right: 0; top: 0; height: 100%; width: 56%; object-fit: cover; max-width: none; }
.hm-cta-fade { position: absolute; inset: 0; background: linear-gradient(90deg, #14100D 30%, rgba(20,16,13,0) 62%); }
.hm-cta-body { position: relative; padding: 24px 24px 24px 32px; }
.hm-cta h2 { margin: 0; font-size: 20px; line-height: 1.2; }
.hm-cta p { margin-top: 8px; font-size: 12px; line-height: 1.6; color: #E7DDD2; max-width: 240px; }
.hm-cta .hm-btn { margin-top: 14px; }
.hm .hm-cta .hm-btn-white:hover { color: #1A1512; }
.hm-cta-tags { margin-top: 16px; font-size: 10px; color: #C9BCA9; display: flex; gap: 6px; flex-wrap: wrap; }

/* Mobile */
@media (max-width: 900px) {
  .hm-hero-grid { grid-template-columns: 1fr; }
  .hm-hero-grid > img { width: 100%; margin-left: 0; }
}
@media (max-width: 700px) {
  .hm-hero { padding: 36px 0; }
  .hm-hero-grid { grid-template-columns: 1fr; }
  .hm-hero-grid > img { width: 100%; margin-left: 0; }
  .hm-services { padding: 40px 0; }
  .hm-dev-steps { flex-wrap: wrap; row-gap: 20px; }
  .hm-dev-step { flex: 0 0 auto; }
  .hm-how-steps { flex-wrap: wrap; row-gap: 18px; }
  .hm-how-step { flex: 0 0 calc(50% - 6px); }
  .hm-ind { border-left: 0; padding-left: 0; border-top: 1px solid #EADCCB; padding-top: 28px; }
  .hm-perf > img { width: 100%; opacity: .35; }
  .hm-about-grid { grid-template-columns: 1fr; }
  .hm-about-text { padding: 28px 24px; }
  .hm-cta-body { padding-left: 24px; }
}
