@charset "UTF-8";
/* ============================================================
 * Plataforma Doc -- Cinematic Scroll Intro v1.0.0
 * Namespace: .ci / --ci-*
 * Spec: docs/superpowers/specs/2026-04-15-impacto-scroll-design.md
 * ASCII-only CSS. Entities live in PHP/HTML.
 * ============================================================ */

/* -- Variables ------------------------------------------------ */
.ci {
  --ci-void:    #040609;
  --ci-dark:    #0D1117;
  --ci-teal:    #00BFA5;
  --ci-teal-18: rgba(0,191,165,.18);
  --ci-teal-08: rgba(0,191,165,.08);
  --ci-w90:     rgba(255,255,255,.90);
  --ci-w65:     rgba(255,255,255,.65);
  --ci-w40:     rgba(255,255,255,.40);
  --ci-w25:     rgba(255,255,255,.25);
  --ci-ink:     #0D1117;
  --ci-light:   #F8F9FC;
  --ci-fd:      'Bricolage Grotesque', system-ui, sans-serif;
  --ci-fb:      'Figtree', system-ui, sans-serif;
}

/* -- Base ----------------------------------------------------- */
.ci {
  position: relative;
  width: 100%;
  background: var(--ci-void);
  -webkit-font-smoothing: antialiased;
}

.ci * {
  box-sizing: border-box;
}

/* -- Grain (same pattern as .hu-grain) ----------------------- */
.ci-grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: .04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
}

/* -- Wrap (pinned container) ---------------------------------- */
.ci-wrap {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--ci-void) 0%, #0a0e16 100%);
}

/* -- Glow background ----------------------------------------- */
.ci-glow {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse at 50% 55%,
    rgba(0,191,165,.07) 0%,
    rgba(0,191,165,.02) 35%,
    transparent 65%);
}

/* -- Brand apertura ------------------------------------------ */
.ci-brand {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  opacity: 0;
  pointer-events: none;
}

.ci-brand-name {
  font-family: var(--ci-fd);
  font-size: clamp(20px, 3.2vw, 46px);
  font-weight: 800;
  letter-spacing: .18em;
  color: #fff;
  text-align: center;
}

.ci-brand-sep {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--ci-teal);
  opacity: .4;
}

.ci-brand-tagline {
  font-family: var(--ci-fb);
  font-size: clamp(12px, 1.3vw, 17px);
  font-style: italic;
  color: var(--ci-w65);
  text-align: center;
  max-width: 420px;
  padding: 0 24px;
}

/* -- Skip intro ---------------------------------------------- */
.ci-skip {
  position: fixed;
  top: 24px;
  right: clamp(20px, 4vw, 48px);
  z-index: 200;
  background: rgba(0,191,165,.08);
  border: 1px solid rgba(0,191,165,.28);
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--ci-fb);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ci-w40);
  padding: 7px 16px;
  transition: color .22s, background .22s, border-color .22s,
              box-shadow .22s;
  display: none;
  line-height: 1;
}

.ci-skip:hover,
.ci-skip:focus-visible {
  color: var(--ci-teal);
  background: rgba(0,191,165,.14);
  border-color: rgba(0,191,165,.55);
  box-shadow: 0 0 12px rgba(0,191,165,.20);
  outline: none;
}

.ci-skip.is-visible {
  display: block;
}

/* -- Chapters ------------------------------------------------- */
.ci-chapters {
  position: absolute;
  inset: 0;
  z-index: 5;
}

.ci-ch {
  position: absolute;
  inset: 0;
  opacity: 0;
}

/* Extra inset so scale(1.4) does not show edges */
.ci-ch-img {
  position: absolute;
  inset: -12%;
  background-size: cover;
  background-position: center;
  will-change: transform;
  transform: scale(1.4);
  filter: brightness(.62) saturate(.7);
}

.ci-ch-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(4,6,9,.85) 0%,
    rgba(4,6,9,.28) 50%,
    rgba(4,6,9,.55) 100%
  );
}

.ci-ch-phrase {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  font-family: var(--ci-fd);
  font-size: clamp(22px, 4vw, 52px);
  font-weight: 700;
  color: #fff;
  text-align: center;
  max-width: 700px;
  width: calc(100% - 64px);
  line-height: 1.15;
  letter-spacing: -.02em;
  opacity: 0;
  will-change: opacity;
}

.ci-ch-phrase--pivot {
  font-size: clamp(26px, 4.5vw, 58px);
}

/* -- Focus lupa ---------------------------------------------- */
.ci-focus {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
}

.ci-focus-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(0,191,165,.30) 0%,
    rgba(0,191,165,.12) 35%,
    rgba(0,191,165,.04) 60%,
    transparent 75%);
  transform: scale(0);
  pointer-events: none;
}

.ci-lupa {
  position: relative;
  z-index: 2;
  width: 90px;
  height: 90px;
  transform-origin: 45.5% 45.5%;
  /* No will-change here: promoting the SVG to a compositing layer causes the
     browser to rasterize it at 90 px and scale up a bitmap → pixelation.
     Without will-change the browser re-paints the vector SVG at each step.
     No filter either (drop-shadow also forces rasterization). */
}

/* Pulse on rings (CSS animation, independent of scroll) */
@keyframes ci-pulse {
  0%, 100% { opacity: .35; }
  50%       { opacity: .95; }
}

.ci-ring--mid   { animation: ci-pulse 2.2s ease-in-out infinite; animation-delay: .3s; }
.ci-ring--inner { animation: ci-pulse 2.2s ease-in-out infinite; animation-delay: .9s; }

/* -- Video ---------------------------------------------------- */
.ci-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 8;
  -webkit-clip-path: circle(0% at 50% 50%);
          clip-path: circle(0% at 50% 50%);
  will-change: clip-path;
}

.ci-video-overlay {
  position: absolute;
  inset: 0;
  background: var(--ci-void);
  z-index: 12;
  opacity: 0;
  pointer-events: none;
}

/* -- Outro ---------------------------------------------------- */
.ci-outro {
  position: absolute;
  inset: 0;
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(145deg, var(--ci-void) 0%, #0a0e16 100%);
}

.ci-outro-phrase {
  font-family: var(--ci-fd);
  font-size: clamp(20px, 3vw, 44px);
  font-weight: 600;
  font-style: italic;
  color: #fff;
  text-align: center;
  max-width: 640px;
  padding: 0 clamp(20px, 5vw, 80px);
  line-height: 1.2;
  letter-spacing: -.015em;
}

.ci-scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
  cursor: pointer;
}

.ci-scroll-line {
  display: block;
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, rgba(255,255,255,.55), transparent);
}

.ci-scroll-chevron {
  color: var(--ci-w40);
  animation: ci-bounce 1.6s ease-in-out infinite;
}

@keyframes ci-bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(7px); }
}

/* -- White section ------------------------------------------- */
.ci-white {
  background: var(--ci-light);
  padding: clamp(100px, 14vw, 180px) clamp(20px, 5vw, 80px);
  min-height: 80vh;
  display: flex;
  align-items: flex-start;
}

.ci-white-inner {
  max-width: 680px;
}

.ci-white-label {
  display: block;
  font-family: var(--ci-fb);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(13,17,23,.40);
  margin-bottom: 24px;
}

.ci-white-hl {
  font-family: var(--ci-fd);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  color: var(--ci-ink);
  letter-spacing: -.025em;
  line-height: 1.05;
  margin: 0 0 18px;
}

.ci-white-sub {
  font-family: var(--ci-fb);
  font-size: 16px;
  color: rgba(13,17,23,.5);
  line-height: 1.6;
  margin: 0 0 32px;
}

.ci-white-line {
  display: block;
  width: 48px;
  height: 3px;
  background: var(--ci-teal);
  border-radius: 2px;
}

/* -- Mobile --------------------------------------------------- */
@media (max-width: 768px) {
  .ci-brand-name { letter-spacing: .12em; }
  .ci-ch-phrase  { width: calc(100% - 40px); }
  .ci-lupa       { width: 62px; height: 62px; }
  .ci-outro-phrase { font-size: clamp(18px, 5vw, 32px); }
}
