: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; /* safe fallback so it never overlaps even if JS fails */
}

*{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);

  /* BIG FIX: always push page content below the 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;

  /* keep your original click behavior: only inner areas clickable */
  pointer-events:none;
}

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

.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;

  /* ensure strip is clickable even though header root is pointer-events:none */
  pointer-events:auto;
}

.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,.18);
}

/* ================= HERO VIDEO ================= */
.hero{
  position:relative;
  min-height: 100vh; /* keep full screen feel */
  overflow:hidden;
  background:#000;
}

/* VIDEO: full display behind content */
.bgvid{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover; /* fills screen like your desired look */
  opacity:0;
  transition:opacity 900ms ease;
  transform:scale(1.02);
}
.bgvid.is-active{opacity:1;}

.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(900px 520px at 22% 35%, rgba(0,0,0,.35), rgba(0,0,0,.75)),
    linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.75));
  z-index:1;
  pointer-events:none;
}

/* ================= HERO TEXT ================= */
.hero-inner{
  position:relative;
  z-index:2;
  max-width:var(--max);
  margin:0 auto;

  /* IMPORTANT: no more fake header spacing here */
  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;

  /* IMPORTANT: no more fake header spacing here either */
  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){
  /* readable background over video */
  .topbar{
    padding: 14px 12px 10px;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,.12);
  }

  /* stack logo + nav */
  .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 becomes centered + wraps cleanly */
  .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;
  }

  /* big tap targets */
  .contact-strip .right .btn{
    width: 100%;
    justify-content: center;
  }

  /* hero + inner pages: normal padding, header offset handled by body */
  .hero-inner{
    padding: 22px 16px 50px;
  }
  .content{
    padding: 22px 16px 80px;
  }

  /* CTA buttons stack */
  .cta-row .btn{
    width: 100%;
    justify-content: center;
  }
}

/* Small phones */
@media (max-width: 520px){
  .logo{ width: 125px; }
  h1{ font-size: clamp(30px, 9vw, 44px); }
  .sub{ font-size: 14px; }
  footer{ padding: 14px; }
  .footer-links a{ padding: 6px 8px; }
}

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

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