/* ════════════════════════════════════════════
   OPEN DATA — Scrollytelling
   ════════════════════════════════════════════ */
:root {
  --bg:       #ffffff;
  --bg-soft:  #f5f5f7;
  --bg-dk:    #1d1d1f;
  --text:     #1d1d1f;
  --soft:     #6e6e73;
  --accent:   #2563eb;
  --border:   #d2d2d7;
  --nav-h:    52px;
  --ease:     cubic-bezier(.25,.1,.25,1);
  --ease-out: cubic-bezier(0,0,.2,1);
  --font:     -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --mono:     'SF Mono','Menlo','Monaco','Consolas','Courier New',monospace;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }

.container { width: 100%; max-width: 1080px; margin-inline: auto; padding-inline: 2rem; }
.lc        { width: 100%; max-width: 1080px; margin-inline: auto; padding-inline: 2rem; }

/* ── Typography ── */
h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.06; }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); font-weight: 700; letter-spacing: -.025em; line-height: 1.1; margin-bottom: 1rem; }
h3 { font-size: 1rem; font-weight: 600; letter-spacing: -.01em; margin-bottom: .4rem; }
p  { line-height: 1.65; }

.eyebrow {
  display: block;
  font-size: .72rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: .75rem;
}

/* ── Buttons ── */
.btn-pill {
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--accent); color: #fff;
  font-size: .9rem; font-weight: 500;
  padding: .75rem 1.5rem; border-radius: 980px; border: none;
  transition: background .2s, transform .2s var(--ease);
}
.btn-pill:hover { background: #1d4ed8; transform: scale(1.02); }

/* ════════════════════ HERO ════════════════════ */
#hero {
  min-height: 100svh;
  background: #fff;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
}
.hero-inner { padding-top: 2rem; padding-bottom: 4rem; }
#hero h1 { margin-bottom: 1.25rem; }
.hero-tail { white-space: nowrap; }
.hero-sub {
  font-size: 1.05rem; color: var(--soft);
  max-width: 480px; margin-bottom: 2.5rem; line-height: 1.65;
}
.hero-scroll {
  display: flex; flex-direction: column; align-items: flex-start; gap: .4rem;
}
.hero-scroll-hint {
  font-size: .85rem; color: var(--soft); letter-spacing: .01em;
}
.hero-scroll-arrow {
  font-size: 1.2rem; color: var(--accent);
  animation: bounce 1.6s ease-in-out infinite;
}
.word-cycle {
  color: var(--accent);
  display: inline-block;
  transition: opacity .35s, transform .35s;
}
.word-cycle-dw {
  color: #a6e3a1;
  display: inline-block;
  transition: opacity .35s, transform .35s;
}
.word-exit  { opacity: 0; transform: translateY(-8px); }
.word-enter { animation: wordIn .4s var(--ease-out) forwards; }
@keyframes wordIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ════════════════════ NAVBAR ════════════════════ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s, box-shadow .3s;
}
#navbar.scrolled {
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: .5px solid rgba(0,0,0,.1);
}
#navbar.dark-nav {
  background: rgba(15,23,42,.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: .5px solid rgba(255,255,255,.08);
}
.nav-inner {
  max-width: 1080px; margin-inline: auto; padding-inline: 2rem;
  height: var(--nav-h); display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { font-size: .9rem; font-weight: 600; letter-spacing: -.01em; transition: color .3s; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-size: .8rem; color: var(--soft); transition: color .2s; }
.nav-links a:hover { color: var(--text); }
#navbar.dark-nav .nav-logo { color: #f5f5f7; }
#navbar.dark-nav .nav-links a { color: rgba(255,255,255,.55); }
#navbar.dark-nav .nav-links a:hover { color: #fff; }

.hamburger { display: none; flex-direction: column; gap: 6px; background: none; border: none; padding: .25rem; }
.hamburger span { display: block; width: 18px; height: 1.5px; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { transform: translateY(0) rotate(-45deg); }
#navbar.dark-nav .hamburger span { background: #f5f5f7; }

.nav-drawer {
  display: none; flex-direction: column;
  background: rgba(255,255,255,.97); backdrop-filter: blur(20px);
  border-top: .5px solid var(--border);
  padding: 0 2rem; max-height: 0; overflow: hidden;
  transition: max-height .4s var(--ease-out);
}
.nav-drawer.open { max-height: 300px; }
.nav-drawer a { font-size: 1rem; color: var(--soft); padding: 1rem 0; border-bottom: .5px solid var(--border); transition: color .2s; }
.nav-drawer a:last-child { border-bottom: none; }

/* ════════════════════ DEPTH GAUGE ════════════════════ */
#depth-gauge {
  position: fixed; left: 1.5rem; top: 50%; transform: translateY(-50%);
  z-index: 80; display: flex; flex-direction: column; gap: .1rem;
  opacity: 0; pointer-events: none;
  transition: opacity .4s;
}
#depth-gauge.visible { opacity: 1; pointer-events: auto; }

.dg-item {
  display: flex; align-items: center; gap: .5rem;
  padding: .3rem 0; text-decoration: none;
  transition: opacity .2s;
}
.dg-dot {
  width: 7px; height: 7px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.3);
  background: transparent;
  transition: background .3s, border-color .3s, transform .2s;
  flex-shrink: 0;
}
.dg-lbl {
  font-size: .65rem; font-weight: 500; letter-spacing: .05em;
  text-transform: uppercase; color: rgba(255,255,255,.35);
  transition: color .3s;
  white-space: nowrap;
}
.dg-item.active .dg-dot { background: #fff; border-color: #fff; transform: scale(1.3); }
.dg-item.active .dg-lbl { color: #fff; }
.dg-item:hover .dg-lbl  { color: rgba(255,255,255,.7); }

/* Gauge colors on BI (light) layer */
#depth-gauge.on-light .dg-dot   { border-color: rgba(0,0,0,.2); }
#depth-gauge.on-light .dg-lbl   { color: rgba(0,0,0,.3); }
#depth-gauge.on-light .dg-item.active .dg-dot { background: var(--accent); border-color: var(--accent); }
#depth-gauge.on-light .dg-item.active .dg-lbl { color: var(--accent); }

/* ════════════════════ LAYERS ════════════════════ */
.layer { padding: 6rem 0; }

/* Layer 0 — BI (white) */
#l-bi { background: #fff; position: relative; }

/* Curved KPI → scroll-cue arrow */
.kpi-to-cue-svg {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}
.ktq-path {
  transition: stroke-dashoffset 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}
#kpi-to-cue-svg.animate .ktq-path { stroke-dashoffset: 0; }

/* Layer 1 — SQL */
.layer-dk  { background: #0f172a; }

/* Layer 2 — Python */
.layer-dkr { background: #0d1117; }

/* Layer 3 — Pipeline */
.layer-deep { background: #070d1a; }

/* Layer 4 — Raw */
.layer-abyss { background: #030712; }

/* Layer 5 — Sources */
.layer-void { background: #000; }

/* Layer badge (top-left label) */
.layer-badge {
  display: inline-block;
  font-size: .7rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 4px; padding: .3rem .7rem;
  margin-bottom: 2rem;
}
.layer-dk h2, .layer-dkr h2, .layer-deep h2, .layer-abyss h2, .layer-void h2 { color: #f5f5f7; }
.layer-dk p,  .layer-dkr p,  .layer-deep p,  .layer-abyss p,  .layer-void p  { color: rgba(255,255,255,.45); }

/* ════════════════════ BRIDGES ════════════════════ */
.bridge {
  display: flex; align-items: flex-end; justify-content: center;
  min-height: 300px; padding: 0 2rem 5rem; text-align: center;
}
.bridge-inner { max-width: 520px; }
.bridge-inner p {
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-weight: 700; letter-spacing: -.025em; line-height: 1.2;
  color: #f5f5f7;
}
.br-eye {
  display: block; font-size: .7rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.3);
  margin-bottom: 1rem;
}
.br-0 { background: linear-gradient(to bottom, #ffffff 0%, #0f172a 100%); }
.br-0 .bridge-inner p { color: #f5f5f7; }
.br-1 { background: linear-gradient(to bottom, #0f172a, #0d1117); }
.br-2 { background: linear-gradient(to bottom, #0d1117, #070d1a); }
.br-3 { background: linear-gradient(to bottom, #070d1a, #030712); }
.br-4 { background: linear-gradient(to bottom, #030712, #000000); }

/* ════════════════════ BI LAYER ════════════════════ */
.bi-intro { margin-bottom: 3rem; }
.bi-intro h1 { margin-bottom: .9rem; }
.bi-sub { font-size: 1.05rem; color: var(--soft); max-width: 420px; }

.kpi-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; margin-bottom: 2rem;
}
.kpi-card {
  background: #fff; padding: 1.5rem 1.25rem;
  display: flex; flex-direction: column; gap: .35rem;
  transition: background .2s;
}
.kpi-card:hover { background: #f9fafb; }
.kpi-lbl { font-size: .75rem; font-weight: 500; color: var(--soft); letter-spacing: .02em; }
.kpi-val  { font-size: 1.6rem; font-weight: 700; letter-spacing: -.03em; color: var(--text); }
.kpi-delta { font-size: .75rem; font-weight: 500; }
.kpi-delta.up   { color: #16a34a; }
.kpi-delta.flat { color: var(--soft); }
.hl-blue { color: var(--accent); }

.chart-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: 14px; padding: 1.5rem 1.75rem;
  margin-bottom: 2rem;
}
.chart-hdr { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1rem; }
.chart-ttl { font-size: .85rem; font-weight: 600; color: var(--text); }
.chart-sub { font-size: .75rem; color: var(--soft); }
.bar-chart  { width: 100%; display: block; overflow: visible; }

/* Bar animation */
.bar {
  transform-box: fill-box; transform-origin: bottom;
  transform: scaleY(0);
  transition: transform .8s var(--ease-out);
}
.bar-chart.animate .b1 { transform: scaleY(1); transition-delay: .0s; }
.bar-chart.animate .b2 { transform: scaleY(1); transition-delay: .1s; }
.bar-chart.animate .b3 { transform: scaleY(1); transition-delay: .2s; }
.bar-chart.animate .b4 { transform: scaleY(1); transition-delay: .3s; }
.bar-chart.animate .b5 { transform: scaleY(1); transition-delay: .4s; }
.bar-chart.animate .b6 { transform: scaleY(1); transition-delay: .5s; }

.blbl     { font-size: 9px; fill: #9ca3af; font-family: var(--font); text-anchor: middle; }
.blbl-hl  { fill: var(--accent); font-weight: 700; }
.albl     { font-size: 10px; fill: #9ca3af; font-family: var(--font); text-anchor: middle; }
.albl-hl  { fill: var(--accent); font-weight: 600; }

.scroll-cue { text-align: center; padding: 3rem 0 1rem; }
.scroll-q {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 700; letter-spacing: -.025em; line-height: 1.2;
  color: var(--text); margin-bottom: .5rem;
}
.scroll-hint { font-size: .9rem; color: var(--soft); margin-bottom: .75rem; }
.cue-arrow {
  font-size: 1.4rem; color: var(--accent);
  animation: bounce 1.6s ease-in-out infinite;
  display: block;
}
@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

/* KPI pulse animation */
@keyframes kpiPulse {
  0%, 100% { }
  25% { color: #1d4ed8; text-shadow: 0 0 24px rgba(37,99,235,.5); transform: scale(1.06); }
  60% { color: #2563eb; text-shadow: 0 0 12px rgba(37,99,235,.25); }
}
.kpi-val.kpi-pulse {
  animation: kpiPulse 1.4s var(--ease-out);
  display: inline-block;
  transform-origin: left center;
}

/* ════════════════════ CODE BLOCKS ════════════════════ */
.code-layout { max-width: 820px; }
.code-desc { font-size: .95rem; color: rgba(255,255,255,.45); margin-bottom: 2rem; }
#l-sql .code-desc { color: rgba(255,255,255,.45); }
.mt1 { margin-top: 1.25rem; }

.code-block {
  background: #1e1e2e; border-radius: 10px;
  overflow: hidden; border: 1px solid rgba(255,255,255,.06);
}
.cb-bar {
  background: #181825; padding: .55rem 1rem;
  display: flex; align-items: center; gap: .4rem;
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.rd { background: #ff5f57; }
.dot.yw { background: #febc2e; }
.dot.gn { background: #28c840; }
.cb-file { font-size: .72rem; color: rgba(255,255,255,.35); margin-left: .5rem; font-family: var(--mono); }
.cb-body {
  padding: 1.25rem 1.5rem; overflow-x: auto;
  font-size: .8rem; line-height: 1.8;
  color: #cdd6f4; font-family: var(--mono);
  tab-size: 2;
}
.cb-body code { display: block; white-space: pre; }

/* Syntax colors */
.kw  { color: #89b4fa; }
.fn  { color: #89dceb; }
.str { color: #a6e3a1; }
.cm  { color: #585b70; font-style: italic; }
.num { color: #fab387; }

/* Highlight per layer */
.hl-green  { color: #a6e3a1; font-weight: 600; }
.hl-amber  { color: #f9e2af; font-weight: 600; }
.hl-cyan   { color: #89dceb; font-weight: 600; }
.hl-violet { color: #cba6f7; font-weight: 600; }

/* Output block */
.output-block {
  background: #000; border: 1px solid #222;
  border-radius: 8px; padding: 1rem 1.5rem; margin-top: 1rem;
  font-family: var(--mono);
}
.out-lbl { font-size: .7rem; color: #444; display: block; margin-bottom: .5rem; }
.output-block pre { font-size: .8rem; color: #888; line-height: 1.9; white-space: pre; }

/* ════════════════════ DATA WAREHOUSE LAYOUT ════════════════════ */
.dw-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-top: 2rem;
}
.dw-codes { display: flex; flex-direction: column; }

/* DB Panel */
.db-panel {
  background: #0d1117;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  overflow: hidden;
  font-family: var(--mono);
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
}
.db-hdr {
  background: #161b22;
  padding: .55rem 1rem;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.db-hdr-title { font-size: .72rem; color: rgba(255,255,255,.5); font-weight: 500; }
.db-hdr-db    { font-size: .65rem; color: rgba(255,255,255,.25); }
.db-tree { padding: .75rem .25rem; }
.dbt-row {
  display: flex; align-items: center; gap: .3rem;
  padding: .25rem .75rem;
  border-radius: 4px;
  transition: background .15s;
  cursor: default;
  line-height: 1;
}
.dbt-row:hover { background: rgba(255,255,255,.05); }
.dbt-schema { }
.dbt-sname { font-size: .78rem; color: #79c0ff; font-weight: 500; }
.dbt-arr   { font-size: .65rem; color: rgba(255,255,255,.25); flex-shrink: 0; }
.dbt-table { padding-left: 1rem; }
.dbt-tname { font-size: .76rem; color: #f0f6fc; }
.dbt-rows  { font-size: .62rem; color: rgba(255,255,255,.2); margin-left: .35rem; }
.dbt-branch { font-size: .75rem; color: rgba(255,255,255,.15); flex-shrink: 0; font-family: var(--mono); }
.dbt-col { padding-left: 1.75rem; }
.dbt-pad { width: .5rem; flex-shrink: 0; }
.dbt-cname { font-size: .72rem; color: rgba(255,255,255,.5); }
.dbt-pk {
  font-size: .58rem; font-weight: 600; letter-spacing: .05em;
  background: rgba(255,191,0,.12); color: #ffd700;
  padding: .1rem .35rem; border-radius: 3px; flex-shrink: 0;
}
.dbt-note {
  font-size: .6rem; color: #a6e3a1;
  background: rgba(166,227,161,.1);
  padding: .1rem .35rem; border-radius: 3px; flex-shrink: 0;
}
.dbt-raw-tag {
  font-size: .58rem; color: rgba(255,255,255,.25);
  background: rgba(255,255,255,.06);
  padding: .1rem .35rem; border-radius: 3px; flex-shrink: 0;
}
.dbt-hl .dbt-cname { color: #a6e3a1; }
.dbt-mt { margin-top: .85rem; }
.db-footer {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: .5rem 1rem;
  font-size: .62rem; color: rgba(255,255,255,.2);
}

/* ════════════════════ PIPELINE ════════════════════ */
.pipeline-flow {
  display: flex; align-items: center;
  overflow-x: auto; padding: 2.5rem 0;
  gap: 0;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.1) transparent;
}
.pnode {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px; padding: 1.25rem 1.1rem;
  text-align: center; min-width: 130px; flex-shrink: 0;
  display: flex; flex-direction: column; gap: .3rem;
  transition: background .2s, border-color .2s;
}
.pnode:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); }
.pnode-end { border-color: rgba(137,220,235,.3); }
.pico { font-size: 1.5rem; margin-bottom: .25rem; }
.pico-txt {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem; font-weight: 700; letter-spacing: .04em;
  color: rgba(255,255,255,.5); margin-bottom: .35rem; align-self: center;
  font-family: var(--mono);
}
.pnode strong { font-size: .85rem; color: #f5f5f7; }
.pnode span   { font-size: .72rem; color: rgba(255,255,255,.4); }
.ptag { font-size: .68rem !important; color: rgba(255,255,255,.3) !important; margin-top: .25rem; }
.ptag.hl-cyan { color: #89dceb !important; }
@keyframes powerBiPulse {
  0%, 100% { text-shadow: 0 0 12px rgba(137,220,235,.4); }
  50%       { text-shadow: 0 0 30px rgba(137,220,235,.9), 0 0 55px rgba(137,220,235,.3); }
}
.ptag-final {
  font-size: .9rem; font-weight: 700; letter-spacing: -.01em;
  color: #ffffff;
  text-shadow: 0 0 12px rgba(137,220,235,.4);
  margin-top: .35rem;
  animation: powerBiPulse 2.5s ease-in-out infinite;
}

/* Pipeline node lit state */
.pnode.lit {
  border-color: rgba(137,220,235,.4);
  background: rgba(137,220,235,.05);
  transition: border-color .4s, background .4s;
}

/* Typewriter cursor */
.output-block.typing pre::after {
  content: '▋'; color: #89dceb;
  animation: blink .7s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.parrow {
  flex: 1; min-width: 70px; display: flex;
  flex-direction: column; align-items: center; gap: .4rem;
  flex-shrink: 0;
}
.pline {
  width: 100%; height: 2px;
  background: rgba(255,255,255,.1);
  position: relative; overflow: hidden; border-radius: 2px;
}
.ppulse {
  position: absolute; top: 0; left: -40px;
  width: 40px; height: 100%;
  background: linear-gradient(to right, transparent, #89dceb, transparent);
  animation: pulseFlow 1.8s linear infinite;
}
@keyframes pulseFlow {
  from { left: -40px; }
  to   { left: 100%; }
}
.pstep { font-size: .65rem; color: rgba(255,255,255,.25); text-align: center; line-height: 1.4; white-space: nowrap; }

/* ════════════════════ RAW TABLE ════════════════════ */
.tbl-wrap { overflow-x: auto; border-radius: 10px; border: 1px solid rgba(255,255,255,.08); }
.raw-tbl {
  width: 100%; border-collapse: collapse;
  font-family: var(--mono); font-size: .78rem;
  min-width: 700px;
}
.raw-tbl th {
  background: #0a0a0a; padding: .7rem 1rem;
  color: rgba(255,255,255,.4); font-weight: 500;
  text-align: left; border-bottom: 1px solid rgba(255,255,255,.06);
  white-space: nowrap;
}
.raw-tbl td { padding: .65rem 1rem; border-bottom: 1px solid rgba(255,255,255,.04); color: rgba(255,255,255,.65); }
.r-ok { background: rgba(255,255,255,.02); }
.r-ok:hover { background: rgba(255,255,255,.05); }
.r-ex td { color: rgba(255,255,255,.25); background: rgba(255,80,80,.04); }
.nc { text-align: right; font-variant-numeric: tabular-nums; }
.null-cell { color: rgba(255,80,80,.6) !important; font-style: italic; }
.badge { font-size: .68rem; font-weight: 500; padding: .2rem .55rem; border-radius: 4px; white-space: nowrap; }
.badge.ok { background: rgba(22,163,74,.15); color: #4ade80; }
.badge.ex { background: rgba(239,68,68,.12); color: rgba(255,100,100,.7); }
tfoot td { padding: .8rem 1rem; }
.tfoot-note { font-size: .72rem; color: rgba(255,255,255,.25); font-family: var(--font); }
.tfoot-sum  { text-align: right; font-size: .8rem; font-family: var(--font); color: rgba(255,255,255,.3); }

/* ════════════════════ SOURCES ════════════════════ */
.src-marquee {
  overflow: hidden;
  margin-bottom: 3rem;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.src-track {
  display: flex; align-items: center; gap: 1rem;
  width: max-content;
  animation: marquee 50s linear infinite;
}
.src-track:hover { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.src-chip {
  display: flex; align-items: center; gap: .6rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px; padding: .6rem 1rem;
  white-space: nowrap; flex-shrink: 0;
  transition: background .2s, border-color .2s;
}
.src-chip:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.15); }
.chip-logo { width: 28px; height: 28px; flex-shrink: 0; }
.src-chip span { font-size: .8rem; color: rgba(255,255,255,.65); }

.src-cta { text-align: center; padding: 2rem 0; }
.src-cta p { font-size: 1.05rem; color: rgba(255,255,255,.5); margin-bottom: 1.5rem; line-height: 1.6; }

/* ════════════════════ CONTACT ════════════════════ */
#contacto { background: var(--bg-dk); padding: 6rem 0; }
.section-eyebrow { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #60a5fa; margin-bottom: .75rem; }
.contact-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 5rem; align-items: start; }
.contact-copy h2 { color: #f5f5f7; margin-bottom: 1rem; }
.contact-copy p  { color: rgba(255,255,255,.45); margin-bottom: 2rem; }
.contact-email-link { font-size: .9rem; font-weight: 500; color: #60a5fa; transition: opacity .2s; }
.contact-email-link:hover { opacity: .7; }

.contact-bullets {
  list-style: none; margin-bottom: 2rem;
  display: flex; flex-direction: column; gap: .6rem;
}
.contact-bullets li {
  font-size: .9rem; color: rgba(255,255,255,.5);
  padding-left: 1.25rem; position: relative;
}
.contact-bullets li::before {
  content: '✓'; position: absolute; left: 0;
  color: #4ade80; font-weight: 600;
}

.contact-form { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.form-group:last-of-type { margin-bottom: 1.5rem; }
label { font-size: .75rem; font-weight: 500; color: rgba(255,255,255,.4); letter-spacing: .02em; }
input, textarea {
  font-family: var(--font); font-size: .9rem;
  color: #f5f5f7; background: rgba(255,255,255,.06);
  border: .5px solid rgba(255,255,255,.1);
  border-radius: 8px; padding: .7rem 1rem;
  outline: none; width: 100%; resize: vertical;
  transition: border-color .2s, box-shadow .2s;
}
input::placeholder, textarea::placeholder { color: rgba(255,255,255,.2); }
input:focus, textarea:focus { border-color: #60a5fa; box-shadow: 0 0 0 3px rgba(96,165,250,.15); }
textarea { min-height: 110px; }

/* ════════════════════ FOOTER ════════════════════ */
footer { background: #000; padding: 3rem 0 2rem; }
.footer-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 1.5rem; border-bottom: .5px solid rgba(255,255,255,.08); margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.footer-logo { font-size: .9rem; font-weight: 600; color: #f5f5f7; }
.footer-links { display: flex; gap: 1.75rem; }
.footer-links a { font-size: .8rem; color: rgba(255,255,255,.3); transition: color .2s; }
.footer-links a:hover { color: rgba(255,255,255,.7); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.footer-tagline { font-size: .8rem; color: rgba(255,255,255,.2); }
.footer-bottom p { font-size: .75rem; color: rgba(255,255,255,.2); }

/* ════════════════════ ANIMATIONS ════════════════════ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ════════════════════ RESPONSIVE ════════════════════ */
@media (max-width: 1200px) {
  #depth-gauge { display: none; }
}
@media (max-width: 900px) {
  .kpi-grid { grid-template-columns: repeat(2,1fr); }
  .src-grid  { grid-template-columns: repeat(2,1fr); }
  .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
  .dw-grid  { grid-template-columns: 1fr; }
  .db-panel { position: static; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-drawer { display: flex; }
  .kpi-grid  { grid-template-columns: 1fr 1fr; }
  .src-grid  { grid-template-columns: 1fr 1fr; }
  .form-row  { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .pipeline-flow { gap: 0; }
}
@media (max-width: 480px) {
  .kpi-grid { grid-template-columns: 1fr; }
}
