/* =====================
   RESET
===================== */
*{margin:0;padding:0;box-sizing:border-box}
html,body{height:100%}

body{
  background:#000;
  color:#f4f0dc;
  font-family: system-ui, -apple-system, Helvetica, Arial, sans-serif;
}

/* =====================
   HERO
===================== */
.hero{
  position:relative;
  height:100vh;
  overflow:hidden;
}

/* =====================
   VIDEO
===================== */
.video-stack{
  position:absolute;
  inset:0;
  z-index:0;
}


/* =====================
   GRID
===================== */
.grid{
  position:absolute;
  inset:0;
  display:grid;
  grid-template-columns:repeat(12,1fr);
  z-index:1;
  pointer-events:none;
}

.grid div{
  border-left:1px solid rgba(255,255,255,.08);
}
.grid div:last-child{
  border-right:1px solid rgba(255,255,255,.08);
}

/* =====================
   HEADER
===================== */
.header{
  position:absolute;
  top:14px;
  left:14px;
  right:14px;
  display:flex;
  align-items:flex-end;
  z-index:3;
}

.logo{
  font-weight:900;
  font-size:48px;
  letter-spacing:-.05em;
  flex:1;
}

/* =====================
   HERO COPY  (UPDATED)
===================== */
.hero-copy{
  position:absolute;
  bottom:160px;              /* lifted */
  left:50%;
  transform:translateX(-50%);
  width:85%;
  text-align:center;
  font-size:11px;
  letter-spacing:.18em;
  line-height:1.55;
  z-index:3;
}

/* =====================
   CTA  (UPDATED)
===================== */
.hero-cta{
  position:absolute;
  bottom:90px;               /* lifted */
  left:50%;
  transform:translateX(-50%);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:18px;
  width:88%;
  z-index:3;
}

.cta-left,
.cta-right{
  font-size:11px;
  letter-spacing:.14em;
  opacity:.9;
}

.cta-btn{
  background:transparent;
  border:1px solid #f4f0dc;
  color:#f4f0dc;
  padding:14px 36px;
  font-size:15px;
  letter-spacing:.12em;
  min-width:200px;
}

/* =====================
   STICKY HEART
===================== */
.heart{
  position:fixed;
  right:16px;
  bottom:16px;
  font-size:26px;
  z-index:10;
  opacity:.85;
}

/* =====================
   FEATURED SECTION
===================== */
.featured{
  position:relative;
  padding:60px 14px 80px;
  background:#2f59d9;
  color:#f4f0dc;
  overflow:hidden;
}

/* =====================
   TOP LOGOS
===================== */
.featured-top{
  display:flex;
  justify-content:space-between;
  font-size:10px;
  letter-spacing:.14em;
  opacity:.9;
  margin-bottom:40px;
}

/* =====================
   TITLE
===================== */
.featured-title{
  display:flex;
  justify-content:space-between;
  margin-bottom:20px;
}

.featured-title h2{
  font-size:42px;
  font-weight:900;
  letter-spacing:-.04em;
}

/* =====================
   INTRO
===================== */
.featured-intro{
  font-size:11px;
  letter-spacing:.16em;
  line-height:1.6;
  margin-bottom:40px;
}

/* =====================
   GRID OVERLAY
===================== */
.featured .grid{
  position:absolute;
  inset:0;
  display:grid;
  grid-template-columns:repeat(12,1fr);
  pointer-events:none;
  z-index:1;
}

.featured .grid div{
  border-left:1px solid rgba(255,255,255,.15);
}
.featured .grid div:last-child{
  border-right:1px solid rgba(255,255,255,.15);
}

/* =====================
   WORK LIST
===================== */
.work-list{
  position:relative;
  z-index:2;
}

.work-card{
  position:relative;
  margin-bottom:18px;
  border:1px solid rgba(255,255,255,.8);
  overflow:hidden;

  opacity:0;
  transform:translateY(28px);
  transition:
    opacity .9s ease,
    transform .9s cubic-bezier(.23,1,.32,1);
}

.work-card.in-view{
  opacity:1;
  transform:translateY(0);
}

/* =====================
   VIDEO INSIDE CARD
===================== */
.video-wrap{
  position:relative;
  width:100%;
  padding-top:56.25%;
  background:#000;
}

.video-wrap iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  pointer-events:none;
}

/* =====================
   OVERLAY TEXT
===================== */
.work-meta{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  z-index:2;
}

.work-meta h3{
  font-size:26px;
  font-weight:900;
  letter-spacing:-.02em;
}

.work-meta span{
  font-size:11px;
  letter-spacing:.16em;
  margin-top:6px;
}

/* =====================
   FEATURED CTA
===================== */
.featured-cta{
  margin-top:60px;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:16px;
}

.featured-cta span{
  font-size:11px;
  letter-spacing:.14em;
}

.featured-cta button{
  background:transparent;
  border:1px solid #f4f0dc;
  color:#f4f0dc;
  padding:12px 28px;
  font-size:14px;
  letter-spacing:.12em;
}

/* =====================
   FOOTER
===================== */
.footer{
  position:relative;
  padding:80px 14px 40px;
  background:#000;
  color:#f4f0dc;
  overflow:hidden;
}

.footer::before{
  content:"";
  position:absolute;
  inset:-50%;
  background:url("https://grainy-gradients.vercel.app/noise.svg");
  opacity:.18;
  pointer-events:none;
  z-index:0;
}

/* =====================
   FOOTER GRID
===================== */
.footer .grid{
  position:absolute;
  inset:0;
  display:grid;
  grid-template-columns:repeat(12,1fr);
  pointer-events:none;
  z-index:1;
}

.footer .grid div{
  border-left:1px solid rgba(255,255,255,.12);
}
.footer .grid div:last-child{
  border-right:1px solid rgba(255,255,255,.12);
}

/* =====================
   FOOTER CONTENT
===================== */
.footer-inner{
  position:relative;
  z-index:2;
}

.footer-title{
  font-size:46px;
  font-weight:900;
  letter-spacing:-.04em;
  line-height:1;
  margin-bottom:24px;
}

.footer-copy{
  font-size:13px;
  letter-spacing:.14em;
  line-height:1.6;
  margin-bottom:24px;
}

.footer-email{
  display:inline-block;
  font-size:13px;
  letter-spacing:.14em;
  margin-bottom:80px;
  color:#f4f0dc;
  text-decoration:none;
}

/* =====================
   FOOTER MARK
===================== */
.footer-mark{
  font-size:12px;
  letter-spacing:.18em;
  opacity:.9;
}

/* =====================
   FOOTER BOTTOM
===================== */
.footer-bottom{
  position:relative;
  z-index:2;
  margin-top:60px;
  display:flex;
  justify-content:space-between;
  font-size:11px;
  letter-spacing:.14em;
  opacity:.85;
}

/* =====================
   HAMBURGER BUTTON
===================== */
.menu-toggle{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  letter-spacing:.14em;
  cursor:pointer;
}

.menu-toggle i{
  width:18px;
  height:1px;
  background:#f4f0dc;
  position:relative;
}

.menu-toggle i::before,
.menu-toggle i::after{
  content:"";
  position:absolute;
  left:0;
  width:18px;
  height:1px;
  background:#f4f0dc;
}

.menu-toggle i::before{top:-5px}
.menu-toggle i::after{top:5px}

/* =====================
   MENU OVERLAY
===================== */
.menu-overlay{
  position:fixed;
  inset:0;
  background:#000;
  color:#f4f0dc;
  z-index:999;
  opacity:0;
  pointer-events:none;
  transition:opacity .4s ease;
}

.menu-overlay::before{
  content:"";
  position:absolute;
  inset:-50%;
  background:url("https://grainy-gradients.vercel.app/noise.svg");
  opacity:.2;
}

.menu-overlay.active{
  opacity:1;
  pointer-events:auto;
}

/* =====================
   MENU HEADER
===================== */
.menu-header{
  position:absolute;
  top:16px;
  right:16px;
  display:flex;
  align-items:center;
  gap:12px;
  font-size:12px;
  letter-spacing:.14em;
  z-index:2;
}

.menu-close{
  background:none;
  border:none;
  color:#f4f0dc;
  font-size:18px;
}

/* =====================
   MENU LINKS
===================== */
.menu-links{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  display:flex;
  flex-direction:column;
  gap:18px;
  text-align:center;
}

.menu-links a{
  font-size:34px;
  font-weight:900;
  letter-spacing:-.03em;
  color:#f4f0dc;
  text-decoration:none;
}

/* =====================
   SOCIAL
===================== */
.menu-social{
  position:absolute;
  bottom:40px;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  gap:20px;
  font-size:12px;
  letter-spacing:.14em;
}


/* =====================
   HERO VIDEO (FINAL)
===================== */
.video-stack{
  position:absolute;
  inset:0;
  z-index:0;
  overflow:hidden;
}

.video-stack video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  pointer-events:none;
  user-select:none;

  /* Ken Burns */
  transform:scale(1);
  animation:heroZoom 42s linear infinite;
  will-change:transform;
}

@keyframes heroZoom{
  from{ transform:scale(1); }
  to{ transform:scale(1.08); }
}

/* Hero content above video */
.hero .grid,
.hero .header,
.hero-copy,
.hero-cta,
.heart{
  position:relative;
  z-index:2;
}

/* =====================
   FEATURED VIDEOS
===================== */
.video-wrap video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  pointer-events:none;
}

/* =====================
   HERO LAYER FIX
===================== */

/* Hero must be a stacking context */
.hero{
  position: relative;
  isolation: isolate;
}

/* Video layer */
.video-stack{
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* Lock video fully */
.video-stack video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

/* Grid stays above video */
.hero .grid{
  z-index: 1;
}

/* ALL hero content locked above everything */
.hero header,
.hero-copy,
.hero-cta,
.heart{
  position: absolute;
  z-index: 2;
}

/* ===============================
   HAMBURGER CLIP FIX (FINAL)
   Paste at END of style.css
================================ */

/* Allow UI to escape hero safely */
.hero{
  overflow: visible;
  isolation: isolate;
}

/* Keep video clipped only */
.video-stack{
  overflow: hidden;
}

/* Harden header positioning (iOS-safe) */
.header{
  position: absolute;
  top: env(safe-area-inset-top, 14px);
  left: 14px;
  right: 14px;
  z-index: 5;
  pointer-events: auto;
}

/* Prevent sub-pixel cropping of hamburger */
.menu-toggle{
  position: relative;
  padding-right: 4px;
  white-space: nowrap;
}

/* ===============================
   iOS OVERFLOW FIX (FINAL)
   Paste at END of style.css
================================ */

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

/* Allow hero UI but prevent sideways bleed */
.hero{
  overflow-y: visible;
  overflow-x: hidden;
  isolation: isolate;
}

/* Grid lines must never expand viewport */
.grid{
  max-width:100vw;
  overflow:hidden;
}

/* Centered transforms can cause sub-pixel bleed */
.hero-copy,
.hero-cta,
.menu-links,
.menu-social{
  max-width:100%;
}

/* iOS rounding protection */
body{
  position:relative;
}


/* =========================================
   MOBILE HAMBURGER ONLY (NO TEXT)
   FINAL SAFE FIX — iOS
========================================= */

/* Stop horizontal overflow globally (mobile-safe) */
html, body{
  width:100%;
  max-width:100%;
  overflow-x:hidden;
}

/* Hero should not cause sideways bleed */
.hero{
  overflow-x:hidden;
  overflow-y:visible;
  isolation:isolate;
}

/* HEADER: keep inside viewport */
.header{
  position:absolute;
  top:env(safe-area-inset-top, 14px);
  left:14px;
  right:14px;
  z-index:5;
}

/* MENU BUTTON — ICON ONLY */
.menu-toggle{
  padding:8px;
  gap:0;
}

/* Hide MENU text but keep it accessible */
.menu-toggle span{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

/* Hamburger icon alignment */
.menu-toggle i{
  width:22px;
  height:2px;
}

.menu-toggle i::before,
.menu-toggle i::after{
  width:22px;
}



/* =========================================
   HAMBURGER — HARD ANCHORED FIX (iOS SAFE)
========================================= */

/* Kill horizontal scroll once and for all */
html, body{
  overflow-x:hidden;
  width:100%;
}

/* Hero containment */
.hero{
  overflow-x:hidden;
  overflow-y:visible;
  isolation:isolate;
}

/* Header stays clean, but no longer controls menu */
.header{
  position:absolute;
  top:env(safe-area-inset-top, 14px);
  left:14px;
  right:14px;
  z-index:5;
}

/* LOGO stays normal */
.logo{
  pointer-events:auto;
}

/* MENU BUTTON — ABSOLUTE ANCHOR */
.menu-toggle{
  position:fixed;               /* key change */
  top:env(safe-area-inset-top, 16px);
  right:env(safe-area-inset-right, 16px);

  display:flex;
  align-items:center;
  justify-content:center;

  width:44px;                   /* tap-safe */
  height:44px;

  padding:0;
  gap:0;

  z-index:1000;
}

/* Hide MENU text (icon-only) */
.menu-toggle span{
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
}

/* Hamburger bars */
.menu-toggle i{
  width:22px;
  height:2px;
  background:#f4f0dc;
  position:relative;
}

.menu-toggle i::before,
.menu-toggle i::after{
  content:"";
  position:absolute;
  left:0;
  width:22px;
  height:2px;
  background:#f4f0dc;
}

.menu-toggle i::before{ top:-6px; }
.menu-toggle i::after{ top:6px; }

/* ===============================
   STAY TUNED MODAL (FINAL)
================================ */

/* Modal wrapper */
.stay-modal{
  position:fixed;
  inset:0;
  z-index:2000;
  display:none;
}

/* Visible state */
.stay-modal.active{
  display:block;
}

/* Backdrop */
.stay-backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.55);
  backdrop-filter:blur(4px);
}

/* Modal box */
.stay-box{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:min(88%, 360px);
  background:#fff;
  color:#000;
  border-radius:18px;
  padding:28px 22px 30px;
  text-align:center;
}

/* Close */
.stay-close{
  position:absolute;
  top:10px;
  right:12px;
  background:none;
  border:none;
  font-size:18px;
  cursor:pointer;
}

/* Icon */
.stay-icon{
  font-size:38px;
  margin-bottom:12px;
}

/* Text */
.stay-box h3{
  font-size:22px;
  font-weight:800;
  margin-bottom:8px;
}

.stay-box p{
  font-size:13px;
  line-height:1.5;
  opacity:.85;
}

/* ===============================
   CTA LOADING STATE
================================ */

.cta-btn.loading{
  pointer-events:none;
  opacity:.85;
}

/* Dots animation */
.loading-dots::after{
  content:"";
  animation:dots 1.4s infinite steps(4,end);
}

@keyframes dots{
  0%{content:""}
  25%{content:"."}
  50%{content:".."}
  75%{content:"..."}
}


/* =========================
   MINI LOADER (GLOBAL)
========================= */
.mini-loader{
  position:fixed;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,0.35);
  backdrop-filter:blur(4px);
  z-index:3000;
  opacity:0;
  pointer-events:none;
  transition:opacity .35s ease;
}

.mini-loader.active{
  opacity:1;
  pointer-events:auto;
}

/* single dot loader */
.loader-dot{
  width:10px;
  height:10px;
  border-radius:50%;
  background:#fff;
  animation:loaderPulse 1.2s ease-in-out infinite;
}

@keyframes loaderPulse{
  0%{ transform:scale(.5); opacity:.3; }
  50%{ transform:scale(1); opacity:1; }
  100%{ transform:scale(.5); opacity:.3; }
}


.hero-cta{
  display: flex;
  align-items: center;
}

.hero-cta .cta-btn{
  margin: 0 auto;
}