:root{
  --text:#ffffff;
  --muted:rgba(255,255,255,.75);
  --line:rgba(255,255,255,.18);
  --max:1120px;

  /* JS sets this to the REAL header height (including wraps) */
  --header-h: 260px; /* fallback */
}

*{box-sizing:border-box;}
html,body{height:100%;margin:0;}
body{
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:#000;
  color:var(--text);

  /* FIX: all pages start below fixed header */
  padding-top: var(--header-h);
}

a{color:inherit;text-decoration:none;}

/* ================= HEADER (FIXED) ================= */
.site-header{
  position:fixed;
  top:0;left:0;right:0;
  z-index:50;
  pointer-events:none;
}

.topbar{
  padding:18px 18px 0;
  pointer-events:auto;

  /* Keep video visible behind header */
  background:transparent;
}

.topbar-inner{
  max-width:var(--max);
  margin:0 auto;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:14px;
}

.nav{
  display:flex;
  gap:14px;
  align-items:center;
  font-size:14px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--muted);
  flex-wrap:wrap;
}

.nav a{
  padding:8px 10px;
  border-radius:999px;
}
.nav a:hover{
  background:rgba(255,255,255,.10);
  color:#fff;
}

.brand{
  display:grid;
  place-items:center;
}

.logo{
  width:170px;
  max-width:72vw;
  height:auto;
  display:block;
  filter:drop-shadow(0 14px 30px rgba(0,0,0,.55));
}

/* keeps logo perfectly centered */
.topbar-spacer{}

/* ================= CONTACT STRIP ================= */
.contact-strip{
  max-width:var(--max);
  margin:12px auto 0;
  padding:10px 12px;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);

  display:flex;
  flex-wrap:wrap;
  gap:10px 16px;
  align-items:center;
  justify-content:space-between;

  color:rgba(255,255,255,.85);
  font-size:14px;
  pointer-events:auto;

  /* light glass so video still reads */
  background: rgba(0,0,0,.12);
}

.contact-strip .left{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
}
.contact-strip .right{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.pill{
  display:inline-flex;
  gap:8px;
  align-items:center;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(0,0,0,.12);
}

/* ================= HERO VIDEO ================= */
.hero{
  position:relative;
  min-height:100svh;
  overflow:hidden;
  background:#000;
}

.bgvid{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0;
  transition:opacity 900ms ease;
  transform:scale(1.02);
}
.bgvid.is-active{opacity:1;}

/* NO OVERLAY AT ALL */
.hero::before{
  content:none !important;
}

/* ================= HERO TEXT ================= */
.hero-inner{
  position:relative;
  z-index:2;
  max-width:var(--max);
  margin:0 auto;
  padding: 24px 18px 60px;
  display:grid;
  gap:16px;
}

h1{
  margin:0;
  font-size:clamp(34px,5vw,62px);
  line-height:1.02;
  letter-spacing:-.02em;
  max-width:18ch;
}

.sub{
  margin:8px 0 0;
  max-width:62ch;
  color:var(--muted);
  font-size:clamp(15px,1.6vw,18px);
}

.cta-row{
  margin-top:14px;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.btn{
  display:inline-flex;
  gap:10px;
  align-items:center;
  justify-content:center;
  padding:12px 16px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.20);
  background:rgba(255,255,255,.10);
  font-weight:700;
}
.btn.primary{
  background:#fff;
  color:#0b0f14;
}
.btn:hover{
  transform:translateY(-1px);
  transition:transform .15s ease;
}

.autoplay-note{
  display:none;
  margin-top:10px;
  font-size:12px;
  color:rgba(255,255,255,.75);
}
.autoplay-note.show{display:block;}

/* ================= INNER PAGES ================= */
.content{
  position:relative;
  z-index:2;
  max-width:var(--max);
  margin:0 auto;
  padding: 24px 18px 80px;
}

.section-title{
  margin:0 0 12px;
  font-size:34px;
  letter-spacing:-.01em;
}

.copy{
  color:rgba(255,255,255,.80);
  max-width:75ch;
  font-size:16px;
  line-height:1.65;
  margin:0 0 14px;
}

.muted{
  color:rgba(255,255,255,.70);
  font-size:14px;
}

/* CONTACT GRID */
.contact-grid{
  margin-top:18px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
}

.contact-card{
  border:1px solid rgba(255,255,255,.16);
  background:rgba(0,0,0,.22);
  border-radius:16px;
  padding:14px;
  backdrop-filter:blur(10px);
}

.contact-card h3{
  margin:0 0 8px;
  font-size:14px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:rgba(255,255,255,.80);
}

.contact-card p{ margin:0 0 8px; }

.contact-card a{
  text-decoration:underline;
  text-underline-offset:3px;
}

@media (max-width:900px){
  .contact-grid{grid-template-columns:1fr;}
}

/* ================= FOOTER ================= */
footer{
  position:relative;
  z-index:2;
  border-top:1px solid var(--line);
  padding:18px;
  color:rgba(255,255,255,.72);
  font-size:13px;
  background:rgba(0,0,0,.30);
  backdrop-filter:blur(10px);
}

.footer-inner{
  max-width:var(--max);
  margin:0 auto;
  display:flex;
  flex-wrap:wrap;
  gap:10px 16px;
  align-items:center;
  justify-content:space-between;
}

.footer-links{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.footer-links a{
  padding:6px 10px;
  border-radius:999px;
}
.footer-links a:hover{
  background:rgba(255,255,255,.10);
}

/* ================= MOBILE ================= */
@media (max-width: 900px){
  .topbar{
    padding: 14px 12px 10px;
    background: transparent;
    border-bottom: none;
  }

  .topbar-inner{
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 10px;
  }

  .nav{
    justify-content:center;
    flex-wrap:wrap;
    gap: 8px;
    font-size: 12px;
  }
  .nav a{ padding: 7px 9px; }

  .logo{ width: 140px; }

  .contact-strip{
    margin-top: 10px;
    padding: 10px;
    gap: 10px;
  }
  .contact-strip .left,
  .contact-strip .right{
    width: 100%;
    justify-content: center;
  }
  .contact-strip .left{ gap: 8px; }
  .pill{
    padding: 7px 10px;
    font-size: 13px;
  }

  .contact-strip .right .btn{
    width: 100%;
    justify-content: center;
  }

  /* If you also want “video-only on mobile index”, keep this ON.
     If not, delete this block. */
  .hero-inner{ display:none !important; }
  .autoplay-note{ display:none !important; }
}

@media (max-width: 520px){
  .logo{ width: 125px; }
  footer{ padding: 14px; }
  .footer-links a{ padding: 6px 8px; }
}

@media (hover:none){
  .nav a, .btn, .pill{ -webkit-tap-highlight-color: transparent; }
}

@media (prefers-reduced-motion: reduce){
  .bgvid{ transition:none; }
  .btn:hover{ transform:none; }
}
