/* ═══════════════════════════════════════
   SPALBA EVENTS — SHARED STYLES
   Include on every page
═══════════════════════════════════════ */

:root {
  --blue: #2384E5;
  --azure: #0178CF;
  --orange: #FF7555;
  --vivid-orange: #F06444;
  --white: #F3F2F1;
  --black: #0E0E0E;
  --mid: #1a1a1a;
  --card: #141414;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
  cursor: none;
}

/* CURSOR */
.cursor { position: fixed; width: 10px; height: 10px; background: var(--orange); border-radius: 50%; pointer-events: none; z-index: 9999; transform: translate(-50%,-50%); transition: width .3s,height .3s,background .3s; }
.cursor-ring { position: fixed; width: 36px; height: 36px; border: 1.5px solid rgba(255,117,85,.5); border-radius: 50%; pointer-events: none; z-index: 9998; transform: translate(-50%,-50%); transition: width .3s,height .3s; }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 48px; height: 68px;
  background: var(--black);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}
.nav-logo { font-family: 'Roboto',sans-serif; font-weight: 900; font-size: 20px; letter-spacing: .08em; color: var(--white); text-decoration: none; }
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a { font-size: 12px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: rgba(243,242,241,.6); text-decoration: none; transition: color .3s; }
.nav-links a:hover { color: var(--white); }
.nav-cta { background: var(--orange) !important; color: var(--black) !important; font-weight: 700 !important; padding: 10px 22px; border-radius: 2px; transition: background .3s !important; }
.nav-cta:hover { background: var(--vivid-orange) !important; }

/* NOISE OVERLAY */
body::before { content: ''; position: fixed; inset: 0; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' 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.03'/%3E%3C/svg%3E"); pointer-events: none; z-index: 9997; opacity: .4; }

/* SHARED UTILITIES */
.section-label {
  font-size: 10px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}
.section-label::before { content: ''; width: 24px; height: 1px; background: var(--orange); flex-shrink: 0; }

.fade-up { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: .1s; } .d2 { transition-delay: .2s; } .d3 { transition-delay: .3s; } .d4 { transition-delay: .4s; }

.btn-primary {
  background: var(--orange); color: var(--black);
  font-family: 'Roboto',sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: 14px 32px; border: none; border-radius: 2px; cursor: none; text-decoration: none;
  display: inline-block; transition: background .3s, transform .2s;
}
.btn-primary:hover { background: var(--vivid-orange); transform: translateY(-2px); }
.btn-ghost {
  color: rgba(243,242,241,.65); font-size: 12px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: color .3s;
}
.btn-ghost::after { content: '→'; font-size: 15px; transition: transform .3s; }
.btn-ghost:hover { color: var(--white); }
.btn-ghost:hover::after { transform: translateX(4px); }

/* FOOTER */
.portfolio-footer {
  background: #050505; padding: 48px 64px 32px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-left .footer-logo { margin-bottom: 6px; }
.footer-left p { font-size: 12px; color: rgba(243,242,241,.25); letter-spacing: .05em; }
.footer-copy { font-size: 11px; color: rgba(243,242,241,.2); letter-spacing: .08em; }
.footer-copy span { color: var(--orange); }

/* MOBILE NAV */
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .portfolio-footer { padding: 40px 20px 24px; flex-direction: column; align-items: flex-start; gap: 16px; }
}
@media (max-width: 480px) {
  .portfolio-footer { padding: 32px 16px 20px; }
}

/* ── CAPABILITIES SECTIONS MOBILE FIX (portfolio page) ── */
@media screen and (max-width: 768px) {

  /* Section padding */
  .capabilities-section {
    padding: 48px 20px !important;
    overflow: hidden !important;
  }

  /* Two-column header → single column */
  .cap-section-header {
    display: block !important;
    grid-template-columns: unset !important;
    margin-bottom: 32px !important;
  }

  .cap-section-title {
    font-size: clamp(36px, 10vw, 52px) !important;
  }

  .cap-section-desc {
    display: block !important;
    width: 100% !important;
    margin-top: 12px !important;
    font-size: 13px !important;
  }

  /* Three-column cap grid → single column */
  .cap-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    overflow: hidden !important;
  }

  /* CTA strip */
  .cta-strip {
    padding: 48px 20px !important;
  }
  .cta-inner {
    display: block !important;
  }
  .cta-btn {
    display: block !important;
    width: 100% !important;
    margin-top: 20px !important;
    text-align: center !important;
  }
  .cta-text-title {
    font-size: clamp(32px, 9vw, 52px) !important;
  }
}

@media screen and (max-width: 480px) {
  .capabilities-section {
    padding: 40px 16px !important;
  }
  .cap-section-title {
    font-size: clamp(30px, 9vw, 44px) !important;
  }
}