/* ===========================================================
   Home page — video hero + intro + featured + testimonials.
   =========================================================== */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--nav-height) 1.5rem 3rem;
  overflow: hidden;
  z-index: 2;
  isolation: isolate;
}

.hero__layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero__layer--vignette {
  background:
    radial-gradient(ellipse at 50% 80%, rgba(59, 130, 246, 0.25), transparent 60%),
    radial-gradient(ellipse at 70% 20%, rgba(255, 100, 40, 0.06), transparent 50%),
    radial-gradient(ellipse at 30% 35%, rgba(59, 130, 246, 0.08), transparent 50%);
  z-index: 1;
}

/* Hero video — full bleed under content. Top edge fades to transparent
   so the nav sits cleanly over the page background, not on a hard video edge. */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  animation: heroVideoIn 1.4s var(--ease) 0.2s forwards;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, transparent 24px, rgba(0,0,0,0.6) calc(var(--nav-height) - 16px), #000 var(--nav-height));
          mask-image: linear-gradient(180deg, transparent 0%, transparent 24px, rgba(0,0,0,0.6) calc(var(--nav-height) - 16px), #000 var(--nav-height));
}
@keyframes heroVideoIn { to { opacity: 1; } }

.hero__video-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(5, 6, 8, 0.20) 25%,
      rgba(5, 6, 8, 0.30) 55%,
      rgba(5, 6, 8, 0.85) 100%),
    radial-gradient(ellipse at 50% 60%, transparent 0%, rgba(5, 6, 8, 0.4) 80%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 var(--nav-height));
          mask-image: linear-gradient(180deg, transparent 0%, #000 var(--nav-height));
}

.hero__inner {
  position: relative;
  z-index: 10;
  max-width: 1000px;
  width: 100%;
  text-align: center;
}

/* Tagline (clean silver gradient) */
.hero__tagline {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 6.5vw, 5rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  margin: 0 0 1.25rem;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 1s forwards;
}
.hero__tagline-text {
  display: inline-block;
  background: linear-gradient(180deg, #f5f6f8 0%, #c5c9d0 55%, #6c7280 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(59, 130, 246, 0.4));
}

.hero__sub {
  color: var(--text-dim);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 1.3s forwards;
}
.hero__cta-wrap {
  opacity: 0;
  animation: fadeUp 1s var(--ease) 1.5s forwards;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Intro: sticky pinned heading + copy column ---------- */
.intro__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}
.intro__pin {
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
  align-self: start;
}
.intro__copy {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-height: 70vh;
}
.intro__copy p { font-size: 1.05rem; }

@media (max-width: 768px) {
  .intro__grid { grid-template-columns: 1fr; gap: 2rem; }
  .intro__pin { position: static; }
  .intro__copy { min-height: 0; }
}

/* ---------- Featured work grid ---------- */
.featured__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.featured__card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(59, 130, 246, 0.18);
  transition: transform 400ms var(--ease), box-shadow 400ms var(--ease), border-color 400ms var(--ease);
  will-change: transform;
}
.featured__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.65) saturate(1.1);
  transition: transform 500ms var(--ease), filter 500ms var(--ease);
}
.featured__card:hover {
  border-color: var(--accent-hot);
  box-shadow: var(--shadow-glow);
}
.featured__card:hover img {
  transform: scale(1.06);
  filter: brightness(0.85) saturate(1.25);
}
.featured__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.5rem;
  background: linear-gradient(0deg, rgba(8, 8, 8, 0.96) 10%, rgba(8, 8, 8, 0.6) 60%, transparent);
}
.featured__caption h3 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}
.featured__caption span {
  color: var(--accent-hot);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
@media (max-width: 768px) {
  .featured__grid { grid-template-columns: 1fr; }
}

/* ---------- Instagram feed ---------- */
.instagram__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 3.5rem 2rem;
  border: 1px dashed rgba(96, 165, 250, 0.22);
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.03);
  color: var(--text-dim);
  text-align: center;
}
.instagram__placeholder svg {
  width: 40px;
  height: 40px;
  color: rgba(96, 165, 250, 0.35);
}
.instagram__placeholder p { margin: 0; font-size: 0.95rem; }

/* ---------- Testimonials ---------- */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testimonial {
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid rgba(59, 130, 246, 0.18);
  transition: all 300ms var(--ease);
  overflow: hidden;
}
.testimonial:hover {
  border-color: rgba(96, 165, 250, 0.5);
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
}
.testimonial__quote {
  color: var(--text);
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}
.testimonial__attr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}
.testimonial__name {
  font-family: var(--font-display);
  color: var(--accent-hot);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}
.testimonial__stars {
  color: var(--accent-hot);
  letter-spacing: 0.2em;
  font-size: 0.75rem;
}
@media (max-width: 768px) {
  .testimonials__grid { grid-template-columns: 1fr; }
}
