@font-face {
  font-family: "Marce";
  src: url("../fonts/myfont.woff2") format("woff2"), url("../fonts/Myfont-Regular.ttf") format("truetype");
  font-display: block;
}

:root {
  --ink: #0e0e0c;
  --paper: #fffcf2;
  --frog: #8cff5a;
  --frog-2: #4fd83a;
  --belly: #ff6a13;
  --pink: #ff9ed2;
  --lilac: #b9a6ff;
  --water: #1ef2c2;
  --gutter: clamp(16px, 3vw, 40px);
  --ease: cubic-bezier(.2, .9, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

:focus-visible { outline: 3px dashed var(--ink); outline-offset: 4px; }
.hud :focus-visible { outline-color: #fff; }
.dance :focus-visible, .final :focus-visible { outline-color: var(--water); }
main:focus { outline: none; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Marce", "Comic Sans MS", system-ui, sans-serif;
  letter-spacing: .02em;
  line-height: 1;
  overflow-x: hidden;
  -webkit-user-select: none;
  user-select: none;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
body.is-loading { overflow: hidden; height: 100svh; }

img { display: block; max-width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
figure { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }

/* paper grain */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 90;
  opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1s steps(4) infinite;
}
.is-still body::after { animation: none; }
@media (pointer: coarse) { body::after { animation: none; } }
@keyframes grain {
  0% { background-position: 0 0; } 25% { background-position: -40px 30px; }
  50% { background-position: 50px -20px; } 75% { background-position: -20px 60px; }
}

/* ---------- LOADER ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--paper);
  display: grid; place-content: center; justify-items: center; gap: 14px;
  text-align: center;
}
.loader__logo {
  width: auto; height: clamp(56px, 8vw, 96px);
  filter: brightness(0); /* il logo è bianco: in loader lo rendiamo inchiostro */
  margin-bottom: clamp(4px, 1vw, 14px);
}
.loader__sub { margin: 0; font-size: clamp(14px, 1.6vw, 20px); }
.loader__sub { opacity: .55; min-height: 1em; }
.loader__count {
  font-size: clamp(110px, 26vw, 340px);
  line-height: .85;
  color: var(--frog-2);
  -webkit-text-stroke: clamp(2px, .4vw, 5px) var(--ink);
  paint-order: stroke fill;
  font-variant-numeric: tabular-nums;
}
.loader__bar {
  width: min(320px, 70vw); height: 14px;
  border: 3px solid var(--ink); border-radius: 99px; overflow: hidden;
}
.loader__bar i { display: block; height: 100%; width: 100%; background: var(--belly); transform-origin: left; transform: scaleX(0); }

.wipe {
  position: fixed; inset: 0; z-index: 101; pointer-events: none;
  display: grid; place-items: center;
}
.wipe__belly {
  width: 30px; aspect-ratio: 1; border-radius: 50%;
  background: var(--belly);
  transform: scale(0);
}

/* ---------- HUD ---------- */
.hud {
  position: fixed; z-index: 80; inset: 0 0 auto 0;
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: calc(var(--gutter) * .7 + env(safe-area-inset-top)) var(--gutter) 0;
  pointer-events: none;
  mix-blend-mode: difference; color: #fff;
}
.hud > * { pointer-events: auto; }
.hud__logo { text-decoration: none; display: flex; align-items: center; min-height: 44px; line-height: 0; }
.hud__logo img { display: block; height: clamp(44px, 5vw, 68px); width: auto; }
.hud__right { display: flex; gap: 10px; align-items: center; font-size: clamp(13px, 1.2vw, 16px); }
.hud__prot {
  border: 2px solid currentColor; border-radius: 99px; padding: .55em .9em .45em;
  white-space: nowrap;
}
.hud__prot b { font-weight: 400; display: inline-block; min-width: 1.4em; text-align: center; }
.hud__sound {
  width: 30px; height: 30px; display: grid; place-items: center;
  border: 2px solid currentColor; border-radius: 50%;
}
.hud__sound svg { width: 24px; height: 24px; overflow: visible; }
.hud__sound path { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: opacity .25s, transform .35s var(--ease); }
.hud__sound .spk { fill: currentColor; }
.hud__sound .wave { transform-origin: 17px 16px; }
.hud__sound .mute { opacity: 0; transform: scale(.4); transform-origin: 24.5px 16px; }
.hud__sound[aria-pressed="false"] .wave { opacity: 0; transform: scale(.6); }
.hud__sound[aria-pressed="false"] .mute { opacity: 1; transform: none; }

/* ---------- CURSOR (fine pointers only) ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .has-cursor body, .has-cursor a, .has-cursor button { cursor: none; }
  .cursor {
    display: block; position: fixed; left: 0; top: 0; z-index: 99; pointer-events: none;
  }
  .cursor__dot {
    position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px;
    border-radius: 50%; background: var(--frog); border: 2.5px solid var(--ink);
    box-shadow: inset -4px -4px 0 rgba(0,0,0,.12);
  }
  .cursor__dot::after {
    content: ""; position: absolute; inset: 30%; border-radius: 50%; background: var(--belly);
  }
  .cursor__label {
    position: absolute; left: 16px; top: 10px; font-size: 13px; opacity: 0; transform: scale(.6);
    background: var(--ink); color: var(--frog); padding: .4em .6em .3em; border-radius: 99px;
    transition: opacity .25s, transform .35s var(--ease);
  }
  .cursor.is-link .cursor__label { opacity: 1; transform: none; }
}

/* ---------- PROT puff ---------- */
.puff {
  position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none;
  width: 90px; height: 70px; margin: -35px 0 0 -45px;
}
.puff svg { width: 100%; height: 100%; overflow: visible; }
.puff svg path { fill: #fff; stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.puff b {
  position: absolute; left: 60%; top: -20%; font-weight: 400; font-size: 20px; white-space: nowrap;
  color: var(--ink); text-shadow: 0 0 6px #fff, 0 0 2px #fff;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: calc(90px + env(safe-area-inset-top)) var(--gutter) 40px;
  overflow: hidden;
}
.hero__stage {
  --big: min(20vw, 310px);
  --frogW: clamp(160px, 25vw, 390px);
  position: relative; width: 100%; display: grid; place-items: center;
}
.hero__title {
  margin: 0; font-weight: 400; text-align: center;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline;
  column-gap: .28em;
  line-height: .82;
  position: relative; z-index: 1;
  font-size: clamp(54px, 13vw, 200px);
}
.hero__line { display: block; white-space: nowrap; }
.hero__line--1, .hero__line--2 { margin-bottom: max(10px, calc(var(--frogW) * .88 - var(--big) * .42)); }
.hero__line--2 { color: var(--belly); -webkit-text-stroke: clamp(2px, .35vw, 5px) var(--ink); paint-order: stroke fill; }
.hero__line--3 {
  flex-basis: 100%;
  font-size: var(--big);
  color: var(--frog);
  -webkit-text-stroke: clamp(2.5px, .45vw, 6px) var(--ink);
  paint-order: stroke fill;
}
.hero__line .char { display: inline-block; will-change: transform; }

.hero__frog {
  position: absolute; z-index: 2;
  width: var(--frogW);
  right: 50%; margin-right: calc(var(--big) * -2.24);
  bottom: calc(var(--big) * .58);
}
.hero__frog { filter: drop-shadow(0 14px 14px rgba(0,0,0,.12)); }
.hero__frog img { transform-origin: 50% 92%; }
.frog-btn { display: block; width: 100%; border-radius: 40%; touch-action: manipulation; }
.frog-btn:focus-visible { outline-offset: -4px; }
.zzz { position: absolute; right: 2%; top: 0; display: flex; gap: 2px; font-size: clamp(18px, 2.2vw, 32px); }
.zzz i { font-style: normal; display: inline-block; opacity: 0; }

.badge {
  position: absolute; z-index: 3;
  width: clamp(84px, 11vw, 160px);
  left: 50%; margin-left: calc(var(--big) * -2.3);
  bottom: calc(var(--big) * .62);
  overflow: visible;
}
.badge__bg { fill: var(--pink); stroke: var(--ink); stroke-width: 3; }
.badge__belly { fill: var(--belly); stroke: var(--ink); stroke-width: 3; }
.badge text { font-family: "Marce", sans-serif; font-size: 21px; letter-spacing: 2.4px; fill: var(--ink); }

.hero__sub {
  margin: clamp(24px, 4vw, 48px) 0 0; text-align: center;
  font-size: clamp(16px, 2vw, 28px); line-height: 1.15;
}
.hero__sub span { background: var(--frog); padding: .12em .35em 0; border-radius: .3em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero__hint {
  position: absolute; bottom: calc(20px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px; font-size: 13px; white-space: nowrap;
}
.hero__hint i { width: 2px; height: 36px; background: var(--ink); transform-origin: top; display: block; }

/* ---------- MARQUEE ---------- */
.marquees {
  position: relative; z-index: 4;
  padding: clamp(40px, 8vw, 110px) 0;
  overflow: hidden;
}
.marquee {
  white-space: nowrap; overflow: hidden;
  border-block: 3px solid var(--ink);
  font-size: clamp(30px, 6vw, 90px);
  padding: .22em 0 .12em;
  width: 130vw; margin-left: -15vw;
}
.marquee--green { background: var(--frog); transform: rotate(-3deg); }
.marquee--orange { background: var(--belly); color: var(--paper); transform: rotate(2.5deg); margin-top: -.3em; -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; }
.marquee__track { display: inline-flex; will-change: transform; }
.marquee__track span { padding-right: .3em; }

/* ---------- STATUS ---------- */
.status { position: relative; padding: clamp(60px, 10vw, 140px) var(--gutter); }
.status__inner {
  max-width: 1300px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 5vw, 90px); align-items: center;
  min-height: calc(100svh - 120px);
}
.status__frog { position: relative; max-width: 440px; justify-self: center; width: 100%; }
.status__frog img { transform-origin: 50% 95%; }
.steam { position: absolute; left: 36%; top: 42%; width: 80px; height: 80px; }
.steam i {
  position: absolute; bottom: 0; width: 10px; height: 34px; border-radius: 10px;
  border-left: 3px solid var(--ink); opacity: 0;
}
.steam i:nth-child(1) { left: 0; } .steam i:nth-child(2) { left: 22px; } .steam i:nth-child(3) { left: 44px; }

.status__title { margin: 0 0 .5em; font-weight: 400; font-size: clamp(42px, 6.4vw, 104px); line-height: .9; }
.status__title .word { display: inline-block; }

.meter { margin-bottom: clamp(24px, 3vw, 40px); }
.meter__num {
  display: flex; align-items: flex-end; gap: .15em;
  font-size: clamp(90px, 13vw, 200px); line-height: .78;
  color: var(--frog); -webkit-text-stroke: clamp(2px, .35vw, 5px) var(--ink); paint-order: stroke fill;
  font-variant-numeric: tabular-nums;
}
.meter__num small { font-size: .17em; line-height: 1; color: var(--ink); -webkit-text-stroke: 0; padding-bottom: .4em; }
.meter__bar { height: 26px; border: 3px solid var(--ink); border-radius: 99px; overflow: hidden; margin-top: 14px; background: #fff; }
.meter__bar i {
  display: block; height: 100%; transform-origin: left; transform: scaleX(0);
  background: repeating-linear-gradient(-45deg, var(--belly) 0 14px, #ff8a3d 14px 28px);
  border-right: 3px solid var(--ink);
}
.meter__note { margin: 12px 0 0; font-size: clamp(13px, 1.2vw, 16px); opacity: 0; }

.tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.task {
  display: grid; grid-template-columns: 34px 1fr auto; gap: 14px; align-items: center;
  padding: 14px 0 10px; border-top: 2px dashed rgba(14,14,12,.3);
  font-size: clamp(15px, 1.6vw, 22px);
}
.task em { font-style: normal; font-size: .72em; padding: .45em .7em .35em; border-radius: 99px; background: var(--frog); border: 2px solid var(--ink); white-space: nowrap; }
.task--wip em { background: var(--lilac); }
.task--no em { background: var(--pink); }
.tick { width: 34px; height: 34px; overflow: visible; }
.tick path { fill: none; stroke: var(--ink); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.task--wip .tick path { stroke: #6b4fff; }
.task--no .tick path { stroke: #e2007a; }

/* ---------- MANIFESTO ---------- */
.manifesto { padding: clamp(60px, 12vw, 180px) var(--gutter); }
.manifesto__text {
  max-width: 1300px; margin: 0 auto;
  font-size: clamp(30px, 5.2vw, 82px); line-height: 1.04; text-align: left;
}
.manifesto__text .word { display: inline-block; }
/* #c2410c ≈ 5:1 su --paper (l'arancione brand #ff6a13 è 2.8:1, sotto soglia) */
.hl { color: #c2410c; }
.hl--prot { display: inline-block; background: var(--frog); color: var(--ink); padding: 0 .2em; border-radius: .2em; border: 3px solid var(--ink); }

/* ---------- DANCE ---------- */
.dance {
  position: relative; min-height: 100svh; overflow: hidden;
  color: var(--paper);
  display: grid; place-items: center;
}
.dance__circle {
  position: absolute; left: 50%; top: 50%;
  width: 150vmax; aspect-ratio: 1; margin: -75vmax 0 0 -75vmax;
  border-radius: 50%; background: #050505;
  transform: scale(0);
}
.dance__inner {
  position: relative; z-index: 1; width: 100%; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 90px var(--gutter) 60px;
}
.dance__title { margin: 0; font-weight: 400; text-align: center; display: flex; flex-direction: column; align-items: center; line-height: .85; position: relative; z-index: 2; }
.dance__title > span:first-child { font-size: clamp(22px, 3.4vw, 48px); color: var(--water); }
.dance__big {
  font-size: min(22vw, 330px); color: transparent;
  -webkit-text-stroke: clamp(1.5px, .3vw, 4px) var(--frog);
}
.dance__title .char { display: inline-block; }
.dance__frog {
  position: relative; z-index: 3;
  width: clamp(240px, 38vw, 560px);
  margin-top: calc(min(22vw, 330px) * -0.55);
}
.dance__frog img { position: relative; z-index: 1; transform-origin: 52% 92%; }
.ripples {
  position: absolute; left: -15%; width: 130%; bottom: -2%; z-index: 0; overflow: visible;
}
.ripples ellipse { fill: none; stroke: var(--water); stroke-width: 3; opacity: 0; }
.stars { position: absolute; inset: 0; pointer-events: none; }
.stars i {
  position: absolute; width: 14px; height: 14px;
  background: var(--paper);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.dance__tip { position: absolute; bottom: calc(24px + env(safe-area-inset-bottom)); margin: 0; font-size: 12px; opacity: .55; text-align: center; padding: 0 var(--gutter); }
.splash {
  position: absolute; z-index: 4; pointer-events: none;
  width: 10px; height: 10px; border-radius: 50%; background: var(--water);
}

/* ---------- FINAL ---------- */
.final {
  position: relative; background: #050505; color: var(--paper);
  min-height: 100svh; overflow: hidden;
  display: flex; flex-direction: column;
}
.final__inner {
  position: relative; z-index: 2; flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: clamp(80px, 12vw, 160px) var(--gutter) 0;
}
.final__eta { margin: 0 0 28px; font-size: clamp(14px, 1.6vw, 20px); color: var(--water); }
.final__eta b { font-weight: 400; color: var(--paper); border-bottom: 2px solid var(--belly); }
.final__title { margin: 0; font-weight: 400; font-size: clamp(40px, 8vw, 130px); line-height: .9; display: flex; flex-direction: column; }
.final__title > span:last-child { color: var(--frog); }
.final__title .char { display: inline-block; }

.cta {
  position: relative; display: inline-grid; place-items: center;
  margin-top: clamp(30px, 4vw, 54px);
  padding: 1.1em 1.8em .95em; border-radius: 99px;
  font-size: clamp(15px, 1.6vw, 22px); text-decoration: none;
  color: var(--ink); background: var(--frog);
  border: 3px solid var(--paper);
  overflow: hidden; isolation: isolate;
  max-width: 100%;
}
.cta__bg {
  position: absolute; inset: 0; z-index: -1; background: var(--belly);
  border-radius: 50%; transform: translateY(130%) scale(1.4);
  transition: transform .55s var(--ease), border-radius .55s var(--ease);
}
.cta:hover .cta__bg, .cta:focus-visible .cta__bg { transform: none; border-radius: 0; }
.cta__label { display: inline-block; }
.cta:focus-visible { outline: 3px dashed var(--water); outline-offset: 6px; }

.final__frog {
  position: relative; z-index: 1;
  width: min(600px, 92vw); margin: clamp(10px, 3vw, 40px) auto -5%;
}
.final__frog img { transform-origin: 50% 100%; }
.foot {
  position: relative; z-index: 5; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 18px var(--gutter) calc(18px + env(safe-area-inset-bottom));
  font-size: 12px; color: rgba(255,252,242,.55); border-top: 1px solid rgba(255,252,242,.15);
  background: #050505;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 820px) {
  .status__inner { grid-template-columns: 1fr; min-height: 0; }
  .status__frog { max-width: 240px; }
  .task { grid-template-columns: 28px 1fr auto; gap: 10px; }
  .tick { width: 28px; height: 28px; }
  .hero__stage { --frogW: 44vw; }
  .hud__right { gap: 6px; font-size: 11px; }
  .hud__prot { padding: .55em .7em .45em; border-width: 1.5px; }
  .hud__sound { border-width: 1.5px; }
  .hud__logo img { height: 40px; }
  .hero__title { font-size: 17vw; flex-direction: column; align-items: center; }
  .hero__line--1 { margin-bottom: 0; }
  .hero__line--3 { flex-basis: auto; }
}

@media (prefers-reduced-motion: reduce) {
  body::after { animation: none; }
  .cta__bg { transition: none; }
}

/* Il copy è scritto in caso naturale nel markup (screen reader, SEO); la resa resta maiuscola */
.hero__title, .hero__sub, .status__title, .manifesto__text, .dance__title, .final__title { text-transform: uppercase; }
