/* Software / mobile developer effects */

:root {
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ===== Code rain ===== */
#codeRain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.22;
}

/* ===== Circuit traces ===== */
.dev-circuits {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
}
.dev-circuits svg {
  width: 100%;
  height: 100%;
}
.dev-trace {
  fill: none;
  stroke: url(#circuitGrad);
  stroke-width: 1.2;
  stroke-dasharray: 8 14;
  animation: circuitFlow 18s linear infinite;
}
.dev-trace.t2 { animation-duration: 24s; animation-direction: reverse; opacity: 0.7; }
.dev-node {
  fill: #a855f7;
  filter: drop-shadow(0 0 6px #a855f7);
  animation: nodePulse 2.8s ease-in-out infinite;
}
.dev-node.n2 { animation-delay: 0.8s; fill: #38bdf8; filter: drop-shadow(0 0 6px #38bdf8); }
.dev-node.n3 { animation-delay: 1.6s; fill: #10b981; filter: drop-shadow(0 0 6px #10b981); }
@keyframes circuitFlow { to { stroke-dashoffset: -400; } }
@keyframes nodePulse { 0%,100% { opacity: 0.35; r: 3; } 50% { opacity: 1; r: 4.5; } }

/* ===== Preloader as Gradle build ===== */
#preloader .pre-term {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text3);
  letter-spacing: 0.02em;
}
#preloader .pre-term .ok { color: #34d399; }
#preloader .pre-term .kw { color: #c084fc; }

/* ===== Hero stage ===== */
#hero { align-items: stretch; }
.hero-stage {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr) minmax(200px, 250px);
  gap: 1.5rem 2rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-content { max-width: none; width: 100%; }
@media (min-width: 1101px) {
  .float-chips { display: none; }
}

/* ===== Floating code tokens ===== */
.code-token {
  position: absolute;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: #c4b5fd;
  background: rgba(17, 17, 24, 0.72);
  border: 1px solid rgba(168, 85, 247, 0.28);
  padding: 0.28rem 0.55rem;
  border-radius: 8px;
  backdrop-filter: blur(8px);
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.28);
}
.code-token .p { color: #f472b6; }
.code-token .f { color: #38bdf8; }
.code-token .s { color: #34d399; }
.code-token.t1 { top: 14%; left: 3%; animation: tokenFloat 8s var(--ease) infinite; }
.code-token.t2 { top: 22%; right: 4%; animation: tokenFloat 9s var(--ease) infinite 0.4s; }
.code-token.t3 { bottom: 18%; left: 5%; animation: tokenFloat 7.5s var(--ease) infinite 1s; }
.code-token.t4 { bottom: 24%; right: 6%; animation: tokenFloat 8.5s var(--ease) infinite 0.7s; }
.code-token.t5 { top: 48%; left: 2%; animation: tokenFloat 10s var(--ease) infinite 1.4s; }
.code-token.t6 { top: 58%; right: 2%; animation: tokenFloat 9.5s var(--ease) infinite 0.2s; }
@keyframes tokenFloat {
  0%,100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-16px) rotate(1.5deg); }
}

/* ===== IDE window ===== */
.dev-ide {
  width: 100%;
  border-radius: 14px;
  background: #12121a;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45), 0 0 0 1px rgba(168,85,247,0.08);
  overflow: hidden;
  transform: perspective(900px) rotateY(8deg) rotateX(2deg);
  animation: ideIdle 8s ease-in-out infinite;
}
@keyframes ideIdle {
  0%,100% { transform: perspective(900px) rotateY(8deg) rotateX(2deg) translateY(0); }
  50% { transform: perspective(900px) rotateY(6deg) rotateX(1deg) translateY(-8px); }
}
.dev-ide-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.75rem;
  background: #1a1a24;
  border-bottom: 1px solid var(--border);
}
.dev-ide-dot { width: 8px; height: 8px; border-radius: 50%; }
.dev-ide-dot.r { background: #f87171; }
.dev-ide-dot.y { background: #fbbf24; }
.dev-ide-dot.g { background: #34d399; }
.dev-ide-title {
  margin-left: 0.35rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--text3);
}
.dev-ide-body {
  padding: 0.85rem 0.9rem 1rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  line-height: 1.7;
  min-height: 210px;
}
.dev-ide-body .ln { color: #4b4b68; display: inline-block; width: 1.4em; user-select: none; }
.dev-ide-body .k { color: #c084fc; }
.dev-ide-body .fn { color: #38bdf8; }
.dev-ide-body .an { color: #f472b6; }
.dev-ide-body .st { color: #34d399; }
.dev-ide-body .cm { color: #6b6a8a; }
.dev-ide-caret {
  display: inline-block;
  width: 7px;
  height: 0.95em;
  background: #a855f7;
  vertical-align: text-bottom;
  animation: blink 1s steps(1) infinite;
}

/* ===== Phone mockup ===== */
.dev-phone-wrap {
  display: flex;
  justify-content: center;
  perspective: 1000px;
}
.dev-phone {
  width: 210px;
  height: 430px;
  border-radius: 32px;
  background: linear-gradient(180deg, #1c1c28, #0d0d12);
  border: 2px solid #3a3a52;
  box-shadow:
    0 30px 70px rgba(0,0,0,0.55),
    inset 0 0 0 2px #111118,
    0 0 40px rgba(124,58,237,0.18);
  position: relative;
  overflow: hidden;
  transform: rotateY(-10deg) rotateX(4deg);
  animation: phoneFloat 7s ease-in-out infinite;
}
@keyframes phoneFloat {
  0%,100% { transform: rotateY(-10deg) rotateX(4deg) translateY(0); }
  50% { transform: rotateY(-6deg) rotateX(2deg) translateY(-12px); }
}
.dev-phone::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 14px;
  background: #0a0a0f;
  border-radius: 10px;
  z-index: 5;
}
.dev-phone-screen {
  position: absolute;
  inset: 14px 10px 16px;
  border-radius: 24px;
  background: #0b1020;
  overflow: hidden;
}
.dev-phone-scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(56,189,248,0.08), transparent);
  height: 40%;
  animation: scanDown 4.5s linear infinite;
  pointer-events: none;
  z-index: 4;
}
@keyframes scanDown {
  0% { transform: translateY(-120%); }
  100% { transform: translateY(280%); }
}
.dev-status {
  display: flex;
  justify-content: space-between;
  padding: 18px 12px 6px;
  font-family: var(--mono);
  font-size: 0.55rem;
  color: #e2e8f0;
  letter-spacing: 0.04em;
}
.dev-status .sig { display: flex; gap: 2px; align-items: flex-end; }
.dev-status .sig i {
  display: block;
  width: 3px;
  background: #e2e8f0;
  border-radius: 1px;
  animation: barPulse 1.6s ease-in-out infinite;
}
.dev-status .sig i:nth-child(1) { height: 4px; }
.dev-status .sig i:nth-child(2) { height: 7px; animation-delay: 0.15s; }
.dev-status .sig i:nth-child(3) { height: 10px; animation-delay: 0.3s; }
.dev-status .sig i:nth-child(4) { height: 13px; animation-delay: 0.45s; }
@keyframes barPulse { 50% { opacity: 0.35; } }

.dev-screens { position: relative; height: calc(100% - 36px); }
.dev-screen {
  position: absolute;
  inset: 0;
  padding: 0 10px 10px;
  opacity: 0;
  transform: translateX(18px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.dev-screen.active { opacity: 1; transform: none; }

.dev-appbar {
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 4px 0 10px;
}
.dev-chip-row { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.dev-mini-chip {
  font-size: 0.52rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(124,58,237,0.25);
  color: #d8b4fe;
  border: 1px solid rgba(168,85,247,0.35);
}
.dev-card {
  background: #151b2e;
  border: 1px solid #243049;
  border-radius: 12px;
  padding: 8px;
  margin-bottom: 8px;
  animation: cardIn 0.7s var(--ease) both;
}
.dev-card:nth-child(2) { animation-delay: 0.15s; }
.dev-card:nth-child(3) { animation-delay: 0.3s; }
.dev-card:nth-child(4) { animation-delay: 0.45s; }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
.dev-card .h { height: 7px; width: 62%; background: #334155; border-radius: 4px; margin-bottom: 6px; }
.dev-card .p { height: 5px; width: 88%; background: #1e293b; border-radius: 3px; }
.dev-card .p2 { height: 5px; width: 54%; background: #1e293b; border-radius: 3px; margin-top: 4px; }
.dev-fab {
  position: absolute;
  right: 14px;
  bottom: 18px;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  box-shadow: 0 8px 20px rgba(124,58,237,0.45);
  animation: fabPulse 2.2s ease-in-out infinite;
}
@keyframes fabPulse {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
.dev-nav {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 8px;
  height: 28px;
  border-radius: 10px;
  background: #12182a;
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.dev-nav span {
  width: 16px;
  height: 4px;
  border-radius: 3px;
  background: #334155;
}
.dev-nav span.on { background: #a855f7; box-shadow: 0 0 8px #a855f7; }

.dev-toast {
  position: absolute;
  top: 42px;
  left: 10px;
  right: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(168, 85, 247, 0.35);
  font-family: var(--mono);
  font-size: 0.5rem;
  color: #e2e8f0;
  z-index: 3;
  animation: toastIn 4.2s var(--ease) infinite;
}
.dev-toast b { color: #c084fc; display: block; margin-bottom: 2px; }
@keyframes toastIn {
  0%, 12% { transform: translateY(-16px); opacity: 0; }
  18%, 72% { transform: none; opacity: 1; }
  85%, 100% { transform: translateY(-16px); opacity: 0; }
}

.dev-code-line {
  font-family: var(--mono);
  font-size: 0.52rem;
  line-height: 1.65;
  color: #94a3b8;
}
.dev-code-line .k { color: #c084fc; }
.dev-code-line .fn { color: #38bdf8; }
.dev-code-line .an { color: #f472b6; }

.dev-build {
  font-family: var(--mono);
  font-size: 0.55rem;
  color: #94a3b8;
  line-height: 1.7;
}
.dev-build .ok { color: #34d399; }
.dev-build .task { color: #38bdf8; }
.dev-build-bar {
  height: 4px;
  background: #1e293b;
  border-radius: 4px;
  overflow: hidden;
  margin: 10px 0;
}
.dev-build-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #7c3aed, #34d399);
  animation: buildFill 3.2s var(--ease) infinite;
}
@keyframes buildFill {
  0% { width: 8%; }
  70% { width: 100%; }
  100% { width: 100%; }
}

/* ===== Orbiting tech ===== */
.dev-orbit {
  position: absolute;
  width: 520px;
  height: 520px;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}
.dev-orbit-ring {
  position: absolute;
  inset: 0;
  border: 1px dashed rgba(168,85,247,0.18);
  border-radius: 50%;
  animation: spin 48s linear infinite;
}
.dev-orbit-ring.inner {
  inset: 70px;
  animation-duration: 32s;
  animation-direction: reverse;
  border-color: rgba(56,189,248,0.16);
}
.dev-orbit-item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 42px;
  height: 42px;
  margin: -21px 0 0 -21px;
  border-radius: 12px;
  background: rgba(28,28,40,0.85);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 800;
  font-family: var(--display);
  color: #e2e8f0;
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
  opacity: 0;
}
.dev-orbit.ready .dev-orbit-item { opacity: 1; transition: opacity 0.4s; }
.dev-orbit-item.a { color: #3ddc84; }
.dev-orbit-item.k { color: #c084fc; }
.dev-orbit-item.f { color: #38bdf8; }
.dev-orbit-item.s { color: #f8fafc; }
.dev-orbit-item.u { color: #a3e635; }

/* ===== Terminal strip ===== */
.dev-term {
  margin-top: 1.75rem;
  width: min(640px, 100%);
  margin-left: auto;
  margin-right: auto;
  background: #0d1117;
  border: 1px solid #243049;
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}
.dev-term-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.7rem;
  background: #161b22;
  border-bottom: 1px solid #243049;
  font-family: var(--mono);
  font-size: 0.62rem;
  color: #8b949e;
}
.dev-term-body {
  padding: 0.7rem 0.85rem 0.85rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.65;
  min-height: 88px;
  color: #c9d1d9;
}
.dev-term-body .prompt { color: #34d399; }
.dev-term-body .cmd { color: #79c0ff; }
.dev-term-body .ok { color: #3fb950; }
.dev-term-body .dim { color: #8b949e; }

/* ===== Code marquee ===== */
.marquee.code .marquee-track span { font-family: var(--mono); font-size: 0.92rem; font-weight: 500; }
.marquee.code { background: #0d0d14; }
.marquee.code .marquee-track { animation-duration: 36s; animation-direction: reverse; }

/* ===== Skill scan line ===== */
.skill-card { overflow: hidden; }
.skill-card::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -20%;
  width: 40%;
  height: 180%;
  background: linear-gradient(90deg, transparent, rgba(168,85,247,0.12), transparent);
  transform: rotate(18deg) translateX(-120%);
  pointer-events: none;
}
.skill-card:hover::before { animation: skillScan 0.8s var(--ease); }
@keyframes skillScan { to { transform: rotate(18deg) translateX(420%); } }

/* ===== App card device glow ===== */
.app-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #38bdf8, #a855f7, transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.app-card:hover::before { opacity: 1; animation: appSweep 1.4s linear infinite; }
@keyframes appSweep { 0% { transform: translateX(-30%); } 100% { transform: translateX(30%); } }

/* ===== Binary ticker ===== */
.dev-binary {
  overflow: hidden;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: rgba(56,189,248,0.28);
  letter-spacing: 0.18em;
  white-space: nowrap;
  padding: 0.55rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.dev-binary span { display: inline-block; animation: marquee 40s linear infinite; }

/* ===== Git graph ===== */
.dev-git {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-top: 2.5rem;
  position: relative;
}
.dev-git-line {
  position: absolute;
  top: 11px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #7c3aed, #38bdf8, transparent);
}
.dev-commit {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1c1c28;
  border: 2px solid #7c3aed;
  position: relative;
  z-index: 1;
  margin: 0 1.4rem;
  animation: commitPulse 2.4s ease-in-out infinite;
}
.dev-commit:nth-child(2) { animation-delay: 0.3s; border-color: #38bdf8; }
.dev-commit:nth-child(3) { animation-delay: 0.6s; border-color: #34d399; }
.dev-commit:nth-child(4) { animation-delay: 0.9s; border-color: #f472b6; }
.dev-commit:nth-child(5) { animation-delay: 1.2s; border-color: #fbbf24; }
@keyframes commitPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(124,58,237,0.0); transform: scale(1); }
  50% { box-shadow: 0 0 0 8px rgba(124,58,237,0.12); transform: scale(1.12); }
}

/* ===== About as workstation ===== */
.about-avatar-inner { font-size: 0; }
.dev-workstation {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.dev-laptop {
  width: 72%;
  height: 58%;
  border-radius: 10px 10px 4px 4px;
  background: #0d1117;
  border: 2px solid #2a2a3d;
  position: relative;
  overflow: hidden;
}
.dev-laptop::after {
  content: '';
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -10px;
  height: 8px;
  background: #242435;
  border-radius: 0 0 8px 8px;
}
.dev-laptop-code {
  position: absolute;
  inset: 10px 10px 14px;
  font-family: var(--mono);
  font-size: 0.42rem;
  line-height: 1.55;
  color: #8b949e;
}
.dev-laptop-code .k { color: #f472b6; }
.dev-mini-phone {
  position: absolute;
  right: 12%;
  bottom: 16%;
  width: 28%;
  height: 48%;
  border-radius: 10px;
  background: linear-gradient(180deg, #1e293b, #0f172a);
  border: 2px solid #334155;
  box-shadow: 0 10px 24px rgba(0,0,0,0.4);
  animation: miniPhone 5s ease-in-out infinite;
}
.dev-mini-phone::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 28%;
  height: 4px;
  background: #0a0a0f;
  border-radius: 4px;
}
@keyframes miniPhone {
  0%,100% { transform: translateY(0) rotate(6deg); }
  50% { transform: translateY(-8px) rotate(4deg); }
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .hero-stage { grid-template-columns: 1fr; }
  .dev-ide, .dev-phone-wrap { display: none; }
  .dev-orbit { display: none; }
  .code-token.t5, .code-token.t6 { display: none; }
}
@media (max-width: 860px) {
  .code-token { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  #codeRain, .dev-circuits, .dev-orbit, .dev-phone-scan, .code-token { display: none !important; }
  .dev-ide, .dev-phone, .dev-mini-phone { animation: none !important; transform: none !important; }
}
@media (pointer: coarse) {
  #codeRain { opacity: 0.12; }
}

/* ===== Crazy heading / subtitle FX ===== */
.section-label {
  position: relative;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: none;
  padding: 0.38rem 0.85rem 0.38rem 0.7rem;
  border-radius: 8px;
  background: rgba(17, 17, 24, 0.75);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #c4b5fd;
  overflow: hidden;
  box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.0);
  animation: labelPulse 3.2s ease-in-out infinite;
}
.section-label::before {
  content: '$ ';
  color: #34d399;
  font-weight: 800;
  animation: promptBlink 1.1s steps(1) infinite;
}
.section-label::after {
  content: '';
  position: absolute;
  top: 0;
  left: -40%;
  width: 30%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  animation: labelSweep 2.8s ease-in-out infinite;
}
.section-label.visible {
  animation: labelIn 0.7s var(--ease) both, labelPulse 3.2s ease-in-out 0.7s infinite, labelGlitch 4.5s steps(2, end) 1.2s infinite;
}
@keyframes promptBlink { 50% { opacity: 0.15; } }
@keyframes labelSweep { 0% { transform: translateX(0); } 100% { transform: translateX(420%); } }
@keyframes labelPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(168,85,247,0); border-color: rgba(168,85,247,0.35); }
  50% { box-shadow: 0 0 22px rgba(168,85,247,0.28); border-color: rgba(56,189,248,0.55); }
}
@keyframes labelIn {
  from { opacity: 0; transform: translateX(-18px) skewX(-8deg); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes labelGlitch {
  0%,90%,100% { transform: none; text-shadow: none; }
  92% { transform: translate(-2px, 1px); text-shadow: 2px 0 #38bdf8, -2px 0 #f472b6; }
  94% { transform: translate(2px, -1px); text-shadow: -2px 0 #34d399; }
  96% { transform: translate(-1px, 0); }
}

.section-title {
  position: relative;
  display: inline-block;
  color: #e9e7ff;
}
.section-title.shimmer.visible {
  animation: titlePop 0.85s var(--ease) both;
  background: none;
  -webkit-text-fill-color: inherit;
}
.section-title .ch {
  display: inline-block;
  will-change: transform, filter;
  color: #c4b5fd;
}
.section-title.decoded .ch {
  background: linear-gradient(110deg, #f1f0ff 18%, #a855f7 42%, #38bdf8 58%, #f1f0ff 82%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: chPop 0.55s var(--ease) both, titleWave 5s linear 0.55s infinite;
}
@keyframes titleWave { to { background-position: 220% center; } }
@keyframes titlePop {
  from { opacity: 0; transform: translateY(22px) scale(0.94); filter: blur(10px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes chPop {
  0% { transform: translateY(0.45em) rotateX(70deg); opacity: 0; filter: blur(6px); }
  100% { transform: none; opacity: 1; filter: none; }
}
.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, #7c3aed, #38bdf8, #34d399, #7c3aed);
  background-size: 200% 100%;
  transform: scaleX(0);
  transform-origin: left;
  animation: barDraw 1s var(--ease) 0.35s forwards, barShift 3s linear 1.4s infinite;
}
.section-title.visible::after { }
@keyframes barDraw { to { transform: scaleX(1); } }
@keyframes barShift { to { background-position: 200% 0; } }

.section-divider {
  position: relative;
  overflow: hidden;
  animation: dividerGrow 1s var(--ease) both;
}
.section-divider.visible {
  animation: dividerGrow 0.8s var(--ease) both, dividerHue 4s linear infinite;
}
.section-divider::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  animation: dividerShine 2.2s ease-in-out infinite;
}
@keyframes dividerGrow { from { width: 0; opacity: 0; } to { width: 64px; opacity: 1; } }
@keyframes dividerHue {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}
@keyframes dividerShine {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(220%); }
}

.section-sub {
  position: relative;
  max-width: 640px;
}
.section-sub .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(14px) rotate(-4deg);
  filter: blur(6px);
}
.section-sub.armed .w {
  animation: wordIn 0.55s var(--ease) both;
}
.section-sub .w.hot {
  color: #c4b5fd;
  font-weight: 700;
  text-shadow: 0 0 18px rgba(168,85,247,0.45);
  animation: wordIn 0.55s var(--ease) both, hotGlow 2.4s ease-in-out infinite;
}
@keyframes wordIn {
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes hotGlow {
  0%,100% { text-shadow: 0 0 8px rgba(168,85,247,0.2); }
  50% { text-shadow: 0 0 22px rgba(56,189,248,0.55); }
}
.section-sub.armed::after {
  content: '█';
  display: inline-block;
  margin-left: 4px;
  color: #a855f7;
  font-size: 0.7em;
  vertical-align: baseline;
  animation: blink 1s steps(1) infinite;
}

@media (prefers-reduced-motion: reduce) {
  .section-label, .section-title, .section-sub .w, .section-divider {
    animation: none !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
  }
  .section-title { -webkit-text-fill-color: inherit; background: none; }
  .section-sub.armed::after { display: none; }
}
