/* ============================================================
   BLOG ARTICLE PAGE — article.css
   Extends style.css + mobile.css — no token duplication.
   ============================================================ */

/* ── ARTICLE HERO ────────────────────────────────────────────
   Full-viewport hero — mirrors project-hero layout exactly:
   2-col grid (left: eyebrow+title+subtitle, right: tagline).
──────────────────────────────────────────────────────────── */
.article-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--navy);
}

.article-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  will-change: transform;
  pointer-events: none;
}

.article-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  opacity: 0.5;
  transform-origin: center;
}

.article-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0, 26, 79, 0.25) 0%,
    rgba(0, 26, 79, 0.40) 40%,
    rgba(0, 26, 79, 0.80) 80%,
    rgba(0, 26, 79, 0.95) 100%
  );
}

/* Content — same grid as .project-hero-content */
.article-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(100px, 14vw, 160px) var(--gutter) clamp(64px, 8vw, 112px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: flex-end;
  gap: clamp(24px, 3vw, 48px);
}

/* Left column */
.article-hero-left {}

/* "News & Press" eyebrow — mirrors .project-hero-eyebrow exactly */
.article-hero-eyebrow {
  font-family: var(--body);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: clamp(12px, 1.5vw, 20px);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* "FEATURE" pill badge — sits inline after the eyebrow text */
.article-hero-category {
  font-family: var(--body);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--cyan);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  line-height: 1;
}

/* Big bold title — mirrors .project-hero-title exactly */
.article-hero-title {
  font-family: var(--display);
  font-size: clamp(52px, 8vw, 128px);
  font-weight: 700;
  font-style: normal;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: clamp(16px, 2vw, 28px);
}

/* "Published in MassArt · Sep 29, 2025" — mirrors .project-hero-subtitle */
.article-hero-subtitle {
  font-family: var(--body);
  font-size: clamp(13px, 1.1vw, 16px);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(248, 247, 243, 0.6);
  line-height: 1.4;
}

/* Right column — mirrors .project-hero-right */
.article-hero-right {
  padding-bottom: clamp(4px, 0.5vw, 8px);
}

/* Italic display tagline — mirrors .project-hero-tagline exactly */
.article-hero-tagline {
  font-family: var(--display);
  font-size: clamp(20px, 2.2vw, 34px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.3;
  color: rgba(248, 247, 243, 0.8);
  border-left: 2px solid var(--cyan);
  padding-left: clamp(20px, 2vw, 32px);
}


/* ── ARTICLE BODY WRAPPER ────────────────────────────────────
   White reading environment. All text sections share padding.
──────────────────────────────────────────────────────────── */
.article-body {
  background: var(--white);
  padding: clamp(36px, 4.5vw, 72px) var(--gutter);
}

.article-col {
  max-width: 760px;
  margin: 0 auto;
}

/* ── BYLINE BAR ──────────────────────────────────────────────  */
.article-byline {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 24px);
  padding-bottom: clamp(24px, 3vw, 40px);
  margin-bottom: clamp(20px, 2.5vw, 36px);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.article-byline-author {
  font-family: var(--body);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--navy);
}

.article-byline-author span {
  font-weight: 400;
  color: var(--grey);
  margin-left: 4px;
}

.article-byline-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
}

.article-byline-read {
  font-family: var(--body);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.07em;
  color: var(--grey);
}

.article-byline-source {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--body);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--grey);
}

.article-source-logo {
  height: 24px;
  width: auto;
  display: block;
  /* Make logo match navy color */
  filter: brightness(0) saturate(100%) invert(10%) sepia(40%) saturate(900%) hue-rotate(200deg) brightness(0.6);
  opacity: 0.7;
}

/* ── OPENING PARAGRAPH ───────────────────────────────────────  */
.article-intro {
  font-family: var(--display);
  font-size: clamp(22px, 2.8vw, 36px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.32;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin-bottom: clamp(24px, 3vw, 40px);
}

/* ── BODY PARAGRAPHS ─────────────────────────────────────────  */
.article-p {
  font-family: var(--body);
  font-size: var(--fs-sm);
  line-height: 1.9;
  color: rgba(0, 26, 79, 0.72);
  margin-bottom: 1.5em;
}

.article-p:last-child { margin-bottom: 0; }

.article-p a {
  color: var(--cobalt);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: opacity 0.2s;
}

.article-p a:hover { opacity: 0.7; }

/* ── Q&A SECTION ─────────────────────────────────────────────  */
.article-qa {
  margin-top: clamp(24px, 3vw, 40px);
}

.article-qa-item {
  padding-top: clamp(20px, 2.5vw, 32px);
  margin-bottom: clamp(20px, 2.5vw, 36px);
  border-top: 1px solid var(--border);
}

.article-q {
  font-family: var(--body);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--cobalt);
  line-height: 1.55;
  letter-spacing: 0.01em;
  margin-bottom: clamp(14px, 1.8vw, 22px);
  /* Flex so ::before badge stays in its own column and wrapped
     lines align flush with the first line of text */
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.article-q::before {
  content: 'Q';
  font-size: var(--fs-label);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(11, 208, 250, 0.12);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 0.18em; /* optically align badge with first line cap-height */
}

.article-a {
  font-family: var(--body);
  font-size: var(--fs-sm);
  line-height: 1.9;
  color: rgba(0, 26, 79, 0.72);
}

.article-a p + p {
  margin-top: 1.25em;
}

.article-a a {
  color: var(--cobalt);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* ── FULL-BLEED IMAGE BREAK ──────────────────────────────────
   Full-width photo panel between article sections.
──────────────────────────────────────────────────────────── */
.article-image-break {
  width: 100%;
  position: relative;
  overflow: hidden;
  background: var(--navy);
  height: clamp(360px, 52vw, 700px);
  line-height: 0;
}

.article-image-break img {
  position: absolute;
  top: -10%;
  left: 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: center top;
  display: block;
  opacity: 0.88;
  will-change: transform;
}

.article-image-caption {
  background: var(--white);
  width: 100%;
  padding: 14px var(--gutter) clamp(40px, 5vw, 64px);
  max-width: none;
  font-family: var(--body);
  font-size: var(--fs-label);
  font-weight: 400;
  font-style: italic;
  color: var(--grey);
  letter-spacing: 0.03em;
}

/* Contained image inside the column */
.article-image-contained {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: clamp(36px, 4.5vw, 60px) 0 0;
  line-height: 0;
  position: relative;
  height: clamp(300px, 48vw, 620px);
}

.article-image-contained img {
  position: absolute;
  top: -10%;
  left: 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: center;
  display: block;
  will-change: transform;
}

/* ─── YouTube thumbnail link ─────────────────────────────── */
.article-video-thumb {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: clamp(36px, 4.5vw, 60px) 0;
  text-decoration: none;
  cursor: pointer;
  background: var(--navy);
}
.article-video-thumb-img {
  position: absolute;
  inset: 0;
}
.article-video-thumb-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s var(--ease);
}
.article-video-thumb:hover .article-video-thumb-img img {
  transform: scale(1.04);
}
.article-video-thumb-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: rgba(0, 0, 0, 0.28);
  transition: background 0.3s var(--ease);
}
.article-video-thumb:hover .article-video-thumb-overlay {
  background: rgba(0, 0, 0, 0.42);
}
.article-video-thumb-play {
  display: block;
  transition: transform 0.3s var(--ease);
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.5));
}
.article-video-thumb:hover .article-video-thumb-play {
  transform: scale(1.1);
}
.article-video-thumb-label {
  font-family: var(--body);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

/* ─── Podcast platform links ─────────────────────────────── */
.article-podcast-platforms {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: clamp(20px, 2.5vw, 32px);
}
.article-podcast-label {
  font-family: var(--body);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
  margin-right: 4px;
}
.article-podcast-platform {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  background: var(--light-blue);
  color: var(--navy);
  font-family: var(--body);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}
.article-podcast-platform:hover {
  background: var(--cobalt);
  color: var(--white);
}

.article-image-caption-sm {
  font-family: var(--body);
  font-size: var(--fs-label);
  font-weight: 400;
  font-style: italic;
  color: var(--grey);
  letter-spacing: 0.03em;
  margin-top: 8px;
  margin-bottom: clamp(32px, 4vw, 52px);
  line-height: 1.5;
}

/* ── PULL QUOTE SECTION ──────────────────────────────────────
   Full-width navy panel. Giant display italic quote.
   Mirrors the homepage .testimonial-quote treatment.
──────────────────────────────────────────────────────────── */
.article-pull-quote {
  background: var(--navy);
  padding: clamp(60px, 8vw, 112px) var(--gutter);
  position: relative;
  overflow: hidden;
}

/* Background photo layer — sits between navy bg and text */
.article-pq-bg {
  position: absolute;
  inset: -20% 0;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

.article-pq-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 0.25;
  /* Blue duotone blend — same treatment as CTA / project hero */
  filter: grayscale(30%) brightness(0.7);
  mix-blend-mode: luminosity;
}

/* Subtle radial glow — same brand flourish as homepage */
.article-pull-quote::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 60%;
  height: 160%;
  background: radial-gradient(ellipse at right center, rgba(11, 208, 250, 0.07) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* Two-column layout: quote text left (1fr), attribution right (auto) —
   mirrors .testimonial-featured grid-template-columns: 1fr auto */
.article-pull-quote-inner {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: flex-end;
  gap: clamp(40px, 5vw, 80px);
}

.article-pull-quote-text {
  font-family: var(--display);
  font-size: clamp(28px, 4.2vw, 68px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.13;
  letter-spacing: -0.02em;
  color: var(--white);
}

/* Hung quote mark — inline, negative margin, exactly like .testimonial-quote::before */
.article-pull-quote-text::before {
  content: '\201C';
  color: var(--cyan);
  font-style: normal;
  margin-left: -0.32em;
}

/* Attribution column — mirrors .testimonial-attr exactly */
.article-pull-quote-attr {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
  flex-shrink: 0;
}

.apq-name {
  font-family: var(--body);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--white);
}

.apq-role {
  font-family: var(--body);
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.08em;
}

/* ── CTA BACKGROUND PARALLAX ────────────────────────────────
   Same as project.css — required here because article pages
   don't load project.css.
──────────────────────────────────────────────────────────── */
.cta-bg-parallax {
  position: absolute;
  inset: -20% 0;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

.cta-bg-parallax img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.5;
  display: block;
}

/* ── MASSART ATTRIBUTION ─────────────────────────────────────
   Light-blue panel crediting the original publication.
──────────────────────────────────────────────────────────── */
.article-attribution {
  background: var(--light-blue);
  padding: clamp(36px, 5vw, 64px) var(--gutter);
}

.article-attribution-inner {
  max-width: 760px;
  margin: 0 auto;
}

.article-attribution-label {
  font-family: var(--body);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cobalt);
  display: block;
  margin-bottom: 16px;
}

.article-attribution-logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.article-attribution-logo {
  height: 28px;
  width: auto;
  display: block;
  filter: brightness(0) saturate(100%) invert(10%) sepia(40%) saturate(900%) hue-rotate(200deg) brightness(0.6);
  opacity: 0.8;
}

.article-attribution-school {
  font-family: var(--body);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--navy);
}

.article-attribution-text {
  font-family: var(--body);
  font-size: var(--fs-sm);
  line-height: 1.75;
  color: var(--grey);
  margin-bottom: 24px;
}

.article-attribution-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--body);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cobalt);
  border-bottom: 1px solid rgba(0, 49, 163, 0.25);
  padding-bottom: 3px;
  transition: gap 0.3s var(--ease), border-color 0.3s var(--ease);
}

.article-attribution-link:hover {
  gap: 15px;
  border-color: var(--cobalt);
}

.article-attribution-link svg {
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}

.article-attribution-link:hover svg { transform: translateX(4px); }

/* ── MORE FROM THE BLOG ───────────────────────────────────────
   Two mini cards + back-to-blog link.
──────────────────────────────────────────────────────────── */
.article-more {
  background: var(--white);
  padding: clamp(36px, 5vw, 64px) var(--gutter);
}

.article-more-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}

.article-more-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: clamp(32px, 4vw, 52px);
  gap: 20px;
  flex-wrap: wrap;
}

.article-more-eyebrow {
  font-family: var(--body);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cobalt);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.article-more-eyebrow::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  flex-shrink: 0;
}

.article-more-title {
  font-family: var(--display);
  font-size: clamp(32px, 4vw, 60px);
  font-weight: 300;
  font-style: italic;
  line-height: 0.95;
  color: var(--navy);
}

.article-more-title em {
  font-style: italic;
}

.article-more-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--body);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cobalt);
  flex-shrink: 0;
  transition: gap 0.3s var(--ease);
}

.article-more-back:hover { gap: 14px; }
.article-more-back svg { transition: transform 0.3s var(--ease); }
.article-more-back:hover svg { transform: translateX(-4px); }

/* Mini article cards — same structural system as blog cards */
.article-more-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(10px, 1.2vw, 16px);
}

.article-more-card {
  position: relative;
  border-radius: clamp(12px, 1.4vw, 20px);
  aspect-ratio: 16/9;
  display: block;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  overflow: hidden;
}

.article-more-card-media {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  box-shadow: none;
  z-index: 0;
}

.article-more-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 115%;
  object-fit: cover;
  object-position: center;
  display: block;
  margin-top: -7%;
  will-change: transform;
  transition: transform 0.8s var(--ease);
}

.article-more-card:hover .article-more-card-img {
  transform: scale(1.04) translate3d(0, -1%, 0);
}

.article-more-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit; /* clips gradient to card's rounded shape on light backgrounds */
  background: linear-gradient(
    to top,
    rgba(0, 26, 79, 0.95) 0%,
    rgba(0, 26, 79, 0.45) 50%,
    rgba(0, 26, 79, 0.05) 100%
  );
  transition: background 0.5s var(--ease);
}

.article-more-card:hover .article-more-card-overlay {
  background: linear-gradient(
    to top,
    rgba(0, 26, 79, 1) 0%,
    rgba(0, 26, 79, 0.6) 55%,
    rgba(0, 26, 79, 0.1) 100%
  );
}

.article-more-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: clamp(18px, 2.4vw, 32px);
}

.article-more-card-category {
  font-family: var(--body);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(11, 208, 250, 0.12);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  display: inline-block;
  margin-bottom: 10px;
}

.article-more-card-title {
  font-family: var(--display);
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 12px;
}

.article-more-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--body);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  transition: gap 0.3s var(--ease), color 0.3s var(--ease);
}

.article-more-card:hover .article-more-card-cta {
  gap: 13px;
  color: var(--white);
}

.article-more-card-cta svg { flex-shrink: 0; transition: transform 0.3s var(--ease); }
.article-more-card:hover .article-more-card-cta svg { transform: translateX(4px); }

/* ── MOBILE ──────────────────────────────────────────────────  */
@media (max-width: 900px) {
  .article-more-grid { grid-template-columns: 1fr; }
  .article-more-card { aspect-ratio: 4/3; }
}

/* Hidden on desktop, forced break on mobile */
.mobile-br { display: none; }

@media (max-width: 768px) {
  .mobile-br { display: block; }

  /* Hero collapses to single column like project hero on mobile */
  .article-hero-inner {
    grid-template-columns: 1fr;
    gap: clamp(28px, 5vw, 40px);
  }

  .article-hero-right { display: none; } /* hide tagline on mobile */

  .article-hero-title {
    font-size: clamp(40px, 12vw, 72px);
    line-height: 0.92;
  }

  /* Tighter section spacing on mobile */
  .article-body { padding: 24px 20px; }
  .article-image-caption { padding: 10px 20px 24px; }
  .article-image-caption-sm { margin-bottom: 24px; }

  .article-byline {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .article-byline-sep { display: none; }

  .article-byline-source { margin-left: 0; }

  .article-pull-quote {
    padding: clamp(44px, 8vw, 64px) 20px;
  }

  .article-pull-quote-inner {
    grid-template-columns: 1fr;
    gap: clamp(24px, 4vw, 36px);
  }

  .article-pull-quote-attr { text-align: left; }

  .article-pull-quote-text {
    font-size: clamp(22px, 7.5vw, 40px);
  }

  .article-image-break {
    height: clamp(260px, 65vw, 400px);
  }

  .article-more-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
