/* XEPA Brand Book. Layout: un palco scuro su cui il brand si accende; diagonali a 50 gradi, movimento da sinistra a destra. */
:root {
  --bg: #F3F5F8;
  --bg-2: #E9EDF3;
  --panel: #FFFFFF;
  --panel-2: #F7F9FC;
  --ink: #0A1B36;
  --muted: #4B5870;
  --line: rgba(10, 27, 54, .1);
  --accent: #2B62E7;
  --forward: #2B62E7;
  --navy: #0A1B36;
  --deep: #133777;
  --chassis: #EEF0F4;
  --mk-d: url(#xg-d);
  --mk-l: url(#xg-l);

  --f: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --fm: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --r: 14px;
  --gut: clamp(16px, 4vw, 56px);
  --max: 1360px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.mono { font-family: var(--fm); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.acc { color: var(--accent); }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.mk { display: block; width: 100%; height: auto; }
.grain { position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

/* nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding-top: env(safe-area-inset-top, 0px);
  background: rgba(243,245,248,.78); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--line); transition: transform .5s var(--ease); }
.nav.hide { transform: translateY(-100%); }
.nav-in { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand .logo-word { width: 96px; height: auto; display: block; }
.nav nav { margin-left: auto; min-width: 0; }
.nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav li a { text-decoration: none; color: var(--muted); font-size: 14px; transition: color .25s; white-space: nowrap; }
.nav li a:hover { color: var(--ink); }
.nav-cta { flex: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 14px 22px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; border: 0; cursor: pointer; white-space: nowrap;
  transition: transform .35s var(--ease), background .25s, box-shadow .35s var(--ease); }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--forward); color: #fff; box-shadow: 0 14px 34px -14px rgba(43,98,231,.9), inset 0 1px 0 rgba(255,255,255,.22); }
.btn-primary:hover { background: #3a70f0; }
.btn-ghost { background: rgba(10,27,54,.05); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { background: rgba(10,27,54,.1); }
.ffw { letter-spacing: -.18em; transition: transform .35s var(--ease); }
.btn:hover .ffw { transform: translateX(4px); }

/* hero */
.hero { position: relative; min-height: 100dvh; display: grid; align-items: center; padding-block: 110px 64px; overflow: hidden;
  background: radial-gradient(70% 80% at 78% 45%, rgba(57,126,237,.16), transparent 60%), radial-gradient(60% 60% at 10% 100%, rgba(43,98,231,.08), transparent 60%), var(--bg); }
.speedlines { position: absolute; inset: -20% -10%; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(-40deg, transparent 0 46px, rgba(43,98,231,.08) 46px 47px);
  -webkit-mask: radial-gradient(60% 60% at 70% 50%, #000, transparent 75%); mask: radial-gradient(60% 60% at 70% 50%, #000, transparent 75%); }
.hero-in { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.eyebrow { font-family: var(--fm); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.hero-h1 { font-weight: 900; font-size: clamp(56px, 9vw, 148px); line-height: .9; letter-spacing: -.055em; margin-top: 22px; }
.hero-h1 .ff { display: inline-block; background: linear-gradient(100deg, #0A1B36 35%, #133777 65%, #2B62E7); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.payoff-rot { font-size: clamp(22px, 2.8vw, 40px); color: var(--accent); font-weight: 500; margin-top: 14px; min-height: 1.3em; letter-spacing: -.02em; }
.payoff-rot .br { opacity: .55; font-weight: 400; }
#rot { display: inline-block; }
#rot.swap { animation: swapIn .6s var(--ease); }
@keyframes swapIn { from { opacity: 0; transform: translateX(-22px); filter: blur(4px); } }
.lead { margin-top: 26px; max-width: 44ch; color: var(--muted); font-size: 19px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-visual { position: relative; aspect-ratio: 1 / 1; max-width: 640px; width: 100%; justify-self: end; }
#hero3d { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-fallback { position: absolute; inset: 18%; width: 64%; opacity: 0; transition: opacity .6s; }
.hero-visual.no3d .hero-fallback { opacity: 1; }

/* manifesto */
.manifesto { padding-block: clamp(96px, 16vw, 220px); border-top: 1px solid var(--line); }
.manifesto-text { font-size: clamp(30px, 4.4vw, 64px); line-height: 1.12; font-weight: 600; letter-spacing: -.035em; max-width: 22ch; }
.manifesto-text .w { opacity: .14; transition: opacity .2s linear; }
.manifesto-text .w.on { opacity: 1; }
.manifesto-text .w.hl { color: var(--accent); }

/* generic section */
.sec { padding-block: clamp(80px, 11vw, 160px); border-top: 1px solid var(--line); scroll-margin-top: 68px; }
.h2 { font-size: clamp(36px, 5.2vw, 80px); line-height: 1; font-weight: 800; letter-spacing: -.045em; }
.body-l { font-size: clamp(18px, 1.5vw, 21px); color: var(--muted); line-height: 1.55; margin-top: 22px; max-width: 52ch; }
.narrow { max-width: 58ch; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }

/* essenza */
.essence { margin: 56px 0 0; display: grid; }
.essence > div { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding-block: 28px; border-top: 1px solid var(--line); align-items: baseline; }
.essence dt { font-family: var(--fm); font-size: 13px; color: var(--accent); letter-spacing: .08em; text-transform: uppercase; }
.essence dd { margin: 0; font-size: clamp(24px, 2.8vw, 40px); font-weight: 600; letter-spacing: -.03em; line-height: 1.15; }

/* valori: horizontal pan */
.valori { position: relative; overflow: hidden; border-top: 1px solid var(--line); background: var(--bg-2); }
.valori-track { display: flex; gap: clamp(16px, 2vw, 28px); padding: clamp(80px, 10vw, 140px) var(--gut); width: max-content; align-items: stretch; }
.valori-intro { width: min(560px, 80vw); display: flex; align-items: center; flex: none; padding-right: 40px; }
.value { position: relative; flex: none; width: min(520px, 82vw); min-height: min(560px, 70vh); border-radius: var(--r); padding: clamp(28px, 3vw, 44px); display: flex; flex-direction: column; justify-content: flex-end; gap: 16px; overflow: hidden; }
.value h3 { font-size: clamp(32px, 3.6vw, 52px); font-weight: 800; letter-spacing: -.04em; line-height: 1; position: relative; }
.value p { font-size: 18px; max-width: 32ch; position: relative; }
.v1 { --mk-d: #EEF1F7; color: #EEF1F7; background: linear-gradient(140deg, #050D1D, #0A1B36 50%, #133777); }
.v1 p { color: #C5D0E2; }
.v1 .vmk { position: absolute; width: 70%; right: -14%; top: -6%; opacity: .14; }
.v2 { background: var(--forward); color: #fff; }
.v2 p { color: #E6EEFF; }
.v3 { background: var(--chassis); color: var(--navy); }
.v3 p { color: #34425C; }
.v4 { background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.v4::after { background: repeating-linear-gradient(-40deg, transparent 0 30px, rgba(43,98,231,.06) 30px 31px) !important; }
.v4 p { color: var(--muted); }
.v2::after, .v4::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-40deg, transparent 0 30px, rgba(255,255,255,.06) 30px 31px); pointer-events: none; }

/* personalita */
.archetype { margin-top: 28px; color: var(--muted); font-size: 14px; }
.archetype b { color: var(--ink); font-weight: 500; }
.spectrum { display: grid; gap: 30px; }
.sp { display: grid; grid-template-columns: 110px 1fr 110px; gap: 16px; align-items: center; font-size: 14px; color: var(--muted); }
.sp span:last-child { text-align: right; }
.sp i { position: relative; height: 1px; background: var(--line); }
.sp i::after { content: ""; position: absolute; top: 50%; left: calc(var(--p) * 100%); width: 14px; height: 14px; border-radius: 50%; background: var(--accent); transform: translate(-50%, -50%) scale(var(--s, 1)); box-shadow: 0 0 0 6px rgba(43,98,231,.15); transition: left 1.2s var(--ease); }
.spectrum:not(.in) .sp i::after { left: 50%; }

/* emozione */
.emozione { color: var(--ink); position: relative; min-height: 92vh; display: grid; align-items: center; overflow: hidden; border-top: 1px solid var(--line); background: var(--bg); }
.emo-bg { position: absolute; top: 0; right: 0; width: 50%; height: 100%; object-fit: cover; object-position: 62% center; clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 100%); }
.emo-shade { display: none; }
.emo-in { position: relative; padding-block: 120px; width: 100%; }
.feelings { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 18px; max-width: 50%; }
.feelings li { display: grid; gap: 4px; }
.feelings b { font-size: clamp(44px, 6.4vw, 104px); font-weight: 900; letter-spacing: -.05em; line-height: .95; }
.feelings li:nth-child(2) b { color: var(--accent); }
.feelings span { color: var(--muted); font-size: 18px; }
.emozione .h2 { max-width: 48%; font-size: clamp(36px, 4.2vw, 68px); }
@media (max-width: 900px) {
  .emozione { display: block; min-height: 0; }
  .emo-bg { position: relative; width: 100%; height: 300px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 82%); }
  .emo-in { padding-block: 40px 80px; }
  .feelings, .emozione .h2 { max-width: none; }
}

/* simbolo */
.sim-split { margin-top: 56px; align-items: start; }
.sim-stage { position: relative; aspect-ratio: 1.05; border-radius: var(--r); background: radial-gradient(80% 80% at 50% 50%, #FFFFFF, var(--bg-2)); box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; cursor: crosshair; overflow: hidden; }
.sim-svg { width: 84%; overflow: visible; }
.sim-d, .sim-l { transition: transform .9s var(--ease); }
.sim-stage:hover .sim-d, .sim-stage:focus-visible .sim-d, .sim-stage.open .sim-d { transform: translateX(-34px); }
.sim-stage:hover .sim-l, .sim-stage:focus-visible .sim-l, .sim-stage.open .sim-l { transform: translateX(34px); }
.sim-guide { stroke: var(--accent); stroke-width: 1.6; fill: none; opacity: 0; transition: opacity .6s .2s; }
.sim-guide.dim { stroke: var(--muted); }
.sim-label { font-family: var(--fm); font-size: 16px; fill: var(--accent); opacity: 0; transition: opacity .6s .2s; }
.sim-stage:hover .sim-guide, .sim-stage:hover .sim-label, .sim-stage.open .sim-guide, .sim-stage.open .sim-label { opacity: 1; }
.sim-hint { position: absolute; bottom: 16px; left: 18px; font-size: 12px; color: var(--muted); }
.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; margin-top: 40px; }
.rules .big { font-size: 34px; font-weight: 500; letter-spacing: -.03em; display: block; }
.rules p { color: var(--muted); font-size: 15px; margin-top: 6px; }

/* logo */
.logo-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 56px; }
.lt { border-radius: var(--r); min-height: 280px; padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.lt p { font-size: 14px; color: var(--muted); }

.lt-wide { grid-column: span 4; background: radial-gradient(120% 140% at 0 0, #133777, #0A1B36 45%, #050D1D); }
.lt-light { background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--line); }
.lt-navy { grid-column: span 2; --mk-d: #EEF1F7; --wm: #EEF1F7; background: radial-gradient(120% 140% at 0 0, #133777, #0A1B36 45%, #050D1D); }
.lt-navy p { color: #B8C4D8; }
.logo-full { width: min(100%, 560px); height: auto; display: block; }
.lt-navy .logo-full, .lt-stack .logo-word { width: min(100%, 300px); }
.logo-word { width: min(100%, 260px); height: auto; display: block; }
.lt-light p { color: #4B5870; }
.lt-blue { grid-column: span 2; background: var(--forward); }
.lt-blue p { color: #DCE6FF; }
.lt-paper { grid-column: span 2; background: #FAFBFC; }
.lt-paper p { color: #4B5870; }
.lt-stack { grid-column: span 2; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.lockup { display: flex; align-items: center; gap: .6em; font-size: clamp(30px, 4.2vw, 64px); }
.lockup .mk { width: 1.9em; flex: none; }
.wm2 { display: grid; line-height: 1; }
.wm2 b { font-weight: 800; letter-spacing: .05em; }
.wm2 span { font-family: var(--fm); font-weight: 500; font-size: .246em; letter-spacing: .42em; margin-top: .42em; margin-right: -.42em; }
.lockup.ink { color: var(--navy); font-size: clamp(24px, 2.4vw, 34px); }
.solo { width: min(150px, 55%); }
.stack { display: grid; justify-items: center; gap: 12px; font-size: 32px; }
.stack .mk { width: 2.3em; }
.stack b { font-weight: 800; letter-spacing: .05em; line-height: 1; }
.stack span { font-family: var(--fm); font-size: .3em; letter-spacing: .42em; margin-right: -.42em; margin-top: -4px; }
.donts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 40px; }
.donts figure { margin: 0; display: grid; gap: 10px; }
.db { aspect-ratio: 1; border-radius: var(--r); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; overflow: hidden; position: relative; }
.db .mk { width: 52%; }
.db::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, transparent calc(50% - 1px), rgba(214,48,48,.7) 50%, transparent calc(50% + 1px)); }
.db-busy { background: repeating-linear-gradient(50deg, #397EED 0 10px, #0A1B36 10px 20px); }
.donts figcaption { font-size: 14px; color: var(--muted); }

/* payoff */
.pf { display: grid; grid-template-columns: 320px 1fr; gap: clamp(20px, 3vw, 48px); margin-top: 48px; }
.pf-list { display: grid; gap: 4px; align-content: start; }
.pf-list button { all: unset; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: 10px; font-family: var(--fm); font-size: 16px; color: var(--muted); transition: background .25s, color .25s; }
.pf-list button:hover { background: rgba(10,27,54,.05); color: var(--ink); }
.pf-list button[aria-selected="true"] { background: var(--panel); color: var(--accent); box-shadow: inset 0 0 0 1px var(--line); }
.pf-list button:focus-visible { outline: 2px solid var(--accent); }
.pf-list .arr { opacity: 0; letter-spacing: -.18em; transition: opacity .25s, transform .35s var(--ease); transform: translateX(-6px); }
.pf-list button[aria-selected="true"] .arr { opacity: 1; transform: none; }
.pf-stage { color: #EEF1F7; position: relative; overflow: hidden; border-radius: var(--r); min-height: 440px; padding: clamp(28px, 4vw, 60px); display: flex; flex-direction: column; justify-content: center; gap: 10px;
  background: radial-gradient(120% 140% at 0 0, #133777 0%, #0A1B36 45%, #050D1D 100%); }
.pf-lines { position: absolute; right: -60px; top: -10%; width: 60%; height: 120%; opacity: .2; background: repeating-linear-gradient(-40deg, transparent 0 22px, #397EED 22px 24px); -webkit-mask: linear-gradient(90deg, transparent, #000 70%); mask: linear-gradient(90deg, transparent, #000 70%); animation: lines 6s linear infinite; }
@keyframes lines { to { background-position: 160px 0; } }
.pf-1 { position: relative; font-size: clamp(44px, 6vw, 96px); font-weight: 900; letter-spacing: -.05em; line-height: .95; }
.pf-2 { position: relative; font-size: clamp(24px, 3.4vw, 52px); color: #78A6F5; font-weight: 500; letter-spacing: -.02em; overflow-wrap: anywhere; }
.pf-2.swap { animation: swapIn .6s var(--ease); }
.pf-d { position: relative; color: #C5D0E2; max-width: 46ch; margin-top: 18px; font-size: 18px; }
.pf-full { position: relative; margin-top: 30px; font-size: 12.5px; color: #8496B5; }

/* colori */
.ratio { display: flex; height: 92px; border-radius: var(--r); overflow: hidden; margin-top: 48px; box-shadow: inset 0 0 0 1px var(--line); }
.ratio span { display: flex; align-items: flex-end; padding: 12px; font-family: var(--fm); font-size: 12px; color: var(--ink); white-space: nowrap; overflow: hidden; min-width: 0; }
.swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.sw { all: unset; cursor: pointer; position: relative; border-radius: var(--r); min-height: 260px; padding: 26px; background: var(--c); color: var(--t); display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; box-shadow: inset 0 0 0 1px var(--line); transition: transform .5s var(--ease); }
.sw:hover { transform: translateY(-4px); }
.sw:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sw-n { font-size: 26px; font-weight: 700; letter-spacing: -.03em; }
.sw-e { font-size: 15px; opacity: .82; max-width: 30ch; }
.sw-v { font-size: 12px; opacity: .75; margin-top: 8px; }
.sw-c { position: absolute; top: 20px; right: 22px; font-size: 12px; opacity: .7; }

/* caratteri */
.spec { display: grid; gap: 6px; }
.aa { font-size: clamp(120px, 14vw, 220px); font-weight: 900; letter-spacing: -.07em; line-height: .85; }
.aa.mono { font-size: clamp(80px, 9vw, 140px); font-weight: 500; letter-spacing: -.04em; margin-top: 40px; }
.spec-n { font-size: 22px; font-weight: 600; margin-top: 14px; }
.spec-g { color: var(--muted); font-size: 15px; }
.scale > div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: baseline; padding-block: 20px; border-top: 1px solid var(--line); }
.scale .k { font-size: 12px; color: var(--muted); }
.scale .s { min-width: 0; overflow-wrap: anywhere; }

/* voce */
.voice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 48px; }
.vt { border-radius: var(--r); padding: 28px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 16px; align-content: start; }
.vt h3 { font-size: 30px; font-weight: 800; letter-spacing: -.035em; }
.vt .yes { font-size: 18px; font-weight: 500; line-height: 1.4; }
.vt .yes::before { content: "Sì"; display: block; font-family: var(--fm); font-size: 12px; color: var(--accent); margin-bottom: 6px; }
.vt .no { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(75,88,112,.45); }
.vt .no::before { content: "No"; display: block; font-family: var(--fm); font-size: 12px; margin-bottom: 6px; text-decoration: none; }
.banned { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; font-size: 13px; }
.banned s { padding: 7px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }

/* direzione */
.dir-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 4vw, 64px); margin-top: 48px; align-items: center; }
.dir-photo { margin: 0; border-radius: var(--r); overflow: hidden; position: relative; clip-path: polygon(0 0, 100% 0, 100% 100%, 12% 100%); }
.dir-photo figcaption { position: absolute; left: 14%; right: 0; bottom: 0; padding: 18px 20px; background: linear-gradient(transparent, rgba(7,9,13,.8)); font-size: 14px; color: #E6ECF6; }
.dir-rules { display: grid; gap: 22px; }
.dir-rules p { color: var(--muted); }
.dir-rules b { color: var(--ink); }
.motion-demo { position: relative; height: 72px; border-radius: 10px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.md { position: absolute; left: 14px; width: 26px; height: 14px; border-radius: 4px; background: var(--accent); }
.md1 { top: 10px; animation: mv 2.4s var(--ease) infinite; }
.md2 { top: 29px; animation: mv 2.4s .12s var(--ease) infinite; opacity: .7; }
.md3 { top: 48px; animation: mv 2.4s .24s var(--ease) infinite; opacity: .4; }
@keyframes mv { 0% { transform: translateX(0); } 45%, 100% { transform: translateX(calc(min(420px, 60vw))); } }

/* mondo */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.chip { all: unset; cursor: pointer; font-size: 14px; padding: 9px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); transition: background .25s, color .25s; }
.chip:hover { color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.chip:focus-visible { outline: 2px solid var(--accent); }
.chip .n { font-family: var(--fm); font-size: 11px; opacity: .6; margin-left: 6px; }
.gallery { columns: 3 320px; column-gap: 14px; margin-top: 28px; }
.g-item { all: unset; cursor: zoom-in; display: block; break-inside: avoid; margin-bottom: 14px; border-radius: var(--r); overflow: hidden; position: relative; width: 100%; background: var(--panel); }
.g-item img { width: 100%; height: auto; transition: transform 1.2s var(--ease); }
.g-item:hover img { transform: scale(1.04); }
.g-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.g-cap { color: #fff; position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; background: linear-gradient(transparent, rgba(7,9,13,.85)); font-size: 14px; display: flex; justify-content: space-between; gap: 10px; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .5s var(--ease); }
.g-item:hover .g-cap, .g-item:focus-visible .g-cap { opacity: 1; transform: none; }
.g-cap .mono { font-size: 11px; color: #9DBCF7; white-space: nowrap; }
.g-item.hidden { display: none; }

/* lightbox */
.lightbox { color: #EEF1F7; position: fixed; inset: 0; z-index: 80; background: rgba(5,7,10,.94); display: grid; place-items: center; padding: 64px 16px; backdrop-filter: blur(10px); }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1400px, 100%); display: grid; gap: 12px; }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: 10px; }
.lightbox figcaption { text-align: center; color: #B8C4D8; font-size: 14px; }
.lb-close { position: absolute; top: 18px; right: 18px; }
.lb-close, .lb-nav { all: unset; cursor: pointer; padding: 10px 16px; border-radius: 999px; background: rgba(238,241,247,.12); color: #EEF1F7; font-family: var(--fm); font-size: 14px; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; letter-spacing: -.18em; }
.lb-close:focus-visible, .lb-nav:focus-visible { outline: 2px solid var(--accent); }

/* touchpoints */
.touch-count { margin-top: 28px; font-size: 18px; color: var(--muted); }
.touch-count .mono { font-size: 56px; color: var(--ink); font-weight: 500; letter-spacing: -.04em; margin-right: 10px; }
.touch-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 32px; }
.tg { border-radius: var(--r); padding: 24px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.tg h3 { font-size: 18px; font-weight: 700; display: flex; justify-content: space-between; align-items: baseline; }
.tg h3 .mono { font-size: 12px; color: var(--accent); font-weight: 500; }
.tg ul { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tg li { font-size: 13px; padding: 5px 10px; border-radius: 999px; background: rgba(43,98,231,.07); color: #24375A; }
.tg:nth-child(3n+1) { background: linear-gradient(160deg, #E4ECFC, var(--panel)); }

/* kit */
.kit-grid { display: grid; gap: 14px; margin-top: 48px; }
.tool { border-radius: var(--r); padding: clamp(22px, 3vw, 36px); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.tool h3 { font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.tool-in { display: grid; grid-template-columns: 320px 1fr; gap: clamp(20px, 3vw, 44px); margin-top: 22px; align-items: start; }
.form { display: grid; gap: 8px; }
.form label { font-size: 13px; color: var(--muted); margin-top: 8px; }
.form input, .form select { background: var(--panel-2); border: 1px solid rgba(10,27,54,.18); border-radius: 10px; padding: 12px 14px; color: var(--ink); }
.form input::placeholder { color: #6B778C; }
.form .btn { margin-top: 18px; justify-content: center; }
.preview { border-radius: 12px; background: repeating-conic-gradient(#E4E8EF 0 25%, #EEF1F5 0 50%) 50% / 24px 24px; padding: 18px; display: grid; place-items: center; min-height: 300px; min-width: 0; }
.preview canvas { max-width: 100%; max-height: 560px; width: auto; height: auto; border-radius: 6px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.sig-wrap { background: #E9ECF2; }
#sigPreview { background: #fff; border-radius: 6px; padding: 22px 24px; max-width: 100%; overflow-x: auto; }
.downloads { margin-top: 56px; }
.downloads h3 { font-size: 22px; font-weight: 700; }
.dl-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.dl { display: grid; gap: 16px; align-content: space-between; text-decoration: none; padding: 22px; border-radius: var(--r); min-height: 170px; transition: transform .45s var(--ease); }
.dl:hover { transform: translateY(-4px); }
.dl .logo-full, .dl .logo-word { width: 100%; max-width: 200px; }
.dl .dl-mk { width: 64px; }
.dl span { display: grid; font-weight: 600; }
.dl small { font-size: 12px; color: var(--accent); font-weight: 500; }
.dl-light { background: var(--panel); color: var(--navy); box-shadow: inset 0 0 0 1px var(--line); }
.dl-navy { background: var(--navy); color: #EEF1F7; }
.dl-navy small { color: #9DBCF7; }
.dl-blue { background: var(--forward); color: #fff; }
.dl-blue small { color: #E6EEFF; }

/* footer */
.foot { border-top: 1px solid var(--line); padding-bottom: 48px; overflow: hidden; }
.marquee { padding-block: 40px; overflow: hidden; }
.mq-track { display: flex; gap: 48px; width: max-content; animation: mq 40s linear infinite; font-size: clamp(48px, 8vw, 120px); font-weight: 900; letter-spacing: -.05em; white-space: nowrap; }
.mq-track span.m { color: var(--accent); font-family: var(--fm); font-weight: 500; letter-spacing: -.03em; }
@keyframes mq { to { transform: translateX(-50%); } }
.foot-in { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.foot .logo-full { width: 220px; }

/* reveal */
.rv { opacity: 1; }

/* responsive */
@media (max-width: 1100px) {
  .nav ul { gap: 18px; }
  .touch-grid { grid-template-columns: repeat(2, 1fr); }
  .dl-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav nav { display: none; }
  .nav-cta { margin-left: auto; }
  .hero-in, .split, .dir-grid, .pf, .tool-in { grid-template-columns: 1fr; }
  .hero { padding-top: 96px; }
  .hero-visual { justify-self: center; max-width: 420px; order: -1; }
  .essence > div { grid-template-columns: 1fr; gap: 8px; }
  .logo-grid { grid-template-columns: 1fr 1fr; }
  .lt-wide { grid-column: span 2; }
  .lt-navy, .lt-blue, .lt-paper, .lt-stack { grid-column: span 1; }
  .donts { grid-template-columns: repeat(3, 1fr); }
  .swatches { grid-template-columns: 1fr 1fr; }
  .voice { grid-template-columns: 1fr; }
  .pf-list { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .valori-track { width: auto; flex-direction: column; padding-inline: var(--gut); }
  .value, .valori-intro { width: 100%; min-height: 320px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-cta { padding: 10px 14px; font-size: 13px; }
  .logo-grid { grid-template-columns: 1fr; }
  .lt-wide, .lt-light, .lt-blue, .lt-paper, .lt-stack, .lt-navy { grid-column: span 1; }
  .donts { grid-template-columns: 1fr 1fr; }
  .swatches { grid-template-columns: 1fr; }
  .rules { grid-template-columns: 1fr; }
  .sp { grid-template-columns: 80px 1fr 80px; font-size: 13px; }
  .scale > div { grid-template-columns: 1fr; gap: 4px; }
  .touch-grid { grid-template-columns: 1fr; }
  .dl-row { grid-template-columns: 1fr 1fr; }
  .ratio span { font-size: 0; }
  .gallery { columns: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .manifesto-text .w { opacity: 1; }
}
