/* ==========================================================================
   Giuseppe Matrisciano — portfolio
   Brand: charcoal + cream (from the business card), Fraunces + Poppins
   ========================================================================== */

:root {
	--ink: #181716;
	--ink-2: #201e1c;
	--ink-3: #2b2826;
	--cream: #fbf9e6;
	--cream-2: #f1edd4;
	--cream-3: #e6e0c0;

	--rosso: #e2572f;      /* Bologna "la Rossa" */
	--rosso-d: #b23c19;    /* same hue, readable on cream */
	--gulf: #3bb0a6;       /* Clearwater */
	--dawg: #dc2f45;       /* Athens */
	--cane: #f47321;       /* Miami */

	--serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
	--sans: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;

	--ease: cubic-bezier(.2, .7, .1, 1);
	--ease-io: cubic-bezier(.65, 0, .35, 1);
	--pad: clamp(20px, 5vw, 76px);
	--r: clamp(18px, 2vw, 28px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--sans);
	font-size: clamp(1rem, .96rem + .18vw, 1.09rem);
	line-height: 1.68;
	background: var(--ink);
	color: var(--cream);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
a { color: inherit; }
em { font-style: italic; }

::selection { background: var(--rosso); color: var(--ink); }

:focus-visible { outline: 2px solid var(--rosso); outline-offset: 4px; border-radius: 4px; }

.skip {
	position: fixed; left: 12px; top: -80px; z-index: 200;
	background: var(--cream); color: var(--ink); padding: 12px 18px; border-radius: 99px;
	text-decoration: none; font-weight: 500; transition: top .3s var(--ease);
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1480px; margin-inline: auto; padding-inline: var(--pad); }

/* Section palettes */
.sec--dark {
	--bg: var(--ink); --fg: var(--cream);
	--muted: rgba(251, 249, 230, .66); --line: rgba(251, 249, 230, .17); --soft: rgba(251, 249, 230, .055);
	--accent: var(--rosso);
	background: var(--bg); color: var(--fg);
}
.sec--cream {
	--bg: var(--cream); --fg: var(--ink);
	--muted: rgba(24, 23, 22, .7); --line: rgba(24, 23, 22, .17); --soft: rgba(24, 23, 22, .05);
	--accent: var(--rosso-d);
	background: var(--bg); color: var(--fg);
}

/* Type */
.eyebrow {
	font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
	color: var(--muted); line-height: 1.5;
}
.display {
	font-family: var(--serif); font-weight: 400; font-optical-sizing: auto;
	font-size: clamp(2.5rem, 6.6vw, 6.4rem); line-height: .96; letter-spacing: -.035em;
	text-wrap: balance;
}
.display em, .statement em, .contact-title em, .card-title em, .hero-tag em, .panel-city em {
	font-variation-settings: "SOFT" 100, "WONK" 1; color: var(--accent);
}
.lead { font-size: 1.18em; line-height: 1.55; }

.sec-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 72px); }
.sec-head--row { grid-template-columns: 1fr auto; align-items: end; gap: 24px 48px; }
.sec-head--row > div:not(.filters) { display: grid; gap: 18px; }
.sec-note { max-width: 34ch; color: var(--muted); font-size: .95em; }
.sec-lede { max-width: 58ch; color: var(--muted); font-size: 1.12em; }

/* Buttons */
.btn {
	position: relative; display: inline-flex; align-items: center; gap: 10px;
	min-height: 52px; padding: 0 26px; border: 1px solid var(--fg); border-radius: 99px;
	background: none; color: var(--fg); text-decoration: none; font-size: .92rem; font-weight: 500;
	overflow: hidden; cursor: pointer; isolation: isolate;
	transition: color .45s var(--ease), border-color .45s var(--ease);
}
.btn::before {
	content: ""; position: absolute; inset: -1px; z-index: -1; background: var(--fg);
	transform: translateY(102%); border-radius: 50% 50% 0 0 / 30% 30% 0 0;
	transition: transform .55s var(--ease), border-radius .55s var(--ease);
}
.btn:hover { color: var(--bg); }
.btn:hover::before { transform: none; border-radius: 0; }
.btn svg, .proof svg, .card-arrow svg, .links svg, .case-close svg, .lightbox svg, .panel-hint svg {
	width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6;
	stroke-linecap: round; stroke-linejoin: round; flex: none;
}
.btn svg { transition: transform .45s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--solid { background: var(--fg); color: var(--bg); }
.btn--solid::before { background: var(--rosso); }
.btn--solid:hover { color: var(--ink); border-color: var(--rosso); }

/* Scroll progress + cursor */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; pointer-events: none; mix-blend-mode: difference; }
.progress i { display: block; height: 100%; background: #fbf9e6; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

.cursor {
	position: fixed; left: 0; top: 0; z-index: 120; width: 12px; height: 12px; margin: -6px 0 0 -6px;
	border-radius: 50%; background: #fbf9e6; mix-blend-mode: difference; pointer-events: none;
	display: none; align-items: center; justify-content: center; opacity: 0;
	transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background-color .25s, opacity .3s;
}
.has-cursor .cursor { display: flex; }
.cursor.is-on { opacity: 1; }
.cursor.is-link { width: 46px; height: 46px; margin: -23px 0 0 -23px; }
.cursor.is-label { width: 82px; height: 82px; margin: -41px 0 0 -41px; mix-blend-mode: normal; background: var(--rosso); }
.cursor-label { font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); opacity: 0; transition: opacity .2s; }
.cursor.is-label .cursor-label { opacity: 1; }

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
	position: fixed; inset: 0 0 auto 0; z-index: 50;
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
	padding: 16px var(--pad); color: #fbf9e6; mix-blend-mode: difference;
	transition: transform .6s var(--ease);
}
.nav.is-hidden { transform: translateY(-110%); }
.mark { display: inline-flex; align-items: baseline; gap: 12px; text-decoration: none; min-height: 44px; align-items: center; }
.mark-gm { font-family: var(--serif); font-size: 1.9rem; line-height: 1; letter-spacing: -.07em; }
.mark-name { font-size: .8rem; letter-spacing: .02em; opacity: .85; }
.nav-links { display: flex; align-items: center; gap: clamp(16px, 2.3vw, 36px); }
.nav-links a { position: relative; padding: 12px 0; font-size: .85rem; text-decoration: none; }
.nav-links a:not(.nav-cta)::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: currentColor;
	transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-links .nav-cta { padding: 9px 20px; border: 1px solid currentColor; border-radius: 99px; transition: background-color .3s, color .3s; }
.nav-links .nav-cta:hover { background: #fbf9e6; color: #000; }

.burger { display: none; width: 46px; height: 46px; border: 1px solid currentColor; border-radius: 50%; background: none; place-items: center; cursor: pointer; position: relative; }
.burger i { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform .45s var(--ease); }
.burger i:first-child { transform: translateY(-4px); }
.burger i:last-child { transform: translateY(4px); }
.burger[aria-expanded="true"] i:first-child { transform: rotate(45deg); }
.burger[aria-expanded="true"] i:last-child { transform: rotate(-45deg); }

.menu {
	position: fixed; inset: 0; z-index: 45; background: var(--cream); color: var(--ink);
	display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
	padding: 88px var(--pad) 28px; overflow-y: auto; overscroll-behavior: contain;
	clip-path: circle(0 at calc(100% - 44px) 40px); visibility: hidden;
	transition: clip-path .7s var(--ease-io), visibility 0s .7s;
}
.menu[hidden] { display: flex; }
.menu.is-open { clip-path: circle(150% at calc(100% - 44px) 40px); visibility: visible; transition: clip-path .7s var(--ease-io), visibility 0s; }
.menu nav { display: grid; }
.menu a {
	display: flex; align-items: baseline; gap: 16px; padding: clamp(8px, 1.5vh, 16px) 0; border-bottom: 1px solid rgba(24, 23, 22, .14);
	font-family: var(--serif); font-size: clamp(1.9rem, min(9vw, 6vh), 3.4rem); line-height: 1.15; letter-spacing: -.03em; text-decoration: none;
}
.menu a span { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; color: var(--rosso-d); }
.menu-foot { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; opacity: .6; }

@media (max-width: 900px) {
	.nav-links { display: none; }
	.burger { display: grid; }
	.mark-name { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; overflow: clip; }
.hero::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background:
		radial-gradient(60% 50% at 82% 30%, rgba(226, 87, 47, .16), transparent 70%),
		radial-gradient(40% 40% at 8% 90%, rgba(59, 176, 166, .08), transparent 70%);
}
.hero-mono {
	position: absolute; right: -4vw; top: -6vh; display: flex; pointer-events: none; user-select: none;
	font-family: var(--serif); font-weight: 400; font-size: min(62vw, 105vh); line-height: .8; letter-spacing: -.09em;
	color: transparent; -webkit-text-stroke: 1px rgba(251, 249, 230, .1);
	translate: var(--mx, 0px) var(--my, 0px); transition: translate .9s var(--ease);
}
.hero-inner {
	position: relative; z-index: 1; display: flex; flex-direction: column;
	padding-top: clamp(88px, 13vh, 132px); padding-bottom: clamp(20px, 4vh, 40px);
}
.hero-top { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; }
.dot { display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--rosso); box-shadow: 0 0 0 0 rgba(226, 87, 47, .6); animation: pulse 2.4s infinite; vertical-align: 1px; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(226, 87, 47, 0); } 100% { box-shadow: 0 0 0 0 rgba(226, 87, 47, 0); } }

/* The name is sized from the real column width (the .wrap stops growing at 1480px), so that
   "Giuseppe" (3.21em) plus the portrait (1.3em + .3em offset) always fit side by side: 5em in all. */
.hero-name { position: relative; margin-top: auto; padding-top: clamp(24px, 6vh, 72px); font-size: clamp(3.1rem, min(calc((min(100vw, 1480px) - 2 * var(--pad)) * .2), 26vh), 19rem); }
.hero-title { font-family: var(--serif); font-weight: 400; font-size: 1em; line-height: .86; letter-spacing: -.05em; }
.hero-ciao {
	display: block; margin: 0 0 .5em .12em; font-size: clamp(1.4rem, .2em, 3rem); line-height: 1; letter-spacing: -.01em;
	font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; color: var(--rosso);
}
.hero-title .line { display: block; position: relative; overflow: hidden; padding: .04em 0 .17em; margin-bottom: -.17em; }
.hero-title .line > span { display: block; }
.hero-title .l1 { z-index: 1; }
.hero-title .l2 { z-index: 3; mix-blend-mode: difference; }

.hero-portrait { position: absolute; z-index: 2; right: .3em; bottom: .6em; width: 1.3em; }   /* sits just above the x-height of the second line */
.arch { border-radius: 999px 999px 0 0; overflow: hidden; background: var(--ink-3); }
.arch img, .arch svg { width: 100%; height: 100%; object-fit: cover; }
.hero-portrait .arch { aspect-ratio: 3 / 3.7; translate: calc(var(--mx, 0px) * -.35) calc(var(--my, 0px) * -.35); transition: translate .9s var(--ease); }
.hero-portrait img { object-position: 50% 18%; }
.badge { position: absolute; left: -.3em; top: .08em; width: .62em; height: .62em; min-width: 84px; min-height: 84px; animation: spin 24s linear infinite; }
.badge-bg { fill: var(--rosso); }
.badge text { font-family: var(--mono); font-size: 11px; letter-spacing: 1.43px; fill: var(--ink); font-weight: 500; } /* 61 glyphs x 8.03 = the 490-unit circle */
.badge-star { fill: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-foot {
	display: grid; grid-template-columns: 1fr auto auto; align-items: end; gap: 20px 40px;
	margin-top: clamp(18px, 3.4vh, 40px); padding-top: clamp(16px, 2.6vh, 26px); border-top: 1px solid var(--line);
}
.hero-tag { font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 2.1rem); line-height: 1.12; letter-spacing: -.02em; max-width: 17ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-scroll { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.hero-scroll i { display: block; width: 1px; height: 46px; background: var(--line); position: relative; overflow: hidden; }
.hero-scroll i::after { content: ""; position: absolute; inset: 0; background: var(--cream); animation: drip 2.2s var(--ease-io) infinite; }
@keyframes drip { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* Intro animation */
.js .hero-title .line > span { transform: translateY(108%); transition: transform 1.2s var(--ease); }
.js .hero-title .l2 > span { transition-delay: .09s; }
.js .hero-ciao, .js .hero-top, .js .hero-foot { opacity: 0; transform: translateY(16px); transition: opacity 1s var(--ease) .5s, transform 1s var(--ease) .5s; }
.js .hero-portrait { opacity: 0; transform: translateY(40px) scale(.96); transition: opacity 1.2s var(--ease) .25s, transform 1.4s var(--ease) .25s; }
.js .is-ready .hero-title .line > span,
.js .is-ready .hero-ciao, .js .is-ready .hero-top, .js .is-ready .hero-foot, .js .is-ready .hero-portrait { opacity: 1; transform: none; }

@media (max-width: 760px) {
	.hero-name { display: flex; flex-direction: column; font-size: 15.4vw; padding-top: 28px; }
	.hero-portrait { position: relative; order: -1; align-self: flex-end; bottom: auto; width: min(50vw, 230px); margin-bottom: -1.05em; }
	.hero-ciao { font-size: 1.5rem; }
	.hero-title .l1 { z-index: 3; mix-blend-mode: difference; }
	.badge { left: -52px; top: 22%; }
	.hero-foot { grid-template-columns: 1fr; }
	.hero-scroll { display: none; }
	.hero-coords { display: none; }
}

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee { background: var(--rosso); color: var(--ink); overflow: hidden; padding: clamp(12px, 1.5vw, 20px) 0; }
.marquee-track {
	display: flex; align-items: center; width: max-content; white-space: nowrap;
	font-family: var(--serif); font-size: clamp(1.4rem, 3.1vw, 2.5rem); line-height: 1.1; letter-spacing: -.02em;
	animation: marquee 38s linear infinite;
}
.marquee-track > * { margin-right: clamp(18px, 2.6vw, 40px); }
.marquee-track b { font-size: .5em; font-weight: 400; }
.marquee-track em { font-variation-settings: "SOFT" 100, "WONK" 1; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   About
   ========================================================================== */
.about { padding-block: clamp(80px, 12vw, 170px); }
.statement {
	margin-top: 24px; max-width: 21em;
	font-family: var(--serif); font-size: clamp(1.9rem, 4.7vw, 4.5rem); line-height: 1.07; letter-spacing: -.03em;
}
.statement .w { opacity: .13; transition: opacity .45s var(--ease); }
.statement .w.on { opacity: 1; }

.about-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 110px); margin-top: clamp(56px, 8vw, 120px); align-items: start; }
.about-copy { display: grid; gap: 1.1em; max-width: 60ch; }
.about-copy p:not(.lead) { color: var(--muted); }
.facts { border-top: 1px solid var(--fg); }
.facts > div { display: grid; grid-template-columns: 7.5em 1fr; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: .35em; }
.facts dd { font-weight: 500; line-height: 1.4; }

.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: clamp(56px, 8vw, 120px); border-top: 1px solid var(--fg); }
.stats li { padding: clamp(18px, 2.4vw, 32px) clamp(12px, 1.6vw, 24px) 0 0; border-right: 1px solid var(--line); margin-right: clamp(12px, 1.6vw, 24px); display: grid; gap: 10px; align-content: start; }
.stats li:last-child { border-right: 0; margin-right: 0; }
.stats strong { font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 5.4vw, 5.2rem); line-height: .9; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stats span { font-size: .84rem; line-height: 1.4; color: var(--muted); max-width: 20ch; }

.tone { margin-top: clamp(64px, 9vw, 130px); display: grid; gap: 18px; }
.tone ul { display: flex; flex-wrap: wrap; gap: 0 .35em; font-family: var(--serif); font-size: clamp(2.4rem, 8.4vw, 8.4rem); line-height: 1; letter-spacing: -.045em; }
.tone li { position: relative; }
.tone li:not(:last-child)::after { content: "·"; margin-left: .3em; color: var(--rosso-d); }
.tone li span {
	color: transparent; -webkit-text-stroke: 1px var(--ink);
	background: linear-gradient(var(--ink), var(--ink)) no-repeat 0 0 / 0% 100%; -webkit-background-clip: text; background-clip: text;
	transition: background-size 1.1s var(--ease);
}
.tone.in li span, .tone li:hover span { background-size: 100% 100%; }
.tone.in li:nth-child(2) span { transition-delay: .25s; }
.tone.in li:nth-child(3) span { transition-delay: .5s; }
.tone-note { color: var(--muted); max-width: 46ch; }
.tone-note em { font-family: var(--serif); font-size: 1.15em; color: var(--fg); }

@media (max-width: 900px) {
	.about-grid { grid-template-columns: 1fr; }
	.stats { grid-template-columns: repeat(2, 1fr); border-top: 0; }
	.stats li { border-right: 0; margin-right: 0; border-top: 1px solid var(--line); padding-bottom: 22px; }
	.stats li:last-child { grid-column: 1 / -1; }
}

/* ==========================================================================
   Journey — vertical by default, pinned horizontal scroll when .is-pinned
   ========================================================================== */
.journey { position: relative; }
.journey-sticky { padding-block: clamp(72px, 10vw, 140px); }
.journey-track { display: flex; flex-direction: column; gap: clamp(72px, 12vw, 120px); padding-inline: var(--pad); max-width: 1480px; margin-inline: auto; }

.panel { --acc-ink: var(--ink); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.panel--intro, .panel--next { grid-template-columns: 1fr; }
.panel--intro { gap: 22px; max-width: 900px; }
.panel-lede { max-width: 50ch; font-size: 1.12em; color: var(--muted); }
.panel-hint { display: inline-flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--rosso); }
.panel-hint .hint-h { display: none; }
.panel-hint svg { transform: rotate(90deg); animation: nudge-v 1.6s var(--ease-io) infinite; }
@keyframes nudge-v { 50% { transform: rotate(90deg) translateX(6px); } }
@keyframes nudge-h { 50% { transform: translateX(6px); } }

.panel-copy { display: grid; gap: 14px; justify-items: start; }
.panel-copy > p:not([class]) { color: var(--muted); max-width: 58ch; }
.panel-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.panel-meta b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 2rem; letter-spacing: -.02em; color: var(--acc); line-height: 1; text-transform: none; }
.panel-city { font-family: var(--serif); font-weight: 400; font-size: clamp(3.4rem, 9vw, 8.6rem); line-height: .86; letter-spacing: -.05em; }
.panel-city small { display: inline-block; margin-left: .35em; font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); vertical-align: top; translate: 0 .9em; }
.panel-city--next { font-size: clamp(2.8rem, 7.4vw, 7rem); letter-spacing: -.045em; }
.panel-city--next em { color: var(--rosso); }
.panel-title { font-family: var(--serif); font-size: clamp(1.25rem, 2.1vw, 1.75rem); line-height: 1.18; letter-spacing: -.015em; max-width: 26ch; }
.panel--next .btn { margin-top: 10px; }

.panel-visual { position: relative; justify-self: center; width: min(100%, 340px); }
.panel-visual .arch { border: 1px solid var(--line); }
.panel-visual .arch--wide img { object-position: 46% 50%; }
.panel-visual .arch--top img { object-position: 50% 0; }
.sticker {
	position: absolute; left: -8%; bottom: 7%; display: grid; gap: 2px; padding: 12px 16px; border-radius: 14px;
	background: var(--acc); color: var(--acc-ink); rotate: -6deg; box-shadow: 0 14px 30px rgba(0, 0, 0, .35);
	transition: rotate .6s var(--ease), scale .6s var(--ease);
}
.panel:hover .sticker { rotate: -2deg; scale: 1.04; }
.sticker b { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; line-height: 1; letter-spacing: -.02em; }
.sticker span { font-family: var(--mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; }
.sticker--clock { left: auto; right: -6%; rotate: 6deg; }
.panel:hover .sticker--clock { rotate: 2deg; }

/* Illustrations */
.art-bg { fill: var(--ink-3); }
.art-sun { fill: var(--acc); }
.art-fill { fill: var(--cream); }
.art-fill--2 { fill: var(--cream-3); }
.art-ground { fill: var(--acc); }
.art-arches path { fill: var(--ink); }
.art-gulf .art-ground { fill: #1f6f6a; }
.art-miami .art-ground { fill: #0f5c40; }
.art-waves path { fill: none; stroke: var(--cream); stroke-width: 3; stroke-linecap: round; opacity: .85; animation: wave 5s linear infinite; }
.art-waves path:nth-child(even) { animation-direction: reverse; opacity: .5; }
@keyframes wave { to { transform: translateX(40px); } }
.art-lamps path { fill: none; stroke: var(--cream-3); stroke-width: 5; stroke-linecap: round; }
.art-trunk { fill: none; stroke: var(--cream-3); stroke-width: 9; stroke-linecap: round; }
.art-fronds path { fill: none; stroke: #33a371; stroke-width: 11; stroke-linecap: round; }

/* Flip: illustration on the front, photo on the back */
.flip { position: relative; display: block; width: 100%; aspect-ratio: 3 / 4; padding: 0; border: 0; background: none; cursor: pointer; perspective: 1200px; }
.flip-hint {
	position: absolute; right: 14px; bottom: -22px; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center;   /* straddles the bottom edge, clear of the sticker */
	border-radius: 50%; background: var(--cream); color: var(--ink); box-shadow: 0 6px 18px rgba(0, 0, 0, .4);
	transition: rotate .9s var(--ease), background-color .3s, scale .4s var(--ease);
}
.flip--hint-left .flip-hint { right: auto; left: 14px; }
.flip-hint svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.flip-hint::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--cream); opacity: 0; pointer-events: none; }
.flip.is-flipped .flip-hint { rotate: 180deg; }
.flip:hover .flip-hint, .flip:focus-visible .flip-hint { background: var(--rosso); scale: 1.08; }
.flip.is-inview .flip-hint::after { animation: hint-ring 1.7s ease-out 3; }
.flips-known .flip.is-inview .flip-hint::after { animation: none; }
@keyframes hint-ring { from { transform: scale(1); opacity: .9; } to { transform: scale(2.2); opacity: 0; } }
.flip:focus-visible { border-radius: 999px 999px 0 0; }
.flip-inner { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 1.1s var(--ease); }
.flip.is-flipped .flip-inner { transform: rotateY(180deg); }
.flip-face { position: absolute; inset: 0; display: block; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flip-back { transform: rotateY(180deg); }
html:not(.js) .flip:hover .flip-inner, html:not(.js) .flip:focus .flip-inner { transform: rotateY(180deg); }
.postcard { display: grid; align-content: center; justify-items: center; gap: .55em; padding: 26% 9% 10%; background: var(--cream); color: var(--ink); text-align: center; }
.postcard-top, .postcard-note { font-family: var(--mono); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; }
.postcard-note { letter-spacing: .1em; color: rgba(24, 23, 22, .7); }
.postcard-city { font-family: var(--serif); font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; font-size: clamp(2.5rem, 4.6vw, 3.9rem); line-height: .9; letter-spacing: -.04em; color: var(--rosso-d); }
.postcard-nick { font-family: var(--serif); font-size: 1.12rem; line-height: 1.2; letter-spacing: -.01em; }

.route { display: none; }

@media (max-width: 760px) {
	.panel { grid-template-columns: 1fr; }
	.panel-visual { width: min(74%, 300px); justify-self: start; margin-left: 6%; }
}

/* Pinned mode (enabled by JS on wide + tall viewports) */
.journey.is-pinned .journey-sticky { position: sticky; top: 0; height: 100vh; padding-block: 0; display: flex; flex-direction: column; overflow: clip; }
.journey.is-pinned .journey-track {
	flex: 1; min-height: 0; flex-direction: row; align-items: center; gap: clamp(40px, 7vw, 130px);
	max-width: none; margin: 0; padding: clamp(76px, 11vh, 110px) var(--pad) clamp(12px, 2vh, 24px); will-change: transform;
}
.journey.is-pinned .panel { flex: 0 0 min(84vw, 1120px); font-size: clamp(.86rem, 1.72vh, 1.04rem); }
.journey.is-pinned .panel--intro { flex-basis: min(70vw, 860px); }
.journey.is-pinned .panel--next { flex-basis: min(70vw, 900px); }
.journey.is-pinned .panel-city { font-size: clamp(3rem, min(8vw, 15vh), 8.6rem); }
.journey.is-pinned .panel-city--next { font-size: clamp(2.6rem, min(6.4vw, 12vh), 7rem); }
.journey.is-pinned .panel--intro .display { font-size: clamp(2.6rem, min(6.6vw, 13vh), 6.4rem); }
.journey.is-pinned .panel-visual { width: min(100%, 46vh, 360px); }
.journey.is-pinned .panel-hint .hint-h { display: inline; }
.journey.is-pinned .panel-hint .hint-v { display: none; }
.journey.is-pinned .panel-hint svg { transform: none; animation-name: nudge-h; }
.journey.is-pinned .route { display: block; padding: 0 var(--pad) clamp(16px, 2.6vh, 30px); }
.route-line { position: relative; height: 1px; background: var(--line); }
.route-line i { position: absolute; left: 0; top: 0; height: 1px; width: 100%; background: var(--cream); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.route ol { display: grid; grid-template-columns: repeat(5, 1fr); }
.route li { position: relative; display: flex; gap: 10px; align-items: baseline; padding-top: 12px; font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); transition: color .4s; }
.route li::before { content: ""; position: absolute; left: 0; top: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); border: 1px solid var(--muted); transition: background-color .4s, border-color .4s, scale .4s var(--ease); }
.route li b { font-weight: 500; }
.route li span { opacity: .7; }
.route li.on { color: var(--cream); }
.route li.on::before { background: var(--rosso); border-color: var(--rosso); scale: 1.5; }

/* ==========================================================================
   What I bring
   ========================================================================== */
.bring { padding-block: clamp(80px, 11vw, 160px) clamp(40px, 6vw, 80px); }
.claims { display: grid; gap: clamp(28px, 4vw, 56px); }
.claim { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(18px, 3vw, 44px); align-items: start; max-width: 780px; padding-top: clamp(20px, 3vw, 36px); border-top: 1px solid var(--line); }
.claim:nth-child(2) { margin-left: min(14vw, 220px); }
.claim:nth-child(3) { margin-left: min(28vw, 440px); }
.claim-n { font-family: var(--serif); font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; font-size: clamp(5rem, 11vw, 10rem); line-height: .78; letter-spacing: -.06em; color: var(--rosso-d); min-width: .62em; }
.claim h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 2.8vw, 2.4rem); line-height: 1.05; letter-spacing: -.025em; margin-bottom: 10px; }
.claim p { color: var(--muted); max-width: 52ch; }
.proof {
	display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; min-height: 44px; padding: 0 18px;
	border: 1px solid var(--fg); border-radius: 99px; background: none; cursor: pointer; text-decoration: none;
	font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
	transition: background-color .35s var(--ease), color .35s var(--ease);
}
.proof:hover { background: var(--fg); color: var(--bg); }
.proof svg { width: 15px; height: 15px; transition: transform .35s var(--ease); }
.proof:hover svg { transform: translate(2px, -2px); }
@media (max-width: 760px) { .claim:nth-child(n) { margin-left: 0; } }

/* ==========================================================================
   Work — bento
   ========================================================================== */
.work { padding-block: clamp(56px, 8vw, 110px) clamp(80px, 11vw, 160px); }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); }
.card {
	position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
	min-height: clamp(280px, 30vw, 420px); padding: clamp(20px, 2.4vw, 34px);
	border: 0; border-radius: var(--r); overflow: hidden; isolation: isolate;
	background: var(--ink); color: var(--cream); text-align: left; text-decoration: none; cursor: pointer;
}
.card:hover { translate: 0 -6px; }
.card { transition: translate .6s var(--ease), opacity .9s var(--ease), transform .9s var(--ease); }
.card { --accent: var(--rosso); }
.card--underdawgs { grid-column: span 7; }
.card--study { grid-column: span 5; background: var(--rosso); color: var(--ink); }
.card--crooked, .card--crunch { grid-column: span 6; }
.card--rimowa { grid-column: span 5; background: linear-gradient(160deg, #3a3835, #1d1c1a); }
.card--emil { grid-column: span 7; background: var(--cream-3); color: var(--ink); --accent: var(--rosso-d); }

.card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tag { display: inline-block; padding: 7px 12px; border: 1px solid currentColor; border-radius: 99px; font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; line-height: 1.2; }
.tag--light { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.card-body { display: grid; gap: 10px; max-width: 46ch; padding-right: 52px; }
.card-title { font-family: var(--serif); font-size: clamp(1.9rem, 3.4vw, 3.3rem); line-height: .98; letter-spacing: -.035em; }
.card--rimowa .card-title { letter-spacing: .04em; font-size: clamp(1.7rem, 2.4vw, 2.4rem); }
.card--study .card-title em { color: var(--cream); }
.card-desc { font-size: .93rem; line-height: 1.5; opacity: .82; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chips span { padding: 5px 11px; border-radius: 99px; background: rgba(251, 249, 230, .1); font-size: .74rem; }
.card-arrow {
	position: absolute; right: clamp(16px, 2vw, 28px); bottom: clamp(16px, 2vw, 28px); width: 46px; height: 46px;
	display: grid; place-items: center; border-radius: 50%; border: 1px solid currentColor;
	transition: background-color .4s var(--ease), color .4s var(--ease), rotate .5s var(--ease);
}
.card:hover .card-arrow { background: var(--cream); color: var(--ink); border-color: var(--cream); rotate: 45deg; }
.card--study:hover .card-arrow, .card--emil:hover .card-arrow { background: var(--ink); color: var(--cream); border-color: var(--ink); rotate: 0deg; }

.rec { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; }
.rec i { width: 9px; height: 9px; border-radius: 50%; background: var(--dawg); animation: blink 1.4s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.wave { display: flex; align-items: center; gap: clamp(3px, .5vw, 7px); height: clamp(56px, 8vw, 110px); }
.wave i { flex: 1; height: 100%; border-radius: 99px; background: var(--cream); transform: scaleY(.25); animation: eq 1.25s ease-in-out infinite alternate; animation-play-state: paused; }
.wave i:nth-child(3n) { animation-duration: .9s; background: var(--rosso); }
.wave i:nth-child(4n+1) { animation-duration: 1.6s; }
.wave i:nth-child(odd) { animation-delay: -.45s; }
.wave i:nth-child(5n) { animation-delay: -.9s; }
.wave i:nth-child(7n) { animation-delay: -1.2s; }
.card--underdawgs.in .wave i { animation-play-state: running; }
@keyframes eq { from { transform: scaleY(.12); } to { transform: scaleY(1); } }

.card-big { font-family: var(--serif); font-size: clamp(5rem, 11vw, 10.5rem); line-height: .8; letter-spacing: -.06em; }
.card-big small { font-family: var(--mono); font-size: .8rem; letter-spacing: .12em; margin-right: 10px; vertical-align: top; }

/* photo cards: picture behind, text on a dark fade */
.card--crooked img, .card--crunch img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; filter: saturate(.9); transition: scale 1.2s var(--ease); }
.card--crooked::after, .card--crunch::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(24, 23, 22, .42) 0%, rgba(24, 23, 22, .18) 26%, rgba(24, 23, 22, .88) 64%, rgba(24, 23, 22, .97) 100%); }
.card--crooked .card-title em { display: block; white-space: nowrap; }
.card--crooked:hover img, .card--crunch:hover img { scale: 1.06; }
.grooves { position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(90deg, transparent 0 15px, rgba(251, 249, 230, .09) 15px 17px, rgba(0, 0, 0, .25) 17px 19px); transition: background-position .9s var(--ease); }
.card--rimowa:hover .grooves { background-position: 19px 0; }

@media (max-width: 1100px) {
	.card--underdawgs, .card--study, .card--crooked, .card--crunch { grid-column: span 12; }
	.card--rimowa, .card--emil { grid-column: span 6; }
}
@media (max-width: 640px) {
	.card--rimowa, .card--emil { grid-column: span 12; }
	.sec-head--row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Research
   ========================================================================== */
.research { padding-block: clamp(80px, 11vw, 160px); }
.lab { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(16px, 2vw, 28px); }
.quiz, .method { border: 1px solid var(--line); border-radius: var(--r); padding: clamp(22px, 3vw, 44px); }
.quiz { background: var(--soft); display: grid; gap: 20px; align-content: start; min-height: 420px; }
.quiz-q { font-family: var(--serif); font-size: clamp(1.7rem, 3.3vw, 2.9rem); line-height: 1.06; letter-spacing: -.03em; max-width: 18ch; }
.quiz-options { display: flex; flex-wrap: wrap; gap: 10px; }
.quiz-options button {
	min-height: 54px; padding: 0 24px; border: 1px solid var(--line); border-radius: 99px; background: none; cursor: pointer;
	font-weight: 500; transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s, opacity .35s;
}
.quiz-options button:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.quiz-options button.is-picked { background: var(--rosso); border-color: var(--rosso); color: var(--ink); }
.quiz.is-done .quiz-options button:not(.is-picked) { opacity: .4; }
.quiz-result { display: grid; gap: 14px; padding-top: 20px; border-top: 1px solid var(--line); animation: rise .8s var(--ease); }
.quiz-result[hidden] { display: none; }
.quiz-verdict { font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--rosso); }
.quiz-equal { display: flex; flex-wrap: wrap; align-items: baseline; gap: .28em; font-family: var(--serif); font-size: clamp(2.6rem, 6.4vw, 5.6rem); line-height: .95; letter-spacing: -.045em; }
.quiz-equal b { font-weight: 400; color: var(--rosso); animation: pop-eq .9s var(--ease) .2s both; }
@keyframes pop-eq { from { transform: scale(0) rotate(-90deg); } }
.quiz-detail { color: var(--muted); max-width: 54ch; }
.quiz-reset { justify-self: start; min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer; font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 5px; color: var(--muted); }
.quiz-reset:hover { color: var(--cream); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

.method { display: grid; gap: 18px; align-content: space-between; }
.method ol { display: grid; }
.method li { display: flex; gap: 16px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: clamp(1.2rem, 1.8vw, 1.55rem); letter-spacing: -.015em; transition: padding-left .4s var(--ease), color .3s; }
.method li:hover { padding-left: 10px; color: var(--rosso); }
.method li b { font-family: var(--mono); font-size: .68rem; font-weight: 400; letter-spacing: .1em; color: var(--muted); }
.method-n { font-family: var(--mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; line-height: 1.9; color: var(--muted); }
.method-n strong { color: var(--cream); font-weight: 500; }

.recs { margin-top: clamp(56px, 8vw, 110px); display: grid; gap: 22px; }
.recs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.recs-grid article { display: grid; gap: 12px; align-content: start; padding-top: 20px; border-top: 1px solid var(--cream); }
.recs-grid span { font-family: var(--serif); font-style: italic; font-size: 2rem; line-height: 1; color: var(--rosso); }
.recs-grid h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.35rem, 2vw, 1.8rem); line-height: 1.1; letter-spacing: -.02em; }
.recs-grid p { color: var(--muted); font-size: .95em; }

.pull { margin-top: clamp(48px, 7vw, 96px); display: grid; gap: 18px; max-width: 1100px; }
.pull p { font-family: var(--serif); font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; font-size: clamp(2rem, 5vw, 4.6rem); line-height: 1.04; letter-spacing: -.03em; text-wrap: balance; }
.pull p::before { content: "“"; color: var(--rosso); }
.pull p::after { content: "”"; color: var(--rosso); }
.pull footer { font-size: .92rem; color: var(--muted); max-width: 52ch; }
.pull--center { margin-inline: auto; text-align: center; justify-items: center; }

@media (max-width: 900px) {
	.lab, .recs-grid { grid-template-columns: 1fr; }
	.quiz { min-height: 0; }
}

/* ==========================================================================
   Education — accordion
   ========================================================================== */
.edu { padding-block: clamp(80px, 11vw, 160px); }
.acc { border-top: 1px solid var(--fg); }
.acc-item { border-bottom: 1px solid var(--fg); position: relative; }
.acc-item::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--acc); transition: width .5s var(--ease); }
.acc-item.is-open::before { width: 6px; }
.acc-item h3 { font: inherit; }
.acc-item h3 button {
	display: grid; grid-template-columns: 9.5em minmax(0, 1.4fr) minmax(0, 1fr) 46px; align-items: center; gap: 12px clamp(16px, 3vw, 48px);
	width: 100%; padding: clamp(22px, 3vw, 40px) 0; border: 0; background: none; text-align: left; cursor: pointer;
	transition: padding-left .5s var(--ease);
}
.acc-item.is-open h3 button, .acc-item h3 button:hover { padding-left: clamp(16px, 2vw, 28px); }
.acc-years { font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.acc-school { font-family: var(--serif); font-size: clamp(1.7rem, 3.6vw, 3.3rem); line-height: 1; letter-spacing: -.035em; }
.acc-school small { display: block; margin-top: 10px; font-family: var(--sans); font-size: .82rem; letter-spacing: 0; line-height: 1.4; color: var(--muted); }
.acc-degree { font-weight: 500; line-height: 1.35; }
.acc-plus { position: relative; width: 46px; height: 46px; border: 1px solid var(--fg); border-radius: 50%; transition: background-color .4s var(--ease), rotate .5s var(--ease); }
.acc-plus::before, .acc-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 1.5px; margin: -.75px 0 0 -8px; background: var(--fg); transition: transform .5s var(--ease), background-color .4s; }
.acc-plus::after { transform: rotate(90deg); }
.acc-item.is-open .acc-plus { background: var(--fg); rotate: 180deg; }
.acc-item.is-open .acc-plus::before, .acc-item.is-open .acc-plus::after { background: var(--bg); }
.acc-item.is-open .acc-plus::after { transform: rotate(0deg); }

.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease); }
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-inner { overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 72px); padding-left: calc(9.5em + clamp(32px, 5vw, 76px)); visibility: hidden; transition: visibility 0s .7s; }
.acc-item.is-open .acc-inner { visibility: visible; transition: visibility 0s; }
.acc-inner > div { display: grid; gap: 16px; align-content: start; padding-bottom: clamp(26px, 3.4vw, 48px); }
.acc-inner p:not(.eyebrow) { color: var(--muted); max-width: 52ch; }
.acc-inner strong { color: var(--fg); font-weight: 600; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badges li { padding: 10px 16px; border-radius: 14px; background: var(--ink); color: var(--cream); font-size: .82rem; line-height: 1.35; }
.badges b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.5rem; letter-spacing: -.02em; line-height: 1.1; }
.courses { display: flex; flex-wrap: wrap; gap: 8px; }
.courses li { padding: 7px 14px; border: 1px solid var(--line); border-radius: 99px; font-size: .84rem; line-height: 1.3; transition: background-color .3s, color .3s, border-color .3s; }
.courses li:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }

@media (max-width: 900px) {
	.acc-item h3 button { grid-template-columns: minmax(0, 1fr) 46px; }
	.acc-years { grid-column: 1; }
	.acc-school { grid-column: 1; }
	.acc-degree { grid-column: 1; }
	.acc-plus { grid-column: 2; grid-row: 1 / span 3; }
	.acc-inner { grid-template-columns: 1fr; padding-left: clamp(16px, 2vw, 28px); gap: 0; }
}

/* ==========================================================================
   Point of view + Q&A
   ========================================================================== */
.pov { padding-block: clamp(80px, 11vw, 160px); }
.pov .display { max-width: 15em; }
.pov-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.pov-grid article { display: grid; gap: 12px; align-content: start; padding: clamp(22px, 2.6vw, 36px); border: 1px solid var(--line); border-radius: var(--r); background: var(--soft); transition: background-color .5s var(--ease), color .5s var(--ease), translate .6s var(--ease), opacity .9s var(--ease), transform .9s var(--ease); }
.pov-grid article:hover { background: var(--cream); color: var(--ink); translate: 0 -6px; }
.pov-grid article:hover p { color: rgba(24, 23, 22, .74); }
.pov-n { font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: var(--rosso); line-height: 1; }
.pov-grid h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: 1; letter-spacing: -.03em; }
.pov-grid p { color: var(--muted); font-size: .95em; transition: color .5s var(--ease); }

.qa { margin-top: clamp(64px, 9vw, 130px); border-top: 1px solid var(--cream); padding-top: clamp(22px, 3vw, 36px); display: grid; gap: clamp(24px, 3vw, 44px); }
.qa-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.qa-sub { color: var(--muted); font-size: .92rem; }
.qa-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 90px); align-items: start; }
.qa-list { display: flex; flex-wrap: wrap; gap: 10px; }
.qa-list button { min-height: 48px; padding: 0 20px; border: 1px solid var(--line); border-radius: 99px; background: none; cursor: pointer; font-size: .92rem; transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s; }
.qa-list button:hover { border-color: var(--cream); }
.qa-list button[aria-selected="true"] { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.qa-answer { min-height: 11em; }
.qa-text { font-family: var(--serif); font-size: clamp(1.35rem, 2.5vw, 2.15rem); line-height: 1.24; letter-spacing: -.02em; transition: opacity .28s var(--ease), transform .28s var(--ease); }
.qa-text.is-out { opacity: 0; transform: translateY(12px); }
.qa-text::before { content: "A."; display: block; margin-bottom: .5em; font-family: var(--serif); font-style: italic; font-size: 1.1em; color: var(--rosso); }

@media (max-width: 900px) {
	.pov-grid, .qa-body { grid-template-columns: 1fr; }
	.qa-answer { min-height: 0; }
}

/* ==========================================================================
   Moments — gallery + lightbox
   ========================================================================== */
.moments { padding-block: clamp(80px, 11vw, 160px); }
.filters { display: inline-flex; justify-self: start; padding: 5px; border: 1px solid var(--fg); border-radius: 99px; }
.filters button { min-height: 44px; padding: 0 20px; border: 0; border-radius: 99px; background: none; cursor: pointer; font-size: .88rem; font-weight: 500; transition: background-color .35s var(--ease), color .35s var(--ease); }
.filters button.is-active { background: var(--ink); color: var(--cream); }

.gallery { columns: 4; column-gap: clamp(10px, 1.2vw, 18px); }
.shot {
	position: relative; display: block; width: 100%; margin: 0 0 clamp(10px, 1.2vw, 18px); padding: 0; border: 0;
	border-radius: clamp(12px, 1.4vw, 20px); overflow: hidden; break-inside: avoid; background: var(--cream-2); cursor: zoom-in;
	animation: shot-in .7s var(--ease) both;
}
.shot.is-out { display: none; }
.shot img { width: 100%; transition: scale 1.1s var(--ease), filter .6s; }
.shot:hover img, .shot:focus-visible img { scale: 1.05; }
.shot span {
	position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px); padding: 7px 12px; border-radius: 99px;
	background: var(--cream); color: var(--ink); font-family: var(--mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; line-height: 1.3; text-align: left;
	opacity: 0; translate: 0 10px; transition: opacity .4s var(--ease), translate .4s var(--ease);
}
.shot:hover span, .shot:focus-visible span { opacity: 1; translate: 0 0; }
@keyframes shot-in { from { opacity: 0; transform: translateY(20px) scale(.98); } }
@media (hover: none) { .shot span { opacity: 1; translate: 0 0; } }
@media (max-width: 1100px) { .gallery { columns: 3; } }
@media (max-width: 640px) { .gallery { columns: 2; } .filters button { padding: 0 13px; font-size: .84rem; } }

.lightbox { position: fixed; inset: 0; z-index: 150; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 20px clamp(8px, 2vw, 28px); background: rgba(18, 17, 16, .96); color: var(--cream); animation: fade .35s var(--ease); }
.lightbox[hidden] { display: none; }
.lightbox figure { display: grid; justify-items: center; gap: 14px; min-width: 0; }
.lightbox img { max-width: 100%; max-height: 82vh; width: auto; border-radius: 10px; animation: lb-in .5s var(--ease); }
.lightbox figcaption { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; text-align: center; color: rgba(251, 249, 230, .75); }
.lb-nav, .lb-close { width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid rgba(251, 249, 230, .3); border-radius: 50%; background: rgba(24, 23, 22, .6); cursor: pointer; transition: background-color .3s, color .3s; }
.lb-nav:hover, .lb-close:hover { background: var(--cream); color: var(--ink); }
.lb-close { position: absolute; right: clamp(12px, 2vw, 28px); top: clamp(12px, 2vw, 24px); z-index: 2; }
.lb-count { position: absolute; left: clamp(16px, 2vw, 28px); top: clamp(22px, 2.6vw, 36px); font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; }
@keyframes fade { from { opacity: 0; } }
@keyframes lb-in { from { opacity: 0; transform: scale(.96); } }
@media (max-width: 640px) {
	.lightbox { grid-template-columns: 1fr; }
	.lb-nav { position: absolute; bottom: 18px; }
	.lb-prev { left: calc(50% - 60px); }
	.lb-next { right: calc(50% - 60px); }
	.lightbox img { max-height: 70vh; }
	.lightbox figure { padding-bottom: 70px; }
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { padding-top: clamp(80px, 11vw, 160px); overflow: clip; }
.contact-title { margin-top: 12px; font-family: var(--serif); font-weight: 400; font-size: clamp(4.2rem, 17.5vw, 18rem); line-height: .84; letter-spacing: -.06em; }
.contact-title em { color: var(--rosso); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 110px); align-items: center; margin-top: clamp(40px, 6vw, 90px); }
.contact-copy { display: grid; gap: clamp(24px, 3vw, 40px); }
.contact-copy .lead { max-width: 44ch; color: var(--muted); }
.links { border-top: 1px solid var(--cream); }
.links a, .links button {
	display: grid; grid-template-columns: 7em minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; min-height: 72px; padding: 14px 0;
	border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; text-decoration: none; cursor: pointer;
	transition: padding .45s var(--ease), background-color .45s var(--ease), color .45s var(--ease);
}
.links span { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); transition: color .45s; }
.links b { font-family: var(--serif); font-weight: 400; font-size: clamp(1.25rem, 2.3vw, 1.95rem); letter-spacing: -.02em; overflow-wrap: anywhere; line-height: 1.15; }
.links a:hover, .links button:hover { padding-inline: 18px; background: var(--cream); color: var(--ink); }
.links a:hover span, .links button:hover span { color: rgba(24, 23, 22, .7); }
.links svg { transition: transform .45s var(--ease); }
.links a:hover svg { transform: translate(3px, -3px); }

.bizcard-wrap { display: grid; justify-items: center; gap: 22px; perspective: 1400px; }
.bizcard { width: min(100%, 540px); aspect-ratio: 1050 / 600; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 16px; }
.bizcard-inner {
	position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d;
	transform: rotateX(var(--rx, 0deg)) rotateY(calc(var(--ry, 0deg) + var(--flip, 0deg)));
	transition: transform .9s var(--ease);
}
.bizcard.is-tilting .bizcard-inner { transition: transform .15s linear; }
.bizcard.is-flipped { --flip: 180deg; }
.bizcard-face { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 16px; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 30px 70px rgba(0, 0, 0, .55), 0 0 0 1px rgba(251, 249, 230, .14); }
.bizcard-back { transform: rotateY(180deg); }
.bizcard-hint { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.foot { margin-top: clamp(64px, 9vw, 130px); border-top: 1px solid var(--line); }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-block: 22px; font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.foot-inner { align-items: center; }
.foot-made { display: inline-flex; align-items: center; gap: 7px; }
.foot-made .ico:first-child { margin-right: -1px; }
.foot-made .ico:last-child { margin-left: -2px; }
.foot-made .ico { width: 14px; height: 21px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
/* Footer icons (Bologna towers, Miami palm) are hidden for now: delete the next line to show them. */
.foot-made .ico { display: none; }
.foot a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; margin-block: -12px; }
.foot a:hover { color: var(--cream); }

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .links a, .links button { grid-template-columns: minmax(0, 1fr) auto; } .links span { grid-column: 1 / -1; } }

/* ==========================================================================
   Case dialogs
   ========================================================================== */
dialog.case {
	--fg: var(--ink); --bg: var(--cream); --muted: rgba(24, 23, 22, .7); --line: rgba(24, 23, 22, .17); --accent: var(--rosso-d);
	width: min(980px, calc(100vw - 28px)); max-height: min(90vh, 920px); padding: 0; border: 0; border-radius: var(--r);
	background: var(--cream); color: var(--ink); overflow: auto; overscroll-behavior: contain;
}
dialog.case::backdrop { background: rgba(18, 17, 16, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
dialog.case[open] { animation: case-in .6s var(--ease); }
dialog.case[open]::backdrop { animation: fade .4s var(--ease); }
@keyframes case-in { from { opacity: 0; transform: translateY(40px) scale(.97); } }
.case-inner { position: relative; display: grid; gap: clamp(18px, 2.4vw, 30px); padding: clamp(24px, 4vw, 60px); }
.case-inner > .eyebrow { padding-right: 110px; }
.case-inner > .lead { max-width: 56ch; }
.case-close { position: sticky; top: 16px; z-index: 2; justify-self: end; margin-bottom: -62px; display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border: 1px solid var(--ink); border-radius: 99px; background: var(--cream); cursor: pointer; font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; transition: background-color .3s, color .3s; }
.case-close:hover { background: var(--ink); color: var(--cream); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); counter-reset: s; }
.steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps li { display: grid; gap: 8px; align-content: start; padding: 18px; border-radius: 18px; background: var(--cream-2); transition: background-color .4s var(--ease), color .4s var(--ease), translate .5s var(--ease); }
.steps li:hover { background: var(--ink); color: var(--cream); translate: 0 -4px; }
.steps li:hover p { color: rgba(251, 249, 230, .72); }
.steps b { font-family: var(--mono); font-weight: 400; font-size: .7rem; letter-spacing: .12em; color: var(--rosso-d); }
.steps li:hover b { color: var(--rosso); }
.steps h3 { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; line-height: 1.05; letter-spacing: -.02em; }
.steps p { font-size: .88rem; line-height: 1.5; color: var(--muted); transition: color .4s; }
.case-out { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 3vw, 48px); padding-top: clamp(18px, 2.4vw, 30px); border-top: 1px solid var(--ink); }
.case-out > div { display: grid; gap: 10px; align-content: start; }
.case-out p:not(.eyebrow) { color: var(--muted); }
.case-photos { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; align-items: start; }
.case-photos figure { display: grid; gap: 8px; }
.case-photos img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 16px; }
.case-photos figcaption { font-size: .76rem; color: var(--muted); }
.case-photos .wide { grid-column: 1 / -1; }
.case-photos .wide img { aspect-ratio: 900 / 400; object-position: 50% 42%; }
@media (max-width: 760px) {
	dialog.case { width: 100vw; max-width: 100vw; max-height: 92vh; margin: auto 0 0; border-radius: var(--r) var(--r) 0 0; }
	.steps, .steps--3, .case-out, .case-photos { grid-template-columns: 1fr; }
	.steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Toast */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 160; translate: -50% 80px; padding: 12px 20px; border-radius: 99px; background: var(--cream); color: var(--ink); font-size: .88rem; font-weight: 500; box-shadow: 0 16px 40px rgba(0, 0, 0, .35); opacity: 0; transition: translate .5s var(--ease), opacity .4s; pointer-events: none; }
.toast.is-on { translate: -50% 0; opacity: 1; }

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
.js .rv { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }
.js .card.rv, .js .pov-grid article.rv { transition: translate .6s var(--ease), background-color .5s var(--ease), color .5s var(--ease), opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
	.marquee-track { animation: none; }
	.js .rv, .js .hero-title .line > span, .js .hero-ciao, .js .hero-top, .js .hero-foot, .js .hero-portrait { opacity: 1; transform: none; }
	.statement .w { opacity: 1; }
	.tone li span { background-size: 100% 100%; }
	.wave i { transform: scaleY(.6); }
}

@media print {
	.nav, .cursor, .progress, .marquee, .route, .hero-scroll, .pager { display: none !important; }
	.js .rv { opacity: 1; transform: none; }
}

/* Emil Banca card motif: paper becoming data */
.paper2data { display: flex; align-items: center; gap: clamp(10px, 1.4vw, 20px); color: var(--ink); }
.paper2data svg { width: clamp(44px, 5vw, 68px); height: auto; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.paper2data .p2d-arrow { width: clamp(28px, 3vw, 44px); color: var(--rosso-d); transition: translate .6s var(--ease); }
.card--emil:hover .p2d-arrow { translate: 6px 0; }

/* ==========================================================================
   Multi-page site: shared pieces
   ========================================================================== */
.nav-links a[aria-current="page"]:not(.nav-cta)::after { transform: scaleX(1); }
.menu a[aria-current="page"] { color: var(--rosso-d); }

/* First section of an inner page: clears the fixed navigation and carries the page title */
.page-top { padding-top: clamp(124px, 15vw, 210px); }
.page-title { font-size: clamp(3.3rem, 11vw, 10.5rem); line-height: .9; }

.textlink { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: .95rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
.textlink::before { content: ""; position: absolute; left: 0; right: 0; bottom: 9px; height: 1px; background: currentColor; }
.textlink::after { content: "→"; transition: translate .45s var(--ease); }
.textlink:hover::after { translate: 4px 0; }
.textlink[target="_blank"]::after { content: "↗"; }
.textlink[target="_blank"]:hover::after { translate: 2px -2px; }
.textlink--back { flex-direction: row-reverse; }
.textlink--back::after { content: "←"; }
.textlink--back:hover::after { translate: -4px 0; }
.more-row { margin-top: clamp(28px, 4vw, 56px); }
.more-row--center { text-align: center; }
.facts a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.facts a:hover { color: var(--accent); }

.draft { display: inline-block; padding: 3px 9px; border: 1px dashed currentColor; border-radius: 99px; font-family: var(--mono); font-style: normal; font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; line-height: 1.4; color: var(--accent); }

/* Next-step band that closes every page, with the footer inside */
.cta-band { padding-top: clamp(72px, 10vw, 140px); overflow: clip; }
.cta-band .contact-title { font-size: clamp(3.6rem, 13vw, 12.5rem); }
.cta-band-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 48px; margin-top: clamp(28px, 4vw, 56px); }
.cta-band-row .lead { max-width: 42ch; color: var(--muted); }

/* ==========================================================================
   Home: pitch, offer, introduction video
   ========================================================================== */
.hero-pitch { display: grid; gap: 10px; }
.hero-offer { max-width: 36ch; font-size: .95rem; line-height: 1.5; color: var(--muted); }

.offer { padding-block: clamp(80px, 12vw, 170px); }
.offer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 48px; margin-top: clamp(40px, 6vw, 84px); padding-top: clamp(20px, 3vw, 32px); border-top: 1px solid var(--fg); }
.offer-row .lead { max-width: 44ch; }

.intro-video { padding-block: clamp(80px, 11vw, 160px); }
.video { display: grid; gap: 14px; }
.video-frame { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; isolation: isolate; background: radial-gradient(55% 80% at 76% 45%, rgba(226, 87, 47, .24), transparent 72%), var(--ink-2); }
.video-mono { position: absolute; left: 1%; top: -9%; z-index: -2; font-family: var(--serif); font-size: clamp(11rem, 40vw, 36rem); line-height: .8; letter-spacing: -.09em; color: transparent; -webkit-text-stroke: 1px rgba(251, 249, 230, .1); user-select: none; }
.video-arch { position: absolute; right: 9%; bottom: 0; z-index: -1; width: 25%; aspect-ratio: 3 / 3.8; }
.video-arch img { object-position: 50% 18%; }
.video-frame > iframe, .video-frame > video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video-play { display: grid; place-items: center; width: clamp(68px, 9vw, 124px); aspect-ratio: 1; border-radius: 50%; background: var(--rosso); color: var(--ink); }
.video-play svg { width: 36%; height: 36%; margin-left: 5%; fill: currentColor; }
.video-card { position: absolute; left: clamp(12px, 2vw, 26px); bottom: clamp(12px, 2vw, 26px); display: grid; gap: 2px; padding: 10px 16px 12px; border-radius: 12px; background: var(--cream); color: var(--ink); font-size: .78rem; line-height: 1.3; }
.video-card b { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; letter-spacing: -.02em; }
.video figcaption { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ==========================================================================
   Blog
   ========================================================================== */
.blog { padding-bottom: clamp(80px, 11vw, 160px); }
.blog-teaser { padding-block: clamp(56px, 8vw, 110px) clamp(80px, 11vw, 160px); }
.blog-teaser .wrap > .sec-head { padding-top: clamp(40px, 6vw, 80px); border-top: 1px solid var(--fg); }
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(20px, 2.6vw, 40px); }
.post-card a { display: grid; gap: 14px; align-content: start; text-decoration: none; }
.post-card-img { display: block; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--cream-3); }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.1s var(--ease); }
.post-card a:hover .post-card-img img { scale: 1.05; }
.post-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 4px; font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.post-card-title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 2.2vw, 2.05rem); line-height: 1.07; letter-spacing: -.025em; text-wrap: balance; }
.post-card-desc { color: var(--muted); font-size: .95em; line-height: 1.55; }
.post-card-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 2px; font-size: .9rem; font-weight: 500; }
.post-card-more svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: translate .45s var(--ease); }
.post-card a:hover .post-card-more svg { translate: 4px 0; }

.post { padding-bottom: clamp(80px, 11vw, 160px); }
.post-wrap { max-width: 1100px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: clamp(20px, 3vw, 36px); }
.post-title { margin-top: 16px; font-size: clamp(2.3rem, 5.8vw, 5rem); line-height: 1; }
.post-lead { max-width: 62ch; margin-top: clamp(20px, 3vw, 36px); color: var(--muted); }
.post-cover { display: grid; gap: 10px; margin-top: clamp(32px, 5vw, 64px); }
.post-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r); }
.post-cover figcaption { font-size: .78rem; color: var(--muted); }
.post-body { display: grid; gap: 1.1em; max-width: 66ch; margin: clamp(36px, 5vw, 64px) auto 0; }
.post-body h2 { margin-top: .8em; font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 2.8vw, 2.3rem); line-height: 1.08; letter-spacing: -.025em; }
.post-body .pull { margin-block: clamp(14px, 2vw, 28px); }
.post-body .pull p { font-size: clamp(1.7rem, 3.4vw, 2.9rem); }
.post-next { display: grid; gap: 8px; margin-top: clamp(56px, 8vw, 110px); padding-top: clamp(22px, 3vw, 36px); border-top: 1px solid var(--fg); }
.post-next ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 48px); }
.post-next a { display: grid; gap: 8px; height: 100%; padding: 18px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: clamp(1.25rem, 2.1vw, 1.75rem); line-height: 1.12; letter-spacing: -.02em; text-decoration: none; transition: color .35s var(--ease); }
.post-next a:hover { color: var(--accent); }

/* ==========================================================================
   Resume
   ========================================================================== */
.resume { padding-bottom: clamp(24px, 4vw, 56px); }
.resume-dl { justify-items: start; }
.resume-note { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.resume-grid { border-top: 1px solid var(--fg); }
.resume-block { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(12px, 4vw, 72px); padding-block: clamp(24px, 3.4vw, 48px); border-bottom: 1px solid var(--line); }
.resume-h { padding-top: .55em; font-family: var(--mono); font-weight: 400; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.resume-body { display: grid; gap: clamp(20px, 2.6vw, 34px); max-width: 70ch; }
.resume-item { display: grid; gap: 8px; }
.resume-item h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.45rem, 2.4vw, 2rem); line-height: 1.08; letter-spacing: -.025em; }
.resume-meta { font-size: .88rem; font-weight: 500; line-height: 1.45; }
.resume-item ul { display: grid; gap: 6px; padding-left: 1.15em; list-style: disc; color: var(--muted); }
.skills { display: flex; flex-wrap: wrap; gap: 8px; }
.skills li { padding: 8px 15px; border: 1px solid var(--line); border-radius: 99px; font-size: .88rem; line-height: 1.3; }
.acc-links { display: flex; flex-wrap: wrap; gap: 0 24px; }
.acc-links .textlink { white-space: normal; }

@media (max-width: 900px) {
	.posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sec-head--row > .textlink { justify-self: start; }
}
@media (max-width: 760px) {
	.resume-block { grid-template-columns: 1fr; }
	.post-next ul { grid-template-columns: 1fr; }
	.video-card b { font-size: 1.05rem; }
}
@media (max-width: 600px) {
	.posts { grid-template-columns: 1fr; }
	.video-frame { aspect-ratio: 4 / 3; }
	.video-arch { right: 6%; width: 30%; }
	.video-play { align-self: start; justify-self: start; margin: 12% 0 0 11%; }
	.video-card { max-width: 56%; padding: 8px 12px 9px; font-size: .68rem; }
	.video-card b { font-size: 1rem; }
}

/* ==========================================================================
   Page-to-page passage: where you are in the site and the page that comes next
   ========================================================================== */
.pager { padding-block: clamp(48px, 7vw, 96px) clamp(64px, 9vw, 130px); }
.sec--cream + .pager { padding-top: 0; }
.pager-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 0 clamp(18px, 2.8vw, 44px); padding-block: 8px; border-top: 1px solid var(--fg); }
.pager-steps a { position: relative; display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--muted); transition: color .35s var(--ease); }
.pager-steps a span { color: var(--accent); }
.pager-steps a:hover, .pager-steps a[aria-current="page"] { color: var(--fg); }
.pager-steps a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 9px; height: 1px; background: currentColor; }
.pager-next { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: clamp(10px, 1.4vw, 18px) clamp(16px, 3vw, 48px); padding-block: clamp(22px, 3.2vw, 44px) clamp(26px, 3.8vw, 56px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--fg); text-decoration: none; }
.pager-next .eyebrow { grid-column: 1 / -1; }
.pager-title { font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 10.5vw, 9.5rem); line-height: .9; letter-spacing: -.045em; text-wrap: balance; transition: translate .6s var(--ease); }
.pager-title em { font-variation-settings: "SOFT" 100, "WONK" 1; color: var(--accent); }
.pager-go { display: grid; place-items: center; width: clamp(54px, 7vw, 104px); aspect-ratio: 1; border: 1px solid currentColor; border-radius: 50%; transition: background-color .45s var(--ease), border-color .45s var(--ease), translate .6s var(--ease); }
.pager-go svg { width: 34%; height: 34%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pager-next:hover .pager-title { translate: clamp(6px, 1vw, 16px) 0; }
.pager-next:hover .pager-go { background: var(--rosso); border-color: var(--rosso); translate: clamp(4px, .6vw, 10px) 0; }

/* Last page: only the list of pages, before the contact section */
.pager--end .wrap { display: grid; gap: 10px; }
.pager--end .pager-steps { border-bottom: 1px solid var(--fg); }

/* ==========================================================================
   Work: numbers, test table, problem / decision / result, slides, roadmap
   ========================================================================== */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); }
.kpis--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpis li { display: grid; gap: 10px; align-content: start; padding-top: 16px; border-top: 1px solid var(--fg); }
.kpis strong { font-family: var(--serif); font-weight: 400; font-size: clamp(2.3rem, 4.4vw, 4rem); line-height: .95; letter-spacing: -.04em; font-variant-numeric: lining-nums; white-space: nowrap; }
.kpis strong i { font-size: .42em; letter-spacing: 0; color: var(--muted); }
.kpis span { color: var(--muted); font-size: .92em; line-height: 1.5; }

.findings { margin-top: clamp(56px, 8vw, 110px); display: grid; gap: clamp(20px, 2.6vw, 32px); }
.tests-wrap { overflow-x: auto; }
.tests { width: 100%; min-width: 560px; border-collapse: collapse; text-align: left; font-size: .95em; }
.tests caption { caption-side: bottom; padding-top: 14px; text-align: left; font-size: .86rem; color: var(--muted); }
.tests thead th { padding: 0 16px 12px 0; border-bottom: 1px solid var(--fg); font-family: var(--mono); font-weight: 400; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tests tbody th, .tests td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.tests tbody th { font-family: var(--serif); font-weight: 400; font-size: 1.25em; letter-spacing: -.015em; white-space: nowrap; }
.tests td { color: var(--muted); }
.tests .num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.tests td.num { color: var(--fg); }
.tests td:last-child, .tests th:last-child { padding-right: 0; white-space: nowrap; }

#dlg-rimowa h2.display { font-size: clamp(2.2rem, 5vw, 4.4rem); }
.pdr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.pdr li { display: grid; gap: 10px; align-content: start; padding: 18px; border-radius: 18px; background: var(--cream-2); }
.pdr .eyebrow { color: var(--rosso-d); }
.pdr p:not(.eyebrow) { font-size: .92rem; line-height: 1.55; }
.case-block { display: grid; gap: 16px; }
.case-slides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.case-slides figure { display: grid; gap: 8px; }
.case-slides .wide { grid-column: 1 / -1; }
.case-slides img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); }
.case-slides figcaption { font-size: .76rem; color: var(--muted); }
.roadmap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.roadmap li { display: grid; gap: 10px; align-content: start; padding-top: 14px; border-top: 1px solid var(--fg); }
.roadmap b { font-family: var(--serif); font-weight: 400; font-style: italic; font-size: 1.7rem; line-height: 1; color: var(--rosso-d); }
.roadmap p { font-size: .88rem; line-height: 1.5; color: var(--muted); }
.case-note { font-size: .8rem; color: var(--muted); }

@media (max-width: 900px) {
	.kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.kpis--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
	.kpis--3, .pdr, .case-slides { grid-template-columns: 1fr; }
	.roadmap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
	.kpis, .roadmap { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	/* The test table becomes a list: name and p-value on one line, question and result below */
	.tests { min-width: 0; }
	.tests thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
	.tests tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
	.tests tbody th, .tests td { padding: 0; border: 0; }
	.tests td.num { grid-column: 2; grid-row: 1; align-self: baseline; }
	.tests td.num::before { content: "p = "; color: var(--muted); }
	.tests td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
	.tests td:last-child { grid-column: 1 / -1; grid-row: 3; font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg); }
}

/* ==========================================================================
   Blog posts: numbers, lists, comparison and link lists inside the text
   ========================================================================== */
.post-body .kpis { margin-block: .6em; gap: 14px 22px; }
.post-body .kpis strong { font-size: clamp(2rem, 3.4vw, 2.7rem); }
.post-body .kpis span { font-size: .86em; }
.post-note { font-size: .8rem; color: var(--muted); }
.post-list { display: grid; gap: 14px; counter-reset: pl; }
.post-list li { position: relative; padding: 14px 0 0 2.6em; border-top: 1px solid var(--line); counter-increment: pl; }
.post-list li::before { content: counter(pl); position: absolute; left: 0; top: 10px; font-family: var(--serif); font-style: italic; font-size: 1.7rem; line-height: 1.1; color: var(--accent); }
.post-list b { font-weight: 500; }
.versus { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-block: .4em; }
.versus > div { display: grid; gap: 12px; align-content: start; padding: 18px; border-radius: 18px; background: var(--cream-2); }
.versus .eyebrow { color: var(--accent); }
.versus ul { display: grid; gap: 6px; font-size: .95em; line-height: 1.45; }
.post-links { display: flex; flex-wrap: wrap; gap: 0 26px; }
.post-links .textlink { white-space: normal; }
.case-block .post-links { margin-top: -4px; }
@media (max-width: 560px) {
	.versus { grid-template-columns: 1fr; }
	.post-body .kpis--3 { grid-template-columns: 1fr; }
}

/* Poster grid: Underdawgs live-show posters, each linking to the original post */
.posters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 12px; }
.posters a { display: grid; gap: 7px; text-decoration: none; }
.posters img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); transition: translate .5s var(--ease); }
.posters a:hover img { translate: 0 -4px; }
.posters span { font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; line-height: 1.4; color: var(--muted); }
.post-body .posters { margin-block: .4em; }
@media (max-width: 760px) {
	.posters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Employer logo inside a case, on its own white tile */
.case-logo { display: inline-flex; justify-self: start; padding: 16px 22px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.case-logo img { width: auto; height: clamp(24px, 3.2vw, 36px); }

/* Video frame holding a real video: always 16:9, with a button to start it with sound */
.video-frame--media { aspect-ratio: 16 / 9; background: var(--ink); }
/* contain, not cover: in full screen on a screen that is not 16:9 nothing gets cut off */
.video-frame--media > video { object-fit: contain; background: #000; }
.video-sound { position: absolute; left: clamp(12px, 2vw, 26px); bottom: clamp(12px, 2vw, 26px); z-index: 2; display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 20px 0 15px; border: 0; border-radius: 99px; background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: .9rem; font-weight: 500; cursor: pointer; transition: background-color .3s, translate .4s var(--ease); }
.video-sound:hover { background: var(--rosso); translate: 0 -2px; }
.video-sound svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.video-sound svg path:first-child { fill: currentColor; }
.video-sound[hidden] { display: none; }
/* Big: the frame fills the whole window, and the whole screen where the browser grants it */
.video-frame--media.is-cinema { position: fixed; inset: 0; z-index: 300; width: 100%; height: 100%; aspect-ratio: auto; border: 0; border-radius: 0; background: #000; }
.video-frame--media:fullscreen { width: 100%; height: 100%; aspect-ratio: auto; border: 0; border-radius: 0; background: #000; }
.video-frame--media:-webkit-full-screen { width: 100%; height: 100%; aspect-ratio: auto; border: 0; border-radius: 0; background: #000; }
.video-size { position: absolute; right: clamp(12px, 2vw, 26px); top: clamp(12px, 2vw, 26px); z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(24, 23, 22, .62); color: var(--cream); cursor: pointer; transition: opacity .35s, background-color .3s, color .3s; }
.video-size:hover, .video-size:focus-visible { background: var(--rosso); color: var(--ink); }
.video-size[hidden] { display: none; }
.video-size svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.video-size .ico-close, .is-cinema .video-size .ico-open { display: none; }
.is-cinema .video-size .ico-close { display: block; }
.video-frame--media.is-idle .video-size:not(:focus-visible) { opacity: 0; }
/* In the page the button only shows while the pointer is on the video, so it does not sit on the picture */
.video-frame--media:not(.is-cinema):not(:hover) .video-size:not(:focus-visible) { opacity: 0; }
.video-frame--media.is-idle { cursor: none; }
@media (max-width: 600px) {
	.video-sound { left: 10px; bottom: 10px; min-height: 40px; gap: 8px; padding: 0 14px 0 11px; font-size: .8rem; }
	.video-sound svg { width: 17px; height: 17px; }
}
