/* ============================================================
   lab-fx.css — News horizontal Time Ribbon (light theme)
   ============================================================ */

#news-ribbon {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}
.nr-track {
  position: absolute;
  top: 0; left: 0; height: 100%;
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 0 12vw;
  will-change: transform;
}
.nr-card {
  position: relative;
  flex: 0 0 380px;
  height: 480px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  padding: 32px;
  color: #0f172a;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s, border-color 0.4s;
  isolation: isolate;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.04);
}
.nr-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(56,189,248,0.12), transparent 60%);
  opacity: 0.7;
  pointer-events: none;
  border-radius: inherit;
  z-index: -1;
}
.nr-card[data-depth="0"] { transform: translateY(-32px); }
.nr-card[data-depth="1"] { transform: translateY(20px); }
.nr-card[data-depth="2"] { transform: translateY(-12px); }
.nr-card:hover {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 30px 80px -20px rgba(56, 189, 248, 0.35);
}
.nr-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-small);
  letter-spacing: 0.3em;
  color: #2563eb;
}
.nr-title {
  font-size: var(--fs-medium);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #0f172a;
}
.nr-desc {
  font-size: var(--fs-medium);
  color: #64748b;
  line-height: 1.6;
}
.nr-tag {
  align-self: flex-start;
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-small);
  letter-spacing: 0.2em;
  padding: 4px 10px;
  border: 1px solid rgba(37, 99, 235, 0.35);
  border-radius: 999px;
  color: #2563eb;
  background: rgba(37, 99, 235, 0.05);
  text-transform: uppercase;
}
.nr-progress {
  position: absolute;
  bottom: 36px;
  left: 12vw;
  right: 12vw;
  height: 2px;
  background: rgba(15, 23, 42, 0.08);
  border-radius: 2px;
  overflow: hidden;
  z-index: 5;
}
.nr-progress-fill {
  height: 100%;
  background: linear-gradient(to right, #38bdf8, #a855f7);
  width: 0%;
  transition: width 0.1s linear;
}
.nr-hint {
  position: absolute;
  top: 36px;
  left: 12vw;
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-small);
  letter-spacing: 0.3em;
  color: rgba(71, 85, 105, 0.85);
  z-index: 5;
  text-transform: uppercase;
}
.nr-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 40%, rgba(56,189,248,0.08), transparent 65%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f8 100%);
  z-index: 0;
}
.nr-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  z-index: 1;
  mask-image: radial-gradient(ellipse 85% 75% at center, black 0%, transparent 92%);
}

/* ============================================================
   Contact section (inside #contact)
   ============================================================ */
.contact-mesh-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f8 100%);
  pointer-events: none;
}
.contact-mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.40;
  animation: contactMeshFloat 22s ease-in-out infinite;
  will-change: transform;
}
.contact-b1 { width: 520px; height: 520px; background: #60a5fa; top: -120px; left: -80px; }
.contact-b2 { width: 420px; height: 420px; background: #c4b5fd; top: 30%; right: -120px; animation-delay: -7s; }
.contact-b3 { width: 360px; height: 360px; background: #5eead4; bottom: -100px; left: 25%; animation-delay: -14s; }
@keyframes contactMeshFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(60px, -40px) scale(1.08); }
  66%      { transform: translate(-50px, 50px)  scale(0.92); }
}
.contact-mesh-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black, transparent 75%);
}

.reason-chip {
  cursor: pointer; user-select: none;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-radius: 9999px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: white;
  color: #64748b;
  font-size: var(--fs-small); font-weight: 500; letter-spacing: 0.02em;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.reason-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.4);
  color: #0f172a;
  box-shadow: 0 8px 24px -8px rgba(37, 99, 235, 0.25);
}
.reason-chip.is-active {
  background: #0f172a; color: white;
  border-color: #0f172a;
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.35);
}
.reason-chip i { width: 14px; height: 14px; }

.form-glass {
  position: relative;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 32px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 30px 80px -20px rgba(15, 23, 42, 0.10),
    0 8px 24px -8px rgba(15, 23, 42, 0.05);
}

.field { position: relative; }
.field-input, .field-textarea {
  width: 100%; padding: 22px 18px 12px;
  background: transparent;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 16px;
  color: #0f172a;
  font-size: var(--fs-medium); font-family: inherit;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
  outline: none;
}
.field-textarea { resize: none; min-height: 150px; line-height: 1.6; }
.field-input::placeholder, .field-textarea::placeholder { color: transparent; }
.field-label {
  position: absolute; left: 18px; top: 18px;
  font-size: var(--fs-small); color: rgba(15, 23, 42, 0.55);
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  background: transparent; padding: 0 4px;
}
.field-input:focus, .field-textarea:focus {
  border-color: #2563eb;
  background: rgba(37, 99, 235, 0.02);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}
.field-input:focus + .field-label,
.field-input:not(:placeholder-shown) + .field-label,
.field-textarea:focus + .field-label,
.field-textarea:not(:placeholder-shown) + .field-label {
  top: -11px; left: 14px;
  line-height: 1;
  font-size: var(--fs-small); color: #2563eb;
  background: white; letter-spacing: 0.06em;
  font-weight: 600;
}
.field-required { color: #2563eb; font-weight: 700; }
.field-counter {
  position: absolute; right: 16px; bottom: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-small); color: rgba(15, 23, 42, 0.35);
  letter-spacing: 0.1em; pointer-events: none;
}
.field-counter.is-warn { color: #ea580c; }

/* Honeypot anti-spam (hidden) */
.form-honey {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.btn-submit {
  position: relative; width: 100%;
  padding: 18px 28px;
  background: #0f172a; color: white;
  border-radius: 16px;
  font-size: var(--fs-medium); font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden; isolation: isolate;
  border: none; cursor: pointer;
}
.btn-submit::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent, rgba(96, 165, 250, 0.4), transparent);
  background-size: 200% 100%;
  transform: translateX(-100%);
  transition: transform 0.6s;
  z-index: -1;
}
.btn-submit:hover::before { transform: translateX(100%); }
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -10px rgba(37, 99, 235, 0.35);
  background: #2563eb;
}
.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.btn-submit:disabled:hover { background: #0f172a; box-shadow: none; }
.btn-submit i { transition: transform 0.4s; }
.btn-submit:hover i { transform: translateX(4px); }
.btn-submit.is-sending span::after {
  content: '';
  display: inline-block;
  width: 14px; height: 14px;
  margin-left: 10px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: -2px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.info-card {
  position: relative;
  background: linear-gradient(160deg, #0f172a 0%, #1e293b 100%);
  border-radius: 32px;
  padding: 40px 36px;
  color: white;
  overflow: hidden;
  isolation: isolate;
}
.info-card::before {
  content: ''; position: absolute;
  top: -100px; right: -100px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.30) 0%, transparent 70%);
  filter: blur(10px); z-index: -1;
}
.info-row {
  display: flex; gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.info-row:last-child { border-bottom: 0; }
.info-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.15);
  display: inline-flex; align-items: center; justify-content: center;
  color: #7dd3fc; flex-shrink: 0;
}
.info-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-small); letter-spacing: 0.25em;
  color: rgba(148, 163, 184, 0.7);
  text-transform: uppercase; margin-bottom: 6px;
}
.info-value { font-size: var(--fs-medium); color: white; font-weight: 500; }
.info-value a:hover { color: #7dd3fc; }

.form-stack { position: relative; }
.form-success {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 32px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.6s; z-index: 5;
}
.form-success.is-on { opacity: 1; pointer-events: auto; }
.check-anim {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #14b8a6);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 20px 50px -10px rgba(16, 185, 129, 0.5);
  animation: checkPop 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes checkPop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.18); opacity: 1; }
  100% { transform: scale(1); }
}
.check-anim svg {
  stroke-dasharray: 60; stroke-dashoffset: 60;
  animation: checkDraw 0.5s 0.35s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
@keyframes checkDraw { to { stroke-dashoffset: 0; } }

.grad-text {
  background: linear-gradient(120deg, #2563eb 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-small); letter-spacing: 0.2em;
  text-transform: uppercase; font-weight: 700;
}
.status-pill .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #10b981;
  animation: dotPulse 2s infinite;
}
@keyframes dotPulse {
  0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.form-error {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #b91c1c;
  font-size: var(--fs-small);
  display: none;
}
.form-error.is-on { display: block; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
}
