/* ==========================================================================
   44. Visual depth pass — texture, washes, panel, process, case tints
   ========================================================================== */

/* ---------- Grain on dark areas ---------- */
.hero::after,
.section--dark::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.18;
  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='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}
.hero > .wrap { position: relative; z-index: 1; }

/* ---------- Soft wash on light sections ---------- */
.section:not(.section--dark) {
  background-image:
    radial-gradient(1000px 460px at 92% -12%, rgba(17, 96, 168, 0.05), transparent 70%),
    radial-gradient(760px 420px at -6% 108%, rgba(240, 131, 0, 0.035), transparent 70%);
}

/* ---------- Hero panel: stacked card + live badge + crisper KPIs ---------- */
.hero__visual { position: relative; z-index: 1; }
.panel::before {
  content: "";
  position: absolute;
  inset: 14px -10px -12px 13px;
  z-index: -1;
  border-radius: var(--r-l);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.08);
  transform: rotate(1.5deg);
  pointer-events: none;
}
.panel__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.panel__badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0b8a4d;
  box-shadow: 0 0 0 0 rgba(11, 138, 77, 0.4);
  animation: livePulse 2.6s ease-out infinite;
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(11, 138, 77, 0.35); }
  70% { box-shadow: 0 0 0 7px rgba(11, 138, 77, 0); }
  100% { box-shadow: 0 0 0 0 rgba(11, 138, 77, 0); }
}
.kpi {
  background: #fff;
  border-color: rgba(9, 26, 43, 0.08);
  box-shadow: 0 1px 2px rgba(8, 24, 40, 0.04);
}
.kpi__value { font-size: clamp(18px, 1.55vw, 22px); }
.chart__legend { margin-top: 10px; }

/* ---------- Process: connecting rail ---------- */
.process { position: relative; }
.process::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 41px;
  height: 1px;
  z-index: 0;
  background: linear-gradient(
    90deg,
    rgba(240, 131, 0, 0) 0%,
    rgba(240, 131, 0, 0.38) 10%,
    rgba(9, 26, 43, 0.14) 50%,
    rgba(240, 131, 0, 0.38) 90%,
    rgba(240, 131, 0, 0) 100%
  );
}
.step { position: relative; z-index: 1; }
.step__num::before {
  box-shadow: 0 0 0 5px var(--paper);
}

/* ---------- Case media: platform tints ---------- */
.case__media {
  background: radial-gradient(120% 120% at 16% 0%, #eaf2fa, #f7f9fc 62%);
}
.case--t360 .case__media { background: radial-gradient(120% 120% at 16% 0%, #e6f1fd, #f6faff 62%); }
.case--txhs .case__media { background: radial-gradient(120% 120% at 16% 0%, #fff0ef, #fffafa 62%); }
.case--tks .case__media { background: radial-gradient(120% 120% at 16% 0%, #fff3ea, #fffbf7 62%); }
.case--tdy .case__media { background: radial-gradient(120% 120% at 16% 0%, #eceff4, #fafbfd 62%); }

/* ---------- Buttons: soft sheen ---------- */
.btn { overflow: hidden; }
.btn--primary::after {
  content: "";
  position: absolute;
  top: -40%;
  bottom: -40%;
  left: -60%;
  width: 38%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-18deg);
  transition: left 0.65s var(--ease);
  pointer-events: none;
}
.btn--primary:hover::after { left: 112%; }

/* ---------- Reading progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-600), var(--accent-300));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* ---------- Footer hairline ---------- */
.site-footer { border-top: 1px solid rgba(255, 255, 255, 0.06); }

/* ---------- Mobile tuning ---------- */
@media (max-width: 720px) {
  .hero::after,
  .section--dark::after { opacity: 0.12; }
  .panel::before { display: none; }
  .kpi__label { font-size: 10px; }
  .process::before { display: none; }
  .step__num::before { box-shadow: none; }
}


/* ---------- 45. Footer wordmark ---------- */
.site-footer { position: relative; overflow: hidden; }
.site-footer__main { position: relative; z-index: 1; }
.site-footer__bottom { position: relative; z-index: 1; }
.site-footer::after {
  content: "LINGCAN";
  position: absolute;
  right: -18px;
  bottom: 26px;
  z-index: 0;
  font-family: var(--font-mono);
  font-size: clamp(90px, 12vw, 168px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 0.8;
  color: rgba(255, 255, 255, 0.035);
  pointer-events: none;
  user-select: none;
}
@media (max-width: 720px) {
  .site-footer::after { font-size: 76px; right: -10px; bottom: 14px; opacity: 0.8; }
}
