/* =====================================================
   NEW WORLD MEDIA — SOCIAL MEDIA WORLD
   Reference-matched cinematic layout
   ===================================================== */

.social-media-page {
  --sm-bg: #050505;
  --sm-gold: #ffd447;
  --sm-muted: #d1cbcb;
  --sm-border: rgba(255, 212, 71, 0.14);
  background: var(--sm-bg);
  color: #f5f0e7;
  font-family: "DM Sans", sans-serif;
  overflow-x: hidden;
  margin: 0;
}

.social-media-page *,
.social-media-page *::before,
.social-media-page *::after {
  box-sizing: border-box;
}

.social-media-page main.sm-main {
  padding-top: 0;
  overflow: clip;
  background: var(--sm-bg);
}

.sm-main section {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--sm-border);
}

.sm-content {
  position: relative;
  z-index: 2;
  width: min(100%, 1500px);
  margin-inline: auto;
}

/* TYPOGRAPHY */

.sm-eyebrow {
  color: var(--sm-gold);
  font-family: "Space Grotesk", sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: .22em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.sm-heading {
  margin: 0 0 12px;
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(28px, 3.1vw, 42px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.035em;
}

.sm-heading span,
.sm-display span {
  color: var(--sm-gold);
}

.sm-description {
  max-width: 410px;
  margin: 0;
  color: var(--sm-muted);
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}

/* BUTTON */

.sm-button {
  min-height: 42px;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 18px;
  padding: 0 24px;
  border-radius: 30px;
  background: var(--sm-gold);
  color: #080706;
  text-decoration: none;
  font-family: "Space Grotesk", sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  transition: background .25s ease, transform .25s ease;
}

.sm-button:hover {
  background: #ffe68b;
  transform: translateY(-2px);
}

.sm-button span {
  font-size: 15px;
  transition: transform .25s ease;
}

.sm-button:hover span {
  transform: translateX(4px);
}

/* =====================================================
   01 — HERO
   ===================================================== */

.sm-hero {
  min-height: 440px;
  position: relative;
  display: flex;
  align-items: center;
  isolation: isolate;
  padding: 130px 60px;
  background:
    #050505
    url("../images/social-media/social-media-bg.webp")
    center 48% / cover no-repeat;
}

.sm-hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(5, 5, 5, .97) 0%,
    rgba(5, 5, 5, .89) 30%,
    rgba(5, 5, 5, .35) 58%,
    rgba(5, 5, 5, .06) 100%
  );
}

.sm-hero__content {
  width: min(440px, 54%);
  position: relative;
  z-index: 2;
}

.sm-display {
  margin: 0;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 4.2vw, 46px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.03em;
}

.sm-hero__description {
  max-width: 360px;
  margin: 16px 0 0;
  color: var(--sm-muted);
  font-size: 13px;
  line-height: 1.55;
}

.sm-hero__tagline {
  width: fit-content;
  margin: 20px 0 0;
  padding: 6px 0 6px 12px;
  border-left: 1px solid var(--sm-gold);
  color: #d6b963;
  font-family: "Space Grotesk", sans-serif;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .16em;
}

/* =====================================================
   02 — THE PROBLEM
   ===================================================== */

.sm-problem,
.sm-proof,
.sm-next-step {
  min-height: 250px;
  position: relative;
  display: flex;
  align-items: center;
  isolation: isolate;
  padding: 34px 60px;
  background-color: #050505;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 48%;
}

.sm-problem {
  background-image: url("../images/social-media/social-media-the-problem.webp");
}

.sm-problem-shade,
.sm-proof-shade,
.sm-next-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(5, 5, 5, .98) 0%,
    rgba(5, 5, 5, .91) 34%,
    rgba(5, 5, 5, .42) 60%,
    rgba(5, 5, 5, .06) 100%
  );
}

.sm-editorial-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.sm-editorial-copy {
  width: min(440px, 55%);
}

.sm-problem-note {
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-50%) rotate(-7deg);
  color: #e5b369;
  font-family: Georgia, serif;
  font-size: clamp(14px, 1.4vw, 18px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.35;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* =====================================================
   03 — ECOSYSTEM ICON CARDS (3 TOP, 2 BOTTOM)
   ===================================================== */

.sm-ecosystem {
  display: grid;
  grid-template-columns: minmax(220px, .85fr) minmax(0, 1.6fr);
  align-items: center;
  gap: clamp(24px, 4vw, 55px);
  padding: 32px 60px;
  background: #050505;
}

.sm-ecosystem-intro {
  min-width: 0;
}

.sm-ecosystem-intro .sm-description {
  max-width: 320px;
  margin-top: 14px;
}

.sm-ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.sm-eco-card {
  grid-column: span 2;
  min-width: 0;
  min-height: 155px;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid rgba(255, 212, 71, .15);
  border-radius: 6px;
  background: rgba(255, 255, 255, .015);
  transition: border-color .25s ease, background .25s ease;
}

/* Second row: 2 centered cards */
.sm-eco-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.sm-eco-card:nth-child(5) {
  grid-column: 4 / span 2;
}

.sm-eco-card:hover {
  border-color: rgba(255, 212, 71, .55);
  background: rgba(255, 212, 71, .03);
}

.sm-eco-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  margin-bottom: 9px;
  border: 1px solid rgba(255, 212, 71, .7);
  border-radius: 50%;
  color: var(--sm-gold);
}

.sm-eco-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sm-eco-card h3 {
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 6px;
}

.sm-eco-card p {
  max-width: 150px;
  color: #c7c2bd;
  font-family: "DM Sans", sans-serif;
  font-size: 10px;
  line-height: 1.38;
  margin: 0;
}

/* =====================================================
   04 — THE PROOF
   ===================================================== */

.sm-proof {
  min-height: 290px;
  background-image: url("../images/social-media/social-media-proof.webp");
}

.sm-proof-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 20px;
}

.sm-proof-points div {
  padding: 4px 14px;
  border-left: 1px solid rgba(255, 212, 71, .6);
  color: #e5c66b;
  font-family: "Space Grotesk", sans-serif;
  font-size: 8.5px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: .08em;
}

.sm-proof-points div:first-child {
  padding-left: 10px;
}

/* =====================================================
   05 — THE NEXT STEP
   ===================================================== */

.sm-next-step {
  min-height: 280px;
  background-image: url("../images/social-media/social-media-next-step.webp");
}

/* =====================================================
   RESPONSIVE — TABLET
   ===================================================== */

@media (max-width: 900px) {
  .sm-hero__content {
    width: 60%;
  }

  .sm-ecosystem {
    grid-template-columns: minmax(180px, .85fr) minmax(0, 1.6fr);
    gap: 24px;
    padding-inline: 28px;
  }

  .sm-eco-card {
    min-height: 145px;
  }
}

/* =====================================================
   RESPONSIVE — MOBILE
   ===================================================== */

@media (max-width: 650px) {
  .social-media-page main.sm-main {
    padding-top: 0;
  }

  .sm-hero {
    min-height: 520px;
    padding: 105px 22px 35px;
    background-position: 59% center;
  }

  .sm-hero__shade {
    background: linear-gradient(
      90deg,
      rgba(5, 5, 5, .96) 0%,
      rgba(5, 5, 5, .82) 58%,
      rgba(5, 5, 5, .28) 100%
    );
  }

  .sm-hero__content {
    width: 100%;
  }

  .sm-display {
    font-size: clamp(34px, 9vw, 44px);
  }

  .sm-problem,
  .sm-proof,
  .sm-next-step {
    min-height: 320px;
    padding: 34px 22px;
    background-position: 60% center;
  }

  .sm-editorial-copy {
    width: 100%;
  }

  .sm-problem-note {
    display: none;
  }

  .sm-ecosystem {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 34px 22px;
  }

  .sm-ecosystem-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .sm-eco-card,
  .sm-eco-card:nth-child(4),
  .sm-eco-card:nth-child(5) {
    grid-column: auto;
    min-height: 155px;
    padding: 14px 10px;
  }

  .sm-eco-card:last-child {
    grid-column: 1 / -1;
  }

  .sm-proof-points {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 8px;
  }

  .sm-proof-points div {
    padding: 4px 8px;
    font-size: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sm-button,
  .sm-button span,
  .sm-eco-card {
    transition: none;
  }
}