/* ═══════════════════════════════════════════════════════════
   VASTWORKS — Monochrome Luxury & Liquid Chrome  (v3)
   ═══════════════════════════════════════════════════════════ */

/* ─── RESET & BASE ──────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: initial; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: #000; color: #fff;
  overflow-x: hidden; cursor: none;
}
a { color: inherit; text-decoration: none; cursor: none; }
button { cursor: none; font-family: inherit; }
::selection { background: rgba(255,255,255,0.25); color: #fff; }

/* ─── CUSTOM CURSOR ─────────────────────────────────── */
#cursor-dot {
  position: fixed; top: 0; left: 0; width: 7px; height: 7px;
  background: #fff; border-radius: 50%; pointer-events: none;
  z-index: 99999; transform: translate(-50%, -50%);
  transition: width 0.25s, height 0.25s, background 0.25s;
  mix-blend-mode: difference;
}
#cursor-circle {
  position: fixed; top: 0; left: 0; width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.45); border-radius: 50%;
  pointer-events: none; z-index: 99998; transform: translate(-50%, -50%);
  transition: width 0.35s cubic-bezier(0.25,1,0.5,1), height 0.35s cubic-bezier(0.25,1,0.5,1), border-color 0.25s, background 0.25s;
}
body.cursor-hover #cursor-dot { width: 48px; height: 48px; background: rgba(255,255,255,0.12); mix-blend-mode: normal; }
body.cursor-hover #cursor-circle { width: 52px; height: 52px; border-color: rgba(255,255,255,0.7); }

/* ─── PRELOADER ─────────────────────────────────────── */
#preloader {
  position: fixed; inset: 0; background: #000;
  z-index: 100000; display: flex; align-items: center; justify-content: center;
}
.preloader-inner { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.preloader-logo-wrap {
  position: relative; width: 140px; height: auto;
  display: flex; align-items: center; justify-content: center;
}
.preloader-logo-img {
  width: 100%; height: auto; object-fit: contain;
  display: block;
}
.preloader-counter {
  font-family: 'Space Mono', monospace; font-size: 0.85rem;
  letter-spacing: 0.2em; color: #777;
}
.preloader-percent { color: #555; }
.preloader-line { width: 160px; height: 1px; background: rgba(255,255,255,0.12); overflow: hidden; border-radius: 1px; }
.preloader-line-fill { width: 0%; height: 100%; background: #fff; transition: width 0.08s linear; }

/* ─── THREE.JS CANVAS ───────────────────────────────── */
#three-canvas {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none; opacity: 0.45;
}

/* ─── HEADER ────────────────────────────────────────── */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 36px; mix-blend-mode: difference;
}
.header-logo { display: flex; align-items: center; gap: 12px; }
.header-logo-img { height: 26px; width: auto; object-fit: contain; }
.header-wordmark { font-weight: 800; font-size: 0.8rem; letter-spacing: 0.25em; }
.header-cta {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.3); padding: 8px 20px; border-radius: 100px;
  transition: background 0.35s, color 0.35s, border-color 0.35s;
  position: relative; overflow: hidden;
}
.header-cta:hover { background: #fff; color: #000; border-color: #fff; }

/* ─── HERO ──────────────────────────────────────────── */
#hero {
  position: relative; z-index: 1;
  min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  padding: 120px 32px 80px;
}
.hero-inner { text-align: center; max-width: 1200px; width: 100%; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Space Mono', monospace; font-size: 0.68rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: #888;
  border: 1px solid rgba(255,255,255,0.12); padding: 8px 20px;
  border-radius: 100px; margin-bottom: 28px;
  opacity: 0; transform: translateY(20px);
}
.badge-dot {
  width: 6px; height: 6px; background: #fff; border-radius: 50%;
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.4); }
}
.hero-title {
  font-size: clamp(2.5rem, 5.4vw, 4.6rem); font-weight: 900;
  line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 24px;
}
.hero-title:not(.lines-initialized) { visibility: hidden; }
.hero-title .line { display: block; overflow: hidden; white-space: nowrap; }
.hero-title .line-inner { display: block; transform: translateY(110%); }
.hero-sub {
  font-size: 1.15rem; line-height: 1.7; color: #999;
  max-width: 640px; margin: 0 auto 36px;
  opacity: 0; transform: translateY(25px);
}
.hero-cta-group {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; flex-wrap: wrap;
  opacity: 0; transform: translateY(25px);
}

/* ─── BUTTONS ───────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em;
  background: #fff; color: #000; padding: 15px 34px; border-radius: 100px;
  transition: transform 0.35s cubic-bezier(0.25,1,0.5,1), box-shadow 0.35s;
  position: relative; overflow: hidden;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(255,255,255,0.18); }
.btn-ghost {
  display: inline-flex; align-items: center;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em;
  border: 1px solid rgba(255,255,255,0.22); padding: 15px 34px; border-radius: 100px;
  color: #ccc; transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.6); color: #fff; background: rgba(255,255,255,0.06); }

/* ─── ABOUT / MISSION SECTION (Redesigned) ───────────── */
#statement {
  position: relative; z-index: 1;
  padding: 100px 32px 80px;
  display: flex; align-items: center; justify-content: center;
}
.statement-inner { max-width: 1000px; width: 100%; text-align: center; }
.statement-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800; line-height: 1.15; letter-spacing: -0.025em;
  margin-bottom: 20px;
}
.gradient-text {
  background: linear-gradient(90deg, #ffffff 0%, #a1a1aa 50%, #ffffff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.statement-lead {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 300; line-height: 1.65; color: #888;
  max-width: 820px; margin: 0 auto 40px;
}
.statement-lead .word { display: inline-block; margin-right: 0.25em; transition: color 0.3s; }
.statement-lead .word.revealed { color: #fff; }

/* 3-Pillars Grid */
.pillars-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px; text-align: left;
}
.pillar-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px; padding: 26px 22px;
  position: relative; overflow: hidden;
  transition: border-color 0.4s, background 0.4s, transform 0.4s;
}
.pillar-card:hover {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.04);
  transform: translateY(-3px);
}
.pillar-icon {
  width: 30px; height: 30px; color: #aaa;
  margin-bottom: 14px;
}
.pillar-icon svg { width: 100%; height: 100%; }
.pillar-card h4 {
  font-size: 1.05rem; font-weight: 700;
  margin-bottom: 8px; letter-spacing: -0.01em; color: #fff;
}
.pillar-card p {
  font-size: 0.82rem; color: #777; line-height: 1.6;
}

/* ─── SECTION LABELS ────────────────────────────────── */
.section-label {
  display: flex; align-items: center; gap: 14px; margin-bottom: 28px;
  font-family: 'Space Mono', monospace; font-size: 0.65rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: #666;
}
.section-label.center-label { justify-content: center; }
.label-line { width: 32px; height: 1px; background: rgba(255,255,255,0.25); }

/* ─── CAPABILITIES (Bento Grid) ─────────────────────── */
#capabilities {
  position: relative; z-index: 1; padding: 50px 32px 60px;
  max-width: 1080px; margin: 0 auto;
}
.bento-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.bento-card {
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px; padding: 30px; position: relative; overflow: hidden;
  transition: border-color 0.4s, background 0.4s, transform 0.5s cubic-bezier(0.25,1,0.5,1);
}
.bento-card:hover { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.04); }
.bento-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(450px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.06), transparent 40%);
  opacity: 0; transition: opacity 0.4s; pointer-events: none;
}
.bento-card:hover::before { opacity: 1; }
.bento-large { grid-column: span 2; }
.card-icon { width: 34px; height: 34px; color: #888; margin-bottom: 16px; }
.card-icon svg { width: 100%; height: 100%; }
.bento-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.02em; }
.bento-card p { font-size: 0.9rem; color: #777; line-height: 1.65; max-width: 520px; }

/* ─── INDUSTRIES (Clean & Crisp) ─────────────────────── */
#industries {
  position: relative; z-index: 1; padding: 50px 32px 60px;
  max-width: 1080px; margin: 0 auto;
}
.industries-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.industry-card {
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px; padding: 30px 24px; position: relative; overflow: hidden;
  transition: border-color 0.4s, transform 0.5s cubic-bezier(0.25,1,0.5,1);
}
.industry-card:hover { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.035); }
.industry-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(350px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.05), transparent 40%);
  opacity: 0; transition: opacity 0.4s; pointer-events: none;
}
.industry-card:hover::before { opacity: 1; }
.industry-icon { width: 30px; height: 30px; color: #888; margin-bottom: 16px; }
.industry-icon svg { width: 100%; height: 100%; }
.industry-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.02em; }
.industry-card p { font-size: 0.85rem; color: #777; line-height: 1.65; }

/* ─── MARQUEE ───────────────────────────────────────── */
#marquee { position: relative; z-index: 1; padding: 40px 0; overflow: hidden; }
.marquee-track {
  display: flex; width: max-content;
  animation: marqueeScroll 28s linear infinite; margin-bottom: 10px;
}
.marquee-track.marquee-reverse { animation: marqueeScrollReverse 36s linear infinite; }
.marquee-content { display: flex; align-items: center; gap: 28px; padding: 0 14px; flex-shrink: 0; }
.marquee-content span {
  font-size: clamp(1.2rem, 2.4vw, 2rem); font-weight: 800;
  letter-spacing: 0.05em; white-space: nowrap;
  color: rgba(255,255,255,0.07); transition: color 0.3s;
}
.marquee-content span:hover { color: rgba(255,255,255,0.35); }
.marquee-dot { font-size: 0.4rem !important; color: rgba(255,255,255,0.15) !important; }
@keyframes marqueeScroll { to { transform: translateX(-50%); } }
@keyframes marqueeScrollReverse { to { transform: translateX(50%); } }

/* ─── CONTACT (Crazy Kinetic Email) ─────────────────── */
#contact { position: relative; z-index: 1; padding: 60px 32px 50px; overflow: hidden; }
.contact-inner { max-width: 740px; margin: 0 auto; text-align: center; }
.contact-label {
  display: flex; align-items: center; gap: 14px; justify-content: center;
  margin-bottom: 16px; font-family: 'Space Mono', monospace; font-size: 0.65rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: #666;
}
.contact-headline {
  font-size: clamp(1.8rem, 4.5vw, 3.4rem); font-weight: 900;
  line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 12px;
}
.contact-headline .line { display: block; overflow: hidden; }
.contact-headline .line-inner { display: block; transform: translateY(110%); }
.contact-sub { font-size: 0.95rem; color: #666; margin-bottom: 34px; }

/* Email Deck */
.email-deck {
  position: relative; border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px; padding: 30px; background: rgba(255,255,255,0.02);
  overflow: hidden; transition: border-color 0.4s, box-shadow 0.4s;
  max-width: 500px; margin: 0 auto 50px;
}
.email-deck:hover { border-color: rgba(255,255,255,0.22); box-shadow: 0 0 50px rgba(255,255,255,0.05); }
#email-particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.email-deck-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.email-meta { font-family: 'Space Mono', monospace; font-size: 0.55rem; letter-spacing: 0.2em; text-transform: uppercase; color: #555; }
.email-protocol { display: flex; align-items: center; gap: 8px; }
.protocol-dot { width: 6px; height: 6px; background: #4ade80; border-radius: 50%; animation: pulseDot 2s ease-in-out infinite; }
.email-address {
  font-family: 'Space Mono', monospace; font-size: clamp(1.1rem, 2.6vw, 1.55rem);
  font-weight: 700; letter-spacing: 0.04em; user-select: all;
  cursor: pointer; transition: text-shadow 0.3s;
}
.email-address:hover { text-shadow: 0 0 20px rgba(255,255,255,0.3); }
.email-copy-btn {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  color: #aaa; font-family: 'Space Mono', monospace; font-size: 0.65rem;
  letter-spacing: 0.1em; padding: 9px 20px; border-radius: 100px;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s;
}
.email-copy-btn:hover { background: #fff; color: #000; border-color: #fff; transform: scale(1.05); }
.email-copy-btn.copied { background: #4ade80; color: #000; border-color: #4ade80; }
.copy-icon { width: 14px; height: 14px; display: flex; }
.copy-icon svg { width: 100%; height: 100%; }
.email-deck-footer {
  position: relative; z-index: 1; display: flex; justify-content: space-between;
  font-family: 'Space Mono', monospace; font-size: 0.5rem;
  letter-spacing: 0.1em; color: #444;
  margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.05);
}
.email-deck-footer > span { display: flex; align-items: center; gap: 6px; }
.footer-pulse { width: 5px; height: 5px; background: #4ade80; border-radius: 50%; animation: pulseDot 2s ease-in-out infinite; }

/* Large kinetic contact text */
.contact-big-text {
  font-size: clamp(3.2rem, 13vw, 10rem); font-weight: 900;
  letter-spacing: -0.04em; color: rgba(255,255,255,0.03);
  display: flex; justify-content: center; gap: 0.08em;
  line-height: 1; user-select: none;
}
.contact-big-text span { display: inline-block; transition: color 0.4s, text-shadow 0.4s, transform 0.4s; }
.contact-big-text span:hover { color: rgba(255,255,255,0.12); text-shadow: 0 0 60px rgba(255,255,255,0.1); }

/* ─── FOOTER ────────────────────────────────────────── */
#site-footer { position: relative; z-index: 1; border-top: 1px solid rgba(255,255,255,0.06); padding: 28px 36px; }
.footer-inner { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 0.7rem; letter-spacing: 0.2em; }
.footer-logo { height: 18px; width: auto; object-fit: contain; opacity: 0.7; }
.footer-copy { font-size: 0.65rem; color: #444; }
.footer-tagline { font-family: 'Space Mono', monospace; font-size: 0.55rem; color: #333; letter-spacing: 0.1em; }

/* ─── RESPONSIVE ────────────────────────────────────── */
@media (max-width: 900px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-large { grid-column: span 1; }
  .pillars-grid { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
  #site-header { padding: 14px 18px; }
  #hero { min-height: 100vh; min-height: 100dvh; padding: 100px 20px 60px; }
  #statement { padding: 70px 20px; }
  #capabilities, #industries { padding: 40px 20px; }
  #contact { padding: 50px 20px 40px; }
  .email-deck-footer { flex-direction: column; gap: 6px; align-items: center; }
  .email-deck { padding: 22px 16px; }
}
@media (max-width: 600px) {
  #cursor-dot, #cursor-circle { display: none; }
  body { cursor: auto; }
  a, button { cursor: pointer; }
  .hero-cta-group { flex-direction: column; }
  .contact-big-text { font-size: 3rem; }
  .hero-title .line { white-space: normal; }
}
