/* =============================================
   AURA 919 — Home Page Styles
   ============================================= */

/* ── HERO ── */
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: #080818;
  display: flex;
  align-items: flex-end;
}

/* VIDEO — fills hero on all screen sizes */
.yt-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  display: block;
  /* poster shows as fallback while video loads */
  background-size: cover;
  background-position: center;
}

/* Dark overlay over video */
.hero-ov {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.35) 0%,
    rgba(0,0,0,.15) 40%,
    rgba(0,0,0,.65) 100%
  );
}

/* Hero content sits above overlay */
.hero-cnt {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 52px 80px;
  max-width: 1320px;
  margin: 0 auto;
}

.hero-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 24px;
}

.hero-h1 {
  font-size: clamp(52px, 8vw, 120px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: .92;
  color: #fff;
  margin-bottom: 40px;
  overflow: hidden;
}

.hero-h1 .ln {
  display: block;
  overflow: hidden;
}

.hero-h1 .ln span {
  display: block;
  animation: heroUp .9s cubic-bezier(.22,1,.36,1) both;
}

.hero-h1 .ln:nth-child(2) span { animation-delay: .08s; }
.hero-h1 .ln:nth-child(3) span { animation-delay: .16s; }

@keyframes heroUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.hero-h1 .ac { color: var(--t); }

.hero-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-p {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,.65);
  max-width: 480px;
  animation: fadeIn 1s .4s both;
}

.hero-r {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 28px;
  animation: fadeIn 1s .5s both;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Stats row */
.hero-stats {
  display: flex;
  gap: 32px;
}

.st { text-align: right; }
.st-n {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -.02em;
}
.st-n span { color: var(--t); }
.st-l {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.38);
  margin-top: 3px;
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 52px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  opacity: .5;
  transition: opacity .2s;
}
.scroll-cue:hover { opacity: 1; }
.scroll-cue span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #fff;
}
.scroll-line {
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,.4);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  animation: scrollMove 2s linear infinite;
}
@keyframes scrollMove {
  to { left: 100%; }
}

/* Mute button — no emoji, clean icon */
.mute-btn {
  position: absolute;
  bottom: 36px;
  right: 52px;
  z-index: 3;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.mute-btn:hover { background: rgba(255,255,255,.2); }

/* Replace emoji with SVG icon via CSS */
#muteIcon {
  font-size: 0; /* hide emoji text */
  width: 18px;
  height: 18px;
  display: block;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round'%3E%3Cpolygon points='11 5 6 9 2 9 2 15 6 15 11 19 11 5'/%3E%3Cline x1='23' y1='9' x2='17' y2='15'/%3E%3Cline x1='17' y1='9' x2='23' y2='15'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
#muteIcon.sound-on {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round'%3E%3Cpolygon points='11 5 6 9 2 9 2 15 6 15 11 19 11 5'/%3E%3Cpath d='M19.07 4.93a10 10 0 0 1 0 14.14M15.54 8.46a5 5 0 0 1 0 7.07'/%3E%3C/svg%3E");
}

/* ── SERVICE CARDS ── */
#svc-teaser { padding-bottom: 100px; }

.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--bd);
}

.svc-c {
  padding: 36px 28px;
  border-right: 1px solid var(--bd);
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: background .22s;
  position: relative;
}
.svc-c:last-child { border-right: none; }
.svc-c::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--t);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.svc-c:hover { background: var(--bg2); }
.svc-c:hover::after { transform: scaleX(1); }

.svc-no {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--gl);
  margin-bottom: 20px;
}
.svc-ico {
  width: 36px;
  height: 36px;
  color: var(--t);
  margin-bottom: 20px;
  flex-shrink: 0;
}
.svc-nm {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 10px;
}
.svc-tx {
  font-size: 12px;
  line-height: 1.7;
  color: var(--gm);
  flex: 1;
  margin-bottom: 20px;
}
.svc-lnk {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--t);
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
}

/* ── NUMBERS BAND ── */
#nums {
  background: var(--ink);
  padding: 64px 0;
}
.nums-g {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.nm-i {
  text-align: center;
  padding: 20px;
  border-right: 1px solid rgba(255,255,255,.07);
}
.nm-i:last-child { border-right: none; }
.nm-n {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -.03em;
  color: #fff;
  line-height: 1;
}
.nm-l {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  margin-top: 8px;
}

/* ── PORTFOLIO TEASER ── */
#port-teaser { padding: 100px 0; }
.pt-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
}
.pt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

/* ── CLIENTS TEASER ── */
#clients-teaser { padding: 80px 0 100px; border-top: 1px solid var(--bd); }
.cl-g {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid var(--bd);
  margin-top: 40px;
}
.cl {
  flex: 1;
  min-width: 160px;
  padding: 28px 20px;
  text-align: center;
  border-right: 1px solid var(--bd);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.cl:last-child { border-right: none; }
.cl-logo {
  height: 36px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
  filter: grayscale(1) opacity(.55);
  transition: filter .22s;
}
.cl:hover .cl-logo { filter: grayscale(0) opacity(1); }
.cl-n {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}
.cl-s {
  font-size: 10px;
  color: var(--gm);
  letter-spacing: .04em;
}

/* ═══════════════════════════════════
   RESPONSIVE — MOBILE FIXES
═══════════════════════════════════ */

@media (max-width: 1080px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-c:nth-child(2) { border-right: none; }
  .svc-c:nth-child(1),
  .svc-c:nth-child(2) { border-bottom: 1px solid var(--bd); }
  .pt-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  /* HERO — mobile video fix */
  #hero {
    height: 100svh; /* use svh on mobile to avoid browser chrome issues */
    min-height: 500px;
  }

  .yt-wrap {
    /* on mobile, video position top keeps faces/content visible */
    object-position: center top;
    /* force hardware acceleration for smooth playback */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
  }

  .hero-cnt {
    padding: 0 24px 60px;
  }

  .hero-h1 {
    font-size: clamp(40px, 11vw, 72px);
    margin-bottom: 28px;
  }

  .hero-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .hero-r {
    align-items: flex-start;
    width: 100%;
  }

  .hero-btns {
    flex-direction: column;
    width: 100%;
  }
  .hero-btns .btn {
    justify-content: center;
    width: 100%;
  }

  .hero-stats {
    gap: 20px;
  }
  .st { text-align: left; }
  .st-n { font-size: 22px; }

  .scroll-cue { left: 24px; bottom: 24px; }
  .mute-btn { right: 24px; bottom: 24px; }

  /* Services */
  .svc-grid { grid-template-columns: 1fr; border: none; gap: 1px; background: var(--bd); }
  .svc-c { border-right: none; border: none; }
  .svc-c:nth-child(1), .svc-c:nth-child(2) { border-bottom: none; }

  /* Numbers */
  .nums-g { grid-template-columns: repeat(2, 1fr); }
  .nm-i:nth-child(2) { border-right: none; }
  .nm-i:nth-child(1),
  .nm-i:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,.07); }

  /* Portfolio */
  .pt-grid { grid-template-columns: 1fr; }

  /* Clients */
  .cl-g { flex-direction: column; }
  .cl { border-right: none; border-bottom: 1px solid var(--bd); flex-direction: row; justify-content: flex-start; padding: 18px 20px; }
  .cl:last-child { border-bottom: none; }
}

@media (max-width: 480px) {
  #hero { min-height: 480px; }

  .hero-tag { font-size: 9px; letter-spacing: .14em; }
  .hero-h1 { font-size: clamp(36px, 10vw, 52px); }
  .hero-p { font-size: 13px; }

  .hero-stats { gap: 16px; }
  .st-n { font-size: 20px; }
}
