/* ============================================
   LEONE — Web Presentation
   Apple-style scroll experience
   ============================================ */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors */
  --black: #000000;
  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f5f5f7;
  --gray-200: #e8e8ed;
  --gray-300: #d2d2d7;
  --gray-400: #afafb2;
  --gray-500: #86868b;
  --gray-600: #6e6e73;
  --gray-700: #424245;
  --gray-800: #2d2d30;
  --gray-900: #1d1d1f;

  /* Accent */
  --accent: #e86520;
  --accent-2: #f5a623;
  --accent-gradient: linear-gradient(135deg, #e86520 0%, #f5a623 100%);

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --section-padding: clamp(80px, 12vh, 160px);
  --container-max: 1200px;
  --container-wide: 1440px;
  --gutter: clamp(20px, 4vw, 40px);

  /* Easing */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: auto; /* Lenis handles smooth scroll */
  overflow-x: clip;      /* Prevent horizontal scrollbar from full-bleed carousels */
}

html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body {
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--black);
  overflow-x: hidden;
  cursor: none;
}

@media (hover: none) {
  body { cursor: auto; }
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  border: none;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}


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

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

.loader__inner {
  width: 60px;
  height: 2px;
  background: var(--gray-800);
  border-radius: 2px;
  overflow: hidden;
}

.loader__bar {
  width: 0%;
  height: 100%;
  background: var(--white);
  border-radius: 2px;
  animation: loaderBar 1.2s var(--ease-out-expo) forwards;
}

@keyframes loaderBar {
  0% { width: 0%; }
  100% { width: 100%; }
}


/* ---------- CURSOR (desktop) ---------- */
.cursor {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  pointer-events: none;
  mix-blend-mode: difference;
}

@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; }
}

.cursor__dot {
  width: 6px;
  height: 6px;
  background: var(--white);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.cursor__ring {
  position: absolute;
  top: -14px;
  left: -14px;
  width: 34px;
  height: 34px;
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  transition: transform 0.15s var(--ease-out-expo), opacity 0.15s;
}

.cursor.is-hovering .cursor__ring {
  transform: scale(1.8);
  opacity: 0.4;
}

.cursor.is-clicking .cursor__dot {
  transform: translate(-50%, -50%) scale(0.5);
}


/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background 0.4s, backdrop-filter 0.4s, padding 0.4s var(--ease-out-expo);
}

.nav.is-scrolled {
  background: rgba(0,0,0,0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  padding: 12px 0;
}

.nav__inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo-img {
  height: 28px;
  width: auto;
  display: block;
}

.nav__links {
  display: none;
  align-items: center;
  gap: 24px;
}

@media (min-width: 768px) {
  .nav__links { display: flex; }
}

.nav__link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-400);
  transition: color 0.3s;
  letter-spacing: 0.01em;
}

.nav__link:hover {
  color: var(--white);
}

.nav__link.is-active {
  color: var(--white);
}

.nav__link--cta {
  color: var(--accent);
}

.nav__link--cta:hover {
  color: #f5a623;
}

.nav__burger {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  cursor: pointer;
}

@media (min-width: 768px) {
  .nav__burger { display: none; }
}

.nav__burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.3s var(--ease-out-expo), opacity 0.3s;
}

.nav__burger.is-active span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.nav__burger.is-active span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}


/* ---------- MOBILE MENU ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease-out-expo), visibility 0.5s;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.mobile-menu__link {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--white);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s var(--ease-out-expo), transform 0.4s var(--ease-out-expo), color 0.3s;
}

.mobile-menu.is-open .mobile-menu__link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.is-open .mobile-menu__link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(6) { transition-delay: 0.35s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(7) { transition-delay: 0.4s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(8) { transition-delay: 0.45s; }


/* ---------- SECTIONS (shared) ---------- */
.section {
  position: relative;
  overflow: hidden;
}

.section__header {
  margin-bottom: clamp(40px, 6vw, 80px);
}

.section__header--center {
  text-align: center;
}

.section__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.section__title {
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 20px;
}

.section__title--left {
  text-align: left;
}

.section__subtitle {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--gray-400);
  max-width: 640px;
}

.section__header--center .section__subtitle {
  margin: 0 auto;
}


/* ---------- REVEAL TEXT (line by line) ---------- */
.reveal-line {
  display: block;
  overflow: hidden;
}

.reveal-line__inner {
  display: block;
  transform: translateY(105%);
  will-change: transform;
}


/* ---------- FADE UP ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  will-change: opacity, transform;
}


/* ---------- SECTION 1 — HERO (function.ai style: logo behind, photo in front) ---------- */
.section--hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  padding: 0;
  position: relative;
  overflow: hidden;
}

/* Subtle grid behind everything */
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  /* Full coverage — JS controls visibility via opacity mask */
  pointer-events: none;
  opacity: 0;
}

/* Layer 0 (deepest): Ambient orange glow sphere */
.hero__glow {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  width: clamp(500px, 70vw, 1000px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 100, 20, 0.18) 0%, rgba(180, 80, 10, 0.10) 30%, rgba(140, 55, 5, 0.04) 55%, transparent 75%);
  filter: blur(80px);
  pointer-events: none;
  will-change: transform, opacity;
}

/* Layer 1 (back): Logo as BIG background element */
.hero__logo-wrap {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: clamp(340px, 50vw, 750px);
  opacity: 0;
  will-change: transform, opacity;
  pointer-events: none;
}

.hero__logo-img {
  width: 100%;
  height: auto;
  /* Base 50% opacity; JS spotlight mask brings center to 100% on hover */
  opacity: 0.5;
}

/* Bottom area: Subtitle + scroll indicator */
.hero__bottom {
  position: absolute;
  bottom: 3%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  text-align: center;
  width: 90%;
  max-width: 600px;
  opacity: 0;
  will-change: transform, opacity;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hero__subtitle-encrypted {
  font-size: clamp(0.75rem, 1.1vw, 0.9rem);
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  font-family: var(--font);
  min-height: 1.5em;
}

/* Layer 3 (front): Lion photo — mane overlaps bottom 20% of logo height */
.hero__lion-wrap {
  position: absolute;
  /* top = logo-center (35%) + 0.3 × logo-height, responsive via clamp */
  top: calc(30% - clamp(22px, 2.8vw, 42px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: clamp(380px, 50vw, 720px);
  opacity: 0;
  will-change: transform, opacity;
  pointer-events: none;
  /* Bottom fade: lion blends into black at viewport edge */
  mask-image: linear-gradient(to bottom, white 30%, transparent 58%);
  -webkit-mask-image: linear-gradient(to bottom, white 30%, transparent 58%);
}

.hero__lion-img {
  width: 100%;
  height: auto;
  display: block;
  /* Fully opaque — blocks background bleed-through */
  opacity: 1;
}

/* Dark overlay that follows the lion's silhouette via mask */
.hero__lion-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  /* Clip to lion shape using the same image as mask */
  -webkit-mask-image: url('../assets/lion.webp');
  mask-image: url('../assets/lion.webp');
  -webkit-mask-size: 100% auto;
  mask-size: 100% auto;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: top center;
  mask-position: top center;
  pointer-events: none;
}

/* Vignette for dramatic edges */
.hero__vignette {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 70% at 50% 45%, transparent 35%, rgba(0,0,0,0.65) 100%);
}

/* Scroll indicator (inside hero__bottom) */
.hero__scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--gray-600);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--gray-600), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}


/* ---------- SECTION 1B — INTRO ---------- */
.section--intro {
  padding: var(--section-padding) 0;
  background: var(--black);
}

.intro__text {
  font-size: clamp(1.4rem, 3.2vw, 2.4rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--gray-500);
  max-width: 900px;
}

.intro__text .word {
  display: inline-block;
  transition: color 0.3s;
}

.intro__text .word.is-active {
  color: var(--white);
}


/* ---------- SECTION 2 — SERVIZI (Apple-style carousel) ---------- */
.section--servizi {
  padding: var(--section-padding) 0;
  background: var(--black);
}

/* Header: title left, subtitle right */
.servizi__header {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

@media (min-width: 900px) {
  .servizi__header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    gap: clamp(60px, 8vw, 120px);
  }
}

.servizi__header-left {
  flex: 1;
}

.servizi__header-right {
  flex: 0 0 auto;
  max-width: 400px;
}

.servizi__header-left .section__title {
  margin-bottom: 0;
}

.servizi__header-right .section__subtitle {
  margin: 0;
  line-height: 1.5;
}

/* Carousel container */
.servizi__carousel {
  overflow: hidden;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}

.servizi__carousel:active {
  cursor: grabbing;
}

.servizi__track {
  display: flex;
  gap: clamp(16px, 2vw, 24px);
  /* Align left edge with .container content */
  padding: 0 max(var(--gutter), calc((100vw - var(--container-max)) / 2 + var(--gutter)));
  will-change: transform;
}

/* Right-side breathing room for last card */
.servizi__track::after {
  content: '';
  flex-shrink: 0;
  width: clamp(40px, 5vw, 80px);
}

/* Cards */
.service-card {
  flex: 0 0 auto;
  position: relative;
  width: clamp(300px, 34vw, 420px);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 24px;
  padding: clamp(28px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  min-height: 300px;
  transition: background 0.4s, border-color 0.4s;
  text-decoration: none;
  color: inherit;
}

.service-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.12);
}

.service-card__icon {
  width: 44px;
  height: 44px;
  color: var(--white);
  margin-bottom: 20px;
}

.service-card__icon svg {
  width: 100%;
  height: 100%;
}

/* Masked icon with dust gradient animation (GSAP-driven) */
.service-card__icon--dust {
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  background-image: linear-gradient(
    110deg,
    #ffaa3b 0%,
    #ffaa3b 26%,
    #d4a0e8 36%,
    #b374d6 42%,
    #924dff 48%,
    #924dff 52%,
    #b374d6 58%,
    #d4a0e8 64%,
    #ffaa3b 74%,
    #ffaa3b 100%
  );
  background-size: 500% 100%;
  background-position: 200% center;
}

.service-card__title {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.15;
}

.service-card__desc {
  font-size: clamp(0.9rem, 1.3vw, 1.05rem);
  line-height: 1.5;
  color: var(--gray-500);
}

/* Arrow button (bottom-right) */
.service-card__arrow {
  position: absolute;
  bottom: clamp(24px, 3vw, 36px);
  right: clamp(24px, 3vw, 36px);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.3s;
}

.service-card__arrow svg {
  width: 16px;
  height: 16px;
}

.service-card:hover .service-card__arrow {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.3);
  color: var(--white);
  transform: translate(2px, -2px);
}

/* Coming soon badge */
.service-card__badge {
  position: absolute;
  bottom: clamp(24px, 3vw, 36px);
  right: clamp(24px, 3vw, 36px);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-600);
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
}

/* Disabled card */
.service-card--disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* Carousel nav arrows */
.servizi__nav {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: clamp(24px, 3vw, 40px);
}

.servizi__arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: transparent;
  color: var(--gray-400);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
  cursor: pointer;
}

.servizi__arrow:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.3);
  color: var(--white);
}

.servizi__arrow.is-disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

.servizi__carousel.is-dragging {
  cursor: grabbing;
}
.servizi__carousel.is-dragging .service-card {
  pointer-events: none;
}

.servizi__arrow svg {
  width: 20px;
  height: 20px;
}


/* ---------- SECTION 3 — METODO ---------- */
.section--metodo {
  padding: var(--section-padding) 0;
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.04);
}

.metodo__sticky {
  position: relative;
}

.metodo__steps {
  display: grid;
  gap: 0;
  margin-top: 40px;
}

.metodo__step {
  display: flex;
  gap: clamp(20px, 4vw, 48px);
  padding: clamp(24px, 4vw, 48px) 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  opacity: 0.3;
  transform: translateX(-20px);
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}

.metodo__step.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.metodo__step-number {
  flex-shrink: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  color: rgba(255,255,255,0.06);
  line-height: 1;
  transition: color 0.6s;
  font-variant-numeric: tabular-nums;
}

.metodo__step.is-visible .metodo__step-number span {
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  background-image: linear-gradient(
    110deg,
    #ffaa3b 0%,
    #ffaa3b 26%,
    #d4a0e8 36%,
    #b374d6 42%,
    #924dff 48%,
    #924dff 52%,
    #b374d6 58%,
    #d4a0e8 64%,
    #ffaa3b 74%,
    #ffaa3b 100%
  );
  background-size: 500% 100%;
  background-position: 200% center;
}

.metodo__step-content h3 {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}

/* Metodo step titles — incandescence sweep (like "conversazione.") */
.metodo__step.is-visible .metodo__step-content h3 {
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  background-color: var(--white);
  background-image: linear-gradient(
    90deg,
    var(--white) 0%,
    var(--white) 24%,
    hsl(35deg 100% 80%) 31%,
    hsl(30deg 100% 68%) 35%,
    hsl(24deg 100% 58%) 39%,
    hsl(18deg 100% 52%) 43%,
    hsl(30deg 100% 88%) 46%,
    hsl(42deg 100% 97%) 50%,
    hsl(30deg 100% 88%) 54%,
    hsl(18deg 100% 52%) 57%,
    hsl(24deg 100% 58%) 61%,
    hsl(30deg 100% 68%) 65%,
    hsl(35deg 100% 80%) 69%,
    var(--white) 76%,
    var(--white) 100%
  );
  background-size: 300% 100%;
  background-repeat: no-repeat;
  background-position: 100% center;
}

.metodo__step-content p {
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  line-height: 1.6;
  color: var(--gray-400);
  max-width: 480px;
}


/* ---------- SECTION 4 — LAVORI (Apple-style flex columns) ---------- */
.section--lavori {
  padding: var(--section-padding) 0;
  background: var(--black);
  overflow: hidden;          /* Clip iPad images that overflow (Apple approach) */
}

/* --- Feature blocks — cascade with negative overlap --- */
.lavori__feature {
  position: relative;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Negative top margins for cascade overlap between features */
.lavori__feature--2 { margin-top: clamp(-140px, -12vw, -60px); }
.lavori__feature--3 { margin-top: clamp(-120px, -10vw, -50px); }
.lavori__feature--4 { margin-top: clamp(-100px, -8vw, -40px); }

/* --- Row: flex container (text & image are separate columns) --- */
.lavori__row {
  display: flex;
  align-items: center;
}

/* --- Device images (mockups have iPad bezels baked in) --- */
.lavori__device {
  display: block;
  width: 100%;
  height: auto;
  will-change: transform;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
}

/* --- Media columns: overflow visible so iPads can visually bleed --- */
.lavori__media {
  position: relative;
  overflow: visible;
  flex-shrink: 0;
}

/* --- Copy columns: flex items, never overlap iPads --- */
.lavori__copy {
  position: relative;
  z-index: 3;
}

/* --- Per-feature layout (S-curve via flex + overflow) --- */

/* Feature 1 — Calamity: iPad LEFT 58%, text RIGHT (pushed UP) */
.lavori__feature--1 .lavori__media {
  flex: 0 0 58%;
}
.lavori__feature--1 .lavori__copy {
  flex: 1;
  padding-left: clamp(20px, 3vw, 48px);
  align-self: flex-start;
  padding-top: clamp(20px, 3vw, 50px);
}
.lavori__feature--1 .lavori__device {
  transform: rotate(-10deg);
  margin-left: -6%;           /* Bleed left for S-curve effect */
}

/* Feature 2 — GreenDesk: iPad RIGHT 58%, text LEFT */
.lavori__feature--2 .lavori__row {
  flex-direction: row-reverse;
}
.lavori__feature--2 .lavori__media {
  flex: 0 0 58%;
}
.lavori__feature--2 .lavori__copy {
  flex: 1;
  padding-right: clamp(20px, 3vw, 48px);
  align-self: flex-end;
  padding-bottom: clamp(30px, 4vw, 70px);
}
.lavori__feature--2 .lavori__device {
  transform: rotate(4deg);
  margin-right: -6%;          /* Bleed right for S-curve effect */
}

/* Feature 3 — Monalisa: iPad RIGHT 66%, image 85% inside → visually CENTER */
.lavori__feature--3 .lavori__row {
  flex-direction: row-reverse;
}
.lavori__feature--3 .lavori__media {
  flex: 0 0 66%;
}
.lavori__feature--3 .lavori__copy {
  flex: 1;
  padding-right: clamp(20px, 3vw, 48px);
  align-self: flex-start;
  padding-top: clamp(60px, 8vw, 140px);
}
.lavori__feature--3 .lavori__device {
  width: 86%;
  margin-right: auto;         /* Push iPad toward LEFT within its column → visually centered */
  transform: rotate(4deg);
}

/* Feature 4 — Iron-Desk + Opus: diagonal overlap, text beside */
.lavori__feature--4 .lavori__row {
  display: flex;
  align-items: center;
}
.lavori__feature--4 .lavori__media {
  flex: 0 0 62%;
  position: relative;
  min-height: clamp(480px, 58vw, 780px);
}
.lavori__feature--4 .lavori__copy {
  flex: 1;
  padding-left: clamp(20px, 3vw, 48px);
}

.lavori__device--diag-front {
  position: absolute;
  width: 85%;
  top: 0;
  left: 8%;
  transform: rotate(-5deg);
  z-index: 1;
}

.lavori__device--diag-back {
  position: absolute;
  width: 85%;
  bottom: 0;
  left: -4%;
  transform: rotate(-8deg);
  z-index: 2;                 /* Opus ON TOP of Iron-Desk */
}

/* --- Typography --- */
.lavori__text {
  font-size: clamp(16px, 1.6vw, 21px);
  line-height: 1.52;
  color: var(--gray-500);
}

.lavori__text strong {
  color: inherit;
  font-weight: 600;
}

.lavori__caption {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-600);
  margin-top: 20px;
}

/* --- Responsive (<=768px): stack vertically, like Apple mobile --- */
@media (max-width: 768px) {
  .lavori__feature--2,
  .lavori__feature--3,
  .lavori__feature--4 {
    margin-top: clamp(48px, 8vw, 80px);
  }

  .lavori__row {
    flex-direction: column !important;    /* Override all row-reverse */
    align-items: center;
  }

  .lavori__media {
    flex: 0 0 auto !important;
    width: 82%;
  }

  .lavori__feature--1 .lavori__device { transform: rotate(-5deg); margin-left: 0; }
  .lavori__feature--2 .lavori__device { transform: rotate(3deg); margin-right: 0; }
  .lavori__feature--3 .lavori__device { width: 100%; transform: rotate(3deg); }

  .lavori__copy {
    width: 88%;
    text-align: center;
    margin-top: 28px;
    padding: 0 !important;              /* Remove flex gap padding */
    align-self: center !important;       /* Override desktop flex-start/end */
  }

  /* Feature 4 diagonal on mobile */
  .lavori__feature--4 .lavori__media {
    width: 92%;
    min-height: clamp(260px, 58vw, 380px);
  }

  .lavori__device--diag-front {
    width: 72%;
    left: auto;
    right: 0;
    top: 0;
  }

  .lavori__device--diag-back {
    width: 72%;
    left: 0;
    bottom: 0;
  }

  .lavori__feature--4 .lavori__copy {
    width: 88%;
    text-align: center;
    padding: 0 !important;
  }
}


/* ---------- SECTION 5 — DESIGN (Apple Connectivity style) ---------- */
.section--design {
  padding: var(--section-padding) 0;
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.04);
  overflow: visible;
}

/* Centered header */
.design__header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto clamp(48px, 6vw, 80px);
  padding: 0 var(--gutter);
}

.design__heading {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.04em;
  color: var(--white);
  margin-bottom: 20px;
}

.design__heading-accent {
  display: block;
  color: var(--gray-500);
}

.design__intro {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--gray-400);
  max-width: 600px;
  margin: 0 auto;
}

/* Full-width iPad image — centred, generous size */
.design__image {
  position: relative;
  max-width: var(--container-wide);
  margin: 0 auto clamp(48px, 6vw, 80px);
  padding: 0 var(--gutter);
  text-align: center;
}

.design__image img {
  display: block;
  margin: 0 auto;
  width: clamp(320px, 82vw, 1200px);
  height: auto;
  filter: drop-shadow(0 -20px 60px rgba(255,255,255,0.08));
}

/* Two-column below image: description LEFT + stats RIGHT */
.design__bottom {
  display: flex;
  align-items: flex-start;
  gap: clamp(40px, 6vw, 100px);
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.design__desc-col {
  flex: 1 1 50%;
}

.design__stats-col {
  flex: 1 1 50%;
}

/* Description text */
.design__desc {
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  line-height: 1.75;
  color: var(--gray-400);
}

/* Stat callouts */
.design__stats {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 3vw, 40px);
}

.design__stat {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: clamp(20px, 2.5vw, 28px);
}

.design__stat-value {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--white);
  display: block;
  line-height: 1.1;
}

.design__stat-label {
  font-size: clamp(0.8rem, 1.1vw, 0.92rem);
  color: var(--gray-500);
  line-height: 1.45;
  margin-top: 6px;
  display: block;
}

/* Responsive */
@media (max-width: 768px) {
  .design__heading {
    font-size: clamp(2rem, 9vw, 3rem);
  }
  .design__image img {
    width: 92%;
  }
  .design__bottom {
    flex-direction: column;
    gap: clamp(32px, 5vw, 48px);
  }
  .design__desc-col,
  .design__stats-col {
    flex: 0 0 auto;
    width: 100%;
  }
  .design__desc {
    text-align: center;
  }
  .design__stats {
    align-items: center;
  }
  .design__stat {
    text-align: center;
    width: 100%;
  }
}


/* ---------- SECTION 6 — TECH (Apple TV Sports carousel) ---------- */
.section--tech {
  padding: var(--section-padding) 0;
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.04);
  overflow: visible;
}

/* Header — LEFT-aligned */
.tech__header {
  max-width: var(--container-max);
  margin: 0 auto clamp(40px, 5vw, 60px);
  padding: 0 var(--gutter);
  text-align: left;
}

.tech__heading {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 16px;
}

.tech__intro {
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  color: var(--gray-400);
  max-width: 540px;
  line-height: 1.6;
}

/* Top wrapper: carousel + arrows aligned on same horizontal band */
.tech__top {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Carousel — full-bleed right (no clip on right side) */
.tech__carousel {
  overflow: visible;
}

.tech__track {
  display: flex;
  gap: 20px;
  will-change: transform;
}

/* Cards — 3 fill from container left edge to viewport right edge (Apple TV style) */
/* Formula: available = 50vw + container-max/2 - gutter; card = (available - 2*gap) / 3 */
.tech__card {
  flex: 0 0 calc((50vw + 600px - var(--gutter) - 40px) / 3);
  min-width: 0;
}

/* Image wrapper — new 1600:1037 aspect ratio, hover layering */
.tech__card-img {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 1600 / 1037;
  background: var(--gray-900);
  position: relative;
}

.tech__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Hover image overlay — animated via GSAP (CSS transitions conflict with parent will-change) */
.tech__img-hover {
  position: absolute;
  inset: 0;
  opacity: 0;
}

/* Card title */
.tech__card-title {
  padding: 16px 4px 0;
  font-size: clamp(0.95rem, 1.3vw, 1.08rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--white);
}

/* Card text — adapts to card width */
.tech__card-text {
  padding: 8px 4px 0;
  font-size: clamp(0.85rem, 1.2vw, 0.95rem);
  line-height: 1.55;
  color: var(--gray-400);
}

.tech__card-text strong {
  color: var(--white);
  font-weight: 600;
}

/* Navigation arrows — RIGHT-aligned */
.tech__nav {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: clamp(24px, 3vw, 40px);
}

.tech__nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition: border-color 0.3s, opacity 0.3s;
}

.tech__nav-btn:hover {
  border-color: rgba(255,255,255,0.5);
}

.tech__nav-btn.disabled {
  opacity: 0.3;
  pointer-events: none;
}


/* Responsive */
@media (max-width: 768px) {
  .tech__card {
    flex: 0 0 85vw;
  }
  .tech__heading {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }
}


/* ---------- SECTION 7 — PERCHÉ NOI (Apple Vision Pro stats style) ---------- */
.section--perche {
  padding: var(--section-padding) 0;
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.04);
}

/* Single column, centered content */
.perche__content {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  text-align: center;
}

/* Heading — Apple: 32px/700/center */
.perche__heading {
  font-size: clamp(1.8rem, 3.2vw, 2rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.004em;
  color: var(--white);
  margin-top: 24px;
}

/* Lead paragraph — Apple: 21px/600/center/gray */
.perche__lead {
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--gray-500);
  max-width: 680px;
  margin: 40px auto 0;
}

/* Stats row — Apple: flex, space-around, gap 70px */
.perche__stats {
  display: flex;
  justify-content: center;
  gap: clamp(40px, 6vw, 70px);
  margin: clamp(50px, 8vw, 80px) auto 0;
  max-width: 820px;
}

/* Individual stat — left-aligned, line on top via ::before */
.perche__stat {
  flex: 1;
  max-width: 260px;
  padding-top: 24px;
  position: relative;
  text-align: left;
}

.perche__stat::before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255,255,255,0.15);
}

/* Stat text — Apple: 21px/600/gray for labels */
.perche__stat-text {
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--gray-500);
}

/* Stat number — Apple: 48px/600/white/block */
.perche__stat-text strong {
  display: block;
  font-size: clamp(2.4rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--white);
  font-variant-numeric: tabular-nums;
  margin: 4px 0;
}

/* Body paragraph — below stats, centered */
.perche__body {
  font-size: clamp(0.9rem, 1.3vw, 1rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--gray-500);
  max-width: 680px;
  margin: clamp(50px, 8vw, 80px) auto 0;
}


/* ---------- SECTION 8 — CTA ---------- */
.section--cta {
  padding: clamp(120px, 20vh, 240px) 0;
  background: var(--black);
  text-align: center;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: visible;             /* let hover glow paint freely — bg is black everywhere */
}

.cta__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cta__gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 50%, rgba(232,101,32,0.1) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 30% 60%, rgba(245,166,35,0.06) 0%, transparent 50%);
}

.cta__particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.cta__content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.cta__title {
  font-size: clamp(2rem, 5.5vw, 4.5rem);
  font-weight: 500;
  color: var(--white);
  margin-bottom: 24px;
}

.cta__subtitle {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--gray-400);
  max-width: 560px;
  margin: 0 auto 48px;
}

.cta__actions {
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 16px 36px;
  border-radius: 100px;
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s;
  position: relative;
  overflow: hidden;
}

.btn svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s var(--ease-out-expo);
}

.btn:hover svg {
  transform: translateX(4px);
}

/* ─────────────────────────────────────────────
   CTA BUTTON — SHIMMER GLOW (CSS-only loop)
   ───────────────────────────────────────────── */

/* Animated custom properties */
@property --shimmer {
  syntax: "<angle>";
  inherits: false;
  initial-value: 33deg;
}
@property --glow-spread {
  syntax: "<length>";
  inherits: false;
  initial-value: 44px;
}

/* ── Keyframes ── */
@keyframes shimmer-rotate {
  0%   { --shimmer: 0deg; }
  100% { --shimmer: 360deg; }
}
@keyframes shimmer-glow {
  0%   { opacity: 0.4; }
  20%  { opacity: 0.8; }
  50%  { opacity: 1; }
  80%  { opacity: 0.8; }
  100% { opacity: 0.4; }
}
@keyframes ember-sweep {
  0%   { background-position: 100% center; }
  100% { background-position: -100% center; }
}
@keyframes dust-drift {
  0%, 65%  { background-position: 200% center; }
  85%      { background-position: 0% center; }
  100%     { background-position: -200% center; }
}

/* Dust shimmer utility — gold with occasional purple sweep (GSAP-driven) */
.dust-text {
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  background-image: linear-gradient(
    110deg,
    #ffaa3b 0%,
    #ffaa3b 26%,
    #d4a0e8 36%,
    #b374d6 42%,
    #924dff 48%,
    #924dff 52%,
    #b374d6 58%,
    #d4a0e8 64%,
    #ffaa3b 74%,
    #ffaa3b 100%
  );
  background-size: 500% 100%;
  background-position: 200% center;
}

@keyframes text-shine {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

/* ── Button body: very dark grey, pill, current font ── */
.btn--primary {
  --glow-hue: 28deg;      /* warm orange */
  --glow-spread: 44px;    /* shimmer extends beyond button */
  position: relative;
  isolation: isolate;
  background: #141415;
  color: rgba(255, 255, 255, 0.88);
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 20px 48px;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.30),
    0 8px 16px rgba(0, 0, 0, 0.20),
    0 24px 48px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.40);
  scale: 1;
  transition: scale 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              background 1s ease;
}

/* ── Shimmer layer: the rotating conic glow ── */
.btn__shimmer {
  position: absolute;
  inset: calc(var(--glow-spread) * -1);
  border-radius: inherit;
  pointer-events: none;
  /* Conic mask reveals two arcs of light sweeping around the button */
  mask-image: conic-gradient(
    from var(--shimmer, 0deg),
    transparent 0%,
    transparent 10%,
    black 36%,
    black 45%,
    transparent 50%,
    transparent 60%,
    black 85%,
    black 95%,
    transparent 100%
  );
  mask-size: cover;
  mix-blend-mode: plus-lighter;
  animation: shimmer-rotate 4s linear infinite;
  transition: inset 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Shimmer ::before — outer glow (orange/white radiating outward) ── */
.btn__shimmer::before {
  content: '';
  position: absolute;
  inset: var(--glow-spread);
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
  opacity: 0.6;
  animation: shimmer-glow 4s ease-in-out infinite;
  box-shadow:
    0 0 4px  2px  hsl(var(--glow-hue) 80% 90%),
    0 0 8px  4px  hsl(var(--glow-hue) 70% 75%),
    0 0 16px 4px  hsl(var(--glow-hue) 80% 60%),
    0 0 32px 6px  hsl(var(--glow-hue) 100% 50%);
  transition: box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Shimmer ::after — inner edge glow (orange/white inset light) ── */
.btn__shimmer::after {
  content: '';
  position: absolute;
  inset: var(--glow-spread);
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
  opacity: 0.5;
  animation: shimmer-glow 4s ease-in-out infinite 0.3s;
  box-shadow:
    inset 0 0 0 1px hsl(var(--glow-hue) 60% 90%),
    inset 0 0 3px 1px hsl(var(--glow-hue) 80% 75%),
    inset 0 0 8px 2px hsl(var(--glow-hue) 100% 60%);
  transition: box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Text with shimmer shine pass ── */
.btn__text {
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  background-color: rgba(255, 255, 255, 0.88);
  background-image: linear-gradient(
    120deg,
    transparent 0%,
    hsla(var(--glow-hue), 100%, 85%, 0.5) 40%,
    hsla(var(--glow-hue), 100%, 95%, 0.7) 50%,
    transparent 52%
  );
  background-repeat: no-repeat;
  background-size: 300% 300%;
  animation: text-shine 4s ease-in-out infinite;
  transition: background-color 1s ease;
}

/* ── Icon inherits text color ── */
.btn__icon {
  color: rgba(255, 255, 255, 0.88);
  transition: color 1s ease;
}

/* ── Hover: amplify + intensify (desktop only) ── */
@media (hover: hover) {
  .btn--primary:hover {
    scale: 1.06;
    /* Big glow lives HERE on the button — NOT inside the masked shimmer layer */
    box-shadow:
      0 4px 8px rgba(0, 0, 0, 0.25),
      0 12px 24px rgba(0, 0, 0, 0.18),
      0 32px 64px rgba(0, 0, 0, 0.12),
      /* ↓ the explosive warm glow — unmasked, paints freely ↓ */
      0 0 12px  4px  hsl(28deg 80% 90%),
      0 0 30px  10px hsl(28deg 70% 78%),
      0 0 60px  20px hsl(28deg 80% 65%),
      0 0 120px 40px hsl(28deg 100% 52%),
      0 0 200px 70px hsla(28deg 100% 50% / 0.35),
      inset 0 1px 0 rgba(255, 255, 255, 0.12),
      inset 0 -1px 0 rgba(0, 0, 0, 0.40);
    transition: scale 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  }

  /* Text → warm orange on hover */
  .btn--primary:hover .btn__text {
    background-color: hsl(28deg 100% 78%);
    background-image: linear-gradient(
      120deg,
      transparent 0%,
      hsla(28deg, 100%, 95%, 0.8) 40%,
      hsla(28deg, 100%, 100%, 1) 50%,
      transparent 52%
    );
  }

  /* Icon → warm orange on hover */
  .btn--primary:hover .btn__icon {
    color: hsl(28deg 100% 78%);
    transition: color 0.5s ease;
  }

  /* Shimmer pseudo-elements: boost opacity + accelerate rotation */
  .btn--primary:hover .btn__shimmer {
    animation-duration: 2s;
  }
  .btn--primary:hover .btn__shimmer::before {
    opacity: 1;
    animation-duration: 2s;
  }
  .btn--primary:hover .btn__shimmer::after {
    opacity: 1;
    animation-duration: 2s;
  }

  .btn--primary:hover svg {
    transform: translateX(2px);
  }

  /* ── Active (click): warm cream fill, instant in → 1s fade out ── */
  .btn--primary:active {
    background: #FFF4E0;
    transition: scale 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                background 0s;
  }
  .btn--primary:active .btn__text {
    background-color: #141415;
    transition: background-color 0s;
  }
  .btn--primary:active .btn__icon {
    color: #141415;
    transition: color 0s;
  }

  /* ── "conversazione." incandescence text fill on button hover ── */
  .cta__content:has(.btn--primary:hover) .cta__ember {
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    background-color: var(--white);
    background-image: linear-gradient(
      90deg,
      var(--white) 0%,
      var(--white) 24%,
      hsl(35deg 100% 80%) 31%,
      hsl(30deg 100% 68%) 35%,
      hsl(24deg 100% 58%) 39%,
      hsl(18deg 100% 52%) 43%,
      hsl(30deg 100% 88%) 46%,
      hsl(42deg 100% 97%) 50%,
      hsl(30deg 100% 88%) 54%,
      hsl(18deg 100% 52%) 57%,
      hsl(24deg 100% 58%) 61%,
      hsl(30deg 100% 68%) 65%,
      hsl(35deg 100% 80%) 69%,
      var(--white) 76%,
      var(--white) 100%
    );
    background-size: 300% 100%;
    background-repeat: no-repeat;
    animation: ember-sweep 2s linear infinite;
    text-shadow:
      0 0 12px hsla(28deg 100% 60% / 0.5),
      0 0 30px hsla(25deg 100% 50% / 0.3),
      0 0 60px hsla(22deg 100% 45% / 0.15);
    filter: brightness(1.15);
  }
}

.cta__ember {
  color: var(--white);
  transition: color 0.9s ease;
}

.cta__note {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--gray-600);
  position: relative;
  z-index: 0;
}


/* ---------- FOOTER ---------- */
.footer {
  padding: 24px 0;
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__logo-img {
  height: 22px;
  width: auto;
  display: block;
  opacity: 0.7;
}

.footer__copy {
  font-size: 0.75rem;
  color: var(--gray-600);
}


/* ---------- RESPONSIVE FINE-TUNING ---------- */
@media (max-width: 599px) {
  .perche__stats {
    gap: 24px;
  }

  .perche__stat-text strong {
    font-size: 2rem;
  }

  .hero__lion-wrap {
    width: clamp(300px, 80vw, 450px);
    top: calc(30% - clamp(14px, 2vw, 26px));
    mask-image: linear-gradient(to bottom, white 50%, transparent 90%);
    -webkit-mask-image: linear-gradient(to bottom, white 50%, transparent 90%);
  }
  .hero__logo-wrap { width: clamp(240px, 70vw, 420px); }
  .hero__glow { width: clamp(350px, 90vw, 500px); filter: blur(60px); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .reveal-line__inner {
    transform: none !important;
  }

  .fade-up {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero__scroll-line {
    animation: none;
  }
}

/* Dark scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--black);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-700);
  border-radius: 3px;
}

::selection {
  background: rgba(232,101,32,0.3);
  color: var(--white);
}
