/* ============================================
   VOX8 — FULL CSS  (iOS + loader ghost fix)
============================================ */

/* RESET */
*{ margin:0; padding:0; box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  background:#050505;
  color:white;
  font-family:'DM Sans',sans-serif;
  overflow-x:hidden;
}

/* ============================================
   SCROLLBAR
============================================ */
::-webkit-scrollbar{ width:4px; }
::-webkit-scrollbar-track{ background:#050505; }
::-webkit-scrollbar-thumb{ background:#555; }

/* ============================================
   LOADER  — must be styled so iOS never shows
   raw text before JS kicks in
============================================ */
.loader{
  position:fixed;
  inset:0;
  background:#050505;
  z-index:99999;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  transition:opacity .6s ease, visibility .6s ease;
}

.loader.hidden{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
}

.loader-inner{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:1.5rem;
}

.loader-logo{
  font-size:2.5rem;
  font-weight:800;
  letter-spacing:.28em;
  color:white;
}

.loader-bar{
  width:160px;
  height:2px;
  background:rgba(255,255,255,.12);
  overflow:hidden;
}

.loader-fill{
  height:100%;
  width:0%;
  background:white;
  transition:width .4s ease;
}

/* ============================================
   GRAIN OVERLAY
============================================ */
.grain-overlay{
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:9000;
  opacity:.035;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size:128px 128px;
}

/* ============================================
   PARTICLE CANVAS
============================================ */
#particleCanvas{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  pointer-events:none;
  z-index:1;
}

/* ============================================
   CURSOR
============================================ */
.cursor{
  position:fixed;
  width:30px;
  height:30px;
  border:1px solid rgba(255,255,255,.5);
  border-radius:50%;
  transform:translate(-50%,-50%);
  pointer-events:none;
  z-index:10000;
  transition:.3s ease;
}
.cursor-dot{
  position:fixed;
  width:5px;
  height:5px;
  background:white;
  border-radius:50%;
  transform:translate(-50%,-50%);
  z-index:10001;
  pointer-events:none;
}
.cursor.expanded{ width:58px; height:58px; }

/* ============================================
   NAVBAR
============================================ */
.nav{
  position:fixed;
  top:0; left:0; right:0;
  z-index:1000;
  padding:1.5rem 0;
  transition:.4s ease;
}
.nav.scrolled{
  background:rgba(0,0,0,.62);
  backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.nav-container{
  max-width:1200px;
  margin:auto;
  padding:0 2rem;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

/* LOGO */
.nav-logo{ text-decoration:none; }
.vox8-main{
  font-size:2.2rem;
  font-weight:700;
  letter-spacing:.28em;
  line-height:1;
  color:white;
}
.vox8-sub{
  margin-top:.3rem;
  font-size:.7rem;
  letter-spacing:.65em;
  color:#8a8a8a;
}

/* NAV LINKS */
.nav-links{ display:flex; gap:2rem; }
.nav-link{
  text-decoration:none;
  color:#b0b0b0;
  text-transform:uppercase;
  font-size:.82rem;
  transition:.3s ease;
}
.nav-link:hover{ color:white; }

/* NAV CTA */
.nav-cta{
  padding:.9rem 1.7rem;
  background:transparent;
  border:1px solid rgba(255,255,255,.15);
  color:white;
  transition:.35s ease;
  cursor:pointer;
}
.nav-cta:hover{ background:white; color:black; }

/* ============================================
   HAMBURGER / MOBILE MENU
============================================ */
.hamburger{
  display:none;
  flex-direction:column;
  gap:5px;
  background:none;
  border:none;
  cursor:pointer;
}
.hamburger span{
  width:24px; height:2px;
  background:white;
  display:block;
}
.mobile-menu{
  position:fixed;
  inset:0;
  background:black;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:2rem;
  transform:translateX(100%);
  transition:.5s ease;
  z-index:998;
}
.mobile-menu.open{ transform:translateX(0%); }
.mobile-link{
  color:white;
  text-decoration:none;
  font-size:3rem;
  font-weight:700;
}

/* ============================================
   HERO
============================================ */
.hero{
  position:relative;
  min-height:100vh;
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.hero-bg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
}
.hero-bg-img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  filter:brightness(.58) contrast(1.08) saturate(.95);
  transform:scale(1.04);
}
.hero-bg-overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.18), rgba(0,0,0,.55)),
    linear-gradient(to right, rgba(0,0,0,.35), rgba(0,0,0,.15), rgba(0,0,0,.35));
}
.hero-content{
  position:relative;
  z-index:2;
  width:100%;
  max-width:1100px;
  margin:auto;
  padding:2rem 3rem;
}
.hero-heading{
  font-size:clamp(3rem,7vw,7rem);
  line-height:.9;
  letter-spacing:.02em;
  font-weight:900;
  text-transform:uppercase;
  max-width:900px;
}
.hero-sub{
  max-width:650px;
  margin:2rem 0 3rem;
  color:#d0d0d0;
  line-height:2;
  font-size:1rem;
}
.hero-btns{ display:flex; gap:1rem; flex-wrap:wrap; }

/* ============================================
   BUTTONS
============================================ */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:1rem 2rem;
  text-decoration:none;
  transition:.35s ease;
}
.btn-primary{ background:white; color:black; }
.btn-primary:hover{ transform:translateY(-4px); }
.btn-ghost{
  border:1px solid rgba(255,255,255,.18);
  color:white;
  background:rgba(255,255,255,.04);
}
.btn-ghost:hover{ background:rgba(255,255,255,.12); }

/* ============================================
   SECTION CONTAINER
============================================ */
.section-container{
  max-width:1200px;
  margin:auto;
  padding:0 2rem;
}

/* ============================================
   ABOUT
============================================ */
.about{
  position:relative;
  padding:10rem 0;
  overflow:hidden;
}
.about::before{
  content:'';
  position:absolute;
  inset:0;
  background:
    linear-gradient(rgba(0,0,0,.65), rgba(0,0,0,.82)),
    url('images/template.jpg');
  background-size:cover;
  background-position:center;
  z-index:-1;
}
.about-layout{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:5rem;
  align-items:flex-start;
}
.about-big-title{
  font-size:clamp(4rem,9vw,9rem);
  line-height:.9;
  font-weight:900;
  letter-spacing:-.05em;
  text-transform:uppercase;
}
.about-right{ padding-top:2rem; }
.about-text{
  color:#d0d0d0;
  font-size:1.08rem;
  line-height:2;
  margin-bottom:2rem;
  max-width:500px;
}
.about-stats{
  display:flex;
  gap:3rem;
  margin-top:6rem;
  flex-wrap:wrap;
}
.stat-box h3{ font-size:4rem; font-weight:800; line-height:1; }
.stat-box span{
  display:block;
  margin-top:1rem;
  color:#9a9a9a;
  letter-spacing:.45em;
  font-size:.72rem;
}

/* ============================================
   SERVICES
============================================ */
.services{
  position:relative;
  padding:8rem 0;
}
.services::before{
  content:'';
  position:absolute;
  inset:0;
  background:
    linear-gradient(rgba(0,0,0,.72), rgba(0,0,0,.86)),
    url('images/template3.jpg');
  background-size:cover;
  background-position:center;
  z-index:-1;
}
.services-header{ margin-bottom:4rem; }
.services-header span{
  font-size:5rem;
  font-weight:900;
  letter-spacing:-.04em;
}
.services-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:1.5rem;
}
.service-card{
  position:relative;
  min-height:400px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.08);
}
.service-bg-img{
  position:absolute;
  inset:0;
  width:100%; height:100%;
  object-fit:cover;
  filter:brightness(.62);
  transition:.8s ease;
}
.service-card:hover .service-bg-img{
  transform:scale(1.08);
  filter:brightness(.82);
}
.service-image-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(to top, rgba(0,0,0,.82), rgba(0,0,0,.1));
}
.service-content{
  position:relative;
  z-index:2;
  height:100%;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding:2rem;
}
.service-title{ font-size:2rem; font-weight:700; }
.service-desc{ margin-top:1rem; color:#d0d0d0; line-height:1.8; }

/* ============================================
   CONTACT
============================================ */
.contact{
  position:relative;
  padding:8rem 0;
}
.contact::before{
  content:'';
  position:absolute;
  inset:0;
  background:
    linear-gradient(rgba(0,0,0,.68), rgba(0,0,0,.84)),
    url('images/temp4.jpg');
  background-size:cover;
  background-position:center;
  z-index:-1;
}
.contact-inner{ text-align:center; }
.contact-small{
  color:#9f9f9f;
  letter-spacing:.4em;
  font-size:.75rem;
  margin-bottom:2rem;
}
.contact-heading{
  font-size:clamp(3rem,6vw,6rem);
  line-height:.92;
  font-weight:900;
  text-transform:uppercase;
}
.contact-text{
  max-width:600px;
  margin:2rem auto 3rem;
  color:#d0d0d0;
  line-height:2;
}
.contact-btns{
  display:flex;
  justify-content:center;
  gap:1rem;
  flex-wrap:wrap;
}
.contact-btn{
  padding:1rem 2rem;
  text-decoration:none;
  border:1px solid rgba(255,255,255,.12);
  color:white;
  transition:.35s ease;
  background:rgba(255,255,255,.04);
  display:inline-flex;
  align-items:center;
  gap:.5rem;
}
.contact-btn:hover{
  background:white;
  color:black;
  transform:translateY(-4px);
}

/* ============================================
   FOOTER
============================================ */
.footer{
  padding:3rem 0;
  background:black;
  border-top:1px solid rgba(255,255,255,.05);
}
.footer-inner{ text-align:center; }
.footer-logo{ font-size:2rem; font-weight:800; letter-spacing:.25em; }
.footer-text{ margin-top:1rem; color:#9f9f9f; }
.footer-copy{ margin-top:2rem; color:#666; font-size:.9rem; }

/* ============================================
   TABLET  ≤1024px
============================================ */
@media(max-width:1024px){
  .services-grid{ grid-template-columns:1fr; }
  .about-layout{ grid-template-columns:1fr; }
}

/* ============================================
   MOBILE  ≤768px  —  iOS fully fixed
============================================ */
@media(max-width:768px){

  /* No custom cursor on touch */
  .cursor, .cursor-dot{ display:none; }

  /* Hard stop on horizontal overflow */
  html, body{ overflow-x:hidden; width:100%; max-width:100vw; }

  /* Desktop nav hidden */
  .nav-links, .nav-cta{ display:none; }
  .hamburger{ display:flex; }

  .nav-container{ padding:0 20px; }
  .vox8-main{ font-size:1.8rem; letter-spacing:.16em; }
  .vox8-sub{ font-size:.52rem; letter-spacing:.38em; margin-top:.3rem; }

  /* Hero anchored bottom-left */
  .hero{
    min-height:100svh;
    width:100%;
    align-items:flex-end;
    justify-content:flex-start;
    overflow:hidden;
  }

  .hero-content{
    width:100%;
    max-width:100%;
    padding:0 22px 80px;
    margin:0;
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    justify-content:flex-end;
  }

  /* ── THE HEADING FIX ────────────────────────────
     • width:100% + max-width:100%  → no overflow
     • font-size clamp capped at 9vw → ~35px on 390px
       iPhone, so "CINEMATIC" fits on one line
     • word-break:normal            → break at spaces only
     • -webkit-hyphens:none         → no Safari auto-hyphens
     • overflow:hidden              → hard clip safety net
  ─────────────────────────────────────────────── */
  .hero-heading{
    width:100%;
    max-width:100%;
    font-size:clamp(2.1rem, 9vw, 3.4rem);
    line-height:.95;
    letter-spacing:-0.01em;
    font-weight:900;
    text-transform:uppercase;
    text-align:left;
    white-space:normal;
    word-break:normal;
    overflow-wrap:break-word;
    hyphens:none;
    -webkit-hyphens:none;
    overflow:hidden;
  }

  .hero-heading br{ display:block; }

  .hero-sub{
    width:100%;
    max-width:100%;
    margin:1.2rem 0 2rem;
    font-size:.88rem;
    line-height:1.8;
    text-align:left;
  }

  .hero-btns{
    width:100%;
    display:flex;
    flex-direction:column;
    gap:12px;
  }

  .btn, .btn-primary, .btn-ghost, .contact-btn{
    width:100%;
    justify-content:center;
  }

  /* About */
  .about{ padding:6rem 0; }
  .about-layout{ grid-template-columns:1fr; gap:2.5rem; }
  .about-big-title{ font-size:clamp(2.8rem,11vw,4.5rem); }
  .about-stats{ gap:2rem; margin-top:3rem; }
  .stat-box h3{ font-size:3rem; }

  /* Services */
  .services{ padding:5rem 0; }
  .services-grid{ grid-template-columns:1fr; }
  .services-header span{ font-size:clamp(2.5rem,10vw,4rem); }
  .service-card{ min-height:300px; }

  /* Contact */
  .contact{ padding:5rem 0; }
  .contact-heading{ font-size:clamp(2.3rem,10vw,4rem); }
  .contact-btns{ flex-direction:column; align-items:stretch; }

  .section-container{ padding:0 20px; }

}

/* ============================================
   SMALL MOBILE  ≤480px
============================================ */
@media(max-width:480px){

  .hero-content{ padding:0 18px 70px; }

  .hero-heading{
    font-size:clamp(2rem, 9vw, 2.8rem);
    line-height:.95;
  }

  .hero-sub{ font-size:.82rem; }

  .section-container,
  .nav-container{ padding:0 18px; }

}