/* ==========================================================================
   GB Portfolio — main.css
   ========================================================================== */
:root {
	--bg: #d8d8d5;
	--bg-2: #cfcfcb;
	--surface: #f1f1ee;
	--surface-2: #e9e9e6;
	--line: rgba(0, 0, 0, .09);
	--line-2: rgba(0, 0, 0, .16);
	--text: #121212;
	--muted: #55534e;
	--faint: #8a877f;
	--ember: #c98a1c;
	--gold: #a8700f;
	--thread: #d2372a;
	--accent: var(--gold);
	--grad: linear-gradient(100deg, #a8700f 0%, #d99a2b 55%, #f0c25a 100%);
	--radius: 22px;
	--radius-sm: 12px;
	--f-display: "Exo 2", system-ui, sans-serif;
	--f-body: "Exo 2", system-ui, -apple-system, "Segoe UI", sans-serif;
	--f-mono: "JetBrains Mono", ui-monospace, monospace;
	--ease: cubic-bezier(.2, .7, .1, 1);
	--wrap: 1240px;
	--gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-feature-settings: "ss01", "cv11";
	background: var(--bg);
	color: var(--text);
	font: 400 17px/1.65 var(--f-body);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--ember); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 12px; left: 12px; z-index: 100; background: var(--gold); color: #000; padding: 8px 14px; border-radius: 8px; }

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

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 760px; }
.muted { color: var(--muted); }
.icon { flex: none; }

/* cursor glow (desktop only) */
.cursor-glow {
	position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px;
	border-radius: 50%; pointer-events: none; z-index: 0; opacity: 0;
	background: radial-gradient(circle, rgba(201, 138, 28, .10), transparent 65%);
	transition: opacity .6s;
}
@media (hover: hover) { body.has-pointer .cursor-glow { opacity: 1; } }

/* ---------- Type ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -.02em; line-height: 1.08; }
.eyebrow {
	margin: 0 0 18px; font: 500 12.5px/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase;
	color: var(--gold); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--thread); }
.section__title { font-family: var(--f-display); font-size: clamp(36px, 5.2vw, 68px); font-weight: 560; }
.section__lead { color: var(--muted); font-size: clamp(17px, 1.5vw, 20px); max-width: 640px; margin: 22px 0 0; }
.h3 { font-family: var(--f-display); font-size: 28px; font-weight: 560; }
em { font-style: normal; }

/* ---------- Buttons / chips ---------- */
.btn {
	display: inline-flex; align-items: center; gap: 10px; justify-content: center;
	padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 15px; line-height: 1;
	transition: transform .35s var(--ease), background .3s, border-color .3s, box-shadow .35s;
	white-space: nowrap;
}
.btn .icon { transition: transform .35s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn--primary { background: var(--grad); color: #ffffff; box-shadow: 0 10px 40px -10px rgba(201, 138, 28, .55), inset 0 1px 0 rgba(255,255,255,.35); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 50px -10px rgba(201, 138, 28, .75), inset 0 1px 0 rgba(255,255,255,.35); }
.btn--ghost { border: 1px solid var(--line-2); background: rgba(255, 255, 255, .4); backdrop-filter: blur(10px); }
.btn--ghost:hover { border-color: rgba(201, 138, 28, .55); background: rgba(201, 138, 28, .07); }
.btn--small { padding: 10px 18px; font-size: 14px; }
.btn--lg { padding: 18px 30px; font-size: 16px; }

.pill {
	display: inline-flex; align-items: center; gap: 10px; margin: 0 0 28px; padding: 8px 16px 8px 10px;
	border: 1px solid var(--line-2); border-radius: 999px; font-size: 13.5px; color: var(--muted);
	background: rgba(255, 255, 255, .45); backdrop-filter: blur(12px);
}
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 4px rgba(201, 138, 28, .18); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(201, 138, 28, 0); } }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; color: var(--muted); }
.chips--sm li { padding: 4px 10px; font-size: 12px; font-family: var(--f-mono); }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font: 500 11.5px/1 var(--f-mono); letter-spacing: .04em; background: rgba(222, 222, 219, .72); backdrop-filter: blur(8px); border: 1px solid var(--line-2); color: var(--text); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #5ad17a; }
.badge--in-sviluppo::before { background: var(--gold); }
.badge--concluso::before { background: var(--faint); }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .4s, border-color .4s, transform .5s var(--ease); border-bottom: 1px solid transparent; }
.site-header.is-scrolled { background: rgba(222, 222, 219, .72); backdrop-filter: blur(18px) saturate(1.3); border-color: var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: -.01em; }
.brand__mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; font: 600 14px/1 var(--f-display); color: #ffffff; background: var(--grad); box-shadow: 0 6px 24px -6px rgba(201, 138, 28, .6); }
.nav { margin-left: auto; }
.nav__list { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.nav__list a { display: block; padding: 9px 14px; border-radius: 999px; font-size: 14.5px; color: var(--muted); transition: color .25s, background .25s; }
.nav__list a:hover, .nav__list .current-menu-item a { color: var(--text); background: rgba(0, 0, 0, .05); }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); place-items: center; }

@media (max-width: 900px) {
	.nav-toggle { display: grid; margin-left: auto; }
	.header-cta { display: none; }
	.nav { position: fixed; inset: 76px 0 auto; margin: 0; padding: 16px var(--gutter) 28px; background: rgba(222, 222, 219, .96); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .35s var(--ease); }
	.nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
	.nav__list { flex-direction: column; }
	.nav__list a { font-size: 22px; font-family: var(--f-display); padding: 12px 4px; color: var(--text); }
}

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(90px, 12vw, 160px) 0; }
.section--tight { padding-top: 0; }
.section__head { margin-bottom: clamp(44px, 6vw, 72px); max-width: 820px; }
.section__head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.page-head { padding-top: 170px; padding-bottom: 60px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: 140px 0 0; isolation: isolate; }
.scene { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
main > section, main > article { position: relative; z-index: 1; }
.hero__horizon {
	position: absolute; left: 50%; bottom: -78vw; width: 150vw; height: 100vw; transform: translateX(-50%); z-index: -1; border-radius: 50%;
	background: radial-gradient(closest-side, #07080a 93%, transparent 100%);
	box-shadow: 0 -2px 0 0 rgba(201, 138, 28, .55), 0 -18px 60px 0 rgba(201, 138, 28, .55), 0 -60px 180px 20px rgba(201, 138, 28, .28), inset 0 30px 80px -20px rgba(201, 138, 28, .35);
	pointer-events: none;
}
.hero__inner { text-align: center; display: flex; flex-direction: column; align-items: center; position: relative; padding-bottom: clamp(140px, 18vw, 220px); }
.hero__title { font-family: var(--f-display); font-size: clamp(46px, 8.4vw, 118px); font-weight: 560; line-height: .98; letter-spacing: -.045em; max-width: 16ch; }
.hero__title em { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.hero__text { max-width: 600px; margin: 30px auto 0; color: #2a2a2a; font-size: clamp(17px, 1.6vw, 20px); text-shadow: 0 1px 2px rgba(222, 222, 219, .9), 0 0 24px rgba(222, 222, 219, .95), 0 0 48px rgba(222, 222, 219, .8); }
.hero__inner::before { content: ""; position: absolute; left: 50%; top: 52%; width: min(760px, 92vw); height: 300px; transform: translate(-50%, -30%); background: radial-gradient(closest-side, rgba(222, 222, 219, .62), transparent); z-index: -1; pointer-events: none; }
.hero__title { text-shadow: 0 0 40px rgba(222, 222, 219, .55); }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 40px; }
.hero [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.hero [data-split] .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 60ms + 150ms); }
.hero [data-split].is-in .w > span { transform: none; }

.marquee { position: absolute; left: 0; right: 0; bottom: 0; border-top: 1px solid var(--line); background: rgba(222, 222, 219, .55); backdrop-filter: blur(10px); overflow: hidden; padding: 18px 0; }
.marquee__track { display: flex; gap: 28px; width: max-content; animation: marquee 38s linear infinite; font: 400 15px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.marquee__sep { color: var(--thread); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Method / filo rosso ---------- */
.method { overflow: hidden; }
.thread-line { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; opacity: .9; }
.thread-line path { fill: none; stroke: var(--thread); stroke-width: 1.4; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 6px rgba(210, 55, 42, .5)); }
.method .wrap { position: relative; z-index: 1; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { position: relative; padding: 30px 26px 32px; border-radius: var(--radius); background: linear-gradient(180deg, rgba(255, 255, 255, .62), rgba(255, 255, 255, .42)); border: 1px solid var(--line); backdrop-filter: blur(6px); }
.step__num { display: block; font: 500 13px/1 var(--f-mono); color: var(--thread); margin-bottom: 44px; }
.step__num::after { content: ""; display: inline-block; vertical-align: middle; width: 40px; height: 1px; margin-left: 12px; background: linear-gradient(90deg, var(--thread), transparent); }
.step__title { font-family: var(--f-display); font-size: 30px; margin-bottom: 12px; }
.step p { margin: 0; color: var(--muted); font-size: 15.5px; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Areas ---------- */
.areas__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.area { grid-column: span 2; position: relative; display: flex; flex-direction: column; padding: 32px 30px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: border-color .4s, transform .5s var(--ease); }
.area:nth-child(4), .area:nth-child(5) { grid-column: span 3; }
.area:hover { border-color: rgba(201, 138, 28, .3); transform: translateY(-4px); }
[data-spotlight]::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(201, 138, 28, .13), transparent 60%); }
[data-spotlight]:hover::before { opacity: 1; }
.area__icon { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; color: var(--gold); background: rgba(201, 138, 28, .08); border: 1px solid rgba(201, 138, 28, .2); margin-bottom: 28px; }
.area__icon .icon { width: 24px; height: 24px; }
.area__title { font-family: var(--f-display); font-size: 27px; margin-bottom: 12px; }
.area__short { color: var(--muted); margin: 0 0 22px; font-size: 15.5px; }
.area__list { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 9px; font-size: 14.5px; }
.area__list li { display: flex; gap: 10px; align-items: baseline; }
.area__list li::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--thread); transform: translateY(-2px); }
.area__link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px; color: var(--gold); padding: 0; }
.area__link .icon { transition: transform .3s var(--ease); }
.area__link:hover .icon { transform: translateX(4px); }
@media (max-width: 980px) { .areas__grid { grid-template-columns: repeat(2, 1fr); } .area, .area:nth-child(4), .area:nth-child(5) { grid-column: span 1; } .area:nth-child(5) { grid-column: span 2; } }
@media (max-width: 620px) { .areas__grid { grid-template-columns: 1fr; } .area:nth-child(5) { grid-column: span 1; } }

/* ---------- Journey (scroll-driven projects) ---------- */
.journey { position: relative; padding-top: clamp(90px, 12vw, 160px); }
.journey__intro { margin-bottom: 10px; }
.journey__track { position: relative; height: calc(var(--steps, 10) * 75vh + 100vh); }
.journey__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.journey__stage { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 100px); align-items: center; }
.journey__panels { position: relative; min-height: 420px; }
.jp { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(40px); filter: blur(6px); transition: opacity .7s var(--ease), transform .9s var(--ease), filter .7s; pointer-events: none; }
.jp.is-active { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.jp.is-past { transform: translateY(-40px); }
.jp__cat { margin: 0 0 22px; display: flex; align-items: center; gap: 14px; font: 500 12px/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: color-mix(in srgb, var(--accent) 75%, #fff); }
.jp__num { display: grid; place-items: center; min-width: 38px; height: 38px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent); color: var(--text); letter-spacing: 0; }
.jp__title { font-family: var(--f-display); font-size: clamp(42px, 5.6vw, 84px); font-weight: 600; letter-spacing: -.045em; line-height: .95; }
.jp__tagline { font-size: clamp(18px, 1.7vw, 22px); color: var(--text); margin: 20px 0 0; max-width: 34ch; }
.jp__desc { color: var(--muted); font-size: 15.5px; margin: 14px 0 22px; max-width: 46ch; }
.jp .chips { margin-bottom: 28px; }
.journey__visual { position: relative; aspect-ratio: 4 / 5; max-height: 70vh; justify-self: center; width: min(100%, 460px); }
.jv { position: absolute; inset: 0; margin: 0; border-radius: 26px; overflow: hidden; border: 1px solid rgba(0,0,0,.1); background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--accent) 40%, #f1f1ee), #e7e7e4 72%); box-shadow: 0 40px 120px -40px color-mix(in srgb, var(--accent) 80%, transparent), 0 0 0 1px rgba(255,255,255,.5) inset; opacity: 0; transform: scale(.92) rotate(-3deg) translateY(30px); clip-path: inset(100% 0 0 0 round 26px); transition: opacity .6s var(--ease), transform 1s var(--ease), clip-path 1s var(--ease); }
.jv.is-active { opacity: 1; transform: none; clip-path: inset(0 0 0 0 round 26px); }
.jv.is-past { opacity: 0; transform: scale(1.04) rotate(2deg) translateY(-30px); clip-path: inset(0 0 100% 0 round 26px); }
.jv img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.jv--icon { display: grid; place-items: center; }
.jv--icon img { width: 42%; height: auto; object-fit: contain; filter: drop-shadow(0 30px 50px rgba(0,0,0,.6)); }
.jv--icon::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, transparent 0 26px, color-mix(in srgb, var(--accent) 10%, transparent) 26px 27px); }
.jv .badge { position: absolute; top: 16px; left: 16px; z-index: 1; }
.journey__hud { position: absolute; left: 0; right: 0; bottom: 28px; display: flex; align-items: center; gap: 22px; font: 500 13px/1 var(--f-mono); color: var(--muted); }
.journey__count b { color: var(--text); font-weight: 500; }
.journey__bar { flex: 1; height: 1px; background: var(--line-2); position: relative; overflow: hidden; }
.journey__bar i { position: absolute; inset: 0; background: var(--grad); transform-origin: left; transform: scaleX(0); }
.journey__skip { color: var(--muted); transition: color .3s; }
.journey__skip:hover { color: var(--text); }
@media (max-width: 860px) {
	.journey__track { height: calc(var(--steps, 10) * 85vh + 100vh); }
	.journey__stage { grid-template-columns: 1fr; gap: 22px; }
	.journey__visual { order: -1; width: min(62vw, 300px); max-height: 38vh; }
	.journey__panels { min-height: 330px; }
	.jp__desc { display: none; }
	.jp .chips { margin-bottom: 18px; }
	.journey__hud { bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) { .journey__track { height: auto; } .journey__sticky { position: static; height: auto; } }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13.5px; color: var(--muted); transition: .25s; display: inline-flex; gap: 8px; align-items: center; }
.filter span { font: 500 11px/1 var(--f-mono); opacity: .7; }
.filter:hover { color: var(--text); border-color: rgba(201, 138, 28, .45); }
.filter.is-active { background: var(--text); color: #f4f4f2; border-color: var(--text); }
@media (max-width: 640px) {
	.filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter); scrollbar-width: none; width: calc(100% + var(--gutter) * 2); }
	.filters::-webkit-scrollbar { display: none; }
	.filter { white-space: nowrap; flex: none; }
}

/* ---------- Project grid / cards ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; grid-auto-flow: dense; }
.card { position: relative; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: border-color .4s, transform .6s var(--ease), opacity .45s, box-shadow .5s; transform-style: preserve-3d; }
.card.is-hidden { display: none; }
.card--featured { grid-column: span 2; }
.card:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: 0 30px 80px -40px color-mix(in srgb, var(--accent) 70%, transparent); }
.card__link { display: flex; flex-direction: column; height: 100%; }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--accent) 35%, #f1f1ee), #e7e7e4 70%); }
.card--featured .card__media { aspect-ratio: 16 / 9; }
.card__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform 1.1s var(--ease), filter .6s; filter: saturate(.92); }
.card:hover .card__media img { transform: scale(1.05); filter: saturate(1.05); }
.card__media--icon { display: grid; place-items: center; }
.card__media--icon img { width: 38%; height: auto; max-height: 62%; object-fit: contain; filter: drop-shadow(0 20px 40px rgba(0,0,0,.5)); }
.card__media--icon::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, transparent 0 22px, color-mix(in srgb, var(--accent) 9%, transparent) 22px 23px); pointer-events: none; }
.card__monogram { position: absolute; inset: 0; display: grid; place-items: center; font: 600 96px/1 var(--f-display); color: color-mix(in srgb, var(--accent) 70%, #fff); }
.card .badge { position: absolute; top: 14px; left: 14px; z-index: 1; }
.card__body { display: flex; flex-direction: column; gap: 10px; padding: 24px 24px 26px; flex: 1; }
.card__cat { margin: 0; font: 500 11.5px/1.4 var(--f-mono); text-transform: uppercase; letter-spacing: .12em; color: color-mix(in srgb, var(--accent) 80%, #fff); }
.card__title { font-family: var(--f-display); font-size: 27px; font-weight: 580; }
.card--featured .card__title { font-size: 34px; }
.card__tagline { margin: 0; color: var(--muted); font-size: 15px; }
.card .chips { margin-top: 6px; }
.card__cta { margin-top: auto; padding-top: 14px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text); opacity: .8; transition: opacity .3s; }
.card__cta .icon { transition: transform .35s var(--ease); }
.card:hover .card__cta { opacity: 1; }
.card:hover .card__cta .icon { transform: translateX(5px); }
@media (max-width: 1020px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } .card--featured { grid-column: span 1; } .card--featured .card__media { aspect-ratio: 4 / 3; } }

/* ---------- Stats ---------- */
.stats { padding: 40px 0; border-block: 1px solid var(--line); background: var(--bg-2); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 26px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.stat:first-child { border-left: 0; }
.stat__num { font: 560 clamp(52px, 6vw, 84px)/1 var(--f-display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { color: var(--muted); font-size: 15px; }
@media (max-width: 820px) { .stats__grid { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(3) { border-left: 0; } .stat { border-top: 1px solid var(--line); } .stat:nth-child(-n+2) { border-top: 0; } }

/* ---------- Story / blog ---------- */
.story__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: start; }
.story__book { position: relative; overflow: hidden; padding: clamp(32px, 4vw, 52px); border-radius: var(--radius); border: 1px solid var(--line); background: radial-gradient(120% 120% at 0% 0%, rgba(201, 138, 28, .16), transparent 55%), var(--surface); }
.story__book .section__title { font-size: clamp(32px, 4vw, 50px); }
.story__book .muted { margin: 18px 0 30px; font-size: 15px; }
.story__blog { padding-top: 10px; }
.story__blog .section__head { margin-bottom: 18px; }
.link-arrow { display: inline-flex; gap: 8px; align-items: center; font-size: 14.5px; font-weight: 600; color: var(--gold); }
.posts { list-style: none; margin: 0; padding: 0; }
.post-row a { display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; align-items: center; padding: 22px 4px; border-top: 1px solid var(--line); transition: padding .35s var(--ease), background .3s; }
.post-row:last-child a { border-bottom: 1px solid var(--line); }
.post-row a:hover { padding-left: 14px; background: linear-gradient(90deg, rgba(201, 138, 28, .06), transparent); }
.post-row__meta { grid-column: 1; font: 500 11.5px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--faint); }
.post-row__title { grid-column: 1; font-family: var(--f-display); font-size: 21px; }
.post-row .icon { grid-row: 1 / 3; grid-column: 2; color: var(--muted); transition: transform .35s var(--ease), color .3s; }
.post-row a:hover .icon { transform: translateX(4px); color: var(--gold); }
@media (max-width: 900px) { .story__grid { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { overflow: hidden; text-align: center; }
.contact__glow { position: absolute; left: 50%; top: 55%; width: 900px; height: 900px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(201, 138, 28, .22), transparent); pointer-events: none; }
.contact__inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.contact__title { font-family: var(--f-display); font-size: clamp(42px, 7vw, 96px); font-weight: 560; max-width: 14ch; letter-spacing: -.045em; }
.contact .section__lead { margin-inline: auto; }
.contact__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 40px; }
.contact__note { margin-top: 26px; font-size: 14px; }
.contact__form { width: 100%; max-width: 620px; margin-top: 36px; text-align: left; }
.contact__form input:not([type=submit]), .contact__form textarea, .contact__form select { width: 100%; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font: inherit; }
.contact__form input[type=submit], .contact__form button[type=submit] { background: var(--grad); color: #ffffff; border: 0; border-radius: 999px; padding: 14px 26px; font-weight: 600; cursor: pointer; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 54px 0 30px; background: var(--bg-2); position: relative; }
.site-footer__inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; flex-wrap: wrap; }
.site-footer__inner .muted { font-size: 14px; margin: 14px 0 0; max-width: 360px; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13.5px; }
.site-footer__bottom p { margin: 0; }
.footer-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; color: var(--muted); }
.socials { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; }
.socials a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--muted); transition: .3s; }
.socials a:hover { color: var(--text); border-color: var(--gold); transform: translateY(-2px); }

/* ---------- Case study ---------- */
.case__hero { position: relative; padding: 160px 0 70px; overflow: hidden; }
.case__glow { position: absolute; right: -10%; top: -30%; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 30%, transparent), transparent); pointer-events: none; }
.case__hero .wrap { position: relative; }
.link-back { display: inline-block; color: var(--muted); font-size: 14.5px; margin-bottom: 34px; transition: color .3s; }
.link-back:hover { color: var(--text); }
.case__hero .chips { margin-bottom: 26px; }
.case__hero .badge { background: transparent; }
.case__title { font-family: var(--f-display); font-size: clamp(48px, 8vw, 110px); font-weight: 560; letter-spacing: -.045em; }
.case__tagline { font-size: clamp(19px, 2vw, 24px); color: var(--muted); max-width: 720px; margin: 22px 0 0; }
.case__layout { display: grid; grid-template-columns: 300px 1fr; gap: clamp(30px, 5vw, 72px); padding-bottom: 100px; align-items: start; }
.case__meta { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 12px; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.case__meta dl { margin: 0 0 12px; display: grid; gap: 20px; }
.case__meta dt { font: 500 11.5px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--faint); margin-bottom: 8px; }
.case__meta dd { margin: 0; }
.case__cover { margin: 0 0 40px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--accent) 35%, #f1f1ee), #e7e7e4 70%); }
.case__cover img { width: 100%; max-height: 720px; object-fit: cover; object-position: top; }
.case__cover--icon { display: grid; place-items: center; padding: 70px; }
.case__cover--icon img { width: 200px; height: auto; object-fit: contain; }
.case__lead { font-family: var(--f-display); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.35; margin: 0 0 36px; }
.case__next { display: flex; flex-direction: column; gap: 6px; padding-block: 60px 90px; border-top: 1px solid var(--line); }
.case__next-title { display: inline-flex; align-items: center; gap: 16px; font: 560 clamp(36px, 6vw, 80px)/1 var(--f-display); letter-spacing: -.03em; transition: color .3s; }
.case__next-title .icon { width: .6em; height: .6em; transition: transform .4s var(--ease); }
.case__next:hover .case__next-title { color: var(--gold); }
.case__next:hover .case__next-title .icon { transform: translateX(10px); }
@media (max-width: 900px) { .case__layout { grid-template-columns: 1fr; } .case__meta { position: static; order: 2; } }

/* ---------- Prose / articles ---------- */
.prose { font-size: 18px; line-height: 1.75; color: #2b2a27; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-family: var(--f-display); font-size: 32px; margin-top: 1.8em; color: var(--text); }
.prose h3 { font-family: var(--f-display); font-size: 24px; margin-top: 1.5em; }
.prose a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(201, 138, 28, .4); }
.prose ul { padding-left: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 22px; margin: .5em 0; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--thread); }
.prose blockquote { margin-left: 0; padding-left: 22px; border-left: 2px solid var(--thread); font-family: var(--f-display); font-size: 1.2em; }
.prose img, .prose figure { border-radius: var(--radius-sm); }
.article__head { padding-top: 160px; padding-bottom: 40px; }
.article__title { font-family: var(--f-display); font-size: clamp(38px, 6vw, 68px); font-weight: 560; margin-bottom: 18px; }
.article__cover { margin: 0 auto 50px; }
.article__cover img { border-radius: var(--radius); width: 100%; }
.article { padding-bottom: 100px; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); overflow: hidden; transition: border-color .3s, transform .5s var(--ease); }
.post-card:hover { border-color: rgba(201, 138, 28, .35); transform: translateY(-4px); }
.post-card__media img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.post-card__body { padding: 22px; display: grid; gap: 10px; }
.post-card .card__title { font-size: 23px; }
.post-card .card__cat { color: var(--gold); }
@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }
.pagination { margin-top: 50px; display: flex; gap: 8px; justify-content: center; }
.pagination .page-numbers { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); }
.pagination .current { background: var(--text); color: #f4f4f2; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.reveal, .hero [data-split] .w > span { opacity: 1; transform: none; }
}

/* ==========================================================================
   v1.2 — 3D scene hero, social group, one-by-one viewer
   ========================================================================== */
.scene { transition: opacity .2s linear; }
.hero { justify-content: center; }
.hero__inner { text-align: left; align-items: flex-start; padding-bottom: clamp(120px, 14vw, 180px); }
.hero__inner::before { display: none; }
.hero__title { max-width: 11ch; font-size: clamp(46px, 7vw, 104px); }
.hero__text { margin-left: 0; max-width: 470px; text-shadow: none; color: var(--muted); }
.hero__actions { justify-content: flex-start; }
.hero__horizon { display: none; }
@media (max-width: 860px) {
	.hero { justify-content: flex-end; }
	.hero__inner { padding-top: 46vh; padding-bottom: 110px; }
	.hero__title { font-size: clamp(40px, 11vw, 60px); }
}
/* sections sit on the 3D scene: keep cards readable */
.step, .area { background: rgba(255, 255, 255, .55); backdrop-filter: blur(14px); }

/* ---------- collage (group of social brands) ---------- */
.collage { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); gap: 6px; padding: 6px; }
.collage__item { position: relative; overflow: hidden; border-radius: 10px; background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--accent) 45%, #f1f1ee), #e7e7e4 75%); }
.collage__item img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease); }
.collage__item--icon { display: grid; place-items: center; }
.collage__item--icon img { width: 50%; height: auto; object-fit: contain; }
.collage__count { display: flex; flex-direction: column; justify-content: center; align-items: center; border-radius: 10px; background: var(--grad); color: #ffffff; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; }
.collage__count b { font-size: clamp(34px, 4vw, 56px); line-height: 1; letter-spacing: -.04em; }
.card:hover .collage__item img { transform: scale(1.06); }
.card:hover .collage__item:nth-child(2n) img { transform: scale(1.06) translateY(-3%); }

.card--group { grid-column: 1 / -1; }
.card--group .card__link { display: grid; grid-template-columns: 1.35fr 1fr; width: 100%; text-align: left; padding: 0; }
.card--group .card__media { aspect-ratio: 16 / 9; }
.card--group .card__media .collage { grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(2, 1fr); }

.card--group .card__body { justify-content: center; padding: clamp(26px, 4vw, 52px); }
.card--group .card__title { font-size: clamp(32px, 3.6vw, 52px); }
@media (max-width: 860px) {
	.card--group .card__link { grid-template-columns: 1fr; }
	.card--group .card__media .collage { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); }
	.card--group .card__media { aspect-ratio: 1; }
}

.jv--group { background: #e7e7e4; }
.jv--group .collage { padding: 8px; gap: 8px; }

/* ---------- one-by-one viewer ---------- */
body.gallery-open { overflow: hidden; }
.gallery { width: min(1180px, calc(100vw - 32px)); max-width: none; max-height: calc(100svh - 32px); margin: auto; padding: 0; border: 1px solid var(--line-2); border-radius: 28px; background: #e7e7e4; color: var(--text); overflow: hidden; box-shadow: 0 60px 160px -40px rgba(60, 45, 20, .28); }
.gallery::backdrop { background: rgba(190, 190, 186, .55); backdrop-filter: blur(10px); }
.gallery[open] { display: flex; flex-direction: column; animation: galIn .5s var(--ease); }
@keyframes galIn { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.gallery__head { display: flex; align-items: center; gap: 18px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.gallery__head .eyebrow { margin: 0; }
.gallery__count { margin-left: auto; font: 500 13px/1 var(--f-mono); color: var(--muted); }
.gallery__count b { color: var(--text); font-weight: 500; }
.gallery__close { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: .3s; }
.gallery__close:hover { border-color: var(--gold); transform: rotate(90deg); }
.gallery__stage { position: relative; flex: none; overflow: hidden; height: min(620px, 64svh); }
.gslide { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 56px); padding: clamp(18px, 3vw, 36px) clamp(18px, 5vw, 76px); align-items: center; opacity: 0; transform: translateX(60px); transition: opacity .55s var(--ease), transform .8s var(--ease); pointer-events: none; }
.gslide.is-past { transform: translateX(-60px); }
.gslide.is-active { opacity: 1; transform: none; pointer-events: auto; }
.gslide__media { margin: 0; height: 100%; max-height: 540px; aspect-ratio: 4 / 5; justify-self: center; border-radius: 22px; overflow: hidden; border: 1px solid var(--line-2); background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--accent) 40%, #f1f1ee), #e7e7e4 72%); box-shadow: 0 40px 100px -40px color-mix(in srgb, var(--accent) 80%, transparent); }
.gslide__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.gslide__media--icon { display: grid; place-items: center; }
.gslide__media--icon img { width: 45%; height: auto; object-fit: contain; }
.gslide__title { font-size: clamp(36px, 4.4vw, 64px); font-weight: 600; letter-spacing: -.045em; line-height: .95; }
.gslide__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.gslide .chips { margin-bottom: 22px; }
.gallery__nav { position: absolute; top: 50%; width: 50px; height: 50px; margin-top: -25px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .7); backdrop-filter: blur(8px); font-size: 20px; z-index: 2; transition: .3s; }
.gallery__nav:hover { border-color: var(--gold); background: rgba(201, 138, 28, .12); }
.gallery__nav--prev { left: 14px; }
.gallery__nav--next { right: 14px; }
.gallery__thumbs { display: flex; gap: 10px; padding: 14px 22px 18px; border-top: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.gallery__thumbs::-webkit-scrollbar { display: none; }
.gthumb { flex: none; display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 13.5px; transition: .3s; }
.gthumb img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: top; background: color-mix(in srgb, var(--accent) 40%, #f1f1ee); }
.gthumb--icon img { object-fit: contain; padding: 5px; }
.gthumb:hover { color: var(--text); border-color: var(--line-2); }
.gthumb.is-active { color: var(--text); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
@media (max-width: 760px) {
	.gallery { border-radius: 22px; }
	.gallery__stage { height: min(640px, 70svh); }
	.gslide { grid-template-columns: 1fr; align-content: start; gap: 16px; padding: 16px 18px; overflow-y: auto; }
	.gslide__media { height: auto; width: 62%; max-height: 34svh; }
	.gslide .jp__desc { display: none; }
	.gallery__nav { top: 18%; }
}

/* ==========================================================================
   v1.3 — Palette A "Grafite & Oro" + typography like the reference
   (Exo 2 light uppercase, italic accent words, mono UI details)
   ========================================================================== */
body { background: radial-gradient(120% 90% at 65% 30%, #e6e6e3, #d3d3cf 70%) fixed, var(--bg); font-feature-settings: normal; }
.section__title, .hero__title, .jp__title, .case__title, .contact__title, .gslide__title, .step__title, .area__title, .article__title, .case__next-title {
	font-weight: 300; text-transform: uppercase; letter-spacing: -.005em; line-height: 1;
}
.hero__title em, .section__title em, .contact__title em { text-transform: none; font-style: italic; font-weight: 300; color: var(--gold); background: none; -webkit-text-fill-color: currentColor; }
.hero__title .sl { color: var(--gold); font-weight: 400; }
.hero__title { font-size: clamp(42px, 6.2vw, 92px); max-width: 12ch; text-shadow: none; }
.card__title, .post-row__title, .h3 { font-weight: 500; letter-spacing: -.01em; }
.stat__num { font-weight: 300; }
.prose h2, .prose h3 { font-weight: 400; text-transform: uppercase; }

/* mono UI details */
.brand__mark { display: none; }
.brand__name { font: 500 13px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .02em; }
.brand__name::before { content: "("; } .brand__name::after { content: ")"; }
.nav__list a { font: 400 13px/1 var(--f-mono); text-transform: lowercase; color: var(--text); }
.nav__list a::after { content: " ↗"; color: var(--gold); }
.eyebrow { font-family: var(--f-mono); color: var(--gold); }
.eyebrow::before { background: var(--thread); }
.jp__num { border-color: var(--line-2); }
.pill { background: rgba(255, 255, 255, .5); }

/* buttons: ink pills like the reference */
.btn--primary { background: #121212; color: #f4f2ec; box-shadow: 0 12px 30px -14px rgba(0, 0, 0, .5); }
.btn--primary:hover { background: #000; box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .55); }
.btn { font-family: var(--f-mono); font-weight: 500; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.btn--ghost { border-color: rgba(0, 0, 0, .55); background: transparent; }
.btn--ghost:hover { background: rgba(0, 0, 0, .05); border-color: #000; }
.filter.is-active { background: #121212; color: #f4f2ec; border-color: #121212; }
.collage__count { background: #121212; color: #f4f2ec; }

/* surfaces on light */
.site-header.is-scrolled { background: rgba(225, 225, 222, .78); }
.stats { background: rgba(255, 255, 255, .35); }
.site-footer { background: rgba(255, 255, 255, .3); }
.card, .area, .step, .case__meta, .story__book, .post-card { background: rgba(255, 255, 255, .55); backdrop-filter: blur(14px); border-color: rgba(0, 0, 0, .07); }
.card:hover { box-shadow: 0 30px 70px -40px rgba(80, 55, 15, .45); }
.badge { background: rgba(255, 255, 255, .85); color: #121212; border-color: rgba(0, 0, 0, .08); }
.jv, .gslide__media { border-color: rgba(0, 0, 0, .08); box-shadow: 0 40px 90px -45px rgba(80, 55, 15, .55); }
.card__cat, .jp__cat { color: color-mix(in srgb, var(--accent) 70%, #121212); }
.gallery { background: #ecece9; border-color: rgba(0, 0, 0, .1); }
.gallery__nav { background: rgba(255, 255, 255, .8); }
.marquee { background: rgba(255, 255, 255, .35); }
.journey__bar i { background: #121212; }
.contact__glow { background: radial-gradient(closest-side, rgba(224, 164, 58, .25), transparent); }
.thread-line path { filter: none; opacity: .8; }
::selection { background: #121212; color: #f4f2ec; }
.skip:focus { background: #121212; color: #fff; }

/* ==========================================================================
   v1.4 — photographic scroll film (fibre-optic stills)
   ========================================================================== */
.scene { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.scene img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 46%; will-change: transform, opacity, filter; opacity: 0;
	-webkit-mask-image: radial-gradient(ellipse 70% 75% at 50% 48%, #000 40%, transparent 72%);
	        mask-image: radial-gradient(ellipse 70% 75% at 50% 48%, #000 40%, transparent 72%); }
.scene img[data-layer="ring"] { opacity: 1; }
.scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: screen; }
@media (max-width: 860px) { .scene img { object-fit: cover; object-position: 50% 50%; } }

/* ---------- books ---------- */
.books { display: grid; gap: 12px; margin: 26px 0 6px; }
.book { display: flex; align-items: center; gap: 18px; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .5); transition: transform .4s var(--ease), border-color .3s, box-shadow .4s; }
.book:hover { transform: translateY(-3px); border-color: rgba(168, 112, 15, .45); box-shadow: 0 20px 40px -26px rgba(80, 55, 15, .5); }
.book__num { flex: none; display: grid; place-items: center; width: 64px; height: 84px; border-radius: 6px 10px 10px 6px; background: linear-gradient(135deg, #2a2620, #121212); color: #e9c46a; font: 300 26px/1 var(--f-display); box-shadow: inset 4px 0 0 rgba(255, 255, 255, .08), 0 10px 20px -10px rgba(0, 0, 0, .5); }
.book--next .book__num { background: linear-gradient(135deg, #c9a45c, #8a6a2f); color: #fff; }
.book__body { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.book__body .badge { margin-bottom: 4px; }
.book__title { font: 400 22px/1.1 var(--f-display); text-transform: uppercase; }
.book__meta { font-size: 14px; color: var(--muted); }
.book__cta { margin-top: 4px; display: inline-flex; align-items: center; gap: 6px; font: 500 12.5px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--gold); }

/* ==========================================================================
   v1.6 — Giant-word hero: one real project inside each letter; the word opens on scroll
   ========================================================================== */
.hero--word { justify-content: flex-end; min-height: 100svh; }
.hero-word { position: absolute; left: 0; right: 0; top: 12vh; display: flex; justify-content: center; margin: 0; z-index: 1; pointer-events: none;
	font: 800 25vw/.82 var(--f-display); letter-spacing: -.045em; text-transform: uppercase; }
.hw { display: inline-block; will-change: transform, opacity; }
.hw b { display: inline-block; font-weight: 800; background-image: var(--img); background-size: cover; background-position: 50% 25%;
	-webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
	filter: drop-shadow(0 24px 30px rgba(60, 45, 20, .18));
	animation: hwRise 1.3s cubic-bezier(.2, .7, .1, 1) both, hwDrift 18s ease-in-out infinite alternate;
	animation-delay: calc(var(--i) * 90ms + 120ms), 0s; }
.hw:nth-child(2n) b { animation-duration: 1.3s, 23s; }
@keyframes hwRise { from { transform: translateY(40%) scale(.92); opacity: 0; } }
@keyframes hwDrift { to { background-position: 50% 80%; } }
.hero--word .hero__inner { display: grid; grid-template-columns: auto 1fr; column-gap: clamp(30px, 5vw, 80px); align-items: end; text-align: left; padding-top: 0; padding-bottom: clamp(110px, 12vw, 150px); z-index: 2; }
.hero--word .pill { grid-column: 1 / -1; justify-self: start; margin-bottom: 18px; }
.hero--word .hero__title { font-size: clamp(30px, 3.4vw, 48px); max-width: 15ch; }
.hero--word .hero__text { margin: 0; max-width: 460px; align-self: end; }
.hero--word .hero__actions { grid-column: 1 / -1; margin-top: 26px; }
@media (max-width: 860px) {
	.hero-word { top: 15vh; font-size: 25vw; }
	.hero--word .hero__inner { grid-template-columns: 1fr; row-gap: 16px; padding-top: 30vh; padding-bottom: 100px; }
	.hero--word .hero__title { font-size: clamp(30px, 8vw, 40px); }
}
@media (prefers-reduced-motion: reduce) { .hw b { animation: none; } }

.book__cover { flex: none; width: 74px; height: 108px; object-fit: cover; border-radius: 3px 8px 8px 3px; box-shadow: inset 4px 0 0 rgba(255,255,255,.1), 0 14px 26px -12px rgba(0,0,0,.55); transition: transform .5s var(--ease); }
.book:hover .book__cover { transform: rotate(-3deg) scale(1.04); }

/* collage: 11 brands + counter */
.collage { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(4, 1fr); }
.card--group .card__media .collage { grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(2, 1fr); }
@media (max-width: 860px) { .card--group .card__media .collage { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(4, 1fr); } .card--group .card__media { aspect-ratio: 3 / 4; } }

/* journey frame: landscape so app screenshots read whole */
.journey__visual { aspect-ratio: 4 / 3; width: min(100%, 640px); max-height: 66vh; }
.jv img { object-position: left top; }
.jv--group .collage { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(3, 1fr); }
@media (max-width: 860px) { .journey__visual { width: min(86vw, 420px); max-height: 34vh; } }

/* ==========================================================================
   v1.9 — 3D clay "UMANE": pinned hero, frames scrubbed by scroll
   ========================================================================== */
.hero--3d { min-height: 0; height: 210vh; height: 210svh; padding: 0; display: block; overflow: visible; }
.hero--3d .hero__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.hero3d { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero3d canvas, .hero3d__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero3d__poster { transition: opacity .4s; }
.hero3d.is-ready .hero3d__poster { opacity: 0; }
.hero--3d .hero__inner { display: grid; grid-template-columns: auto 1fr; column-gap: clamp(30px, 5vw, 80px); align-items: end; text-align: left; padding-top: 0; padding-bottom: clamp(96px, 11vw, 140px); z-index: 2; position: relative; transition: opacity .3s; }
.hero--3d .pill { grid-column: 1 / -1; justify-self: start; margin-bottom: 18px; }
.hero--3d .hero__title { font-size: clamp(30px, 3.4vw, 48px); max-width: 15ch; }
.hero--3d .hero__text { margin: 0; max-width: 460px; }
.hero--3d .hero__actions { grid-column: 1 / -1; margin-top: 26px; }
.hero--3d .marquee { position: relative; z-index: 2; }
@media (max-width: 860px) {
	.hero--3d { height: 190svh; }
	.hero3d canvas, .hero3d__poster { object-position: 50% 0%; }
	.hero--3d .hero__inner { grid-template-columns: 1fr; row-gap: 14px; padding-bottom: 92px; }
	.hero--3d .hero__title { font-size: clamp(30px, 8.4vw, 40px); }
	.hero--3d .hero__text { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .hero--3d { height: auto; } .hero--3d .hero__pin { position: relative; height: 100svh; } }

.hero3d__poster { position: absolute; inset: 0; }
.hero3d__poster img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
@media (max-width: 860px) { .hero3d__poster img { object-position: 50% 0%; transform: translateY(-20%); } }

.scene { opacity: 0; }

/* ==========================================================================
   v2.0 — home optimisation: tighter rhythm, compact project index, clearer numbers
   ========================================================================== */
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section__head { margin-bottom: clamp(32px, 4vw, 52px); }
.journey { padding-top: clamp(64px, 8vw, 104px); }
.journey__intro .section__lead { margin-top: 14px; }

/* compact index: one row per project */
.work .grid { grid-template-columns: 1fr; gap: 0; border-top: 1px solid rgba(0,0,0,.1); }
.work .card, .work .card--featured, .work .card--group { grid-column: auto; border: 0; border-bottom: 1px solid rgba(0,0,0,.1); border-radius: 0; background: transparent; backdrop-filter: none; box-shadow: none; transform: none !important; }
.work .card:hover { background: rgba(255,255,255,.45); box-shadow: none; }
.work .card__link, .work .card--group .card__link { display: grid; grid-template-columns: 132px 1fr auto; align-items: center; gap: 26px; padding: 16px 12px; }
.work .card__media, .work .card--featured .card__media, .work .card--group .card__media { aspect-ratio: 4 / 3; width: 132px; border-radius: 10px; }
.work .card__media img { object-position: left top; }
.work .card .badge { top: 6px; left: 6px; font-size: 9.5px; padding: 3px 6px; }
.work .card__body, .work .card--group .card__body { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.4fr); grid-template-rows: auto auto; column-gap: 28px; row-gap: 4px; padding: 0; align-items: baseline; }
.work .card__cat { grid-column: 1; grid-row: 1; font-size: 10.5px; }
.work .card__title, .work .card--featured .card__title, .work .card--group .card__title { grid-column: 1; grid-row: 2; font-size: 24px; }
.work .card__tagline { grid-column: 2; grid-row: 1 / 3; align-self: center; font-size: 14.5px; }
.work .card .chips { display: none; }
.work .card__cta { grid-column: 3; padding: 0; font-size: 0; }
.work .card__cta .icon { width: 22px; height: 22px; }
.work .card--group .card__media .collage { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(3, 1fr); gap: 2px; padding: 2px; }
.work .card--group .collage__count { font-size: 0; }
.work .card--group .collage__count b { font-size: 14px; }
.work .card--group .card__link { grid-template-columns: 132px 1fr auto; }
@media (max-width: 760px) {
	.work .card__link, .work .card--group .card__link { grid-template-columns: 88px 1fr; gap: 16px; padding: 14px 4px; }
	.work .card__media, .work .card--featured .card__media, .work .card--group .card__media { width: 88px; }
	.work .card__body, .work .card--group .card__body { grid-template-columns: 1fr; }
	.work .card__tagline { grid-column: 1; grid-row: 3; font-size: 13.5px; }
	.work .card__title, .work .card--group .card__title { font-size: 20px; }
	.work .card__cta { display: none; }
}

/* numbers */
.stats { background: transparent; border-block: 1px solid rgba(0,0,0,.08); }
.stat__num { color: var(--text); background: none; -webkit-text-fill-color: currentColor; }
.stat__num span { color: inherit; }
.stat__label { max-width: 20ch; }

/* ==========================================================================
   v2.1 — Hero "onde": Pexels waves video + floating 3D letters, reference layout.
   Headings in Exo 2 medium, tight leading (like the reference).
   ========================================================================== */
.section__title, .jp__title, .case__title, .contact__title, .gslide__title, .step__title, .area__title, .article__title, .case__next-title, .book__title { font-weight: 500; line-height: .94; letter-spacing: -.012em; }
.section__title em, .contact__title em { font-weight: 400; }

.hero--waves { height: 175vh; height: 175svh; padding: 0; min-height: 0; display: block; overflow: visible; background: none; }
.hero--waves .hero__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero-waves { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
	filter: grayscale(1) brightness(1.16) contrast(.9);
	-webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.2) 0%, rgba(0,0,0,.6) 36%, #000 68%); mask-image: linear-gradient(90deg, rgba(0,0,0,.2) 0%, rgba(0,0,0,.6) 36%, #000 68%); }
.hero--waves::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 65% 30%, #e6e6e3, #d3d3cf 70%); }
.hero-letters { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); display: flex; align-items: flex-end; gap: clamp(2px, .5vw, 8px); z-index: 2; pointer-events: none; }
.hl { height: clamp(96px, 15vw, 230px); width: auto; will-change: transform, opacity; filter: drop-shadow(0 30px 26px rgba(40, 34, 24, .08)); }
.hero-meta { position: absolute; left: var(--gutter); top: 96px; margin: 0; font: 400 11px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); z-index: 3; }
.hero-count { position: absolute; right: var(--gutter); top: 50%; margin: 0; font: 400 11px var(--f-mono); color: var(--muted); z-index: 3; }
.hero-title { position: absolute; left: var(--gutter); bottom: clamp(48px, 7vh, 80px); margin: 0; z-index: 3; font: 500 clamp(40px, 5.6vw, 88px)/.92 var(--f-display); text-transform: uppercase; letter-spacing: -.012em; }
.hero-title .hr { display: block; }
.hero-title .hr1 { padding-left: 1.05em; }
.hero-title .hr2 { text-transform: none; }
.hero-title em { font-style: italic; font-weight: 400; color: var(--gold); text-transform: none; }
.hero-title .hr3 { padding-left: 1em; }
.hero-title b { font-weight: 500; color: var(--gold); }
.hero-title .hr4 { padding-left: 2.3em; }
.hero-side { position: absolute; right: var(--gutter); bottom: clamp(52px, 7.5vh, 86px); width: min(320px, 30vw); z-index: 3; }
.hero-mark { margin: 0 0 16px; font: 400 15px var(--f-mono); }
.hero-text { margin: 0 0 20px; font-size: 14.5px; line-height: 1.55; color: #3a3a37; }
.hero-arrow { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); font-size: 18px; z-index: 3; color: var(--text); animation: heroBob 2.4s ease-in-out infinite; }
@keyframes heroBob { 50% { transform: translate(-50%, 6px); } }
@media (max-width: 860px) {
	.hero--waves { height: 150svh; }
	.hero-waves { -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 45%, rgba(0,0,0,.25) 80%); mask-image: linear-gradient(180deg, #000 0%, #000 45%, rgba(0,0,0,.25) 80%); }
	.hero-letters { top: 30%; }
	.hl { height: clamp(64px, 17vw, 120px); }
	.hero-meta { top: 84px; }
	.hero-count { display: none; }
	.hero-title { bottom: auto; top: 50%; font-size: clamp(38px, 11vw, 56px); }
	.hero-side { left: var(--gutter); right: var(--gutter); width: auto; bottom: 64px; }
	.hero-mark { display: none; }
	.hero-text { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .hero--waves { height: auto; } .hero--waves .hero__pin { position: relative; } .hero-arrow { animation: none; } }

/* v2.2 — hero video scrubbed by scroll (no letters) */
.hero-scrub { position: absolute; inset: 0; z-index: 0; pointer-events: none;
	-webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.65) 36%, #000 66%); mask-image: linear-gradient(90deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.65) 36%, #000 66%); }
.hero-scrub canvas, .hero-scrub__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(1.14) contrast(.92); }
.hero-scrub.is-ready .hero-scrub__poster { opacity: 0; transition: opacity .3s; }
@media (max-width: 860px) {
	.hero-scrub { -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 40%, rgba(0,0,0,.3) 78%); mask-image: linear-gradient(180deg, #000 0%, #000 40%, rgba(0,0,0,.3) 78%); }
}
.hero--waves .hero-title { bottom: clamp(56px, 9vh, 96px); }

/* v2.3 — section backgrounds: white videos scrubbed by scroll */
.section-scrub { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .7;
	-webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%); }
.section-scrub canvas, .section-scrub .hero-scrub__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(1.08) contrast(.95); }
.section-scrub.is-ready .hero-scrub__poster { opacity: 0; }
.method > .wrap, .areas > .wrap { position: relative; z-index: 1; }
.method, .areas { overflow: hidden; }
.method .thread-line { z-index: 1; }

/* v2.4 — one fixed film: clips crossfade, same pace for each; shorter hero */
.bgfilm { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.bgfilm__clip { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; filter: brightness(1.12) contrast(.92); will-change: opacity; }
.bgfilm__veil { position: absolute; inset: 0; background: linear-gradient(90deg, #dcdcd9 0%, rgba(220,220,217,.7) 30%, rgba(220,220,217,.15) 62%, rgba(220,220,217,0) 80%); opacity: var(--veil, 1); }
@media (max-width: 860px) { .bgfilm__veil { background: linear-gradient(180deg, rgba(220,220,217,0) 0%, rgba(220,220,217,.25) 40%, rgba(220,220,217,.8) 78%); } }
.hero--waves { height: 130vh; height: 130svh; }
@media (max-width: 860px) { .hero--waves { height: 120svh; } }
main > section, main > article { position: relative; z-index: 1; }

/* v2.5 — the hero's type runs through the whole site; text only ink, gold, red; no red thread */
:root { --muted: #121212; --faint: #121212; }
.thread-line { display: none !important; }
.hero-text, .hero__text, .hero-meta, .hero-count { color: #121212; }

/* section titles = hero title: Exo 2 500, caps, tight leading, staggered lines, gold italic emphasis and // */
.section__title, .contact__title { font: 500 clamp(38px, 5.2vw, 80px)/.92 var(--f-display); text-transform: uppercase; letter-spacing: -.012em; max-width: none; }
.section__title .tl, .contact__title .tl { display: block; }
.section__title .tl2, .contact__title .tl2 { padding-left: 1.05em; }
.section__title .tl3, .contact__title .tl3 { padding-left: 2.1em; }
.section__title em, .contact__title em { font-style: italic; font-weight: 400; color: var(--gold); text-transform: none; }
.section__title b, .contact__title b { font-weight: 500; color: var(--gold); }
.contact__title { text-align: left; display: inline-block; }
.story .section__title { font-size: clamp(34px, 4vw, 60px); }

/* eyebrows = hero meta: mono caps in brackets, lettered like the hero's ( A ) */
body { counter-reset: gbsec 1; }
.eyebrow { font: 400 11.5px/1 var(--f-mono); letter-spacing: .08em; color: #121212; gap: 12px; }
.eyebrow::before { content: "( " counter(gbsec, upper-alpha) " )"; counter-increment: gbsec; width: auto; height: auto; background: none; color: var(--gold); letter-spacing: 0; }
.gallery .eyebrow::before, .case__next .eyebrow::before { content: "//"; counter-increment: none; }
.section__lead { color: #121212; font-size: clamp(15px, 1.2vw, 17px); line-height: 1.55; max-width: 560px; }

/* small UI text follows the same mono voice; colours stay ink / gold / red */
.step__title, .area__title, .card__title, .jp__title, .book__title { text-transform: uppercase; letter-spacing: -.005em; }
.area__link, .book__cta, .journey__skip, .card__cat, .jp__cat { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.card__cat, .jp__cat { color: var(--gold); }
.stat__num { font-weight: 500; color: #121212; }
.stat__label, .post-row__meta, .case__meta dt, .gallery__count, .journey__hud { color: #121212; }

/* v2.6 — a single fixed background video (white dots wave) under the whole page */
.bgfilm__clip { opacity: 1; filter: brightness(1.32) contrast(.78); }
.bgfilm__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(1.32) contrast(.78); }
.bgfilm.is-ready .bgfilm__poster { opacity: 0; }
.hero--waves::before { display: none; }

/* v2.7 — the existing pages (Tolkien, saga, Warhammer) in the new style.
   JTS Core reads the old block-theme presets: map them onto ink / gold / red and Exo 2. */
:root {
	--wp--preset--color--oro: #a8700f; --wp--preset--color--oro-chiaro: #c98a1c;
	--wp--preset--color--bordeaux: #f1f1ee; --wp--preset--color--notte: #ecece9;
	--wp--preset--color--avorio: #121212; --wp--preset--color--avorio-testo: #121212;
	--wp--preset--color--attenuato: #121212; --wp--preset--color--ruggine: #d2372a;
	--wp--preset--gradient--oro: linear-gradient(100deg, #a8700f 0%, #c98a1c 100%);
	--wp--preset--font-family--inter: "Exo 2", system-ui, sans-serif;
	--wp--preset--font-family--lora: "Exo 2", system-ui, sans-serif;
}
/* the map and the codex stay dark "windows": keep their text light */
.jts-mappa { --m-titoli: #f4f2ec; --m-testo: #e6e3dc; --m-tenue: #b9b5ac; --m-notte: #0f0f0f; }

.page-head { padding-top: clamp(130px, 18vh, 190px); padding-bottom: 10px; }
.page-head .eyebrow a { color: inherit; }
.page-head__title { font: 500 clamp(40px, 6vw, 92px)/.92 var(--f-display); text-transform: uppercase; letter-spacing: -.012em; max-width: 16ch; }
.prose--page { padding-bottom: clamp(70px, 10vw, 130px); color: #121212; }
.prose--page > :where(p, ul, ol, h2, h3, h4, blockquote, figure:not(.wp-block-table), .wp-block-buttons) { max-width: 760px; }
.prose--page :where(h2, h3) { text-transform: uppercase; font-weight: 500; letter-spacing: -.01em; line-height: 1; }
.prose--page h2 { font-size: clamp(28px, 3.2vw, 44px); }
.prose--page h2 em, .prose--page h3 em { font-style: italic; font-weight: 400; color: var(--gold); text-transform: none; }
.prose--page img { border-radius: var(--radius-sm); }
.prose--page .wp-block-table table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.prose--page .wp-block-table :where(td, th) { border-bottom: 1px solid var(--line-2); padding: 10px 12px; text-align: left; }
.prose--page .wp-block-table th { font: 500 11.5px var(--f-mono); text-transform: uppercase; letter-spacing: .08em; }

/* JTS components: same voice as the rest of the site */
.jts-fascia-titolo, .jts-briciole { display: none; }
.jts-bottone, .jts-cta__bottone { font: 500 13px/1 var(--f-mono) !important; text-transform: uppercase; letter-spacing: .06em; border-radius: 999px !important; background: #121212 !important; color: #f4f2ec !important; border: 1px solid #121212 !important; box-shadow: none !important; }
.jts-bottone--contorno { background: transparent !important; color: #121212 !important; border-color: rgba(0,0,0,.55) !important; }
.jts-cta__eyebrow, .jts-cta__occhiello, .jts-autore__occhiello, .jts-articoli__cat, .jts-articoli__data, .jts-episodi__serie, .jts-autore__ruolo { font-family: var(--f-mono) !important; text-transform: uppercase; letter-spacing: .08em; color: var(--gold) !important; font-size: 11.5px !important; }
.jts-cta__titolo, .jts-articoli__titolo, .jts-autore__nome { font-family: var(--f-display) !important; font-weight: 500 !important; text-transform: uppercase; letter-spacing: -.01em; color: #121212 !important; }
.jts-cta, .jts-autore, .jts-articoli__scheda { background: rgba(255,255,255,.55) !important; border: 1px solid rgba(0,0,0,.07) !important; border-radius: var(--radius) !important; color: #121212; box-shadow: none !important; }
.jts-cta__sfondo { opacity: .18 !important; filter: grayscale(1); }
.jts-articoli__img, .jts-episodi__img { border-radius: var(--radius-sm); overflow: hidden; }
.jts-episodi__play { background: #121212 !important; color: #f4f2ec !important; }
.jts-avviso-admin, .jts-cta__nota-admin, .jts-nota-provvisoria { font-family: var(--f-mono); font-size: 12px; }
.prose--page > .jts-articoli, .prose--page > .jts-episodi, .prose--page > .jts-mappa, .prose--page > .jts-cta, .prose--page > .jts-autore { margin-top: 40px; }

/* v2.8 — one width for the whole site: content runs edge to edge on the hero's gutter */
:root { --wrap: 100%; }
.wrap, .wrap--narrow { max-width: none; }
.site-header__inner, .site-footer__inner, .site-footer__bottom { max-width: none; }
.steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (min-width: 1280px) { .areas__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } .areas__grid > .area { grid-column: auto; } }
.section__head { max-width: none; }
.prose--page > :where(p, ul, ol, h2, h3, h4, blockquote, figure:not(.wp-block-table), .wp-block-buttons) { max-width: 980px; }
.article .prose:not(.prose--page) > * { max-width: 980px; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }

/* v2.9 — interactive embeds (3D maps) in case studies */
.case__embed { position: relative; border-radius: var(--radius); overflow: hidden; background: #0a101a; border: 1px solid rgba(0,0,0,.08); box-shadow: 0 40px 90px -45px rgba(20, 30, 50, .6); }
.case__embed iframe { display: block; width: 100%; height: max(700px, 88vh); border: 0; }

/* v3.0 — shorter run from the hero to the journey; mobile scrolls only up and down */
html, body { overflow-x: clip; max-width: 100%; }
img, video, iframe, canvas, svg, table { max-width: 100%; }
.prose, .prose--page, .case__body, .card, .area, .step { overflow-wrap: anywhere; min-width: 0; }
.prose--page .wp-block-table { overflow-x: auto; max-width: 100%; }
.footer-menu { flex-wrap: wrap; gap: 8px 18px; }
.site-footer__bottom { flex-wrap: wrap; gap: 14px; }
.case__layout { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); }
.case__meta .btn { white-space: normal; text-align: center; justify-content: center; }
.case__embed-wrap { margin-bottom: clamp(36px, 5vw, 64px); }
.case__embed iframe { height: max(700px, calc(100svh - 120px)); }
.jts-mappa { --m-larga: 100%; max-width: 100%; }

/* method + areas: tighter */
.method, .areas { padding-block: clamp(56px, 6vw, 96px); }
.areas { padding-top: 0; }
.method .section__head, .areas .section__head { margin-bottom: clamp(24px, 3vw, 40px); }
.step { padding: 22px 22px 24px; }
.step__num { margin-bottom: 16px; }
.step__title { margin-bottom: 8px; }
.area { padding: 24px 22px 22px; }
.area__list { display: none; }
.area__short { margin-bottom: 16px; }
.journey__intro { padding-top: clamp(40px, 5vw, 72px); }

@media (max-width: 900px) {
	.case__layout { grid-template-columns: minmax(0, 1fr); }
	.case__embed iframe { height: max(560px, 78svh); }
}
@media (max-width: 760px) {
	:root { --gutter: 18px; }
	.section__title, .contact__title { font-size: clamp(34px, 10vw, 48px); }
	.section__title .tl2, .contact__title .tl2 { padding-left: .6em; }
	.section__title .tl3, .contact__title .tl3 { padding-left: 1.2em; }
	.page-head__title { font-size: clamp(34px, 10.5vw, 52px); }
	.steps { gap: 10px; }
	.areas__grid { gap: 10px; }
	.method, .areas { padding-block: 48px; }
	.areas { padding-top: 0; }
	.hero-title .hr1 { padding-left: .6em; } .hero-title .hr3 { padding-left: .5em; } .hero-title .hr4 { padding-left: 1.2em; }
	.work .card { grid-template-columns: 84px minmax(0, 1fr) 20px; gap: 12px; }
	.stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.books { grid-template-columns: minmax(0, 1fr); }
	.story__grid { grid-template-columns: minmax(0, 1fr); }
	.contact__title { display: block; }
	.btn { max-width: 100%; }
}

/* v3.0b — mobile: method and areas as compact two-column tiles */
@media (max-width: 760px) {
	.steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.step { padding: 16px 14px 18px; }
	.step__num { margin-bottom: 10px; font-size: 11px; }
	.step__num::after { width: 18px; }
	.step__title { font-size: 17px; }
	.step p { font-size: 13px; line-height: 1.45; }
	.areas__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.areas__grid > .area, .area:nth-child(4), .area:nth-child(5) { grid-column: auto; }
	.area { padding: 16px 14px; }
	.area__icon { width: 34px; height: 34px; margin-bottom: 12px; }
	.area__title { font-size: 15px; line-height: 1.1; margin-bottom: 10px; }
	.area__short { display: none; }
	.area__link { font-size: 10.5px; margin-top: auto; }
	.method .section__lead { font-size: 14.5px; }
}
@media (max-width: 760px) {
	.story__book { padding: 22px 16px; }
	.book { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 12px; }
	.area__link { white-space: nowrap; }
}

/* v3.1 — method + areas in one short passage */
.anchor { position: absolute; top: -80px; }
.method--merged { padding-block: clamp(56px, 6vw, 96px); }
.mm { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 90px); align-items: end; }
.mm__head .section__lead { margin-top: 16px; }
.mm__flow { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font: 500 13px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; }
.mm__flow li { display: inline-flex; align-items: center; gap: 8px; }
.mm__flow li span { color: var(--thread); }
.mm__flow li + li::before { content: "→"; color: var(--gold); margin-right: 14px; }
.mm__areas { display: grid; border-top: 1px solid var(--line-2); }
.mm__area { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 4px; border-bottom: 1px solid var(--line-2); text-align: left; background: none; color: #121212; cursor: pointer; transition: background .3s, padding .3s; }
.mm__area:hover { background: rgba(255, 255, 255, .45); padding-inline: 12px; }
.mm__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .6); color: var(--gold); }
.mm__icon svg { width: 20px; height: 20px; }
.mm__name { font: 500 clamp(17px, 1.5vw, 21px)/1.1 var(--f-display); text-transform: uppercase; letter-spacing: -.005em; }
.mm__name small { display: block; margin-top: 5px; font: 400 13.5px/1.4 var(--f-body); text-transform: none; letter-spacing: 0; }
.mm__count { font: 500 12px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--gold); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.mm__count svg { width: 14px; height: 14px; }
@media (max-width: 900px) { .mm { grid-template-columns: minmax(0, 1fr); align-items: start; } }
@media (max-width: 760px) {
	.method--merged { padding-block: 44px; }
	.mm__flow { gap: 8px 12px; font-size: 11px; } .mm__flow li + li::before { margin-right: 6px; }
	.mm__area { grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; padding: 12px 0; }
	.mm__icon { width: 32px; height: 32px; border-radius: 9px; } .mm__icon svg { width: 16px; height: 16px; }
	.mm__name { font-size: 15px; } .mm__name small { display: none; }
	.mm__count { font-size: 10.5px; }
}

/* v3.1 — journey on phones: a plain list of cards, scrolled only up and down */
.journey--list .journey__track { height: auto !important; }
.journey--list .journey__sticky { position: static !important; height: auto !important; overflow: visible !important; display: block; }
.journey--list .journey__stage { display: block !important; }
.journey--list .journey__visual, .journey--list .journey__hud { display: none !important; }
.journey--list .journey__panels { display: grid !important; gap: 14px; height: auto !important; position: static !important; }
.journey--list .jp { position: relative !important; inset: auto !important; opacity: 1 !important; transform: none !important; visibility: visible !important; pointer-events: auto !important; padding: 14px 14px 18px; border-radius: var(--radius); background: rgba(255, 255, 255, .6); border: 1px solid rgba(0, 0, 0, .07); }
.journey--list .jp > .jv { position: relative !important; inset: auto !important; opacity: 1 !important; transform: none !important; width: 100%; aspect-ratio: 16 / 10; margin: 0 0 14px; border-radius: 14px; overflow: hidden; display: block; }
.journey--list .jp > .jv img { width: 100%; height: 100%; object-fit: cover; }
.journey--list .jp__title { font-size: 30px; }
.journey--list .jp__desc { display: none; }
.journey--list .chips { display: none; }
.journey--list .jp__cta { margin-top: 12px; }

/* v3.2 — maps: three separate full-width blocks */
.case__maps { display: grid; gap: clamp(56px, 8vw, 120px); margin-bottom: clamp(56px, 8vw, 110px); }
.map-block__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px 40px; align-items: end; margin-bottom: 22px; }
.map-block__head .eyebrow { grid-column: 1 / -1; margin: 0; }
.map-block__head .section__title { margin: 0; }
.map-block__head .section__lead { margin: 0; }
.map-embed { position: relative; border-radius: var(--radius); overflow: hidden; background: #070b12; height: max(640px, calc(100svh - 140px)); box-shadow: 0 40px 90px -45px rgba(20, 30, 50, .6); }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-embed__cover { position: absolute; inset: 0; z-index: 2; display: flex; align-items: flex-end; justify-content: center; padding: 28px; background: #070b12 center / cover no-repeat; transition: opacity .5s var(--ease); }
.map-embed__cover::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,11,18,0) 50%, rgba(7,11,18,.7)); }
.map-embed__cta { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; background: #f4f2ec; color: #121212; font: 500 13px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; }
.map-embed__cta svg { width: 16px; height: 16px; }
.map-embed__mob { display: none; }
.map-embed.is-live .map-embed__cover { opacity: 0; pointer-events: none; }
@media (max-width: 900px) { .map-block__head { grid-template-columns: minmax(0, 1fr); align-items: start; } .map-block__full { justify-self: start; } }
@media (max-width: 760px) {
	.map-embed { height: auto; aspect-ratio: 4 / 3; }
	.map-embed iframe { display: none; }
	.map-embed__desk { display: none; } .map-embed__mob { display: inline; }
	.map-block__full { display: none; }
}

/* v3.2 — phone screenshots in case studies */
.prose .shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 34px 0; max-width: none; }
.prose .shots img { width: 100%; border-radius: 22px; border: 8px solid #221e20; box-shadow: 0 30px 60px -35px rgba(80, 40, 50, .5); }
.prose .shots figcaption { grid-column: 1 / -1; font: 400 12px var(--f-mono); text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 760px) { .prose .shots { gap: 8px; } .prose .shots img { border-width: 4px; border-radius: 14px; } }
/* v3.2 — phone journey: compact rows (picture left, text right) */
.journey--list .journey__panels { gap: 10px; }
.journey--list .jp { display: grid !important; grid-template-columns: 104px minmax(0, 1fr); column-gap: 14px; align-items: start; padding: 10px; }
.journey--list .jp > .jv { grid-row: 1 / span 4; aspect-ratio: 1 / 1; margin: 0; border-radius: 12px; }
.journey--list .jp > .jv .badge { display: none; }
.journey--list .jp__cat { font-size: 9.5px !important; margin: 2px 0 4px; line-height: 1.3; }
.journey--list .jp__num { display: none; }
.journey--list .jp__title { font-size: 21px !important; margin: 0; line-height: 1; }
.journey--list .jp__tagline { font-size: 13px; line-height: 1.35; margin: 5px 0 0; }
.journey--list .jp__cta { grid-column: 2; justify-self: start; margin-top: 8px; padding: 8px 12px; font-size: 10.5px; }
.journey--list .jv--group .collage { transform: scale(.5); transform-origin: top left; width: 200%; }
