/* ───────────────────────────────────────────────────────────
   PREMIUM DESIGN OVERHAUL (SHARED SYSTEM)
   ─────────────────────────────────────────────────────────── */

:root {
  --premium-timing: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  --premium-border: 1px solid rgba(0, 0, 0, 0.1);
  --premium-border-light: 1px solid rgba(255, 255, 255, 0.15);
  --premium-nav-height: 100px;
}

/* ── TYPOGRAPHY HIERARCHY ── */
.premium-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.5);
  margin-bottom: 1.5rem;
  display: block;
}
.section--dark .premium-eyebrow, .premium-hero--dark .premium-eyebrow {
  color: rgba(255, 255, 255, 0.5);
}

.premium-h1 {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  color: var(--color-black);
}
.section--dark .premium-h1, .premium-hero--dark .premium-h1 {
  color: var(--color-white);
}

.premium-h2 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 2.5rem;
}
.section--dark .premium-h2 { color: var(--color-white); }

.premium-subhead {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 300;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.7);
  margin-bottom: 2.5rem;
}
.section--dark .premium-subhead, .premium-hero--dark .premium-subhead {
  color: rgba(255, 255, 255, 0.8);
}

.premium-body {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 2rem;
}
.section--dark .premium-body { color: rgba(255, 255, 255, 0.7); }

.premium-micro {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ── LAYOUT & CONTAINERS ── */
.premium-section {
  padding: 120px 0;
  position: relative;
}

.premium-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 4vw;
}

.premium-container--narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 4vw;
}

/* ── DIVIDERS ── */
.premium-divider {
  width: 100%;
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
  margin: 4rem 0;
}
.section--dark .premium-divider {
  background: rgba(255, 255, 255, 0.15);
}

/* ── HERO ARCHITECTURE ── */
.premium-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--premium-nav-height);
  background: var(--color-off-white, #fafafa);
}

.premium-hero--dark {
  background: var(--color-deep-navy, #0a1128);
}

.premium-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6vw;
  align-items: center;
  width: 100%;
}

.premium-hero__content {
  position: relative;
  z-index: 10;
  max-width: 650px;
}

.premium-hero__image-wrap {
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 600px;
  overflow: hidden;
  border-radius: 2px;
}

.premium-hero__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform var(--premium-timing);
}

.premium-hero.is-loaded .premium-hero__image-wrap img {
  transform: scale(1);
}

.premium-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.4), transparent);
  pointer-events: none;
}

/* ── EDITORIAL GRID (For Capabilities/Features) ── */
.premium-editorial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.premium-card {
  padding: 3rem;
  background: var(--color-white);
  border: var(--premium-border);
  transition: transform 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease;
}
.section--dark .premium-card {
  background: rgba(255,255,255,0.03);
  border: var(--premium-border-light);
}

.premium-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.05);
  border-color: var(--color-enterprise-blue);
}
.section--dark .premium-card:hover {
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* ── ANIMATION & MOTION ── */
.premium-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--premium-timing), transform var(--premium-timing);
}

.premium-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.premium-clip-reveal {
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  transition: clip-path 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-clip-reveal.is-visible {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.premium-line-grow {
  width: 0;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-line-grow.is-visible {
  width: 100%;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .premium-hero__grid {
    grid-template-columns: 1fr;
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
  
  .premium-hero__image-wrap {
    height: 50vh;
    min-height: 400px;
    order: -1;
  }
  
  .premium-section {
    padding: 80px 0;
  }
}

@media (max-width: 768px) {
  .premium-h1 { font-size: 2.5rem; }
  .premium-h2 { font-size: 2rem; }
  .premium-hero__image-wrap { height: 40vh; min-height: 300px; }
  .premium-card { padding: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
  .premium-reveal,
  .premium-clip-reveal {
    opacity: 1;
    clip-path: none;
  }
  .premium-line-grow {
    width: 100%;
  }
}
/* -- ARTICLE READING PROGRESS -- */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background-color: var(--color-enterprise-blue);
  z-index: 9999;
  transition: width 0.1s ease;
}

/* -- STICKY ARTICLE NAV -- */
.premium-article-layout {
  display: flex;
  gap: 4vw;
  align-items: flex-start;
  position: relative;
}

.premium-article-nav {
  position: sticky;
  top: 120px;
  width: 250px;
  flex-shrink: 0;
  display: none;
}
@media (min-width: 1024px) {
  .premium-article-nav {
    display: block;
  }
}

.premium-article-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.premium-article-nav li {
  margin-bottom: 1rem;
}

.premium-article-nav a {
  font-size: 0.875rem;
  color: var(--color-text-gray);
  text-decoration: none;
  transition: color 0.3s ease;
  display: block;
  line-height: 1.4;
}

.premium-article-nav a:hover,
.premium-article-nav a.is-active {
  color: var(--color-enterprise-blue);
  font-weight: 600;
}

.premium-article-content {
  flex-grow: 1;
  max-width: 850px;
}

@media (max-width: 1024px) {
  .premium-article-content {
    max-width: 100%;
  }
}
