/* ══════════════════════════════════════════════════════════════
   ORIGINEI HUB — Home page styles
   ══════════════════════════════════════════════════════════════ */

/* ════════════════════════════════════════════════════════════
   HERO — Full Banner: Foto + Vídeo sobrepostos (merge real)
   Stack de camadas:
     0  heroCanvas   (WebGL aurora)
     1  hero-bg-photo (foto, desaturada, foca à direita)
     2  hero-bg-video (vídeo, mix-blend: screen — ilumina foto)
     3  nodeCanvas
     4  hero-grid-overlay
     5  hero-bg-mask  (gradiente escuro esquerda → legibilidade)
     6  hero::after   (vinheta perimetral)
     7  .hero-inner   (copy)
════════════════════════════════════════════════════════════ */
#hero {
  position: relative;
  /* dvh = dynamic viewport height — adapts to browser chrome on every screen */
  min-height: 100dvh;
  min-height: 100vh; /* fallback for older browsers */
  display: flex;
  align-items: center;
  background: #0A0A0A;
  overflow: hidden;
}

/* Camada 0 — WebGL aurora */
#heroCanvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Camada 1 — FOTO (base desaturada, foca pessoa à direita) */
.hero-bg-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 68% center;   /* foco no lado direito */
  filter: saturate(0.15) contrast(1.12) brightness(0.85);
  opacity: 0.90;
  pointer-events: none;
  z-index: 1;
  /* Ken Burns lento na foto */
  animation: photo-ken-burns 30s ease-in-out infinite alternate;
}
@keyframes photo-ken-burns {
  from { transform: scale(1.00) translate(0,    0);    }
  to   { transform: scale(1.05) translate(-0.8%, 0.5%); }
}

/* Camada 2 — VÍDEO (screen blend = "queima" luz sobre a foto) */
.hero-bg-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.35;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 2;
  animation: video-drift 40s ease-in-out infinite alternate;
}
@keyframes video-drift {
  from { transform: scale(1.00) translate(0,    0);  }
  to   { transform: scale(1.06) translate(-1.5%, 1%); }
}

/* Camada 3 — Node canvas */
#nodeCanvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 3;
  opacity: 0.50;
}

/* Camada 4 — Grid overlay */
.hero-grid-overlay {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background-image:
    linear-gradient(to right,  rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 44px 44px;
}

/* Camada 5 — Máscara esquerda (preserva legibilidade do copy) */
.hero-bg-mask {
  position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background: linear-gradient(
    to right,
    rgba(10,10,10,0.92) 0%,
    rgba(10,10,10,0.75) 25%,
    rgba(10,10,10,0.35) 52%,
    transparent        70%
  );
}

/* Camada 6 — Vinheta perimetral (foca o centro) */
#hero::after {
  content: '';
  position: absolute; inset: 0;
  z-index: 6; pointer-events: none;
  background:
    radial-gradient(ellipse 90% 90% at 60% 50%, transparent 50%, rgba(10,10,10,0.60) 100%);
}
.hero-inner {
  position: relative;
  z-index: 7;
  max-width: var(--max-w-wide);
  margin-inline: auto;
  padding-inline: var(--container-px);
  /*
    Padding vertical adapta-se ao viewport height:
    - clamp(min, preferred, max)
    - preferred: 10vh garante espaço proporcional em qualquer tela
    - min: pelo menos espaço para a nav fixa
    - max: nunca passa de 120px/80px (evita desperdício em telas altas)
  */
  padding-top: clamp(88px, 10vh, 120px);
  padding-bottom: clamp(56px, 6vh, 80px);
  display: flex;
  align-items: center;
  width: 100%;
  /* Garante que o inner nunca ultrapasse o viewport */
  box-sizing: border-box;
}

/* Copy ocupa metade esquerda — direita fica para o composite foto+vídeo */
.hero-copy {
  max-width: min(580px, 55vw);
  width: 100%;
}

/* Text reveal animation */
.hero-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.hero-badge {
  display: block;
  margin-bottom: var(--sp-6);
}

.hero-h1 {
  font-family: var(--font-display);
  /*
    min(5.5vw, 5.5vh) → constrange por AMBOS width e height.
    Em telas largas mas curtas (laptop wide), vh limita o tamanho.
    Em telas altas (4K vertical), vw limita.
    clamp garante floor de 1.9rem e cap de 4.2rem.
  */
  font-size: clamp(1.9rem, min(5.5vw, 5.5vh), 4.2rem);
  font-weight: var(--fw-extrabold);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  margin-bottom: clamp(16px, 2vh, 24px);
}
.hero-h1 .accent { color: var(--accent); }
.hero-h1 .text-wipe {
  color: transparent;
  -webkit-text-fill-color: transparent;
  display: inline;
}

.hero-sub {
  font-size: clamp(0.9rem, 1.5vw, var(--text-lg));
  line-height: var(--lh-relaxed);
  color: rgba(255,255,255,0.68);
  margin-bottom: clamp(20px, 3vh, 32px);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: clamp(24px, 3.5vh, 40px);
}

.hero-metrics {
  display: flex;
  gap: var(--sp-8);
  padding-top: clamp(16px, 2.5vh, 32px);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.hero-metric-val {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--fw-extrabold);
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}
.hero-metric-lbl {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.45);
  line-height: 1.3;
}

/* ── HUD Badge — flutua sobre o composite (canto direito-inferior) ── */
.hero-hud-badge {
  position: absolute;
  bottom: clamp(72px, 8vh, 100px);
  right: clamp(24px, 8vw, 140px);
  z-index: 8;
  background: rgba(10,10,10,0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,107,0,0.28);
  border-radius: var(--radius-xl);
  padding: var(--sp-4) var(--sp-5);
  display: flex; align-items: center; gap: var(--sp-3);
  white-space: nowrap;
  box-shadow: 0 0 24px rgba(255,107,0,0.15);
  animation: hud-float 3.5s ease-in-out infinite;
}
@keyframes hud-float {
  0%, 100% { transform: translateY(0);    }
  50%       { transform: translateY(-6px); }
}
.hero-hud-badge .hero-float-badge-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius);
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(255,107,0,0.5);
}
.hero-hud-badge .hero-float-badge-text strong {
  display: block;
  font-size: var(--text-sm);
  color: #fff;
  font-weight: var(--fw-semibold);
}
.hero-hud-badge .hero-float-badge-text span {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.55);
}
/* Floating badge on photo */
.hero-float-badge {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-xl);
  padding: var(--sp-4) var(--sp-5);
  display: flex; align-items: center; gap: var(--sp-3);
  white-space: nowrap;
}
.hero-float-badge-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius);
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.hero-float-badge-text strong {
  display: block;
  font-size: var(--text-sm);
  color: #fff;
  font-weight: var(--fw-semibold);
}
.hero-float-badge-text span {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.55);
}
/* Scan corners — nos 4 cantos do hero inteiro (scanning the scene) */
.scan-corner {
  position: absolute;
  width: 28px; height: 28px;
  pointer-events: none;
  z-index: 8;
  animation: scan-pulse 3s ease-in-out infinite;
}
.scan-corner:nth-child(1) { animation-delay: 0s;   }
.scan-corner:nth-child(2) { animation-delay: 0.75s; }
.scan-corner:nth-child(3) { animation-delay: 1.5s;  }
.scan-corner:nth-child(4) { animation-delay: 2.25s; }
@keyframes scan-pulse {
  0%, 100% { opacity: 0.9;  filter: drop-shadow(0 0 5px rgba(255,107,0,0.9)); }
  50%       { opacity: 0.35; filter: drop-shadow(0 0 2px rgba(255,107,0,0.3)); }
}
.scan-corner::before, .scan-corner::after {
  content: '';
  position: absolute;
  background: var(--accent);
}
/* Cantos do hero (não do card) */
.scan-corner.tl { top: 20px;    left: 20px;  }
.scan-corner.tr { top: 20px;    right: 20px; }
.scan-corner.bl { bottom: 20px; left: 20px;  }
.scan-corner.br { bottom: 20px; right: 20px; }
.scan-corner.tl::before, .scan-corner.tr::before,
.scan-corner.bl::before, .scan-corner.br::before { width: 100%; height: 2px; top: 0; left: 0; }
.scan-corner.tl::after  { width: 2px; height: 100%; top: 0; left: 0; }
.scan-corner.tr::after  { width: 2px; height: 100%; top: 0; right: 0; left: auto; }
.scan-corner.bl::after  { width: 2px; height: 100%; bottom: 0; top: auto; left: 0; }
.scan-corner.br::after  { width: 2px; height: 100%; bottom: 0; top: auto; right: 0; left: auto; }

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%; transform: translateX(-50%);
  z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.28);
  animation: float-hint 2.4s ease-in-out infinite;
}
.hero-scroll-hint svg { animation: bounce-arrow 2.4s ease-in-out infinite; }
@keyframes float-hint  { 0%,100%{opacity:0.28;} 50%{opacity:0.55;} }
@keyframes bounce-arrow{ 0%,100%{transform:translateY(0);} 50%{transform:translateY(5px);} }

/* Scroll hint acima de tudo */
.hero-scroll-hint { z-index: 8; }

/* ── Very short viewports (laptops, 768-900px height) ─────── */
@media (max-height: 820px) {
  .hero-inner { padding-top: 76px; padding-bottom: 44px; }
  .hero-h1    { font-size: clamp(1.7rem, min(4.5vw, 5vh), 3rem); }
  .hero-sub   { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .hero-metrics { gap: var(--sp-5); }
  .hero-metrics .hero-metric-val { font-size: var(--text-xl); }
  .hero-hud-badge { bottom: clamp(52px, 6vh, 72px); }
}

/* ── Large high-res displays (≥ 1800px wide) ─────────────── */
@media (min-width: 1800px) {
  .hero-inner { max-width: 1600px; }
  .hero-copy  { max-width: 680px; }
}

@media (max-width: 1024px) {
  .hero-inner  { padding-top: clamp(76px, 10vh, 100px); padding-bottom: clamp(48px, 6vh, 60px); }
  .hero-copy   { max-width: 100%; }
  .hero-hud-badge { right: 20px; bottom: clamp(40px, 5vh, 60px); }
  .hero-bg-photo { object-position: 55% center; }
  .hero-bg-mask {
    background: linear-gradient(
      to right,
      rgba(10,10,10,0.96) 0%,
      rgba(10,10,10,0.82) 40%,
      rgba(10,10,10,0.55) 70%,
      rgba(10,10,10,0.35) 100%
    );
  }
}
@media (max-width: 640px) {
  .hero-h1    { font-size: clamp(1.7rem, 7vw, 2.2rem); }
  .hero-metrics { gap: var(--sp-5); flex-wrap: wrap; }
  .hero-metrics .hero-metric-val { font-size: var(--text-xl); }
  .hero-hud-badge { display: none; }
}

/* ── Section divider (legacy, now replaced by rule-glow) ──── */
.s-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,107,0,0.35), transparent);
}
/* rule-glow used as between-section divider */
main > hr.rule-glow {
  margin-block: 0;
}

/* ── Problema cards ──────────────────────────────────────── */
.problema-card {
  position: relative;
  padding: var(--sp-6);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: all var(--t-base) var(--ease);
  overflow: hidden;
}
.problema-card::before {
  content: '';
  position: absolute;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,0,0.10) 0%, transparent 70%);
  transform: translate(-50%,-50%);
  left: var(--mouse-x, 50%);
  top: var(--mouse-y, 50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--t-base);
}
.problema-card:hover::before { opacity: 1; }
.problema-card:hover {
  border-color: rgba(255,107,0,0.25);
  box-shadow: 0 8px 32px rgba(255,107,0,0.08);
  transform: translateY(-2px);
}
.problema-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-3);
}
.problema-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  background: rgba(255,107,0,0.08);
  border: 1px solid rgba(255,107,0,0.15);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background var(--t-base);
}
.problema-card:hover .problema-icon {
  background: rgba(255,107,0,0.14);
  border-color: rgba(255,107,0,0.3);
}
.problema-num {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--fw-extrabold);
  color: var(--accent);
  opacity: 0.15;
  line-height: 1;
  letter-spacing: -0.03em;
}

/* ── Pilares da Originei ─────────────────────────────────── */
.pilar-card {
  display: flex; gap: var(--sp-5); align-items: flex-start;
  padding: var(--sp-6);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: all var(--t-base) var(--ease);
  position: relative;
  overflow: hidden;
}
.pilar-card:hover {
  border-color: rgba(255,107,0,0.22);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.pilar-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: var(--accent-light);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

/* ── Portfólio grid ──────────────────────────────────────── */
.sol-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}
.sol-card {
  padding: var(--sp-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: all var(--t-base) var(--ease);
  cursor: pointer;
  text-decoration: none;
  display: block;
  position: relative;
  overflow: hidden;
}
.sol-card:hover {
  border-color: var(--accent);
  background: var(--accent-light);
  transform: translateY(-2px);
}
.sol-card.featured {
  background: var(--dark);
  border-color: var(--accent);
  color: #fff;
}
.sol-card.featured .sol-name { color: #fff; }
.sol-card.featured .sol-desc { color: rgba(255,255,255,0.55); }
.sol-card.featured:hover { background: #1a0a00; }
/* Sol card icon */
.sol-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  background: var(--accent-light);
  border: 1px solid rgba(255,107,0,0.15);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--sp-3);
  transition: background var(--t-base);
}
.sol-card:hover .sol-icon { background: rgba(255,107,0,0.12); }
.sol-card.featured .sol-icon { background: rgba(255,107,0,0.15); }

/* Sol card arrow (bottom-right) */
.sol-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255,107,0,0.2);
  color: var(--accent);
  margin-top: var(--sp-4);
  float: right;
  transition: background var(--t-base), transform var(--t-base);
}
.sol-card:hover .sol-arrow {
  background: var(--accent);
  color: #fff;
  transform: translateX(2px);
  border-color: var(--accent);
}
.sol-card.featured .sol-arrow { border-color: rgba(255,107,0,0.4); }

.sol-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-bottom: var(--sp-3);
}
.sol-card.featured .sol-badge {
  background: rgba(255,107,0,0.2);
  color: var(--accent);
}
.sol-name {
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  color: var(--heading);
  margin-bottom: var(--sp-2);
}
.sol-desc {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: var(--lh-relaxed);
}

@media (max-width: 1024px) { .sol-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px)  { .sol-grid { grid-template-columns: 1fr; } }

/* ── Duplicata section ───────────────────────────────────── */
.dup-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
  margin-bottom: var(--sp-10);
}
.dup-card {
  padding: var(--sp-8);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  position: relative;
  overflow: hidden;
  transition: border-color var(--t-base);
}
.dup-card:hover { border-color: rgba(255,107,0,0.35); }
.dup-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,0,0.10) 0%, transparent 70%);
  pointer-events: none;
}
.dup-card-badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  color: var(--accent);
  background: rgba(255,107,0,0.12);
  border: 1px solid rgba(255,107,0,0.22);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: var(--sp-5);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}
.dup-card h3 { color: #fff; margin-bottom: var(--sp-3); }
.dup-card p  { color: rgba(255,255,255,0.65); font-size: var(--text-sm); line-height: var(--lh-relaxed); margin-bottom: var(--sp-4); }
.dup-card-valor {
  display: flex; align-items: flex-start; gap: var(--sp-2);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.50);
  font-style: italic;
  margin-bottom: var(--sp-6);
  padding-top: var(--sp-4);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.dup-card-valor i { color: var(--accent); margin-top: 2px; flex-shrink: 0; }

.dup-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  margin-bottom: var(--sp-8);
}
.dup-benefit {
  display: flex; gap: var(--sp-3);
  padding: var(--sp-4);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}
.dup-benefit-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: var(--radius);
  background: rgba(255,107,0,0.12);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.dup-benefit h5 { color: #fff; font-size: var(--text-sm); margin-bottom: 4px; }
.dup-benefit p  { color: rgba(255,255,255,0.50); font-size: var(--text-xs); line-height: var(--lh-relaxed); }

@media (max-width: 768px) {
  .dup-cards    { grid-template-columns: 1fr; }
  .dup-benefits { grid-template-columns: 1fr; }
}

/* ── Tecnologia pillars ──────────────────────────────────── */
.tech-card {
  padding: var(--sp-5);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.04);
  transition: all var(--t-base) var(--ease);
  position: relative;
}
.tech-card h4 { color: rgba(255,255,255,0.90); }
.tech-card p  { color: rgba(255,255,255,0.50); }
.tech-card:hover {
  border-color: rgba(255,107,0,0.35);
  background: rgba(255,107,0,0.06);
  transform: translateY(-2px);
}
.tech-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: rgba(255,107,0,0.12);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--sp-4);
  font-size: 20px;
  border: 1px solid rgba(255,107,0,0.2);
}

/* ── Para quem ───────────────────────────────────────────── */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
}
@media (max-width: 1024px) { .audience-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .audience-grid { grid-template-columns: 1fr; } }

/* ── Institucional split ─────────────────────────────────── */
.inst-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
}
.inst-photo {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  aspect-ratio: 4/5;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.inst-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.inst-photo-badge {
  position: absolute; bottom: 24px; left: 24px;
  background: rgba(255,255,255,0.95);
  border-radius: var(--radius-md);
  padding: var(--sp-3) var(--sp-4);
  box-shadow: var(--shadow);
}
.inst-photo-badge .val { font-size: var(--text-2xl); font-weight: var(--fw-extrabold); color: var(--accent); line-height: 1; }
.inst-photo-badge .lbl { font-size: var(--text-xs); color: var(--muted); }
.inst-badge-icon {
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--sp-2);
}
@media (max-width: 768px) {
  .inst-grid { grid-template-columns: 1fr; }
  .inst-photo { display: none; }
}

/* ════════════════════════════════════════════════════════════
   §08 — PARA QUEM — Instagram Slides
════════════════════════════════════════════════════════════ */
@keyframes pq-anim-in {
  from { opacity: 0; transform: translateY(22px); filter: blur(6px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

.section-pq {
  background: #0A0A0A;
  padding-block: var(--section-py) 0;
  overflow: hidden;
  position: relative;
}

/* Section header */
.pq-header {
  max-width: var(--max-w-wide);
  margin-inline: auto;
  padding-inline: var(--container-px);
  margin-bottom: var(--sp-8);
  text-align: center;
}
.pq-header h2 { color: #fff; }
.pq-header p  { color: rgba(255,255,255,0.55); max-width: 480px; margin-inline: auto; }

/* Nav bar: dots + arrows */
.pq-nav {
  max-width: var(--max-w-wide);
  margin-inline: auto;
  padding-inline: var(--container-px);
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--sp-6);
}
.pq-dots { display: flex; align-items: center; gap: 8px; }
.pq-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.18);
  border: none; cursor: pointer;
  transition: background 0.25s, transform 0.25s, width 0.25s;
  position: relative; overflow: hidden;
}
.pq-dot.active {
  background: rgba(255,107,0,0.30);
  width: 28px; border-radius: 4px;
  transform: none;
}
/* Progress fill sweeps across the active dot over 3s */
.pq-dot.active::after {
  content: '';
  position: absolute; inset: 0; left: 0;
  background: var(--accent);
  border-radius: 4px;
  animation: pq-dot-fill 3s linear forwards;
}
@keyframes pq-dot-fill {
  from { width: 0%; }
  to   { width: 100%; }
}
.pq-dot:hover:not(.active) { background: rgba(255,255,255,0.40); transform: scale(1.2); }
.pq-arrows { display: flex; gap: 8px; }
.pq-arrow {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.55);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.pq-arrow:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.pq-arrow:disabled { opacity: 0.25; pointer-events: none; }

/* Slider wrapper — edge fade */
.pq-slider-wrap {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
  padding-bottom: var(--section-py);
}

/* The scrollable track */
.pq-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-inline: max(calc((100vw - var(--max-w-wide)) / 2), var(--container-px));
  scroll-behavior: smooth;
}
.pq-slider::-webkit-scrollbar { display: none; }

/* Individual slide */
.pq-slide {
  flex-shrink: 0;
  width: clamp(300px, 38vw, 420px);
  aspect-ratio: 3/4;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  scroll-snap-align: start;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 24px 60px rgba(0,0,0,0.50);
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.pq-slide:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 80px rgba(0,0,0,0.65), 0 0 0 1px rgba(255,107,0,0.20);
}

/* Background image */
.pq-slide-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.5s var(--ease);
}
.pq-slide:hover .pq-slide-bg { transform: scale(1.04); }

/* Dark gradient overlay */
.pq-slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,10,0.15) 0%,
    rgba(10,10,10,0.25) 30%,
    rgba(10,10,10,0.65) 60%,
    rgba(10,10,10,0.93) 100%
  );
  z-index: 1;
}

/* Cover slide has extra orange tint */
.pq-slide-cover .pq-slide-overlay {
  background: linear-gradient(
    155deg,
    rgba(255,107,0,0.15) 0%,
    rgba(10,10,10,0.20) 35%,
    rgba(10,10,10,0.75) 65%,
    rgba(10,10,10,0.96) 100%
  );
}

/* Slide content */
.pq-slide-inner {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 24px;
}

/* Slide header row */
.pq-slide-hdr {
  display: flex; align-items: center; justify-content: space-between;
}
.pq-slide-num {
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem; color: rgba(255,255,255,0.40);
  letter-spacing: 0.12em; text-transform: uppercase;
}
.pq-slide-tag {
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
  background: rgba(255,107,0,0.12);
  border: 1px solid rgba(255,107,0,0.28);
  border-radius: 999px; padding: 3px 10px;
}
.pq-slide-icon {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,107,0,0.14);
  border: 1px solid rgba(255,107,0,0.30);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}

/* Slide body */
.pq-slide-body { display: flex; flex-direction: column; gap: 12px; }
.pq-slide-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 700; line-height: 1.05;
  letter-spacing: -0.03em; color: #fff;
}
.pq-slide-cover .pq-slide-title { font-size: clamp(2rem, 4vw, 2.8rem); }
.pq-slide-title span { color: var(--accent); }
.pq-slide-desc {
  font-size: 0.75rem; line-height: 1.65;
  color: rgba(255,255,255,0.58);
}
.pq-slide-callout {
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem; line-height: 1.6;
  color: rgba(255,255,255,0.45);
  border-left: 2px solid var(--accent);
  padding-left: 12px;
  margin-top: 4px;
}

/* Slide footer */
.pq-slide-ft {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.pq-slide-ft-label {
  font-size: 0.75rem; font-weight: 500;
  color: rgba(255,255,255,0.40);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.pq-slide-ft-arrow {
  width: 32px; height: 32px; border-radius: 50%;
  background: #fff; color: #000;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
  border: none; cursor: pointer;
}
.pq-slide-ft-arrow:hover { background: var(--accent); color: #fff; transform: scale(1.08); }

/* Animations — triggered by .pq-anim-active on slide */
.pq-anim { opacity: 0; animation: pq-anim-in 0.7s ease-out both; animation-play-state: paused; }
.pq-anim-d1 { animation-delay: 0.15s; }
.pq-anim-d2 { animation-delay: 0.30s; }
.pq-anim-d3 { animation-delay: 0.45s; }
.pq-slide.is-visible .pq-anim { animation-play-state: running; }

/* Responsive */
@media (max-width: 768px) {
  .pq-slide { width: 85vw; }
  .pq-header { text-align: left; }
  .pq-header p { margin-inline: 0; }
  .pq-arrows { display: none; }
}
