/* ════════════════════════════════════════════
   WILD GOAT — 3D UI layer
   Loaded after each page's own styles. Restyles the existing markup:
   deep-green night, glowing lime particles, glass cards, pill controls.
   Remove this file + wg3d.js to return to the previous design.
═══════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600;700&family=Inter:wght@300;400;500&display=swap');

:root {
  --bg: #030904;
  --surface: rgba(10, 26, 13, 0.55);
  --surface-card: rgba(12, 30, 15, 0.5);
  --outline: rgba(150, 255, 130, 0.11);
  --outline-hover: rgba(150, 255, 130, 0.3);
  --text: #eef6ec;
  --muted: rgba(226, 242, 224, 0.58);
  --accent: #8dff5c;
  --accent-dark: #4cc63f;
  --accent-glow: rgba(141, 255, 92, 0.28);
  --forest: #2f6b35;
  --glass: rgba(9, 24, 12, 0.52);
  --font-headline: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --r: 22px;
}

html body { background: var(--bg); color: var(--text); font-family: var(--font-body); font-weight: 300; overflow-x: clip; }

/* ── 3D canvas + light beams ── */
#wg3d-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none; display: block; }
html body::before { content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(ellipse 38% 55% at 50% -12%, rgba(141,255,92,.22), transparent 70%),
    radial-gradient(ellipse 70% 50% at 50% 115%, rgba(40,140,50,.22), transparent 70%),
    radial-gradient(ellipse 60% 60% at 85% 40%, rgba(30,110,40,.16), transparent 70%),
    linear-gradient(180deg, #041206 0%, #030904 45%, #020602 100%); }

/* ── headings ── */
html body h1, html body h2, html body h3,
html body .section-title, html body .hero-headline, html body .service-name, html body .del-title,
html body .stat-val, html body .stat-num, html body .modal-title, html body .sp-name, html body .page-hero h1, html body .cta-band h2 {
  font-family: var(--font-headline); font-weight: 600; letter-spacing: -0.035em; text-wrap: balance;
}
html body .section-title, html body .cta-band h2 { font-size: clamp(2.4rem, 5.2vw, 4.6rem); line-height: 0.98; }
html body .section-title span, html body .page-hero h1 span, html body .hero-headline .accent, html body .cta-band h2 span {
  color: var(--accent); text-shadow: 0 0 28px rgba(141,255,92,.45);
}
html body .section-eyebrow, html body .hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; border: 1px solid var(--outline);
  border-radius: 999px; background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--text); font-size: .7rem; letter-spacing: .14em; font-weight: 400;
}
html body .section-eyebrow::before, html body .hero-eyebrow::before {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent), 0 0 2px #fff;
}
html body .section-desc, html body .page-hero p, html body .hero-sub { color: var(--muted); font-size: 1rem; }

/* ── NAV: floating top bar + bottom pill menu (like the reference) ── */
html body nav#mainNav, html body nav#mainNav.scrolled {
  position: fixed; top: 0; left: 0; right: 0; height: 76px; padding: 0 clamp(1.25rem, 4vw, 3rem);
  background: linear-gradient(180deg, rgba(3,9,4,.85), rgba(3,9,4,0)); border: 0; backdrop-filter: none; -webkit-backdrop-filter: none;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap; z-index: 120;
}
html body nav#mainNav .nav-logo img { height: 30px; filter: drop-shadow(0 0 12px rgba(141,255,92,.25)); }
html body nav#mainNav .nav-links {
  position: fixed; left: 50%; bottom: 20px; top: auto; right: auto; transform: translateX(-50%);
  display: flex; flex-direction: row; gap: 2px; padding: 6px; margin: 0; list-style: none; width: auto; max-width: calc(100vw - 110px);
  background: rgba(8, 22, 10, .72); border: 1px solid var(--outline); border-radius: 999px;
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 18px 50px -12px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.06); z-index: 130; overflow-x: auto; scrollbar-width: none;
}
html body nav#mainNav .nav-links::-webkit-scrollbar { display: none; }
html body nav#mainNav .nav-links li { padding: 0; border: 0; width: auto; flex: 0 0 auto; }
html body nav#mainNav .nav-links a {
  display: block; padding: 10px 18px; border-radius: 999px; font-size: .82rem; letter-spacing: 0; text-transform: none;
  color: var(--muted); white-space: nowrap; transition: background .25s, color .25s;
}
html body nav#mainNav .nav-links a:hover { color: var(--text); background: rgba(141,255,92,.08); }
html body nav#mainNav .nav-links a.on { color: #041004; background: var(--text); font-weight: 500; }
html body .nav-burger { display: none !important; }

/* ── pill buttons with the glowing dot ── */
html body .nav-cta, html body .btn-primary, html body .btn.btn-primary, html body .modal-submit, html body .form-submit, html body .gate-submit, html body .cta-band .btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 7px 7px 7px 20px; min-height: 46px;
  background: var(--text); color: #041004; border: 0; border-radius: 999px; font-family: var(--font-body);
  font-size: .82rem; font-weight: 500; letter-spacing: 0; text-transform: none; text-decoration: none; cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255,255,255,.2), 0 10px 30px -10px rgba(141,255,92,.45); transition: transform .25s, box-shadow .25s;
}
html body .nav-cta::after, html body .btn-primary::after, html body .modal-submit::after, html body .form-submit::after, html body .gate-submit::after, html body .cta-band .btn::after {
  content: ''; width: 32px; height: 32px; flex: none; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #d9ffbf, var(--accent) 45%, #2f9a2a 100%);
  box-shadow: 0 0 16px var(--accent), 0 0 34px rgba(141,255,92,.5);
}
html body .nav-cta:hover, html body .btn-primary:hover, html body .modal-submit:hover, html body .form-submit:hover, html body .cta-band .btn:hover {
  background: #fff; color: #041004; transform: translateY(-2px); box-shadow: 0 0 0 1px #fff, 0 16px 40px -10px rgba(141,255,92,.7);
}
html body .modal-submit, html body .form-submit { width: auto; justify-content: space-between; }
html body .btn-primary svg, html body .modal-submit svg { display: none; }
html body .btn-ghost, html body .btn.btn-ghost, html body .cta-band .btn-ghost {
  border-radius: 999px; border: 1px solid var(--outline-hover); background: var(--glass); color: var(--text);
  text-transform: none; letter-spacing: 0; font-size: .82rem; padding: 0 22px; min-height: 46px; backdrop-filter: blur(10px);
}
html body .btn-ghost::after { display: none; }
html body .btn-ghost:hover { background: rgba(141,255,92,.12); color: var(--text); border-color: var(--accent); }

/* ── HOME HERO: the particle goat replaces the video ── */
/* hero video stays; it sits behind the particle goat (canvas is z -1, video + shade are z -2) */
html body section.hero .hero-media { z-index: -2; background: #030904; }
html body section.hero .hero-bg { z-index: -2;
  background:
    linear-gradient(90deg, rgba(3,9,4,.94) 0%, rgba(3,9,4,.85) 25%, rgba(3,9,4,.55) 48%, rgba(3,12,5,.35) 70%, rgba(3,9,4,.5) 100%),
    linear-gradient(to top, rgba(3,9,4,1) 0%, rgba(3,9,4,.2) 45%, rgba(3,9,4,.35) 100%); }
html.wg3d-on body .hero-grid, html.wg3d-on body .hero-noise { display: none; }
@media (max-width: 600px) {
  html body section.hero .hero-bg { background: linear-gradient(180deg, rgba(3,9,4,.55) 0%, rgba(3,9,4,.6) 40%, rgba(3,9,4,.95) 100%); }
}
html body section.hero { background: transparent; padding-bottom: clamp(7rem, 14vh, 9rem); }
html body .hero-headline { font-size: clamp(3.4rem, 8.4vw, 8.2rem); line-height: .9; letter-spacing: -0.05em; max-width: 9.5em; }
html body .hero-sub { max-width: 30rem; }
html body .hero-eyebrow, html body .section-eyebrow { align-self: flex-start; width: fit-content; }
html body .partners-header .section-eyebrow, html body .cta-band .section-eyebrow { align-self: center; }
/* no backdrop-filter on the nav: it would trap the fixed bottom menu inside it */
html body nav#mainNav.scrolled { background: rgba(3,10,5,.9); border-bottom: 1px solid var(--outline); height: 68px; }
html body .hero-scroll { color: var(--muted); }
html body .hero-scroll .scroll-line { background: linear-gradient(var(--accent), transparent); }

/* ── INNER PAGE HEROES: banner photos make way for the goat ── */
html.wg3d-on body .page-hero::before { display: none; }
html body .page-hero::after { background: linear-gradient(90deg, rgba(3,9,4,.75) 0%, rgba(3,9,4,.35) 45%, transparent 70%); }
html body .page-hero { background: transparent; border-bottom: 0; min-height: min(88vh, 760px); display: flex; align-items: flex-end; padding-top: 150px; }
html body .page-hero h1 { font-size: clamp(3rem, 7.4vw, 6.6rem); line-height: .92; letter-spacing: -0.05em; }
html body .page-hero .watermark { color: rgba(141,255,92,.035); font-family: var(--font-headline); font-weight: 700; letter-spacing: -.05em; }

/* ── sections become transparent so the scene shows through ── */
html body section, html body footer, html body .cta-band, html body #partners, html body .marquee-strip, html body .stats-row { background: transparent; }
html body .marquee-strip { border-color: var(--outline); background: rgba(6,18,8,.45); backdrop-filter: blur(8px); }
html body .marquee-item { font-family: var(--font-headline); font-weight: 500; letter-spacing: -.01em; font-size: 1.05rem; color: var(--muted); }
html body .marquee-item span { color: var(--accent); text-shadow: 0 0 10px var(--accent); }
html body .cta-band { border-top: 0; text-align: center; }

/* ── glass cards ── */
html body .svc-card, html body .value-card, html body .ind-card, html body .del-card, html body .cm-card, html body .cs-card,
html body .channel-card, html body .contact-item, html body .step, html body .other-pill, html body .contact-form, html body .modal-box,
html body .sp-stage, html body .stats-grid, html body .gallery-section .card, html body .upload-zone, html body .filter-bar, html body .ind-side {
  background: linear-gradient(155deg, rgba(20,48,24,.55), rgba(6,16,8,.55)); border: 1px solid var(--outline); border-radius: var(--r);
  backdrop-filter: blur(16px) saturate(130%); -webkit-backdrop-filter: blur(16px) saturate(130%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 30px 60px -30px rgba(0,0,0,.8); overflow: hidden;
}
html body .wg-tilt { position: relative; transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .3s, box-shadow .3s; transform-style: preserve-3d; will-change: transform; }
html body .wg-tilt::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(141,255,92,.16), transparent 45%); opacity: 0; transition: opacity .3s; }
html body .wg-tilt:hover::before { opacity: 1; }
html body .wg-tilt > * { position: relative; z-index: 1; }
html body .svc-card:hover, html body .value-card:hover, html body .ind-card:hover, html body .del-card:hover, html body .cm-card:hover,
html body .channel-card:hover, html body .contact-item:hover, html body .other-pill:hover {
  border-color: rgba(141,255,92,.45); background: linear-gradient(155deg, rgba(26,62,30,.62), rgba(6,16,8,.6));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 30px 70px -30px rgba(141,255,92,.35);
}
html body .svc-card::after { display: none; }
html body .svc-icon, html body .ci-icon { border-radius: 14px; border-color: rgba(141,255,92,.35); background: rgba(141,255,92,.07); box-shadow: 0 0 22px -6px rgba(141,255,92,.6); }
html body .svc-list li::before { border-radius: 50%; box-shadow: 0 0 8px var(--accent); }
html body .svc-card h3, html body .value-card h3, html body .ind-card h3 { font-family: var(--font-headline); font-weight: 600; letter-spacing: -.025em; }

/* home: services list */
html body .service-item { border-top: 1px solid var(--outline); padding: 1.8rem 1.2rem; border-radius: 18px; transition: background .3s, border-color .3s, transform .3s; }
html body .service-item:hover { background: rgba(141,255,92,.06); border-color: transparent; transform: translateX(8px); }
html body .service-num { font-family: var(--font-headline); color: var(--accent); font-size: .85rem; padding: 6px 10px; border: 1px solid var(--outline); border-radius: 999px; height: fit-content; min-width: 0; }
html body .service-name { font-size: clamp(1.3rem, 2.2vw, 1.8rem); letter-spacing: -.03em; }
html body .service-desc { font-size: .92rem; }

/* home: deliverables + carousel imagery */
html body .del-card { padding: .9rem; }
html body .del-img-wrap, html body .cm-card .cat-photo, html body .cs-card .cat-photo { border-radius: 14px; overflow: hidden; filter: grayscale(.6) brightness(.8) sepia(.2) hue-rotate(50deg); }
html body .del-card:hover .del-img-wrap, html body .cm-card:hover .cat-photo { filter: none; }
html body .del-title { border-bottom: 0; font-size: 1.4rem; padding-bottom: .4rem; }
html body .del-desc { font-size: .9rem; }
html body .carousel-switch { border-radius: 999px; background: var(--glass); backdrop-filter: blur(10px); }
html body .carousel-switch button { border-radius: 999px; }
html body .carousel-switch button.active { background: var(--text); color: #041004; }
html body .cs-arrow, html body .lb-nav, html body .lb-close { border-radius: 50%; background: var(--glass); backdrop-filter: blur(10px); }
html body .sp-item { border-radius: 14px; }
html body .sp-item.active { border-color: var(--accent); background: rgba(141,255,92,.07); }

/* stats */
html body .stats-grid { gap: 0; background: transparent; }
html body .stat-cell { background: transparent; border: 0; border-left: 1px solid var(--outline); border-top: 1px solid var(--outline); }
html body .stat-val, html body .stat-num { font-size: clamp(2.6rem, 4vw, 3.6rem); letter-spacing: -.05em; color: var(--text); text-shadow: 0 0 30px rgba(141,255,92,.35); }
html body .stat-label { color: var(--muted); }

/* channel / contact cards */
html body .channel-card { border-radius: 18px; padding: 1.1rem 1.25rem; }
html body .channel-card.wa-card { border-color: rgba(37,211,102,.3); }
html body .channel-arrow { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(141,255,92,.1); color: var(--accent); }

/* partners marquee */
html body #partners { border-color: var(--outline); }
html body .partner-name { font-family: var(--font-headline); letter-spacing: -.01em; font-weight: 500; }

/* forms */
html body input, html body select, html body textarea {
  border-radius: 14px; background: rgba(3,12,5,.6); border: 1px solid rgba(150,255,130,.16); color: var(--text); font-family: var(--font-body);
}
html body input:focus, html body select:focus, html body textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(141,255,92,.18); }
html body select option { background: #061208; }
html body .modal-overlay { background: rgba(1,6,2,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
html body .modal-box { border-radius: 26px; }
html body .success-icon { border-radius: 50%; box-shadow: 0 0 30px var(--accent-glow); }

/* gallery / industries bits */
html body .filter-btn, html body .other-pill, html body .cat-badge, html body .ind-arrow { border-radius: 999px; }
html body .filter-btn.active, html body .filter-btn.on { background: var(--text); color: #041004; border-color: var(--text); }
html body .ind-card img, html body .card-media, html body .ind-hero-img { border-radius: 16px; }

/* footer */
html body footer { border-top: 1px solid var(--outline); background: linear-gradient(180deg, rgba(3,9,4,0), rgba(4,14,6,.85) 30%); padding-bottom: 7.5rem; }
html body .social-btn { border-radius: 50%; border-color: var(--outline); background: var(--glass); }
html body .social-btn:hover { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 18px -4px var(--accent); }
html body .footer-links h4, html body .footer-col h4 { color: var(--accent); font-family: var(--font-body); font-weight: 500; letter-spacing: .14em; font-size: .68rem; text-transform: uppercase; }

/* misc */
html body .scroll-progress { background: linear-gradient(90deg, var(--forest), var(--accent)); box-shadow: 0 0 12px var(--accent); }
html body ::selection { background: var(--accent); color: #041004; }
html body [data-reveal] { transform: translateY(40px) perspective(800px) rotateX(10deg); transform-origin: 50% 100%; }
html body [data-reveal].in-view { transform: none; }

/* ── responsive ── */
@media (max-width: 900px) {
  html body nav#mainNav .nav-cta { padding: 5px 5px 5px 14px; min-height: 40px; font-size: .75rem; margin-left: auto; }
  html body nav#mainNav .nav-cta::after { width: 28px; height: 28px; }
  html body .page-hero { min-height: 78vh; }
  html body .stat-cell { border-left: 0; }
}
@media (max-width: 600px) {
  html body nav#mainNav .nav-links { bottom: 14px; max-width: calc(100vw - 96px); left: 14px; transform: none; }
  html body nav#mainNav .nav-links a { padding: 10px 13px; font-size: .78rem; }
  html body .wa-float { bottom: 14px; right: 14px; width: 52px; height: 52px; }
  html body .hero-headline { font-size: clamp(2.9rem, 13vw, 4rem); }
  html body .page-hero h1 { font-size: clamp(2.6rem, 12vw, 3.6rem); }
  html body section.hero { padding-bottom: 7rem; }
}
@media (prefers-reduced-motion: reduce) {
  html body .wg-tilt { transform: none !important; }
  html body [data-reveal] { transform: none; }
}

html body #industries, html body #deliverables, html body .process, html body .other-ind { background: transparent; }

/* gallery filter bar sits under the floating nav */
html body .filter-wrap { top: 72px; background: rgba(4,14,6,.72); border-bottom: 1px solid var(--outline); }
html body .card-media { background: #061208; }
html body .lightbox { background: rgba(1,6,2,.92); }
