/* ==========================================================
   Phase 4 polish — hero, services, about, ambient
   ========================================================== */

/* —— Service visual: no box boundary —— */
.service-visual {
  border: none !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
  min-height: 180px;
}
.service-visual__canvas {
  border: none !important;
}

/* —— Hero: tight under nav, stretched slim type —— */
.hero.hero--stage {
  padding-top: 56px !important;
  padding-bottom: 28px !important;
  min-height: 0 !important;
}

.hero.hero--stage .eyebrow {
  margin-top: 0;
}

.hero.hero--stage .hero-layout {
  gap: 28px !important;
  align-items: center;
  min-height: calc(100vh - 120px);
  max-height: calc(100vh - 100px);
}

.hero.hero--stage h1 {
  font-family: "Poppins", "Inter", system-ui, sans-serif !important;
  font-weight: 300 !important;
  font-size: clamp(2.4rem, 5.2vw, 4.6rem) !important;
  line-height: 0.9 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase;
  transform: scaleX(1.06);
  transform-origin: left center;
  max-width: none;
  margin: 0.5rem 0 0.9rem !important;
}

.hero.hero--stage .hero-line {
  font-weight: 300;
  display: inline-block;
}

.hero.hero--stage .hero-line--dim {
  font-weight: 200;
}

.hero.hero--stage .hero-desc {
  font-size: 0.95rem !important;
  margin-bottom: 1.1rem !important;
  max-width: 30rem;
}

.hero-actions {
  margin-bottom: 1rem !important;
}

.hero-stage {
  min-height: 0 !important;
  height: clamp(340px, 52vh, 480px) !important;
}

/* —— Hero light rays —— */
.hero-stage__rays {
  position: absolute;
  inset: -10% -15%;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 40% at 55% 48%, rgba(224, 165, 48, 0.22), transparent 70%),
    radial-gradient(ellipse 30% 55% at 70% 40%, rgba(255, 200, 100, 0.12), transparent 65%),
    conic-gradient(from 200deg at 58% 52%, transparent 0deg, rgba(224, 165, 48, 0.08) 25deg, transparent 55deg, transparent 180deg, rgba(255, 210, 120, 0.06) 210deg, transparent 250deg);
  filter: blur(18px);
  animation: hero-rays-pulse 10s ease-in-out infinite alternate;
  opacity: 0.9;
}

.hero-stage__ray-beam {
  position: absolute;
  width: 2px;
  height: 55%;
  top: 18%;
  left: 58%;
  background: linear-gradient(180deg, transparent, rgba(224, 165, 48, 0.45), transparent);
  transform: rotate(-28deg);
  filter: blur(1.5px);
  opacity: 0.55;
  animation: hero-beam 7s ease-in-out infinite alternate;
}

.hero-stage__ray-beam--2 {
  left: 48%;
  height: 48%;
  transform: rotate(18deg);
  opacity: 0.35;
  animation-delay: -2s;
}

@keyframes hero-rays-pulse {
  from { opacity: 0.55; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1.04); }
}
@keyframes hero-beam {
  from { opacity: 0.25; }
  to { opacity: 0.65; }
}

/* Clean glass cards — no thick edge */
.hero-float {
  pointer-events: none !important;
  transition: none !important;
  border-radius: 14px !important;
  padding: 14px !important;
  width: min(210px, 40%) !important;
  background: rgba(16, 16, 20, 0.78) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(20px) saturate(1.2) !important;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset !important;
  transform-style: preserve-3d !important;
}

.hero-float::before,
.hero-float::after {
  display: none !important;
  content: none !important;
}

.hero-float--whatsapp {
  top: 2% !important;
  left: -4% !important;
  right: auto !important;
  z-index: 7 !important;
  transform: rotateY(8deg) rotateX(3deg) !important;
  animation: float-clean-a 8s ease-in-out infinite !important;
}

.hero-float--ads {
  top: 28% !important;
  right: -6% !important;
  left: auto !important;
  z-index: 7 !important;
  transform: rotateY(-10deg) rotateX(4deg) !important;
  animation: float-clean-b 9s ease-in-out infinite !important;
}

.hero-float--web {
  bottom: 2% !important;
  left: 8% !important;
  right: auto !important;
  z-index: 7 !important;
  transform: rotateY(6deg) rotateX(-3deg) !important;
  animation: float-clean-c 10s ease-in-out infinite !important;
}

.hero-stage__canvas {
  z-index: 12 !important;
}

.hero-float:hover {
  transform: inherit !important;
}

@keyframes float-clean-a {
  0%, 100% { transform: rotateY(8deg) rotateX(3deg) translateY(0); }
  50% { transform: rotateY(8deg) rotateX(3deg) translateY(-8px); }
}
@keyframes float-clean-b {
  0%, 100% { transform: rotateY(-10deg) rotateX(4deg) translateY(0); }
  50% { transform: rotateY(-10deg) rotateX(4deg) translateY(6px); }
}
@keyframes float-clean-c {
  0%, 100% { transform: rotateY(6deg) rotateX(-3deg) translateY(0); }
  50% { transform: rotateY(6deg) rotateX(-3deg) translateY(-6px); }
}

/* Ambient */
.page-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.page-ambient canvas {
  position: absolute;
  width: 180px;
  height: 180px;
  opacity: 0.55;
}
.page-ambient canvas:nth-child(1) { top: 18%; right: 6%; }
.page-ambient canvas:nth-child(2) { top: 55%; left: 3%; }
.page-ambient canvas:nth-child(3) { bottom: 12%; right: 18%; }
.page-ambient canvas:nth-child(4) { top: 72%; left: 22%; width: 140px; height: 140px; }

/* About story cards */
.about-story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 2rem;
}
.about-story-card {
  background: linear-gradient(160deg, rgba(28, 28, 32, 0.9), rgba(12, 12, 14, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  transition: transform 0.4s cubic-bezier(0.16, 0.84, 0.24, 1), border-color 0.3s ease;
}
.about-story-card:hover {
  transform: translateY(-6px) rotate(-0.4deg);
  border-color: rgba(212, 168, 75, 0.28);
}
.about-story-card .eyebrow {
  color: #e8c878;
  margin-bottom: 12px;
  display: block;
}
.about-story-card h3 {
  font-size: 1.25rem;
  margin: 0 0 12px;
  font-weight: 600;
}
.about-story-card p {
  color: #9a9a92;
  line-height: 1.7;
  margin: 0;
  font-size: 0.95rem;
}

/* Team cards — only hovered expands */
.team-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin-top: 2rem;
  align-items: start !important;
}

.team-card {
  position: relative;
  background: linear-gradient(165deg, rgba(30, 30, 34, 0.95), rgba(10, 10, 12, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  padding: 28px 22px 24px;
  overflow: hidden;
  cursor: pointer;
  align-self: start !important;
  height: auto !important;
  min-height: 200px !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  transition: border-color 0.3s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.team-card__shape {
  width: 88px;
  height: 88px;
  margin: 0 auto 16px;
  display: block;
}

.team-card__name {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 4px;
  color: #f4f4ef;
}

.team-card__role {
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e8c878;
  margin: 0;
}

.team-card__bio {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin: 0;
  color: #9a9a92;
  font-size: 0.9rem;
  line-height: 1.65;
  transition: max-height 0.45s ease, opacity 0.35s ease, margin 0.35s ease;
}

.team-card:hover,
.team-card.is-open {
  min-height: 200px !important;
  height: auto !important;
  border-color: rgba(212, 168, 75, 0.35);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
  transform: translateY(-4px);
}

.team-card:hover .team-card__bio,
.team-card.is-open .team-card__bio {
  max-height: 220px;
  opacity: 1;
  margin-top: 16px;
}

.about-cursor-shape {
  position: fixed;
  width: 120px;
  height: 120px;
  pointer-events: none;
  z-index: 5;
  opacity: 0.35;
  mix-blend-mode: screen;
}

@media (max-width: 1024px) {
  .hero.hero--stage .hero-layout {
    min-height: 0;
    max-height: none;
  }
  .hero-stage {
    height: 320px !important;
  }
}

@media (max-width: 768px) {
  .hero.hero--stage h1 {
    transform: scaleX(1.02);
    font-size: clamp(2.4rem, 11vw, 3.4rem) !important;
  }
  .page-ambient canvas { opacity: 0.3; width: 110px; height: 110px; }
}
