/* ==========================================================================
   LOFTELY CASE STUDY — STUDIO ELVEN GUERIN
   Direction Artistique Sombre, Chaleureuse & SaaS Contemporain.
   Images pleine largeur 100% alignées au texte, typographie contrastée,
   menu d'atelier Elven Guerin avec sortie intuitive, zéro cartes superflues
   (cartes réservées uniquement aux métriques KPIs en fin de page).
   ========================================================================== */

:root {
  /* Palette Sombre & Chaleureuse Studio Loftely */
  --c-bg: #050609;
  --c-bg-card: rgba(18, 17, 24, 0.72);
  --c-bg-card-hover: rgba(28, 26, 38, 0.85);
  --c-border: rgba(255, 255, 255, 0.08);
  --c-border-hover: rgba(240, 138, 126, 0.35);
  --c-border-active: rgba(240, 138, 126, 0.6);

  /* Typographie */
  --c-text-title: #FFFFFF;
  --c-text-body: rgba(230, 226, 238, 0.82);
  --c-text-muted: rgba(180, 172, 192, 0.62);
  --c-text-dim: rgba(255, 255, 255, 0.38);

  /* Teintes Signature Saumon, Rose Poudré & Ambre */
  --c-salmon: #F08A7E;
  --c-salmon-light: #F8A59B;
  --c-salmon-glow: rgba(240, 138, 126, 0.25);
  --c-rose: #FDE8E5;
  --c-amber: #E5A93C;
  --c-amber-glow: rgba(229, 169, 60, 0.22);

  /* Polices */
  --font-text: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-title: 'Clash Display', 'Satoshi', sans-serif;
  --font-sans: var(--font-text);
  --font-serif: var(--font-title);
  --font-mono: var(--font-text);

  /* Rayons d'Arrondi */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 9999px;

  /* Transitions */
  --t-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --t-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: var(--c-bg);
  color: var(--c-text-body);
  font-family: var(--font-sans);
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--c-bg);
  color: var(--c-text-body);
  line-height: 1.7;
  position: relative;
  overflow-x: hidden;
}

/* Fond Ambiant Cosmique Saumon / Ambre */
.ambient-cosmic-glow {
  position: fixed;
  inset: -15%;
  width: 130%;
  height: 130%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle at 50% 12%, rgba(240, 138, 126, 0.07) 0%, rgba(229, 169, 60, 0.03) 35%, transparent 65%);
  will-change: transform;
  animation: cosmicDrift 24s ease-in-out infinite alternate;
}

@keyframes cosmicDrift {
  0% { transform: scale(1) translate3d(0, 0, 0); }
  50% { transform: scale(1.08) translate3d(-20px, 15px, 0); }
  100% { transform: scale(0.98) translate3d(15px, -15px, 0); }
}

/* Halo Curseur */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 480px;
  height: 480px;
  margin-top: -240px;
  margin-left: -240px;
  background: radial-gradient(circle, rgba(240, 138, 126, 0.12) 0%, rgba(229, 169, 60, 0.04) 40%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
  will-change: transform;
}

/* ==========================================================================
   VOILE DÉGRADÉ SOUS LE HEADER (FLOU & TRANSPARENCE PROGRESSIVE AU SCROLL)
   Masque élégamment le contenu montant pour garantir une lisibilité absolue du logo et des onglets.
   ========================================================================== */
.header-veil {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 130px;
  z-index: 990;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(5, 6, 9, 0.96) 0%,
    rgba(5, 6, 9, 0.85) 40%,
    rgba(5, 6, 9, 0.4) 72%,
    rgba(5, 6, 9, 0) 100%
  );
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  mask-image: linear-gradient(to bottom, black 0%, black 50%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 50%, transparent 100%);
}

/* ==========================================================================
   Conteneur Unique d'Alignement Strict (1420px)
   ========================================================================== */

.editorial-container {
  width: 100%;
  max-width: 1420px;
  margin: 0 auto;
  padding: 0 clamp(20px, 3.5vw, 56px);
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}

/* ==========================================================================
   Header Bar Studio Elven Guerin
   ========================================================================== */

.header-bar {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1280px, calc(100% - 48px));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  z-index: 1000;
  pointer-events: none;
}

.header-brand {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #FFFFFF;
  text-decoration: none;
  pointer-events: auto;
  transition: opacity 0.2s ease;
}

.header-brand:hover {
  opacity: 0.85;
}

.header-brand img {
  height: 30px;
  width: auto;
  filter: brightness(0) invert(1);
}

.nav-pill-control {
  position: relative;
  justify-self: center;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  width: 440px;
  height: 52px;
  padding: 4px;
  border-radius: var(--r-pill);
  background: rgba(22, 19, 28, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  pointer-events: auto;
}

.nav-pill-slider {
  position: absolute;
  top: 4px;
  left: calc((100% - 8px) / 3 + 4px);
  width: calc((100% - 8px) / 3);
  height: calc(100% - 8px);
  border-radius: var(--r-pill);
  background: rgba(240, 138, 126, 0.2);
  border: 1.5px solid rgba(240, 138, 126, 0.55);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.4), 0 0 16px rgba(240, 138, 126, 0.3);
  pointer-events: none;
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.nav-pill-tab {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-text);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.25s ease;
  user-select: none;
  border-radius: var(--r-pill);
}

.nav-pill-tab:hover {
  color: #FFFFFF;
}

.nav-pill-tab.is-active {
  color: #FFFFFF;
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--r-pill);
  transition: all var(--t-fast);
  cursor: pointer;
  white-space: nowrap;
}

.button--solid {
  background: #FFFFFF;
  color: #050609;
  padding: 12px 24px;
  border: 1px solid #FFFFFF;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
}

.button--solid:hover {
  background: #F0F2F5;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.25);
}

.button--line {
  background: transparent;
  color: var(--c-text-body);
  padding: 12px 24px;
  border: 1px solid var(--c-border);
}

.button--line:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.04);
}

.header-cta {
  justify-self: end;
  pointer-events: auto;
}

/* ==========================================================================
   Bandeau Fil d'Ariane
   ========================================================================== */

.project-breadcrumb-bar {
  padding-top: 120px;
  padding-bottom: 24px;
}

.project-breadcrumb-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--c-border);
}

.breadcrumb-back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--c-text-muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: color var(--t-fast);
}

.breadcrumb-back-link:hover {
  color: var(--c-salmon);
}

.breadcrumb-back-link .back-arrow {
  font-size: 16px;
  transition: transform var(--t-fast);
}

.breadcrumb-back-link:hover .back-arrow {
  transform: translateX(-4px);
}

.key-hint {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--c-text-dim);
  letter-spacing: 0.06em;
}

.breadcrumb-project-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--c-text-muted);
}

.info-num {
  font-weight: 700;
  color: var(--c-salmon);
  letter-spacing: 0.08em;
}

.info-title {
  color: #FFFFFF;
  font-weight: 600;
}

.info-badge {
  padding: 2px 10px;
  border-radius: var(--r-pill);
  background: rgba(240, 138, 126, 0.12);
  border: 1px solid rgba(240, 138, 126, 0.35);
  color: var(--c-salmon-light);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.editorial-hero {
  padding: 40px 0 48px;
}

.hero-meta-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-salmon);
  margin-bottom: 24px;
}

.editorial-hero__title {
  font-family: var(--font-title);
  font-size: clamp(38px, 5.2vw, 76px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: #FFFFFF;
  margin-bottom: 28px;
  max-width: 1200px;
}

.editorial-hero__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--c-salmon-light);
  font-family: 'Clash Display', 'Satoshi', serif;
}

.editorial-hero__sub {
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.65;
  color: var(--c-text-body);
  max-width: 1100px;
}

.editorial-hero__sub strong {
  color: #FFFFFF;
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}

/* Fiche technique / Specs bar */
.star-specs-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 24px 0;
  margin: 36px 0 44px;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}

.star-spec-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.star-spec-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-text-dim);
}

.star-spec-val {
  font-size: 14.5px;
  font-weight: 600;
  color: #FFFFFF;
}

/* Vidéo Officielle YouTube Embed */
.case-video-embed {
  width: min(1420px, calc(100% - clamp(40px, 7vw, 112px)));
  aspect-ratio: 16 / 9;
  margin: clamp(36px, 6vw, 82px) auto 40px;
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.5), 0 0 35px var(--c-salmon-glow);
  user-select: none;
}

.case-video-embed iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  pointer-events: none;
  transform: scale(1.02);
  transform-origin: center center;
}

.video-shield-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: transparent;
  pointer-events: auto;
  cursor: default;
}

/* Visuel Pleine Largeur */
.fullwidth-visual-wrap {
  position: relative;
  width: 100%;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--c-border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  margin: 20px 0 64px;
  background: #0d0f15;
}

.fullwidth-visual-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.visual-glass-overlay {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  padding: 16px 24px;
  border-radius: var(--r-md);
  background: rgba(8, 9, 14, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 16px;
}

.visual-glass-tag {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: rgba(240, 138, 126, 0.2);
  color: var(--c-salmon);
  border: 1px solid rgba(240, 138, 126, 0.4);
  white-space: nowrap;
}

.visual-glass-text {
  font-size: 13.5px;
  color: var(--c-text-body);
  line-height: 1.5;
}

/* ==========================================================================
   MANIFESTE SECTION
   ========================================================================== */

.editorial-manifesto-section {
  padding: 64px 0 72px;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 64px;
}

.editorial-manifesto {
  font-family: var(--font-title);
  font-size: clamp(28px, 3.8vw, 52px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: #FFFFFF;
  margin-bottom: 20px;
  max-width: 1200px;
}

.editorial-manifesto em {
  font-style: italic;
  font-weight: 400;
  color: var(--c-salmon-light);
}

.editorial-manifesto-sub {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.7;
  color: var(--c-text-muted);
  max-width: 960px;
}

/* ==========================================================================
   CHAPITRES ÉDITORIAUX & SECTIONS
   ========================================================================== */

.editorial-chapter {
  padding: 48px 0 64px;
}

.editorial-chapter__header {
  margin-bottom: 32px;
}

.editorial-chapter__kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-salmon);
  margin-bottom: 12px;
}

.editorial-chapter__title {
  font-family: var(--font-title);
  font-size: clamp(28px, 3.4vw, 46px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: #FFFFFF;
}

.editorial-chapter__body {
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.8;
  color: var(--c-text-body);
  max-width: 1000px;
}

.editorial-chapter__body p {
  margin-bottom: 20px;
}

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

/* Grille Split (Intro, Défi, etc.) */
.case-intro-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 48px;
  align-items: start;
}

.star-callout-card {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 28px 32px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.callout-card__label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-salmon);
  margin-bottom: 18px;
}

.callout-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.callout-list li {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--c-text-body);
  position: relative;
  padding-left: 20px;
}

.callout-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--c-salmon);
  font-size: 12px;
}

.callout-list li strong {
  color: #FFFFFF;
}

/* Grille 3 Colonnes de Tâches / Piliers */
.star-tasks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 36px;
}

.star-task-card {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 32px 28px;
  transition: all var(--t-fast);
}

.star-task-card:hover {
  border-color: var(--c-border-hover);
  background: var(--c-bg-card-hover);
  transform: translateY(-4px);
}

.task-num {
  font-family: var(--font-title);
  font-size: 28px;
  font-weight: 800;
  color: var(--c-salmon);
  margin-bottom: 14px;
}

.task-title {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.task-desc {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--c-text-muted);
}

/* Galerie 2 Images Côtes à Côtes */
.star-dual-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin: 36px 0;
}

.gallery-card {
  background: #0d0f15;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--c-border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.gallery-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.gallery-card figcaption {
  padding: 16px 20px;
  font-size: 13.5px;
  color: var(--c-text-muted);
  line-height: 1.5;
  border-top: 1px solid var(--c-border);
  background: rgba(14, 16, 22, 0.7);
}

/* CTA Intermédiaire */
.star-mid-cta {
  background: linear-gradient(135deg, rgba(28, 22, 34, 0.9) 0%, rgba(14, 15, 22, 0.9) 100%);
  border: 1px solid rgba(240, 138, 126, 0.25);
  border-radius: var(--r-lg);
  padding: clamp(32px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  margin: 64px 0;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6), 0 0 40px rgba(240, 138, 126, 0.05);
}

.mid-cta-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-salmon);
  display: block;
  margin-bottom: 10px;
}

.mid-cta-title {
  font-family: var(--font-title);
  font-size: clamp(24px, 2.8vw, 38px);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.2;
  margin-bottom: 12px;
}

.mid-cta-desc {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--c-text-muted);
  max-width: 650px;
}

/* ==========================================================================
   KPIS CHIFFRÉS & RETOUR PERSONNEL
   ========================================================================== */

.star-kpis-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 36px 0 48px;
}

.star-kpi-card {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.35);
  transition: all var(--t-fast);
}

.star-kpi-card:hover {
  border-color: rgba(240, 138, 126, 0.4);
  background: var(--c-bg-card-hover);
  transform: translateY(-3px);
}

.kpi-num {
  font-family: var(--font-title);
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 800;
  line-height: 1;
  color: var(--c-salmon);
  letter-spacing: -0.02em;
}

.kpi-label {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--c-text-muted);
}

/* Retrospective / Le Regard d'Elven */
.star-personal-retrospective {
  background: linear-gradient(135deg, rgba(24, 20, 30, 0.8) 0%, rgba(12, 14, 20, 0.9) 100%);
  border: 1px solid rgba(240, 138, 126, 0.2);
  border-radius: var(--r-lg);
  padding: clamp(32px, 4vw, 48px);
  display: flex;
  gap: 32px;
  align-items: flex-start;
  margin: 48px 0;
}

.retrospective-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F08A7E 0%, #D97736 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 20px;
  color: #050609;
  flex-shrink: 0;
  box-shadow: 0 8px 25px rgba(240, 138, 126, 0.3);
}

.retrospective-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-salmon);
  display: block;
  margin-bottom: 14px;
}

.retrospective-quote {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.7;
  color: #FFFFFF;
  font-style: italic;
  margin-bottom: 16px;
}

.retrospective-author {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--c-text-muted);
}

/* ==========================================================================
   FOOTER / PROJET SUIVANT
   ========================================================================== */

.star-footer {
  padding: 64px 0 96px;
  border-top: 1px solid var(--c-border);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.footer-contact-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-salmon);
  display: block;
  margin-bottom: 12px;
}

.footer-contact-title {
  font-family: var(--font-title);
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 24px;
  line-height: 1.15;
}

.star-footer__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.next-proj-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-text-dim);
  display: block;
  margin-bottom: 12px;
}

.next-proj-card {
  width: 100%;
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 28px 32px;
  text-align: left;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: all var(--t-fast);
}

.next-proj-card:hover {
  border-color: rgba(16, 185, 129, 0.45);
  background: var(--c-bg-card-hover);
  transform: translateX(6px);
}

.next-proj-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #10B981;
}

.next-proj-title {
  font-family: var(--font-title);
  font-size: 26px;
  font-weight: 800;
  color: #FFFFFF;
}

.next-proj-sub {
  font-size: 13px;
  color: var(--c-text-muted);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (v4.5)
   ========================================================================== */

@media (max-width: 1024px) {
  .star-specs-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .case-intro-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .star-tasks-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .star-dual-gallery {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .star-kpis-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .star-mid-cta {
    flex-direction: column;
    align-items: flex-start;
  }
  .star-footer {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .editorial-container {
    padding: 0 16px;
  }
  .header-bar {
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: min(440px, calc(100% - 24px));
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    z-index: 1000;
  }
  .header-brand,
  .header-cta {
    display: none;
  }
  .nav-pill-control {
    width: 100%;
    max-width: 360px;
    height: 46px;
    padding: 3px;
    margin: 0 auto;
    pointer-events: auto;
  }
  .nav-pill-tab {
    font-size: 13.5px;
    padding: 0 10px;
  }
  .star-hero {
    padding-top: 85px;
    padding-bottom: 24px;
  }
  .star-hero-title {
    font-size: clamp(26px, 7vw, 40px);
    line-height: 1.15;
  }
  .star-lead-card {
    padding: 20px 16px;
    border-radius: var(--radius-md);
  }
  .star-section {
    margin: 44px 0;
  }
  .star-specs-bar {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .star-specs-card {
    padding: 16px;
  }
  .star-kpis-grid {
    grid-template-columns: 1fr;
  }
  .star-mid-cta {
    padding: 24px 20px;
    gap: 16px;
  }
  .star-personal-retrospective {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 440px) {
  .header-bar {
    top: 12px;
    width: calc(100% - 16px);
  }
  .nav-pill-control {
    max-width: 320px;
    height: 42px;
    padding: 2.5px;
  }
  .nav-pill-tab {
    font-size: 12px;
    padding: 0 6px;
  }
  .star-hero {
    padding-top: 75px;
  }
  .star-hero-title {
    font-size: 24px;
  }
  .star-mid-cta-btn {
    width: 100%;
    justify-content: center;
  }
}
