/* ============================================================
   LAYOUT & SHARED COMPONENTS
   ============================================================ */

/* Noise Overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9990;
  opacity: 0.35;
}

/* Container */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Section Label */
.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 48px;
}
.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--accent);
}

/* Section Title */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

/* Divider */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: var(--section-pad) 0;
}

/* Tag Pills */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  transition: border-color var(--t-med), color var(--t-med);
}
.tag:hover { border-color: var(--accent); color: var(--accent); }
.tag.accent {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  font-weight: 500;
  border-radius: 4px;
  transition: all var(--t-med) var(--ease);
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med) var(--ease);
  z-index: 0;
}
.btn:hover::before { transform: scaleX(1); }
.btn > * { position: relative; z-index: 1; }

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover { background: transparent; color: var(--bg); }

.btn-outline {
  border: 1px solid var(--border-hover);
  color: var(--text);
}
.btn-outline::before { background: var(--accent); }
.btn-outline:hover { border-color: var(--accent); color: var(--bg); }

/* Placeholder image */
.img-placeholder {
  background: var(--surface);
  border: 1px dashed var(--border-hover);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  position: relative;
  overflow: hidden;
}
.img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(255,255,255,0.01) 10px,
    rgba(255,255,255,0.01) 20px
  );
}
.img-placeholder svg {
  opacity: 0.3;
  position: relative;
  z-index: 1;
}
.img-placeholder span { position: relative; z-index: 1; }

/* Animate on scroll */
.aos {
  opacity: 0;
  transform: translateY(24px) scale(0.985);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
  will-change: opacity, transform;
}

.aos.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.aos-delay-1 { transition-delay: 0.1s; }
.aos-delay-2 { transition-delay: 0.2s; }
.aos-delay-3 { transition-delay: 0.3s; }
.aos-delay-4 { transition-delay: 0.4s; }

/* Number counter */
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.03em;
}
