/* ============================================================
   WARZANV — home page styles
   ============================================================ */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  overflow: hidden;
}
#hero-3d {
  position: absolute; inset: 0;
  z-index: 0;
}
#hero-3d canvas { width: 100%; height: 100%; display: block; }
.hero::after {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 30vh;
  background: linear-gradient(180deg, transparent, var(--bg-0));
  pointer-events: none; z-index: 1;
}
.hero__content { position: relative; z-index: 2; max-width: 1000px; }
.hero__kicker {
  font-size: 0.78rem;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: var(--primary-soft);
  margin-bottom: 2rem;
  opacity: 0;
  animation: heroFade 1.2s var(--ease-out) 0.2s forwards;
}
.hero__title {
  font-size: clamp(2.6rem, 7.6vw, 6.2rem);
  line-height: 1.06;
  text-wrap: balance;
}
.hero__title .line {
  display: block;
  overflow: hidden;
}
.hero__title .line > span {
  display: block;
  transform: translateY(110%);
  animation: heroRise 1.1s var(--ease-out) forwards;
}
.hero__title .line:nth-child(1) > span { animation-delay: 0.35s; }
.hero__title .line:nth-child(2) > span { animation-delay: 0.5s; }
.hero__title .line:nth-child(3) > span { animation-delay: 0.65s; }
.hero__title .accent {
  color: transparent;
  background: linear-gradient(120deg, #ffe7c2 0%, #ff8a1e 45%, #ffd24a 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shimmer 6s linear infinite;
  text-shadow: none;
}
@keyframes shimmer { to { background-position: -220% 0; } }
@keyframes heroRise { to { transform: translateY(0); } }
@keyframes heroFade { to { opacity: 1; } }
.hero__cta {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  opacity: 0;
  animation: heroFade 1.2s var(--ease-out) 1s forwards;
}
.hero__scroll {
  position: absolute; bottom: 2.2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  color: var(--faint);
  font-size: 0.66rem; letter-spacing: 0.4em; text-transform: uppercase;
  opacity: 0;
  animation: heroFade 1.4s ease 1.6s forwards;
}
.hero__scroll::after {
  content: "";
  width: 1px; height: 52px;
  background: linear-gradient(180deg, var(--primary-soft), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse { 50% { transform: scaleY(0.45); transform-origin: top; opacity: 0.4; } }

/* ---------- Visions gallery ---------- */
.visions { padding-top: clamp(3rem, 7vh, 6rem); }
.visions__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(0.9rem, 2vw, 1.6rem);
  margin-top: 3.2rem;
}
.vision {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 170, 80, 0.14);
  background: var(--bg-2);
  grid-column: span 4;
  aspect-ratio: 16 / 10;
}
.vision--wide { grid-column: span 8; }
.vision--tall { aspect-ratio: 16 / 12; }
@media (max-width: 880px) {
  .vision, .vision--wide { grid-column: span 6; }
}
@media (max-width: 560px) {
  .vision, .vision--wide { grid-column: span 12; }
}
.vision img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 1s var(--ease-out), filter 1s;
  filter: saturate(0.92) brightness(0.92);
}
.vision:hover img { transform: scale(1.13); filter: saturate(1.1) brightness(1.05); }
.vision::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(226, 100, 10, 0.18), transparent 40%, rgba(10, 6, 2, 0.55));
  transition: opacity 0.6s;
}
.vision:hover::after { opacity: 0.4; }
.vision figcaption {
  position: absolute; left: 1.2rem; bottom: 1rem; z-index: 2;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lilac);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s, transform 0.5s var(--ease-out);
}
.vision:hover figcaption { opacity: 1; transform: translateY(0); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 7000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8, 4, 1, 0.92);
  backdrop-filter: blur(14px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.45s;
}
.lightbox.is-open { opacity: 1; pointer-events: all; }
.lightbox img {
  max-width: 92vw; max-height: 86vh;
  border-radius: 16px;
  border: 1px solid rgba(255, 180, 61, 0.3);
  box-shadow: 0 0 80px rgba(226, 100, 10, 0.35);
  transform: scale(0.92);
  transition: transform 0.45s var(--ease-out);
}
.lightbox.is-open img { transform: scale(1); }
.lightbox__close {
  position: absolute; top: 1.4rem; right: 1.8rem;
  background: none; border: none;
  color: var(--lilac); font-size: 2rem;
  line-height: 1;
}

/* ---------- Testimonials ---------- */
.reviews { position: relative; }
.reviews__rail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.2rem, 3vw, 2.4rem);
  margin-top: 3rem;
  perspective: 1200px;
}
@media (max-width: 880px) { .reviews__rail { grid-template-columns: 1fr; } }
.review {
  position: relative;
  padding: clamp(1.8rem, 3.5vw, 2.8rem);
  display: flex; flex-direction: column;
}
.review__stars {
  color: var(--gold);
  letter-spacing: 0.35em;
  font-size: 1.05rem;
  text-shadow: 0 0 16px rgba(255, 210, 74, 0.55);
  margin-bottom: 1.3rem;
}
.review__quote-mark {
  position: absolute; top: 0.6rem; right: 1.6rem;
  font-family: var(--font-display);
  font-size: 6rem; line-height: 1;
  color: rgba(255, 138, 30, 0.16);
  user-select: none;
}
.review p {
  color: var(--muted);
  font-size: 0.97rem;
  flex: 1;
}
.review footer {
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 170, 80, 0.12);
  display: flex; align-items: center; gap: 1rem;
}
.review__avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--lilac);
  background: linear-gradient(135deg, rgba(226, 100, 10, 0.6), rgba(96, 42, 6, 0.6));
  border: 1px solid rgba(255, 180, 61, 0.4);
  box-shadow: 0 0 18px rgba(226, 100, 10, 0.35);
}
.review__name { font-weight: 500; color: var(--text); letter-spacing: 0.04em; }
.review__from { font-size: 0.8rem; color: var(--faint); letter-spacing: 0.08em; }
.reviews__more { text-align: center; margin-top: 2.8rem; }

/* ---------- Products ---------- */
.products__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.6vw, 2rem);
  margin-top: 3.2rem;
  perspective: 1400px;
}
@media (max-width: 980px) { .products__grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.product {
  position: relative;
  padding: 2.6rem 2.2rem;
  display: flex; flex-direction: column; align-items: flex-start;
  overflow: hidden;
  min-height: 360px;
}
.product__badge {
  font-size: 0.66rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(255, 210, 74, 0.35);
  border-radius: 999px;
  padding: 0.32rem 0.9rem;
  margin-bottom: 1.6rem;
}
.product__icon {
  width: 64px; height: 64px;
  margin-bottom: 1.6rem;
  color: var(--primary-soft);
  filter: drop-shadow(0 0 14px rgba(255, 138, 30, 0.55));
  animation: productFloat 5s ease-in-out infinite;
}
.product:nth-child(2) .product__icon { animation-delay: -1.6s; }
.product:nth-child(3) .product__icon { animation-delay: -3.2s; }
@keyframes productFloat {
  50% { transform: translateY(-9px) rotate(4deg); }
}
.product h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.7rem;
}
.product p { color: var(--muted); font-size: 0.94rem; flex: 1; margin-bottom: 1.8rem; }
.product::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(480px circle at var(--gx, 50%) -20%, rgba(255, 138, 30, 0.14), transparent 60%);
  pointer-events: none;
}

/* ---------- Projects ---------- */
.projects-strip {
  position: relative;
  margin-top: 3rem;
  padding: clamp(3.5rem, 9vh, 6.5rem) 2rem;
  text-align: center;
  overflow: hidden;
}
.projects-strip .display {
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  color: var(--lilac);
}
.projects-strip__orbit {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.5;
}
.projects-strip__orbit i {
  position: absolute;
  width: 10px; height: 10px;
  background: var(--primary-soft);
  border-radius: 2px;
  box-shadow: 0 0 14px rgba(255, 180, 61, 0.9);
  animation: orbitDot 12s linear infinite;
  offset-path: border-box;
  offset-distance: var(--o, 0%);
}
@keyframes orbitDot { to { offset-distance: calc(var(--o, 0%) + 100%); } }

/* ---------- Behind The Glass ---------- */
.bio {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2.4rem, 6vw, 5.5rem);
  align-items: center;
}
@media (max-width: 920px) { .bio { grid-template-columns: 1fr; } }
.bio__visual {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 170, 80, 0.18);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 60px rgba(226, 100, 10, 0.18);
}
.bio__visual img { width: 100%; height: 100%; object-fit: cover; }
.bio__visual::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(226, 100, 10, 0.22), transparent 55%);
  mix-blend-mode: screen;
}
.bio__frame {
  position: absolute; inset: 14px;
  border: 1px solid rgba(255, 224, 170, 0.28);
  border-radius: 16px;
  pointer-events: none;
}
.bio__text p {
  color: var(--muted);
  margin-bottom: 1.4rem;
  font-size: 1.02rem;
}
.bio__text p strong { color: var(--lilac); font-weight: 400; }
.bio__sig {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--primary-soft);
  letter-spacing: 0.2em;
  margin-top: 1.8rem;
  text-shadow: 0 0 22px rgba(255, 138, 30, 0.6);
}

/* ---------- Reach Out ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(2.4rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 920px) { .contact { grid-template-columns: 1fr; } }
.contact__panel { padding: clamp(2rem, 4vw, 3rem); }
.contact__note {
  display: flex; gap: 0.9rem; align-items: center;
  margin-top: 2rem;
  color: var(--faint); font-size: 0.88rem;
}
.contact__note svg { width: 20px; height: 20px; color: var(--primary-soft); flex-shrink: 0; }
