:root {
  --paper: #F3F3F1; --surface: #FFFFFF; --ink: #0E0E0E; --muted: #5E5E5A; --line: #DCDCD8; --fill: #E6E6E2;
  --ease: cubic-bezier(.2,.7,.1,1);
  --gutter: clamp(20px, 4vw, 48px); --max: 1200px;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #0E0E0D; --surface: #171716; --ink: #F3F3F1; --muted: #A3A39E; --line: #2C2C2A; --fill: #242423; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.5 'Instrument Sans', -apple-system, system-ui, sans-serif; letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
h1, h2 { text-wrap: balance; font-weight: 500; margin: 0; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

/* Marchio: corpo inchiostro, "a" e obiettivo dello stesso colore della carta */
.mk-body, .goo { fill: var(--ink); }
.mk-cut { fill: var(--paper); }
svg.mk { display: block; height: 22px; width: 42px; }

/* Barra */
.nav { position: fixed; inset: 0 0 auto; z-index: 20; height: 56px; display: flex; align-items: center; background: color-mix(in srgb, var(--paper) 78%, transparent); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 500; font-size: 19px; letter-spacing: -0.045em; margin-right: auto; }
.nav a.link { font-size: 14px; color: var(--muted); text-decoration: none; transition: color .2s; }
.nav a.link:hover { color: var(--ink); }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 999px; background: var(--ink); color: var(--paper); font: 500 15px 'Instrument Sans', sans-serif; text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; transition: transform .3s var(--ease); }
.pill:active { transform: scale(.97); }
.pill.small { height: 34px; padding: 0 16px; font-size: 13.5px; }
.pill svg { width: 15px; height: 15px; }
.pill[aria-disabled="true"] { cursor: default; }
@media (max-width: 720px) { .nav a.link { display: none; } }

/* Apertura: il marchio nasce come la barra dell'app, poi il testo */
.hero { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 104px var(--gutter) 56px; }
.intro { width: min(440px, 66vw); height: auto; overflow: visible; margin-bottom: clamp(28px, 5svh, 52px); }
.hero h1 { font-size: clamp(44px, 7vw, 96px); line-height: .95; letter-spacing: -0.055em; max-width: 11em; }
.hero > p { color: var(--muted); max-width: 31em; margin: 20px auto 0; font-size: clamp(17px, 1.6vw, 20px); }
.hero .cta { margin-top: 32px; }
.hero > p.note { font-size: 14px; margin-top: 14px; }
.hero h1, .hero > p, .hero .cta { animation: appear .8s var(--ease) 1.25s both; }
.hero > p { animation-delay: 1.35s; }
.hero .cta, .hero > p.note { animation-delay: 1.45s; }
@keyframes appear { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.intro .c1 { transform-box: fill-box; transform-origin: center; animation: drop .9s cubic-bezier(.34,1.45,.64,1) .1s both; }
.intro .c2 { animation: bud 1s cubic-bezier(.3,1.22,.45,1) 1s both; }
.intro .bridge { transform-box: fill-box; transform-origin: left center; animation: stretch 1s cubic-bezier(.3,1.22,.45,1) 1s both; }
.intro .goo { animation: fadeout .25s linear 2.05s both; }
.intro .settled { animation: fadein .25s linear 2.05s both; }
.intro .a { animation: appear .55s var(--ease) .6s both; }
.intro .hole { transform-box: fill-box; transform-origin: center; animation: aperture .7s cubic-bezier(.34,1.5,.64,1) 1.85s both, shutter .5s var(--ease) 2.9s; }
@keyframes drop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes bud { from { transform: translateX(0); } to { transform: translateX(1272px); } }
@keyframes stretch { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fadeout { to { opacity: 0; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes aperture { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes shutter { 0% { transform: scale(1); } 14% { transform: scale(.12); } 100% { transform: scale(1); } }

/* Prima e dopo guidato dallo scroll */
.reveal-stage { height: 260vh; position: relative; }
.reveal-stick { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(20px, 3.5svh, 36px); padding-top: 56px; overflow: hidden; }
.frame { position: relative; width: min(82vw, 52svh); aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; background: var(--fill); transform: scale(var(--scale, .86)); }
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame .after { clip-path: inset(var(--cut, 100%) 0 0 0); }
.frame .seam { position: absolute; left: 0; right: 0; top: calc(100% - var(--seam, 0%)); height: 1px; background: rgba(255,255,255,.75); opacity: var(--seamop, 0); }
.tag { position: absolute; left: 14px; bottom: 14px; height: 30px; padding: 0 14px; border-radius: 999px; background: rgba(255,255,255,.9); color: #0E0E0E; font: 500 13px 'Instrument Sans', sans-serif; display: inline-flex; align-items: center; z-index: 2; }
.reveal-copy { position: relative; width: 100%; height: 2.3em; font-size: clamp(22px, 2.6vw, 34px); text-align: center; }
.reveal-copy p { position: absolute; inset: 0 var(--gutter); margin: 0 auto; font-weight: 500; letter-spacing: -0.035em; line-height: 1.1; max-width: 18em; transition: opacity .5s var(--ease), transform .6s var(--ease); }
.reveal-copy .off { opacity: 0; transform: translateY(10px); }

/* Sezioni */
section.block { padding: clamp(88px, 12vw, 160px) 0; }
.head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 64px); }
.head h2 { font-size: clamp(38px, 5.4vw, 72px); line-height: .97; letter-spacing: -0.05em; }
.head p { color: var(--muted); font-size: clamp(17px, 1.5vw, 20px); margin: 18px 0 0; max-width: 34em; }

.styles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 16px; }
@media (max-width: 640px) { .styles { grid-template-columns: repeat(2, 1fr); gap: 22px 10px; } }
.style { margin: 0; }
.style .ph { position: relative; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: var(--fill); }
.style img { width: 100%; height: 100%; object-fit: cover; }
.style figcaption { margin-top: 10px; font-weight: 500; font-size: 15px; letter-spacing: -0.02em; }

.motion-block { padding-top: 0; }
.motion { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.motion .head { margin: 0; }
@media (max-width: 860px) { .motion { grid-template-columns: 1fr; } }
.motion .media { position: relative; aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; background: var(--fill); }
.motion video { width: 100%; height: 100%; object-fit: cover; }

#privacy { border-top: 1px solid var(--line); }
.facts { margin: 0; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: minmax(140px, 260px) 1fr; gap: 8px 32px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 500; font-size: 19px; letter-spacing: -0.025em; }
.facts dd { margin: 0; color: var(--muted); font-size: 17px; max-width: 36em; }
@media (max-width: 640px) { .facts > div { grid-template-columns: 1fr; } }
#privacy .more { margin: 28px 0 0; font-size: 15px; }
#privacy .more a { text-underline-offset: 3px; }

.final { text-align: center; border-top: 1px solid var(--line); }
.final svg.mk.big { width: 120px; height: 63px; margin: 0 auto 36px; }
.final h2 { font-size: clamp(40px, 6.6vw, 92px); line-height: .95; letter-spacing: -0.055em; max-width: 10em; margin: 0 auto; }
.final p { color: var(--muted); font-size: clamp(17px, 1.5vw, 20px); margin: 20px auto 32px; max-width: 26em; }

footer { border-top: 1px solid var(--line); padding: 26px 0 44px; font-size: 13px; color: var(--muted); }
footer .wrap { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
footer .brand { color: var(--ink); font-size: 16px; }
footer svg.mk { height: 18px; width: 34px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

/* La finitura Aftershot: grana sulle foto */
.grain::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .14; mix-blend-mode: overlay; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .intro *, .hero h1, .hero > p, .hero .cta { animation: none !important; }
  .intro .goo { display: none; }
  .reveal-stage { height: auto; }
  .reveal-stick { position: relative; height: auto; padding: 40px 0 120px; }
  .frame { --scale: 1; }
}
