/* =========================================================
   General Pulito — Premium Corporate Design
   Palette: Deep Black + Burgundy/Crimson + Warm Cream
   ========================================================= */

/* --- Design Tokens --- */
:root {
  --black: #0a0a0a;
  --black-light: #111111;
  --black-card: #161616;
  --burgundy: #8B1A2B;
  --crimson: #A0243D;
  --crimson-light: #C43352;
  --red-vivid: #E63946;
  --red-glow: rgba(230, 57, 70, 0.35);
  --cream: #F2ECE4;
  --cream-dark: #D4CBC0;
  --muted: #8B857E;
  --muted-light: #ADA69D;
  --border: rgba(242, 236, 228, 0.06);
  --border-card: rgba(230, 57, 70, 0.18);
  --border-card-hover: rgba(230, 57, 70, 0.6);
  --radius: 0.75rem;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --font-display: 'Manrope', sans-serif;
  --font-body: 'Figtree', sans-serif;
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--crimson); color: #fff; }

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }

.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }

/* --- Custom Cursor --- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--crimson);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transition: transform 0.15s var(--ease-out);
}

.cursor-follower {
  position: fixed;
  top: 0; left: 0;
  width: 40px; height: 40px;
  border: 1px solid var(--crimson-light);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.5;
  transition: transform 0.4s var(--ease-out), width 0.3s, height 0.3s, opacity 0.3s;
}

.cursor-hover .cursor { transform: scale(4); opacity: 0.5; }
.cursor-hover .cursor-follower { width: 60px; height: 60px; opacity: 0; }

@media (hover: none) {
  .cursor, .cursor-follower { display: none; }
}

/* --- Loader --- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s var(--ease-out), visibility 0.8s;
}

.loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Blocca scroll mentre il loader e attivo */
body:has(.loader:not(.loaded)) {
  overflow: hidden;
}

.loader-inner {
  text-align: center;
  position: relative;
  padding: 0 3rem;
}

/* Sparkles container */
.loader-sparkles {
  position: absolute;
  inset: -2rem -1rem;
  pointer-events: none;
}

.sparkle {
  position: absolute;
  width: 14px;
  height: 14px;
  color: var(--red-vivid);
  opacity: 0;
  filter: drop-shadow(0 0 6px var(--red-glow));
  animation: sparklePulse 2.4s ease-in-out infinite;
  transform-origin: center;
}

.sparkle-1 {
  top: 10%;
  left: 0;
  width: 12px;
  height: 12px;
  animation-delay: 0s;
}

.sparkle-2 {
  top: 60%;
  left: 12%;
  width: 8px;
  height: 8px;
  color: var(--cream);
  animation-delay: 0.4s;
}

.sparkle-3 {
  top: 0;
  right: 18%;
  width: 16px;
  height: 16px;
  animation-delay: 0.8s;
}

.sparkle-4 {
  bottom: 10%;
  right: 5%;
  width: 10px;
  height: 10px;
  color: var(--cream);
  animation-delay: 1.2s;
}

.sparkle-5 {
  top: 40%;
  right: 35%;
  width: 6px;
  height: 6px;
  animation-delay: 1.6s;
}

@keyframes sparklePulse {
  0%, 100% {
    opacity: 0;
    transform: scale(0) rotate(0deg);
  }
  40% {
    opacity: 1;
    transform: scale(1) rotate(90deg);
  }
  60% {
    opacity: 1;
    transform: scale(1) rotate(180deg);
  }
  80% {
    opacity: 0.2;
    transform: scale(0.4) rotate(270deg);
  }
}

.loader-line {
  width: 140px; height: 2px;
  background: var(--border);
  margin: 0 auto 1.5rem;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.loader-line::after {
  content: '';
  position: absolute;
  left: -40%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--red-vivid), transparent);
  animation: loaderSlide 1.4s var(--ease-smooth) infinite;
  box-shadow: 0 0 10px var(--red-glow);
}

@keyframes loaderSlide {
  0% { left: -40%; }
  100% { left: 100%; }
}

.loader-text {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--cream);
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .sparkle { animation: none; opacity: 0.6; transform: scale(1); }
  .loader-line::after { animation: none; left: 0; width: 100%; }
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: all 0.5s var(--ease-out);
}

.navbar.scrolled {
  padding: 0.75rem 0;
}

.navbar.scrolled .nav-inner {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-color: var(--border);
}

.nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 100px;
  border: 1px solid transparent;
  transition: all 0.5s var(--ease-out);
}

.nav-logo img {
  height: 40px;
  width: auto;
  transition: transform 0.3s var(--ease-out);
}

.nav-logo:hover img { transform: scale(1.05); }

.nav-links {
  display: none;
  align-items: center;
  gap: 2.5rem;
}

@media (min-width: 1024px) { .nav-links { display: flex; } }

.nav-link {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted-light);
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
  display: block;
  padding: 0.25rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 1px;
  background: var(--crimson);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}

.nav-link:hover { color: var(--cream); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-cta {
  display: none;
  padding: 0.625rem 1.75rem;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--red-vivid);
  color: #fff;
  border-radius: 100px;
  transition: all 0.3s var(--ease-out);
}

.nav-cta:hover { background: #ff4757; transform: translateY(-1px); box-shadow: 0 6px 20px var(--red-glow); }

@media (min-width: 1024px) { .nav-cta { display: block; } }

/* Menu Button */
.menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  z-index: 1001;
}

.menu-btn span {
  display: block;
  width: 28px; height: 2px;
  background: var(--cream);
  transition: all 0.4s var(--ease-out);
  border-radius: 2px;
}

.menu-btn.active span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn.active span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (min-width: 1024px) { .menu-btn { display: none; } }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: circle(0% at calc(100% - 3rem) 2rem);
  transition: clip-path 0.7s var(--ease-out);
  pointer-events: none;
}

.mobile-menu.open {
  clip-path: circle(150% at calc(100% - 3rem) 2rem);
  pointer-events: all;
}

.mobile-menu-inner { display: flex; flex-direction: column; gap: 0.5rem; }

.mobile-menu-link {
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 4rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: color 0.3s var(--ease-out), transform 0.4s var(--ease-out);
}

/* Red dash before each category */
.mobile-menu-link::before {
  content: '';
  display: block;
  flex-shrink: 0;
  width: 2rem;
  height: 3px;
  background: #E63946;
  box-shadow: 0 0 10px rgba(230, 57, 70, 0.35);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out), width 0.4s var(--ease-out);
}

.mobile-menu.open .mobile-menu-link::before { transform: scaleX(1); }

.mobile-menu-link-text {
  display: block;
  overflow: hidden;
  flex: 1;
}

.mobile-menu-link-text > span {
  display: block;
  transform: translateY(110%);
  transition: transform 0.6s var(--ease-out);
}

.mobile-menu.open .mobile-menu-link-text > span { transform: translateY(0); }
.mobile-menu.open .mobile-menu-link:nth-child(1) .mobile-menu-link-text > span { transition-delay: 0.15s; }
.mobile-menu.open .mobile-menu-link:nth-child(2) .mobile-menu-link-text > span { transition-delay: 0.2s; }
.mobile-menu.open .mobile-menu-link:nth-child(3) .mobile-menu-link-text > span { transition-delay: 0.25s; }
.mobile-menu.open .mobile-menu-link:nth-child(4) .mobile-menu-link-text > span { transition-delay: 0.3s; }
.mobile-menu.open .mobile-menu-link:nth-child(5) .mobile-menu-link-text > span { transition-delay: 0.35s; }

.mobile-menu.open .mobile-menu-link:nth-child(1)::before { transition-delay: 0.2s; }
.mobile-menu.open .mobile-menu-link:nth-child(2)::before { transition-delay: 0.25s; }
.mobile-menu.open .mobile-menu-link:nth-child(3)::before { transition-delay: 0.3s; }
.mobile-menu.open .mobile-menu-link:nth-child(4)::before { transition-delay: 0.35s; }
.mobile-menu.open .mobile-menu-link:nth-child(5)::before { transition-delay: 0.4s; }

.mobile-menu-link:hover,
.mobile-menu-link:active {
  color: var(--red-vivid);
  transform: translateX(8px);
}

.mobile-menu-link:hover::before,
.mobile-menu-link:active::before {
  width: 3rem;
  transform: scaleX(1);
}

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 100vh; /* fallback per browser vecchi */
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transform: scale(1.08);
}

@media (min-width: 768px) {
  .hero-bg img { object-position: center 15%; }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    /* Mobile-first: overlay piu intenso per leggibilita su immagini chiare */
    linear-gradient(180deg,
      rgba(10,10,10,0.45) 0%,
      rgba(10,10,10,0.25) 25%,
      rgba(10,10,10,0.55) 45%,
      rgba(10,10,10,0.92) 65%,
      rgba(10,10,10,0.98) 78%,
      rgba(10,10,10,1) 92%);
}

@media (min-width: 768px) {
  .hero-overlay {
    background:
      linear-gradient(180deg,
        rgba(10,10,10,0.2) 0%,
        rgba(10,10,10,0.05) 20%,
        rgba(10,10,10,0.15) 45%,
        rgba(10,10,10,0.7) 62%,
        rgba(10,10,10,0.92) 75%,
        rgba(10,10,10,1) 92%);
  }
}

/* Vignette laterale sottile per profondita */
.hero-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(10,10,10,0.35) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  padding-bottom: clamp(10rem, 18vw, 6.5rem);
  text-align: center;
}

@media (min-width: 768px) {
  .hero-content { padding-bottom: 7rem; }
}

.hero-overline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  opacity: 0;
}

.hero-overline-line {
  width: 28px; height: 1px;
  background: var(--red-vivid);
  flex-shrink: 0;
}

.hero-overline span {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red-vivid);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.035em;
  font-size: clamp(2.75rem, 9vw, 7rem);
  margin-bottom: 1.5rem;
  text-shadow:
    0 2px 20px rgba(0, 0, 0, 0.6),
    0 4px 40px rgba(0, 0, 0, 0.4);
}

@media (min-width: 768px) {
  .hero-title {
    line-height: 0.92;
    letter-spacing: -0.04em;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
  }
}

.hero-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}

.hero-line-inner {
  display: block;
  transform: translateY(110%);
  color: #fff;
}

.hero-line.accent .hero-line-inner {
  color: var(--red-vivid);
  text-shadow:
    0 2px 20px rgba(0, 0, 0, 0.7),
    0 0 30px rgba(230, 57, 70, 0.4);
}

.hero-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  opacity: 0;
}

.hero-sub {
  font-size: clamp(0.9375rem, 1.2vw, 1rem);
  color: rgba(242, 236, 228, 0.85);
  line-height: 1.65;
  font-weight: 400;
  max-width: 520px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Primary Button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.125rem 2.25rem;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  background: var(--red-vivid);
  color: #fff;
  border-radius: 100px;
  transition: all 0.4s var(--ease-out);
  white-space: nowrap;
  border: 2px solid var(--red-vivid);
}

.btn-primary:hover {
  background: #ff4757;
  border-color: #ff4757;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px var(--red-glow);
}

.btn-primary svg { transition: transform 0.3s var(--ease-out); }
.btn-primary:hover svg { transform: translate(3px, -3px); }

/* Ghost Button */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1.125rem 2.25rem;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--cream);
  border: 2px solid rgba(242, 236, 228, 0.2);
  border-radius: 100px;
  transition: all 0.4s var(--ease-out);
  white-space: nowrap;
}

.btn-ghost:hover {
  border-color: var(--red-vivid);
  color: var(--red-vivid);
  transform: translateY(-2px);
}

/* Hero Stats Bar */
.hero-stats-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem clamp(1.5rem, 3vw, 3rem);
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-card);
  overflow: hidden;
}

.hero-stat-divider { display: none; }

@media (min-width: 640px) {
  .hero-stat-divider { display: block; }
}

.hero-stat {
  text-align: center;
  opacity: 0;
}

.hero-stat-number {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 800;
  color: var(--cream);
  line-height: 1;
}

.hero-stat-symbol {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 1.375rem);
  font-weight: 300;
  color: var(--red-vivid);
}

.hero-stat-label {
  display: block;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.25rem;
}

.hero-stat-label-only {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-vivid);
}

.hero-stat-divider {
  width: 1px;
  height: 2.5rem;
  background: var(--border-card);
}

/* Ghost button arrow bounce */
.btn-ghost svg {
  animation: arrowBounce 2s ease-in-out infinite;
}

@keyframes arrowBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

/* --- Marquee --- */
.marquee {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  background: var(--black);
}

.marquee-inner {
  display: flex;
  gap: 2rem;
  white-space: nowrap;
  animation: marqueeScroll 30s linear infinite;
}

.marquee-inner span {
  font-family: var(--font-display);
  font-size: clamp(0.75rem, 1.2vw, 0.875rem);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  flex-shrink: 0;
}

.marquee-dot {
  width: 4px !important;
  height: 4px !important;
  background: var(--crimson) !important;
  border-radius: 50%;
  display: inline-block;
  align-self: center;
  flex-shrink: 0;
  letter-spacing: 0 !important;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Sections --- */
.section { padding: clamp(5rem, 12vw, 10rem) 0; }
.section-dark { background: var(--black); }

.section-header { margin-bottom: clamp(3rem, 6vw, 5rem); }

.section-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--cream);
}

.text-muted { color: var(--muted); }
.text-accent { color: var(--crimson-light); }

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  border-radius: var(--radius);
}

@media (min-width: 768px) { .services-grid { grid-template-columns: 1fr 1fr; } }

.service-item {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--black);
  border: 2px solid var(--border-card);
  border-radius: var(--radius);
  transition: all 0.45s var(--ease-out);
  position: relative;
  overflow: hidden;
  min-height: 320px;
}

.service-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--red-glow), transparent 60%);
  opacity: 0;
  transition: opacity 0.45s var(--ease-out);
  pointer-events: none;
  z-index: 1;
}

@media (min-width: 640px) {
  .service-item { grid-template-columns: 1fr 1fr; min-height: 280px; }
}

.service-item:hover {
  border-color: var(--red-vivid);
  transform: translateY(-4px);
  box-shadow: 0 0 35px var(--red-glow), 0 20px 50px rgba(0,0,0,0.3);
}

.service-item:hover::before { opacity: 1; }

.service-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

@media (min-width: 640px) { .service-img { aspect-ratio: auto; } }

.service-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}

.service-item:hover .service-img img { transform: scale(1.08); }

.service-info {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.service-num {
  font-family: var(--font-display);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--crimson);
  margin-bottom: 1rem;
}

.service-name {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--cream);
  margin-bottom: 0.75rem;
}

.service-desc {
  font-size: 0.875rem;
  color: var(--muted-light);
  line-height: 1.6;
}

.service-arrow {
  position: absolute;
  top: clamp(1.5rem, 3vw, 2.5rem);
  right: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--muted);
  transition: all 0.4s var(--ease-out);
  opacity: 0;
  transform: translate(-8px, 8px);
}

.service-item:hover .service-arrow {
  opacity: 1;
  transform: translate(0, 0);
  color: var(--crimson-light);
}

/* --- About --- */
.section-about { background: var(--black-light); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

@media (min-width: 1024px) { .about-grid { grid-template-columns: 1fr 1fr; } }

.about-images { position: relative; }

.about-img-main {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
  border: 2px solid var(--border-card);
  transition: border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.about-img-main:hover {
  border-color: var(--red-vivid);
  box-shadow: 0 0 30px var(--red-glow);
}

.about-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  transition: transform 0.7s var(--ease-out);
}

.about-img-main:hover img { transform: scale(1.03); }

.about-img-secondary {
  position: absolute;
  bottom: -2rem; right: -1rem;
  width: 45%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 4px solid var(--black-light);
  display: none;
}

@media (min-width: 768px) { .about-img-secondary { display: block; } }

.about-img-secondary img { width: 100%; height: auto; }

.about-badge {
  position: absolute;
  top: 1.5rem; left: 1.5rem;
  background: var(--crimson);
  color: #fff;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  text-align: center;
}

.about-badge-year {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.about-badge-text {
  display: block;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 0.25rem;
  opacity: 0.8;
}

.about-text {
  margin-top: 2rem;
}

.about-text p {
  font-size: clamp(0.9375rem, 1.3vw, 1.0625rem);
  color: var(--muted-light);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.about-text strong { color: var(--cream); font-weight: 600; }

.about-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.about-metric-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--cream);
  line-height: 1;
}

.about-metric-symbol {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 300;
  color: var(--crimson-light);
}

.about-metric-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.375rem;
}

/* --- Image Marquee (Infinite Loop) --- */
.img-marquee {
  overflow: hidden;
  margin-top: 1.25rem;
}

.img-marquee:first-of-type { margin-top: clamp(3rem, 6vw, 5rem); }

.img-marquee-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  will-change: transform;
}

.img-marquee-left {
  animation: imgMarqueeLeft 35s linear infinite;
}

.img-marquee-right {
  animation: imgMarqueeRight 35s linear infinite;
}

@keyframes imgMarqueeLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes imgMarqueeRight {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.img-marquee:hover .img-marquee-track {
  animation-play-state: paused;
}

.img-marquee-item {
  flex: 0 0 auto;
  width: clamp(300px, 28vw, 440px);
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--border-card);
  transition: all 0.45s var(--ease-out);
}

.img-marquee-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--red-glow), transparent 60%);
  opacity: 0;
  transition: opacity 0.45s var(--ease-out);
  pointer-events: none;
  z-index: 1;
}

.img-marquee-item:hover {
  border-color: var(--red-vivid);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 0 35px var(--red-glow), 0 20px 50px rgba(0,0,0,0.3);
}

.img-marquee-item:hover::before { opacity: 1; }

.img-marquee-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.img-marquee-item:hover img { transform: scale(1.05); }

.img-marquee-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 3rem 1.25rem 1.25rem;
  background: linear-gradient(to top, rgba(10,10,10,0.9), transparent);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
}

@media (prefers-reduced-motion: reduce) {
  .img-marquee-left,
  .img-marquee-right {
    animation: none;
  }
}

/* --- Why Section --- */
.section-why { background: var(--black-light); }

.why-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(3rem, 6vw, 6rem);
}

@media (min-width: 1024px) {
  .why-layout { grid-template-columns: 1fr 1fr; align-items: start; }
  .why-left { position: sticky; top: 8rem; }
}

.why-right { display: flex; flex-direction: column; gap: 0; }

.why-item {
  display: flex;
  gap: 1.5rem;
  padding: 2rem 1.5rem;
  border: 2px solid var(--border-card);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  transition: all 0.45s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.why-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--red-glow), transparent 70%);
  opacity: 0;
  transition: opacity 0.45s var(--ease-out);
  pointer-events: none;
}

.why-item:first-child { border-top: 2px solid var(--border-card); }

.why-item:hover {
  border-color: var(--red-vivid);
  transform: translateY(-4px);
  box-shadow: 0 0 35px var(--red-glow), 0 20px 50px rgba(0,0,0,0.3);
}

.why-item:hover::before { opacity: 1; }

.why-item-num {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--crimson);
  padding-top: 0.25rem;
  flex-shrink: 0;
}

.why-item-content h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.why-item-content p {
  font-size: 0.875rem;
  color: var(--muted-light);
  line-height: 1.6;
}

/* --- Careers --- */
.careers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: start;
}

@media (min-width: 1024px) { .careers-grid { grid-template-columns: 1fr 1fr; } }

.careers-desc {
  font-size: 1rem;
  color: var(--muted-light);
  line-height: 1.7;
  margin-top: 2rem;
}

.careers-perks {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2.5rem;
}

.careers-perk {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--cream);
}

.careers-perk-icon {
  color: var(--crimson-light);
  flex-shrink: 0;
}

/* --- ATS Form --- */
.ats-form {
  background: var(--black-card);
  border: 2px solid var(--border-card);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  transition: all 0.45s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.ats-form::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--red-glow), transparent 50%);
  opacity: 0;
  transition: opacity 0.45s var(--ease-out);
  pointer-events: none;
}

.ats-form:hover {
  border-color: var(--red-vivid);
  box-shadow: 0 0 35px var(--red-glow), 0 20px 50px rgba(0,0,0,0.3);
}

.ats-form:hover::before { opacity: 1; }

.ats-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.ats-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 480px) { .ats-row { grid-template-columns: 1fr 1fr; } }

.ats-field {
  margin-bottom: 1rem;
}

.ats-field label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted-light);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.req { color: var(--crimson-light); }

.ats-field input,
.ats-field select,
.ats-field textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--cream);
  background: var(--black);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
  -webkit-appearance: none;
  appearance: none;
}

.ats-field input::placeholder,
.ats-field textarea::placeholder {
  color: var(--muted);
}

.ats-field input:focus,
.ats-field select:focus,
.ats-field textarea:focus {
  border-color: var(--crimson);
  box-shadow: 0 0 0 3px rgba(160, 36, 61, 0.12);
}

.ats-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236B6560' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.ats-conditional {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s var(--ease-out), opacity 0.4s;
}

.ats-conditional.show {
  max-height: 200px;
  opacity: 1;
}

.ats-privacy {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.ats-privacy input[type="checkbox"] {
  margin-top: 2px;
  width: 16px; height: 16px;
  accent-color: var(--crimson);
  flex-shrink: 0;
}

.ats-privacy label {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.5;
}

.ats-submit {
  width: 100%;
  padding: 1rem;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  background: var(--red-vivid);
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: all 0.3s var(--ease-out);
}

.ats-submit:hover { background: #ff4757; transform: translateY(-1px); box-shadow: 0 8px 25px var(--red-glow); }
.ats-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.ats-spinner {
  width: 20px; height: 20px;
  animation: spin 0.8s linear infinite;
  display: none;
}

.ats-spinner.active { display: block; }

@keyframes spin { to { transform: rotate(360deg); } }

.ats-success {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  text-align: center;
  font-weight: 500;
  display: none;
}

.ats-success.show { display: block; }

.ats-success.error {
  background: rgba(230, 57, 70, 0.08);
  border-color: rgba(230, 57, 70, 0.3);
  color: var(--red-vivid);
}

/* ============ SKIP LINK (a11y) ============ */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--crimson);
  color: #fff;
  padding: 12px 18px;
  z-index: 99999;
  text-decoration: none;
  font: 600 14px/1 var(--font-body);
  border-radius: 0 0 8px 0;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0;
  outline: 2px solid var(--cream);
  outline-offset: 2px;
}

img, video { max-width: 100%; height: auto; }


/* --- CTA / Contact Section --- */
.section-cta { background: var(--black-light); }

.cta-header { margin-bottom: clamp(3rem, 6vw, 4rem); }

.cta-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin-top: 1rem;
}

.cta-desc {
  font-size: 1.0625rem;
  color: var(--muted-light);
  line-height: 1.7;
  margin-top: 1.5rem;
  max-width: 550px;
}

/* Contact Cards Grid */
.contact-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) { .contact-cards { grid-template-columns: 1fr 1fr; } }

.contact-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 2rem 2.25rem;
  background: var(--black);
  border: 2px solid var(--border-card-hover);
  border-radius: var(--radius);
  transition: all 0.45s var(--ease-out);
  position: relative;
  overflow: hidden;
}

/* Glow overlay */
.contact-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--red-glow), transparent 50%, rgba(230,57,70,0.08) 100%);
  opacity: 0;
  transition: opacity 0.45s var(--ease-out);
  pointer-events: none;
}

/* Permanent subtle top glow */
.contact-card::after {
  content: '';
  position: absolute;
  top: -1px; left: 20%; right: 20%;
  height: 1px;
  background: var(--red-vivid);
  box-shadow: 0 0 15px var(--red-vivid), 0 0 40px var(--red-glow);
  opacity: 0.5;
  transition: all 0.45s var(--ease-out);
  pointer-events: none;
}

.contact-card:hover {
  border-color: var(--red-vivid);
  transform: translateY(-6px) scale(1.01);
  box-shadow:
    0 0 45px rgba(230, 57, 70, 0.45),
    0 0 80px rgba(230, 57, 70, 0.15),
    0 25px 60px rgba(0,0,0,0.4);
}

.contact-card:hover::before { opacity: 1; }
.contact-card:hover::after {
  left: 10%; right: 10%;
  opacity: 1;
  box-shadow: 0 0 20px var(--red-vivid), 0 0 60px var(--red-glow);
}

.contact-card-icon {
  flex-shrink: 0;
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(230, 57, 70, 0.08);
  border: 1px solid rgba(230, 57, 70, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red-vivid);
  transition: all 0.4s var(--ease-out);
  position: relative;
  z-index: 1;
}

.contact-card:hover .contact-card-icon {
  background: var(--red-vivid);
  color: #fff;
  border-color: var(--red-vivid);
  transform: scale(1.05);
  box-shadow: 0 0 20px var(--red-glow);
}

.contact-card-icon--fb { color: #1877F2; }
.contact-card-icon--fb { background: rgba(24, 119, 242, 0.08); border-color: rgba(24, 119, 242, 0.15); }
.contact-card:hover .contact-card-icon--fb { background: #1877F2; color: #fff; border-color: #1877F2; box-shadow: 0 0 20px rgba(24, 119, 242, 0.35); }

.contact-card-body {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.contact-card-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.375rem;
}

.contact-card-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(0.875rem, 2.5vw, 1.0625rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.3;
  overflow-wrap: break-word;
  word-break: break-word;
}

.contact-card-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.contact-card-arrow {
  flex-shrink: 0;
  color: var(--muted);
  opacity: 0;
  transform: translate(-8px, 8px);
  transition: all 0.4s var(--ease-out);
  position: relative;
  z-index: 1;
}

.contact-card:hover .contact-card-arrow {
  opacity: 1;
  transform: translate(0, 0);
  color: var(--red-vivid);
}

/* --- Footer --- */
.footer {
  background: var(--black);
  border-top: 1px solid var(--border);
  padding: 5rem 0 3rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 768px) { .footer-top { grid-template-columns: 1fr 2fr; } }

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-brand img { border-radius: 8px; }

.footer-brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--cream);
  line-height: 1.1;
}

.footer-brand-sub {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (min-width: 768px) { .footer-cols { grid-template-columns: repeat(3, 1fr); } }

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 1.25rem;
}

.footer-col a, .footer-col p {
  display: block;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 0.625rem;
  transition: color 0.2s;
  overflow-wrap: break-word;
  word-break: break-word;
}

.footer-col a:hover { color: var(--crimson-light); }

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: 2rem;
}

@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: flex-end; }
}

.footer-legal p {
  font-size: 0.6875rem;
  color: var(--muted);
  line-height: 1.8;
  overflow-wrap: break-word;
  word-break: break-word;
}

.footer-legal strong { color: var(--muted-light); }

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.6875rem;
  color: var(--muted);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--crimson-light); }

.footer-credit {
  text-align: center;
  padding-top: 2rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.footer-credit p {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.footer-credit a {
  color: var(--red-vivid);
  font-weight: 600;
  transition: color 0.2s;
}

.footer-credit a:hover { color: #ff4757; }

/* --- Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .hero-line-inner, .hero-overline, .hero-bottom, .hero-stat {
    opacity: 1 !important;
    transform: none !important;
  }
  .marquee-inner { animation: none; }
}
