/* ============================ HOME ============================ */

/* Preloader */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg-0);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}
#preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.pl-inner { text-align: center; width: 90%; max-width: 360px; }
.pl-logo {
  font-size: 2rem; font-weight: 800; letter-spacing: 0.34em;
  margin-bottom: 30px;
}
.pl-track { height: 2px; background: rgba(255,255,255,0.08); border-radius: 4px; overflow: hidden; }
.pl-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--amber), var(--cyan)); box-shadow: 0 0 12px var(--amber-glow); transition: width 0.2s; }
.pl-pct { margin-top: 14px; font-size: 0.78rem; letter-spacing: 0.2em; color: var(--text-dim); text-transform: uppercase; }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(4,5,10,0.55) 0%, rgba(4,5,10,0.25) 40%, var(--bg-0) 96%),
    linear-gradient(90deg, rgba(4,5,10,0.8) 0%, transparent 60%);
}
.hero-inner {
  padding-top: 140px;
  padding-bottom: 40px;
  max-width: 720px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 22px 0 24px;
  font-weight: 300;
}
.hero h1 b { font-weight: 600; }
.hero h1 .accent {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(120deg, var(--amber-soft), var(--amber));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p.lead {
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-actions-mobile { display: none; }
.hero-actions-desktop { display: flex; margin-left: auto; }

.hero-stats {
  position: relative;
  padding-bottom: 40px;
  z-index: 2;
  width: 100%;
}
.hero-stats .container {
  display: flex;
  gap: 46px;
  flex-wrap: wrap;
  align-items: center;
  border-top: 1px solid var(--glass-border);
  padding-top: 26px;
}
.hstat .num { font-size: 2rem; font-weight: 700; font-family: var(--font-display); }
.hstat .lbl { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); margin-top: 2px; }

.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-dim);
  z-index: 3; display: none;
}

/* Scroll cinematic (frame sequence) — clean, no text overlay */
.cinematic { position: relative; height: 340vh; background: var(--bg-0); }
.cinematic .sticky {
  position: sticky; top: 0; height: 100vh; width: 100%;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
#cine-canvas { width: 100%; height: 100%; object-fit: cover; display: block; }
.cine-overlay { position: relative; margin-top: -100vh; pointer-events: none; z-index: 2; }
.cine-panel { height: 100vh; display: flex; align-items: center; padding: 0 8vw; }
.cine-panel.right { justify-content: flex-end; }
.cine-panel.center { justify-content: center; text-align: center; }
.cine-card {
  pointer-events: auto;
  max-width: 460px;
  padding: 40px;
  border-radius: 24px;
  background: rgba(8, 10, 18, 0.55);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  box-shadow: 0 24px 60px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.14);
  opacity: 0; transform: translateY(50px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.cine-panel.center .cine-card { max-width: 620px; }
.cine-panel.active .cine-card { opacity: 1; transform: none; }
.cine-card h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 300; letter-spacing: -0.02em; margin: 14px 0 14px; }
.cine-card h2 b { font-weight: 600; }
.cine-card p { color: var(--text-muted); font-size: 0.98rem; }
.cine-card p + p { margin-top: 12px; font-size: 0.88rem; opacity: 0.85; }

/* Generic section */
.section { padding: 120px 0; position: relative; z-index: 5; }
.section-head { max-width: 620px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 300; letter-spacing: -0.02em; margin-top: 16px;
}
.section-head h2 b { font-weight: 600; }
.section-head p { color: var(--text-muted); margin-top: 16px; font-size: 1.02rem; }

/* Pillars grid */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar {
  padding: 34px 30px;
  border-radius: 22px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  position: relative; overflow: hidden;
}
.pillar:hover { transform: translateY(-8px); border-color: rgba(249,115,22,0.35); box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 30px rgba(249,115,22,0.08); }
.pillar .ic {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 22px;
  display: grid; place-items: center; font-size: 1.4rem;
  background: rgba(249,115,22,0.1); border: 1px solid rgba(249,115,22,0.25);
}
.pillar h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 10px; }
.pillar p { color: var(--text-muted); font-size: 0.92rem; }

/* Split feature cards linking to dept/team */
.explore-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.explore-card {
  position: relative; min-height: 380px; border-radius: 26px; overflow: hidden;
  border: 1px solid var(--glass-border); display: flex; align-items: flex-end;
  isolation: isolate;
}
.explore-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.7s var(--ease); }
.explore-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 20%, rgba(4,5,10,0.55) 55%, rgba(4,5,10,0.95) 100%); }
.explore-card:hover img { transform: scale(1.06); }
.explore-card .body { padding: 36px; }
.explore-card .eyebrow { margin-bottom: 12px; }
.explore-card h3 { font-size: 1.8rem; font-weight: 400; font-family: var(--font-display); margin-bottom: 10px; }
.explore-card p { color: var(--text-muted); font-size: 0.95rem; max-width: 420px; margin-bottom: 18px; }
.explore-card .go { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.86rem; color: var(--amber); }

/* CTA band */
.cta-band { padding: 100px 0; position: relative; z-index: 5; }
.cta-inner {
  position: relative; overflow: hidden;
  border-radius: 34px; padding: 84px 40px; text-align: center;
  background: linear-gradient(135deg, var(--bg-2), rgba(249,115,22,0.06));
  border: 1px solid var(--glass-border);
}
.cta-inner .glow { position: absolute; top: -40%; left: 50%; transform: translateX(-50%); width: 460px; height: 460px; background: radial-gradient(circle, var(--amber-glow), transparent 70%); filter: blur(50px); opacity: 0.5; }
.cta-inner h2 { position: relative; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 300; letter-spacing: -0.02em; margin-bottom: 18px; }
.cta-inner h2 b { font-weight: 600; }
.cta-inner p { position: relative; color: var(--text-muted); max-width: 540px; margin: 0 auto 34px; font-size: 1.05rem; }
.cta-inner .hero-actions { position: relative; justify-content: center; }

@media (max-width: 1200px) {
  .hero-stats .container {
    justify-content: center;
    gap: 32px;
  }
  .hero-actions-desktop {
    order: -1;
    width: 100%;
    justify-content: center;
    margin-bottom: 24px;
    margin-left: 0;
  }
}

@media (max-width: 900px) {
  .pillars { grid-template-columns: 1fr; }
  .explore-grid { grid-template-columns: 1fr; }
  .scroll-hint { display: block; }
  .hero-actions-desktop { display: none !important; }
  .hero-actions-mobile { display: flex; }
  .hero-stats .container {
    padding-top: 18px;
    gap: 20px 30px;
    justify-content: center;
  }
  .hstat {
    text-align: center;
  }
  .cinematic { height: 100vh; }
  #cine-canvas { display: none !important; }
  .cinematic .sticky {
    background: url('../img/static-bg.jpeg') no-repeat center center / cover;
  }
}

@media (max-width: 480px) {
  .hstat .num { font-size: 1.7rem; }
  .hstat .lbl { font-size: 0.68rem; }
}
