/* ─────────────────────────────────────────────
   SATIBAT — Réalisations & Actualités
   Loaded after core.css + service.css.
   Masonry portfolio, project lightbox, news grid,
   article template.
   ───────────────────────────────────────────── */

/* ═══════════════════════════════════════════════
   COMPACT HERO (shared, shorter than svc-hero)
   ═══════════════════════════════════════════════ */
.page-hero {
  position: relative; overflow: hidden;
  background: var(--teal-dark);
  margin-top: -76px; padding: 150px 0 0;
  min-height: 58vh;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.page-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; }
.page-hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(0,62,59,.5) 0%, rgba(0,40,38,.55) 45%, rgba(0,40,38,.94) 100%),
    linear-gradient(90deg, rgba(0,40,38,.6) 0%, transparent 60%);
}
/* logo line motif drifting in the hero */
.page-hero-lines {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .5;
  background-image: repeating-linear-gradient(0deg, transparent 0 33px, rgba(149,177,174,.08) 33px 35px);
}
.page-hero-inner {
  position: relative; z-index: 2;
  max-width: 1320px; width: 100%; margin: 0 auto; padding: 24px 48px 64px;
}
.page-hero h1 {
  font-family: var(--font-title); font-size: clamp(38px, 5.4vw, 74px); font-weight: 800;
  color: #fff; line-height: .98; letter-spacing: -.03em; margin-bottom: 22px;
  max-width: 16ch; text-wrap: balance;
}
.page-hero h1 em { font-style: normal; color: var(--accent); }
.page-hero .svc-lead { margin-bottom: 0; }

/* ═══════════════════════════════════════════════
   FILTER BAR
   ═══════════════════════════════════════════════ */
.filter-wrap {
  position: sticky; top: 0; z-index: 80;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border-bottom: 1px solid var(--border);
}
.filter-inner {
  max-width: 1320px; margin: 0 auto; padding: 18px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-tab {
  position: relative;
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-size: 13.5px; font-weight: 600;
  color: var(--muted); background: transparent;
  border: 1.5px solid var(--border); border-radius: 100px;
  padding: 9px 18px; cursor: pointer; letter-spacing: .01em;
  transition: color .2s, border-color .2s, background .2s, transform .2s;
}
.filter-tab .ft-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-mid); transition: transform .2s; }
.filter-tab .ft-dot.blue { background: var(--blue); }
.filter-tab .ft-dot.orange { background: var(--orange); }
.filter-tab .ft-count {
  font-size: 11px; font-weight: 700; color: var(--muted);
  background: var(--off); border-radius: 100px; padding: 1px 8px; min-width: 22px; text-align: center;
  transition: background .2s, color .2s;
}
.filter-tab:hover { color: var(--text); border-color: var(--teal-mid); transform: translateY(-1px); }
.filter-tab.is-active { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
.filter-tab.is-active.blue { background: var(--blue); border-color: var(--blue); }
.filter-tab.is-active.orange { background: var(--orange); border-color: var(--orange); }
.filter-tab.is-active .ft-count { background: rgba(255,255,255,.22); color: #fff; }
.filter-tab.is-active .ft-dot { background: #fff; }
.filter-meta {
  font-family: var(--font-body); font-size: 13px; color: var(--muted); letter-spacing: .01em;
}
.filter-meta strong { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ═══════════════════════════════════════════════
   MASONRY PORTFOLIO
   ═══════════════════════════════════════════════ */
.portfolio { padding: 64px 0 100px; }
.masonry {
  columns: 3; column-gap: 26px;
}
@media (max-width: 1000px) { .masonry { columns: 2; column-gap: 20px; } }
@media (max-width: 620px)  { .masonry { columns: 1; } }

.pcard {
  break-inside: avoid; margin-bottom: 26px;
  position: relative; border-radius: 12px; overflow: hidden;
  cursor: pointer; background: var(--teal-dark);
  box-shadow: 0 8px 28px rgba(26,41,40,.1);
  transform: translateY(14px); opacity: 0;
  transition: opacity .55s ease, transform .55s cubic-bezier(.4,0,.2,1), box-shadow .35s ease;
}
.pcard.in { transform: translateY(0); opacity: 1; }
.pcard.hide { display: none; }
.pcard:hover { box-shadow: 0 26px 60px rgba(26,41,40,.26); }
.pcard-img { width: 100%; display: block; aspect-ratio: var(--ar, 4/3); object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.pcard:hover .pcard-img { transform: scale(1.07); }
.pcard-veil {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,32,30,.92) 0%, rgba(0,32,30,.35) 42%, rgba(0,32,30,.04) 72%);
  opacity: .85; transition: opacity .4s ease;
}
.pcard:hover .pcard-veil { opacity: 1; }
/* drifting line motif reveal */
.pcard-motif {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: repeating-linear-gradient(0deg, transparent 0 15px, rgba(255,255,255,.05) 15px 16px);
  opacity: 0; transition: opacity .45s ease;
}
.pcard:hover .pcard-motif { opacity: 1; }
.pcard-body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 26px 26px 24px;
}
.pcard-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-body); font-size: 10.5px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: #fff;
  padding: 4px 11px; border-radius: 100px; margin-bottom: 12px;
  background: rgba(255,255,255,.14); backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.22);
}
.pcard-tag .ft-dot, .pcard-tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal-mid); }
.pcard-tag.blue .dot { background: var(--blue); }
.pcard-tag.orange .dot { background: var(--orange); }
.pcard h3 {
  font-family: var(--font-title); font-size: 22px; font-weight: 600; color: #fff;
  line-height: 1.12; letter-spacing: -.015em; margin-bottom: 8px; text-wrap: balance;
}
.pcard-meta {
  font-family: var(--font-body); font-size: 12.5px; color: rgba(255,255,255,.72);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.pcard-meta .sep { opacity: .4; }
.pcard-cta {
  position: absolute; top: 18px; right: 18px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  transform: scale(.7) rotate(-30deg); opacity: 0;
  transition: transform .4s cubic-bezier(.3,1.4,.5,1), opacity .3s ease, background .25s ease;
}
.pcard-cta svg { width: 18px; height: 18px; stroke: #fff; stroke-width: 2; fill: none; }
.pcard:hover .pcard-cta { transform: scale(1) rotate(0); opacity: 1; }
.pcard:hover .pcard-cta { background: var(--accent, var(--teal)); }
.pcard.acc-blue:hover .pcard-cta { background: var(--blue); }
.pcard.acc-orange:hover .pcard-cta { background: var(--orange); }

/* empty state */
.masonry-empty {
  text-align: center; padding: 60px 0; color: var(--muted);
  font-family: var(--font-body); font-size: 15px; display: none;
}
.masonry-empty.show { display: block; }

/* ═══════════════════════════════════════════════
   PROJECT LIGHTBOX (popup)
   ═══════════════════════════════════════════════ */
.lb {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 32px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .35s ease, visibility .35s;
}
.lb.open { opacity: 1; visibility: visible; pointer-events: auto; }
.lb-backdrop {
  position: absolute; inset: 0;
  background: rgba(6,20,19,.72); backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.lb-panel {
  position: relative; z-index: 2;
  width: min(1140px, 100%); max-height: 90vh;
  background: #fff; border-radius: 16px; overflow: hidden;
  display: grid; grid-template-columns: 1.15fr .85fr;
  /* La rangée implicite vaut `auto` : elle se dimensionne au contenu et
     ignore le `max-height` du panneau, qui se contente ensuite de rogner.
     `minmax(0, 1fr)` la borne à la hauteur réelle du panneau. */
  grid-template-rows: minmax(0, 1fr);
  box-shadow: 0 40px 120px rgba(0,0,0,.5);
  transform: translateY(24px) scale(.97); opacity: 0;
  transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .4s ease;
}
.lb.open .lb-panel { transform: translateY(0) scale(1); opacity: 1; }

/* left: media */
.lb-media { position: relative; background: var(--teal-dark); min-height: 420px; overflow: hidden; }
.lb-stage { position: absolute; inset: 0; }
.lb-stage { overflow: hidden; }
.lb-stage::before {
  content: ''; position: absolute; inset: -40px;
  background: var(--lb-bg, none) center / cover no-repeat;
  filter: blur(30px) brightness(.5) saturate(1.1);
  transition: background-image .5s ease;
}
.lb-stage img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  opacity: 0; transition: opacity .5s ease; transform: scale(1.04);
}
.lb-stage img.current { opacity: 1; transform: scale(1); transition: opacity .5s ease, transform 6s ease; }
.lb-media-grad { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,32,30,.5), transparent 40%); pointer-events: none; }
.lb-thumbs {
  position: absolute; left: 20px; bottom: 20px; right: 20px; z-index: 3;
  display: flex; gap: 10px;
}
.lb-thumb {
  width: 62px; height: 46px; border-radius: 7px; overflow: hidden; cursor: pointer;
  border: 2px solid rgba(255,255,255,.35); flex-shrink: 0;
  opacity: .7; transition: opacity .2s, border-color .2s, transform .2s;
}
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb-thumb:hover { opacity: 1; transform: translateY(-2px); }
.lb-thumb.active { opacity: 1; border-color: #fff; }

/* vidéo dans la fiche réalisation : vignette + lecteur 16:9 */
.lb-stage img { pointer-events: none; }
.lb-stage .lb-video {
  position: absolute; inset: 0; background: #0b1f1e center / cover no-repeat;
  opacity: 0; pointer-events: none; transition: opacity .5s ease;
  display: flex; align-items: center; justify-content: center;
}
.lb-stage .lb-video::before { content: ''; position: absolute; inset: 0; background: rgba(0,32,30,.35); }
.lb-stage .lb-video.current { opacity: 1; pointer-events: auto; z-index: 1; }
.lb-play {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px;
  background: none; border: 0; cursor: pointer; color: #fff;
}
.lb-play-ico {
  width: 84px; height: 84px; border-radius: 50%; background: var(--accent, var(--orange));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 10px rgba(255,255,255,.18), 0 12px 30px rgba(0,0,0,.35);
  transition: transform .25s ease, box-shadow .25s ease;
}
.lb-play-ico svg { width: 34px; height: 34px; fill: #fff; margin-left: 4px; }
.lb-play:hover .lb-play-ico { transform: scale(1.08); box-shadow: 0 0 0 14px rgba(255,255,255,.22), 0 12px 30px rgba(0,0,0,.35); }
.lb-play-txt { font-family: var(--font-body); font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.lb-player {
  position: fixed; inset: 0; z-index: 1100; display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .3s ease, visibility .3s;
}
.lb-player.open { opacity: 1; visibility: visible; pointer-events: auto; }
.lb-player-backdrop { position: absolute; inset: 0; background: rgba(0,12,11,.92); }
.lb-player-box {
  position: relative; width: min(1200px, 100%, calc((100vh - 48px) * 16 / 9)); aspect-ratio: 16 / 9;
  background: #000; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.lb-player-box video { width: 100%; height: 100%; display: block; background: #000; }
.lb-player-close {
  position: absolute; top: 18px; right: 18px; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.92); display: flex; align-items: center; justify-content: center;
}
.lb-player-close svg { width: 18px; height: 18px; fill: none; stroke: #00201e; stroke-width: 2.4; stroke-linecap: round; }
.lb-thumb { position: relative; }
.lb-thumb.is-video::after {
  content: ''; position: absolute; inset: 0; margin: auto; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0,0,0,.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 7l9 5-9 5z'/%3E%3C/svg%3E") center/14px no-repeat;
}
.lb-media-tag {
  position: absolute; top: 20px; left: 20px; z-index: 3;
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-body); font-size: 10.5px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: #fff;
  padding: 6px 13px; border-radius: 100px;
  background: rgba(0,0,0,.4); backdrop-filter: blur(4px);
}
.lb-media-tag .dot { width: 7px; height: 7px; border-radius: 50%; }
.lb-media-tag.blue .dot { background: var(--blue); filter: brightness(1.5); }
.lb-media-tag.orange .dot { background: var(--orange); }
.lb-media-tag.teal .dot { background: var(--teal-mid); filter: brightness(1.4); }

/* Un élément de grille vaut `min-height: auto` par défaut : il refuse de
   se réduire sous la hauteur de son contenu. La colonne de droite gardait
   donc sa hauteur naturelle (~850 px) à l'intérieur d'un panneau plafonné
   à 90vh en `overflow: hidden` — le bas de la fiche (le bouton devis)
   était purement coupé, et son `overflow-y: auto` ne s'activait jamais.
   `min-height: 0` autorise la réduction, le défilement interne reprend. */
.lb-panel > * { min-height: 0; min-width: 0; }

/* right: info */
.lb-info { padding: 44px 42px; overflow-y: auto; }
.lb-info h2 {
  font-family: var(--font-title); font-size: 28px; font-weight: 700; color: var(--text);
  line-height: 1.08; letter-spacing: -.02em; margin-bottom: 8px; text-wrap: balance;
}
.lb-loc { font-family: var(--font-body); font-size: 13.5px; color: var(--muted); margin-bottom: 26px; display: flex; align-items: center; gap: 7px; }
.lb-loc svg { width: 14px; height: 14px; stroke: var(--accent); fill: none; stroke-width: 1.8; }

.lb-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-bottom: 28px; }
.lb-spec { background: #fff; padding: 14px 16px; }
.lb-spec .s-label { font-family: var(--font-body); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.lb-spec .s-val { font-family: var(--font-title); font-size: 17px; font-weight: 600; color: var(--text); letter-spacing: -.01em; }

.lb-block { margin-bottom: 22px; }
.lb-block h4 {
  font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.lb-block h4::before { content: ''; width: 16px; height: 1.5px; background: var(--accent); }
.lb-block p { font-family: var(--font-body); font-size: 14.5px; line-height: 1.75; color: var(--muted); }
.lb-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }

.lb-cta { display: inline-flex; align-items: center; gap: 9px; margin-top: 8px;
  background: var(--accent); color: #fff; text-decoration: none;
  padding: 13px 24px; border-radius: 100px; font-family: var(--font); font-size: 14px; font-weight: 600;
  transition: background .2s, transform .2s; }
.lb-cta:hover { background: var(--accent-dark); transform: translateY(-2px); }
.lb-cta svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.4; }

/* controls */
.lb-close {
  position: absolute; top: 16px; right: 16px; z-index: 10;
  width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.9); border: none;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s; box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.lb-close:hover { background: #fff; transform: rotate(90deg); }
.lb-close svg { width: 18px; height: 18px; stroke: var(--text); stroke-width: 2.2; fill: none; }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
  width: 50px; height: 50px; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.92); border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.22); transition: background .2s, transform .2s;
}
.lb-nav:hover { transform: translateY(-50%) scale(1.08); }
.lb-nav svg { width: 20px; height: 20px; stroke: var(--text); stroke-width: 2.2; fill: none; }
.lb-prev { left: -25px; }
.lb-next { right: -25px; }
.lb-counter {
  position: absolute; bottom: -34px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-body); font-size: 12.5px; color: rgba(255,255,255,.7); letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
}
.lb-counter b { color: #fff; font-weight: 700; }

/* Fenêtres basses (portables 13-14", écrans 1080p avec barres du navigateur) :
   on récupère de la hauteur plutôt que de forcer l'utilisateur à deviner
   qu'il faut faire défiler pour atteindre le bouton devis. */
@media (max-height: 950px) {
  .lb { padding: 18px; }
  .lb-panel { max-height: 95vh; }
  .lb-info { padding: 28px 34px; }
  .lb-info h2 { font-size: 25px; }
  .lb-loc { margin-bottom: 18px; }
  .lb-specs { margin-bottom: 20px; }
}

@media (max-width: 860px) {
  .lb { padding: 0; }
  /* Empilé : la photo garde sa hauteur, la fiche prend le reste et
     défile. `minmax(0, 1fr)` est nécessaire — un `1fr` seul vaut
     `minmax(auto, 1fr)` et laisserait de nouveau la fiche déborder. */
  .lb-panel {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    max-height: 100vh; height: 100%; border-radius: 0;
  }
  .lb-media { min-height: 38vh; }
  /* Empilées, les flèches centrées sur le panneau tombaient au milieu du
     texte de la fiche. On les recale sur la photo, qui occupe le haut. */
  .lb-nav { top: 19vh; }
  .lb-nav:hover { transform: translateY(-50%) scale(1.08); }
  .lb-prev { left: 12px; } .lb-next { right: 12px; }
  .lb-counter { bottom: auto; top: calc(38vh - 34px); }
  /* Les valeurs sont courtes (« 800 m² », « 2024 », « 18 ») : deux colonnes
     tiennent largement et évitent un tableau à rallonge. */
  .lb-specs { grid-template-columns: 1fr 1fr; }
}

/* ═══════════════════════════════════════════════
   STATS STRIP (réalisations)
   ═══════════════════════════════════════════════ */
.real-stats { background: var(--teal); }
.real-stats .kpis { grid-template-columns: repeat(4,1fr); }

/* ═══════════════════════════════════════════════
   ACTUALITÉS — NEWS GRID
   ═══════════════════════════════════════════════ */
.news { padding: 56px 0 100px; }
.news-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
@media (max-width: 980px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .news-grid { grid-template-columns: 1fr; } }

.ncard {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  text-decoration: none; position: relative;
  transition: transform .3s cubic-bezier(.3,1,.4,1), box-shadow .3s, border-color .3s;
}
.ncard.hide { display: none; }
@keyframes ncardIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.ncard:hover { transform: translateY(-6px); box-shadow: 0 26px 56px rgba(26,41,40,.14); border-color: transparent; }
.ncard-media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--teal-dark); }
.ncard-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.ncard:hover .ncard-media img { transform: scale(1.06); }
.ncard-cat {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-body); font-size: 10px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: #fff;
  padding: 5px 12px; border-radius: 100px; background: rgba(0,32,30,.62); backdrop-filter: blur(4px);
}
.ncard-cat .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal-mid); }
.ncard-cat[data-c="chantier"] .dot { background: #5fb6b1; }
.ncard-cat[data-c="recrutement"] .dot { background: var(--orange); }
.ncard-cat[data-c="vie"] .dot { background: var(--blue); }
.ncard-cat[data-c="evenement"] .dot { background: #e0a93b; }
.ncard-cat[data-c="presse"] .dot { background: var(--orange); }
.ncard-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.ncard-date {
  font-family: var(--font-body); font-size: 12px; font-weight: 600; color: var(--accent);
  letter-spacing: .03em; margin-bottom: 12px; display: flex; align-items: center; gap: 8px;
}
.ncard-date .min { color: var(--muted); font-weight: 400; }
.ncard-date .min::before { content: '·'; margin-right: 8px; color: var(--border); }
.ncard h3 {
  font-family: var(--font-title); font-size: 20px; font-weight: 600; color: var(--text);
  line-height: 1.22; letter-spacing: -.015em; margin-bottom: 10px; text-wrap: balance;
}
.ncard p { font-family: var(--font-body); font-size: 14px; line-height: 1.65; color: var(--muted); flex: 1; margin-bottom: 18px; }
.ncard-link {
  font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--teal);
  display: inline-flex; align-items: center; gap: 8px; transition: gap .2s;
}
.ncard:hover .ncard-link { gap: 13px; }
.ncard-link svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2.4; }

/* featured first card spans 2 cols */
.ncard.feat { grid-column: span 2; flex-direction: row; }
.ncard.feat .ncard-media { aspect-ratio: auto; flex: 1.1; min-height: 320px; }
.ncard.feat .ncard-body { flex: 1; justify-content: center; padding: 40px 38px; }
.ncard.feat h3 { font-size: 28px; line-height: 1.1; }
.ncard.feat p { font-size: 15px; }
@media (max-width: 980px) {
  .ncard.feat { grid-column: span 2; }
}
@media (max-width: 760px) {
  .ncard.feat { grid-column: span 1; flex-direction: column; }
  .ncard.feat .ncard-media { min-height: 0; aspect-ratio: 16/10; }
  .ncard.feat .ncard-body { padding: 26px; }
  .ncard.feat h3 { font-size: 22px; }
}

/* newsletter strip */
.news-letter { background: var(--off); }
.nl-wrap {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center;
  background: var(--teal-dark); border-radius: 16px; padding: 52px 56px; overflow: hidden; position: relative;
}
.nl-wrap::after {
  content: ''; position: absolute; right: -60px; top: -60px; width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(95,182,177,.18), transparent 70%);
}
.nl-text h2 { font-family: var(--font-title); font-size: clamp(24px,2.6vw,34px); font-weight: 700; color: #fff; letter-spacing: -.02em; line-height: 1.1; margin-bottom: 12px; }
.nl-text p { font-family: var(--font-body); font-size: 15px; line-height: 1.7; color: rgba(255,255,255,.78); }
.nl-form { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 2; }
.nl-form input {
  flex: 1; min-width: 220px; padding: 15px 18px; border-radius: 100px; border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08); color: #fff; font-family: var(--font); font-size: 14px; outline: none;
  transition: border-color .2s, background .2s;
}
.nl-form input::placeholder { color: rgba(255,255,255,.5); }
.nl-form input:focus { border-color: var(--teal-mid); background: rgba(255,255,255,.12); }
.nl-form button {
  padding: 15px 28px; border-radius: 100px; border: none; cursor: pointer;
  background: var(--teal-mid); color: #fff; font-family: var(--font); font-size: 14px; font-weight: 600;
  transition: background .2s, transform .2s;
}
.nl-rgpd { flex-basis: 100%; font-family: var(--font-body); font-size: 11.5px; line-height: 1.55; color: rgba(255,255,255,.62); margin-top: 4px; }
.nl-rgpd a { color: inherit; text-decoration: underline; }
.nl-form button:hover { background: #2f8d8a; transform: translateY(-2px); }
@media (max-width: 820px) { .nl-wrap { grid-template-columns: 1fr; gap: 28px; padding: 38px 32px; } }

/* ═══════════════════════════════════════════════
   ARTICLE TEMPLATE
   ═══════════════════════════════════════════════ */
.art-hero {
  position: relative; overflow: hidden; background: var(--teal-dark);
  margin-top: -76px; padding: 150px 0 56px;
}
.art-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; }
.art-hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,40,38,.62) 0%, rgba(0,40,38,.78) 100%);
}
.art-hero-inner { position: relative; z-index: 2; max-width: 860px; margin: 0 auto; padding: 24px 48px 0; text-align: center; }
.art-cat {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: #fff; padding: 6px 15px; border-radius: 100px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); margin-bottom: 22px;
}
.art-cat .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal-mid); }
.art-hero h1 {
  font-family: var(--font-title); font-size: clamp(30px, 4.2vw, 54px); font-weight: 800; color: #fff;
  line-height: 1.05; letter-spacing: -.025em; margin-bottom: 26px; text-wrap: balance;
}
.art-byline {
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
  font-family: var(--font-body); font-size: 13.5px; color: rgba(255,255,255,.78);
}
.art-byline .av { width: 38px; height: 38px; border-radius: 50%; background: var(--teal-mid); display: flex; align-items: center; justify-content: center; font-family: var(--font-title); font-size: 14px; font-weight: 700; color: var(--teal-dark); }
.art-byline .sep { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.4); }
.art-byline b { color: #fff; font-weight: 600; }

.art-cover { max-width: 1060px; margin: -40px auto 0; padding: 0 48px; position: relative; z-index: 5; }
.art-cover-inner { border-radius: 16px; overflow: hidden; box-shadow: 0 34px 80px rgba(0,0,0,.28); aspect-ratio: 16/8; background: var(--off); }
.art-cover-inner img { width: 100%; height: 100%; object-fit: cover; display: block; }

.art-body { max-width: 720px; margin: 0 auto; padding: 64px 48px 40px; }
.art-lead { font-family: var(--font-body); font-size: 20px; line-height: 1.6; color: var(--text); font-weight: 400; margin-bottom: 32px; letter-spacing: -.01em; }
.art-body p { font-family: var(--font-body); font-size: 17px; line-height: 1.85; color: #2c3a39; margin-bottom: 24px; }
.art-body h2 { font-family: var(--font-title); font-size: 28px; font-weight: 700; color: var(--text); letter-spacing: -.02em; margin: 44px 0 18px; line-height: 1.15; }
.art-body h3 { font-family: var(--font-title); font-size: 21px; font-weight: 600; color: var(--text); letter-spacing: -.01em; margin: 32px 0 14px; }
.art-body ul { margin: 0 0 24px; padding-left: 4px; list-style: none; }
.art-body ul li { font-family: var(--font-body); font-size: 17px; line-height: 1.7; color: #2c3a39; padding-left: 30px; position: relative; margin-bottom: 12px; }
.art-body ul li::before { content: ''; position: absolute; left: 4px; top: 11px; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }
.art-body a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.art-quote {
  margin: 40px 0; padding: 8px 0 8px 32px; border-left: 4px solid var(--accent);
}
.art-quote p { font-family: var(--font-title); font-size: 24px; font-weight: 500; font-style: italic; color: var(--text); line-height: 1.35; letter-spacing: -.01em; margin-bottom: 12px; }
.art-quote cite { font-family: var(--font-body); font-size: 13.5px; font-style: normal; color: var(--muted); font-weight: 600; }
.art-fig { margin: 40px 0; }
.art-fig-img { border-radius: 12px; overflow: hidden; aspect-ratio: 16/9; background: var(--off); box-shadow: 0 18px 44px rgba(26,41,40,.12); }
.art-fig-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.art-fig figcaption { font-family: var(--font-body); font-size: 12.5px; color: var(--muted); margin-top: 10px; text-align: center; }

.art-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.art-tag { font-family: var(--font-body); font-size: 12.5px; font-weight: 500; color: var(--muted); background: var(--off); border: 1px solid var(--border); border-radius: 100px; padding: 6px 14px; }

.art-share { max-width: 720px; margin: 0 auto; padding: 0 48px 40px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.art-share-l { font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--text); }
.art-share-btns { display: flex; gap: 8px; }
.art-share-btns a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--muted); transition: all .2s; }
.art-share-btns a:hover { background: var(--teal); border-color: var(--teal); color: #fff; transform: translateY(-2px); }
.art-share-btns svg { width: 16px; height: 16px; }

/* author card */
.art-author { max-width: 720px; margin: 40px auto 0; padding: 0 48px; }
.art-author-card { display: flex; gap: 20px; align-items: center; background: var(--off); border-radius: 14px; padding: 26px 28px; }
.art-author-card .av { width: 60px; height: 60px; border-radius: 50%; background: var(--teal); display: flex; align-items: center; justify-content: center; font-family: var(--font-title); font-size: 22px; font-weight: 700; color: #fff; flex-shrink: 0; }
.art-author-card .a-name { font-family: var(--font-title); font-size: 16px; font-weight: 600; color: var(--text); }
.art-author-card .a-role { font-family: var(--font-body); font-size: 13px; color: var(--accent); font-weight: 600; margin: 2px 0 6px; }
.art-author-card .a-bio { font-family: var(--font-body); font-size: 13.5px; line-height: 1.6; color: var(--muted); }

/* reading progress bar */
.read-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--accent); z-index: 300; transition: width .1s linear; }

/* related news */
.related-news { background: var(--off); }
