/* =========================================================
   KITKATE DESIGN — Landing
   Palette: Jet #002A32 · Sapphire #5465FF · Canary #E8F465
            Orchid #FABFF5 · Tomato #FF7455 · Ivory #FFF9EA
   Type: Anton 400 (display) · DM Sans 400/500/700 (text)
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --jet:     #002A32;
  --sapphire:#5465FF;
  --canary:  #E8F465;
  --orchid:  #FABFF5;
  --tomato:  #FF7455;
  --ivory:   #FFF9EA;

  --bg:      var(--ivory);
  --ink:     var(--jet);
  --ink-soft:#3f5a60;
  --line:    rgba(0,42,50,.16);
  --accent:  var(--tomato);

  --radius:  22px;
  --radius-sm: 14px;
  --shadow:  0 18px 50px -22px rgba(0,42,50,.35);

  --maxw: 1180px;
  --pad: clamp(20px, 5vw, 64px);

  --font-display: "Anton", system-ui, sans-serif;
  --font-syne: "Syne", system-ui, sans-serif;
  --font-text: "DM Sans", system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(.22,1,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-text);
  font-weight: 500;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---------- Custom cursor (desktop only) ---------- */
@media (pointer: fine) {
  *, a, button, [role="button"], label { cursor: url('assets/cursor.svg') 2 2, auto; }
}
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='250'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='250' height='250' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 250px 250px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(64px, 10vw, 130px); position: relative; }

/* ---------- Type ---------- */
.section__title {
  font-family: var(--font-syne);
  font-weight: 400;
  font-size: clamp(2rem, 5.5vw, 4rem);
  line-height: .98;
  letter-spacing: 0;
  text-transform: uppercase;
  margin: 18px 0 40px;
  max-width: 16ch;
}

/* ---------- Badge (pill) ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display); font-weight: 800;
  font-size: .82rem;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--jet);
  padding: 9px 16px 9px 14px;
  border-radius: 999px;
  border: 2px solid var(--jet);
  transform: rotate(-2deg);
}
.badge__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--jet); flex: 0 0 auto; }
.badge--orchid { background: var(--orchid); }
.badge--yellow { background: var(--canary); }
.badge--orchid .badge__dot { background: var(--tomato); }
.badge--yellow .badge__dot { background: var(--sapphire); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  font-family: var(--font-text);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: -0.1em;
  color: var(--ivory);
  background: var(--tomato);
  padding: 20px 48px;
  border-radius: 0;
  border: none;
  -webkit-mask-image: url(assets/btn-blob.svg);
  mask-image: url(assets/btn-blob.svg);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  transition: transform .4s cubic-bezier(.23,1,.32,1), filter .35s ease;
  will-change: transform;
}
.btn:hover {
  animation: btn-slap .48s cubic-bezier(.23,1,.32,1) forwards;
  filter: drop-shadow(0 14px 28px rgba(0,42,50,.32));
}
.btn:active { transform: scale(.97); }
.btn--lg { padding: 24px 56px; font-size: 1.05rem; }
.btn--sm { padding: 12px 28px; font-size: .85rem; }
.btn--tomato { background: var(--tomato); color: #fff; }

/* ---------- Decorations ---------- */
.deco { position: absolute; pointer-events: none; z-index: 0; }
.deco--aster { color: var(--orchid); width: clamp(70px, 9vw, 130px); }

@keyframes spin-cw  { to { transform: rotate(360deg); } }
@keyframes footer-star-spin { from { transform: rotate(22deg); } to { transform: rotate(382deg); } }
.spin-cw  { transform-origin: 50px 50px; animation: spin-cw  20s linear infinite; }
@keyframes btn-slap {
  0%   { transform: scale(1)    rotate(0deg); }
  18%  { transform: scale(1.08) rotate(-4deg); }
  38%  { transform: scale(1.10) rotate(3.5deg); }
  58%  { transform: scale(1.08) rotate(-1.5deg); }
  78%  { transform: scale(1.06) rotate(.8deg); }
  100% { transform: scale(1.05) rotate(0deg); }
}

/* =========================================================
   NAVBAR
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; gap: 20px;
  padding: 16px var(--pad);
  background: var(--jet);
  transition: padding .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease);
}
.nav.is-scrolled {
  padding-block: 9px;
  background: color-mix(in srgb, var(--jet) 92%, transparent);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255,249,234,.08);
}
.nav__brand { display: inline-flex; align-items: center; gap: 10px; }
.klogo { width: auto; height: 42px; color: var(--tomato); flex: 0 0 auto; transition: transform .4s var(--ease); }
.nav__brand:hover .klogo { transform: rotate(-8deg) scale(1.05); }
.nav__brandname { font-family: var(--font-text); font-weight: 700; font-size: 1.5rem; letter-spacing: -.1em; text-transform: lowercase; color: var(--ivory); }
.nav__brandname .dot { color: var(--tomato); }

.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { font-weight: 600; font-size: .95rem; position: relative; padding: 4px 0; color: var(--ivory); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--tomato);
  transition: width .3s var(--ease);
}
.nav__links a:hover::after { width: 100%; }

.nav__actions { display: flex; align-items: center; gap: 12px; }

/* CTA nav: ghost prima dello scroll, bottone pieno dopo — padding fisso, no layout shift */
.nav__cta {
  background: transparent !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
  color: var(--ivory) !important;
  font-size: .95rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  opacity: 1;
  transition: background .35s var(--ease), color .35s var(--ease),
              opacity .35s var(--ease), -webkit-mask-image 0s .35s,
              mask-image 0s .35s;
}
.nav__cta:hover { opacity: .7; }
.nav.is-scrolled .nav__cta {
  background: var(--tomato) !important;
  -webkit-mask-image: url(assets/btn-blob.svg) !important;
  mask-image: url(assets/btn-blob.svg) !important;
  -webkit-mask-size: 100% 100% !important;
  mask-size: 100% 100% !important;
  color: var(--ivory) !important;
  opacity: 1;
  transition: background .35s var(--ease), color .35s var(--ease), opacity .35s var(--ease);
}

.nav__burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav__burger span { width: 24px; height: 2.5px; background: var(--ivory); border-radius: 2px; transition: .3s var(--ease); }
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
/* ---- Hero two-layer scroll reveal ---- */
.hero-track {
  height: 200svh;
  position: relative;
}
.hero-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
}
.hero-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding-top: clamp(80px, 10vw, 110px);
  padding-bottom: clamp(80px, 10vw, 110px);
  overflow: hidden;
}
.hero-layer--base {
  background: #fff;
  z-index: 1;
}
.hero-layer--brand {
  background: var(--orchid);
  z-index: 2;
  clip-path: circle(0% at 50% 50%);
  will-change: clip-path;
}
.hero-layer--brand.is-triggered {
  clip-path: circle(142% at 50% 50%) !important;
  transition: clip-path 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-layer--brand.is-triggered .hero__inner {
  opacity: 1 !important;
  transition: opacity 0.6s ease 0.4s;
}
/* texture carta stropicciata (solo brand layer) */
.hero-layer--brand::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: url("assets/paper.jpg") center / cover no-repeat;
  mix-blend-mode: multiply;
  opacity: .3;
  pointer-events: none;
}
/* base layer: toni neutri, nessun brand */
.hero-layer--base .hero__eyebrow {
  font-family: system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(.85rem, 1.6vw, 1.25rem);
  letter-spacing: 0;
  color: #c0bcb6;
}
.hero-layer--base .hero__title {
  font-family: Arial, Helvetica, system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(1.8rem, 4.5vw, 4rem);
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  color: #888;
  margin: 0;
  max-width: 18ch;
}
.hero__hl {
  display: inline-block;
  position: relative;
}
.hero__hl::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0; bottom: 0; left: -0.08em; right: -0.08em;
  background: #e8e4e0;
  border-radius: 0;
}
.hero-base-br { display: none; }
@media (max-width: 480px) {
  .hero-base-br { display: inline; }
  .hero-layer--base .hero__title { font-size: clamp(1.4rem, 6vw, 1.8rem); max-width: 100%; }
}

/* ---- Hero switch ---- */
.hero__switch-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: clamp(28px, 4vw, 48px);
}
.hero__switch {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__switch-track {
  display: block;
  width: 56px;
  height: 28px;
  background: #e0dbd6;
  border-radius: 14px;
  position: relative;
  transition: background 0.3s ease;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.12);
}
.hero__switch.is-on .hero__switch-track {
  background: #FF7455;
}
.hero__switch-thumb {
  display: block;
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 3px;
  transition: transform 0.3s cubic-bezier(.4,0,.2,1), box-shadow 0.3s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,.18);
}
.hero__switch.is-on .hero__switch-thumb {
  transform: translateX(28px);
  box-shadow: 0 1px 6px rgba(255,116,85,.4);
}
.hero__switch:focus-visible .hero__switch-track {
  outline: 2px solid #FF7455;
  outline-offset: 2px;
}
.hero__switch-label {
  font-family: var(--font-text);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: lowercase;
  color: #aaa;
}
/* particle canvas spawned by JS */
.hero-particles {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
}
.hero-layer--base .hero__lead {
  font-family: system-ui, sans-serif;
  font-weight: 400;
  color: #c8c4bf;
  opacity: 1;
}

/* brand text starts invisible — driven by JS scroll */
.hero-layer--brand .hero__inner { opacity: 0; }
.hero__inner {
  width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad);
  display: grid; grid-template-columns: 1fr; align-items: center;
  position: relative; z-index: 2;
}
.hero__text { text-align: center; display: flex; flex-direction: column; align-items: center; min-width: 0; width: 100%; }
.hero__eyebrow {
  font-family: var(--font-text); font-weight: 700;
  font-size: clamp(1.3rem, 2.6vw, 2rem); letter-spacing: -.1em;
  color: var(--jet); margin-bottom: 4px;
}
.hero__title {
  font-family: var(--font-syne); font-weight: 800;
  font-size: clamp(2rem, 8vw, 7.5rem); line-height: .85;
  text-transform: uppercase; color: var(--jet);
  letter-spacing: -.03em; margin: 0 0 32px;
  max-width: 100%; text-align: center;
}
.hero__lead {
  font-family: var(--font-text); font-weight: 500;
  font-size: clamp(1rem, 1.5vw, 1.18rem); line-height: 1.5;
  color: var(--jet); max-width: 44ch; margin-bottom: 40px;
}

/* brand layer: testi jet su sfondo tomato */
.hero-layer--brand .hero__lead { opacity: .8; }

/* ---- Hero semplice ---- */
.hero {
  background: var(--orchid);
  position: relative;
  overflow: hidden;
  padding-block: clamp(100px, 14vw, 160px);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: url("assets/paper.jpg") center / cover no-repeat;
  mix-blend-mode: multiply;
  opacity: .3;
  pointer-events: none;
}
.hero .hero__inner {
  position: relative; z-index: 1;
  display: flex; justify-content: center; align-items: center;
}
.hero .hero__text {
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.hero__pill {
  display: inline-block;
  font-family: var(--font-text);
  font-size: clamp(.7rem, 1.1vw, .82rem);
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--jet);
  background: rgba(0,42,50,.09);
  border-radius: 100px;
  padding: 6px 18px;
  margin-bottom: 32px;
  opacity: .75;
}
.hero .hero__title {
  font-family: var(--font-syne);
  font-weight: 800;
  font-size: clamp(2.4rem, 5.5vw, 5rem);
  line-height: .88;
  letter-spacing: -.03em;
  text-transform: uppercase;
  color: var(--jet);
  margin: 0 0 36px;
  text-align: center;
}
.hero .hero__lead {
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.6;
  color: var(--jet);
  opacity: .82;
  max-width: 48ch;
  margin-bottom: 44px;
  font-weight: 400;
  text-align: center;
}
.hero .hero__lead strong { font-weight: 700; opacity: 1; }
.hero__hand {
  position: absolute;
  bottom: -2%;
  left: -7%;
  width: clamp(260px, 32vw, 460px);
  pointer-events: none;
  user-select: none;
  z-index: 2;
}

.hero__deco-star {
  position: absolute;
  width: clamp(220px, 32vw, 420px);
  color: var(--jet);
  opacity: .05;
  pointer-events: none;
  bottom: -15%;
  right: -4%;
}

/* ---- Hero collage ---- */
.cs {
  position: absolute;
  pointer-events: none;
  user-select: none;
  max-width: none;
  opacity: 1;
  scale: 1;
}

/* Float keyframes — use translate (doesn't conflict with scale entrance) */
@keyframes csFloat  { 0%,100%{translate:0 0}      50%{translate:0 -14px} }
@keyframes csFloatB { 0%,100%{translate:0 0}      50%{translate:0 -9px}  }
@keyframes csFloatR { 0%,100%{translate:0 0;rotate:0deg} 50%{translate:0 -10px;rotate:2deg} }

/* ─── Wrapper collage: scala l'intera composizione proporzionalmente al viewport ─── */
/* Strategia ①: scale come unità + Strategia ②: width in vw puri senza max cap */
.collage-back,
.collage-front {
  position: absolute;
  inset: 0;
  pointer-events: none;
  scale: clamp(0.65, calc(100vw / 1280), 1.08);
  transform-origin: 50% 100%;  /* scala dal basso-centro, dove sono gli elementi chiave */
}
.collage-back  { z-index: 1; }
.collage-front { z-index: 3; }

/* --- sticker shelf: tutti in basso, spuntano sopra la linea nera --- */

/* c5 banana: dietro al cappuccino, destra */
.cs--5 {
  width: max(180px, 24vw);
  right: 10%; bottom: -10%;
  rotate: -20deg;
  z-index: 2;
  transition-delay: .1s;
}
/* c8 aeroplanino: nel gap tra banana e fiore, in basso */
.cs--8 {
  width: max(60px, 6vw);
  left: 29%; bottom: 2%;
  rotate: 16deg;
  z-index: 5;
  transition-delay: .18s;
}
/* c9 cappuccino: sopra i pennelli */
.cs--9 {
  width: max(320px, 42vw);
  right: -4%; bottom: -18%;
  rotate: 6deg;
  z-index: 6;
  transition-delay: .14s;
}
/* c1 laptop: in parte sotto il cappuccino, destra */
.cs--1 {
  width: max(280px, 36vw);
  right: 14%; bottom: -28%;
  rotate: 8deg;
  z-index: 4;
  transition-delay: 0s;
}
/* c2 nuvola: vicino alla scritta DESIGN, effetto 3D dietro al testo */
.cs--2 {
  width: max(260px, 32vw);
  right: 2%; bottom: 54%;
  rotate: -5deg;
  z-index: 1;
  transition-delay: .08s;
}
/* c3 farfalla: sopra i pennelli, bordo destro */
.cs--3 {
  width: max(75px, 9vw);
  right: 3%; bottom: 22%;
  rotate: -9deg;
  z-index: 5;
  transition-delay: .12s;
}
/* c4 fiore: spalla della foto, centro-sx in basso */
.cs--4 {
  width: max(250px, 32vw);
  left: 28%; bottom: -12%;
  rotate: 9deg;
  z-index: 5;
  transition-delay: .06s;
}
/* c6 pennelli: bordo destro */
.cs--6 {
  width: max(130px, 14vw);
  right: -3%; bottom: -5%;
  rotate: -8deg;
  z-index: 4;
  transition-delay: .16s;
}
/* c7 stelle: sopra la nuvola, destra-centro */
.cs--7 {
  width: max(52px, 6vw);
  right: 24%; bottom: 6%;
  rotate: 18deg;
  z-index: 7;
  transition-delay: .2s;
}

/* c10 foto b&n: protagonista, la più grande */
.cs--10 {
  width: max(320px, 44vw);
  left: -3%; bottom: -6%;
  rotate: -8deg;
  z-index: 3;
  transition-delay: .22s;
}

/* c11 star8: angolo alto sx, blend overlay */
.cs--11 {
  width: max(620px, 90vw);
  top: -8%;
  left: -8%;
  z-index: 0;
  color: orchid;
  opacity: 0.3;
  mix-blend-mode: overlay;
  overflow: visible;
}

/* override per la nuova hero orchid: overlay su orchid = invisibile, uso multiply + jet */
.hero .cs--11 {
  mix-blend-mode: multiply;
  color: var(--jet);
  opacity: 0.07;
}

/* rotazione su se stessa: transform-box:fill-box ancora transform-origin al centro del path */
.spin-star {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: spinSlow 30s linear infinite;
}

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

/* Float animations — solo gli elementi che "volano" sopra la pila */
.cs--8 { animation: csFloatB 2.8s ease-in-out infinite 1.0s; }

/* Mobile: riduce e nasconde gli elementi più ingombranti */
@media (max-width: 640px) {
  .cs--5, .cs--8, .cs--2, .cs--6, .cs--3 { display: none; }
  /* stella: enorme, tocca il testo con le punte */
  .cs--11 { top: -4%; left: -6%; width: 155vw; }
  /* foto b&n: più in basso */
  .cs--10 { width: 90vw; bottom: 10%; }
  /* laptop: più grande, angolo basso-destra */
  .cs--1 { width: 62vw; left: 52%; right: auto; bottom: 2%; }
  /* fiore giallo: più in basso e più centrato */
  .cs--4 { width: 86vw; left: -18%; right: auto; bottom: -15%; }
  /* cappuccino: più grande, angolo basso-destra */
  .cs--9 { display: block; width: 78vw; right: -18%; left: auto; bottom: -8%; top: auto; }
  .cs--3 { width: 22vw; }
  .cs--7 { width: 18vw; left: 6%; right: auto; bottom: 8%; filter: sepia(1) hue-rotate(265deg) saturate(2.5) brightness(1.15); }
}

/* ---- Tablet collage (641–1024px) ---- */
@media (min-width: 641px) and (max-width: 1024px) {
  .hero-layer { padding-top: 80px; padding-bottom: 80px; }
  /* stella: segue desktop (orchid, opacity 0.3, overlay) */
  .cs--11 { top: -8%; left: -8%; }
  /* immagini: più grandi e più alte */
  .cs--10 { width: max(520px, 68vw); bottom: 2%; }
  .cs--9  { width: max(400px, 54vw); right: 5%; bottom: -14%; }
  .cs--4  { width: max(380px, 50vw); left: 8%; bottom: -18%; }
  .cs--1  { width: max(360px, 46vw); right: 11%; bottom: -6%; }
  .cs--5  { bottom: -4%; }
  .cs--6  { width: max(200px, 22vw); }
  .cs--7  { left: 4%; right: auto; bottom: 10%; filter: sepia(1) hue-rotate(230deg) saturate(2) brightness(1.1); }
}

/* Intro mobile: la detective appare a tutto schermo, poi sfuma in sfondo e compare il testo */
@keyframes heroIntroImg {
  0%   { opacity: 1; transform: scale(1.16); }
  48%  { opacity: 1; transform: scale(1.16); }
  100% { opacity: .18; transform: scale(1); }
}
@keyframes heroIntroText {
  0%   { opacity: 0; transform: translateY(14px); }
  46%  { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   MARQUEE (keyword scorrevoli)
   ========================================================= */
.marquee {
  background: var(--jet); color: var(--ivory);
  overflow: hidden; white-space: nowrap;
  padding: 16px 0;
  border-block: 3px solid var(--jet);
}
.marquee__track { display: inline-flex; align-items: center; will-change: transform; }
.marquee__group { display: inline-flex; align-items: center; flex: 0 0 auto; }
.marquee__group span {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.2rem, 2.6vw, 2.2rem); letter-spacing: 0;
  padding: 0 .55em; white-space: nowrap;
}
.marquee__star {
  width: clamp(13px, 1.5vw, 20px); height: clamp(13px, 1.5vw, 20px);
  color: var(--tomato); flex: 0 0 auto;
}

/* =========================================================
   WHAT I DO — sezione servizi descrittiva
   ========================================================= */

/* ---- sezione what ---- */
.what {
  background: var(--ivory);
  position: relative;
  overflow: hidden;
  padding-block: clamp(80px, 10vw, 140px);
}
.what::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, rgba(0,42,50,.09));
  pointer-events: none;
  z-index: 1;
}
/* texture carta */
.what::before {
  content: '';
  position: absolute; inset: 0;
  background: url('assets/paper.jpg') center / cover no-repeat;
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

/* contenuto centrato */
.what__inner {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  gap: 0;
}
/* identico a .hero__eyebrow */
.what__eyebrow {
  font-family: var(--font-text); font-weight: 700;
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  letter-spacing: -.1em;
  color: var(--jet);
  margin-bottom: 4px;
}
/* identico a .hero__title — font-size scalato per stare su una riga */
.what__title {
  font-family: var(--font-syne); font-weight: 800;
  font-size: clamp(1.5rem, 6.5vw, 5.5rem);
  line-height: .85;
  text-transform: uppercase;
  letter-spacing: -.03em;
  white-space: nowrap;
  color: var(--jet);
  margin: 0 0 clamp(10px, 2vw, 20px);
}
/* band tomato animata — rettangolo leggermente ruotato, spigoli vivi */
.what__band {
  background: var(--jet);
  display: inline-grid;
  align-items: center; justify-items: center;
  padding: 6px clamp(16px, 2.5vw, 36px);
  min-height: 0;
  border-radius: 0;
  transform: rotate(-2deg);
  margin-block: 0 clamp(12px, 2.5vw, 24px);
  white-space: nowrap;
  font-family: var(--font-syne); font-weight: 800;
  font-size: clamp(1.2rem, 3.8vw, 3.2rem);
  text-transform: uppercase;
  letter-spacing: -.03em;
  line-height: .9;
}
.what__band > * { grid-area: 1 / 1; }
.what__band-sizer {
  visibility: hidden;
  pointer-events: none;
  user-select: none;
}
.what__band-text {
  color: var(--ivory);
  transition: opacity .3s ease, transform .3s ease;
}
/* testi corpo */
.what__body {
  font-family: var(--font-text); font-weight: 500;
  font-size: clamp(.95rem, 1.4vw, 1.15rem);
  line-height: 1.65;
  max-width: 52ch;
  color: var(--jet);
  margin: 0 0 clamp(8px, 1.5vw, 16px);
}
.what__body--italic { font-style: italic; opacity: .8; margin-bottom: 0; }
/* griglia mockup */
.what__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 4vw, 40px);
  width: 100%;
  max-width: 800px;
  margin-top: clamp(8px, 2vw, 24px);
  align-items: start;
}
.what__card {
  display: flex; flex-direction: column; align-items: center;
  gap: 12px;
}
.what__card--1 { transform: rotate(-3deg); }
.what__card--2 { transform: rotate(2deg); }
.what__card--3 { transform: rotate(-1.5deg); }
.what__img-wrap {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #e8e4e0;
  border-radius: var(--radius);
  box-shadow: 0 12px 40px -8px rgba(0,42,50,.15);
}
.what__img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.what__label {
  font-family: var(--font-text); font-weight: 600;
  font-size: clamp(.85rem, 1.3vw, 1.05rem);
  letter-spacing: -.02em;
  color: var(--jet);
}
.what__cta { margin-top: clamp(32px, 5vw, 56px); }
/* mobile */
@media (max-width: 640px) {
.what__band { min-width: min(88vw, 340px); font-size: clamp(.95rem, 5.5vw, 1.4rem); }
  .what__grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 20px;
    max-width: 100%;
    padding-inline: 24px;
    padding-bottom: 12px;
    scrollbar-width: none;
  }
  .what__grid::-webkit-scrollbar { display: none; }
  .what__card {
    flex: 0 0 68vw;
    scroll-snap-align: center;
  }
}

/* Sea moment */
.sea-moment {
  min-height: 100svh;
  background-image: url('sea.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.sea-moment::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(0, 20, 40, .52);
}
/* ---- Statement typewriter ---- */
.stmt {
  position: relative; z-index: 1;
  padding: clamp(64px, 10vw, 120px) clamp(24px, 6vw, 80px);
  display: flex; flex-direction: column; align-items: center;
  gap: clamp(2px, 0.8vw, 10px);
  text-align: center; width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
}
.stmt__label {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.4rem, 3.5vw, 2.8rem);
  text-transform: uppercase; letter-spacing: 0;
  color: rgba(255,249,234,.5);
}
.stmt__slot {
  display: block;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(3rem, 8vw, 6.5rem);
  text-transform: uppercase; color: var(--ivory);
  line-height: 1.1; min-height: 1.1em;
}
.stmt__cursor {
  font-family: var(--font-display); font-weight: 400;
  color: var(--orchid);
  animation: cursor-blink 0.65s steps(1) infinite;
  margin-left: 2px;
}
@keyframes cursor-blink {
  0%, 50%  { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.sea-moment__text {
  position: relative; z-index: 1;
  padding: clamp(48px, 8vw, 100px) clamp(24px, 6vw, 100px);
  display: flex; flex-direction: column; align-items: center; gap: clamp(8px, 1.5vw, 14px);
  width: fit-content;
  max-width: var(--maxw);
  margin-inline: auto;
}
.sea-moment__hook {
  display: block;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(3.5rem, 10vw, 8rem); line-height: .88; letter-spacing: 0;
  text-transform: uppercase; color: var(--canary); text-align: center;
}
.sea-moment__text p {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3.5rem); line-height: 1.15; letter-spacing: 0;
  text-transform: uppercase; color: var(--canary); text-align: center;
  max-width: 22ch;
}
.sea-hl {
  position: relative;
  display: inline;
  white-space: nowrap;
  color: var(--jet);
}
.sea-hl::before {
  content: '';
  position: absolute;
  inset: 0.18em -2px;
  background: var(--orchid);
  border-radius: 0;
  transform: rotate(-1.8deg);
  z-index: -1;
}
.sea-hl--flip::before {
  transform: rotate(1.8deg);
}

/* Brand experience moment */
.brand-moment {
  background: var(--tomato);
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.brand-moment__inner {
  display: flex; flex-direction: column; align-items: center;
  gap: clamp(10px, 2vw, 20px);
  padding: clamp(48px, 8vw, 100px) clamp(24px, 6vw, 100px);
  text-align: center; max-width: 640px;
  position: relative; z-index: 1;
}
.brand-moment__label {
  font-family: var(--font-text); font-weight: 500;
  font-size: clamp(.75rem, 1.1vw, .95rem); letter-spacing: 2px; text-transform: uppercase;
  color: var(--jet); opacity: .65;
}
.brand-moment__term {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(3rem, 9vw, 7.5rem); line-height: .88;
  text-transform: uppercase; color: var(--jet);
}
.brand-mask {
  display: block;
  overflow: hidden;
  padding-bottom: .1em;
}
.brand-mask__inner {
  display: block;
  transform: translateY(110%);
  transition: transform .9s cubic-bezier(.16, 1, .3, 1);
}
.brand-mask__inner--delay { transition-delay: .2s; }
.brand-moment__inner.in .brand-mask__inner { transform: translateY(0); }

/* --- Flying brand elements --- */
.bm-el {
  position: absolute; z-index: 0;
  opacity: 0; pointer-events: none;
  transition: transform .9s cubic-bezier(.16,1,.3,1), opacity .55s ease;
  box-shadow: 3px 6px 24px rgba(0,42,50,.18);
}
.brand-moment__inner.in ~ .bm-el { opacity: 1; }

/* 1 — Social post card */
.bm-el--1 {
  width: 138px; top: 7%; right: 5%;
  background: var(--canary); padding: 10px;
  transform: translate(260px,-230px) rotate(-6deg);
  transition-delay: .1s;
}
.brand-moment__inner.in ~ .bm-el--1 { transform: translate(0,0) rotate(-6deg); }
.bm-el__avatar-row { display:flex; align-items:center; gap:6px; margin-bottom:8px; }
.bm-el__avatar { width:18px; height:18px; border-radius:50%; background:var(--jet); flex-shrink:0; }
.bm-el__handle { font-family:var(--font-text); font-weight:700; font-size:8px; color:var(--jet); }
.bm-el__photo { width:100%; height:80px; background:var(--jet); margin-bottom:8px; }
.bm-el__caption-line { height:5px; background:var(--jet); opacity:.25; border-radius:2px; margin-bottom:4px; }
.bm-el__caption-line--short { width:55%; }

/* 2 — Sticker */
.bm-el--2 {
  width:108px; height:108px; top:26%; left:3%;
  background:var(--orchid);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px;
  transform: translate(-210px,0) rotate(12deg);
  transition-delay: .25s;
}
.brand-moment__inner.in ~ .bm-el--2 { transform: translate(0,0) rotate(12deg); }
.bm-el__star { font-size:11px; color:var(--jet); line-height:1; }
.bm-el__big-word { font-family:var(--font-display); font-size:22px; line-height:1; text-transform:uppercase; color:var(--jet); }
.bm-el__small-word { font-family:var(--font-text); font-weight:700; font-size:7px; letter-spacing:2px; text-transform:uppercase; color:var(--jet); opacity:.55; }

/* 3 — Reel */
.bm-el--3 {
  width:108px; height:138px; bottom:17%; left:7%;
  background:var(--jet);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; padding:12px;
  transform: translate(-230px,200px) rotate(-8deg);
  transition-delay: .35s;
}
.brand-moment__inner.in ~ .bm-el--3 { transform: translate(0,0) rotate(-8deg); }
.bm-el__play { font-size:30px; color:var(--canary); line-height:1; }
.bm-el__reel-tag { font-family:var(--font-display); font-size:13px; letter-spacing:3px; color:var(--ivory); text-transform:uppercase; }
.bm-el__bar { width:100%; height:3px; background:rgba(255,249,234,.15); border-radius:2px; }
.bm-el__bar::after { content:''; display:block; width:42%; height:100%; background:var(--canary); border-radius:2px; }

/* 4 — Palette strip */
.bm-el--4 {
  width:68px; top:13%; left:15%;
  display:flex; flex-direction:column;
  transform: translate(-180px,-180px) rotate(4deg);
  transition-delay: .2s;
}
.brand-moment__inner.in ~ .bm-el--4 { transform: translate(0,0) rotate(4deg); }
.bm-el__sw { height:38px; display:flex; align-items:flex-end; padding:3px 5px; }
.bm-el__sw span { font-family:var(--font-text); font-size:7px; font-weight:700; letter-spacing:.5px; color:#fff; opacity:.6; mix-blend-mode:difference; }

/* 5 — Packaging */
.bm-el--5 {
  width:128px; top:40%; right:4%;
  background:var(--ivory); border:2px solid var(--jet); overflow:hidden;
  transform: translate(250px,80px) rotate(-10deg);
  transition-delay: .45s;
}
.brand-moment__inner.in ~ .bm-el--5 { transform: translate(0,0) rotate(-10deg); }
.bm-el__pkg-face {
  height:96px; display:flex; align-items:center; justify-content:center;
  border-bottom:2px solid var(--jet);
}
.bm-el__pkg-face span { font-family:var(--font-display); font-size:22px; letter-spacing:4px; color:var(--jet); text-transform:uppercase; }
.bm-el__pkg-side { height:34px; background:var(--jet); }

/* 6 — Moodboard 2x2 */
.bm-el--6 {
  width:128px; height:128px; bottom:9%; right:7%;
  transform: translate(220px,210px) rotate(8deg);
  transition-delay: .4s;
}
.brand-moment__inner.in ~ .bm-el--6 { transform: translate(0,0) rotate(8deg); }
.bm-el__mood { display:grid; grid-template-columns:1fr 1fr; width:100%; height:100%; gap:3px; }
.bm-el__mood div { width:100%; height:100%; }

/* 7 — Logo identity card */
.bm-el--7 {
  width:148px; bottom:24%; left:18%;
  background:var(--jet);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; padding:16px;
  transform: translate(-130px,210px) rotate(-3deg);
  transition-delay: .3s;
}
.brand-moment__inner.in ~ .bm-el--7 { transform: translate(0,0) rotate(-3deg); }
.bm-el__logo-mark { font-family:var(--font-display); font-size:44px; line-height:1; color:var(--canary); text-transform:uppercase; }
.bm-el__logo-sub { font-family:var(--font-text); font-weight:700; font-size:7px; letter-spacing:2px; text-transform:uppercase; color:var(--ivory); opacity:.45; }

/* 8 — Instagram grid 3x3 */
.bm-el--8 {
  width:118px; height:118px; top:6%; left:40%;
  transform: translate(0,-230px) rotate(5deg);
  transition-delay: .15s;
}
.brand-moment__inner.in ~ .bm-el--8 { transform: translate(0,0) rotate(5deg); }
.bm-el__ig { display:grid; grid-template-columns:repeat(3,1fr); width:100%; height:100%; gap:2px; }
.bm-el__ig div { width:100%; height:100%; }

/* ---- Tablet: 768–1024px — tutti e 8 gli elementi, scale .72 ---- */
@media (min-width: 768px) and (max-width: 1024px) {
  .bm-el--1 { top:5%;   right:3%;  transform-origin:top right;    transform:translate(200px,-180px) rotate(-6deg)  scale(.72); }
  .bm-el--2 { top:22%;  left:2%;   transform-origin:top left;     transform:translate(-170px,0)     rotate(12deg)   scale(.72); }
  .bm-el--3 { bottom:15%; left:4%; transform-origin:bottom left;  transform:translate(-170px,160px) rotate(-8deg)   scale(.72); }
  .bm-el--4 { top:10%;  left:14%;  transform-origin:top left;     transform:translate(-160px,-160px) rotate(4deg)   scale(.72); }
  .bm-el--5 { top:38%;  right:3%;  transform-origin:top right;    transform:translate(200px,90px)   rotate(-10deg)  scale(.72); }
  .bm-el--6 { bottom:8%; right:5%; transform-origin:bottom right; transform:translate(180px,160px)  rotate(8deg)    scale(.72); }
  .bm-el--7 { bottom:23%; left:16%; transform-origin:bottom left; transform:translate(-140px,160px) rotate(-3deg)   scale(.72); }
  .bm-el--8 { top:4%;   left:38%;  transform-origin:top center;   transform:translate(0,-200px)      rotate(5deg)   scale(.72); }

  .brand-moment__inner.in ~ .bm-el--1 { transform:translate(0,0) rotate(-6deg)  scale(.72); }
  .brand-moment__inner.in ~ .bm-el--2 { transform:translate(0,0) rotate(12deg)  scale(.72); }
  .brand-moment__inner.in ~ .bm-el--3 { transform:translate(0,0) rotate(-8deg)  scale(.72); }
  .brand-moment__inner.in ~ .bm-el--4 { transform:translate(0,0) rotate(4deg)   scale(.72); }
  .brand-moment__inner.in ~ .bm-el--5 { transform:translate(0,0) rotate(-10deg) scale(.72); }
  .brand-moment__inner.in ~ .bm-el--6 { transform:translate(0,0) rotate(8deg)   scale(.72); }
  .brand-moment__inner.in ~ .bm-el--7 { transform:translate(0,0) rotate(-3deg)  scale(.72); }
  .brand-moment__inner.in ~ .bm-el--8 { transform:translate(0,0) rotate(5deg)   scale(.72); }
}

@media (max-width: 767px) {
  /* show all 8 elements scaled down — nothing hidden */
  .bm-el--4, .bm-el--5, .bm-el--7, .bm-el--8 { display: block; }

  .bm-el--1 { top:4%;  right:2%;  transform-origin:top right;   transform:translate(160px,-140px) rotate(-6deg)  scale(.55); }
  .bm-el--2 { top:18%; left:1%;   transform-origin:top left;    transform:translate(-130px,0)     rotate(12deg)   scale(.55); }
  .bm-el--3 { bottom:16%; left:3%; transform-origin:bottom left; transform:translate(-130px,120px) rotate(-8deg)   scale(.55); }
  .bm-el--4 { top:9%;  left:7%;   transform-origin:top left;    transform:translate(-130px,-130px) rotate(4deg)   scale(.55); }
  .bm-el--5 { top:27%; right:2%;  transform-origin:top right;   transform:translate(160px,60px)   rotate(-10deg)  scale(.55); }
  .bm-el--6 { bottom:8%; right:3%; transform-origin:bottom right; transform:translate(140px,120px)  rotate(8deg)   scale(.55); }
  .bm-el--7 { bottom:22%; left:13%; transform-origin:bottom left; transform:translate(-100px,140px) rotate(-3deg)  scale(.55); }
  .bm-el--8 { top:5%;  left:35%;  transform-origin:top center;  transform:translate(0,-160px)      rotate(5deg)   scale(.55); }

  .brand-moment__inner.in ~ .bm-el--1 { transform:translate(0,0) rotate(-6deg)  scale(.55); }
  .brand-moment__inner.in ~ .bm-el--2 { transform:translate(0,0) rotate(12deg)  scale(.55); }
  .brand-moment__inner.in ~ .bm-el--3 { transform:translate(0,0) rotate(-8deg)  scale(.55); }
  .brand-moment__inner.in ~ .bm-el--4 { transform:translate(0,0) rotate(4deg)   scale(.55); }
  .brand-moment__inner.in ~ .bm-el--5 { transform:translate(0,0) rotate(-10deg) scale(.55); }
  .brand-moment__inner.in ~ .bm-el--6 { transform:translate(0,0) rotate(8deg)   scale(.55); }
  .brand-moment__inner.in ~ .bm-el--7 { transform:translate(0,0) rotate(-3deg)  scale(.55); }
  .brand-moment__inner.in ~ .bm-el--8 { transform:translate(0,0) rotate(5deg)   scale(.55); }
}

/* =========================================================
   PORTFOLIO
   ========================================================= */
.portfolio-wave--top,
.portfolio-wave--bottom {
  position: absolute; left: 0; right: 0;
  line-height: 0; pointer-events: none; z-index: 2;
}
.portfolio-wave--top svg,
.portfolio-wave--bottom svg { display: block; width: 100%; height: 72px; }
.portfolio-wave--top  { top: -70px; }
.portfolio-wave--bottom { bottom: -70px; }

.portfolio {
  background: var(--jet);
  color: var(--ivory);
  position: relative;
  overflow: visible;
  z-index: 1;
  padding-block: clamp(80px, 10vw, 120px);
}

.portfolio__header {
  margin-bottom: clamp(36px, 5vw, 56px);
}

.portfolio__eyebrow {
  font-family: var(--font-text); font-weight: 700;
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  letter-spacing: -.1em;
  color: var(--orchid);
  display: block;
  margin-bottom: 4px;
}

.portfolio__title {
  font-family: var(--font-syne);
  font-weight: 400;
  font-size: clamp(2rem, 5.5vw, 4rem);
  color: var(--ivory);
  margin: 18px 0 40px;
  line-height: .98;
  text-transform: uppercase;
}

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 32px);
}

.portfolio__card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.portfolio__img-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.portfolio__img-wrap img,
.portfolio__img-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}

.portfolio__card:hover .portfolio__img-wrap img,
.portfolio__card:hover .portfolio__img-wrap video {
  transform: scale(1.05);
}

.portfolio__card-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.portfolio__tag {
  font-family: var(--font-text);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orchid);
}

.portfolio__card-title {
  font-family: var(--font-text);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ivory);
  margin: 0;
}
.portfolio__card-link {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: opacity .2s;
}
.portfolio__card-link::after {
  content: '↗';
  font-size: .85em;
  opacity: .6;
}
.portfolio__card-link:hover { opacity: .75; }

@media (max-width: 768px) {
  .portfolio__grid { grid-template-columns: 1fr; gap: 24px; }
}

/* =========================================================
   METHOD (timeline)
   ========================================================= */
.method-wave--top,
.method-wave--bottom {
  position: absolute; left: 0; right: 0;
  line-height: 0; pointer-events: none; z-index: 2;
}
.method-wave--top svg,
.method-wave--bottom svg { display: block; width: 100%; height: 72px; }
.method-wave--top  { top: -70px; }
.method-wave--bottom { bottom: -70px; }

.method .what__eyebrow { color: var(--orchid); }

.method.section {
  background: var(--jet);
  color: var(--ivory);
  position: relative;
  overflow: visible;
  z-index: 1;
}
.method .section__title { color: var(--ivory); }
.method .badge--orchid { background: rgba(250,191,245,.15); color: var(--orchid); }
.method .badge--orchid .badge__dot { background: var(--orchid); }
.method .step__body p { color: rgba(255,249,234,.65); }
.method .timeline::before { display: none; }


.timeline { position: relative; margin-top: 20px; display: grid; gap: 0; }
.timeline::before {
  content:""; position: absolute; left: 27px; top: 20px; bottom: 40px; width: 3px;
  background: repeating-linear-gradient(var(--jet) 0 8px, transparent 8px 16px);
  opacity: .35;
}
.step { display: flex; gap: 22px; align-items: flex-start; padding: 14px 0 0; min-height: 152px; position: relative; z-index: 1; }
.step:last-of-type { min-height: 0; }
.step__n {
  flex: 0 0 auto; width: 60px; height: 60px;
  display: grid; place-items: center;
  position: relative;
  font-family: var(--font-display); font-size: 1.4rem; color: var(--jet);
  transition: transform .3s var(--ease);
}
.step__n svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  color: var(--canary); transition: color .3s var(--ease);
  z-index: 0;
}
.step__n span { position: relative; z-index: 1; }
.step:hover .step__n { transform: scale(1.08) rotate(-8deg); }
.step:hover .step__n svg { color: var(--orchid); }
.step__body { padding-top: 6px; }
.step__body h3 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.1rem,2.4vw,1.7rem); line-height: 1; letter-spacing: 0; margin-bottom: 8px; }
.step__body p { color: var(--ink-soft); max-width: 56ch; }
/* Method finale box */
.finale {
  position: relative; overflow: hidden;
  margin: 80px auto 0; max-width: 780px;
  border: none; border-radius: var(--radius);
  box-shadow: 0 20px 60px -10px rgba(0,42,50,.18);
  transform: none;
  display: grid; grid-template-columns: 1fr 190px; grid-template-rows: auto 1fr;
  background: var(--orchid); color: var(--jet);
}
.finale__eyebrow {
  grid-column: 1; grid-row: 1;
  padding: clamp(34px, 6vw, 52px) clamp(24px, 5vw, 48px) 12px;
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(.75rem, 1.1vw, .88rem); line-height: 1.3; letter-spacing: .3px;
  color: var(--jet); opacity: .6; margin: 0;
}
.finale__left {
  grid-column: 1; grid-row: 2;
  padding: 0 clamp(24px, 5vw, 48px) clamp(34px, 6vw, 52px);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 18px;
}
.finale__right {
  grid-column: 2; grid-row: 1 / 3;
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; min-height: 200px;
}
.finale__star {
  width: 85%; color: var(--jet); display: block;
  mix-blend-mode: overlay;
}
.eyebrow-br { display: none; }
.finale__title {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.5rem, 3.8vw, 2.6rem); line-height: 1; letter-spacing: 0;
  margin: 0; color: var(--jet);
}
.finale__cta { align-self: flex-start; white-space: nowrap; }
.finale--testimonial { grid-template-columns: 1fr; grid-template-rows: 1fr; padding: clamp(32px, 5vw, 52px) clamp(28px, 5vw, 52px); }
.finale__deco-star { position: absolute; bottom: -20px; right: -20px; width: 120px; height: 120px; color: var(--jet); opacity: .12; pointer-events: none; }
.finale__quote { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.finale__quote > p { font-size: clamp(1rem, 2.2vw, 1.2rem); font-style: italic; line-height: 1.55; margin: 0; color: var(--jet); }
.finale__attribution { font-style: normal; display: flex; flex-direction: column; gap: 2px; }
.finale__attribution strong { font-family: var(--font-display); text-transform: uppercase; font-size: .85rem; letter-spacing: 1px; color: var(--jet); }
.finale__attribution span { font-size: .8rem; opacity: .65; color: var(--jet); }
.confetti-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 4;
}

/* =========================================================
   ABOUT
   ========================================================= */
.about-wave {
  display: block;
  margin-top: -71px;
  position: relative;
  z-index: 2;
  pointer-events: none;
  line-height: 0;
}
.about-wave svg { display: block; width: 100%; height: 72px; }
.about {
  background: var(--canary);
  padding-block: clamp(64px, 10vw, 120px);
  overflow: hidden;
  position: relative;
  margin-top: -1px;
}
.about__star {
  position: absolute;
  width: max(460px, 86vw);
  top: 30%;
  left: 25%;
  transform: translate(-50%, -50%);
  color: var(--jet);
  opacity: .12;
  pointer-events: none;
  z-index: 0;
}
.about__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.about__photo-col {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.about__photo {
  width: 100%;
  max-width: 380px;
  object-fit: contain;
  display: block;
}
.about__text-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.about__eyebrow {
  font-family: var(--font-text);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: lowercase;
  color: var(--jet);
  opacity: .6;
}
.about__title {
  font-family: var(--font-syne);
  font-weight: 400;
  font-size: clamp(2rem, 5.5vw, 4rem);
  color: var(--jet);
  line-height: .98;
  text-transform: uppercase;
  margin: 18px 0 0;
}
.about__body {
  font-family: var(--font-text);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.7;
  color: var(--jet);
  margin: 0;
}
.about__body + .about__body { margin-top: 16px; }
.about__body--wow { font-weight: 700; }
@media (max-width: 640px) {
  .about__inner {
    grid-template-columns: 1fr;
  }
  .about__photo-col { order: 1; }
  .about__text-col { order: 2; }
  .about__photo { max-width: 220px; }
}
@media (min-width: 768px) {
  .about__star {
    width: clamp(900px, 88vw, 1100px);
    top: auto;
    bottom: 0;
    left: 0;
    transform: translate(-40%, 40%);
  }
}

/* =========================================================
   SERVICES
   ========================================================= */
.services__aster { top: 5%; right: 4%; color: var(--sapphire); }
.services::before {
  content: '';
  position: absolute; inset: 0;
  background: url('assets/paper.jpg') center / cover no-repeat;
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}
.services .wrap { position: relative; z-index: 1; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 12px; }
.card {
  position: relative; border: none; border-radius: var(--radius);
  padding: 30px 28px 26px; box-shadow: 0 12px 40px -8px rgba(0,42,50,.15);
  display: flex; flex-direction: column;
  transform: rotate(var(--r, 0deg));
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  overflow: hidden;
}
.card:nth-child(1) { --r: -1.5deg; }
.card:nth-child(2) { --r: 1deg; }
.card:nth-child(3) { --r: -2deg; }
.card::before {
  content:""; position: absolute; top: 16px; right: 16px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--jet); border: 2px solid var(--jet);
}
.card:hover { transform: rotate(var(--r, 0deg)) translateY(-6px); box-shadow: 0 22px 55px -8px rgba(0,42,50,.22); }
.card--yellow { background: var(--canary); color: var(--jet); position: relative; overflow: hidden; }
.card--orchid { background: var(--orchid); color: var(--jet); position: relative; overflow: hidden; }

.card__c11star {
  position: absolute; bottom: -30px; right: -30px;
  width: 160px; height: 160px;
  color: #fff; opacity: 0.25;
  pointer-events: none;
}
.card__deco-img {
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: clamp(110px, 14vw, 170px);
  pointer-events: none;
  user-select: none;
  object-fit: contain;
}
.card--tomato { background: var(--tomato); color: var(--jet); position: relative; overflow: hidden; }
.card__tag { display: inline-block; font-family: var(--font-display); text-transform: uppercase; font-size: .8rem; letter-spacing: 1.5px; opacity: .8; margin-bottom: 12px; }
.card h3 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: .98; letter-spacing: 0; margin-bottom: 12px; max-width: 18ch; }
.card p { font-size: .98rem; margin-bottom: 22px; max-width: 46ch; opacity: .92; }
.card__link { margin-top: auto; font-weight: 700; border-bottom: 2px solid currentColor; padding-bottom: 2px; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; transition: gap .25s ease; }
.card__link-arrow { display: inline-block; transition: transform .25s ease; }
.card__link:hover { gap: 14px; }
.card__link:hover .card__link-arrow { transform: translateX(4px); }

/* =========================================================
   WHY
   ========================================================= */
.why {
  background: var(--tomato); color: #fff;
  min-height: 100vh; display: flex; align-items: center;
  padding-block: clamp(80px, 12vw, 140px);
  position: relative; overflow: hidden;
}
.why__star {
  position: absolute; pointer-events: none;
  color: var(--ivory); opacity: 0.15;
}
.why__star--tl { width: clamp(260px, 38vw, 500px); top: -10%; left: -10%; }
.why__star--br { width: clamp(200px, 28vw, 380px); bottom: -12%; right: -8%; }
.why__inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: clamp(20px, 3vw, 32px);
  padding-inline: clamp(24px, 10vw, 160px);
  max-width: 900px; width: 100%; margin-inline: auto;
}
.why__title {
  font-family: var(--font-syne); font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: .9; letter-spacing: -.03em;
  text-transform: uppercase;
  color: var(--ivory);
  margin: 0;
}
.why__lead {
  font-family: var(--font-text); font-weight: 500;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  line-height: 1.5;
  color: rgba(255,249,234,.8);
  max-width: 42ch; margin: 0;
}
.why__arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  border: 2.5px solid rgba(255,249,234,.5);
  border-radius: 50%;
  color: var(--ivory);
  text-decoration: none;
  animation: bounceDown 1.8s ease-in-out infinite;
  transition: border-color .2s, background .2s;
}
.why__arrow svg { width: 26px; height: 26px; }
.why__arrow:hover { border-color: var(--ivory); background: rgba(255,249,234,.12); }
@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

.why-br { display: none; }
@media (max-width: 480px) {
  .why { min-height: 0; padding-top: clamp(120px, 28vw, 160px); padding-bottom: clamp(60px, 18vw, 100px); }
  .why-br { display: inline; }
  .why__inner { padding-inline: 24px; }
  .why__title { font-size: clamp(1.2rem, 6vw, 1.8rem); }
  .why__lead { font-size: 1rem; max-width: 100%; }
}

@media (max-width: 600px) {
  .finale { grid-template-columns: 1fr; grid-template-rows: auto; }
  .finale__eyebrow {
    grid-column: auto; grid-row: auto; order: 0;
    padding: 20px 20px 0;
    font-size: .72rem; opacity: 1; color: var(--jet);
    text-align: center;
  }
  .finale__right { grid-column: auto; grid-row: auto; min-height: 180px; order: 1; }
  .finale__left { grid-column: auto; grid-row: auto; order: 2; text-align: center; align-items: center; padding: 0 20px 24px; }
  .finale__title br { display: none; }
  .finale__title { font-size: 1.4rem; }
  .finale__cta { align-self: stretch; text-align: center; }
  .eyebrow-br { display: block; }
}

/* =========================================================
   FINAL CTA
   ========================================================= */
.final { position: relative; }
.final::before {
  content: '';
  position: absolute; inset: 0;
  background: url('assets/paper.jpg') center / cover no-repeat;
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}
/* Split layout */
.final__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
  margin-bottom: -20px;
}
.final__panel {
  position: relative;
  overflow: hidden;
}
/* Pannello sx: orchid */
.final__panel--left {
  background: var(--orchid);
  overflow: visible;
}
.final__phone {
  position: absolute;
  bottom: -30px;
  left: 0;
  height: 120%;
  width: auto;
  pointer-events: none;
  z-index: 1;
}
.final__fill {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.final__fill p {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  font-family: var(--font-syne);
  font-weight: 800;
  font-size: clamp(1.9rem, 4.5vw, 4rem);
  text-transform: uppercase;
  color: var(--jet);
  opacity: 0.6;
  line-height: 1.15;
  letter-spacing: -.03em;
  word-spacing: .05em;
  mix-blend-mode: overlay;
}
/* Pannello dx: content */
.final__panel--right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(40px, 6vw, 72px) clamp(32px, 5vw, 60px);
  position: relative; z-index: 1;
}
.final__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  position: relative;
  z-index: 1;
  max-width: 480px;
  width: 100%;
}
/* Title */
.final__title {
  margin: 0; line-height: .98; position: relative; z-index: 1;
  font-family: var(--font-syne); font-weight: 400;
  font-size: clamp(1.6rem, 5.5vw, 2.2rem); letter-spacing: 0;
  text-transform: uppercase; color: var(--jet);
  width: 100%; overflow-wrap: anywhere;
}
.final__word {
  display: inline-block; position: relative; isolation: isolate;
  padding: 0 .12em;
}
.final__word::before { content: none; }
.final__lead { color: var(--ink-soft); font-size: 1.05rem; margin: 0; margin-top: 12px; }
.final__cta-row { display: flex; align-items: center; gap: 20px; }

@media (max-width: 620px) {
  .final__split { grid-template-columns: 1fr; }
  .final__panel--left { min-height: 180px; }
  .final__phone { width: 52%; height: auto; bottom: 0; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer-outer { position: relative; overflow: hidden; background: var(--jet); margin-top: -20px; z-index: 2; }
.footer__deco-star { position: absolute; bottom: -80px; right: -80px; width: 420px; height: 420px; color: var(--canary); opacity: .17; pointer-events: none; z-index: 1; }
.footer-wave { display: block; line-height: 0; position: relative; z-index: 2; margin-top: -55px; }
.footer-wave svg { display: block; width: 100%; height: 72px; }
.footer { background: var(--jet); color: var(--ivory); padding-top: 64px; position: relative; }
.footer__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding-bottom: 40px; align-items: stretch; }
.footer .nav__brandname { color: var(--ivory); }
.footer .klogo { color: var(--tomato); }
.footer__brand { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 10px; max-width: 44ch; }
.footer__role {
  font-family: var(--font-text); font-size: .75rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--orchid); margin: 6px 0 12px;
}
.footer__tag { color: rgba(255,249,234,.7); font-size: .95rem; }
.footer__cta-btn { white-space: nowrap; align-self: flex-start; }
.footer__col { display: flex; flex-direction: column; }
.footer__col h4 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 1rem; letter-spacing: 0; margin-bottom: 0; color: var(--canary); flex-shrink: 0; padding-bottom: 14px; }
.footer__col-body { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.footer__col-body a:not(.footer__social):not(.footer__cta-btn) { display: block; color: rgba(255,249,234,.8); padding: 5px 0; transition: color .25s, transform .25s; }
.footer__col-body a:not(.footer__social):not(.footer__cta-btn):hover { color: var(--tomato); transform: translateX(3px); }
.footer__socials { display: flex; gap: 12px; margin-top: 14px; }
.footer__social {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: rgba(255,249,234,.1); color: rgba(255,249,234,.85);
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.footer__social svg { width: 22px; height: 22px; display: block; flex-shrink: 0; }
.footer__social:hover { background: var(--tomato); color: var(--ivory); transform: translateY(-3px); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 22px; border-top: 1px solid rgba(255,249,234,.15); font-size: .82rem; color: rgba(255,249,234,.55); }

/* =========================================================
   REVEAL ANIMATIONS
   ========================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.finale.in { transform: none; }
.card.reveal.in { transform: rotate(var(--r, 0deg)); }
.card.reveal.in:hover { transform: rotate(var(--r, 0deg)) translateY(-6px); }
.reveal:nth-child(2) { transition-delay: .06s; }
.reveal:nth-child(3) { transition-delay: .12s; }
.reveal:nth-child(4) { transition-delay: .18s; }

/* =========================================================
   MOBILE MENU + RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .hero-layer { flex-direction: column; justify-content: center; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; }

  .hero__text { position: relative; z-index: 2; text-align: center; align-items: center; }
  /* su mobile nascondo elementi secondari, tengo la scena essenziale */
  .hero__title { margin-bottom: 20px; }
  .hero__lead { font-size: 1rem; max-width: 100%; }
  .cards { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__col--cta { grid-column: 1 / -1; }

  .nav__actions .nav__cta { display: none; }
  .nav__burger { display: flex; margin-left: auto; position: relative; z-index: 101; }
  .nav__actions { order: 3; }

  .nav__links {
    display: flex;
    position: fixed; inset: 0 0 auto 0; top: 0; padding: 90px var(--pad) 40px;
    flex-direction: column; gap: 4px;
    background: var(--jet); box-shadow: 0 18px 50px -22px rgba(0,0,0,.5);
    transform: translateY(-110%); transition: transform .45s var(--ease);
    z-index: 90; visibility: hidden; pointer-events: none;
  }
  .nav.is-open .nav__links { transform: translateY(0); visibility: visible; pointer-events: auto; }
  .nav__links a { font-size: 1.4rem; font-family: var(--font-display); text-transform: uppercase; padding: 12px 0; border-bottom: 1px solid rgba(255,249,234,.12); color: var(--ivory); }

}

/* Pain sticky: layout compatto su mobile */
@media (max-width: 900px) {
  .pain__title { margin-bottom: 16px; font-size: clamp(1.7rem, 7vw, 2.8rem); }
  .pain__item { padding: 12px 4px; }
  .pain__item p { font-size: clamp(.9rem, 3.8vw, 1.1rem); }
}

/* Mobile hero: centra leggermente più in alto con padding-top maggiore */
@media (max-width: 640px) {
  .hero-layer { padding-top: 80px; padding-bottom: 80px; }
  .hero .hero__title { font-size: 8vw; }
  .hero__pill { font-size: .65rem; }
  /* hero: clip orizzontale (tiene la stella) ma lascia la mano sbucare in basso */
  .hero { overflow-x: clip; overflow-y: visible; z-index: 0; }
  /* marquee sopra lo stacking context della hero → copre la mano */
  .marquee { position: relative; z-index: 1; }
  .hero__hand { display: none; }
}

/* Tablet: body e bottoni centrati */
@media (min-width: 640px) and (max-width: 900px) {
  .hero__lead { text-align: center; margin-inline: auto; }
}

@media (max-width: 520px) {
  .footer__grid { grid-template-columns: 1fr; }
  .badge { font-size: .75rem; }
  .btn--lg { padding: 18px 36px; font-size: .95rem; }
}

@media (max-width: 620px) {
  .footer-outer { background: var(--ivory); }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .parallax { transform: none !important; }
}

/* =========================================================
   MOBILE TITLE CONSISTENCY — must stay at end of file
   ========================================================= */
@media (max-width: 480px) {
  .section__title,
  .portfolio__title,
  .about__title,
  .final__title {
    font-size: clamp(1.5rem, 7.5vw, 2rem);
    max-width: 100%;
  }
}
