/* ═══════════════════════════════════════════════════════════════
   SMART CORRECTIONAL FACILITIES — IMEG × CORVALENT
   Design: Cinematic Dark + IMEG Red Palette
   Based on: CorGrid / Paleozoic aesthetic
═══════════════════════════════════════════════════════════════ */

/* ─── CSS VARIABLES ─────────────────────────────────────── */
:root {
  /* IMEG Brand Colors */
  --red:          #BC302B;
  --red-2:        #BD342F;
  --red-dark:     #9a2520;
  --red-light:    #d44040;
  --white:        #FFFFFF;
  --black:        #000000;
  --dark-text:    #222222;
  --light-bg:     #F4F4F4;

  /* UI Shades */
  --surface-1:    #0d0d0d;
  --surface-2:    #141414;
  --surface-3:    #1c1c1c;
  --surface-4:    #252525;
  --surface-5:    #2e2e2e;
  --border:       rgba(188,48,43,0.25);
  --border-light: rgba(255,255,255,0.08);
  --text-muted:   rgba(255,255,255,0.45);
  --text-dim:     rgba(255,255,255,0.65);

  /* Typography */
  --font-serif:   'Inter', system-ui, sans-serif;
  --font-sans:    'Inter', system-ui, sans-serif; /* shared with --font-serif */

  /* Spacing */
  --section-pad:  120px;
  --container:    1280px;

  /* Transitions */
  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:     cubic-bezier(0, 0, 0.2, 1);
  --dur:          0.6s;
}

/* ─── RESET & BASE ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: #ffffff;
  color: #111111;
  overflow-x: hidden;
  cursor: none;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: none; border: none; background: none; }

::selection {
  background: var(--red);
  color: var(--white);
}

/* ─── SCROLLBAR ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 2px; }

/* ─── SCROLL PROGRESS ───────────────────────────────────── */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--red-dark), var(--red), var(--red-light));
  z-index: 9999;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px var(--red);
}

/* ─── NOISE TEXTURE ─────────────────────────────────────── */
#noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  animation: grain 0.8s steps(2) infinite;
}
@keyframes grain {
  0%   { transform: translate(0,0); }
  25%  { transform: translate(-2%,-1%); }
  50%  { transform: translate(1%,2%); }
  75%  { transform: translate(-1%,1%); }
  100% { transform: translate(2%,-2%); }
}

/* ─── CUSTOM CURSOR ─────────────────────────────────────── */
#cursor-dot {
  position: fixed;
  width: 6px; height: 6px;
  background: var(--red);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%,-50%);
  transition: transform 0.05s, background 0.2s;
}
#cursor-ring {
  position: fixed;
  width: 28px; height: 28px;
  border: 1.5px solid rgba(188,48,43,0.6);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%,-50%);
  transition: all 0.12s var(--ease-out);
}
#spotlight {
  position: fixed;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(188,48,43,0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  transform: translate(-50%,-50%);
  transition: transform 0.3s var(--ease-out);
}

/* ─── CONTAINER ─────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

/* ─── NAVIGATION ────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.4s var(--ease), box-shadow 0.4s;
  padding: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
  border-bottom: 2px solid var(--red);
}
#navbar.scrolled {
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  border-bottom: 2px solid var(--red);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  max-width: 1440px;
  margin: 0 auto;
  gap: 0;
}

/* ── NAV LOGOS ──────────────────────────────────────────── */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  z-index: 10;
  text-decoration: none;
}
.nav-imeg-logo {
  height: 22px;
  width: auto;
  display: block;
  filter: brightness(0);
  opacity: 0.8;
  transition: opacity 0.25s;
}
.nav-logo-sep {
  font-size: 0.75rem;
  color: rgba(0,0,0,0.2);
  font-weight: 300;
  line-height: 1;
  user-select: none;
}
.nav-corvalent-logo {
  height: 26px;
  width: auto;
  display: block;
  flex-shrink: 0;
  opacity: 1;
  filter: none;
  transition: opacity 0.25s;
}
.nav-logo:hover .nav-imeg-logo,
.nav-logo:hover .nav-corvalent-logo {
  opacity: 1;
}

.nav-links {
  display: flex;
  align-items: stretch;
  flex: 1;
  justify-content: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-links li {
  display: flex;
  align-items: center;
}
/* Logo item — no extra padding, aligned with nav links */
.nav-logo-item {
  margin-right: 8px;
  padding: 12px 16px 12px 0;
}
.nav-logo-item .nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav-links a {
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(17,17,17,0.5);
  transition: color 0.25s;
  padding: 18px 11px;
  white-space: nowrap;
  display: flex;
  align-items: center;
}
.nav-links a:hover { color: #111111; }
.nav-logo-item a:hover { opacity: 0.85; }

/* CTA button — sits outside the list, direct child of nav-inner */
.nav-cta {
  background: var(--red);
  color: var(--white) !important;
  padding: 9px 18px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.25s, transform 0.2s;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
}
.nav-cta:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

/* Logout button */
.nav-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 4px;
  padding: 8px 13px;
  color: rgba(255,255,255,0.55);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  font-family: var(--font-sans);
}
.nav-logout:hover {
  color: #ffffff;
  border-color: rgba(188,48,43,0.6);
  background: rgba(188,48,43,0.12);
}
.nav-logout i { font-size: 0.78rem; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: #111111;
  border-radius: 2px;
  transition: all 0.3s;
}

/* ─── MOBILE MENU ───────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: #0d0d0d;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.3s, transform 0.3s;
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.mobile-menu ul { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.mobile-menu a {
  font-size: 1.5rem;
  font-weight: 300;
  font-family: var(--font-serif);
  letter-spacing: 0.04em;
  color: var(--white);
}
.mobile-menu a:hover { color: var(--red); }
.mobile-close {
  position: absolute;
  top: 24px; right: 32px;
  font-size: 1.5rem;
  color: var(--text-dim);
  transition: color 0.2s;
}
.mobile-close:hover { color: var(--red); }

/* ═══════════════════════════════════════════════════════════
   HERO — SPLIT LAYOUT (RICH)
═══════════════════════════════════════════════════════════ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #000000;
}

/* ── VIDEO BACKGROUND ───────────────────────────────────── */
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

#hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  /* Cinematic grade: dim + desaturate so brand red pops */
  filter: brightness(0.38) saturate(0.6) contrast(1.15) grayscale(0.2);
  will-change: transform;
}

/* Layer 1 — base dark veil: deep cinematic darkness */
.hero-video-dark {
  position: absolute;
  inset: 0;
  background: rgba(6, 3, 3, 0.42);
  z-index: 1;
}

/* Layer 2 — red brand tint: right-side warm glow aligned with video */
.hero-video-tint {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 55% at 68% 38%, rgba(188, 48, 43, 0.22) 0%, transparent 65%),
    radial-gradient(ellipse 30% 40% at 80% 70%, rgba(188, 48, 43, 0.10) 0%, transparent 60%);
  mix-blend-mode: screen;
  z-index: 2;
}

/* Layer 3 — bottom fade: perfectly seamless merge into next section */
.hero-video-fade-bottom {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 55%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(13, 13, 13, 0.45) 30%,
    rgba(13, 13, 13, 0.85) 65%,
    #0d0d0d 100%
  );
  z-index: 3;
}

/* Layer 4 — top fade: solid merge with navbar */
.hero-video-fade-top {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 18%;
  background: linear-gradient(
    to top,
    transparent 0%,
    rgba(13, 13, 13, 0.65) 60%,
    #0d0d0d 100%
  );
  z-index: 3;
}

/* Layer 5 — left shadow: readable text, natural video on right */
.hero-video-fade-left {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 60%;
  background: linear-gradient(
    to right,
    rgba(6, 3, 3, 0.80) 0%,
    rgba(6, 3, 3, 0.55) 35%,
    rgba(6, 3, 3, 0.20) 70%,
    transparent 100%
  );
  z-index: 3;
}

/* canvas particles — sits above video overlays (z-index 0–3) */
#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  mix-blend-mode: screen;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(188,48,43,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(188,48,43,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 4;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, black 0%, transparent 100%);
}

/* Orbs — subtle on top of video, use screen to blend with video */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  z-index: 4;
  animation: orbFloat 14s ease-in-out infinite;
  pointer-events: none;
  mix-blend-mode: screen;
}
.hero-orb-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(188,48,43,0.18) 0%, transparent 65%);
  top: -250px; right: -200px;
}
.hero-orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(188,48,43,0.08) 0%, transparent 65%);
  bottom: -150px; left: -150px;
  animation-delay: -7s;
}
.hero-orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(188,48,43,0.12) 0%, transparent 65%);
  top: 40%; left: 30%;
  animation-delay: -3s;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%  { transform: translate(18px,-22px) scale(1.03); }
  66%  { transform: translate(-12px,14px) scale(0.97); }
}

/* ── SPLIT WRAPPER ─────────────────────────────────────── */
.hero-split {
  position: relative;
  z-index: 5;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  padding: 0 80px;
  padding-top: 120px;
  padding-bottom: 120px;
}

/* ── LEFT COLUMN ─────────────────────────────────────── */
.hero-left {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 640px;
}

/* Eyebrow */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 32px;
  width: fit-content;
}
.live-dot {
  width: 5px; height: 5px;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
  animation: livePulse 2s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(188,48,43,0.5); }
  50%       { opacity: 0.6; box-shadow: 0 0 0 5px rgba(188,48,43,0); }
}

/* Title */
.hero-title {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 28px;
  line-height: 1;
}
.ht-line { display: block; }
.ht-serif {
  font-family: var(--font-serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(2.6rem, 4.5vw, 4.2rem);
  color: #ffffff !important;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}
.ht-bold {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(3.2rem, 7vw, 6.5rem);
  letter-spacing: -0.04em;
  color: var(--white);
  line-height: 0.88;
}
.ht-red {
  color: #ffffff !important;
  -webkit-text-stroke: 0px transparent !important;
  opacity: 1;
}

/* Subtitle */
.hero-sub {
  font-size: clamp(0.85rem, 1.2vw, 0.98rem);
  font-weight: 400;
  color: rgba(255,255,255,0.42);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
  letter-spacing: 0.01em;
}

/* Feature pills — removed from hero, kept for reuse elsewhere */

/* Actions */
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

/* Trust bar */
.hero-trust {
  display: flex;
  align-items: center;
}
.trust-label {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
}

/* .hero-right, dashboard cards, stats bar — removed */

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  animation: scrollBounce 2.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
  50%       { transform: translateX(-50%) translateY(7px); opacity: 1; }
}
.scroll-arrow {
  width: 1px; height: 28px;
  background: linear-gradient(180deg, var(--red), transparent);
}

/* ── BUTTONS ────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
  box-shadow: 0 4px 24px rgba(188,48,43,0.35);
}
.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(188,48,43,0.5);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  padding: 14px 32px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.2);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: border-color 0.25s, background 0.25s, transform 0.2s;
}
.btn-secondary:hover {
  border-color: var(--red);
  background: rgba(188,48,43,0.08);
  transform: translateY(-2px);
}

/* ─── SECTION BASICS ────────────────────────────────────── */
.section-dark {
  background: #000000;
  padding: var(--section-pad) 0;
  color: var(--white);
  position: relative;
}
.section-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(188,48,43,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(188,48,43,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
.section-dark > .container { position: relative; z-index: 1; }

/* LIGHT sections — fundo branco, texto escuro */
.section-light {
  background: #ffffff;
  padding: var(--section-pad) 0;
  color: #111111;
  position: relative;
  overflow: hidden;
}
.section-light::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(circle, rgba(0,0,0,0.07) 1px, transparent 1px);
  background-size: 28px 28px;
}
.section-light > .container { position: relative; z-index: 1; }

/* alternating mid-tone — mesmo que dark */
.section-mid {
  background: #0a0a0a;
  padding: var(--section-pad) 0;
  color: var(--white);
  position: relative;
}
.section-mid::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
}
.section-mid > .container { position: relative; z-index: 1; }

.section-accent {
  background: var(--red);
  padding: var(--section-pad) 0;
}

/* ─── SECTION DIVIDER — fade line ────────────────────────── */
.section-dark::after,
.section-mid::after,
.letter-strip::after,
.contact-section::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(188,48,43,0.0)  8%,
    rgba(188,48,43,0.55) 28%,
    rgba(255,255,255,0.18) 50%,
    rgba(188,48,43,0.55) 72%,
    rgba(188,48,43,0.0)  92%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 2;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 72px;
}
.section-label {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 100px;
}
.section-label.light {
  color: rgba(255,255,255,0.8);
  border-color: rgba(255,255,255,0.3);
}
.section-header h2 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 20px;
}
.section-light .section-header h2 { color: #111111 !important; }
.section-mid .section-header h2 { color: var(--white); }
.section-accent .section-header h2.light { color: var(--white); }
.section-desc {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-dim);
}
.section-light .section-desc { color: rgba(17,17,17,0.65) !important; }
.section-light .section-label { color: var(--red); border-color: rgba(188,48,43,0.25); }
.section-mid .section-desc { color: var(--text-dim); }
.section-desc.light { color: rgba(255,255,255,0.85); }

/* ─── INTRO LETTER STRIP ────────────────────────────────── */
.letter-strip {
  background: #000000;
  padding: 80px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.letter-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(188,48,43,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(188,48,43,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
.letter-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.letter-quote-mark {
  font-family: var(--font-serif);
  font-size: 8rem;
  line-height: 0.5;
  color: var(--red);
  opacity: 0.3;
  position: absolute;
  top: -20px;
  left: -20px;
}
blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.7;
  color: var(--text-dim);
  position: relative;
  z-index: 1;
  margin-bottom: 36px;
}
.letter-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.author-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 100%);
  border: 1px solid rgba(188,48,43,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(188,48,43,0.12), 0 2px 12px rgba(188,48,43,0.25);
}
.author-initials {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
  line-height: 1;
  user-select: none;
}
.author-info {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 2px;
}
.author-info strong {
  font-weight: 600;
  font-size: 0.9rem;
}
.author-info span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ─── CHALLENGE GRID ────────────────────────────────────── */
.challenge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: visible;
}
.challenge-card {
  background: #ffffff;
  padding: 36px 32px;
  transition: background 0.3s;
  position: relative;
  overflow: hidden;
}
.challenge-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.challenge-card:hover { background: #f5f5f5; }
.challenge-card:hover::before { opacity: 1; }
.challenge-icon {
  font-size: 1.8rem;
  color: var(--red);
  margin-bottom: 16px;
}
.challenge-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}
.challenge-card p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(17,17,17,0.65);
}

/* ═══════════════════════════════════════════════════════════
   FACILITIES MAP
═══════════════════════════════════════════════════════════ */

/* Filter buttons */
.map-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.map-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.6);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.map-filter-btn:hover {
  border-color: rgba(188,48,43,0.4);
  color: var(--white);
}
.map-filter-btn.active {
  background: rgba(188,48,43,0.15);
  border-color: rgba(188,48,43,0.6);
  color: var(--white);
}
.mf-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.mf-dot.federal  { background: #e05252; }
.mf-dot.state    { background: #4fa3e0; }
.mf-dot.county   { background: #50c878; }
.mf-dot.private  { background: #c97bdb; }

/* Map container */
.map-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
  margin-bottom: 20px;
}
#usa-map {
  width: 100%;
  height: 520px;
  background: #0a0a0a;
}

/* Override Leaflet controls for dark theme */
.leaflet-control-zoom a {
  background: #1c1c1c !important;
  color: var(--white) !important;
  border-color: var(--border) !important;
}
.leaflet-control-zoom a:hover {
  background: #252525 !important;
}
.leaflet-control-attribution {
  background: rgba(13,13,13,0.7) !important;
  color: var(--text-muted) !important;
  font-size: 0.6rem !important;
  backdrop-filter: blur(4px);
}
.leaflet-control-attribution a { color: var(--text-muted) !important; }

/* Custom marker */
.map-marker-wrap {
  width: 18px; height: 18px;
  filter: drop-shadow(0 0 6px var(--mc, #e05252));
  transition: transform 0.15s, filter 0.15s;
}
.map-marker-wrap:hover {
  transform: scale(1.5);
  filter: drop-shadow(0 0 10px var(--mc, #e05252));
}

/* Tooltip */
.map-tooltip {
  position: absolute;
  z-index: 1000;
  pointer-events: none;
  background: rgba(14,14,14,0.96);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  border-radius: 8px;
  padding: 10px 14px;
  min-width: 240px;
  max-width: 280px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s, transform 0.15s;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.map-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}
.mtt-type {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.mtt-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 6px;
}
.mtt-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.68rem;
  color: var(--text-muted);
}
.mtt-state {
  background: #1c1c1c;
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}
.mtt-cap { display: flex; align-items: center; gap: 4px; }

/* Tooltip data grid */
.mtt-grid {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.mtt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 0.68rem;
  line-height: 1.3;
}
.mtt-lbl {
  color: rgba(255,255,255,0.45);
  white-space: nowrap;
}
.mtt-val {
  color: var(--white);
  font-weight: 600;
  text-align: right;
}

/* Map disclaimer */
.map-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-left: 3px solid var(--red);
  border-radius: 6px;
  font-size: 0.72rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.55);
}
.map-disclaimer i {
  color: var(--red);
  font-size: 0.85rem;
  margin-top: 2px;
  flex-shrink: 0;
}

/* Stats overlay (inside map, top-left) */
.map-stats-overlay {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(10,10,10,0.82);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  padding: 8px 16px;
}
.mso-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 14px;
  gap: 1px;
}
.mso-num {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--red);
  letter-spacing: -0.02em;
}
.mso-lbl {
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}
.mso-sep {
  width: 1px;
  height: 28px;
  background: var(--border);
  flex-shrink: 0;
}

/* Legend */
.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  padding: 14px 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
}
.ml-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-dim);
}
.ml-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ml-dot.federal  { background: #e05252; box-shadow: 0 0 6px rgba(224,82,82,0.6); }
.ml-dot.state    { background: #4fa3e0; box-shadow: 0 0 6px rgba(79,163,224,0.6); }
.ml-dot.county   { background: #50c878; box-shadow: 0 0 6px rgba(80,200,120,0.6); }
.ml-dot.private  { background: #c97bdb; box-shadow: 0 0 6px rgba(201,123,219,0.6); }

/* ─── OPPORTUNITY BANNER ────────────────────────────────── */
.opportunity-banner {
  position: relative;
  padding: 140px 0;
  overflow: hidden;
  /* Rich dark background with red tonal gradient */
  background:
    radial-gradient(ellipse 80% 60% at 75% 50%, rgba(188,48,43,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 80% at 20% 30%, rgba(188,48,43,0.08) 0%, transparent 60%),
    linear-gradient(135deg, #0a0808 0%, #141010 40%, #100808 100%);
}
/* Dot-grid overlay */
.opportunity-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(188,48,43,0.25) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.35;
  pointer-events: none;
}
/* Red accent line left edge */
.opportunity-banner::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, transparent 0%, var(--red) 30%, var(--red) 70%, transparent 100%);
  opacity: 0.7;
}
.opp-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}
.opp-content h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--white);
  margin: 16px 0 20px;
}
.opp-content p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-dim);
  margin-bottom: 40px;
}
.opp-metrics {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.opp-metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.opp-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--red);
  letter-spacing: -0.02em;
}
.opp-metric span:last-child {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ─── SOLUTION LAYOUT ───────────────────────────────────── */
.solution-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.solution-visual {
  position: relative;
}
/* .solution-img-placeholder — removed from HTML, dead code */
.solution-badge {
  position: absolute;
  bottom: -16px;
  right: -16px;
  background: var(--red);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(188,48,43,0.4);
}
.solution-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.solution-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.sol-icon {
  width: 44px; height: 44px;
  min-width: 44px;
  background: rgba(188,48,43,0.1);
  border: 1px solid rgba(188,48,43,0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-size: 1rem;
}
.solution-item h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--white);
}
.solution-item p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-dim);
}

/* ─── PILLARS GRID ──────────────────────────────────────── */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.pillar-card {
  background: #ffffff;
  padding: 40px 28px;
  transition: background 0.3s;
  animation-delay: var(--delay, 0s);
  position: relative;
  overflow: hidden;
}
.pillar-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.pillar-card:hover { background: #f5f5f5; }
.pillar-card:hover::after { transform: scaleX(1); }
.pillar-num {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--red);
  margin-bottom: 16px;
}
.pillar-icon-wrap {
  width: 48px; height: 48px;
  background: rgba(188,48,43,0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-size: 1.2rem;
  margin-bottom: 20px;
}
.pillar-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.3;
}
.pillar-card p {
  font-size: 0.825rem;
  line-height: 1.65;
  color: rgba(17,17,17,0.65);
  margin-bottom: 20px;
}
.pillar-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pillar-features li {
  font-size: 0.75rem;
  color: rgba(17,17,17,0.42);
  padding-left: 14px;
  position: relative;
}
.pillar-features li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--red);
  font-size: 0.6rem;
}

/* ─── PRODUCTS GRID ─────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.5), 0 0 0 1px rgba(188,48,43,0.3);
  border-color: rgba(188,48,43,0.4);
}

/* ── Product photo ── */
.product-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0a0a0a;
}
.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s var(--ease), filter 0.3s;
  filter: brightness(0.92) saturate(0.85);
}
.product-card:hover .product-img {
  transform: scale(1.05);
  filter: brightness(1) saturate(1);
}
/* vignette + red bottom glow */
.product-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, transparent 45%, rgba(0,0,0,0.75) 100%),
    radial-gradient(ellipse at 50% 110%, rgba(188,48,43,0.18) 0%, transparent 65%);
  pointer-events: none;
}

.pv-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  background: rgba(10,10,10,0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(188,48,43,0.45);
  color: var(--red-light);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
}

/* ── Body ── */
.product-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}
.product-tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(188,48,43,0.1);
  border: 1px solid rgba(188,48,43,0.2);
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 2px;
  align-self: flex-start;
}
.product-body h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #111111;
  line-height: 1.35;
  margin: 0;
}
.product-body p {
  font-size: 0.8rem;
  line-height: 1.65;
  color: rgba(17,17,17,0.65);
  margin: 0;
  flex: 1;
}
.product-specs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 4px 0;
}
.product-specs li {
  font-size: 0.72rem;
  color: rgba(17,17,17,0.42);
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.3;
}
.product-specs li i {
  color: var(--red);
  font-size: 0.55rem;
  flex-shrink: 0;
}
.product-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-top: 4px;
  transition: gap 0.2s, color 0.2s;
  align-self: flex-start;
}
.product-link:hover {
  color: var(--red-light);
  gap: 11px;
}
.product-link i { font-size: 0.6rem; transition: transform 0.2s; }
.product-link:hover i { transform: translateX(3px); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .products-grid { grid-template-columns: 1fr; }
}

/* ─── BENEFITS ──────────────────────────────────────────── */
.benefits-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.benefit-row { margin-bottom: 28px; }
.benefit-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.85rem;
}
.benefit-label-row span:first-child { color: var(--white); }
.benefit-pct {
  font-weight: 700;
  color: var(--red) !important;
  font-size: 0.85rem;
}
.benefit-bar {
  height: 4px;
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
  overflow: hidden;
}
.benefit-fill {
  height: 100%;
  width: var(--pct);
  background: linear-gradient(90deg, var(--red-dark), var(--red));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s var(--ease-out);
}
.benefit-fill.animated { transform: scaleX(1); }
.benefits-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.roi-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 28px 22px;
  transition: background 0.3s, border-color 0.3s;
}
.roi-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(188,48,43,0.4);
}
.roi-icon {
  font-size: 1.4rem;
  color: var(--red);
  margin-bottom: 14px;
}
.roi-card h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.roi-card p {
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ─── PARTNERSHIP ───────────────────────────────────────── */
.partnership-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 48px;
}
.partner-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 40px 36px;
  transition: background 0.3s;
}
.partner-card:hover { background: rgba(255,255,255,0.12); }
/* ── PARTNER LOGO WRAPPERS ──────────────────────────────── */
.partner-logo-wrap {
  width: 100%;
  height: 80px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(6px);
  overflow: hidden;
  padding: 16px 24px;
  transition: background 0.25s;
}
.partner-logo-wrap:hover { background: rgba(255,255,255,0.1); }
/* IMEG logo in partner card */
.partner-imeg-logo {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
.partner-corvalent-logo {
  height: 30px;
  width: auto;
  filter: none;
  opacity: 1;
}
.partner-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
}
.partner-card p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.75);
  margin-bottom: 20px;
}
.partner-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.partner-list li {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  gap: 8px;
}
.partner-list li i { color: rgba(255,255,255,0.5); font-size: 0.6rem; }
.partner-plus { display: flex; align-items: center; justify-content: center; }
.plus-circle {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--white);
}
.partnership-cta {
  text-align: center;
  padding: 32px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
}
.partnership-cta p {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  font-style: italic;
  font-family: var(--font-serif);
}

/* ─── ROADMAP ───────────────────────────────────────────── */
.roadmap-timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}
.roadmap-line {
  position: absolute;
  left: 28px;
  top: 24px;
  bottom: 24px;
  width: 1px;
  background: linear-gradient(180deg, var(--red) 0%, rgba(188,48,43,0.1) 100%);
}
.roadmap-step {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 56px;
  padding-left: 0;
  animation-delay: var(--delay, 0s);
}
.roadmap-step:last-child { margin-bottom: 0; }
.step-marker {
  width: 56px; min-width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--white);
  box-shadow: 0 0 0 6px rgba(188,48,43,0.15);
  position: relative;
  z-index: 1;
}
.step-content {
  padding-top: 12px;
}
.step-phase {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}
.step-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
}
.step-content p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text-dim);
}

/* ─── CONTACT ───────────────────────────────────────────── */
.contact-section {
  padding: var(--section-pad) 0;
}
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: start;
  max-width: 720px;
}
.contact-left h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--white);
  margin: 16px 0 20px;
}
.contact-left p {
  font-size: 0.925rem;
  line-height: 1.75;
  color: var(--text-dim);
  margin-bottom: 36px;
}
.contact-person {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 32px;
}
.contact-avatar {
  width: 64px; min-width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  border-radius: 50%;
  border: 2px solid rgba(188,48,43,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.9);
  font-size: 1.6rem;
  box-shadow: 0 0 0 4px rgba(188,48,43,0.15);
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-details strong {
  font-weight: 600;
  font-size: 1rem;
}
.contact-details span {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.contact-email, .contact-phone {
  font-size: 0.8rem;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  transition: color 0.2s;
}
.contact-email:hover, .contact-phone:hover { color: var(--red-light); }
.contact-logos {
  display: flex;
  align-items: center;
  gap: 16px;
}
/* ── CONTACT LOGOS ──────────────────────────────────────── */
.contact-imeg-logo {
  height: 22px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.contact-corvalent-logo {
  height: 20px;
  width: auto;
  filter: none;
  opacity: 1;
}
.contact-logo-sep {
  font-size: 1.2rem;
  color: var(--text-muted);
}

/* ─── CONTACT FORM ──────────────────────────────────────── */
.contact-form {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-group input,
.form-group textarea {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 12px 16px;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: border-color 0.2s, background 0.2s;
  outline: none;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--red);
  background: rgba(255,255,255,0.09);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}
.form-submit {
  align-self: flex-start;
  margin-top: 4px;
}
.form-success {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(22,163,74,0.15);
  border: 1px solid rgba(22,163,74,0.3);
  border-radius: 4px;
  font-size: 0.85rem;
  color: #4ade80;
}
.form-success.show { display: flex; }
.form-success i { font-size: 1rem; }

/* ─── FOOTER ────────────────────────────────────────────── */
#footer {
  background: #000000;
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
/* ── FOOTER LOGO ─────────────────────────────────────────── */
.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.footer-imeg-logo {
  height: 20px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  transition: opacity 0.25s;
}
.footer-logo-wrap:hover .footer-imeg-logo { opacity: 1; }
.footer-logo-sep {
  color: var(--red);
  font-size: 1rem;
  font-weight: 300;
}
.footer-corvalent-logo {
  height: 18px;
  width: auto;
  filter: none;
  opacity: 0.9;
  transition: opacity 0.25s;
}
.footer-logo-wrap:hover .footer-corvalent-logo { opacity: 1; }
.footer-brand p {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 280px;
  line-height: 1.6;
}
.footer-links {
  display: flex;
  gap: 64px;
}
.footer-col h4 {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 0.85rem;
  color: var(--text-dim);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--red); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ─── REVEAL ANIMATIONS ─────────────────────────────────── */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 1;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--delay, 0s);
}
.reveal-up    { transform: translateY(0); }
.reveal-left  { transform: translateX(0); }
.reveal-right { transform: translateX(0); }

/* Smooth animation when JS adds .visible */
.reveal-up.animate,
.reveal-left.animate,
.reveal-right.animate {
  opacity: 0;
}
.reveal-up.animate     { transform: translateY(40px); }
.reveal-left.animate   { transform: translateX(-40px); }
.reveal-right.animate  { transform: translateX(40px); }

.reveal-up.animate.visible,
.reveal-left.animate.visible,
.reveal-right.animate.visible {
  opacity: 1;
  transform: translate(0);
}

/* ─── ACTIVE NAV LINK ───────────────────────────────────── */
.nav-links a.active { color: var(--red); }

/* ═══════════════════════════════════════════════════════════
   SAVINGS CALCULATOR
═══════════════════════════════════════════════════════════ */

/* ── Wrapper: two-column layout ── */
.calc-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}

/* ── Shared panel styles ── */
.calc-inputs,
.calc-results {
  padding: 48px 40px;
  background: #161616;
}

/* ── Panel titles ── */
.calc-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

/* ── Range fields ── */
.calc-field {
  margin-bottom: 28px;
}
.calc-field-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.calc-field-header label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white);
}
.calc-value-badge {
  background: rgba(188,48,43,0.08);
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid rgba(188,48,43,0.2);
  min-width: 80px;
  text-align: center;
  transition: background 0.2s;
}

/* ── Custom range slider ── */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: #252525;
  outline: none;
  cursor: pointer;
  background-image: linear-gradient(var(--red), var(--red));
  background-size: 0% 100%;
  background-repeat: no-repeat;
  transition: background-size 0.1s;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid var(--white);
  box-shadow: 0 2px 8px rgba(188,48,43,0.45);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 16px rgba(188,48,43,0.55);
}
input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid var(--white);
  box-shadow: 0 2px 8px rgba(188,48,43,0.4);
  cursor: pointer;
}
.calc-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 5px;
}

/* ── Disclaimer ── */
.calc-disclaimer {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px dashed var(--border);
}
.calc-disclaimer i { color: var(--text-muted); margin-top: 2px; }

/* ── Total card ── */
.calc-total-card {
  background: #080808;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 28px 24px;
  text-align: center;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}
.calc-total-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(188,48,43,0.25) 0%, transparent 60%);
  pointer-events: none;
}
.calc-total-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 10px;
}
.calc-total-value {
  display: block;
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
  transition: all 0.3s;
}
.calc-total-sub {
  display: block;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.06em;
}

/* ── Breakdown rows ── */
.calc-breakdown {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 20px;
}
.calc-breakdown-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #1e1e1e;
  border-radius: 0;
  transition: background 0.2s;
}
.calc-breakdown-item:first-child { border-radius: 8px 8px 0 0; }
.calc-breakdown-item:last-child  { border-radius: 0 0 8px 8px; }
.calc-breakdown-item:hover { background: #252525; }

.cbi-icon {
  width: 36px; min-width: 36px; height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}
.energy-icon   { background: rgba(234,179,8,0.12);  color: #ca8a04; }
.labor-icon    { background: rgba(59,130,246,0.12); color: #2563eb; }
.maint-icon    { background: rgba(16,185,129,0.12); color: #059669; }
.incident-icon { background: rgba(188,48,43,0.10);  color: var(--red); }

.cbi-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cbi-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white);
}
.cbi-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
}
.cbi-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  transition: color 0.3s;
}

/* ── Payback strip ── */
.calc-payback {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-bottom: 20px;
}
.payback-item {
  background: #1e1e1e;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.payback-item i {
  font-size: 1.1rem;
  color: var(--red);
  margin-top: 2px;
}
.payback-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.payback-value {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  transition: color 0.3s;
}

/* ── Mini bar chart ── */
.calc-chart {
  background: #1e1e1e;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.chart-bar-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.chart-bar-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-dim);
  width: 72px;
  flex-shrink: 0;
}
.chart-bar-track {
  flex: 1;
  height: 8px;
  background: #2e2e2e;
  border-radius: 4px;
  overflow: hidden;
}
.chart-bar-fill {
  height: 100%;
  border-radius: 4px;
  width: 0%;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.energy-fill   { background: linear-gradient(90deg, #ca8a04, #fbbf24); }
.labor-fill    { background: linear-gradient(90deg, #2563eb, #60a5fa); }
.maint-fill    { background: linear-gradient(90deg, #059669, #34d399); }
.incident-fill { background: linear-gradient(90deg, var(--red-dark), var(--red)); }

/* ── CTA ── */
.calc-cta {
  display: flex;
  justify-content: center;
  width: 100%;
  text-align: center;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .calc-wrapper {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .calc-payback { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .calc-inputs, .calc-results { padding: 28px 20px; }
  .calc-payback { grid-template-columns: 1fr; }
}

/* ─── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 1100px) {
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .challenge-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  :root { --section-pad: 80px; }
  .solution-layout { grid-template-columns: 1fr; gap: 48px; }
  .benefits-layout { grid-template-columns: 1fr; gap: 48px; }
  .contact-layout { grid-template-columns: 1fr; gap: 0; max-width: 720px; }
  .partnership-grid { grid-template-columns: 1fr; gap: 24px; }
  .partner-plus { display: none; }
  .footer-top { flex-direction: column; }
  .footer-links { gap: 40px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  body { cursor: auto; }
  #cursor-dot, #cursor-ring, #spotlight { display: none; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .nav-inner { padding: 16px 20px; }
  .pillars-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .challenge-grid { grid-template-columns: 1fr; }
  .benefits-right { grid-template-columns: 1fr; }
  .opp-metrics { gap: 24px; }
  .footer-links { flex-direction: column; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .contact-form { padding: 24px; }
}

/* ═══════════════════════════════════════════════════════════
   CHALLENGE CALLOUT
═══════════════════════════════════════════════════════════ */
.challenge-callout {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 48px;
  opacity: 1 !important;
  transform: none !important;
}
.cc-item {
  background: #ffffff;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cc-num {
  font-size: clamp(2rem,3.5vw,2.8rem);
  font-weight: 900;
  color: var(--red);
  letter-spacing: -0.03em;
  line-height: 1;
}
.cc-desc {
  font-size: 0.8rem;
  color: rgba(17,17,17,0.65);
  line-height: 1.55;
}

/* ═══════════════════════════════════════════════════════════
   PODCAST PLAYER
═══════════════════════════════════════════════════════════ */
.podcast-section {
  position: relative;
  background: #000000;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 0;
}

/* Ambient background glow */
.podcast-section::before {
  content: '';
  position: absolute;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 300px;
  background: radial-gradient(ellipse at center, rgba(188,48,43,0.10) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.podcast-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 39px,
      rgba(255,255,255,0.015) 39px,
      rgba(255,255,255,0.015) 40px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 79px,
      rgba(255,255,255,0.015) 79px,
      rgba(255,255,255,0.015) 80px
    );
  pointer-events: none;
  z-index: 0;
}

.podcast-container {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 64px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

/* ── Left: Episode Info ── */
.podcast-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.podcast-live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(188,48,43,0.5);
  animation: livePulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
.podcast-eyebrow-text {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
}
.podcast-title {
  font-family: var(--font-sans);
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 18px;
}
.podcast-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 420px;
  margin-bottom: 28px;
}
.podcast-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.podcast-meta-item {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  gap: 5px;
}
.podcast-meta-item i { color: rgba(255,255,255,0.2); font-size: 0.65rem; }
.podcast-meta-sep { color: rgba(255,255,255,0.12); font-size: 0.7rem; }

/* ── Right: Player card ── */
.podcast-player {
  background: #141414;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 28px 28px 24px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(188,48,43,0.06),
    0 24px 48px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.04);
}
.podcast-player::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(188,48,43,0.6) 30%,
    rgba(188,48,43,0.6) 70%,
    transparent 100%);
}

/* ── Waveform canvas ── */
.podcast-waveform {
  position: relative;
  width: 100%;
  height: 72px;
  margin-bottom: 18px;
  border-radius: 8px;
  overflow: hidden;
  background: #1c1c1c;
}
#waveform-canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.waveform-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    #1c1c1c 0%,
    transparent 6%,
    transparent 94%,
    #1c1c1c 100%);
  pointer-events: none;
}

/* ── Progress bar ── */
.podcast-time-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.podcast-time-current,
.podcast-time-total {
  font-size: 0.7rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: rgba(255,255,255,0.45);
  flex-shrink: 0;
  min-width: 32px;
}
.podcast-time-current { text-align: right; }
.podcast-time-total   { text-align: left; }

.podcast-progress-wrap {
  flex: 1;
  cursor: pointer;
  padding: 8px 0;
}
.podcast-progress-bg {
  position: relative;
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: visible;
}
.podcast-progress-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--red-dark), var(--red));
  border-radius: 3px;
  transition: width 0.1s linear;
}
.podcast-progress-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(188,48,43,0.35);
  opacity: 0;
  transition: opacity 0.2s, left 0.1s linear;
  pointer-events: none;
}
.podcast-progress-wrap:hover .podcast-progress-thumb { opacity: 1; }
.podcast-progress-wrap:hover .podcast-progress-bg { height: 5px; }
.podcast-progress-bg { transition: height 0.2s; }

/* ── Controls row ── */
.podcast-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

/* Generic control button */
.pc-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, transform 0.15s;
  padding: 0;
  line-height: 1;
}
.pc-btn:hover { color: var(--white); transform: scale(1.1); }
.pc-btn:active { transform: scale(0.95); }

/* Skip buttons */
.pc-skip {
  position: relative;
  width: 40px; height: 40px;
  flex-direction: column;
  gap: 1px;
  font-size: 1rem;
}
.pc-skip-label {
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: inherit;
  line-height: 1;
}

/* Play button */
.pc-play {
  position: relative;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #252525;
  border: 1px solid rgba(255,255,255,0.08) !important;
  color: var(--white) !important;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4), 0 0 0 0 rgba(188,48,43,0.3);
  transition: box-shadow 0.3s, background 0.2s, transform 0.15s !important;
}
.pc-play:hover {
  background: #2e2e2e !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5), 0 0 0 8px rgba(188,48,43,0.12) !important;
  transform: scale(1.06) !important;
}
.pc-play.playing {
  box-shadow: 0 4px 20px rgba(0,0,0,0.4), 0 0 0 6px rgba(188,48,43,0.18) !important;
}
.pc-play-icon {
  position: relative;
  z-index: 1;
}
/* SVG ring progress overlay */
.pc-ring {
  position: absolute;
  inset: -4px;
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  pointer-events: none;
}
#pc-ring-circle {
  transition: stroke-dashoffset 0.15s linear;
}

/* Speed button */
.pc-speed-wrap {
  position: relative;
}
.pc-speed-btn {
  background: #252525;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  color: rgba(255,255,255,0.6);
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-sans);
  letter-spacing: 0.04em;
  cursor: pointer;
  padding: 5px 9px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  min-width: 38px;
  text-align: center;
}
.pc-speed-btn:hover,
.pc-speed-btn.open {
  background: #2e2e2e;
  color: var(--white);
  border-color: rgba(188,48,43,0.4);
}
.pc-speed-menu {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1c1c1c;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  overflow: hidden;
  display: none;
  flex-direction: column;
  min-width: 68px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  z-index: 10;
}
.pc-speed-menu.open { display: flex; }
.pc-speed-opt {
  background: none;
  border: none;
  color: rgba(255,255,255,0.55);
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  padding: 9px 14px;
  text-align: center;
  transition: background 0.15s, color 0.15s;
}
.pc-speed-opt:hover { background: #252525; color: var(--white); }
.pc-speed-opt.active { color: var(--red); }

/* Volume */
.pc-vol-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pc-vol-btn {
  width: 36px; height: 36px;
  font-size: 0.85rem;
}
.pc-vol-slider-wrap {
  width: 72px;
  display: flex;
  align-items: center;
}
.pc-vol-track {
  position: relative;
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  cursor: pointer;
}
.pc-vol-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 100%;
  background: linear-gradient(90deg, var(--red-dark), var(--red));
  border-radius: 3px;
  pointer-events: none;
}
.pc-vol-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  margin: 0;
}

/* ── Waveform animation while playing ── */
@keyframes waveAnim {
  0%, 100% { transform: scaleY(1); }
  50%       { transform: scaleY(1.6); }
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .podcast-container {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 48px 40px;
  }
  .podcast-desc { max-width: 100%; }
}
@media (max-width: 640px) {
  .podcast-container { padding: 36px 20px; }
  .podcast-title { font-size: 1.4rem; }
  .podcast-controls { gap: 10px; }
  .pc-vol-slider-wrap { width: 54px; }
}

/* ═══════════════════════════════════════════════════════════
   LETTER AUTHOR-TO
═══════════════════════════════════════════════════════════ */
.author-to {
  font-size: 0.7rem !important;
  color: var(--text-muted) !important;
  font-style: italic;
  margin-top: 2px;
}

/* ═══════════════════════════════════════════════════════════
   SOLUTION ARCHITECTURE DIAGRAM
═══════════════════════════════════════════════════════════ */
.solution-arch {
  background: #0d0d0d;
  border: 1px solid rgba(188,48,43,0.2);
  border-radius: 10px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.arch-layer {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
}
.arch-cloud {
  background: rgba(188,48,43,0.1);
  border: 1px solid rgba(188,48,43,0.25);
  color: var(--red-light);
}
.arch-edge {
  background: rgba(188,48,43,0.07);
  border: 1px solid rgba(188,48,43,0.18);
  color: rgba(188,48,43,0.9);
}
.arch-cloud i, .arch-edge i { font-size: 1rem; }
.arch-arrows {
  display: flex;
  justify-content: space-around;
  width: 80%;
  padding: 6px 0;
  gap: 8px;
}
.arch-arrow {
  width: 1px;
  height: 28px;
  background: linear-gradient(180deg, rgba(188,48,43,0.5), rgba(188,48,43,0.1));
  position: relative;
}
.arch-arrow::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid rgba(188,48,43,0.4);
}
.arch-devices {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.arch-device {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--text-dim);
  min-width: 56px;
}
.arch-device i { font-size: 1.1rem; color: var(--red); }

/* ═══════════════════════════════════════════════════════════
   USE CASES
═══════════════════════════════════════════════════════════ */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.uc-card {
  background: #ffffff;
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 0.3s;
  position: relative;
  animation-delay: var(--delay,0s);
}
.uc-card::after {
  content:'';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.uc-card:hover { background: #f5f5f5; }
.uc-card:hover::after { transform: scaleX(1); }
.uc-header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.uc-icon {
  width: 32px; height: 32px;
  background: rgba(188,48,43,0.12);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--red);
  font-size: 0.85rem;
  flex-shrink: 0;
}
.uc-type {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
}
.uc-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #111111;
  line-height: 1.3;
}
.uc-card p {
  font-size: 0.8rem;
  line-height: 1.65;
  color: rgba(17,17,17,0.65);
  flex: 1;
}
.uc-impact {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.uc-impact span {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  gap: 5px;
}
.uc-impact span i { color: var(--red); font-size: 0.6rem; }

/* ═══════════════════════════════════════════════════════════
   CORVALENT ABOUT STRIP
═══════════════════════════════════════════════════════════ */
.corvalent-about {
  margin-top: 64px;
  background: #f7f7f7;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 10px;
  padding: 40px 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}
.ca-corvalent-logo {
  height: 30px;
  width: auto;
  filter: none;
  opacity: 1;
  margin-bottom: 20px;
  display: block;
}
.ca-text p {
  font-size: 0.875rem;
  line-height: 1.75;
  color: rgba(17,17,17,0.65);
  max-width: 600px;
}
.ca-badges {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ca-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(188,48,43,0.07);
  border: 1px solid rgba(188,48,43,0.2);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #111111;
  white-space: nowrap;
}
.ca-badge i { color: var(--red); width: 14px; text-align: center; }

/* ═══════════════════════════════════════════════════════════
   CONTACT — WHAT TO EXPECT
═══════════════════════════════════════════════════════════ */
.contact-expect {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 24px 28px;
  margin-bottom: 28px;
}
.contact-expect h4 {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.expect-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.expect-item:last-child { border-bottom: none; padding-bottom: 0; }
.expect-num {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--red);
  background: rgba(188,48,43,0.1);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 7px;
  flex-shrink: 0;
  letter-spacing: 0.05em;
}
.expect-item span:last-child {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.5;
  padding-top: 1px;
}

/* calc dark variant */
#calculator .calc-inputs { background: #111111; }
#calculator .calc-inputs .calc-field-header label { color: var(--white); }
#calculator .calc-section-title { border-color: var(--border); }
#calculator .calc-range-labels { color: var(--text-muted); }
#calculator .calc-disclaimer { border-color: var(--border); color: var(--text-muted); }
#calculator .calc-breakdown-item { background: #1e1e1e; }
#calculator .cbi-label { color: var(--white); }
#calculator .cbi-value { color: var(--white); }
#calculator .payback-item { background: #1e1e1e; border-color: var(--border); }
#calculator .payback-label { color: var(--text-muted); }
#calculator .payback-value { color: var(--white); }
#calculator .calc-chart { background: #1e1e1e; border-color: var(--border); }
#calculator .chart-bar-label { color: var(--text-muted); }
#calculator .chart-bar-track { background: #2a2a2a; }
#calculator input[type="range"] { background-color: #2a2a2a; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — HERO SPLIT & NEW COMPONENTS
═══════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .hero-split { padding-top: 110px; padding-bottom: 20px; }
  .usecase-grid { grid-template-columns: repeat(2,1fr); }
  .challenge-callout { grid-template-columns: 1fr; gap: 1px; }
}

@media (max-width: 900px) {
  .hero-split { padding: 100px 24px 20px; }
  #usa-map { height: 380px; }
  .corvalent-about { grid-template-columns: 1fr; gap: 28px; }
  .ca-badges { flex-direction: row; flex-wrap: wrap; }
  .usecase-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero-split { padding: 90px 20px 20px; }
  #usa-map { height: 300px; }
  .map-stats-overlay { padding: 6px 10px; }
  .mso-item { padding: 0 8px; }
  .mso-num { font-size: 0.85rem; }
  .challenge-callout { grid-template-columns: 1fr; }
  .corvalent-about { padding: 28px 20px; }
  .contact-expect { padding: 18px 20px; }
  .ht-bold { font-size: clamp(2.4rem, 11vw, 4.5rem); }
}

/* ═══════════════════════════════════════════════════════════
   MATERIALS / RESOURCES SECTION
═══════════════════════════════════════════════════════════ */
.materials-section { padding: var(--section-pad) 0; }

.mat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ── Card base ── */
.mat-card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}
.mat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(188,48,43,0.4);
  box-shadow: 0 16px 48px rgba(0,0,0,0.45);
}

/* ── Thumbnail area ── */
.mat-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  flex-shrink: 0;
}
.mat-thumb-link { display: block; }

/* Video thumbnail */
.mat-thumb--video { background: #000; }
.mat-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
.mat-card:hover .mat-thumb-img { transform: scale(1.04); opacity: 0.85; }
.mat-thumb-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.25);
  transition: background 0.25s;
}
.mat-card:hover .mat-thumb-overlay { background: rgba(0,0,0,0.1); }
.mat-play-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(188,48,43,0.9);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background 0.2s;
  box-shadow: 0 4px 20px rgba(188,48,43,0.5);
}
.mat-play-btn i { color: #fff; font-size: 1.1rem; margin-left: 3px; }
.mat-card:hover .mat-play-btn { transform: scale(1.1); background: var(--red); }

/* Podcast thumbnail */
.mat-thumb--podcast {
  background: linear-gradient(135deg, #0d0d0d 0%, #1a1014 50%, #0d0d0d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mat-podcast-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mat-podcast-rings {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mat-podcast-rings span {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(188,48,43,0.2);
  animation: mat-pulse 2.4s ease-out infinite;
}
.mat-podcast-rings span:nth-child(1) { width: 80px;  height: 80px;  animation-delay: 0s; }
.mat-podcast-rings span:nth-child(2) { width: 110px; height: 110px; animation-delay: 0.6s; }
.mat-podcast-rings span:nth-child(3) { width: 140px; height: 140px; animation-delay: 1.2s; }
@keyframes mat-pulse {
  0%   { opacity: 0.7; transform: scale(0.85); }
  100% { opacity: 0;   transform: scale(1.15); }
}
.mat-podcast-icon {
  font-size: 2.8rem;
  color: var(--red);
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 18px rgba(188,48,43,0.6));
}

/* PDF thumbnail */
.mat-thumb--pdf {
  background: linear-gradient(135deg, #0d0d0d 0%, #100d14 50%, #0d0d0d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.mat-pdf-visual {
  display: flex;
  align-items: center;
  gap: 18px;
}
.mat-pdf-icon {
  font-size: 3rem;
  color: var(--red);
  filter: drop-shadow(0 0 16px rgba(188,48,43,0.55));
}
.mat-pdf-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mat-pdf-lines span {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.12);
}
.mat-pdf-lines span:nth-child(1) { width: 72px; }
.mat-pdf-lines span:nth-child(2) { width: 56px; }
.mat-pdf-lines span:nth-child(3) { width: 64px; }
.mat-pdf-lines span:nth-child(4) { width: 44px; }
.mat-pdf-lines span:nth-child(5) { width: 60px; }
.mat-card:hover .mat-pdf-lines span { background: rgba(255,255,255,0.22); }

/* Badge */
.mat-badge {
  position: absolute;
  top: 12px; left: 12px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 5px;
  backdrop-filter: blur(8px);
}
.mat-badge--red  { background: rgba(188,48,43,0.85); color: #fff; }
.mat-badge--dark { background: rgba(0,0,0,0.7); color: rgba(255,255,255,0.85); border: 1px solid rgba(255,255,255,0.12); }

/* ── Card body ── */
.mat-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}
.mat-type {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.mat-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: #111111;
  line-height: 1.35;
  margin: 0;
}
.mat-desc {
  font-size: 0.82rem;
  color: rgba(17,17,17,0.55);
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

/* ── Buttons ── */
.mat-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.2s;
  margin-top: 6px;
  align-self: flex-start;
  white-space: nowrap;
}
.mat-btn--primary {
  background: var(--red);
  color: #fff;
  border: 1px solid transparent;
}
.mat-btn--primary:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(188,48,43,0.4);
}
.mat-btn--outline {
  background: transparent;
  color: #111111;
  border: 1px solid rgba(0,0,0,0.2);
}
.mat-btn--outline:hover {
  background: rgba(0,0,0,0.05);
  color: #000000;
  border-color: rgba(0,0,0,0.4);
  transform: translateY(-1px);
}

/* ── Confidentiality banner ── */
.mat-confidential {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(188,48,43,0.07);
  border: 1px solid rgba(188,48,43,0.35);
  border-left: 4px solid var(--red);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 36px;
}
.mat-confidential__icon {
  color: var(--red);
  font-size: 1rem;
  margin-top: 2px;
  flex-shrink: 0;
}
.mat-confidential__text {
  font-size: 0.78rem;
  line-height: 1.6;
  color: rgba(17,17,17,0.7);
}
.mat-confidential__text strong {
  display: block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 4px;
}

/* ── Exclusive tag ── */
.mat-exclusive {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(188,48,43,0.85);
  background: rgba(188,48,43,0.08);
  border: 1px solid rgba(188,48,43,0.2);
  border-radius: 100px;
  padding: 4px 10px;
  margin: 2px 0 0;
}
.mat-exclusive i { font-size: 0.6rem; }

/* ── Button group (preview + download side by side) ── */
.mat-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.mat-btn-group .mat-btn { margin-top: 0; }

/* ══════════════════════════════════════════════════════════
   PDF PREVIEW MODAL
══════════════════════════════════════════════════════════ */
.pdf-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.pdf-modal.is-open {
  display: flex;
}
.pdf-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(6px);
  cursor: pointer;
}
.pdf-modal__box {
  position: relative;
  z-index: 1;
  width: min(92vw, 1020px);
  height: min(90vh, 820px);
  background: #111111;
  border: 1px solid rgba(188,48,43,0.35);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 32px 80px rgba(0,0,0,0.8), 0 0 0 1px rgba(188,48,43,0.15);
  animation: pdf-modal-in 0.25s var(--ease) both;
}
@keyframes pdf-modal-in {
  from { opacity: 0; transform: scale(0.95) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.pdf-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #0d0d0d;
  border-bottom: 1px solid rgba(188,48,43,0.25);
  flex-shrink: 0;
  gap: 12px;
}
.pdf-modal__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.85);
}
.pdf-modal__title i {
  color: var(--red);
  font-size: 1rem;
}
.pdf-modal__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.pdf-modal__download {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  background: var(--red);
  color: #fff;
  border-radius: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.15s;
}
.pdf-modal__download:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}
.pdf-modal__close {
  width: 32px; height: 32px;
  border-radius: 6px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}
.pdf-modal__close:hover {
  background: rgba(188,48,43,0.18);
  color: var(--white);
  border-color: rgba(188,48,43,0.4);
}
.pdf-modal__body {
  flex: 1;
  overflow: hidden;
  position: relative;
  background: #1c1c1c;
}
.pdf-modal__iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .mat-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 580px) {
  .mat-grid { grid-template-columns: 1fr; }
  .mat-confidential { flex-direction: column; gap: 10px; }
  .pdf-modal__title { font-size: 0.7rem; }
  .pdf-modal__download { display: none; } /* hide on tiny screens; modal download redundant */
}

/* ═══════════════════════════════════════════════════════════
   PLATFORM DASHBOARD SECTION
═══════════════════════════════════════════════════════════ */
.dashboard-section { padding: var(--section-pad) 0; }

/* ── Layout principal ── */
.dv-wrap {
  display: grid;
  grid-template-columns: 250px 1fr;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #0d0d0d;
}

/* ── Lista lateral ── */
.dv-list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  border-right: 1px solid var(--border);
  background: rgba(0,0,0,0.22);
}

.dv-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 15px;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: background 0.15s, border-color 0.15s;
  user-select: none;
}
.dv-item:hover { background: rgba(255,255,255,0.05); }
.dv-item.active {
  background: rgba(188,48,43,0.12);
  border-left-color: var(--red);
}

.dv-item__icon {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.09);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dv-item__icon i { font-size: 0.7rem; color: rgba(255,255,255,0.4); }
.dv-item.active .dv-item__icon { background: rgba(188,48,43,0.18); border-color: rgba(188,48,43,0.4); }
.dv-item.active .dv-item__icon i { color: var(--red); }

.dv-item__text {
  flex: 1;
  min-width: 0;
}
.dv-item__text strong {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dv-item__text em {
  display: block;
  font-style: normal;
  font-size: 0.62rem;
  color: rgba(255,255,255,0.22);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
.dv-item.active .dv-item__text strong { color: var(--white); }
.dv-item.active .dv-item__text em    { color: rgba(188,48,43,0.75); }
.dv-item:hover:not(.active) .dv-item__text strong { color: rgba(255,255,255,0.7); }

.dv-item__arrow { font-size: 0.56rem; color: rgba(255,255,255,0.1); flex-shrink: 0; }
.dv-item.active .dv-item__arrow { color: var(--red); }

/* ── Viewer ── */
.dv-viewer {
  background: #080a0e;
  overflow: hidden;
  /* No flex, no height:0 — just let the img expand naturally */
}

.dv-viewer img {
  width: 100%;
  height: 460px;          /* altura fixa, simples e funcional */
  object-fit: cover;
  object-position: top left;
  display: block;
  transition: opacity 0.22s ease;
}
.dv-viewer img.dv-fade { opacity: 0; }

.dv-caption {
  padding: 14px 20px;
  background: rgba(0,0,0,0.55);
  border-top: 1px solid rgba(255,255,255,0.07);
}
.dv-caption strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 3px;
}
.dv-caption p {
  font-size: 0.74rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
  margin: 0;
}

/* ── CTA ── */
.dashboard-cta {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 24px 32px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
}
.dashboard-cta p {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 560px;
  margin: 0;
}
.dashboard-cta .btn-primary {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap;
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .dv-wrap { grid-template-columns: 190px 1fr; }
  .dv-item__text em { display: none; }
  .dv-item__arrow   { display: none; }
  .dv-viewer img    { height: 360px; }
}
@media (max-width: 600px) {
  .dv-wrap { grid-template-columns: 1fr; }
  .dv-list {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 0;
    scrollbar-width: none;
  }
  .dv-list::-webkit-scrollbar { display: none; }
  .dv-item {
    flex-direction: column;
    gap: 4px;
    padding: 10px 14px;
    border-left: none;
    border-bottom: 3px solid transparent;
    flex-shrink: 0;
    text-align: center;
  }
  .dv-item.active { border-left-color: transparent; border-bottom-color: var(--red); }
  .dv-item__text  { display: none; }
  .dv-item__arrow { display: none; }
  .dv-viewer img  { height: 260px; flex: none; }
  .dashboard-cta  { flex-direction: column; align-items: flex-start; }
}

/* ═══════════════════════════════════════════════════════════
   FUTURISTIC THEME — LIGHT SECTION OVERRIDES
   White background sections with dark text & red accents
═══════════════════════════════════════════════════════════ */

/* ── Light section: section divider line ── */
.section-light::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(188,48,43,0.0)  8%,
    rgba(188,48,43,0.4) 28%,
    rgba(0,0,0,0.12) 50%,
    rgba(188,48,43,0.4) 72%,
    rgba(188,48,43,0.0)  92%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 2;
}

/* ── Light section: hero video fade target (hero is always dark) ── */
.hero-video-fade-bottom {
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0,0,0,0.45) 30%,
    rgba(0,0,0,0.85) 65%,
    #000000 100%
  );
}

/* ── Light section: section-label tag ── */
.section-light .section-label {
  color: var(--red);
  border-color: rgba(188,48,43,0.25);
  background: rgba(188,48,43,0.04);
}

/* ── Light section: letter-strip blockquote author ── */
.section-light .author-info strong { color: #111111; }
.section-light .author-info span   { color: rgba(17,17,17,0.5); }

/* ── Light sections: roadmap ── */
.section-light .roadmap-timeline { color: var(--lt-text); }
.section-light .roadmap-line {
  background: linear-gradient(180deg, var(--red) 0%, rgba(188,48,43,0.12) 100%);
}
.section-light .step-marker {
  background: var(--red);
  box-shadow: 0 0 0 6px rgba(188,48,43,0.1);
}
.section-light .step-phase  { color: var(--red); }
.section-light .step-content h3 { color: var(--lt-text); }
.section-light .step-content p  { color: var(--lt-text-dim); }

/* ── Light section: pillar card number ── */
.section-light .pillar-num { color: var(--red); }
.section-light .pillar-icon-wrap {
  background: rgba(188,48,43,0.08);
  border-color: rgba(188,48,43,0.2);
}
.section-light .pillar-features li { color: var(--lt-text-muted); }
.section-light .pillar-features li::before { color: var(--red); }

/* ── Light section: use-case impact ── */
.section-light .uc-impact span i { color: var(--red); }

/* ── Light section: product card ── */
.section-light .product-body { background: #ffffff; }
/* ── Light section: uc-impact border ── */
.section-light .uc-impact { border-color: rgba(0,0,0,0.1); }
.section-light .uc-impact span { color: rgba(17,17,17,0.65); }
/* ── Light section: pillar-card h3 ── */
.section-light .pillar-card h3 { color: #111111; }
/* ── Light section: challenge-card h3 ── */
.section-light .challenge-card h3 { color: #111111; }
/* ── Light section: challenge-grid border ── */
.section-light .challenge-grid { background: rgba(0,0,0,0.08); border-color: rgba(0,0,0,0.1); }
/* ── Light section: ca-corvalent-logo fix (was white filter) ── */
.corvalent-about .ca-corvalent-logo { filter: none; opacity: 1; }

/* ── Light section: solution arch (appears in dark #solution — keep dark) ── */
.section-dark .solution-arch { background: #0d0d0d; border-color: rgba(188,48,43,0.2); }

/* ── Dashboard CTA (always dark section) ── */
.dashboard-cta {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.1);
}

/* ── Light section: futuristic scan-line accent ── */
.section-light > .container::before {
  content: '';
  position: absolute;
  top: 0; left: -40px; right: -40px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(188,48,43,0.15) 20%,
    rgba(188,48,43,0.35) 50%,
    rgba(188,48,43,0.15) 80%,
    transparent 100%
  );
  pointer-events: none;
}

/* ── Dark section h2 always white ── */
.section-dark .section-header h2,
.section-dark h2 { color: var(--white); }

/* ── Dark section description text ── */
.section-dark .section-desc { color: var(--text-dim); }

/* ── Opportunity banner text (always dark bg) ── */
.opportunity-banner .opp-content h2 { color: var(--white); }
.opportunity-banner .section-label  { color: var(--red); border-color: var(--border); }

/* ── Dark sections: futuristic red-line accent on section top ── */
.section-dark > .container::before,
.section-mid > .container::before {
  content: '';
  position: absolute;
  top: 0; left: -40px; right: -40px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(188,48,43,0.08) 20%,
    rgba(188,48,43,0.22) 50%,
    rgba(188,48,43,0.08) 80%,
    transparent 100%
  );
  pointer-events: none;
}
.section-dark > .container,
.section-mid > .container {
  position: relative;
}

/* ── Light-section hero bottom fade to white ── */
#hero .hero-video-fade-bottom {
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0,0,0,0.35) 25%,
    rgba(0,0,0,0.75) 55%,
    #000000 100%
  );
}

/* ── Noise overlay: slightly stronger on white sections for texture ── */
#noise { mix-blend-mode: multiply; }

/* ── Scrollbar on white body ── */
::-webkit-scrollbar-track { background: #f0f0f0; }

/* ── Letter strip: ensure text is white (dark bg) ── */
.letter-strip blockquote { color: rgba(255,255,255,0.7); }
.letter-strip .author-info strong { color: var(--white); }
.letter-strip .author-info span   { color: rgba(255,255,255,0.4); }

/* ── Partnership section (section-accent = red bg) ── */
.section-accent .section-label.light { color: rgba(255,255,255,0.9); border-color: rgba(255,255,255,0.4); }
.section-accent .section-header h2   { color: var(--white); }
.section-accent .section-desc.light  { color: rgba(255,255,255,0.82); }

/* ── White body: light-section before::content needs z-index reset ── */
.section-light > .container {
  position: relative;
  z-index: 2;
}

/* ── Podcast section (dark bg) ── */
.podcast-section .podcast-title     { color: var(--white); }
.podcast-section .podcast-eyebrow-text { color: var(--red); }
.podcast-section .podcast-desc      { color: rgba(255,255,255,0.5); }

/* ── Light section: contact section (dark bg overrides) ── */
.section-dark.contact-section .section-label { color: var(--red); }
.section-dark.contact-section h2             { color: var(--white); }

/* ── Light section — benefits labels ── */
.section-dark .benefit-label-row span:first-child { color: var(--white); }

/* ── Calculator (dark section) ── */
.calculator-section .section-header h2 { color: var(--white); }
.calculator-section .section-label     { color: var(--red); border-color: var(--border); }
.calculator-section .section-desc      { color: var(--text-dim); }

/* ══════════════════════════════════════════
   FUTURISTIC GEOMETRIC ACCENTS
   Sharp, clean edges — the future aesthetic
══════════════════════════════════════════ */

/* Red corner bracket on light section headers */
.section-light .section-header::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--red);
  margin: 0 auto 20px;
  position: relative;
}

/* Bright red micro-line above section-label on dark sections */
.section-dark .section-label,
.section-mid .section-label {
  position: relative;
}

/* Hero to first section: body background is white,
   but hero bottom overlaps it correctly via absolute positioning */
#hero { z-index: 1; }
#materials { z-index: 0; }

/* ══════════════════════════════════════════
   MOBILE: light section adjustments
══════════════════════════════════════════ */
@media (max-width: 900px) {
  .section-light .challenge-grid  { grid-template-columns: repeat(2, 1fr); }
  .section-light .usecase-grid    { grid-template-columns: repeat(2, 1fr); }
  .section-light .pillars-grid    { grid-template-columns: repeat(2, 1fr); }
  .section-light .products-grid   { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .section-light .challenge-grid  { grid-template-columns: 1fr; }
  .section-light .usecase-grid    { grid-template-columns: 1fr; }
  .section-light .pillars-grid    { grid-template-columns: 1fr; }
  .section-light .products-grid   { grid-template-columns: 1fr; }
  .corvalent-about                { padding: 28px 20px; }
}
