/* ========================================
   MAGAZINE / EDITORIAL STYLESHEET
   Full-bleed photos, oversized numbered markers,
   asymmetric layouts, big serif accents, generous whitespace
   ======================================== */

/* Magazine page wrapper — softens the existing dark theme */
.mag-page {
  background: #0f1419;
  color: #e8e8e8;
  --mag-accent: #00ff99;
  --mag-mute: rgba(255,255,255,0.55);
  --mag-line: rgba(255,255,255,0.08);
  --mag-num: rgba(255,255,255,0.06);
}

/* Override container narrowness for some sections; magazine likes full bleed */
.mag-page .container { max-width: 1280px; }

/* ----- HERO: full-bleed photo with overlaid title ----- */
.mag-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-top: calc(-1 * var(--nav-h));
  padding-top: var(--nav-h);
}
.mag-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.mag-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mag-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,20,25,0) 50%, rgba(15,20,25,0.95) 100%);
}
.mag-hero-content {
  position: relative;
  z-index: 1;
  padding: 4rem 0;
  max-width: 720px;
}
.mag-hero .mag-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--mag-accent);
  margin-bottom: 1.25rem;
  display: inline-block;
}
.mag-hero h1 {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(2.5rem, 7vw, 6rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 1.5rem;
}
.mag-hero h1 em {
  font-style: italic;
  color: var(--mag-accent);
  font-weight: 400;
}
.mag-hero p {
  font-family: 'Open Sans', sans-serif;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  max-width: 560px;
}

/* ----- MAGAZINE SPREAD ----- */
.mag-spread {
  padding: 7rem 0;
  position: relative;
}
.mag-spread + .mag-spread {
  border-top: 1px solid var(--mag-line);
}
.mag-spread.alt { background: #0a0e12; }

/* Oversized numbered section marker */
.mag-num {
  position: absolute;
  top: 2rem;
  right: 5%;
  font-family: 'Raleway', sans-serif;
  font-size: clamp(8rem, 18vw, 16rem);
  font-weight: 900;
  line-height: 0.8;
  color: var(--mag-num);
  letter-spacing: -0.05em;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.mag-spread .container { position: relative; z-index: 1; }

/* ----- SPREAD INNER LAYOUTS ----- */

/* Asymmetric: text 5/12, image 7/12 with offset */
.mag-asym {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 4rem;
  align-items: center;
}
.mag-asym.rev { grid-template-columns: 7fr 5fr; }
.mag-asym-text { max-width: 480px; }
.mag-asym-img {
  position: relative;
}
.mag-asym-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}
/* Image overflow bleed effect */
.mag-asym-img.bleed-r {
  margin-right: -8%;
}
.mag-asym.rev .mag-asym-img.bleed-l {
  margin-left: -8%;
}

/* Editorial typography */
.mag-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--mag-accent);
  margin-bottom: 1.25rem;
  display: block;
}
.mag-h {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: #fff;
  margin-bottom: 1.5rem;
}
.mag-h em {
  font-style: italic;
  font-weight: 300;
  color: var(--mag-accent);
}
.mag-lede {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.15rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.8);
  margin-bottom: 1.5rem;
}
.mag-body p {
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.68);
  margin-bottom: 1rem;
}
.mag-body strong { color: #fff; font-weight: 600; }

/* Big pull quote */
.mag-quote {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.3;
  color: #fff;
  max-width: 880px;
  margin: 5rem auto;
  text-align: center;
  position: relative;
  padding: 0 2rem;
}
.mag-quote::before, .mag-quote::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: var(--mag-accent);
  margin: 1.5rem auto;
}

/* ----- FULL-WIDTH PHOTO BREAK ----- */
.mag-photobreak {
  width: 100%;
  margin: 6rem 0;
  position: relative;
}
.mag-photobreak img {
  width: 100%;
  height: clamp(380px, 50vh, 620px);
  object-fit: cover;
  display: block;
}
.mag-photobreak figcaption {
  position: absolute;
  bottom: 1.5rem;
  left: 5%;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  background: rgba(0,0,0,0.5);
  padding: 0.4rem 0.9rem;
  backdrop-filter: blur(8px);
}

/* ----- TWO-UP IMAGE SPLIT (no card frames) ----- */
.mag-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--mag-line);
  margin: 3rem 0;
}
.mag-split > div {
  background: #0f1419;
  padding: 3rem 2.5rem;
}
.mag-split img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  margin-bottom: 1.5rem;
}
.mag-split h3 {
  font-family: 'Raleway', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
  color: #fff;
}
.mag-split p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.65);
}

/* ----- NUMBERED LIST (editorial, not bullets) ----- */
.mag-list {
  list-style: none;
  counter-reset: maglist;
  padding: 0;
  margin: 2rem 0;
  max-width: 760px;
}
.mag-list li {
  counter-increment: maglist;
  padding: 1.5rem 0 1.5rem 4.5rem;
  position: relative;
  border-bottom: 1px solid var(--mag-line);
}
.mag-list li::before {
  content: counter(maglist, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.4rem;
  font-family: 'Raleway', sans-serif;
  font-size: 2rem;
  font-weight: 300;
  color: var(--mag-accent);
  letter-spacing: -0.02em;
}
.mag-list li h4 {
  font-family: 'Raleway', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: #fff;
}
.mag-list li p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.65);
  margin: 0;
}

/* ----- INLINE STAT STRIP ----- */
.mag-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--mag-line);
  margin: 3rem 0;
}
.mag-stats > div {
  background: #0a0e12;
  padding: 2rem;
  text-align: center;
}
.mag-stats .num {
  font-family: 'Raleway', sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--mag-accent);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.mag-stats .label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

/* ----- CALL TO ACTION (full-bleed) ----- */
.mag-cta {
  padding: 6rem 0;
  text-align: center;
  background: linear-gradient(135deg, #0a0e12 0%, #142028 100%);
  border-top: 1px solid var(--mag-line);
  border-bottom: 1px solid var(--mag-line);
}
.mag-cta h2 {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1.2rem;
  color: #fff;
}
.mag-cta p { color: rgba(255,255,255,0.7); margin-bottom: 2rem; font-size: 1.05rem; }
.mag-cta .btn {
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 2px;
  padding: 1rem 2.5rem;
}

/* ----- RESPONSIVE ----- */
@media (max-width: 900px) {
  .mag-hero { min-height: 75vh; }
  .mag-hero h1 { font-size: clamp(2rem, 9vw, 3.2rem); }
  .mag-spread { padding: 4rem 0; }
  .mag-num { font-size: clamp(5rem, 12vw, 8rem); top: 1rem; right: 4%; }
  .mag-asym, .mag-asym.rev {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .mag-asym-img.bleed-r, .mag-asym.rev .mag-asym-img.bleed-l { margin: 0; }
  .mag-split { grid-template-columns: 1fr; }
  .mag-split > div { padding: 2rem 1.5rem; }
  .mag-split img { height: 220px; }
  .mag-quote { font-size: 1.4rem; margin: 3rem auto; padding: 0 1.5rem; }
  .mag-photobreak { margin: 3rem 0; }
  .mag-list li { padding-left: 3.5rem; }
  .mag-list li::before { font-size: 1.6rem; }
}
