/* =========================================================
   Irene Pignatelli — Portfolio  ·  MOBILE FIRST
   Base = telefono (≥320px). Poi: ≥640 tablet, ≥900 desktop, ≥1200 large.
   Tipografia: Archivo (wdth 62) + Instrument Serif + Mr Dafoe
   ========================================================= */

:root {
  --paper: #F3F1EC;
  --paper-2: #EAE6DD;
  --ink: #121212;
  --ink-soft: #4A4744;
  --blue: #2340FF;
  --coral: #FF5B3A;
  --sun: #FFD23F;
  --pink: #FF8FC7;
  --note: #FFF3A8;
  --white: #FFFFFF;

  --f-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --f-script: "Mr Dafoe", "Brush Script MT", cursive;

  --gutter: 16px;
  --radius: 4px;
  --nav-h: 64px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; scroll-padding-top: var(--nav-h); }
/* con GSAP attivo lo scroll morbido lo fa main.js: in CSS falserebbe le misure di ScrollTrigger */
html.motion { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

::selection { background: var(--blue); color: var(--paper); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }

.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;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 12px 16px;
  text-decoration: none; border-radius: var(--radius);
}
.skip:focus { top: 12px; }

.only-mouse { display: none; }
@media (hover: hover) and (pointer: fine) {
  .only-mouse { display: inline; }
  .only-touch { display: none; }
}

/* ---------- Tipografia di base ---------- */
.serif { font-family: var(--f-serif); font-weight: 400; line-height: 1.05; }
.serif-i {
  font-family: var(--f-serif); font-style: italic; font-weight: 400;
  text-transform: none; letter-spacing: -0.01em;
}
.display {
  font-family: var(--f-sans);
  font-stretch: 62%;
  font-weight: 800;
  text-transform: uppercase;
  line-height: .88;
  letter-spacing: -0.01em;
  font-size: clamp(2.6rem, 13vw, 7.5rem);
}
.display .serif-i { font-size: 1.08em; line-height: .8; }

.scribble { font-family: var(--f-serif); font-size: 1.15rem; position: relative; }
.scribble::after {
  content: ""; position: absolute; left: -4px; right: -6px; bottom: -8px; height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12'%3E%3Cpath d='M2 8 C 30 2, 50 12, 80 5 S 110 4, 118 7' fill='none' stroke='%232340FF' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 70;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  padding-top: env(safe-area-inset-top);
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav__logo {
  font-family: var(--f-script);
  font-size: 2.3rem; line-height: 1;
  color: var(--blue); text-decoration: none;
  padding: 6px 4px;
  transform: rotate(-6deg);
  transition: transform .4s var(--ease-back), color .3s;
}
.nav__logo:hover { transform: rotate(0) scale(1.06); }
.nav.is-dark .nav__logo, .menu-open .nav__logo { color: var(--paper); }

/* mobile: scorrendo, il logo sta su un'etichetta bianca (come il bottone Menu),
   così resta leggibile sopra testi, foto e sezioni scure */
@media (max-width: 899px) {
  .nav__logo {
    border-radius: var(--radius);
    transition: transform .4s var(--ease-back), color .3s, background-color .3s, box-shadow .3s, padding .3s;
  }
  .nav.is-scrolled .nav__logo {
    background: var(--white); color: var(--blue);
    padding: 6px 12px 8px;
    font-size: 2rem;
    transform: rotate(-4deg);
    box-shadow: 0 3px 0 rgba(0,0,0,.12);
  }
  .menu-open .nav.is-scrolled .nav__logo { background: transparent; box-shadow: none; color: var(--paper); }
}

.nav__pill, .nav__cta { display: none; }

.nav__menu {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 14px;
  border: 0; border-radius: var(--radius);
  background: var(--white); cursor: pointer;
  font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
}
.nav__burger { position: relative; width: 18px; height: 10px; }
.nav__burger i {
  position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .35s var(--ease-out), top .35s var(--ease-out);
}
.nav__burger i:first-child { top: 0; }
.nav__burger i:last-child { top: 8px; }
.nav__menu[aria-expanded="true"] { background: var(--pink); }
.nav__menu[aria-expanded="true"] .nav__burger i:first-child { top: 4px; transform: rotate(45deg); }
.nav__menu[aria-expanded="true"] .nav__burger i:last-child { top: 4px; transform: rotate(-45deg); }

/* menu a tutto schermo */
.menu {
  position: fixed; inset: 0; z-index: 60;
  background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 24px) var(--gutter) 32px;
  clip-path: circle(0% at calc(100% - 50px) 32px);
  transition: clip-path .7s var(--ease-out);
}
.menu[hidden] { display: none; }
.menu.is-open { clip-path: circle(150% at calc(100% - 50px) 32px); }
.menu ol { display: flex; flex-direction: column; gap: 4px; }
.menu a { text-decoration: none; }
.menu ol a {
  display: flex; align-items: baseline; gap: 12px;
  font-stretch: 62%; font-weight: 800; text-transform: uppercase;
  font-size: clamp(3rem, 15vw, 5rem); line-height: 1;
  padding: 4px 0;
}
.menu ol a span { font-family: var(--f-serif); font-weight: 400; font-size: 1.1rem; color: var(--pink); }
.menu ol a:hover, .menu ol a:focus-visible { color: var(--sun); }
.menu__foot {
  margin-top: auto; display: flex; flex-direction: column; gap: 4px;
  font-family: var(--f-serif); font-size: 1.2rem;
}
.menu__foot a { padding: 6px 0; }
.menu__sticker { --x: 64%; --y: 60%; --r: 10deg; }

/* =========================================================
   HERO
   ========================================================= */
.js .hero { visibility: hidden; }
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 96px) var(--gutter) 120px;
  isolation: isolate;
}
.hero__kicker { font-size: 1.2rem; margin-bottom: 16px; }
.hero__title {
  position: relative;
  font-family: var(--f-sans);
  font-stretch: 62%;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(2.9rem, 17vw, 6rem);
  line-height: .86;
  letter-spacing: -0.012em;
}
.line { display: block; overflow: hidden; padding-bottom: .02em; }
.line__in { display: inline-block; will-change: transform; }
.line--serif {
  font-family: var(--f-serif);
  font-weight: 400; font-stretch: 100%;
  font-size: 1.12em; line-height: .9;
  letter-spacing: -0.02em;
  padding-bottom: .1em;
}
.wave { white-space: nowrap; }
@media (max-width: 639px) {
  .hero__title { font-size: clamp(2.3rem, 13.4vw, 6rem); }   /* "UN’OPPORTUNITÀ" deve stare in una riga */
  .hero__title .line--serif { font-size: 1em; }
}
/* spazio sopra ogni riga: gli accenti sulle maiuscole (È, À) non vengono tagliati dall'overflow */
.hero__title .line { padding-top: .16em; margin-top: -.16em; }
.wave .ch { display: inline-block; will-change: transform; }
.wave .sp { display: inline-block; width: .25em; }

/* cerchio disegnato a mano: posizionato via JS attorno a "al volo." */
.doodle {
  position: absolute; left: 10%; bottom: -4%; width: 80%; height: 26%;
  overflow: visible; pointer-events: none; z-index: 1;
}
.doodle path {
  fill: none; stroke: var(--blue); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 0;
}
.motion .doodle path { stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s cubic-bezier(.65, 0, .35, 1); }
.motion .doodle.is-drawn path { stroke-dashoffset: 0; }

.hero__more {
  margin-top: 28px;
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 44px; padding: 0 6px;
  text-decoration: none;
}
.arrow-box {
  display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 3px;
  background: var(--blue); color: var(--white); font-size: .9rem;
  transition: transform .35s var(--ease-back);
}
.hero__more:hover .arrow-box { transform: translateY(4px); }

/* =========================================================
   STICKERS (base mobile)
   ========================================================= */
.stickers, .play__board { position: absolute; inset: 0; }
.stickers { z-index: 2; pointer-events: none; }
.sticker {
  position: absolute;
  left: var(--x); top: var(--y);
  rotate: var(--r, 0deg);
  translate: calc(var(--dx, 0px) + var(--fx, 0px)) calc(var(--dy, 0px) + var(--py, 0px) + var(--fy, 0px));
  pointer-events: auto;
  cursor: grab;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  touch-action: manipulation;
  font-family: var(--f-sans);
  font-stretch: 75%; font-weight: 800; text-transform: uppercase;
  font-size: .72rem; line-height: 1.05;
  color: var(--ink);
  filter: drop-shadow(0 2px 0 rgba(0,0,0,.12));
  transition: rotate .45s var(--ease-back), scale .45s var(--ease-back), filter .3s;
  animation: pop .7s var(--ease-back) both;
  animation-delay: calc(.9s + var(--d, 0) * .12s);
}
.sticker.is-armed { scale: 1.06; }
.sticker.is-drag { cursor: grabbing; scale: 1.12; transition: rotate .3s, scale .3s; filter: drop-shadow(0 14px 16px rgba(0,0,0,.22)); z-index: 5; }
.sticker em { font-family: var(--f-serif); font-weight: 400; text-transform: none; font-size: 1.35em; font-stretch: 100%; }
@media (hover: hover) {
  .sticker:hover { rotate: calc(var(--r, 0deg) * -1); scale: 1.06; }
}
@keyframes pop { from { scale: 0; opacity: 0; } to { scale: 1; opacity: 1; } }

.sticker--pill { padding: 9px 14px; border-radius: 999px; border: 2px solid var(--ink); white-space: nowrap; }
.sticker--tag { padding: 10px 13px; border-radius: 6px; border: 2px solid var(--ink); text-align: left; }
.sticker--tag b { font-size: 1.6em; display: block; }
.sticker--round {
  width: 84px; aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--ink);
  display: grid; place-items: center; align-content: center; text-align: center;
}
.sticker--burst {
  width: 84px; aspect-ratio: 1;
  display: grid; place-items: center; text-align: center;
  font-size: .9rem;
  clip-path: polygon(50% 0%, 61% 13%, 77% 5%, 80% 22%, 97% 24%, 89% 39%, 100% 50%, 89% 61%, 97% 76%, 80% 78%, 77% 95%, 61% 87%, 50% 100%, 39% 87%, 23% 95%, 20% 78%, 3% 76%, 11% 61%, 0% 50%, 11% 39%, 3% 24%, 20% 22%, 23% 5%, 39% 13%);
  filter: none;
}
/* biglietto da teatro: "Buona visione" */
.sticker--ticket {
  padding: 8px 18px 10px; text-align: center;
  border-radius: 6px;
  -webkit-mask: radial-gradient(circle 8px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 8px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 8px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 8px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
  font-size: .85rem;
}
.sticker--ticket > span {
  display: block; font-size: .5rem; letter-spacing: .12em;
  border-bottom: 1.5px dashed currentColor; padding-bottom: 4px; margin-bottom: 4px;
}
/* batteria: "Curiosità 100%" */
.sticker--battery {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px 8px 10px; border-radius: 999px; border: 2px solid var(--ink);
  white-space: nowrap;
}
.sticker--battery b { color: var(--sun); }
.s-paper.sticker--battery b { color: var(--coral); }
.battery {
  position: relative; width: 26px; height: 13px; border: 2px solid currentColor; border-radius: 3px; padding: 1.5px;
}
.battery::after { content: ""; position: absolute; right: -5px; top: 3px; width: 3px; height: 5px; background: currentColor; border-radius: 0 1px 1px 0; }
.battery i { display: block; height: 100%; background: #4CD97B; border-radius: 1px; transform-origin: left; animation: charge 2.4s var(--ease-out) 1.4s both; }
@keyframes charge { from { transform: scaleX(.08); background: var(--coral); } 60% { background: var(--sun); } to { transform: scaleX(1); } }
/* post-it */
.sticker--note {
  width: 120px; padding: 18px 12px 14px;
  background: var(--note);
  font-family: var(--f-serif); font-weight: 400; font-stretch: 100%; text-transform: none;
  font-size: 1.05rem; line-height: 1.05; text-align: left;
  box-shadow: 0 8px 14px -8px rgba(0,0,0,.35);
  filter: none;
}
.taped::before {
  content: ""; position: absolute; left: 50%; top: -9px; width: 54px; height: 18px;
  translate: -50% 0; rotate: -4deg;
  background: rgba(255,255,255,.55);
  border-left: 1px dashed rgba(0,0,0,.12); border-right: 1px dashed rgba(0,0,0,.12);
}

.s-coral { background: var(--coral); }
.s-blue  { background: var(--blue); color: var(--white); border-color: var(--blue); }
.s-sun   { background: var(--sun); }
.s-pink  { background: var(--pink); }
.s-ink   { background: var(--ink); color: var(--paper); }
.s-paper { background: var(--white); }

/* sticker illustrati (SVG con bordo fustellato) */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sticker--ill { width: 72px; filter: drop-shadow(0 6px 6px rgba(0,0,0,.16)); }
.sticker--ill svg { display: block; width: 100%; height: auto; overflow: visible; animation: wiggle 2.8s ease-in-out infinite; transform-origin: 50% 90%; }
.sticker--ill:nth-of-type(even) svg { animation-duration: 3.4s; animation-direction: reverse; }
.sticker.is-drag.sticker--ill { filter: drop-shadow(0 16px 16px rgba(0,0,0,.25)); }
.sticker--ill svg { text-transform: none; letter-spacing: normal; }
@keyframes wiggle { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg) translateY(-3px); } }

/* --- posizioni hero (mobile): fascia alta e fascia bassa, titolo libero --- */
.h-ciao      { --x: 3%;  --y: 12%; --r: -8deg; }
.h-visione   { --x: 60%; --y: 12%; --r: 8deg; }
.h-curiosita { --x: 5%;  --y: 85%; --r: -5deg; }
.h-genova    { --x: 70%; --y: 80%; --r: -10deg; }
.h-bulb      { --x: 39%; --y: 9%;  --r: -6deg; }
.h-laptop    { --x: 68%; --y: 63%; --r: 6deg; }
.h-ciao.sticker--ill { width: 96px; }
.h-laptop.sticker--ill { width: 84px; }
.h-pencil    { --x: 3%;  --y: 27%; --r: -10deg; }
.h-pencil.sticker--ill { width: 92px; }
.h-figma, .h-cursor, .h-sketch { display: none; }


/* =========================================================
   MARQUEE
   ========================================================= */
.marquee {
  background: var(--blue); color: var(--paper);
  rotate: -2deg; margin: -10px -4vw 0;
  overflow: hidden; padding: 12px 0;
  position: relative; z-index: 3;
}
.marquee__track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee ul { display: flex; align-items: center; gap: 22px; padding-right: 22px; }
.marquee li {
  font-stretch: 62%; font-weight: 800; text-transform: uppercase;
  font-size: 1.5rem; line-height: 1; white-space: nowrap;
}
.marquee li:nth-child(4n+2) { color: var(--sun); }
.marquee li:nth-child(4n) { color: var(--pink); }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   SEZIONI comuni
   ========================================================= */
section { position: relative; }
.sec-head { text-align: center; margin-bottom: 40px; }
.sec-head > .serif { font-size: 1.15rem; margin-bottom: 12px; }
.eyebrow { font-size: 1.3rem; margin-bottom: 10px; }

/* =========================================================
   PROGETTI (dark)
   ========================================================= */
.work {
  background: var(--ink); color: var(--paper);
  margin-top: -24px;
  padding: 110px var(--gutter) 90px;
}
.stack { max-width: 1040px; margin: 0 auto; }
.stack__card {
  position: relative;
  padding: 8px;
  border-radius: var(--radius);
  margin-bottom: 28px;
  transform-origin: 50% 0;
}
.stack__card:last-child { margin-bottom: 0; }
/* con le animazioni attive: le card sono un mazzo, la 1 sopra la 2 */
.motion .stack { display: grid; }
.motion .stack__card { grid-area: 1 / 1; margin: 0; will-change: transform; }
.motion .stack__card:first-child { z-index: 2; }
.frame--coral { background: var(--coral); }
.frame--blue { background: var(--blue); }
a.stack__card { display: block; color: inherit; text-decoration: none; }
.stack__inner {
  position: relative;
  height: min(70svh, 560px);
  background: #1C1C1C;
  border-radius: 2px; overflow: hidden;
  display: grid; grid-template-rows: minmax(0, 1fr) auto;
}
/* anteprima del lavoro */
.stack__media { position: relative; overflow: hidden; container-type: size; }
.stack__media--sand { background: #EFE7DC; }
.stack__media--stock { background: #F3F3F3; }
.stack__media--sanbao { background: #EFE4D0; }
/* copertine composte (San Bao, Sosia): riempiono il riquadro, inquadratura centrata sulle schermate */
.stack__media--sanbao img, .stack__media--stock img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; transition: transform 1s var(--ease-out); }
.stack__media--sanbao img { object-position: 50% 15%; }
.stack__card:hover .stack__media--sanbao img, .stack__card:hover .stack__media--stock img { transform: scale(1.04); }
.stack__media--sand img { width: 100%; height: 100%; object-fit: cover; object-position: 0 0; transition: transform 1s var(--ease-out); }
.stack__card:hover .stack__media--sand img { transform: scale(1.04); }
.stack__media--browser { background: #F6F3EC; display: grid; grid-template-rows: auto minmax(0, 1fr); }
.browser-bar {
  display: flex; align-items: center; gap: 6px; padding: 9px 12px;
  background: #E9E4D9; border-bottom: 1px solid rgba(0,0,0,.08);
}
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(0,0,0,.18); }
.browser-bar span {
  margin-left: 10px; padding: 2px 12px; border-radius: 999px; background: rgba(255,255,255,.7);
  font-size: .68rem; color: var(--ink-soft);
}
.stack__scroll { position: relative; overflow: hidden; container-type: size; }
.stack__scroll img { width: 100%; height: auto; display: block; translate: 0 0; transition: translate 7s cubic-bezier(.45, 0, .55, 1); }
.stack__card:hover .stack__scroll img, .stack__card:focus-visible .stack__scroll img { translate: 0 calc(-100% + 100cqh); }
@media (hover: none) {
  .stack__scroll img { animation: peek 16s cubic-bezier(.45, 0, .55, 1) infinite alternate; }
}
@keyframes peek { 0%, 12% { translate: 0 0; } 88%, 100% { translate: 0 calc(-100% + 100cqh); } }

.stack__info {
  display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 6px 14px;
  padding: 16px 16px 18px;
  background: #1C1C1C;
}
.stack__no { font-family: var(--f-serif); font-size: 1.4rem; line-height: 1; align-self: start; padding-top: 4px; }
.stack__title {
  font-stretch: 62%; font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.2rem, 10vw, 4.6rem); line-height: .88;
}
.stack__title .serif-i { color: var(--pink); }
.stack__tags { grid-column: 2; font-size: .85rem; color: rgba(243,241,236,.7); }
.stack__chip {
  grid-column: 2; justify-self: start;
  margin-top: 6px; display: inline-block; padding: 9px 12px; border-radius: 3px;
  background: var(--pink); color: var(--ink);
  font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  transition: background .25s, transform .35s var(--ease-back);
}
.stack__card:hover .stack__chip { background: var(--sun); transform: translateX(4px); }

/* =========================================================
   CHI SONO
   ========================================================= */
/* mobile: testo e foto convivono nella stessa griglia (la foto accanto al primo paragrafo) */
.about {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54%;
  grid-template-areas:
    "eyebrow eyebrow"
    "title   title"
    "lead    photo"
    "aside   photo"
    "body    body"
    "actions actions";
  column-gap: 18px;
  padding: 120px var(--gutter) 72px;
  max-width: 1360px; margin: 0 auto;
}
.about__text { display: contents; }
.about__text > .eyebrow { grid-area: eyebrow; }
.about__text > .about__title { grid-area: title; }
.about__text > .lead:not(.lead--aside) { grid-area: lead; }
.about__text > .lead--aside { grid-area: aside; align-self: start; }
.about__text > .body { grid-area: body; }
.about__text > .about__actions { grid-area: actions; }

/* foto-sticker trascinabile, con gli altri sticker raggruppati attorno */
.about__home {
  grid-area: photo; align-self: start;
  position: relative; z-index: 2;
  aspect-ratio: 521 / 800; margin-top: 4px;
}
.sticker--photo {
  --w: 100%;
  width: var(--w);
  --x: 0px; --y: 0px; --r: -4deg;
  filter: drop-shadow(0 10px 14px rgba(0,0,0,.18));
  font: inherit; text-transform: none;
}
.sticker--photo svg { display: block; width: 100%; height: auto; overflow: visible; pointer-events: none; }
/* foto fissa (non si trascina): al passaggio si solleva e si inclina, "eccomi!" saltella */
.sticker.sticker--photo {
  cursor: default;
  transition: transform .6s var(--ease-back), filter .4s;
}
.photo-tag { transition: transform .5s var(--ease-back); }
@media (hover: hover) {
  .sticker.sticker--photo:hover {
    rotate: var(--r); scale: 1;
    transform: translateY(-12px) rotate(3deg);
    filter: drop-shadow(0 22px 22px rgba(0,0,0,.24));
  }
  .sticker--photo:hover .photo-tag { transform: translate(6px, -8px) rotate(-6deg) scale(1.12); }
}
.photo-tag {
  position: absolute; right: -6%; bottom: 14%;
  rotate: -10deg;
  padding: 2px 14px 6px;
  background: var(--white); border: 2px solid var(--ink); border-radius: 999px;
  font-family: var(--f-script); font-size: 1.9rem; line-height: 1; color: var(--blue);
  box-shadow: 0 4px 0 rgba(0,0,0,.12);
  pointer-events: none;
}
.about__sticker { animation-delay: .6s; }
/* mobile: "+4 anni di UX" in alto a destra, sulla riga di "Chi sono"; la matita sopra la foto */
.motion .about:not(.is-in) .about__sticker { animation-play-state: paused; }

.about__text .display { margin-bottom: 24px; }
.about__title { font-size: clamp(2.5rem, 11.5vw, 5rem); }
.about__title .serif-i { display: inline-block; margin-top: .08em; }
.lead {
  font-family: var(--f-serif);
  font-size: 1.35rem; line-height: 1.15;
  margin-bottom: 16px; max-width: 40ch;
}
.lead--aside {
  font-style: italic; font-size: 1.15rem; color: var(--ink-soft);
  padding-left: 16px; border-left: 3px solid var(--blue);
  margin-bottom: 28px;
}
.body { color: var(--ink-soft); max-width: 58ch; margin-bottom: 28px; }
.about__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
@media (max-width: 899px) {
  .about .lead:not(.lead--aside) { font-size: 1.05rem; margin-bottom: 24px; }
  .about .lead--aside { font-size: .95rem; padding-left: 12px; margin-bottom: 26px; }
  .about .body { margin-top: 0; }
}

/* =========================================================
   BOTTONI
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 20px 0 14px;
  border-radius: var(--radius);
  font-size: .8rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--ink);
  transition: background .25s, color .25s, transform .35s var(--ease-back);
}
@media (hover: hover) { .btn:hover { transform: translateY(-2px) rotate(-1.5deg); } }
.btn:not(:has(.btn__icon)) { padding: 0 22px; }
.btn__icon { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 3px; background: var(--paper); color: var(--ink); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--blue); border-color: var(--blue); }
.btn--ghost { padding-left: 20px; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--pink { background: var(--pink); border-color: var(--pink); color: var(--ink); font-size: .9rem; }
.btn--pink .btn__icon { background: var(--ink); color: var(--pink); }
.btn--light { background: transparent; color: var(--paper); border-color: rgba(243,241,236,.5); }
.btn--light:hover { border-color: var(--paper); }
.btn--light .btn__icon { background: var(--paper); color: var(--ink); }

/* divisore leggero tra Chi sono e Percorso */
.soft-divider {
  display: flex; align-items: center; gap: 16px;
  max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter);
  color: rgba(18,18,18,.28); font-size: .8rem;
}
.soft-divider::before, .soft-divider::after { content: ""; flex: 1; height: 1px; background: rgba(18,18,18,.14); }

/* =========================================================
   PERCORSO
   ========================================================= */
.path { padding: 64px var(--gutter) 90px; max-width: 1200px; margin: 0 auto; }
.path__list { border-top: 2px solid var(--ink); }
.row {
  display: grid; grid-template-columns: 1fr; gap: 6px;
  padding: 20px 4px;
  border-bottom: 1px dashed rgba(18,18,18,.35);
  transition: background .3s, padding .4s var(--ease-out);
}
.row__when { font-family: var(--f-serif); font-size: 1.3rem; }
.row__what b { display: block; font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: 1.25rem; line-height: 1.05; margin-bottom: 4px; }
.row__what em { font-family: var(--f-serif); font-size: 1.15rem; color: var(--ink-soft); }
.row__tag { font-size: .92rem; color: var(--ink-soft); }
.tools { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.tools__label { font-size: 1.35rem; }
.tools ul { display: flex; flex-wrap: wrap; gap: 8px; }
.tools li {
  padding: 8px 14px; border: 2px solid var(--ink); border-radius: 999px;
  font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em;
}

/* =========================================================
   FUORI DALLO SCHERMO — vision board, titolo al centro
   ========================================================= */
.play {
  min-height: max(100svh, 680px);
  background:
    radial-gradient(rgba(18,18,18,.16) 1.2px, transparent 1.4px) 0 0 / 22px 22px,
    var(--paper-2);
  overflow: hidden;
  display: grid; place-items: center;
}
.play__center { position: relative; z-index: 1; text-align: center; pointer-events: none; padding: 0 var(--gutter); }
.play__title { font-size: clamp(2.8rem, 15vw, 8rem); }
.play__hint { display: inline-block; margin-top: 16px; }
.play__board { z-index: 2; pointer-events: none; }
.play__board .sticker { font-size: .8rem; }
.play__board .sticker--burst { width: 96px; font-size: .95rem; }
.play__board .sticker--round { width: 92px; }

/* posizioni vision board (mobile): sopra e sotto il titolo */
.p-disegno { --x: 4%;  --y: 9%;  --r: -8deg; }
.p-danza   { --x: 68%; --y: 63%; --r: 10deg; }
.p-wave     { --x: 4%;  --y: 62%; --r: -6deg; }
.p-lanterna { --x: 42%; --y: 66%; --r: 5deg; }
.p-spark    { --x: 68%; --y: 84%; --r: 0deg; }
.p-tavola     { --x: 78%; --y: 27%; --r: 8deg; }
.p-ballo      { --x: 4%;  --y: 30%; --r: -6deg; }
.p-sushi      { --x: 40%; --y: 82%; --r: 6deg; }
.p-aereo      { --x: 36%; --y: 3%;  --r: -4deg; }
.p-palette    { --x: 6%;  --y: 80%; --r: 10deg; }
.p-netflix    { --x: 62%; --y: 20%; --r: -6deg; }
.play__board .p-danza, .play__board .p-netflix { width: 92px; }
.play__board .p-sushi, .play__board .p-aereo { width: 84px; }
.play__board .p-disegno { width: 128px; }

/* =========================================================
   CONTATTI (dark)
   ========================================================= */
.contact {
  background: var(--ink); color: var(--paper);
  text-align: center;
  padding: 88px var(--gutter) 72px;
  overflow: hidden;
}
.contact > * { position: relative; z-index: 3; }
.contact__title {
  font-stretch: 62%; font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.6rem, 14vw, 8.6rem); line-height: .86;
}
/* "Grazie" in maiuscolo, il resto della frase in corsivo rosa (come i titoli del sito) */
.contact__title .line--serif {
  color: var(--pink); font-style: italic; text-transform: none;
  font-size: .62em; line-height: 1; letter-spacing: -0.01em;
  padding-bottom: .14em;
}
.contact__title .line--serif + .line--serif { margin-top: -.12em; }
.magnetic { will-change: transform; }
.lbr { display: block; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--ink); color: var(--paper);
  border-top: 1px solid rgba(243,241,236,.15);
  display: grid; grid-template-columns: 1fr; gap: 32px 20px;
  padding: 48px var(--gutter) calc(24px + env(safe-area-inset-bottom));
}
.footer__logo {
  grid-column: 1 / -1;
  font-family: var(--f-script); font-size: 4.4rem; line-height: .9;
  text-decoration: none; rotate: -6deg; justify-self: start; color: var(--paper);
}
.footer__contacts {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px;
}
.footer__contacts li:first-child { grid-column: 1 / -1; }   /* mobile: email intera, CV e città affiancati */
.footer__contacts li { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.footer__label {
  font-family: var(--f-sans); font-size: .72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em; color: rgba(243,241,236,.55);
}
.footer__contacts a, .footer__contacts li > span:not(.footer__label) {
  font-family: var(--f-serif); font-size: clamp(1.45rem, 5.6vw, 2rem); line-height: 1.1;
  overflow-wrap: anywhere; text-decoration: none; color: var(--paper);
}
.footer__contacts a {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em;
  text-decoration-color: rgba(243,241,236,.35);
  transition: color .25s, text-decoration-color .25s;
}
.footer__contacts a:hover { color: var(--pink); text-decoration-color: currentColor; }
.footer__legal { grid-column: 1 / -1; font-size: .78rem; color: rgba(243,241,236,.55); padding-top: 20px; border-top: 1px solid rgba(243,241,236,.15); }

/* etichetta cursore: solo mouse */
.cursor-label { display: none; }

/* =========================================================
   ≥ 640px — TABLET
   ========================================================= */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .hero__kicker { font-size: 1.5rem; }
  .sticker { font-size: .85rem; }
  .sticker--round, .sticker--burst { width: 104px; }
  .h-ciao      { --x: 5%;  --y: 14%; }
  .h-ciao.sticker--ill { width: 116px; }
  .h-laptop.sticker--ill { width: 100px; }
  .h-visione   { --x: 72%; --y: 14%; }
  .h-curiosita { --x: 8%;  --y: 82%; }
  .h-genova    { --x: 76%; --y: 78%; }


  .row { grid-template-columns: 120px 1fr; gap: 6px 24px; padding: 22px 8px; }
  .row__tag { grid-column: 2; }

  .sticker--ill { width: 88px; }
  .h-bulb { --x: 42%; --y: 7%; }
  .p-tavola { --y: 19%; }
  .p-ballo  { --y: 21%; }

  .footer__contacts { grid-template-columns: repeat(3, auto); justify-content: start; column-gap: 0; }
  .footer__contacts li:first-child { grid-column: auto; }
  .footer__contacts li { padding-right: clamp(24px, 4vw, 64px); }
  .footer__contacts li + li { padding-left: clamp(24px, 4vw, 64px); border-left: 1px solid rgba(243,241,236,.18); }
  .footer__contacts a, .footer__contacts li > span:not(.footer__label) { font-size: clamp(1.4rem, 2.4vw, 2.2rem); }
  .footer__logo { font-size: clamp(4rem, 9vw, 8rem); }
}

/* =========================================================
   ≥ 900px — DESKTOP
   ========================================================= */
@media (min-width: 900px) {
  :root { --gutter: clamp(32px, 4vw, 56px); --nav-h: 72px; }
  body { font-size: 17px; }

  .nav { display: grid; grid-template-columns: 1fr auto 1fr; }
  .nav__logo { justify-self: start; font-size: 2.4rem; }
  .nav__menu { display: none; }
  .nav__pill {
    display: flex; gap: 2px; background: var(--white);
    padding: 5px; border-radius: var(--radius); box-shadow: 0 1px 0 rgba(0,0,0,.06);
  }
  .nav__pill a, .nav__cta {
    font-size: .72rem; font-weight: 700; letter-spacing: .02em;
    text-transform: uppercase; text-decoration: none;
    padding: 8px 11px; border-radius: 3px;
    transition: background .25s, color .25s;
  }
  .nav__pill a:hover, .nav__pill a.is-active { background: var(--ink); color: var(--paper); }
  .nav__cta { justify-self: end; display: inline-flex; align-items: center; gap: 8px; background: var(--white); }
  .nav__cta:hover { background: var(--blue); color: var(--white); }
  .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
  .nav__cta:hover .dot { background: var(--white); }
  .menu { display: none !important; }

  /* hero */
  .hero { padding: 120px var(--gutter) 100px; }
  .hero__kicker { font-size: clamp(1.4rem, 2.1vw, 1.9rem); margin-bottom: 22px; }
  .hero__title { font-size: clamp(4rem, 7.6vw, 8rem); }
  .line--j { display: inline-block; vertical-align: top; }
  .hero__more { margin-top: 36px; }
  .doodle path { stroke-width: 5.5; }

  .sticker { font-size: clamp(.8rem, 1.1vw, 1rem); }
  .sticker--pill { padding: 11px 18px; }
  .sticker--round { width: clamp(104px, 9vw, 124px); }
  .sticker--burst { width: clamp(108px, 9.5vw, 132px); font-size: clamp(1rem, 1.5vw, 1.3rem); }
  .sticker--ticket { font-size: 1.05rem; padding: 10px 22px 12px; }
  .sticker--ticket > span { font-size: .58rem; }
  .h-figma, .h-cursor, .h-sketch { display: block; }
  .sticker--ill { width: clamp(96px, 8vw, 124px); }
  .h-bulb      { --x: 19%; --y: 78%; --r: -8deg; }
  .h-cursor    { --x: 64%; --y: 80%; --r: -6deg; }
  .h-ciao      { --x: 7%;  --y: 15%; --r: -8deg; }
  .h-ciao.sticker--ill { width: clamp(130px, 11vw, 160px); }
  .h-laptop.sticker--ill { width: clamp(120px, 10vw, 150px); }
  .h-laptop    { --x: 64%; --y: 5%;  --r: 6deg; }
  .h-pencil    { --x: 30%; --y: 6%;  --r: 0deg; }
  .h-pencil.sticker--ill { width: clamp(120px, 10vw, 150px); }
  .h-sketch    { --x: 37%; --y: 88%; --r: -4deg; }
  .h-curiosita { --x: 5%;  --y: 44%; --r: -6deg; }
  .h-visione   { --x: 78%; --y: 14%; --r: 8deg; }
  .h-figma     { --x: 85%; --y: 46%; --r: 7deg; }
  .h-genova    { --x: 81%; --y: 69%; --r: -10deg; }

  .marquee { padding: 16px 0; }
  .marquee li { font-size: clamp(1.8rem, 3.2vw, 3rem); }
  .marquee ul { gap: 28px; padding-right: 28px; }

  .sec-head { margin-bottom: clamp(48px, 6vw, 80px); }
  .sec-head > .serif { font-size: clamp(1.2rem, 1.7vw, 1.5rem); }

  .work { padding: clamp(130px, 13vw, 180px) var(--gutter) clamp(90px, 10vw, 140px); }
  .stack__card { padding: 14px; margin-bottom: 40px; }
  .stack__inner { height: clamp(460px, 70vh, 660px); }
  .stack__info { grid-template-columns: auto 1fr auto; padding: 22px 26px 24px; column-gap: 20px; }
  .stack__no { font-size: 1.7rem; }
  .stack__tags { grid-column: 2; grid-row: 2; }
  .stack__chip { grid-column: 3; grid-row: 1 / span 2; align-self: center; margin: 0; padding: 12px 16px; }

  .about {
    display: flow-root;            /* contiene la foto flottante */
    max-width: 1240px;
    padding: clamp(130px, 13vw, 190px) var(--gutter) clamp(80px, 8vw, 120px);
  }
  .about__text { display: block; position: relative; z-index: 1; }
  /* la foto flotta a destra; shape-outside ricalca la sagoma (contorno sinistro di testa,
     capelli, spalla e braccio) così le righe di testo ne seguono l'andamento */
  .about__home {
    float: right;
    width: clamp(230px, 23vw, 320px);
    aspect-ratio: 521 / 768;
    margin: 0 0 24px;
    /* contorno un po' più largo della sagoma: tiene conto del bordo bianco e dell'animazione */
    shape-outside: polygon(46% 0, 33% 6%, 28% 16%, 24% 32%, 21% 46%, 10% 54%, 7% 62%, 2% 73%, 0 89%, 0 100%, 100% 100%, 100% 0);
    shape-margin: 28px;
  }
  .sticker--photo { --r: 0deg; }
  .photo-tag { font-size: 2.4rem; }
  .about__title { font-size: clamp(3rem, 5.2vw, 4.8rem); }
  .lead { font-size: clamp(1.45rem, 1.75vw, 1.75rem); max-width: 54ch; }
  .lead--aside { font-size: clamp(1.2rem, 1.4vw, 1.4rem); max-width: 64ch; }
  .body { max-width: 74ch; }
  /* nella sezione Chi sono il limite lo dà la sagoma della foto */
  .about .lead, .about .lead--aside, .about .body { max-width: none; }
  /* sticker sul lato destro della foto, lontani dal testo */
  .about__home { margin-bottom: 80px; }
  .about .lead--aside { margin-bottom: 28px; }

  .path { padding: clamp(80px, 8vw, 120px) var(--gutter) clamp(110px, 12vw, 160px); }
  .row { grid-template-columns: 150px 1fr minmax(0, 340px); align-items: baseline; }
  .row__tag { grid-column: auto; font-size: .9rem; }
  .row:hover { background: var(--white); padding-left: 18px; }
  .row__what b { font-size: clamp(1.3rem, 1.9vw, 1.7rem); }

  /* vision board desktop: tutto attorno al titolo */
  .play { min-height: max(100svh, 760px); }
  .play__board .sticker { font-size: clamp(.95rem, 1.4vw, 1.25rem); }
  .play__board .sticker--burst { width: clamp(130px, 12vw, 170px); font-size: clamp(1.1rem, 1.6vw, 1.5rem); }
  .play__board .sticker--round { width: clamp(124px, 11vw, 160px); }
  .sticker--note { width: 170px; font-size: 1.35rem; padding: 24px 16px 18px; }
  .p-disegno { --x: 9%;  --y: 12%; }
  .p-danza   { --x: 14%; --y: 72%; }
  .p-wave     { --x: 66%; --y: 74%; }
  .p-lanterna { --x: 26%; --y: 12%; }
  .p-spark    { --x: 58%; --y: 22%; }
  .p-tavola     { --x: 88%; --y: 12%; }
  .p-ballo      { --x: 34%; --y: 70%; }
  .play__board .p-ballo { width: clamp(110px, 9.5vw, 140px); }
  .p-sushi      { --x: 86%; --y: 86%; }
  .p-aereo      { --x: 52%; --y: 6%; }
  .p-palette    { --x: 6%;  --y: 44%; }
  .play__board .p-sushi, .play__board .p-aereo { width: clamp(100px, 9vw, 130px); }
  .play__board .p-danza, .play__board .p-netflix { width: clamp(130px, 11vw, 160px); }
  .play__board .p-disegno { width: clamp(170px, 14vw, 210px); }
  .p-netflix    { --x: 74%; --y: 10%; }

  .contact { padding: clamp(96px, 9vw, 130px) var(--gutter) clamp(80px, 8vw, 110px); }
  .contact__title { font-size: clamp(4rem, 10vw, 10.5rem); }

  .footer { padding: 56px var(--gutter) 28px; gap: 32px; }

  /* grana carta + cursore solo su desktop (prestazioni su mobile) */
  body::after {
    content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none;
    opacity: .07; mix-blend-mode: multiply;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  }
  .cursor-label {
    display: block;
    position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none;
    padding: 6px 10px; border-radius: 999px;
    background: var(--ink); color: var(--paper);
    font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
    translate: var(--cx, -100px) var(--cy, -100px);
    scale: 0; transition: scale .25s var(--ease-back);
  }
  .cursor-label.is-on { scale: 1; }
}

/* =========================================================
   MOTION SAFETY
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   SIPARIO D'INGRESSO (solo home, solo con animazioni attive)
   ========================================================= */
.loader { display: none; }
.intro .loader,
.leaving .loader {
  display: block;
  position: fixed; inset: 0; z-index: 200;
  pointer-events: none;
  background: var(--blue);           /* tutto blu finché la pennellata non parte */
}
.intro .loader.is-open,
.leaving .loader { background: transparent; }
.pt .loader__label { display: none; }   /* cambio pagina: niente "Irene / UX/UI Designer" */
html.intro { overflow: hidden; }
.loader__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.loader__stroke { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.loader__stroke--blue { stroke: var(--blue); }
.loader__stroke--coral { stroke: var(--coral); }
.loader__label {
  position: absolute; inset: 0; z-index: 1;
  display: grid; place-content: center; justify-items: center; gap: 4px;
  color: var(--paper);
}
.loader__name {
  font-family: var(--f-script);
  font-size: clamp(5.5rem, 26vw, 15rem); line-height: 1;
  padding: 0 .2em .1em;
  rotate: -6deg;
  clip-path: inset(-20% 100% -20% 0);
}
.loader__role {
  font-family: var(--f-sans); font-weight: 800; font-stretch: 75%;
  text-transform: uppercase; letter-spacing: .3em; font-size: .78rem;
  color: var(--sun);
  opacity: 0;
}
/* gli sticker dell'hero aspettano che il sipario si apra */
.intro .hero .sticker { animation-play-state: paused; }
