/* ==========================================================================
   PREMIUM CINEMATIC POLISH — atmosphere, scale, depth
   ========================================================================== */

:root {
  --scale-ui: 1.125;
  --container-max: 1380px;
  --section-pad: clamp(4.5rem, 9vw, 8rem);
  --header-h: 88px;
  --accent-glow-soft: rgba(182, 255, 0, 0.14);
  --glass: rgba(14, 14, 14, 0.72);
  --glass-border: rgba(255, 255, 255, 0.1);
}

html {
  font-size: 112.5%;
}

@media (min-width: 1200px) {
  html { font-size: 118.75%; }
}

@media (min-width: 1600px) {
  html { font-size: 125%; }
}

body {
  line-height: 1.65;
}

/* ---- Section atmospheric layers (CSS/SVG via pseudo) ---- */
.section--cinema,
.hero,
.stats,
.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.section--cinema::before,
.hero::before,
.stats::before,
.cta::before,
.testimonials::before,
.about::before,
.services::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.section--cinema > .container,
.hero > .container,
.stats > .container,
.cta > .container,
.testimonials > .container,
.about > .container,
.services > .container {
  position: relative;
  z-index: 1;
}

/* Hero — diagonal frame, fog, glow */
.hero::before {
  background:
    radial-gradient(ellipse 55% 45% at 78% 42%, rgba(182, 255, 0, 0.14), transparent 68%),
    radial-gradient(ellipse 40% 35% at 20% 80%, rgba(182, 255, 0, 0.06), transparent 70%),
    linear-gradient(125deg, transparent 42%, rgba(182, 255, 0, 0.03) 50%, transparent 58%);
}

.hero::after {
  content: "";
  position: absolute;
  top: 12%;
  right: 8%;
  width: min(52vw, 620px);
  height: min(72vh, 720px);
  border: 1px solid rgba(182, 255, 0, 0.12);
  border-radius: 2px;
  transform: rotate(-8deg) skewY(-2deg);
  pointer-events: none;
  z-index: 0;
  mask-image: linear-gradient(180deg, #000 0%, transparent 92%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 92%);
  box-shadow:
    inset 0 0 80px rgba(182, 255, 0, 0.04),
    0 0 120px rgba(182, 255, 0, 0.06);
}

/* hero atmosphere — hero-cinema.css */

.hero__title {
  font-size: clamp(3.35rem, 8.5vw, 6.25rem) !important;
  text-shadow: 0 0 60px rgba(182, 255, 0, 0.08);
}

.hero__subtitle {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem) !important;
  max-width: 34rem;
}

.hero__pill {
  font-size: 0.78rem;
  padding: 0.5rem 0.9rem;
}

.hero__features li {
  font-size: 0.88rem;
}

.hero__expertise li {
  font-size: 0.82rem;
}

.hero__badge {
  font-size: 0.62rem;
}

/* Services — mesh + diagonal accents */
.services::before {
  background:
    radial-gradient(circle at 15% 20%, rgba(182, 255, 0, 0.08), transparent 35%),
    radial-gradient(circle at 85% 80%, rgba(182, 255, 0, 0.05), transparent 40%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.02) 0,
      rgba(255, 255, 255, 0.02) 1px,
      transparent 1px,
      transparent 80px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.015) 0,
      rgba(255, 255, 255, 0.015) 1px,
      transparent 1px,
      transparent 80px
    );
  opacity: 0.85;
}

.services::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -80px;
  top: 20%;
  border: 1px solid rgba(182, 255, 0, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.service-card {
  position: relative;
  background: linear-gradient(155deg, rgba(22, 22, 22, 0.95) 0%, rgba(12, 12, 12, 0.98) 100%);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(182, 255, 0, 0.06) 0%, transparent 45%);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
  pointer-events: none;
  z-index: 1;
}

.service-card:hover::before,
.service-card:focus-visible::before {
  opacity: 1;
}

.service-card:hover,
.service-card:focus-visible {
  transform: translateY(-4px);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.45),
    0 0 24px rgba(182, 255, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.service-card__media::after {
  background: linear-gradient(180deg, transparent 35%, rgba(5, 5, 5, 0.85) 100%) !important;
}

.service-card__title {
  font-size: 1.2rem !important;
}

.service-card__text {
  font-size: 0.95rem !important;
  line-height: 1.6 !important;
}

/* Stats — lime bloom */
.stats::before {
  background:
    radial-gradient(ellipse 70% 80% at 50% 50%, rgba(182, 255, 0, 0.1), transparent 65%),
    linear-gradient(180deg, rgba(182, 255, 0, 0.04) 0%, transparent 40%, transparent 60%, rgba(182, 255, 0, 0.03) 100%);
}

.stat {
  background: linear-gradient(160deg, rgba(20, 20, 20, 0.9), rgba(10, 10, 10, 0.95));
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.stat__value {
  font-size: clamp(2.25rem, 5vw, 3.25rem) !important;
}

.stat__label {
  font-size: 0.9rem !important;
}

/* About — side glow + lines */
.about::before {
  background:
    linear-gradient(90deg, rgba(182, 255, 0, 0.05) 0%, transparent 25%),
    radial-gradient(ellipse 50% 60% at 0% 50%, rgba(182, 255, 0, 0.07), transparent 70%),
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 60px,
      rgba(255, 255, 255, 0.02) 60px,
      rgba(255, 255, 255, 0.02) 61px
    );
}

.about__text {
  font-size: clamp(1.02rem, 2vw, 1.12rem) !important;
}

/* Testimonials — glass cards */
.testimonials::before {
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(182, 255, 0, 0.08), transparent 70%),
    radial-gradient(ellipse 40% 40% at 100% 100%, rgba(182, 255, 0, 0.04), transparent 60%);
}

.testimonial {
  background: var(--glass) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--glass-border) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.testimonial__text {
  font-size: 1.05rem !important;
  line-height: 1.75 !important;
}

.testimonial__author {
  font-size: 0.88rem !important;
}

/* CTA — vignette + lines */
.cta::before {
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 70% at 30% 50%, rgba(182, 255, 0, 0.1), transparent 55%),
    linear-gradient(105deg, transparent 30%, rgba(182, 255, 0, 0.04) 48%, transparent 65%),
    url("https://images.unsplash.com/photo-1534438327276-14e5300c3a48?w=1600&q=60&auto=format&fit=crop") center/cover !important;
  opacity: 0.14 !important;
}

.cta::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(182, 255, 0, 0.25), transparent);
  pointer-events: none;
}

.cta__title {
  font-size: clamp(2rem, 4.5vw, 3.1rem) !important;
}

.cta__features li {
  font-size: 0.88rem !important;
}

/* Typography scale — global */
.eyebrow {
  font-size: clamp(0.78rem, 1.5vw, 0.88rem) !important;
  margin-bottom: 1.1rem;
}

.section__title {
  font-size: clamp(2.35rem, 5vw, 3.5rem) !important;
}

.section__desc {
  font-size: clamp(1rem, 2vw, 1.12rem) !important;
  line-height: 1.7 !important;
}

.nav__link {
  font-size: 0.82rem !important;
}

.btn {
  font-size: 0.92rem !important;
  min-height: 52px;
  padding: 0.95rem 1.9rem;
}

.btn--lg {
  min-height: 56px;
  font-size: 0.88rem !important;
}

/* Logo mark */
.logo__wordmark--header {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.logo__wordmark--footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0.12rem;
}

.logo--footer {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
}

.logo__mark {
  width: 42px;
  height: 50px;
  flex-shrink: 0;
  display: block;
  overflow: visible;
}

.logo__mark--footer {
  width: 46px;
  height: 54px;
}

.logo__wordmark {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.logo__name {
  font-size: 1.15rem !important;
}

.logo__tag {
  font-size: 0.68rem !important;
}

/* CTA icons — overridden in main.css (glass circles) */

/* Modal typography bump */
@media (min-width: 769px) {
  .service-modal__title {
    font-size: 1.75rem !important;
  }
  .service-modal__text {
    font-size: 0.92rem !important;
  }
  .service-modal__check-item {
    font-size: 0.9rem !important;
  }
  .service-modal__heading {
    font-size: 1.1rem !important;
  }
}

/* Page bg enhanced */
.page-bg__grid {
  background-size: 64px 64px;
  opacity: 0.22;
}

.page-bg__glow--1 {
  width: 720px;
  height: 720px;
  filter: blur(100px);
  opacity: 0.9;
}

/* Performance — contain paints */
.hero__scene,
.service-card,
.testimonial,
.stat {
  contain: layout style paint;
}

.testimonials__track {
  backface-visibility: hidden;
}

@media (min-width: 1024px) {
  .hero__inner {
    gap: clamp(2rem, 4vw, 3.25rem);
    align-items: center;
  }
  .about__inner {
    gap: clamp(2rem, 3.5vw, 3.5rem);
  }
}

@media (max-width: 768px) {
  .logo__wordmark--header {
    display: none;
  }
  .logo__wordmark--footer .logo__tag {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-card:hover {
    transform: none;
  }
}
