/* ── social icons shared ── */
.social-icon-row { display:flex; align-items:center; gap:10px; }
.social-icon-link {
  width:36px; height:36px; border-radius:9px; display:flex; align-items:center; justify-content:center;
  background:rgba(255,255,255,0.07); border:1px solid rgba(255,255,255,0.12);
  transition:background 0.2s, border-color 0.2s; flex-shrink:0;
}
.social-icon-link:hover { background:rgba(255,255,255,0.16); border-color:rgba(255,255,255,0.28); }
.social-icon-link svg { width:16px; height:16px; fill:#fff; display:block; }

/* light-mode variant for contact panel */
.social-icon-link.light {
  background:rgba(26,26,255,0.07); border:1px solid rgba(26,26,255,0.14);
}
.social-icon-link.light:hover { background:rgba(26,26,255,0.14); border-color:rgba(26,26,255,0.28); }
.social-icon-link.light svg { fill:var(--blue); }

/* ── project logo thumbnails ── */
.project-thumb { aspect-ratio:16/10; background:linear-gradient(135deg,var(--blue),var(--violet)); display:flex; align-items:center; justify-content:center; position:relative; overflow:hidden; }
.project-card.span-2 .project-thumb { aspect-ratio:21/9; }
.project-thumb::after { content:''; position:absolute; inset:0; background:radial-gradient(circle at 72% 50%,rgba(255,255,255,0.06) 0%,transparent 65%); }
.project-logo-img { width:auto; max-width:54%; max-height:50%; object-fit:contain; position:relative; z-index:1; filter:brightness(0) invert(1); }
.project-card.span-2 .project-logo-img { max-width:38%; max-height:42%; }
.project-logo-fallback { font-size:52px; position:relative; z-index:1; }
.project-card.span-2 .project-logo-fallback { font-size:76px; }

/* ── hero ── */
.hero { 
  min-height: 100vh; 
  position: relative; 
  display: flex; 
  flex-direction: column; 
  justify-content: flex-end; 
  overflow: hidden; 
  padding: calc(var(--nav-h) + 56px) var(--px) 80px; 
}

/* Wrapper to isolate the background video layer */
.hero-video-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

/* Perfect full-frame scaling with no complex math */
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay { 
  position: absolute; 
  inset: 0; 
  z-index: 1; 
  background: linear-gradient(155deg, rgba(10,10,80,0.3) 0%, rgba(26,26,255,0.15) 35%, rgba(7,7,31,0.78) 65%, rgba(7,7,31,1) 100%); 
}

.hero-content { 
  position: relative; 
  z-index: 10; 
  max-width: var(--max-w); 
  margin: 0 auto; 
  width: 100%; 
}

.hero-eyebrow { 
  display: inline-flex; 
  align-items: center; 
  gap: 10px; 
  margin-bottom: 32px; 
  background: rgba(255,255,255,0.07); 
  border: 1px solid rgba(255,255,255,0.13); 
  border-radius: 100px; 
  padding: 7px 18px; 
  backdrop-filter: blur(8px); 
  font-size: 11px; 
  font-weight: 500; 
  letter-spacing: 0.14em; 
  text-transform: uppercase; 
  color: rgba(255,255,255,0.62); 
}

.eyebrow-dot { 
  width: 6px; 
  height: 6px; 
  border-radius: 50%; 
  background: #7cffb2; 
  box-shadow: 0 0 8px #7cffb2; 
  animation: pulse 2s ease infinite; 
}

@keyframes pulse { 
  0%, 100% { opacity: 1; } 
  50% { opacity: .3; } 
}

.hero-title { 
  font-family: 'Ubuntu', sans-serif; 
  font-size: clamp(52px, 7.5vw, 108px); 
  font-weight: 800; 
  line-height: 0.92; 
  letter-spacing: -3.5px; 
  color: var(--white); 
}

.hero-title .outline { 
  display: block; 
  color: transparent; 
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.3); 
}

.hero-bottom { 
  display: flex; 
  align-items: flex-end; 
  justify-content: space-between; 
  gap: 40px; 
  margin-top: 40px; 
}

.hero-desc { 
  font-size: 17px; 
  line-height: 1.78; 
  color: rgba(255,255,255,0.52); 
  max-width: 390px; 
  font-weight: 300; 
}

.hero-actions { 
  display: flex; 
  align-items: center; 
  gap: 12px; 
  flex-shrink: 0; 
}

.hero-scroll { 
  position: absolute; 
  right: var(--px); 
  bottom: 48px; 
  z-index: 10; 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  gap: 10px; 
}

.hero-scroll-text { 
  writing-mode: vertical-rl; 
  font-size: 9px; 
  letter-spacing: 0.22em; 
  text-transform: uppercase; 
  color: rgba(255,255,255,0.2); 
}

.hero-scroll::after { 
  content: ''; 
  width: 1px; 
  height: 52px; 
  background: linear-gradient(to bottom, rgba(255,255,255,0.2), transparent); 
}

.about-prose p { color: var(--muted); margin-bottom: 18px; }
.work-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 44px; }

/* contact panel */
.contact-info-list { margin-top:36px; display:flex; flex-direction:column; gap:12px; }
.contact-info-item { display:flex; align-items:center; gap:12px; font-size:15px; color:var(--text); text-decoration:none; transition:color 0.2s; }
.contact-info-item:hover { color:var(--blue); }
.contact-ico { width:38px; height:38px; border-radius:10px; background:rgba(26,26,255,0.08); border:1px solid rgba(26,26,255,0.12); display:flex; align-items:center; justify-content:center; font-size:15px; flex-shrink:0; }
.contact-socials-label { font-size:10px; font-weight:700; letter-spacing:0.16em; text-transform:uppercase; color:var(--muted); margin-top:20px; margin-bottom:10px; }

@media (max-width:768px) {
  .hero { padding:100px var(--px) 64px; }
  .hero-title { font-size:46px; letter-spacing:-2px; }
  .hero-bottom { flex-direction:column; align-items:flex-start; gap:28px; }
  .hero-scroll { display:none; }
  .work-head { flex-direction:column; align-items:flex-start; gap:18px; }
  .grid-6-4 { grid-template-columns:1fr; }
}


/* ── Styles moved out of index.html ──────────────────────────
   Doubled class selectors keep the original inline-style precedence so
   nothing in the shared sheets can start winning over these. */
.index-s1.index-s1 { color:var(--text); font-size:clamp(24px,2.4vw,36px); }
.index-s2.index-s2 { margin-top:24px; }
.index-s3.index-s3 { margin-bottom:48px; }
.index-s4.index-s4 { color:var(--text); }
.index-s5.index-s5 { color:var(--text); margin-bottom:40px; }
.index-s6.index-s6 { width:100%; }
.index-s7.index-s7 { align-items:start; }
.index-s8.index-s8 { color:var(--muted); margin-top:16px; }
.index-s9.index-s9 { margin-top:36px; }
.index-s10.index-s10 { margin-top:16px; }
.index-s11.index-s11 { color:var(--muted); }
.index-s12.index-s12 { margin-top:28px; padding:22px; background:rgba(26,26,255,0.06); border:1px solid rgba(26,26,255,0.12); border-radius:14px; }
.index-s13.index-s13 { font-size:11px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--blue); margin-bottom:8px; }
.index-s14.index-s14 { margin-top:18px; }
.index-s15.index-s15 { color:inherit; }
