/* ==========================================================================
   Alexandre Cardin — portfolio styles
   ========================================================================== */

:root {
	--ink: #0b0b0f;
	--ink-2: #17171d;
	--paper: #f3efe6;
	--mint: #8fe3c0;
	--lilac: #b9a7ff;
	/* Lime and pink: kept for the Contact section only */
	--acid: #c8ff2e;
	--pink: #ff3c8e;
	--blue: #2f3cff;
	--orange: #ff5a1f;
	--yellow: #ffd400;

	--f-display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
	--f-serif: "Instrument Serif", Georgia, serif;
	--f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

	--gutter: clamp(16px, 4vw, 64px);
	/* Panel gutter: on very wide screens, content stays within a centred 1680px band */
	--edge: max(var(--gutter), calc((100vw - 1680px) / 2));
	--radius: clamp(18px, 2.4vw, 32px);
	--ease: cubic-bezier(.7, 0, .2, 1);
	--ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
	margin: 0;
	background: var(--ink);
	color: var(--paper);
	font-family: var(--f-display);
	font-size: clamp(16px, 1.05vw, 19px);
	line-height: 1.5;
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
b { font-weight: 700; }
em { font-family: var(--f-serif); font-style: italic; font-weight: 400; }
::selection { background: var(--mint); color: var(--ink); }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 4px; border-radius: 4px; }

.kicker {
	font-family: var(--f-mono);
	font-size: .78rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	margin: 0 0 2rem;
	opacity: .75;
}

/* Letters and words split by JS */
.ch { display: inline-block; will-change: transform; }
.w { display: inline-block; }

/* ==========================================================================
   Loader, curtain, film grain, cursor
   ========================================================================== */

.loader { display: none; }
html.js .loader {
	position: fixed; inset: 0; z-index: 10000;
	display: grid; place-items: center; align-content: center; gap: 1.5rem;
	background: var(--ink); color: var(--paper);
	clip-path: inset(0 0 0 0);
}
.loader__count {
	font-size: clamp(5rem, 22vw, 20rem);
	font-weight: 800; font-stretch: 75%;
	line-height: .8; color: var(--mint);
	font-variant-numeric: tabular-nums;
}
.loader__count sup { font-size: .25em; vertical-align: top; color: var(--paper); }
.loader__words { position: relative; height: 1.4em; width: 100%; font-family: var(--f-serif); font-style: italic; font-size: clamp(1.6rem, 3vw, 2.6rem); text-align: center; }
.loader__words span { position: absolute; inset: 0; opacity: 0; }
.loader__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; }
.loader__bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--lilac), var(--mint)); }

.curtain {
	position: fixed; inset: 0; z-index: 10001;
	display: grid; place-items: center;
	background: var(--mint); color: var(--ink);
	font-weight: 800; font-size: clamp(3rem, 10vw, 9rem); font-stretch: 75%;
	transform: translateY(101%);
	pointer-events: none;
}
html.is-switching .curtain { transform: none; transition: transform .6s var(--ease); }

.grain {
	position: fixed; inset: -50%; z-index: 9000; pointer-events: none;
	opacity: .085; mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	animation: grain 1s steps(6) infinite;
}
@keyframes grain {
	0% { transform: translate(0, 0); } 20% { transform: translate(-6%, 4%); } 40% { transform: translate(5%, -7%); }
	60% { transform: translate(-3%, 8%); } 80% { transform: translate(7%, 2%); } 100% { transform: translate(0, 0); }
}

.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
	html.js .cursor { display: block; }
	html.js body, html.js a, html.js button { cursor: none; }
}
.cursor__dot, .cursor__ring { position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; border-radius: 50%; }
.cursor__dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--mint); mix-blend-mode: difference; }
.cursor__ring {
	width: 44px; height: 44px; margin: -22px 0 0 -22px;
	border: 1.5px solid var(--paper); mix-blend-mode: difference;
	display: grid; place-items: center;
	transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out), background-color .25s, border-color .25s;
}
.cursor__label { font-family: var(--f-mono); font-size: .7rem; font-weight: 700; text-transform: uppercase; color: var(--ink); opacity: 0; transition: opacity .2s; }
.cursor.is-hover .cursor__ring { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--mint); border-color: var(--mint); mix-blend-mode: normal; }
.cursor.is-hover .cursor__label { opacity: 1; }
.cursor.is-hover .cursor__dot { opacity: 0; }
.cursor.is-down .cursor__ring { width: 30px; height: 30px; margin: -15px 0 0 -15px; }

/* ==========================================================================
   Navigation & HUD
   ========================================================================== */

/* Skip link: hidden until focused with the keyboard */
.skip-link {
	position: fixed; left: 16px; top: -80px; z-index: 10002;
	padding: .7em 1.1em; border-radius: 999px;
	background: var(--paper); color: var(--ink); border: 2px solid var(--ink);
	font-family: var(--f-mono); font-size: .8rem; font-weight: 700; text-decoration: none;
	transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 16px; }
main:focus { outline: none; }

.nav {
	position: fixed; top: 0; left: 0; right: 0; z-index: 500;
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	padding: 18px var(--gutter);
	color: var(--paper); mix-blend-mode: difference;
	font-family: var(--f-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .04em;
}
.nav a { text-decoration: none; }
.nav__logo { font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; letter-spacing: -.04em; display: flex; align-items: flex-start; }
.nav__logo span { display: inline-block; transition: transform .5s var(--ease-out); }
.nav__logo:hover span:first-child { transform: rotate(-14deg) translateY(-3px); }
.nav__logo:hover span:nth-child(2) { transform: rotate(12deg) translateY(3px); }
.nav__status { display: flex; align-items: center; gap: .7rem; }
.nav__clock { opacity: .6; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 var(--mint); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.nav__links { display: flex; gap: 1.6rem; }
.nav__links a, .nav__cv { position: relative; }
.nav__links a::after, .nav__cv::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px;
	background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out);
}
.nav__links a:hover::after, .nav__cv:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__actions { display: flex; align-items: center; gap: 1.2rem; }
.nav__lang {
	display: flex; padding: 3px; border: 1.5px solid currentColor; border-radius: 999px;
	background: none; color: inherit; font: inherit;
}
.nav__lang span { padding: 3px 9px; border-radius: 999px; transition: background .3s, color .3s; }
html[lang="fr"] .nav__lang .is-fr, html[lang="en"] .nav__lang .is-en { background: var(--paper); color: var(--ink); }

.hud {
	position: fixed; left: var(--gutter); bottom: 18px; z-index: 500;
	display: flex; align-items: center; gap: .8rem;
	font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase;
	color: var(--paper); mix-blend-mode: difference; pointer-events: none;
}
.hud__num { font-weight: 700; }
.hud__track { width: 80px; height: 2px; background: rgba(255,255,255,.25); overflow: hidden; }
.hud__track i { display: block; height: 100%; width: 100%; background: currentColor; transform: scaleX(0); transform-origin: left; }

@media (max-width: 960px) {
	.nav__links, .nav__clock { display: none; }
}
@media (max-width: 560px) {
	.nav__status span:not(.nav__clock) { display: none; }
	.hud__track { width: 48px; }
}

/* ==========================================================================
   Generic stickers
   ========================================================================== */

.sticker {
	position: absolute; z-index: 3;
	display: grid; place-items: center; text-align: center;
	font-weight: 800; text-transform: uppercase; line-height: 1;
	color: var(--ink); user-select: none;
}
.sticker--pill {
	padding: .7em 1.3em; border-radius: 999px;
	background: var(--lilac); font-size: clamp(.85rem, 1.2vw, 1.15rem);
	border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--ink);
}
.sticker--blob {
	width: clamp(84px, 8vw, 120px); aspect-ratio: 1;
	background: var(--blue); color: var(--paper);
	border-radius: 58% 42% 63% 37% / 45% 55% 45% 55%;
	font-family: var(--f-serif); font-style: italic; text-transform: none; font-weight: 400;
	font-size: clamp(1rem, 1.5vw, 1.4rem);
	animation: morph 7s ease-in-out infinite;
}
.sticker--tag, .sticker--temp {
	padding: .6em 1em; border: 2px solid var(--ink); font-family: var(--f-mono); font-size: .8rem;
	background: var(--paper); box-shadow: 6px 6px 0 var(--ink);
}
.sticker--temp { background: #bfe6ff; font-family: var(--f-display); font-size: clamp(1.4rem, 3vw, 2.6rem); border-radius: 999px; padding: .4em .8em; }
@keyframes spin { to { rotate: 360deg; } }
@keyframes morph {
	50% { border-radius: 40% 60% 35% 65% / 60% 40% 60% 40%; rotate: 14deg; }
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
	position: relative;
	min-height: 100svh;
	padding: clamp(90px, 15vh, 160px) var(--gutter) clamp(32px, 6vh, 64px);
	display: flex; flex-direction: column; justify-content: space-between;
	overflow: clip;
	background:
		radial-gradient(60vw 50vh at 85% 15%, rgba(47, 60, 255, .35), transparent 70%),
		radial-gradient(50vw 50vh at 5% 95%, rgba(185, 167, 255, .25), transparent 70%),
		var(--ink);
}
.hero__meta {
	display: flex; justify-content: space-between;
	font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; opacity: .6;
}
.hero__title {
	position: relative; z-index: 4;
	margin: 2vh 0 0;
	font-size: clamp(4.2rem, 21vw, 26rem);
	font-weight: 800; font-stretch: 75%;
	line-height: .8; letter-spacing: -.01em; text-transform: uppercase;
	mix-blend-mode: difference; color: var(--paper);
}
.hero__line { display: block; white-space: nowrap; }
.hero__line--2 { padding-left: 18vw; }
.hero__portrait {
	position: absolute; z-index: 2; margin: 0;
	right: 26vw; top: 15vh;
	width: clamp(190px, 22vw, 360px);
	rotate: -5deg;
}
.hero__frame {
	border-radius: 999px 999px 24px 24px; overflow: hidden;
	outline: 2px solid var(--mint); outline-offset: 10px;
	aspect-ratio: 2 / 3;
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.15) contrast(1.05); transition: transform 1.2s var(--ease-out); }
.hero__portrait:hover img { transform: scale(1.06); }
.hero__badge {
	position: absolute; left: -26%; bottom: -12%;
	width: 52%; aspect-ratio: 1;
	animation: spin 16s linear infinite;
}
.hero__badge text { fill: var(--mint); font-family: var(--f-mono); font-size: 13px; font-weight: 700; letter-spacing: 1px; }

.hero .sticker--pill { right: 5vw; top: 30vh; rotate: 8deg; }
.hero .sticker--blob { right: 9vw; bottom: 16vh; }

.hero__intro {
	position: relative; z-index: 5;
	max-width: 32ch; margin: 4vh 0 0;
	font-size: clamp(1.1rem, 1.55vw, 1.55rem); line-height: 1.3;
}
.hero__intro em { color: var(--mint); font-size: 1.15em; }
.hero__scroll {
	position: absolute; right: var(--gutter); bottom: clamp(32px, 6vh, 64px); z-index: 5;
	display: flex; align-items: center; gap: .8rem;
	font-family: var(--f-mono); font-size: .75rem; text-transform: uppercase; text-decoration: none;
}
.hero__scroll i {
	display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
	border: 1.5px solid currentColor; font-style: normal; font-size: 1.2rem;
	animation: bob 1.6s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(8px); } }

@media (max-width: 760px) {
	.hero { justify-content: flex-start; }
	.hero__title { font-size: 21vw; margin-top: 4vh; }
	.hero__line--2 { padding-left: 12vw; }
	.hero__portrait { position: relative; right: auto; top: auto; align-self: center; width: 58vw; margin: 6vh 0 2vh; }
	.hero__badge { left: -22%; width: 58%; }
	.hero .sticker--pill { right: auto; left: var(--gutter); top: auto; bottom: 30vh; }
	.hero .sticker--blob { display: none; }
	.hero__meta span:last-child { display: none; }
	.hero__scroll { position: relative; right: auto; bottom: auto; margin-top: 3vh; }
}

/* Marquee band */
.bands { position: relative; z-index: 6; height: clamp(150px, 22vh, 240px); margin: -60px 0 -40px; overflow-x: clip; pointer-events: none; }
.band {
	position: absolute; left: -5%; right: -5%; top: 50%;
	padding: .9rem 0; overflow: hidden;
	font-size: clamp(1.6rem, 3.6vw, 3.6rem); font-weight: 800; font-stretch: 80%; text-transform: uppercase; line-height: 1;
	border-block: 2px solid var(--ink);
}
.band--main { background: var(--mint); color: var(--ink); transform: translateY(-50%) rotate(-2.5deg); }
.band__track { display: flex; width: max-content; will-change: transform; }
.band__track span { white-space: nowrap; }

/* ==========================================================================
   MANIFESTO
   ========================================================================== */

.manifesto {
	position: relative; z-index: 1;
	background: radial-gradient(rgba(11, 11, 15, .09) 1.2px, transparent 1.4px) 0 0 / 24px 24px, var(--paper);
	color: var(--ink);
	padding: clamp(140px, 20vh, 240px) var(--gutter) clamp(100px, 16vh, 200px);
	min-height: 100svh;
	display: flex; align-items: center;
}
.manifesto__grid {
	width: 100%; max-width: 1680px; margin-inline: auto;
	display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 96px); align-items: center;
}
.manifesto__copy { position: relative; }
.manifesto__copy .kicker { position: relative; z-index: 2; }
.manifesto__mark {
	position: absolute; left: -.08em; top: -.42em; z-index: 0;
	font-family: var(--f-serif); font-size: clamp(9rem, 20vw, 22rem); line-height: 1; color: var(--mint); opacity: .7;
	pointer-events: none;
}
.manifesto__text {
	position: relative; z-index: 1; margin: 0;
	font-size: clamp(2rem, 4.3vw, 5rem);
	font-weight: 700; font-stretch: 85%; line-height: 1.06; letter-spacing: -.02em;
}
.manifesto__sign { position: relative; margin: 2.4rem 0 0; font-family: var(--f-serif); font-style: italic; font-size: clamp(1.3rem, 2vw, 2rem); opacity: .7; }

/* Three material swatches, laid out like on a workbench */
.swatches { position: relative; width: 100%; height: min(72vh, 44vw); }
.swatch {
	position: absolute; width: min(52%, 46vh); aspect-ratio: 3 / 4;
	display: flex; flex-direction: column; justify-content: flex-end; gap: .4rem;
	padding: clamp(14px, 1.4vw, 24px); overflow: hidden;
	border: 2px solid var(--ink); border-radius: 18px; box-shadow: 10px 10px 0 var(--ink);
}
.swatch--metal { left: 0; top: 0; rotate: -8deg;
	background: linear-gradient(115deg, rgba(255, 255, 255, .6), transparent 38%, rgba(255, 255, 255, .35) 58%, transparent 74%),
		repeating-linear-gradient(90deg, #c4cbd3 0 2px, #aeb6bf 2px 3px, #d2d8de 3px 5px);
}
.swatch--wood { left: 22%; top: 14%; rotate: 5deg; color: var(--paper);
	background: radial-gradient(ellipse 18% 9% at 30% 38%, #7a3518 0 40%, transparent 42%),
		repeating-linear-gradient(100deg, #b4572a 0 9px, #c8642c 9px 14px, #a54e24 14px 22px);
}
.swatch--code { left: 42%; top: 28%; rotate: -3deg; background: var(--ink); color: var(--paper); }
.swatch--code code { margin-bottom: auto; font-family: var(--f-mono); font-size: clamp(.75rem, 1vw, 1rem); line-height: 1.6; color: var(--paper); }
.swatch--code .swatch__name { color: var(--mint); }
.swatch__name { font-weight: 800; font-stretch: 75%; font-size: clamp(2rem, 3.8vw, 4.4rem); text-transform: uppercase; line-height: .85; }
.swatch--wood .swatch__name { text-shadow: 3px 3px 0 var(--ink); }
.swatch__place { font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.rivet {
	position: absolute; width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--ink);
	background: radial-gradient(circle at 35% 35%, #fff, #8d96a1 60%, #4a5059);
}
.rivet:nth-child(1) { top: 14px; left: 14px; } .rivet:nth-child(2) { top: 14px; right: 14px; }
.rivet:nth-child(3) { bottom: 14px; right: 14px; } .rivet:nth-child(4) { top: 50%; right: 14px; }

@media (max-width: 900px) {
	.manifesto__grid { grid-template-columns: 1fr; }
	.swatches { height: 92vw; margin-top: 4vh; }
	.swatch { width: 50%; }
}
html.js .manifesto__text .w { opacity: .13; }
.chip {
	display: inline-block; vertical-align: middle;
	padding: .05em .35em .1em; margin: .04em 0; border-radius: 999px;
	font-size: .78em; line-height: 1.05; border: 2px solid var(--ink);
}
.chip--metal { color: var(--ink); background: linear-gradient(160deg, #fff, #aeb6bf 40%, #5d646d 52%, #e8ecf0 62%, #9aa3ad); }
.chip--wood { color: var(--paper); background: repeating-linear-gradient(100deg, #b4572a 0 9px, #c8642c 9px 14px, #a54e24 14px 22px); }
.chip--code { color: var(--mint); background: var(--ink); font-family: var(--f-mono); font-weight: 700; font-size: .6em; padding: .3em .5em; }

/* ==========================================================================
   STORY — horizontal panels
   ========================================================================== */

/* --- Shared panel base ----------------------------------------------------- */

.story { position: relative; overflow: hidden; }
.story__track { display: flex; width: max-content; }
.panel {
	position: relative; flex-shrink: 0;
	width: 100vw; height: 100svh;
	padding: clamp(90px, 14vh, 140px) var(--edge) clamp(70px, 12vh, 120px);
	display: grid; align-content: end;
	overflow: hidden;
}
.panel__num {
	position: absolute; top: 9vh; left: var(--edge); z-index: 0;
	font-size: clamp(10rem, 46vh, 34rem); font-weight: 800; font-stretch: 75%; line-height: .8;
	-webkit-text-fill-color: transparent; -webkit-text-stroke: 2px currentColor; opacity: .5;
}
.panel__body { position: relative; z-index: 2; max-width: 980px; }
.panel__where { font-family: var(--f-mono); font-size: .8rem; text-transform: uppercase; margin: 0 0 1rem; }
.panel__title {
	margin: 0 0 1.5rem;
	font-size: clamp(4rem, min(14vw, 23vh), 18rem); font-weight: 800; font-stretch: 75%;
	line-height: .82; letter-spacing: -.03em; text-transform: uppercase;
}
.panel__title em { text-transform: none; font-weight: 400; letter-spacing: -.01em; }
.panel__text { max-width: 40ch; margin: 0; font-size: clamp(1.05rem, 1.5vw, 1.45rem); line-height: 1.35; }
.panel__sticker { right: calc(var(--edge) + 6vw); top: 22vh; rotate: 7deg; }
.panel__sticker--2 { right: auto; left: calc(var(--edge) + 30vw); top: 14vh; rotate: -6deg; z-index: 4; }

.panel__art {
	position: absolute; z-index: 1; right: calc(var(--edge) + 4vw); top: 50%;
	width: clamp(220px, 34vw, 560px); aspect-ratio: 1; translate: 0 -50%;
}
.panel__art svg { width: 100%; height: 100%; overflow: visible; }

/* --- 01 Rouen -------------------------------------------------------------- */

.panel--rouen { background: var(--blue); color: var(--paper); }

.art-rouen { display: grid; place-items: center; }
.art-rouen__ring { position: absolute; inset: 0; animation: spin 22s linear infinite; }
.art-rouen__ring text { fill: var(--paper); font-family: var(--f-mono); font-weight: 700; font-size: 17px; }
.art-rouen__code { position: relative; font-size: clamp(4rem, 9vw, 9rem); font-weight: 800; line-height: 1; }
.art-rouen__code::after { content: ""; position: absolute; left: -10%; right: -10%; top: 50%; height: .09em; background: var(--lilac); rotate: -14deg; }
.todo {
	position: absolute; right: -14%; bottom: -10%; z-index: 2;
	width: clamp(190px, 15vw, 260px); padding: 1.3rem 1.2rem 1.1rem;
	background: var(--paper); color: var(--ink); border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink);
	rotate: -5deg;
	font-family: var(--f-serif); font-style: italic; font-size: clamp(1.1rem, 1.4vw, 1.5rem); line-height: 1.2;
}
.todo::before {
	content: ""; position: absolute; top: -13px; left: 50%; width: 76px; height: 24px; translate: -50% 0; rotate: 3deg;
	background: rgba(243, 239, 230, .7); border: 1px solid rgba(11, 11, 15, .25);
}
.todo__title { font-size: 1.15em; }
.todo ul { list-style: none; margin: .5rem 0 .6rem; padding: 0; }
.todo li::before { content: "□ "; font-family: var(--f-mono); font-style: normal; }
.todo__then { display: block; color: var(--blue); }

/* --- 02 Metal — Piriou shipyard, Brittany ---------------------------------- */

.panel--metal { background: radial-gradient(70vw 70vh at 70% 30%, #2b2e35, #0e0f12 70%); color: #e9edf2; }
.sparks { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }
.panel__title--chrome {
	background: linear-gradient(175deg, #ffffff 0%, #b9c1cb 38%, #4a5059 49%, #f4f7fa 54%, #8a929c 72%, #e2e6eb 100%);
	background-size: 100% 200%;
	-webkit-background-clip: text; background-clip: text; color: transparent;
	animation: sheen 5s ease-in-out infinite alternate;
	filter: drop-shadow(0 8px 30px rgba(255, 90, 31, .25));
}
@keyframes sheen { to { background-position: 0 100%; } }
.panel--metal .panel__text b { color: var(--orange); }

.rain {
	position: absolute; inset: -20% 0 0; z-index: 1; opacity: .35;
	background-image: repeating-linear-gradient(105deg, transparent 0 22px, rgba(255,255,255,.55) 22px 23px, transparent 23px 61px);
	background-size: 100% 220px;
	animation: rain .55s linear infinite;
}
@keyframes rain { to { background-position: -60px 220px; } }

.art-ship { width: clamp(320px, 48vw, 860px); aspect-ratio: 3 / 2; right: var(--edge); top: auto; bottom: 7vh; translate: none; }
.art-ship svg { overflow: visible; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .55)); }
.art-ship .yard { fill: #1c1e23; }
.art-ship .blocks rect { fill: #8a4520; stroke: var(--ink); stroke-width: 2; }
.art-ship .hull { fill: #8d96a1; stroke: var(--ink); stroke-width: 3; }
.art-ship .primer { fill: #b23a2a; }
.art-ship .plates path { fill: none; stroke: rgba(11, 11, 15, .45); stroke-width: 2; }
.art-ship .gap rect { fill: #121317; }
.art-ship .gap path { stroke: #5d646d; stroke-width: 3; }

.art-ship .deckhouse { fill: #c9cfd6; stroke: var(--ink); stroke-width: 3; }
.art-ship .windows rect { fill: #121317; }
.art-ship .scaffold { fill: none; stroke: #e9edf2; stroke-width: 2; opacity: .7; }
.art-ship .gantry rect { fill: var(--yellow); stroke: var(--ink); stroke-width: 2; }
.art-ship .trolley { animation: trolley 9s ease-in-out infinite alternate; }
.art-ship .trolley__cart { fill: var(--yellow); stroke: var(--ink); stroke-width: 2; }
.art-ship .load { transform-box: view-box; transform-origin: 300px 88px; animation: swing 2.4s ease-in-out infinite alternate; }
.art-ship .cable { fill: none; stroke: #e9edf2; stroke-width: 2; }
.art-ship .plate { fill: #6d757f; stroke: var(--ink); stroke-width: 2; }
.art-ship .pole { stroke: #e9edf2; stroke-width: 3; }
.art-ship .flag { transform-box: fill-box; transform-origin: 0 50%; animation: flag 1.1s ease-in-out infinite alternate; }
@keyframes trolley { from { translate: -150px 0; } to { translate: 110px 0; } }
@keyframes swing { from { rotate: -6deg; } to { rotate: 6deg; } }
@keyframes flag { from { transform: skewY(-5deg) scaleX(.94); } to { transform: skewY(4deg) scaleX(1); } }

.sticker--bzh {
	width: clamp(96px, 8vw, 140px); aspect-ratio: 3 / 2; border-radius: 50%;
	background: #fff; border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink);
	font-size: clamp(1.4rem, 2.2vw, 2.4rem); letter-spacing: .02em;
}
.panel--metal .sticker--bzh { right: calc(var(--edge) + 2vw); top: 12vh; rotate: 8deg; }

/* --- 02 Metal — welding mini-game ------------------------------------------ */

.art-ship svg { user-select: none; -webkit-user-select: none; }
.art-ship .weld-guide { fill: none; stroke: #ffe9b0; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 2 7; animation: weld-guide 1s linear infinite; }
@keyframes weld-guide { to { stroke-dashoffset: -18; } }
.art-ship .weld-zone { fill: none; stroke: transparent; stroke-width: 46; stroke-linecap: round; pointer-events: stroke; touch-action: none; }
.art-ship .weld-start { fill: var(--mint); stroke: var(--ink); stroke-width: 2.5; transform-box: fill-box; transform-origin: center; animation: weld-pulse .9s ease-in-out infinite alternate; pointer-events: none; }
@keyframes weld-pulse { to { scale: 1.35; } }
.art-ship .weld-end { fill: none; stroke: var(--mint); stroke-width: 2.5; stroke-dasharray: 3 3; pointer-events: none; }
.art-ship.is-welding .weld-start { animation: none; opacity: .4; }
.weld-beads circle { fill: #8f98a3; stroke: #4a5059; stroke-width: .8; transition: fill 1.4s, stroke 1.4s; }
.weld-beads circle.hot { fill: #ffd27a; stroke: #ff5a1f; }
.weld-beads circle.burn { fill: #3a2a24; stroke: #1a1210; }

.scoreboard.scoreboard--steel {
	left: 0; top: -6%; bottom: auto; rotate: -2deg;
	background: linear-gradient(115deg, rgba(255, 255, 255, .55), transparent 40%, rgba(255, 255, 255, .3) 60%, transparent 75%),
		repeating-linear-gradient(90deg, #c4cbd3 0 2px, #aeb6bf 2px 3px, #d2d8de 3px 5px);
}
.weld-stamp {
	position: absolute; z-index: 5; left: 50%; top: 22%; translate: -50% -50%; text-align: center; pointer-events: none;
	font-weight: 800; font-stretch: 80%; font-size: clamp(2.4rem, 4.4vw, 4.6rem); line-height: .9; white-space: nowrap;
	color: var(--paper); text-shadow: 4px 4px 0 var(--ink), -1px -1px 0 var(--ink), 1px -1px 0 var(--ink), -1px 1px 0 var(--ink);
}
.weld-stamp small { display: block; margin-top: .3rem; font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: .42em; color: #ffd8b0; }
@media (max-width: 900px) { .scoreboard.scoreboard--steel { top: -14%; } }

/* --- 03 Wood — Montréal ---------------------------------------------------- */

.panel--wood { background: #e07a3c; color: var(--ink); }
.wood-grain { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; mix-blend-mode: multiply; opacity: .55; }
.snow {
	position: absolute; inset: 0; z-index: 1; pointer-events: none;
	background-image:
		radial-gradient(4px 4px at 20px 30px, #fff 50%, transparent 51%),
		radial-gradient(3px 3px at 90px 120px, #fff 50%, transparent 51%),
		radial-gradient(5px 5px at 160px 60px, #fff 50%, transparent 51%),
		radial-gradient(3px 3px at 230px 180px, #fff 50%, transparent 51%),
		radial-gradient(4px 4px at 60px 200px, #fff 50%, transparent 51%),
		radial-gradient(3px 3px at 200px 10px, #fff 50%, transparent 51%);
	background-size: 260px 220px;
	animation: snow 6s linear infinite;
	opacity: .9;
}
@keyframes snow { to { background-position: 40px 220px, -30px 220px, 20px 220px, -10px 220px, 30px 220px, -20px 220px; } }
.snow--near {
	z-index: 3; opacity: 1; filter: blur(1px);
	background-image:
		radial-gradient(12px 12px at 40px 60px, #fff 50%, transparent 51%),
		radial-gradient(8px 8px at 210px 150px, #fff 50%, transparent 51%),
		radial-gradient(14px 14px at 330px 40px, #fff 50%, transparent 51%),
		radial-gradient(10px 10px at 120px 260px, #fff 50%, transparent 51%),
		radial-gradient(9px 9px at 280px 290px, #fff 50%, transparent 51%);
	background-size: 380px 320px;
	animation: snow-near 3.5s linear infinite;
}
@keyframes snow-near { to { background-position: -60px 320px, 40px 320px, -30px 320px, 50px 320px, -20px 320px; } }

.defs { position: absolute; }
.maples { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.maple {
	position: absolute; top: -8%; width: clamp(44px, 4.6vw, 96px); height: clamp(44px, 4.6vw, 96px);
	fill: #e8231a; stroke: var(--ink); stroke-width: 160; stroke-linejoin: round; paint-order: stroke;
	filter: drop-shadow(4px 5px 0 var(--ink));
	animation: maple-fall 11s linear infinite, maple-sway 3s ease-in-out infinite alternate;
}
.maple:nth-child(1) { left: 8%;  animation-duration: 12s, 3.2s; animation-delay: -2s, 0s; }
.maple:nth-child(2) { left: 27%; animation-duration: 9s, 2.6s;  animation-delay: -6s, -1s; scale: .7; }
.maple:nth-child(3) { left: 46%; animation-duration: 14s, 3.6s; animation-delay: -9s, -.5s; }
.maple:nth-child(4) { left: 61%; animation-duration: 10s, 2.8s; animation-delay: -1s, -2s; scale: .55; }
.maple:nth-child(5) { left: 78%; animation-duration: 13s, 3.4s; animation-delay: -4s, -1.4s; scale: .85; }
.maple:nth-child(6) { left: 92%; animation-duration: 11s, 3s;   animation-delay: -8s, -.8s; scale: .6; }
@keyframes maple-fall {
	from { top: -8%; rotate: 0deg; }
	to { top: 108%; rotate: 540deg; }
}
@keyframes maple-sway { from { translate: -40px 0; } to { translate: 40px 0; } }

.art-wood .bark { fill: #5a2c12; }
.art-wood .core { fill: #f0b47e; }
.art-wood .rings ellipse { fill: none; stroke: #8a4520; stroke-width: 3.5; }
.art-wood .crack { fill: none; stroke: #5a2c12; stroke-width: 5; stroke-linecap: round; }
.art-wood svg { rotate: -8deg; filter: drop-shadow(14px 14px 0 var(--ink)); }

.snowbank { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 16vh; z-index: 1; fill: #f7fbff; filter: drop-shadow(0 -6px 0 rgba(11, 11, 15, .12)); }
.caribou {
	position: absolute; z-index: 1; left: 44%; bottom: 9vh;
	width: clamp(180px, 18vw, 320px);
	fill: var(--ink);
}
.caribou__antlers path { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.caribou__mane { fill: #f7fbff; }
.caribou__eye { fill: #f7fbff; }
.caribou__legs path { transform-box: fill-box; transform-origin: 50% 0; animation: caribou-step .9s ease-in-out infinite alternate; }
.caribou__legs path:nth-child(2), .caribou__legs path:nth-child(3) { animation-direction: alternate-reverse; }
@keyframes caribou-step { from { rotate: -9deg; } to { rotate: 9deg; } }

.panel--wood .panel__num { opacity: .5; }
.panel--wood .panel__title { color: var(--paper); text-shadow: 6px 6px 0 var(--ink); }

/* --- 03 Wood — axe throwing mini-game -------------------------------------- */

@media not all and (pointer: fine) { .art-wood { cursor: pointer; } }
.axe {
	position: absolute; z-index: 2; width: 40%; aspect-ratio: 1;
	transform-origin: 5.7% 50.7%; /* the offset towards the blade edge is handled by GSAP (xPercent/yPercent) */
	pointer-events: none; will-change: transform;
}
.axe svg { width: 100%; height: 100%; overflow: visible; rotate: 0deg; transform-origin: 5.7% 50.7%; filter: drop-shadow(5px 6px 0 rgba(11, 11, 15, .45)); }
.axe__handle-out { fill: none; stroke: var(--ink); stroke-width: 12; stroke-linecap: round; }
.axe__handle { fill: none; stroke: #a8642f; stroke-width: 7; stroke-linecap: round; }
.axe__grain { fill: none; stroke: #d08a4e; stroke-width: 2; stroke-linecap: round; }
.axe__knob { fill: #6d757f; stroke: var(--ink); stroke-width: 2.5; }
.axe__wrap { fill: none; stroke: #3b2314; stroke-width: 4.5; stroke-linecap: round; }
.axe__rune { fill: none; stroke: #4a5059; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.axe__eye { fill: #4a5059; stroke: var(--ink); stroke-width: 1.5; }
.axe__head { fill: #8f98a3; stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }
.axe__bevel { fill: none; stroke: #d6dce2; stroke-width: 3; stroke-linecap: round; }
.axe__edge { fill: none; stroke: #f4f7fa; stroke-width: 2.5; stroke-linecap: round; }
.axe__cut { fill: #3a1d0c; opacity: .55; }
.woodchip { position: absolute; z-index: 3; width: 9px; height: 5px; background: #d9965f; border: 1px solid #5a2c12; pointer-events: none; }

/* Leaves in front of the log: slightly slower, so they can be aimed at */
.maples--log { inset: -30% -6%; z-index: 3; overflow: visible; }
.maples--log .maple { width: clamp(40px, 3.8vw, 80px); height: clamp(40px, 3.8vw, 80px); }
.maples--log .maple:nth-child(1) { left: 12%; animation-duration: 7s, 2.6s; animation-delay: -1s, 0s; scale: 1; }
.maples--log .maple:nth-child(2) { left: 38%; animation-duration: 8.5s, 3.1s; animation-delay: -4.5s, -1s; scale: .85; }
.maples--log .maple:nth-child(3) { left: 62%; animation-duration: 6.5s, 2.4s; animation-delay: -2.8s, -.4s; scale: 1; }
.maples--log .maple:nth-child(4) { left: 84%; animation-duration: 9s, 3.4s; animation-delay: -6.2s, -1.6s; scale: .75; }

/* Leaf pinned under the blade */
.axe .maple--pinned {
	position: absolute; left: 5.7%; top: 50.7%; width: 34%; height: 34%;
	translate: -50% -50%; animation: none; z-index: 0;
	fill: #e8231a; stroke: var(--ink); stroke-width: 160; stroke-linejoin: round; paint-order: stroke;
	filter: drop-shadow(3px 4px 0 rgba(11, 11, 15, .5));
}

/* Scoreboard, wooden plaque style */
.scoreboard {
	position: absolute; left: -8%; bottom: -16%; z-index: 4;
	display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; max-width: 116%;
	padding: .55rem 1rem; rotate: -3deg;
	background: repeating-linear-gradient(100deg, #f0d2a8 0 10px, #e9c495 10px 16px);
	border: 2px solid var(--ink); border-radius: 10px; box-shadow: 6px 6px 0 var(--ink);
	color: var(--ink); pointer-events: none;
}
.scoreboard__item { display: flex; align-items: baseline; gap: .45rem; }
.scoreboard__item small { font-family: var(--f-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; }
.scoreboard__item b { font-size: clamp(1.4rem, 2vw, 2.2rem); font-weight: 800; font-stretch: 80%; line-height: 1; display: inline-block; }
.scoreboard__combo { color: #b23a2a; }
.scoreboard__hint { font-family: var(--f-serif); font-style: italic; font-size: clamp(.95rem, 1.1vw, 1.15rem); opacity: .8; }

/* "+3" popping up on impact */
.score-pop {
	position: absolute; z-index: 5; translate: -50% -50%; white-space: nowrap; pointer-events: none;
	font-weight: 800; font-stretch: 80%; font-size: clamp(1.6rem, 2.6vw, 2.8rem); line-height: 1;
	color: var(--paper); text-shadow: 3px 3px 0 var(--ink), -1px -1px 0 var(--ink), 1px -1px 0 var(--ink), -1px 1px 0 var(--ink);
}
.score-pop small { display: block; font-size: .45em; color: #ffd8b0; letter-spacing: .04em; }

/* --- 04 Toulouse at golden hour -------------------------------------------- */

.panel--sun { background: linear-gradient(180deg, #ef8d6c 0%, #f6a874 40%, #ffcd8e 72%, #ffe3a8 100%); color: #2a140c; }
.panel--sun::before { content: ""; position: absolute; inset: 0; background: radial-gradient(48vw 42vh at 47% 76%, rgba(255, 240, 190, .65), transparent 70%); pointer-events: none; }
.skyline {
	position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 58%; z-index: 0;
	-webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, .3), #000 42%); mask-image: linear-gradient(to right, rgba(0, 0, 0, .3), #000 42%);
}
.skyline__sun { fill: #fff1c4; }
.skyline__far { fill: #e49a83; opacity: .55; }
.skyline .sk { filter: url(#tl-sketch); }
.skyline .bricks { fill: url(#tl-bricks); stroke: #4a2418; stroke-width: 1.6; stroke-linejoin: round; }
.skyline .roof { fill: #b5563f; stroke: #4a2418; stroke-width: 1.6; stroke-linejoin: round; }
.skyline .dome { fill: #7fae98; stroke: #4a2418; stroke-width: 1.6; }
.skyline .win path { fill: #4a2418; opacity: .7; }
.skyline .water path, .skyline .water circle { fill: #f2ad84; stroke: #4a2418; stroke-width: 1.4; }
.skyline .garonne { fill: #f2ad84; }
.skyline .ripples { fill: none; stroke: #fff1c4; stroke-width: 3; stroke-linecap: round; opacity: .85; stroke-dasharray: 40 18; animation: ripples 5s linear infinite; }
@keyframes ripples { to { stroke-dashoffset: -116; } }

.sun {
	position: absolute; z-index: 1; right: calc(var(--edge) + 3vw); top: 40%; translate: 0 -50%;
	width: clamp(220px, 30vw, 520px);
	filter: drop-shadow(10px 10px 0 rgba(74, 36, 24, .85));
}
.occitan { fill: url(#cross-bricks); stroke: #4a2418; stroke-width: 3; stroke-linejoin: round; }
.panel--sun .panel__title { color: var(--paper); text-shadow: 6px 6px 0 #4a2418; }
.panel--sun .panel__title em { color: #fff1c4; }
.panel--sun .panel__num { color: #4a2418; opacity: .6; }
.panel--sun .panel__sticker { right: auto; left: calc(var(--edge) + 32vw); top: 16vh; rotate: -5deg; }

/* --- 04 Toulouse — brick and sunbeams mini-game ---------------------------- */

.panel--sun { touch-action: pan-y; }
.sunrays { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.brick-catcher {
	position: absolute; z-index: 3; left: 0; bottom: 3.5vh;
	width: clamp(96px, 8vw, 150px); aspect-ratio: 3 / 1.15;
	border: 2px solid #4a2418; border-radius: 4px; box-shadow: 5px 5px 0 #4a2418;
	background:
		linear-gradient(rgba(255, 255, 255, .28), transparent 45%),
		linear-gradient(#f1b9a3 0 0) 0 50% / 100% 2px no-repeat,
		linear-gradient(#f1b9a3 0 0) 50% 0 / 2px 50% no-repeat,
		linear-gradient(#f1b9a3 0 0) 25% 100% / 2px 50% no-repeat,
		linear-gradient(#f1b9a3 0 0) 75% 100% / 2px 50% no-repeat,
		#d9775b;
	pointer-events: auto; touch-action: none; will-change: transform;
	transition: box-shadow .2s, filter .2s;
}
.brick-catcher.is-grabbed { box-shadow: 9px 11px 0 #4a2418; }
@media not all and (pointer: fine) { .brick-catcher { cursor: grab; } .brick-catcher.is-grabbed { cursor: grabbing; } }
.brick-catcher.is-catching { filter: brightness(1.25); box-shadow: 5px 5px 0 #4a2418, 0 0 34px 10px rgba(255, 220, 120, .8); }
.scoreboard.scoreboard--brick {
	left: auto; right: var(--edge); top: auto; bottom: 14vh; rotate: 2deg; z-index: 4;
	background: repeating-linear-gradient(#d9775b 0 14px, #f1b9a3 14px 16px);
	color: var(--paper);
}
.scoreboard--brick .scoreboard__item small { color: #fff1c4; }
.scoreboard--brick .scoreboard__combo, .scoreboard--brick .sun-combo { color: #fff1c4; }
.scoreboard--brick .scoreboard__hint { opacity: 1; text-shadow: 0 1px 0 #4a2418; }
@media (max-width: 900px) {
	.scoreboard.scoreboard--brick { right: var(--gutter); bottom: auto; top: 10vh; max-width: 70vw; }
}

/* --- 05 Code --------------------------------------------------------------- */

.panel--code { background: var(--ink); color: var(--paper); }
.panel--code .panel__num { color: var(--mint); opacity: .25; }
.panel__title--glitch { position: relative; color: var(--mint); }
.panel__title--glitch::before, .panel__title--glitch::after {
	content: attr(data-text); position: absolute; inset: 0;
}
.panel__title--glitch::before { color: var(--lilac); mix-blend-mode: screen; animation: glitch 2.6s steps(2) infinite; }
.panel__title--glitch::after { color: var(--blue); mix-blend-mode: screen; animation: glitch 3.1s steps(2) infinite reverse; }
@keyframes glitch {
	0%, 86%, 100% { transform: none; clip-path: inset(0); opacity: 0; }
	88% { transform: translate(-6px, 2px); clip-path: inset(10% 0 55% 0); opacity: 1; }
	92% { transform: translate(5px, -3px); clip-path: inset(60% 0 8% 0); opacity: 1; }
	96% { transform: translate(-3px, 1px); clip-path: inset(35% 0 35% 0); opacity: 1; }
}
.terminal {
	margin: 0; padding: 1.4rem 1.6rem; max-width: 560px;
	background: var(--ink-2); border: 1.5px solid rgba(143, 227, 192, .45); border-radius: 14px;
	font-family: var(--f-mono); font-size: clamp(.85rem, 1.1vw, 1.05rem); line-height: 1.6; color: var(--paper);
	box-shadow: 10px 10px 0 var(--mint);
	overflow-x: auto;
}
.t-c { color: #7c8190; } .t-k { color: var(--lilac); } .t-f { color: var(--mint); }
.caret { color: var(--mint); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* --- 05 Code — the CRT-head man and his easter egg ------------------------- */

.crt-man {
	position: absolute; z-index: 1; right: calc(var(--edge) + 6vw); bottom: 0;
	height: min(88vh, 64vw); width: auto; aspect-ratio: 400 / 640; overflow: visible;
	filter: drop-shadow(14px 14px 0 rgba(243, 239, 230, .08));
}
.crt-man path, .crt-man rect, .crt-man ellipse, .crt-man circle { stroke: #f3efe6; stroke-width: 2.4; stroke-linejoin: round; }
.crt-man .g-jacket { fill: #3a3a3d; }
.crt-man .g-lapel { fill: #4d4d51; }
.crt-man .g-mid { fill: #262628; }
.crt-man .g-dark { fill: #111113; }
.crt-man .g-light { fill: #e6e6e6; }
.crt-man .crt-collar { fill: #f4f4f4; stroke: #8a8a8a; stroke-width: 2; }
.crt-man .g-skin { fill: #b9b9b9; }
.crt-man .g-case { fill: #d6d6d6; }
.crt-man .g-shade { fill: #a9a9a9; }
.crt-man .g-shade-dark { fill: #7d7d7d; }
.crt-man .crt-line { fill: none; stroke: #6d6d6d; stroke-width: 2; }
.crt-man .crt-cable { fill: none; stroke: #9a9a9a; stroke-width: 5; stroke-linecap: round; }
.crt-man .crt-plug { fill: #d6d6d6; stroke-width: 2; }
.crt-man .crt-screen { fill: #141416; stroke: none; }
.crt-man .crt-screen-rim { fill: none; stroke: #5a5a5e; stroke-width: 4; }
.crt-man .crt-scanlines { stroke: none; animation: crt-scan 6s linear infinite; }
@keyframes crt-scan { to { transform: translateY(8px); } }
.crt-man .crt-text { fill: #eeeeee; stroke: none; font-family: var(--f-mono); font-weight: 700; font-size: 30px; animation: crt-flicker 3.2s steps(1) infinite; }
.crt-man .crt-cursor { fill: #eeeeee; stroke: none; animation: blink 1s steps(1) infinite; }
.crt-man .crt-glare { fill: #ffffff; stroke: none; opacity: .14; }
@keyframes crt-flicker { 0%, 100% { opacity: 1; } 47% { opacity: .82; } 48% { opacity: 1; } 76% { opacity: .9; } 77% { opacity: 1; } }
.crt-man .crt-head { transform-box: view-box; transform-origin: 200px 210px; }
/* Easter egg: plug it in, he gets electrocuted, then reboots */
.crt-man .crt-plug-hit { fill: transparent; stroke: none; cursor: grab; touch-action: none; }
@media (hover: hover) and (pointer: fine) { .crt-man .crt-plug-hit { cursor: none; } }
.crt-man .crt-socket { transform-box: fill-box; }
.crt-man .crt-bolts path { fill: none; stroke: #f3efe6; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.crt-man .crt-off { fill: #f3efe6; stroke: none; transform-box: fill-box; transform-origin: center; }
.crt-man .crt-boot { fill: #eeeeee; stroke: none; font-family: var(--f-mono); font-weight: 700; font-size: 18px; letter-spacing: 3px; }
.crt-man .crt-bar-bg { fill: none; stroke: #eeeeee; stroke-width: 1.5; }
.crt-man .crt-bar { fill: #eeeeee; stroke: none; }
.crt-man .crt-smoke { fill: #9a9a9a; stroke: none; }
.crt-man.is-zapped { animation: crt-zap .14s steps(1) infinite; }
@keyframes crt-zap { 50% { filter: invert(1); } }
@media (max-width: 900px) {
	.crt-man { position: relative; right: auto; bottom: auto; order: -1; justify-self: center; height: auto; width: 62vw; margin-bottom: 2vh; }
}

/* --- Responsive panels ----------------------------------------------------- */

@media (max-width: 900px), (prefers-reduced-motion: reduce) {
	.story__track { flex-direction: column; width: 100%; }
	.panel { width: 100%; height: auto; min-height: 100svh; }
}
@media (max-width: 900px) {
	.panel { align-content: end; gap: 5vh; }
	.panel__art { position: relative; right: auto; top: auto; translate: none; justify-self: end; width: 58vw; order: -1; }
	.panel__num { font-size: 38vw; top: 12vh; }
	/* The caribou keeps its spot on the snowbank, below the text */
	.panel--wood { padding-bottom: calc(9vh + 36vw); }
	.caribou { left: auto; right: 8vw; bottom: 8vh; width: 36vw; }
	.art-ship { width: 100%; justify-self: stretch; aspect-ratio: 3 / 2; }
	.panel--metal .art-ship { margin-top: 22vh; }
	.panel--metal .panel__sticker--2 { left: auto; right: var(--gutter); top: auto; bottom: 36vh; }
	.todo { right: auto; left: -24%; bottom: -66%; width: 52vw; }
	.panel--rouen .panel__art { margin-bottom: 42vw; }
	.skyline { height: 38%; }
	.panel--sun .panel__sticker { left: auto; right: var(--gutter); top: auto; bottom: 46vh; }
}
@media (max-width: 760px) {
	.panel__sticker { right: var(--gutter); top: 14vh; }
	.sun { right: var(--gutter); top: 12vh; translate: none; width: 62vw; }
}

/* ==========================================================================
   WORK — stacking cards
   ========================================================================== */

.work { position: relative; background: var(--ink); padding: clamp(110px, 18vh, 200px) var(--gutter) 10vh; }
.work__head { margin-bottom: 10vh; }
.work__title {
	margin: 0; font-size: clamp(3.4rem, 11vw, 12rem); font-weight: 800; font-stretch: 75%;
	line-height: .85; letter-spacing: -.03em; text-transform: uppercase;
}
.work__title span { display: block; }
.outline { color: transparent; -webkit-text-stroke: 2px var(--paper); }

.cards { position: relative; }
.card {
	position: sticky; top: 12vh;
	min-height: 74vh; margin-bottom: 8vh;
	padding: clamp(24px, 4vw, 56px);
	border-radius: var(--radius);
	color: var(--ink);
	display: grid; grid-template-columns: 1fr minmax(0, 1fr); grid-template-rows: auto auto auto 1fr auto; column-gap: 4vw;
	overflow: hidden;
	transform-origin: 50% 0;
	border: 2px solid var(--ink);
}
.card > * { grid-column: 1; position: relative; z-index: 1; }
.card > .hazard, .card > .radar, .card > .truck, .card > .card__art--docs, .card > .blank { grid-column: auto; grid-row: auto; }
.card__top { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; font-family: var(--f-mono); font-size: .8rem; text-transform: uppercase; margin-bottom: 4vh; }
.card__idx { display: grid; place-items: center; width: 44px; height: 44px; border: 2px solid currentColor; border-radius: 50%; font-weight: 700; }
.card__company { margin: 0; font-size: clamp(3rem, 8.5vw, 9rem); font-weight: 800; font-stretch: 75%; line-height: .85; letter-spacing: -.035em; }
.card__company a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 6px no-repeat; transition: background-size .5s var(--ease-out); }
.card__company a:hover { background-size: 100% 6px; }
.card__x { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: .6em; margin: 0 .1em; }
.card__role { margin: 1.4rem 0 1rem; font-family: var(--f-serif); font-style: italic; font-size: clamp(1.3rem, 2vw, 2rem); line-height: 1.15; }
.card__text { max-width: 46ch; margin: 0 0 2rem; font-size: clamp(1rem, 1.25vw, 1.25rem); line-height: 1.45; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; list-style: none; align-self: end; }
.tags li { padding: .35em .9em; border: 1.5px solid currentColor; border-radius: 999px; font-family: var(--f-mono); font-size: .78rem; font-weight: 700; }

.card--illinks { background: var(--mint); }
.card--liebherr { background: var(--yellow); }
.card--next { background: var(--lilac); }
.card--next .card__company { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; }

.card__art--docs { position: absolute !important; right: 9%; top: 50%; translate: 0 -50%; width: min(22%, 340px); aspect-ratio: 3 / 4; z-index: 0 !important; }
.card__art--docs i {
	position: absolute; inset: 0; background: var(--paper); border: 2px solid var(--ink); border-radius: 10px;
	background-image: repeating-linear-gradient(var(--paper) 0 18px, rgba(11,11,15,.18) 18px 20px);
	background-clip: content-box; padding: 18% 14%;
	box-shadow: 6px 6px 0 var(--ink);
	transition: transform .7s var(--ease-out);
}
.card__art--docs i:nth-child(1) { transform: rotate(-12deg) translate(-20%, 6%); }
.card__art--docs i:nth-child(2) { transform: rotate(-4deg) translate(-6%, 2%); }
.card__art--docs i:nth-child(3) { transform: rotate(5deg) translate(8%, -2%); }
.card__art--docs i:nth-child(4) { transform: rotate(13deg) translate(22%, -6%); background-color: var(--ink); }
.card--illinks:hover .card__art--docs i:nth-child(1) { transform: rotate(-24deg) translate(-48%, 10%); }
.card--illinks:hover .card__art--docs i:nth-child(4) { transform: rotate(24deg) translate(48%, -10%); }

.hazard {
	position: absolute !important; left: 0; right: 0; top: 0; height: 18px; z-index: 0 !important;
	background: repeating-linear-gradient(-45deg, var(--ink) 0 18px, var(--yellow) 18px 36px);
	animation: hazard 1.2s linear infinite;
	background-size: 51px 18px;
}
@keyframes hazard { to { background-position: 51px 0; } }
.radar { position: absolute !important; right: 6%; top: 44%; translate: 0 -50%; width: min(30%, 400px); aspect-ratio: 1; z-index: 0 !important; }
.radar svg { width: 100%; height: 100%; }
.radar circle, .radar > svg > path { fill: none; stroke: var(--ink); stroke-width: 2; }
.radar__sweep { transform-origin: 150px 150px; animation: spin 3.2s linear infinite; }
.radar__sweep path { fill: var(--ink); opacity: .22; stroke: none; }
.radar .blip { fill: var(--ink); stroke: none; animation: blip 3.2s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes blip { 0%, 100% { opacity: .15; scale: .6; } 10% { opacity: 1; scale: 1.4; } 40% { opacity: .6; scale: 1; } }
.radar__label { position: absolute; right: 0; bottom: -4%; font-family: var(--f-mono); font-weight: 700; font-size: .8rem; background: var(--ink); color: var(--yellow); padding: .3em .6em; }
.truck { position: absolute !important; left: 0; right: 0; bottom: 3%; height: 160px; overflow: hidden; z-index: 2 !important; pointer-events: none; }
.truck svg { position: absolute; bottom: 0; width: clamp(180px, 14vw, 240px); animation: drive 12s linear infinite; }
.truck__bed, .truck__body { fill: var(--ink); }
.truck__line { fill: none; stroke: var(--yellow); stroke-width: 2.5; stroke-linecap: round; }
.truck__win { fill: var(--yellow); }
.truck__wheel { transform-box: fill-box; transform-origin: center; animation: spin 1.6s linear infinite; }
.truck__wheel circle:first-child { fill: var(--ink); stroke: var(--yellow); stroke-width: 4; stroke-dasharray: 11 7; }
.truck__hub { fill: var(--yellow); stroke: var(--ink); stroke-width: 3; }
@keyframes drive { from { left: -320px; } to { left: 100%; } }

@media (max-width: 860px) {
	.card { grid-template-columns: 1fr; top: 9vh; min-height: 78vh; }
	.card__art--docs { width: 34%; right: 4%; bottom: 4%; opacity: .5; }
	.radar { display: none; }
	.card__art--docs { top: auto; translate: none; }
}

.blank {
	position: absolute !important; right: 9%; top: 50%; translate: 0 -50%; rotate: 5deg; z-index: 0 !important;
	width: min(26%, 380px); aspect-ratio: 3 / 4; padding: 8% 9%;
	display: flex; flex-direction: column; gap: 9%;
	background: var(--paper); border: 2px solid var(--ink); border-radius: 10px; box-shadow: 10px 10px 0 var(--ink);
	transition: rotate .6s var(--ease-out);
}
.card--next:hover .blank { rotate: -3deg; }
.blank__head { font-family: var(--f-serif); font-style: italic; font-size: clamp(1.4rem, 2.4vw, 2.6rem); line-height: 1; }
.blank__line { font-family: var(--f-mono); font-size: 1.4rem; color: var(--blue); }
.blank__line .caret { color: var(--blue); }
.blank i { display: block; height: 2px; background: rgba(11, 11, 15, .15); }
@media (max-width: 860px) { .blank { display: none; } }

.btn {
	display: inline-flex; align-items: center; justify-self: start; align-self: end;
	padding: 1em 1.6em; border-radius: 999px; text-decoration: none; font-weight: 700;
	transition: transform .3s var(--ease-out), box-shadow .3s;
}
.btn--ink { background: var(--ink); color: var(--paper); box-shadow: 6px 6px 0 var(--paper); border: 2px solid var(--ink); }
.btn--ink:hover { box-shadow: 0 0 0 var(--paper); }

/* ==========================================================================
   OFF SCREEN
   ========================================================================== */

.human { background: var(--mint); color: var(--ink); padding: clamp(110px, 16vh, 180px) var(--gutter) clamp(110px, 18vh, 200px); overflow: hidden; }
.human__title { margin: 0 0 8vh; font-size: clamp(2.6rem, 7.5vw, 8rem); font-weight: 800; font-stretch: 78%; line-height: .9; letter-spacing: -.03em; max-width: 14ch; }
.human__title em { color: var(--blue); }
.hobbies { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 32px); max-width: 1600px; margin-inline: auto; }
.hobby {
	position: relative; aspect-ratio: 3 / 4; overflow: hidden;
	border: 2px solid var(--ink); border-radius: var(--radius);
	padding: clamp(18px, 2vw, 32px); display: flex; flex-direction: column; justify-content: flex-end;
	box-shadow: 10px 10px 0 var(--ink);
	transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
}
.hobby:nth-child(1) { rotate: -4deg; } .hobby:nth-child(2) { rotate: 3deg; translate: 0 6vh; } .hobby:nth-child(3) { rotate: -2deg; } .hobby:nth-child(4) { rotate: 4deg; translate: 0 4vh; }
.hobby:hover { transform: scale(1.04) rotate(0deg); rotate: 0deg; z-index: 2; box-shadow: 18px 18px 0 var(--ink); }
.hobby h3 { position: relative; z-index: 1; margin: 0; font-size: clamp(2rem, 3.6vw, 4.6rem); font-weight: 800; font-stretch: 75%; line-height: .85; text-transform: uppercase; }
.hobby p { position: relative; z-index: 1; margin: .6rem 0 0; font-family: var(--f-serif); font-style: italic; font-size: clamp(1.05rem, 1.4vw, 1.4rem); line-height: 1.2; }

.hobby--basket { color: var(--paper); background: var(--ink); }
.hobby--basket img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.hobby--basket::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(11,11,15,.85)); }
.hobby--basket:hover img { transform: scale(1.12) rotate(6deg); }

.hobby--tennis { background: var(--orange); }
.ball {
	position: absolute; left: 50%; top: 14%; width: 34%; aspect-ratio: 1; margin-left: -17%;
	border-radius: 50%; background: #e6ff4d; border: 2px solid var(--ink);
	background-image: radial-gradient(circle at -20% 50%, transparent 52%, var(--paper) 53%, var(--paper) 58%, transparent 59%), radial-gradient(circle at 120% 50%, transparent 52%, var(--paper) 53%, var(--paper) 58%, transparent 59%);
	animation: bounce 1.1s cubic-bezier(.5, 0, .5, 1) infinite alternate;
}
@keyframes bounce { from { transform: translateY(0) rotate(0); } to { transform: translateY(70%) rotate(160deg) scaleY(.92); } }

.hobby--moto { background: var(--ink); color: var(--paper); }
.road {
	position: absolute; inset: 0; perspective: 300px; overflow: hidden;
}
.road::before {
	content: ""; position: absolute; left: 50%; bottom: -10%; width: 70%; height: 140%; margin-left: -35%;
	background: #26262e linear-gradient(var(--yellow) 0 0) 50% 0 / 6px 100% no-repeat;
	transform: rotateX(62deg); transform-origin: 50% 100%;
}
.road::after {
	content: ""; position: absolute; left: 50%; bottom: -10%; width: 70%; height: 140%; margin-left: -35%;
	background: repeating-linear-gradient(transparent 0 30px, var(--ink) 30px 60px) 50% 0 / 8px 100% no-repeat;
	transform: rotateX(62deg); transform-origin: 50% 100%;
	animation: road .35s linear infinite;
}
@keyframes road { to { background-position: 50% 60px; } }
.hobby--moto h3, .hobby--moto p { text-shadow: 0 2px 20px var(--ink); }
.bike { position: absolute; left: 50%; bottom: 26%; width: 30%; translate: -50% 0; z-index: 1; overflow: visible; }
.bike__lean { transform-box: view-box; transform-origin: 50px 146px; animation: lean 2.8s ease-in-out infinite alternate; }
@keyframes lean { from { rotate: -7deg; translate: -8px 0; } to { rotate: 7deg; translate: 8px 0; } }
.bike__tire { fill: #15151a; stroke: #4a4a55; stroke-width: 2; }
.bike__body { fill: #3b4150; stroke: var(--ink); stroke-width: 2; }
.bike__light { fill: #ff3b2f; filter: drop-shadow(0 0 6px #ff3b2f); }
.bike__bar { stroke: #9aa3ad; stroke-width: 4; stroke-linecap: round; }
.bike__mirror { fill: #9aa3ad; }
.bike__rider { fill: var(--orange); stroke: var(--ink); stroke-width: 2; }
.bike__arm { stroke: var(--orange); stroke-width: 7; stroke-linecap: round; }
.bike__helmet { fill: var(--paper); stroke: var(--ink); stroke-width: 2; }
.bike__visor { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; }

.hobby--hike { background: var(--blue); color: var(--paper); }
.peaks { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 72%; }
.peak--back { fill: #1d27c9; }
.peak--snow { fill: var(--paper); }
.peak--front { fill: var(--ink); }
.trail { fill: none; stroke: var(--mint); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 7; animation: trail 1.4s linear infinite; }
@keyframes trail { to { stroke-dashoffset: -18; } }
.hobby--hike h3 { margin-bottom: auto; order: -1; }
.hobby--hike p { position: absolute; left: clamp(18px, 2vw, 32px); right: clamp(18px, 2vw, 32px); top: 4.6em; }

@media (max-width: 1200px) {
	.hobbies { grid-template-columns: repeat(2, 1fr); gap: 6vh 4vw; }
	.hobby:nth-child(2), .hobby:nth-child(4) { translate: 0 4vh; }
}
@media (max-width: 860px) {
	.hobbies { grid-template-columns: 1fr; gap: 6vh; }
	.hobby { aspect-ratio: 4 / 3; }
	.ball { width: 22%; margin-left: -11%; top: 8%; }
	.hobby:nth-child(2), .hobby:nth-child(4) { translate: none; }
}

/* ==========================================================================
   CONTACT
   ========================================================================== */

.contact {
	position: relative; z-index: 2;
	background: var(--ink); padding: clamp(110px, 16vh, 180px) var(--gutter) clamp(80px, 12vh, 140px);
	border-radius: 0 0 var(--radius) var(--radius);
}
.contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 100px); align-items: start; }
.contact__photo { position: sticky; top: 14vh; margin: 0; }
.contact__photo img {
	width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover;
	border-radius: 999px 999px var(--radius) var(--radius);
	filter: grayscale(1) contrast(1.1);
	transition: filter .8s var(--ease-out);
}
.contact__photo:hover img { filter: grayscale(0) contrast(1.05); }
.contact__photo figcaption { margin-top: 1rem; font-family: var(--f-mono); font-size: .75rem; text-transform: uppercase; opacity: .7; }
.contact__title {
	margin: 0 0 6vh; font-size: clamp(3.4rem, 9.5vw, 11rem); font-weight: 800; font-stretch: 75%;
	line-height: .82; letter-spacing: -.035em; text-transform: uppercase;
}
.contact__title span, .contact__title em { display: block; }
.contact__title em { color: var(--acid); text-transform: none; font-weight: 400; letter-spacing: -.01em; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem 2rem; }
.field { position: relative; display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field label { font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; opacity: .6; margin-bottom: .4rem; transition: color .3s, opacity .3s; }
.field input, .field textarea {
	width: 100%; padding: .4rem 0 .7rem;
	background: none; border: 0; border-bottom: 2px solid rgba(243, 239, 230, .3); border-radius: 0;
	color: var(--paper); font: 500 clamp(1.2rem, 1.8vw, 1.8rem) / 1.3 var(--f-display);
	resize: vertical; outline: none;
	transition: border-color .3s;
}
.field input:focus, .field textarea:focus { border-color: var(--acid); }
.field:focus-within label { color: var(--acid); opacity: 1; }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--pink); }
.form__foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.send {
	width: clamp(120px, 12vw, 170px); aspect-ratio: 1; border-radius: 50%;
	border: 0; background: var(--acid); color: var(--ink);
	font: 800 clamp(1rem, 1.3vw, 1.3rem) var(--f-display); text-transform: uppercase;
	position: relative; overflow: hidden;
	transition: background .3s;
}
.send::before { content: ""; position: absolute; inset: 0; background: var(--pink); border-radius: 50%; transform: scale(0); transition: transform .5s var(--ease-out); }
.send:hover::before { transform: scale(1); }
.send__label { position: relative; }
.send[disabled] { opacity: .7; }
.send.is-ok { background: var(--paper); }
.form__status { margin: 0; max-width: 34ch; font-family: var(--f-serif); font-style: italic; font-size: 1.25rem; }
.form__status.is-ko { color: var(--pink); }
.form__status.is-ok { color: var(--acid); }

.links { display: flex; flex-wrap: wrap; gap: .8rem 2rem; list-style: none; padding: 0; margin: 8vh 0 0; }
.links a {
	position: relative; display: inline-flex; gap: .4rem; text-decoration: none;
	font-size: clamp(1.4rem, 2.4vw, 2.4rem); font-weight: 700; font-stretch: 85%;
}
.links a::after { content: "↗"; display: inline-block; transition: transform .4s var(--ease-out); }
.links a:hover { color: var(--acid); }
.links a:hover::after { transform: translate(4px, -4px) rotate(45deg); }

@media (max-width: 860px) {
	.contact__grid { grid-template-columns: 1fr; }
	.contact__photo { position: relative; top: auto; max-width: 60%; }
	.form { grid-template-columns: 1fr; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer { position: relative; background: var(--mint); color: var(--ink); padding: clamp(80px, 12vh, 140px) var(--gutter) 0; margin-top: calc(-1 * var(--radius)); overflow: hidden; }
.footer__row { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-family: var(--f-mono); font-size: .78rem; text-transform: uppercase; }
.footer__top { text-decoration: none; font-weight: 700; }
.footer__giant {
	font-size: 31vw; font-weight: 800; font-stretch: 75%; line-height: .75; letter-spacing: 0; text-transform: uppercase;
	text-align: center; margin: 4vh -1vw -3.5vw; white-space: nowrap;
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0s !important; }
	html.js .manifesto__text .w { opacity: 1; }
	.grain { display: none; }
}
