/* ═══════════════════════════════════════════
   Thomas Kingston — personal site
   Light, minimal, Apple-grade motion
   ═══════════════════════════════════════════ */

:root {
  --bg: #f6f5f2;
  --bg-soft: #efede8;
  --ink: #101114;
  --ink-soft: #4b4e56;
  --muted: #8b8e97;
  --accent: #ff4d00;
  --dark: #0c0d10;
  --dark-soft: #16181d;
  --light-on-dark: #f3f2ee;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --nav-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: auto; overflow-x: hidden; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

em { font-family: var(--font-serif); font-style: italic; font-size: 1.06em; }
.accent { color: var(--accent); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── grain overlay ── */
.grain {
  position: fixed; inset: -10%;
  pointer-events: none; z-index: 200;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); }
  20% { transform: translate(-3%,2%); }
  40% { transform: translate(2%,-3%); }
  60% { transform: translate(-2%,-2%); }
  80% { transform: translate(3%,3%); }
}

/* ── custom cursor ── */
.cursor {
  position: fixed; top: 0; left: 0;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none; z-index: 300;
  transform: translate(-50%,-50%);
  transition: width .25s, height .25s, opacity .25s, background .25s;
  mix-blend-mode: multiply;
  opacity: 0;
}
.cursor.is-active { opacity: .9; }
.cursor.is-hover { width: 46px; height: 46px; background: var(--accent); opacity: .28; }
@media (hover: none) { .cursor { display: none; } }
@media (max-width: 960px) { .cursor { display: none; } }

/* ── preloader ── */
.preloader {
  position: fixed; inset: 0; z-index: 400;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
}
.preloader__inner { text-align: center; }
.preloader__word {
  display: block;
  font-size: clamp(1.4rem, 3.4vw, 2.4rem);
  font-weight: 700; letter-spacing: -.03em;
  margin-bottom: 18px;
}
.preloader__bar {
  display: block; width: 180px; height: 2px;
  background: #ddd; margin: 0 auto; overflow: hidden; border-radius: 2px;
}
.preloader__bar-fill {
  display: block; width: 100%; height: 100%;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
}

/* ── nav ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 48px);
  transition: background .4s, backdrop-filter .4s, box-shadow .4s, transform .5s cubic-bezier(.65,0,.35,1);
}
.nav.is-scrolled {
  background: rgba(246,245,242,.72);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(16,17,20,.06);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__logo { font-weight: 800; font-size: 1.3rem; letter-spacing: -.04em; }
.nav__links { display: flex; gap: 28px; }
.nav__link {
  font-size: .88rem; font-weight: 550; color: var(--ink-soft);
  position: relative; transition: color .25s;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -5px;
  width: 100%; height: 1.5px; background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform .35s cubic-bezier(.65,0,.35,1);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta {
  font-size: .88rem; font-weight: 650;
  background: var(--ink); color: #fff;
  padding: 10px 22px; border-radius: 100px;
  transition: background .3s, transform .3s;
}
.nav__cta:hover { background: var(--accent); }
@media (max-width: 860px) { .nav__links { display: none; } }

/* ── buttons ── */
.btn {
  display: inline-block;
  font-weight: 650; font-size: .95rem;
  padding: 15px 32px; border-radius: 100px;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), background .3s, color .3s, box-shadow .3s;
  will-change: transform;
}
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--accent); box-shadow: 0 12px 32px rgba(255,77,0,.28); }
.btn--ghost { border: 1.5px solid rgba(16,17,20,.2); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: var(--light-on-dark); color: var(--ink); }
.btn--light:hover { background: var(--accent); color: #fff; box-shadow: 0 12px 32px rgba(255,77,0,.35); }

/* ── placeholders (media da sostituire) ── */
.ph-media {
  position: relative;
  background:
    repeating-linear-gradient(45deg, rgba(16,17,20,.035) 0 12px, transparent 12px 24px),
    linear-gradient(160deg, #e7e5df, #d8d5cd);
  border: 1.5px dashed rgba(16,17,20,.22);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.ph-media--45 { aspect-ratio: 4/5; }
.ph-media img { width: 100%; height: 100%; object-fit: cover; }
.ph-media--169 { aspect-ratio: 16/9; }
.ph-media--post { aspect-ratio: 4/3.4; border-radius: 10px; }
.ph-tag {
  font-size: .68rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted);
  background: rgba(246,245,242,.85);
  padding: 6px 12px; border-radius: 100px;
  text-align: center; max-width: 85%;
}

/* ── section basics ── */
.section-eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 22px;
}
.section-eyebrow--light { color: var(--accent); }
.section-title {
  font-size: clamp(2.4rem, 5.6vw, 4.6rem);
  font-weight: 750; letter-spacing: -.035em; line-height: 1.04;
  margin-bottom: 28px;
}

/* split words animation base */
.split-words .w {
  display: inline-block; overflow: hidden; vertical-align: top;
}
.split-words .w > span {
  display: inline-block;
  transform: translateY(110%);
}

/* ═══════════ HERO ═══════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  padding: calc(var(--nav-h) + 30px) clamp(20px, 5vw, 72px) 60px;
  overflow: hidden;
}
.hero__bg-gradient {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(52% 44% at 78% 30%, rgba(255,77,0,.10), transparent 70%),
    radial-gradient(40% 40% at 12% 82%, rgba(60,90,255,.06), transparent 70%);
}
.hero__grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(16,17,20,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16,17,20,.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(70% 62% at 50% 40%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 62% at 50% 40%, black 30%, transparent 100%);
}
.hero__content { position: relative; z-index: 2; }
.hero__eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: .82rem; font-weight: 650; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-soft);
  margin-bottom: 28px;
}
.hero__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); flex: none;
  box-shadow: 0 0 0 0 rgba(255,77,0,.5);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,77,0,.45); }
  70% { box-shadow: 0 0 0 12px rgba(255,77,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,77,0,0); }
}
.hero__title {
  font-size: clamp(3.6rem, 10.5vw, 9rem);
  font-weight: 800; letter-spacing: -.045em; line-height: 1.04;
  margin-bottom: 34px;
}
.hero__line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.hero__line-inner { display: inline-block; transform: translateY(110%); padding-bottom: 0.06em; }
.hero__sub {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--ink-soft); max-width: 34em; margin-bottom: 38px;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* figure / cutout */
.hero__figure {
  position: relative; z-index: 1;
  height: min(66vh, 620px);
  width: fit-content;
  margin-inline: auto;
  display: flex; align-items: flex-end; justify-content: center;
}
.hero__figure-blob {
  position: absolute; bottom: 6%; left: 50%;
  width: 118%; aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255,77,0,.13), transparent 72%);
  border-radius: 50%;
}
.hero__cutout {
  position: relative; height: 100%; width: auto; object-fit: contain; object-position: bottom;
  filter: drop-shadow(0 30px 60px rgba(16,17,20,.18));
}
.hero__badge {
  position: absolute;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(16,17,20,.07);
  border-radius: 18px;
  padding: clamp(10px, 1.6vw, 14px) clamp(13px, 2vw, 18px);
  box-shadow: 0 18px 44px rgba(16,17,20,.10);
  min-width: clamp(118px, 15vw, 150px);
  max-width: 200px;
}
.hero__badge-num {
  display: block; font-size: clamp(1.05rem, 1.8vw, 1.4rem); font-weight: 800; letter-spacing: -.03em;
}
.hero__badge-label { font-size: clamp(.66rem, 1vw, .74rem); color: var(--muted); line-height: 1.4; display: block; margin-top: 2px; }
.hero__badge--1 { top: auto; bottom: 11%; right: -3%; }
.hero__badge--2 { bottom: 20%; left: -8%; }
.hero__badge--3 { top: 44%; right: -10%; }

.hero__scroll-hint {
  position: absolute; bottom: 28px; left: clamp(20px, 5vw, 72px);
  display: flex; align-items: center; gap: 12px;
  font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}
.hero__scroll-line {
  width: 56px; height: 1.5px; background: rgba(16,17,20,.15);
  position: relative; overflow: hidden;
}
.hero__scroll-line::after {
  content: ""; position: absolute; inset: 0;
  background: var(--accent);
  animation: scrollhint 1.8s cubic-bezier(.65,0,.35,1) infinite;
}
@keyframes scrollhint {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: calc(var(--nav-h) + 16px); }
  .hero__figure { height: 52vh; order: 2; }
}

@media (max-width: 640px) {
  .hero__figure { height: 42vh; }
  .hero__badge {
    padding: 7px 10px;
    min-width: 0;
    max-width: 116px;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(16,17,20,.14);
  }
  .hero__badge-num { font-size: .82rem; }
  .hero__badge-label { font-size: .56rem; line-height: 1.25; }
  .hero__badge--1 { top: auto; right: auto; bottom: 3%; left: 2%; }
  .hero__badge--2 { top: auto; bottom: 16%; right: 2%; left: auto; }
  .hero__badge--3 { top: 3%; right: 2%; bottom: auto; left: auto; }
}

/* ═══════════ MARQUEE ═══════════ */
.marquee {
  overflow: hidden; white-space: nowrap;
  padding: 26px 0;
  border-top: 1px solid rgba(16,17,20,.08);
  border-bottom: 1px solid rgba(16,17,20,.08);
  background: var(--bg-soft);
}
.marquee__track {
  display: inline-block;
  font-size: clamp(1.2rem, 2.4vw, 1.9rem);
  font-weight: 750; letter-spacing: -.02em;
  color: var(--ink);
  will-change: transform;
}
.marquee__track span:nth-child(even) { color: var(--muted); font-family: var(--font-serif); font-style: italic; font-weight: 400; }

/* ═══════════ MANIFESTO ═══════════ */
.manifesto {
  padding: clamp(100px, 16vh, 180px) clamp(20px, 8vw, 140px);
  max-width: 1200px; margin: 0 auto;
}
.manifesto__text {
  font-size: clamp(1.5rem, 3.2vw, 2.6rem);
  font-weight: 600; letter-spacing: -.025em; line-height: 1.35;
}
.manifesto__text .w > span { transform: none; }
.manifesto__text .w { overflow: visible; }
.manifesto__sign {
  margin-top: 40px;
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  color: var(--accent);
}

/* ═══════════ STORY (horizontal) ═══════════ */
.story { position: relative; background: var(--bg); }
.story__pin {
  height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
  padding: calc(var(--nav-h)) 0 clamp(14px, 4svh, 40px);
}
.story__head {
  padding: 0 clamp(20px, 5vw, 72px);
  margin-bottom: clamp(8px, 4svh, 44px);
}
.story__head .section-title {
  font-size: clamp(1.7rem, 4.2svh, 4.6rem);
  margin-bottom: 0;
}
.story__track {
  display: flex; gap: clamp(20px, 2.5vw, 36px);
  padding: 0 clamp(20px, 5vw, 72px);
  will-change: transform;
  width: max-content;
}
.story__card {
  width: clamp(300px, 30vw, 420px);
  background: #fff;
  border: 1px solid rgba(16,17,20,.07);
  border-radius: var(--radius-lg);
  padding: clamp(14px, 2.4svh, 26px);
  box-shadow: 0 20px 50px rgba(16,17,20,.06);
  flex: none;
}
.story__card--now { background: var(--ink); color: var(--light-on-dark); }
.story__card--now p { color: rgba(243,242,238,.75); }
.story__card--now .ph-media { border-color: rgba(255,255,255,.25); background: repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 12px, transparent 12px 24px), linear-gradient(160deg, #22242a, #16181d); }
.story__card--now .ph-tag { background: rgba(16,17,20,.7); color: rgba(243,242,238,.7); }
.story__year {
  display: inline-block;
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: clamp(6px, 1.6svh, 16px);
}
.story__media {
  margin: 0 auto clamp(6px, 2svh, 20px);
  aspect-ratio: 3 / 4;
  height: clamp(140px, 32svh, 360px);
  width: auto;
  max-width: 100%;
}
.story__card h3 {
  font-size: clamp(.98rem, 2.6svh, 1.45rem);
  font-weight: 750; letter-spacing: -.025em;
  margin-bottom: clamp(4px, 1svh, 10px);
}
.story__card p { font-size: clamp(.78rem, 1.7svh, .95rem); color: var(--ink-soft); line-height: 1.45; }
.story__link { transition: color .25s; }
.story__link:hover { color: var(--accent); }
.story__progress {
  margin: clamp(10px, 3svh, 40px) clamp(20px, 5vw, 72px) 0;
  height: 2px; background: rgba(16,17,20,.08); border-radius: 2px;
}
.story__progress-fill {
  display: block; height: 100%; width: 100%;
  background: var(--accent); border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
}

/* ═══════════ DARK SECTIONS ═══════════ */
.section-dark {
  background: var(--dark); color: var(--light-on-dark);
  border-radius: clamp(28px, 4vw, 56px);
  margin: 0 clamp(10px, 1.6vw, 24px);
  position: relative; overflow: hidden;
}
.section-dark::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(46% 38% at 82% 8%, rgba(255,77,0,.12), transparent 70%),
    radial-gradient(40% 34% at 8% 92%, rgba(90,110,255,.08), transparent 70%);
}

/* ═══════════ CONNESSIONI PRO ═══════════ */
.cp { margin-top: clamp(60px, 10vh, 120px); margin-bottom: clamp(60px, 10vh, 120px); }
.cp__inner {
  position: relative;
  max-width: 1240px; margin: 0 auto;
  padding: clamp(90px, 13vh, 150px) clamp(24px, 5vw, 72px);
}
.cp__title {
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  font-weight: 780; letter-spacing: -.035em; line-height: 1.02;
  margin-bottom: 30px;
}
.cp__lead {
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  color: rgba(243,242,238,.72);
  max-width: 46em; margin-bottom: 60px;
}
.cp__cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-bottom: 70px;
}
.cp__card {
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  transition: background .35s, border-color .35s, transform .35s;
  will-change: transform;
}
.cp__card:hover { background: rgba(255,255,255,.08); border-color: rgba(255,77,0,.4); }
.cp__card-num {
  display: inline-block;
  font-size: .8rem; font-weight: 700; color: var(--accent);
  border: 1px solid rgba(255,77,0,.4); border-radius: 100px;
  padding: 4px 12px; margin-bottom: 20px;
}
.cp__card h3 { font-size: 1.25rem; font-weight: 720; letter-spacing: -.02em; margin-bottom: 12px; }
.cp__card p { font-size: .93rem; color: rgba(243,242,238,.62); }
.cp__mission {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 44px;
}
.cp__mission-text {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  max-width: 30em; line-height: 1.45; letter-spacing: -.01em;
}
@media (max-width: 900px) { .cp__cards { grid-template-columns: 1fr; } }

/* ═══════════ AI ═══════════ */
.ai__inner {
  max-width: 1240px; margin: 0 auto;
  padding: clamp(90px, 14vh, 170px) clamp(20px, 5vw, 72px);
}
.ai__lead {
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  color: var(--ink-soft); max-width: 42em; margin-bottom: 56px;
}
.ai__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.ai__item {
  background: #fff;
  border: 1px solid rgba(16,17,20,.07);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: 0 14px 38px rgba(16,17,20,.05);
  transition: transform .35s, box-shadow .35s;
  will-change: transform;
}
.ai__item:hover { box-shadow: 0 26px 60px rgba(16,17,20,.1); }
.ai__item--wide { grid-column: 1 / -1; background: var(--bg-soft); }
.ai__icon { font-size: 1.6rem; margin-bottom: 18px; }
.ai__item h3 { font-size: 1.25rem; font-weight: 720; letter-spacing: -.02em; margin-bottom: 10px; }
.ai__item p { font-size: .95rem; color: var(--ink-soft); }
@media (max-width: 900px) { .ai__grid { grid-template-columns: 1fr; } }

/* ═══════════ LINKEDIN ═══════════ */
.li { background: var(--bg-soft); }
.li__pin {
  min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 20px) clamp(20px, 5vw, 72px) 60px;
}
.li__layout {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(30px, 5vw, 80px);
  align-items: center;
  max-width: 1240px; margin: 0 auto; width: 100%;
}
.li__big {
  font-variant-numeric: tabular-nums;
  background: linear-gradient(90deg, #ff4d00, #ff9a3d, #ff4d00);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--accent);
  animation: gradShift 3.5s linear infinite;
}
@keyframes gradShift {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}
.li__lead {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--ink-soft); max-width: 36em;
  margin-bottom: 44px;
}
.li__stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 48px);
  justify-content: start;
  max-width: 46em;
}
.li__stat-num {
  display: block;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 800; letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
}
.li__stat-label { font-size: .82rem; color: var(--muted); }
.li__note { margin-top: 34px; font-size: .75rem; color: var(--muted); }

/* phone */
.li__phone-wrap {
  perspective: 1400px;
  display: flex; justify-content: center;
  position: relative;
}
.li__reactions { position: absolute; inset: -8% -20%; pointer-events: none; z-index: 5; }
.li__reaction {
  position: absolute; bottom: 12%;
  font-size: 1.7rem; opacity: 0;
  will-change: transform, opacity;
  filter: drop-shadow(0 6px 14px rgba(16,17,20,.18));
}
.li__phone {
  width: min(320px, 78vw);
  aspect-ratio: 9/19;
  background: #0e0f12;
  border-radius: 46px;
  padding: 12px;
  box-shadow:
    0 60px 120px rgba(16,17,20,.28),
    inset 0 0 0 2px rgba(255,255,255,.08);
  transform-style: preserve-3d;
  will-change: transform;
  position: relative;
}
.li__phone-notch {
  position: absolute; top: 22px; left: 50%;
  transform: translateX(-50%);
  width: 34%; height: 26px;
  background: #0e0f12; border-radius: 100px;
  z-index: 3;
}
.li__phone-screen {
  width: 100%; height: 100%;
  background: #f2f0ec;
  border-radius: 36px;
  overflow: hidden;
  position: relative;
}
.li__screen-track {
  display: flex; height: 100%;
  will-change: transform;
}
.li__post {
  flex: none; width: 100%; height: 100%;
  overflow: hidden;
}
.li__post img {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
}

@media (max-width: 960px) {
  .li__layout { grid-template-columns: 1fr; }
  .li__pin { padding-bottom: 90px; }
  .li__stats { grid-template-columns: 1fr 1fr; }
}

/* ═══════════ VIDEO ═══════════ */
.video__inner {
  max-width: 1240px; margin: 0 auto;
  padding: clamp(90px, 14vh, 170px) clamp(20px, 5vw, 72px);
}
.video__lead {
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  color: var(--ink-soft); max-width: 42em; margin-bottom: 56px;
}
.video__collage {
  overflow: hidden;
  margin: 0 calc(clamp(20px, 5vw, 72px) * -1) 48px;
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.6vw, 18px);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.video__collage-row { overflow: hidden; }
.video__collage-row-track {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 16px);
  width: max-content;
  padding: 0 clamp(20px, 5vw, 72px);
  will-change: transform;
}
.video__collage-item {
  flex: none;
  height: clamp(120px, 15vw, 220px);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(16,17,20,.14);
}
.video__collage-item img { height: 100%; width: auto; display: block; }
@media (max-width: 700px) {
  .video__collage-item { height: clamp(92px, 26vw, 150px); }
}
.video__site { display: flex; justify-content: center; margin-bottom: 56px; }
.video__site-frame {
  width: 100%; max-width: clamp(720px, 92%, 1180px);
  background: #1c1d21;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(16,17,20,.22);
  transition: transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s;
}
.video__site-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 14px;
  background: #26272c;
}
.video__site-bar span {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.18);
}
.video__site-bar span:nth-child(1) { background: #ff5f57; }
.video__site-bar span:nth-child(2) { background: #febc2e; }
.video__site-bar span:nth-child(3) { background: #28c840; }
.video__site-frame img { width: 100%; display: block; }
.video__site-frame:hover { box-shadow: 0 40px 90px rgba(16,17,20,.3); }

/* ═══════════ CONTACT ═══════════ */
.contact { margin-bottom: clamp(10px, 1.6vw, 24px); }
.contact__inner {
  position: relative;
  max-width: 1100px; margin: 0 auto;
  padding: clamp(100px, 15vh, 180px) clamp(24px, 5vw, 72px) 50px;
  text-align: center;
}
.contact__title {
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 800; letter-spacing: -.04em; line-height: 1;
  margin-bottom: 24px;
}
.contact__lead { color: rgba(243,242,238,.65); margin-bottom: 48px; font-size: 1.1rem; }
.contact__mail {
  display: inline-block;
  font-size: clamp(1.2rem, 3vw, 2.2rem);
  font-weight: 700; letter-spacing: -.02em;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 6px;
  margin-bottom: 60px;
  transition: color .3s;
}
.contact__mail:hover { color: var(--accent); }
.contact__socials {
  display: flex; justify-content: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: 90px;
}
.contact__social {
  font-size: .88rem; font-weight: 650;
  border: 1px solid rgba(255,255,255,.18);
  padding: 10px 22px; border-radius: 100px;
  transition: background .3s, border-color .3s;
}
.contact__social:hover { background: rgba(255,77,0,.15); border-color: var(--accent); }
.footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: .8rem; color: rgba(243,242,238,.4);
  border-top: 1px solid rgba(255,255,255,.09);
  padding-top: 26px;
}
.footer__link { color: rgba(243,242,238,.4); transition: color .25s; }
.footer__link:hover { color: var(--accent); }

/* ═══════════ WOW LAYER ═══════════ */

/* scroll progress bar */
.scrollprog {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px; z-index: 250;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
}

/* hero title chars */
.hero__line-inner .ch { display: inline-block; will-change: transform; }

/* dark sections — mouse spotlight */
.section-dark::after {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 40%), rgba(255,77,0,.10), transparent 70%);
  opacity: 0; transition: opacity .5s;
}
.section-dark:hover::after { opacity: 1; }

/* placeholder shimmer */
.ph-media::after {
  content: "";
  position: absolute; inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.4) 50%, transparent 60%);
  animation: shimmer 3.4s ease-in-out infinite;
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  55%, 100% { transform: translateX(100%); }
}

/* contact email chars */
.contact__mail .ch { display: inline-block; will-change: transform; }

/* spinning back-to-top badge */
.spin-badge {
  position: fixed; right: 26px; bottom: 26px;
  width: 92px; height: 92px; z-index: 120;
  opacity: 0; pointer-events: none;
  transition: opacity .45s;
}
.spin-badge.is-visible { opacity: 1; pointer-events: auto; }
.spin-badge svg {
  width: 100%; height: 100%;
  animation: spinbadge 16s linear infinite;
}
.spin-badge text {
  font-size: 8.6px; font-weight: 700; letter-spacing: .18em;
  fill: var(--ink);
}
.spin-badge__arrow {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff;
  border-radius: 50%;
  font-size: 1.1rem; font-weight: 700;
  box-shadow: 0 10px 26px rgba(255,77,0,.35);
  transition: transform .3s;
}
.spin-badge:hover .spin-badge__arrow { transform: translate(-50%, -56%); }
@keyframes spinbadge {
  to { transform: rotate(360deg); }
}
@media (max-width: 700px) {
  .spin-badge { width: 72px; height: 72px; right: 16px; bottom: 16px; }
}

/* nota: il sizing della story ora è fluido via clamp()/svh sopra (niente più breakpoint fisso) */

/* ═══════════ reduced motion ═══════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
