/* ============================================================
   VNLOC — styles.css  (v2 — scroll-driven 3D mining story)
   ============================================================ */

/* ── Reset & Variables ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #06060E;
  --glass:    rgba(8, 8, 20, 0.42);
  --glass2:   rgba(12, 12, 28, 0.55);
  --border:   rgba(255,255,255,0.09);
  --text:     #EEF0F8;
  --dim:      rgba(238,240,248,0.55);
  --gold:     #F5C300;
  --goldd:    #C9A000;
  --red:      #D01012;
  --blue:     #006DB7;
  --green:    #00A650;
  --fh:       'Space Grotesk', sans-serif;
  --fb:       'Inter', sans-serif;
  --r:        8px;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--fb);
  line-height: 1.65;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ── Fixed Canvas ───────────────────────────────────────────── */
#c {
  position: fixed;
  inset: 0;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 0;
  display: block;
}

/* ── Vignette — soft fade to site theme colour at edges ────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%,
    transparent 55%,
    rgba(6,6,14,0.35) 78%,
    rgba(6,6,14,0.75) 100%);
}

/* ── Navigation ─────────────────────────────────────────────── */
#nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  padding: 0;
  transition: background .35s, backdrop-filter .35s;
}

#nav.solid {
  background: rgba(6,6,14,.65);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 58px;
  width: auto;
  transition: opacity .2s, transform .2s;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}
.nav-logo:hover img { opacity: .88; transform: scale(1.04); }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-brand {
  font-family: var(--fh);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .04em;
}

#navlinks {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}
#navlinks a {
  font-family: var(--fh);
  font-size: .85rem;
  font-weight: 500;
  color: rgba(238,240,248,.75);
  transition: color .2s;
}
#navlinks a:hover { color: var(--gold); }

.nav-pill {
  background: var(--gold) !important;
  color: #000 !important;
  padding: .4rem 1.1rem;
  border-radius: 99px;
  font-weight: 700 !important;
  transition: background .2s, transform .15s !important;
}
.nav-pill:hover { background: var(--goldd) !important; transform: translateY(-1px); }

#burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
#burger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }

/* ── Scroll Story Layout ─────────────────────────────────────── */
#story {
  position: relative;
  z-index: 10;
  pointer-events: none;   /* let clicks through to canvas by default */
}

.ss {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Glassmorphism Card ──────────────────────────────────────── */
.card {
  pointer-events: auto;
  background: var(--glass);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 44px 48px;
  max-width: 520px;
  box-shadow: 0 24px 80px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.06);
  transition: opacity .5s, transform .5s;
}

.card-hero {
  max-width: 700px;
  text-align: center;
  background: rgba(6,6,14,.30);
  border: 1px solid rgba(245,195,0,.12);
}

.hero-logo {
  display: block;
  height: 130px;
  width: auto;
  margin: 0 auto 24px;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.8));
}

.card-left  { margin-left: 6vw;  margin-right: auto; align-self: center; }
.card-right { margin-right: 6vw; margin-left: auto;  align-self: center; }
.card-center { align-self: center; }
.card-split {
  max-width: 1100px;
  width: 94vw;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 56px;
  align-items: start;
}
.card-impact {
  max-width: 780px;
  text-align: center;
}

/* ── Typography ─────────────────────────────────────────────── */
.g { color: var(--gold); }

h2 {
  font-family: var(--fh);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: .85rem;
}

p { color: var(--dim); font-size: .95rem; margin-bottom: .75rem; }
p strong { color: var(--text); }

.badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(245,195,0,.3);
  border-radius: 99px;
  padding: .28em 1em;
  margin-bottom: 1rem;
}

.scene-chip {
  display: inline-block;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(238,240,248,.4);
  margin-bottom: .4rem;
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero-h1 {
  font-family: var(--fh);
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 700;
  line-height: .92;
  letter-spacing: -0.03em;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: clamp(.85rem, 1.8vw, 1rem);
  color: rgba(238,240,248,.5);
  letter-spacing: .08em;
  margin-bottom: 2rem;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: .45;
}
.scroll-hint span { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.sh-icon {
  width: 24px; height: 40px;
  border: 2px solid rgba(245,195,0,.4);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.sh-dot {
  width: 5px; height: 5px;
  background: var(--gold);
  border-radius: 50%;
  animation: scrollDot 2s ease-in-out infinite;
}
@keyframes scrollDot {
  0%,100% { transform: translateY(0); opacity:1; }
  80%      { transform: translateY(14px); opacity:.2; }
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .75rem 1.75rem;
  background: var(--gold);
  color: #000;
  font-family: var(--fh);
  font-size: .875rem;
  font-weight: 700;
  border-radius: var(--r);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s, transform .2s;
  pointer-events: auto;
}
.btn-gold:hover { background: var(--goldd); transform: translateY(-2px); }

.btn-glass {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .75rem 1.75rem;
  background: rgba(255,255,255,.07);
  color: var(--text);
  font-family: var(--fh);
  font-size: .875rem;
  font-weight: 600;
  border-radius: var(--r);
  border: 1px solid rgba(255,255,255,.15);
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
  pointer-events: auto;
}
.btn-glass:hover { background: rgba(255,255,255,.12); border-color: var(--gold); transform: translateY(-2px); }

/* ── Stat Row ────────────────────────────────────────────────── */
.stat-row { display: flex; gap: 2.5rem; margin-top: 1.5rem; flex-wrap: wrap; }
.sn {
  font-family: var(--fh);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.sl { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); margin-top: .25rem; }

/* ── Feature list ────────────────────────────────────────────── */
.feat-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.feat-list li {
  font-size: .875rem;
  color: var(--dim);
  padding-left: 1.2rem;
  position: relative;
}
.feat-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: .75rem;
  top: .05rem;
}

/* ── Scene Annotations ───────────────────────────────────────── */
.ann {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0;
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .6s ease, transform .6s ease;
}
.ann.visible { opacity: 1; transform: none; }

.ann-right  { right: 7vw;  top: 35%; flex-direction: row-reverse; }
.ann-right2 { right: 7vw;  top: 58%; flex-direction: row-reverse; }
.ann-left   { left: 7vw;   top: 40%; }

.ann-bubble {
  background: var(--glass2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 18px;
  backdrop-filter: blur(16px);
  text-align: center;
  min-width: 110px;
}
.ann-metric {
  font-family: var(--fh);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.ann-label {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--dim);
  margin-top: 3px;
}
.ann-line {
  width: 40px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(245,195,0,.4));
}
.ann-right .ann-line  { background: linear-gradient(to left,  transparent, rgba(245,195,0,.4)); }

/* ── Services grid section (sticky) ────────────────────────── */
.ss-full { display: block; }

.sticky-panel {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.services-wrap,
.values-wrap {
  width: min(1200px, 95vw);
  background: var(--glass2);
  backdrop-filter: blur(28px) saturate(1.5);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 52px 48px;
  box-shadow: 0 32px 100px rgba(0,0,0,.65);
}

.sec-head {
  text-align: center;
  margin-bottom: 40px;
}
.sec-head h2 { margin-bottom: .3rem; }
.sec-head p  { font-size: .9rem; color: var(--dim); }

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.svc-g-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px;
  padding: 22px 18px;
  position: relative;
  transition: border-color .25s, background .25s;
}
.svc-g-card:hover {
  border-color: rgba(245,195,0,.25);
  background: rgba(245,195,0,.04);
}

.svc-num {
  position: absolute;
  top: 12px; right: 14px;
  font-family: var(--fh);
  font-size: .68rem;
  font-weight: 700;
  color: rgba(245,195,0,.25);
}

.svc-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.svc-analytics { background:rgba(245,195,0,.12);  font-size:24px; }
.svc-ai        { background:rgba(208,16,18,.12);  font-size:24px; }
.svc-genai     { background:rgba(155,89,182,.12); font-size:24px; }
.svc-ore       { background:rgba(176,104,32,.15); font-size:24px; }
.svc-spatial   { background:rgba(0,109,183,.12);  font-size:24px; }
.svc-ops       { background:rgba(255,107,0,.12);  font-size:24px; }
.svc-ds        { background:rgba(0,166,80,.12);   font-size:24px; }
.svc-dash      { background:rgba(245,195,0,.08);  font-size:24px; }
.svc-cv        { background:rgba(0,109,183,.12);  font-size:24px; }

.svc-g-card h3 {
  font-family: var(--fh);
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: .4rem;
}
.svc-g-card p  { font-size: .8rem; color: var(--dim); line-height: 1.55; margin: 0; }

/* ── Values grid ─────────────────────────────────────────────── */
.val-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.val-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-left: 3px solid var(--vc);
  border-radius: 10px;
  padding: 22px 18px;
  transition: background .25s;
}
.val-card:hover { background: rgba(255,255,255,.055); }
.vc-icon { font-size: 28px; margin-bottom: 12px; display: block; line-height: 1; }
.val-card h3 { font-family: var(--fh); font-size: .95rem; font-weight: 600; color: var(--vc); margin-bottom: .4rem; }
.val-card p  { font-size: .8rem; color: var(--dim); line-height: 1.55; margin: 0; }

/* ── Impact Flow ─────────────────────────────────────────────── */
.impact-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.if-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.if-node > span {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--dim);
}

.if-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 72px;
  height: 72px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 16px;
  font-size: 32px;
  line-height: 1;
}
.if-icon-contract { background: rgba(74,144,217,.1); border-color: rgba(74,144,217,.25); }
.if-icon-vnloc    { background: rgba(208,16,18,.1);  border-color: rgba(208,16,18,.25);  }
.if-icon-community{ background: rgba(0,166,80,.1);   border-color: rgba(0,166,80,.25);   }

.if-arrow {
  color: var(--dim);
  padding: 0 16px;
  margin-top: -18px;
}
.if-arrow svg { width: 60px; }
.if-arrow-accent { color: var(--gold); position: relative; }
.if-pct {
  font-family: var(--fh);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  text-align: center;
  margin-bottom: 2px;
  text-shadow: 0 0 20px rgba(245,195,0,.5);
}

/* ── Contact ─────────────────────────────────────────────────── */
.contact-info { }
.contact-info h2 { margin-bottom: 1.2rem; }

.c-items { display: flex; flex-direction: column; gap: 16px; margin-top: 1.2rem; }
.c-item  { display: flex; flex-direction: column; gap: 3px; }
.c-lbl { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); }
.c-val { font-size: .9rem; }
.c-link:hover { color: var(--gold); }

.contact-form { }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.f-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.f-group label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); }
.f-group input,
.f-group textarea {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .7rem 1rem;
  color: var(--text);
  font-family: var(--fb);
  font-size: .875rem;
  outline: none;
  width: 100%;
  transition: border-color .2s;
}
.f-group input:focus,
.f-group textarea:focus { border-color: var(--gold); }
.f-group input::placeholder,
.f-group textarea::placeholder { color: rgba(238,240,248,.3); }
.f-group textarea { resize: vertical; min-height: 100px; }
.contact-form .btn-gold { margin-top: 4px; }

/* ── Footer ──────────────────────────────────────────────────── */
#footer {
  position: relative;
  z-index: 10;
  background: rgba(6,6,14,.97);
  border-top: 1px solid var(--border);
  padding: 64px 0 40px;
  pointer-events: auto;
}
.ft-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 48px;
}
.ft-logo {
  height: 72px;
  width: auto;
  margin-bottom: 12px;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.6));
}
.ft-tag  { font-family: var(--fh); font-size: .9rem; color: var(--gold); margin-bottom: 8px; }
.ft-copy { font-size: .78rem; color: var(--dim); line-height: 1.6; }
.ft-col h4 {
  font-family: var(--fh);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 14px;
}
.ft-col ul { display: flex; flex-direction: column; gap: 8px; }
.ft-col li, .ft-col p, .ft-col a {
  font-size: .85rem;
  color: var(--dim);
  transition: color .2s;
}
.ft-col a:hover, .ft-col li a:hover { color: var(--gold); }
.ft-col { display: flex; flex-direction: column; gap: 6px; }

/* ── Loading screen ──────────────────────────────────────────── */
#loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  transition: opacity .6s ease;
}
#loader.hidden { opacity: 0; pointer-events: none; }
.loader-logo { height: 42px; filter: brightness(0) invert(1); animation: pulse 1.5s ease-in-out infinite; }
.loader-bar {
  width: 200px;
  height: 2px;
  background: rgba(255,255,255,.1);
  border-radius: 2px;
  overflow: hidden;
}
.loader-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 2px;
  animation: load 2.5s ease forwards;
}
.loader-text { font-size: .75rem; color: var(--dim); letter-spacing: .1em; text-transform: uppercase; }
@keyframes load    { from{width:0} to{width:100%} }
@keyframes pulse   { 0%,100%{opacity:.6} 50%{opacity:1} }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .val-grid { grid-template-columns: repeat(2, 1fr); }
  .card-split { grid-template-columns: 1fr; gap: 32px; }
  .ft-inner   { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  #navlinks { display: none; flex-direction: column; gap: 1.2rem;
    position: absolute; top: 68px; left: 0; right: 0;
    background: rgba(6,6,14,.97); padding: 24px 28px;
    border-bottom: 1px solid var(--border); }
  #navlinks.open { display: flex; }
  #burger { display: flex; }

  .card { padding: 28px 22px; max-width: 90vw; }
  .card-left  { margin-left: 4vw; }
  .card-right { margin-right: 4vw; }

  .impact-flow { flex-direction: column; gap: 12px; }
  .if-arrow { transform: rotate(90deg); padding: 0 8px; }

  .svc-grid { grid-template-columns: 1fr; }
  .val-grid { grid-template-columns: 1fr; }
  .services-wrap, .values-wrap { padding: 28px 20px; }

  .ann { display: none; }
  .f-row { grid-template-columns: 1fr; }
  .ft-inner { grid-template-columns: 1fr; }
  .hero-h1 { font-size: clamp(3rem, 14vw, 6rem); }
}
