/* ── HOME ── */
#home-page {
  opacity: 0;
  transition: opacity 0.55s ease 0.25s;
  pointer-events: none;
}

#home-page.visible {
  opacity: 1;
  pointer-events: auto;
}

#home-page.no-intro {
  opacity: 1;
  pointer-events: auto;
  transition: none;
}

/* ── HERO ── */
.kirva-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 120px 2rem 5rem;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

.hero-orb-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(11,138,66,0.11) 0%, transparent 70%);
  top: -120px; left: -120px;
  animation: orbF1 13s ease-in-out infinite alternate;
}

.hero-orb-2 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(14,168,84,0.09) 0%, transparent 70%);
  bottom: -80px; right: -80px;
  animation: orbF2 11s ease-in-out infinite alternate;
}

.hero-orb-3 {
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(11,138,66,0.1) 0%, transparent 70%);
  top: 45%; left: 58%;
  animation: orbF3 15s ease-in-out infinite alternate;
}

@keyframes orbF1 { from{transform:translate(0,0)scale(1);} to{transform:translate(55px,38px)scale(1.12);} }
@keyframes orbF2 { from{transform:translate(0,0)scale(1);} to{transform:translate(-38px,-55px)scale(1.1);} }
@keyframes orbF3 { from{transform:translate(0,0)scale(1);} to{transform:translate(-28px,45px)scale(0.92);} }

.hero-content-wrap {
  position: relative; z-index: 1;
  max-width: 820px;
  text-align: center;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #0b8a42;
  background: rgba(11,138,66,0.07);
  border: 1px solid rgba(11,138,66,0.18);
  padding: 0.4rem 1.1rem;
  border-radius: 100px;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.6s ease 0.2s forwards;
}

.hero-eyebrow .dot {
  width: 6px; height: 6px;
  background: #0ea854;
  border-radius: 50%;
  animation: blink 2s infinite;
}

.hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.8rem, 8vw, 6.2rem);
  font-weight: 900;
  line-height: 1.02;
  color: #06332b;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(28px);
  animation: fadeUp 0.7s ease 0.4s forwards;
}

.hero-title em {
  font-style: italic;
  font-family: 'Playfair Display', serif;
  color: #0b8a42;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: #4a6860;
  font-weight: 400;
  line-height: 1.75;
  max-width: 540px;
  margin: 0 auto 2.8rem;
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.7s ease 0.6s forwards;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.7s ease 0.8s forwards;
}

.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  color: #4a6860;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  animation: fadeUp 0.8s ease 1.6s forwards;
}

.scroll-line {
  width: 1.5px;
  height: 40px;
  background: linear-gradient(to bottom, var(--primary-green), transparent);
  animation: scrollLine 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* ── STATS STRIP ── */
.stats-strip {
  background: #06332b;
  padding: 2.5rem 2rem;
}

.stats-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
}

.stat-item { text-align: center; color: #fff; }

.stat-number {
  font-family: 'Poppins', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: #0ea854;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

/* ── TEASER SECTIONS ── */
.teaser-section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.teaser-heading {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  color: #06332b;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}

.teaser-desc {
  color: #4a6860;
  font-size: 0.95rem;
  line-height: 1.75;
  max-width: 460px;
  margin-bottom: 2rem;
}

/* About teaser */
.about-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-gfx {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #06332b, #0b8a42);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
  box-shadow: 0 24px 60px rgba(6,51,43,0.22);
}

.about-gfx::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 18px 18px;
  border-radius: inherit;
}

.about-gfx-inner {
  position: relative; z-index: 1;
  text-align: center; color: #fff;
}

.about-gfx-logo {
  width: 72px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  margin-bottom: 0.9rem;
}

.about-gfx-tag {
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

/* Floating pills */
.gfx-pill {
  position: absolute;
  background: rgba(255, 255, 255, 0.18); /* Slightly more opaque */
  backdrop-filter: blur(8px); /* Reduced blur to avoid "huge glow" look */
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 100px;
  padding: 0.5rem 1.2rem; /* Consistent padding */
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  z-index: 5;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.gfx-pill-1 { top: 14%; left: -16%; animation: pill1 5s ease-in-out infinite alternate; }
.gfx-pill-2 { bottom: 18%; right: -18%; animation: pill2 6.5s ease-in-out infinite alternate-reverse; }
.gfx-pill-3 { top: 68%; left: -12%; animation: pill3 4.5s ease-in-out infinite alternate; }

@keyframes pill1 { 0% { transform: translate(0, 0) rotate(-2deg); } 50% { transform: translate(8px, -12px) rotate(1deg); } 100% { transform: translate(-4px, 10px) rotate(-3deg); } }
@keyframes pill2 { 0% { transform: translate(0, 0) rotate(2deg); } 50% { transform: translate(-10px, 8px) rotate(-1deg); } 100% { transform: translate(6px, -10px) rotate(3deg); } }
@keyframes pill3 { 0% { transform: translate(0, 0) rotate(-1deg); } 50% { transform: translate(5px, 14px) rotate(2deg); } 100% { transform: translate(-8px, -6px) rotate(-2deg); } }

/* Works teaser cards */
.works-teaser {
  margin-top: 6rem;
  border-top: 1px solid rgba(6,51,43,0.07);
  padding-top: 6rem;
}

.works-teaser-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.works-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.work-card {
  position: relative;
  border-radius: 16px; /* Slightly smaller radius */
  overflow: hidden;
  aspect-ratio: 16/5; /* Even more compact */
  cursor: pointer;
  text-decoration: none;
  display: block;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), box-shadow 0.4s ease;
}

.work-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 16px 40px rgba(6,51,43,0.15);
}

.work-card-bg {
  position: absolute; inset: 0;
  transition: transform 0.5s ease;
}

.work-card:hover .work-card-bg { transform: scale(1.04); }

.work-card-bg-1 { background: linear-gradient(135deg, #06332b, #0b8a42 55%, #1acd6a); }
.work-card-bg-2 { background: linear-gradient(135deg, #092b23, #0a7038 55%, #0ea854); }

.work-card-bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 18px 18px;
}

.work-card-content {
  position: absolute; inset: 0;
  padding: 1rem 1.4rem; /* More compact padding */
  display: flex;
  flex-direction: column;
  justify-content: center; /* Center vertically since it's short */
  background: linear-gradient(to right, rgba(6,20,18,0.7) 0%, transparent 80%);
  z-index: 1;
}

.work-card-icon {
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  backdrop-filter: blur(4px);
}

.work-card-icon svg { color: #fff; }

.work-card-arrow {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 30px; height: 30px; /* Slightly smaller */
  background: rgba(255,255,255,0.14);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  transition: background 0.3s ease, transform 0.3s ease;
}

.work-card:hover .work-card-arrow { background: #0ea854; transform: rotate(45deg); }
.work-card-arrow svg { color: #fff; }

.work-card-label {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.2rem;
}

.work-card-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem; /* Slightly smaller */
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

/* ── CTA FINALE ── */
.home-cta {
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.home-cta-card {
  background: linear-gradient(135deg, #06332b 0%, #0b3d2e 50%, #06332b 100%);
  padding: 5rem 2rem;
  border-radius: 32px;
  position: relative;
  overflow: hidden;
  max-width: 1100px;
  margin: 0 auto;
  box-shadow: 0 30px 70px rgba(6, 51, 43, 0.2);
}

.home-cta-card::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
}

.home-cta-inner {
  position: relative; z-index: 1;
  max-width: 660px;
  margin: 0 auto;
}

.home-cta h2 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}

.home-cta h2 em { font-family: 'Playfair Display', serif; color: #0ea854; font-style: italic; }

.home-cta p { color: rgba(255,255,255,0.6); font-size: 0.97rem; line-height: 1.75; margin-bottom: 2.5rem; }

.btn-cta-white {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2.5rem;
  background: #fff;
  color: #06332b;
  border-radius: 100px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 22px rgba(0,0,0,0.18);
}

.btn-cta-white:hover {
  background: #0ea854;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(14,168,84,0.38);
}

/* ── RESPONSIVE ── */
/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .about-teaser { gap: 3rem; }
}

@media (max-width: 900px) {
  .about-teaser { grid-template-columns: 1fr; }
  .about-teaser-visual { order: -1; }
  .about-gfx { aspect-ratio: 16/10; } /* Less wide/stretched than 16/7 */
  .works-cards { grid-template-columns: 1fr; }
  .work-card { aspect-ratio: 16/6; }
}

@media (max-width: 768px) {
  .kirva-hero { padding: 100px 1.5rem 4rem; }
  .hero-title { font-size: clamp(2.8rem, 10vw, 4rem); }
  .scroll-hint { bottom: 1.5rem; gap: 0.4rem; }
  .scroll-line { height: 32px; }
}

@media (max-width: 580px) {
  .works-teaser-top { flex-direction: column; align-items: flex-start; }
  .stats-inner { gap: 1.5rem; }
  .stat-number { font-size: 2rem; }
  
  /* Make floating pills visible and scattered on mobile */
  .gfx-pill {
    padding: 0.45rem 1rem;
    font-size: 0.65rem;
    bottom: auto !important; /* Reset bottom to prevent stretching */
  }
  .gfx-pill-1 { top: 10%; left: -2%; animation: pill1 5s ease-in-out infinite alternate; }
  .gfx-pill-2 { top: 30%; right: -2%; left: auto; animation: pill2 6.5s ease-in-out infinite alternate-reverse; }
  .gfx-pill-3 { top: 60%; left: -4%; animation: pill3 4.5s ease-in-out infinite alternate; }
  
  .work-card { aspect-ratio: 16/5; }
}
