/* ==========================================================================
   SwipeLab — Design System
   Editorial Dark / Kinetic
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Ink */
  --bg:        #08080a;
  --bg-1:      #0d0d10;
  --bg-2:      #131317;
  --bg-3:      #1a1a1f;

  /* Lines */
  --line:      rgba(255, 255, 255, .09);
  --line-2:    rgba(255, 255, 255, .16);
  --line-3:    rgba(255, 255, 255, .28);

  /* Paper */
  --fg:        #ededE8;
  --fg-2:      #97978f;
  --fg-3:      #63635d;

  /* Accent */
  --acid:      #d9ff3c;
  --acid-2:    #b3e000;
  --acid-soft: rgba(217, 255, 60, .12);

  /* Type */
  --sans:  "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --mono:  "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Metrics */
  --gutter:    clamp(20px, 4vw, 56px);
  --maxw:      1440px;
  --nav-h:     76px;
  --radius:    2px;
  --radius-lg: 20px;

  /* Motion */
  --ease:      cubic-bezier(.22, 1, .36, 1);
  --ease-io:   cubic-bezier(.65, .05, .36, 1);
  --dur:       .6s;

  /* Section rhythm */
  --sec-y:     clamp(80px, 12vw, 180px);
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; background: none; border: none; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
::selection { background: var(--acid); color: #000; }

:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Film grain — kills the flat "template" look */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
.display,
h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: .92;
  text-wrap: balance;
}

.d-1 { font-size: clamp(3.1rem, 11.5vw, 11.5rem); }
.d-2 { font-size: clamp(2.4rem, 7.6vw, 7rem); }
.d-3 { font-size: clamp(1.9rem, 4.6vw, 4rem); line-height: .98; }
.d-4 { font-size: clamp(1.35rem, 2.4vw, 2.1rem); line-height: 1.06; letter-spacing: -.035em; }

.serif {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -.02em;
}

.acid { color: var(--acid); }
.muted { color: var(--fg-2); }

.lead {
  font-size: clamp(1.06rem, 1.55vw, 1.4rem);
  line-height: 1.5;
  color: var(--fg-2);
  letter-spacing: -.015em;
  max-width: 62ch;
  text-wrap: pretty;
}

.body-lg { font-size: clamp(1rem, 1.2vw, 1.12rem); line-height: 1.62; color: var(--fg-2); text-wrap: pretty; }

/* Mono label — the "studio" tell */
.label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-3);
  line-height: 1;
}

.label--acid { color: var(--acid); }

.label-dot {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.label-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acid);
  flex: none;
  animation: pulse 2.4s var(--ease) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1;  transform: scale(1); }
  50%      { opacity: .35; transform: scale(.7); }
}

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--sec-y); position: relative; }
.section--tight { padding-block: clamp(56px, 7vw, 104px); }
.section--flush-top { padding-top: 0; }

.rule { height: 1px; background: var(--line); border: 0; }

/* Hairline column grid, drawn behind content */
.gridlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.gridlines span { border-left: 1px solid var(--line); }
.gridlines span:last-child { border-right: 1px solid var(--line); }

.stack > * + * { margin-top: var(--gap, 24px); }

.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  margin-bottom: clamp(40px, 5vw, 76px);
  position: relative;
  z-index: 1;
}

@media (min-width: 900px) {
  .sec-head--split {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    align-items: end;
    gap: 48px;
  }
}

.sec-head__top {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 34px;
}

/* --------------------------------------------------------------------------
   5. Cursor
   -------------------------------------------------------------------------- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--acid);
  pointer-events: none;
  z-index: 10000;
  transform: translate3d(-100px, -100px, 0);
  transition: width .3s var(--ease), height .3s var(--ease), background .3s var(--ease), opacity .3s var(--ease);
  mix-blend-mode: difference;
}
.cursor--big {
  width: 56px; height: 56px;
  background: #fff;
}
.cursor--hidden { opacity: 0; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* --------------------------------------------------------------------------
   6. Navigation
   -------------------------------------------------------------------------- */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10001;
  background: var(--acid);
  color: #000;
  padding: 12px 20px;
  font-family: var(--mono);
  font-size: 12px;
}
.skip:focus { left: 12px; top: 12px; }

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 500;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background .45s var(--ease), border-color .45s var(--ease), backdrop-filter .45s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(8, 8, 10, .72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -.05em;
  line-height: 1;
}
.brand__mark { width: 22px; height: 22px; flex: none; }
.brand__mark circle { transform-origin: center; }
.brand:hover .brand__mark { animation: spin 1.2s var(--ease); }
@keyframes spin { to { transform: rotate(360deg); } }
.brand em { font-style: normal; color: var(--acid); }

.nav__links {
  display: none;
  align-items: center;
  gap: 4px;
}
@media (min-width: 940px) { .nav__links { display: flex; } }

.nav__link {
  position: relative;
  padding: 9px 15px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--fg-2);
  transition: color .3s var(--ease);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--fg); }
.nav__link::after {
  content: "";
  position: absolute;
  left: 15px; right: 15px; bottom: 3px;
  height: 1px;
  background: var(--acid);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }

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

/* Mobile menu */
.burger {
  --bar: var(--fg);
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  gap: 5px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  position: relative;
  z-index: 10;
}
@media (min-width: 940px) { .burger { display: none; } }
.burger i {
  display: block;
  width: 16px; height: 1.5px;
  background: var(--bar);
  transition: transform .4s var(--ease), opacity .3s var(--ease);
}
.burger i:first-child { transform: translateY(-3px); }
.burger i:last-child  { transform: translateY(3px); }
body.menu-open .burger i:first-child { transform: translateY(0.75px) rotate(45deg); }
body.menu-open .burger i:last-child  { transform: translateY(-0.75px) rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: var(--bg);
  padding: calc(var(--nav-h) + 28px) var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .7s var(--ease);
  overflow-y: auto;
  visibility: hidden;
}
body.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; }

.menu__list a {
  display: block;
  font-size: clamp(2.2rem, 11vw, 4rem);
  font-weight: 700;
  letter-spacing: -.05em;
  line-height: 1.08;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), color .3s var(--ease);
}
.menu__list a:hover { color: var(--acid); }
body.menu-open .menu__list a { opacity: 1; transform: none; transition-delay: calc(.16s + var(--i) * .05s); }

.menu__foot { display: grid; gap: 8px; }
.menu__foot a { font-size: 15px; color: var(--fg-2); }
.menu__foot a:hover { color: var(--acid); }

/* --------------------------------------------------------------------------
   7. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--acid);
  --btn-fg: #08080a;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -.01em;
  overflow: hidden;
  isolation: isolate;
  white-space: nowrap;
  transition: color .4s var(--ease), border-color .4s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--fg);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform .5s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn svg { flex: none; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translate(3px, -3px); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--fg);
  border: 1px solid var(--line-2);
}
.btn--ghost:hover { color: #08080a; border-color: var(--acid); }
.btn--ghost::before { background: var(--acid); }

.btn--lg { padding: 18px 32px; font-size: 15.5px; }
.btn--sm { padding: 11px 19px; font-size: 13.5px; }
.btn--block { width: 100%; }

/* Text link with wipe underline */
.tlink {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  padding-bottom: 3px;
}
.tlink::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform-origin: right;
  transform: scaleX(1);
  transition: transform .45s var(--ease);
}
.tlink:hover::after { transform-origin: left; animation: wipe .6s var(--ease); }
@keyframes wipe {
  0%   { transform: scaleX(1); transform-origin: right; }
  49%  { transform: scaleX(0); transform-origin: right; }
  50%  { transform: scaleX(0); transform-origin: left; }
  100% { transform: scaleX(1); transform-origin: left; }
}

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  padding-top: calc(var(--nav-h) + clamp(40px, 8vw, 90px));
  padding-bottom: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  width: min(90vw, 900px);
  aspect-ratio: 1;
  right: -14%;
  top: -22%;
  background: radial-gradient(circle at 50% 50%, rgba(217, 255, 60, .16), rgba(217, 255, 60, 0) 62%);
  filter: blur(20px);
  animation: drift 18s var(--ease-io) infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-6%, 6%, 0) scale(1.12); }
}

.hero__inner { position: relative; z-index: 2; }

.hero__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  margin-bottom: clamp(26px, 4vw, 44px);
}

.hero h1 { margin-bottom: clamp(28px, 3.5vw, 44px); }

/* Kinetic line reveal — nascosto solo se il JS è attivo */
.line { display: block; overflow: hidden; }
.line > span {
  display: block;
  transition: transform 1.05s var(--ease);
  transition-delay: calc(var(--i, 0) * .085s + .12s);
  will-change: transform;
}
.js .line > span { transform: translateY(105%); }
.js.is-ready .line > span { transform: translateY(0); }

.hero__grid {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  align-items: end;
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(280px, 400px); }
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero__foot {
  position: relative;
  z-index: 2;
  margin-top: clamp(48px, 7vw, 90px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px 28px;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 34px;
}
.hero__stat { display: flex; align-items: baseline; gap: 8px; }
.hero__stat b { font-size: 17px; font-weight: 600; letter-spacing: -.03em; }

.scrollcue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.scrollcue svg { animation: bob 2.2s var(--ease-io) infinite; }
@keyframes bob {
  0%, 100% { transform: translateY(0); opacity: .5; }
  50%      { transform: translateY(5px); opacity: 1; }
}

/* --------------------------------------------------------------------------
   9. Marquee
   -------------------------------------------------------------------------- */
.marquee {
  --speed: 42s;
  position: relative;
  display: flex;
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: clamp(16px, 2vw, 24px);
  user-select: none;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee__track {
  display: flex;
  flex: none;
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  padding-right: clamp(28px, 4vw, 56px);
  animation: slide var(--speed) linear infinite;
  min-width: 100%;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-100%); } }

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  font-size: clamp(1.35rem, 3.4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -.045em;
  white-space: nowrap;
  color: var(--fg);
}
.marquee__item span:last-child { color: var(--acid); font-size: .5em; }

.marquee--logos { --speed: 46s; border-block: 0; }
.marquee--logos .marquee__track { gap: clamp(44px, 6vw, 88px); padding-right: clamp(44px, 6vw, 88px); }
.marquee--logos img {
  height: clamp(22px, 2.4vw, 30px);
  width: auto;
  filter: brightness(0) invert(1);
  opacity: .42;
  transition: opacity .4s var(--ease);
}
.marquee--logos a:hover img { opacity: 1; }

/* --------------------------------------------------------------------------
   10. Manifesto
   -------------------------------------------------------------------------- */
.manifesto__claim {
  font-size: clamp(1.6rem, 4.2vw, 3.4rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.04em;
  text-wrap: balance;
  max-width: 22ch;
}
.manifesto__claim .w {
  display: inline-block;
  opacity: .2;
  transition: opacity .55s var(--ease);
}
.manifesto__claim.is-lit .w { opacity: 1; transition-delay: calc(var(--i) * .022s); }

.manifesto__grid { display: grid; gap: clamp(36px, 5vw, 64px); }
@media (min-width: 940px) {
  .manifesto__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }
}
.manifesto__notes { display: grid; gap: 26px; padding-top: 10px; }
.manifesto__note { display: grid; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.manifesto__note h3 { font-size: 1.02rem; font-weight: 600; letter-spacing: -.02em; }
.manifesto__note p { font-size: .95rem; line-height: 1.6; color: var(--fg-2); }

/* --------------------------------------------------------------------------
   11. Services — sticky index with hover reveal
   -------------------------------------------------------------------------- */
.svc { position: relative; }
.svc__layout { display: grid; gap: 40px; }
@media (min-width: 1024px) {
  .svc__layout { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(40px, 5vw, 80px); align-items: start; }
}

.svc__list { border-top: 1px solid var(--line); }

.svc__row {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px 22px;
  padding: clamp(20px, 2.6vw, 30px) 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left .5s var(--ease);
}
@media (min-width: 1024px) { .svc__row:hover { padding-left: 22px; } }

.svc__row::before {
  content: "";
  position: absolute;
  inset: 0 -22px;
  background: linear-gradient(90deg, var(--acid-soft), transparent 65%);
  opacity: 0;
  transition: opacity .45s var(--ease);
  pointer-events: none;
}
.svc__row:hover::before { opacity: 1; }

.svc__num { font-family: var(--mono); font-size: 11px; color: var(--fg-3); letter-spacing: .1em; transition: color .4s var(--ease); }
.svc__row:hover .svc__num { color: var(--acid); }

.svc__name {
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1.02;
  transition: color .4s var(--ease);
}
.svc__desc { font-size: .93rem; color: var(--fg-2); margin-top: 6px; max-width: 46ch; line-height: 1.5; }

.svc__go {
  width: 42px; height: 42px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex: none;
  transition: background .4s var(--ease), border-color .4s var(--ease), color .4s var(--ease), transform .4s var(--ease);
}
.svc__row:hover .svc__go { background: var(--acid); border-color: var(--acid); color: #08080a; transform: rotate(45deg); }

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

/* Hover preview panel */
.svc__preview {
  display: none;
  position: sticky;
  top: calc(var(--nav-h) + 40px);
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--bg-2), var(--bg));
  overflow: hidden;
}
@media (min-width: 1024px) { .svc__preview { display: block; } }

.svc__figure {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 34px;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .5s var(--ease), transform .7s var(--ease);
}
.svc__figure.is-active { opacity: 1; transform: none; }
.svc__figure svg { width: 100%; height: auto; }

.svc__caption {
  position: absolute;
  left: 26px; right: 26px; bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  z-index: 3;
}

/* --------------------------------------------------------------------------
   12. Method
   -------------------------------------------------------------------------- */
.steps { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 700px)  { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step {
  background: var(--bg);
  padding: clamp(26px, 3vw, 38px);
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 260px;
  position: relative;
  transition: background .5s var(--ease);
}
.step:hover { background: var(--bg-2); }
.step__n {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--acid);
}
.step h3 { font-size: 1.28rem; font-weight: 600; letter-spacing: -.035em; }
.step p { font-size: .93rem; color: var(--fg-2); line-height: 1.6; }
.step__bar { position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--acid); transition: width .6s var(--ease); }
.step:hover .step__bar { width: 100%; }

/* --------------------------------------------------------------------------
   13. Stats
   -------------------------------------------------------------------------- */
.stats { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
@media (min-width: 600px)  { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .stats { grid-template-columns: repeat(4, 1fr); } }

.stat { background: var(--bg); padding: clamp(26px, 3vw, 40px) clamp(20px, 2vw, 28px); display: grid; gap: 10px; align-content: start; }
.stat__val { font-size: clamp(2.6rem, 5.4vw, 4.4rem); font-weight: 700; letter-spacing: -.055em; line-height: .9; }
.stat__val sup { font-size: .34em; vertical-align: super; letter-spacing: -.02em; color: var(--acid); }
.stat p { font-size: .89rem; color: var(--fg-2); line-height: 1.5; }

/* --------------------------------------------------------------------------
   14. Reviews
   -------------------------------------------------------------------------- */
.tp-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  transition: border-color .4s var(--ease), background .4s var(--ease);
}
.tp-badge:hover { border-color: var(--acid); background: var(--acid-soft); }
.tp-badge b { font-size: 17px; font-weight: 700; letter-spacing: -.03em; }
.tp-badge span { font-size: 13px; color: var(--fg-2); }

.stars { display: inline-flex; gap: 3px; }
.stars i { width: 17px; height: 17px; background: #00b67a; display: grid; place-items: center; border-radius: 1px; }
.stars svg { width: 12px; height: 12px; fill: #fff; }

/* Slider recensioni: tre alla volta, scorrevole con le frecce */
.rev { position: relative; }
.rev__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 86%;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.rev__track::-webkit-scrollbar { display: none; }
.rev__track > * { scroll-snap-align: start; }
.rev__track:focus-visible { outline: 2px solid var(--acid); outline-offset: 3px; }
@media (min-width: 700px)  { .rev__track { grid-auto-columns: calc((100% - 1px) / 2); } }
@media (min-width: 1080px) { .rev__track { grid-auto-columns: calc((100% - 2px) / 3); } }

.rev__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
}
.rev__nav { display: flex; gap: 8px; }
.rev__btn {
  width: 48px; height: 48px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--fg);
  transition: background .35s var(--ease), color .35s var(--ease),
              border-color .35s var(--ease), opacity .35s var(--ease);
}
.rev__btn:hover:not(:disabled) { background: var(--acid); border-color: var(--acid); color: #08080a; }
.rev__btn:disabled { opacity: .3; cursor: not-allowed; }

@media (prefers-reduced-motion: reduce) { .rev__track { scroll-behavior: auto; } }

.review {
  background: var(--bg);
  padding: clamp(24px, 2.6vw, 34px);
  display: grid;
  gap: 16px;
  align-content: start;
  transition: background .5s var(--ease);
}
.review:hover { background: var(--bg-2); }
.review__head { display: flex; align-items: center; gap: 12px; }
.review h3 { font-size: 1.06rem; font-weight: 600; letter-spacing: -.03em; }
.review p { font-size: .93rem; line-height: 1.62; color: var(--fg-2); }
.review__by { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); margin-top: 2px; }
.review__av {
  width: 34px; height: 34px;
  border-radius: 999px;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--fg-2);
  flex: none;
}
.review__meta { display: grid; gap: 1px; }
.review__meta b { font-size: .9rem; font-weight: 600; }
.review__meta span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; color: var(--fg-3); text-transform: uppercase; }

/* --------------------------------------------------------------------------
   15. Cards / generic tiles
   -------------------------------------------------------------------------- */
.tiles { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 640px)  { .tiles--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 640px)  { .tiles--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tiles--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px)  { .tiles--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .tiles--4 { grid-template-columns: repeat(4, 1fr); } }

.tile {
  background: var(--bg);
  padding: clamp(24px, 2.8vw, 36px);
  display: grid;
  gap: 12px;
  align-content: start;
  position: relative;
  transition: background .5s var(--ease);
}
.tile:hover { background: var(--bg-2); }
.tile__ico { width: 34px; height: 34px; color: var(--acid); margin-bottom: 6px; }
.tile h3 { font-size: 1.12rem; font-weight: 600; letter-spacing: -.03em; }
.tile p { font-size: .92rem; color: var(--fg-2); line-height: 1.6; }
.tile__n { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--fg-3); }

/* Check list */
.checks { display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 13px; align-items: start; font-size: .96rem; color: var(--fg-2); line-height: 1.55; }
.checks svg { width: 20px; height: 20px; color: var(--acid); margin-top: 2px; }
.checks b { color: var(--fg); font-weight: 600; }

/* --------------------------------------------------------------------------
   16. CTA band
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(120% 140% at 50% 120%, rgba(217, 255, 60, .13), transparent 58%),
    var(--bg);
}
.cta__inner { position: relative; z-index: 2; display: grid; gap: clamp(28px, 4vw, 46px); }
.cta h2 { max-width: 16ch; }
.cta__row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.cta__meta { display: flex; flex-wrap: wrap; gap: 12px 40px; padding-top: 26px; border-top: 1px solid var(--line); }
.cta__meta a:hover { color: var(--acid); }

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); padding-block: clamp(48px, 6vw, 84px) 28px; }
.footer__top { display: grid; gap: clamp(36px, 4vw, 56px); }
@media (min-width: 900px) { .footer__top { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); } }

.footer__brand { display: grid; gap: 20px; align-content: start; max-width: 34ch; }
.footer__col h3 { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 18px; }
.footer__col li + li { margin-top: 11px; }
.footer__col a, .footer__col p { font-size: .95rem; color: var(--fg-2); transition: color .3s var(--ease); }
.footer__col a:hover { color: var(--acid); }

.socials { display: flex; gap: 8px; }
.socials a {
  width: 40px; height: 40px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  display: grid; place-items: center;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.socials a:hover { background: var(--acid); color: #08080a; border-color: var(--acid); }
.socials svg { width: 17px; height: 17px; }

.footer__wordmark {
  margin-top: clamp(48px, 6vw, 86px);
  width: 100%;
  height: auto;
  color: var(--bg-3);
  transition: color .8s var(--ease);
}
.footer__wordmark:hover { color: var(--acid); }

.footer__legal {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 28px;
}
.footer__legal p, .footer__legal a { font-size: 12.5px; color: var(--fg-3); }
.footer__legal a:hover { color: var(--fg-2); }

/* --------------------------------------------------------------------------
   18. Inner page header
   -------------------------------------------------------------------------- */
.phead {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(56px, 9vw, 130px));
  padding-bottom: clamp(40px, 5vw, 74px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.phead__glow {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  width: min(80vw, 720px);
  aspect-ratio: 1;
  left: -12%;
  top: -34%;
  background: radial-gradient(circle, rgba(217, 255, 60, .13), transparent 62%);
}
.phead__inner { position: relative; z-index: 1; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: clamp(24px, 3vw, 38px); }
.crumbs a:hover { color: var(--acid); }
.crumbs span[aria-current] { color: var(--fg); }
.phead h1 { margin-bottom: 24px; }

/* --------------------------------------------------------------------------
   19. Forms
   -------------------------------------------------------------------------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }
.field .req { color: var(--acid); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 15.5px;
  color: var(--fg);
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2397978f' stroke-width='1.6'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px; }
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--fg-3); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--acid); background: var(--bg-2); }
@media (min-width: 640px) { .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; } }

.consent { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; align-items: start; font-size: .84rem; color: var(--fg-2); line-height: 1.55; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--acid); }
.consent a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }

.form__note { font-size: .8rem; color: var(--fg-3); line-height: 1.5; }

/* --------------------------------------------------------------------------
   20. Legal / prose
   -------------------------------------------------------------------------- */
.prose { max-width: 74ch; }
.prose h2 { font-size: clamp(1.35rem, 2.4vw, 1.85rem); letter-spacing: -.035em; margin-top: 52px; margin-bottom: 16px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.08rem; letter-spacing: -.025em; margin-top: 30px; margin-bottom: 10px; }
.prose p, .prose li { font-size: .97rem; line-height: 1.7; color: var(--fg-2); }
.prose p + p { margin-top: 14px; }
.prose ul { margin: 14px 0; display: grid; gap: 9px; }
.prose ul li { padding-left: 22px; position: relative; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 6px; height: 1px; background: var(--acid); }
.prose a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-3); }
.prose a:hover { color: var(--acid); text-decoration-color: var(--acid); }
.prose strong { color: var(--fg); font-weight: 600; }

.toc { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; display: grid; gap: 10px; align-content: start; position: sticky; top: calc(var(--nav-h) + 28px); }
.toc a { font-size: .89rem; color: var(--fg-2); }
.toc a:hover { color: var(--acid); }

.legal-layout { display: grid; gap: clamp(36px, 4vw, 64px); }
@media (min-width: 1000px) { .legal-layout { grid-template-columns: minmax(0, 250px) minmax(0, 1fr); } }

/* --------------------------------------------------------------------------
   21. Reveal + motion prefs
   -------------------------------------------------------------------------- */
[data-reveal] {
  transition: opacity .85s var(--ease), transform .85s var(--ease);
  transition-delay: calc(var(--d, 0) * 1ms);
}
.js [data-reveal] { opacity: 0; transform: translateY(26px); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Rete di sicurezza: se main.js non si carica, dopo 3s mostra tutto */
html.js-failed [data-reveal],
html.js-failed .line > span,
html.js-failed .manifesto__claim .w {
  opacity: 1 !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .line > span { transform: none; }
  .manifesto__claim .w { opacity: 1; }
  .cursor { display: none; }
}

/* --------------------------------------------------------------------------
   22. Utilities
   -------------------------------------------------------------------------- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.mt-xs { margin-top: 12px; }
.mt-s  { margin-top: 22px; }
.mt-m  { margin-top: 34px; }
.mt-l  { margin-top: clamp(40px, 5vw, 72px); }
.grid-2 { display: grid; gap: clamp(30px, 4vw, 60px); }
@media (min-width: 940px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 940px) { .grid-2--sticky > :first-child { position: sticky; top: calc(var(--nav-h) + 40px); align-self: start; } }
.flex-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* --------------------------------------------------------------------------
   23. FAQ
   -------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(20px, 2.4vw, 28px) 0;
  font-size: clamp(1.06rem, 1.7vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.28;
  transition: color .3s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--acid); }
.faq summary i {
  flex: none;
  width: 26px; height: 26px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  position: relative;
  margin-top: 3px;
  transition: background .35s var(--ease), border-color .35s var(--ease), transform .45s var(--ease);
}
.faq summary i::before, .faq summary i::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 10px; height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: opacity .3s var(--ease);
}
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary i { transform: rotate(180deg); background: var(--acid); border-color: var(--acid); color: #08080a; }
.faq details[open] summary i::after { opacity: 0; }
.faq details p { padding-bottom: clamp(20px, 2.4vw, 28px); max-width: 68ch; color: var(--fg-2); font-size: .97rem; line-height: 1.68; }

/* --------------------------------------------------------------------------
   24. Cross links
   -------------------------------------------------------------------------- */
.xlinks { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
@media (min-width: 640px)  { .xlinks { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .xlinks { grid-template-columns: repeat(4, 1fr); } }
.xlink {
  background: var(--bg);
  padding: clamp(22px, 2.4vw, 30px);
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 168px;
  transition: background .45s var(--ease);
}
.xlink:hover { background: var(--bg-2); }
.xlink b { font-size: 1.1rem; font-weight: 600; letter-spacing: -.03em; }
.xlink span { font-size: .87rem; color: var(--fg-2); line-height: 1.5; }
.xlink em { font-style: normal; color: var(--acid); font-family: var(--mono); font-size: 11px; letter-spacing: .14em; }

/* --------------------------------------------------------------------------
   25. Figure panel (static, inside pages)
   -------------------------------------------------------------------------- */
.figbox {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--bg-2), var(--bg));
  padding: clamp(26px, 3vw, 44px);
  position: relative;
  overflow: hidden;
}
.figbox svg { width: 100%; height: auto; }
.figbox__tag { position: absolute; top: 20px; left: 22px; }

/* --------------------------------------------------------------------------
   26. Contact split
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; gap: clamp(34px, 4vw, 64px); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); } }

.cbox { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 2.6vw, 34px); display: grid; gap: 24px; align-content: start; }
.cline { display: grid; gap: 5px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.cline:last-child { border-bottom: 0; padding-bottom: 0; }
.cline b { font-size: 1.02rem; font-weight: 600; letter-spacing: -.02em; }
.cline a:hover { color: var(--acid); }
.cline p { font-size: .93rem; color: var(--fg-2); line-height: 1.55; }


/* --------------------------------------------------------------------------
   27. 404
   -------------------------------------------------------------------------- */
.nf { min-height: 78svh; display: grid; place-content: center; text-align: center; gap: 26px; padding-top: var(--nav-h); }
.nf .flex-row { justify-content: center; }
