/* ==========================================================================
   Oxxy Studios — theme styles
   ========================================================================== */

@font-face {
	font-family: "Bricolage";
	src: url("../fonts/bricolage-latin.woff2") format("woff2");
	font-weight: 200 800;
	font-stretch: 75% 100%;
	font-display: swap;
}

@font-face {
	font-family: "JetBrains";
	src: url("../fonts/jetbrains-latin.woff2") format("woff2");
	font-weight: 400 700;
	font-display: swap;
}

:root {
	--bg: #0b0b0e;
	--bg-2: #111116;
	--surface: #15151b;
	--surface-2: #1c1c24;
	--text: #eeebe4;
	--soft: #cfccd5;
	--muted: #8f8c97;
	--line: rgba(238, 235, 228, 0.12);
	--line-2: rgba(238, 235, 228, 0.24);
	--bone: #eeebe4;
	--ink: #0b0b0e;
	--flame: #ff5b2e;
	--ion: #7b6cff;
	--mint: #3df2b0;
	--sun: #ffd23f;
	--accent: var(--flame);
	--f-display: "Bricolage", "Arial Narrow", system-ui, sans-serif;
	--f-mono: "JetBrains", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--gutter: clamp(16px, 4vw, 56px);
	--maxw: 1680px;
	--r: 18px;
	--head-h: 76px;
	--ease: cubic-bezier(0.2, 0.8, 0.2, 1);
	--ease-io: cubic-bezier(0.76, 0, 0.24, 1);
	--ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
	color-scheme: dark;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--head-h) + 16px);
	overflow-x: clip;
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	margin: 0;
	min-height: 100vh;
	background: var(--bg);
	color: var(--text);
	font-family: var(--f-display);
	font-size: clamp(16px, 0.25vw + 15px, 18px);
	line-height: 1.55;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
}

/* Film grain over everything — texture, not noise. */
body::after {
	content: "";
	position: fixed;
	inset: -50%;
	z-index: 400;
	pointer-events: none;
	opacity: 0.055;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%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");
}

@media (prefers-reduced-motion: no-preference) {
	body::after {
		animation: grain 1.2s steps(6) infinite;
	}
}

@keyframes grain {
	0% { transform: translate(0, 0); }
	20% { transform: translate(-3%, 2%); }
	40% { transform: translate(2%, -3%); }
	60% { transform: translate(-2%, -1%); }
	80% { transform: translate(3%, 3%); }
	100% { transform: translate(0, 0); }
}

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

a {
	color: inherit;
	text-decoration: none;
}

img,
svg,
video,
canvas {
	display: block;
	max-width: 100%;
}

img {
	height: auto;
}

button {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
}

h1, h2, h3, h4, p, ol, ul, dl, dd, figure {
	margin: 0;
}

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

.wrap {
	width: 100%;
	max-width: var(--maxw);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip {
	position: fixed;
	left: 16px;
	top: 16px;
	z-index: 500;
	padding: 12px 18px;
	border-radius: 999px;
	background: var(--bone);
	color: var(--ink);
	font-weight: 600;
	translate: 0 -200%;
	transition: translate 0.3s var(--ease);
}

.skip:focus {
	translate: 0 0;
}

/* --------------------------------------------------------------------------
   Type helpers
   -------------------------------------------------------------------------- */

.kicker {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--f-mono);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--soft);
}

.kicker::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
	flex: none;
}

.kicker--muted {
	color: var(--muted);
}

.kicker--muted::before {
	display: none;
}

.title {
	margin-top: 18px;
	font-size: clamp(2.5rem, 6.6vw, 7rem);
	line-height: 0.94;
	font-weight: 750;
	font-stretch: 86%;
	letter-spacing: -0.035em;
	text-wrap: balance;
}

.title em,
.cta__title em,
.pagehead__title em {
	font-style: normal;
	font-weight: 300;
	font-stretch: 100%;
	color: var(--accent);
}

.lead {
	margin-top: 24px;
	max-width: 46ch;
	font-size: clamp(1.08rem, 0.9vw + 0.8rem, 1.45rem);
	line-height: 1.45;
	color: var(--soft);
	text-wrap: pretty;
}

.lead--lg {
	max-width: 40ch;
	font-size: clamp(1.2rem, 1.3vw + 0.8rem, 1.85rem);
	line-height: 1.35;
}

.ulink {
	background-image: linear-gradient(currentColor, currentColor);
	background-size: 0% 1px;
	background-position: 0 100%;
	background-repeat: no-repeat;
	transition: background-size 0.45s var(--ease), color 0.3s;
	padding-bottom: 2px;
}

.ulink:hover,
.ulink:focus-visible {
	background-size: 100% 1px;
}

.arrow {
	width: 1.1em;
	height: 1.1em;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform 0.45s var(--ease);
}

/* --------------------------------------------------------------------------
   Chips, status, buttons
   -------------------------------------------------------------------------- */

.chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 11px;
	border: 1px solid var(--line-2);
	border-radius: 999px;
	font-family: var(--f-mono);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--soft);
	list-style: none;
}

.chip--btn {
	transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.chip--btn:hover {
	background: var(--bone);
	color: var(--ink);
	border-color: var(--bone);
}

.status {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--f-mono);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--soft);
	--dot: var(--muted);
}

.status i {
	position: relative;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--dot);
	flex: none;
}

.status--live { --dot: var(--mint); }
.status--beta { --dot: var(--sun); }
.status--private { --dot: var(--ion); }
.status--playtest { --dot: var(--flame); }
.status--dev { --dot: #8fb8c9; }
.status--soon { --dot: var(--muted); }

.status--live i::after,
.status--playtest i::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: var(--dot);
	animation: ping 1.8s var(--ease) infinite;
}

@keyframes ping {
	0% { transform: scale(1); opacity: 0.8; }
	100% { transform: scale(3); opacity: 0; }
}

.btn {
	--btn-bg: transparent;
	--btn-fg: var(--text);
	--btn-fill: var(--bone);
	--btn-fill-fg: var(--ink);
	position: relative;
	isolation: isolate;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 54px;
	padding: 0 26px;
	border-radius: 999px;
	overflow: hidden;
	background: var(--btn-bg);
	color: var(--btn-fg);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.005em;
	white-space: nowrap;
	transition: color 0.4s var(--ease), translate 0.5s var(--ease), border-color 0.4s;
}

.btn::before {
	content: "";
	position: absolute;
	z-index: -1;
	left: 50%;
	top: 100%;
	width: 140%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--btn-fill);
	transform: translate(-50%, 0) scale(0.2);
	transition: transform 0.6s var(--ease), top 0.6s var(--ease);
}

.btn:hover,
.btn:focus-visible {
	color: var(--btn-fill-fg);
}

.btn:hover::before,
.btn:focus-visible::before {
	top: 50%;
	transform: translate(-50%, -50%) scale(1);
}

.btn:hover .arrow--e { transform: translateX(4px); }
.btn:hover .arrow--ne { transform: translate(2px, -2px); }

.btn--solid {
	--btn-bg: var(--bone);
	--btn-fg: var(--ink);
	--btn-fill: var(--flame);
	--btn-fill-fg: var(--ink);
}

.btn--ghost {
	border: 1px solid var(--line-2);
}

.btn--ghost:hover {
	border-color: var(--bone);
}

.btn--accent {
	--btn-bg: var(--accent);
	--btn-fg: var(--ink);
	--btn-fill: var(--bone);
	--btn-fill-fg: var(--ink);
}

.btn--xl {
	min-height: 76px;
	padding: 0 40px;
	font-size: clamp(17px, 1.4vw, 21px);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.head {
	position: fixed;
	inset: 0 0 auto;
	z-index: 120;
	display: grid;
	grid-template-columns: auto 1fr auto auto;
	align-items: center;
	gap: 16px;
	height: var(--head-h);
	padding-inline: var(--gutter);
	transition: translate 0.5s var(--ease), background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
	border-bottom: 1px solid transparent;
}

.head.is-scrolled {
	background: rgba(11, 11, 14, 0.62);
	-webkit-backdrop-filter: blur(16px) saturate(1.3);
	backdrop-filter: blur(16px) saturate(1.3);
	border-color: var(--line);
}

.head.is-hidden {
	translate: 0 -110%;
}

.menu-open .head {
	translate: 0 0;
	background: transparent;
	border-color: transparent;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	transition: translate 0.5s var(--ease);
}

.mark {
	width: 36px;
	height: 36px;
	fill: none;
	stroke-linecap: round;
	overflow: visible;
}

.mark circle {
	stroke: var(--text);
	stroke-width: 3;
}

.mark__x {
	stroke: var(--flame);
	stroke-width: 3.4;
	transform-box: fill-box;
	transform-origin: center;
	transition: transform 0.7s var(--ease-back);
}

.brand:hover .mark__x {
	transform: rotate(90deg) scale(1.08);
}

.brand__word {
	display: flex;
	flex-direction: column;
	font-size: 21px;
	line-height: 0.95;
	font-weight: 800;
	letter-spacing: -0.03em;
}

.brand__sub {
	margin-top: 3px;
	font-family: var(--f-mono);
	font-size: 9px;
	font-weight: 500;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	color: var(--muted);
}

.nav {
	display: flex;
	justify-content: center;
	gap: 4px;
}

.nav__link {
	position: relative;
	display: inline-block;
	padding: 10px 15px;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 500;
	color: var(--soft);
	transition: color 0.3s, background 0.3s;
	white-space: nowrap;
}

.nav__link:hover {
	color: var(--text);
	background: rgba(238, 235, 228, 0.07);
}

.nav__link.is-current {
	color: var(--text);
}

.nav__link.is-current::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 3px;
	width: 5px;
	height: 5px;
	margin-left: -2.5px;
	border-radius: 50%;
	background: var(--flame);
}

.lang {
	position: relative;
	display: inline-flex;
	align-items: center;
	padding: 4px;
	border: 1px solid var(--line-2);
	border-radius: 999px;
}

.lang__pill {
	position: absolute;
	top: 4px;
	bottom: 4px;
	left: 0;
	width: var(--w, 0px);
	translate: var(--x, 0px) 0;
	border-radius: 999px;
	background: var(--bone);
	opacity: 0;
	transition: translate 0.45s var(--ease), width 0.45s var(--ease), opacity 0.3s;
}

.lang.is-ready .lang__pill {
	opacity: 1;
}

.lang.is-placing .lang__pill,
.lang.is-placing .lang__btn {
	transition: none;
}

.lang__btn {
	position: relative;
	z-index: 1;
	min-width: 38px;
	padding: 7px 10px;
	border-radius: 999px;
	font-family: var(--f-mono);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-align: center;
	color: var(--muted);
	transition: color 0.35s;
}

.lang__btn:hover {
	color: var(--text);
}

.lang__btn.is-on {
	color: var(--ink);
}

.lang:not(.is-ready) .lang__btn.is-active {
	background: var(--bone);
	color: var(--ink);
}

.burger {
	display: none;
	align-items: center;
	gap: 10px;
	height: 44px;
	padding: 0 6px 0 14px;
	border: 1px solid var(--line-2);
	border-radius: 999px;
	font-family: var(--f-mono);
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.burger__lines {
	position: relative;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--bone);
}

.burger__lines i {
	position: absolute;
	left: 9px;
	right: 9px;
	height: 2px;
	border-radius: 2px;
	background: var(--ink);
	transition: transform 0.45s var(--ease), top 0.45s var(--ease);
}

.burger__lines i:first-child { top: 12px; }
.burger__lines i:last-child { top: 18px; }

.menu-open .burger__lines i:first-child { top: 15px; transform: rotate(45deg); }
.menu-open .burger__lines i:last-child { top: 15px; transform: rotate(-45deg); }

.menu {
	position: fixed;
	inset: 0;
	z-index: 110;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: calc(var(--head-h) + 28px) var(--gutter) calc(28px + env(safe-area-inset-bottom));
	background: var(--bg-2);
	visibility: hidden;
	translate: 0 -100%;
	transition: translate 0.75s var(--ease-io), visibility 0s linear 0.75s;
}

.menu.is-open {
	visibility: visible;
	translate: 0 0;
	transition: translate 0.75s var(--ease-io), visibility 0s;
}

.menu__nav {
	display: flex;
	flex-direction: column;
}

.menu__link {
	display: flex;
	align-items: baseline;
	gap: 16px;
	padding: 6px 0;
	border-bottom: 1px solid var(--line);
	font-size: clamp(2.6rem, 13vw, 6rem);
	font-weight: 750;
	font-stretch: 82%;
	line-height: 1.05;
	letter-spacing: -0.03em;
	opacity: 0;
	translate: 0 40px;
	transition: opacity 0.6s var(--ease), translate 0.6s var(--ease), color 0.3s;
	transition-delay: calc(0.18s + var(--i) * 0.06s);
}

.menu.is-open .menu__link {
	opacity: 1;
	translate: 0 0;
}

.menu__link:hover {
	color: var(--flame);
}

.menu__num {
	font-family: var(--f-mono);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.1em;
	color: var(--muted);
}

.menu__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.menu__mail {
	font-family: var(--f-mono);
	font-size: 13px;
	color: var(--soft);
}

.progress {
	position: fixed;
	inset: 0 0 auto;
	z-index: 130;
	height: 2px;
	pointer-events: none;
}

.progress span {
	display: block;
	height: 100%;
	background: var(--flame);
	transform-origin: 0 50%;
	transform: scaleX(var(--p, 0));
}

/* --------------------------------------------------------------------------
   Custom cursor (pointer devices only, enabled by JS)
   -------------------------------------------------------------------------- */

.cursor {
	display: none;
}

.has-cursor .cursor {
	display: block;
	position: fixed;
	left: 0;
	top: 0;
	z-index: 350;
	pointer-events: none;
}

.has-cursor,
.has-cursor a,
.has-cursor button,
.has-cursor summary,
.has-cursor [data-drag] {
	cursor: none;
}

.has-cursor input,
.has-cursor textarea {
	cursor: text;
}

.cursor__dot,
.cursor__ring {
	position: fixed;
	left: 0;
	top: 0;
	border-radius: 50%;
	pointer-events: none;
	will-change: transform;
}

.cursor__dot {
	width: 6px;
	height: 6px;
	margin: -3px 0 0 -3px;
	background: var(--bone);
	mix-blend-mode: difference;
	transition: opacity 0.2s, width 0.3s, height 0.3s, margin 0.3s;
}

.cursor__ring {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	margin: -20px 0 0 -20px;
	border: 1px solid rgba(238, 235, 228, 0.45);
	transition: width 0.45s var(--ease), height 0.45s var(--ease), margin 0.45s var(--ease), background 0.35s, border-color 0.35s, opacity 0.3s;
}

.cursor__label {
	font-family: var(--f-mono);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ink);
	opacity: 0;
	transform: scale(0.6);
	transition: opacity 0.3s, transform 0.4s var(--ease-back);
	white-space: nowrap;
}

.cursor.is-link .cursor__ring {
	width: 64px;
	height: 64px;
	margin: -32px 0 0 -32px;
	border-color: var(--flame);
	background: color-mix(in srgb, var(--flame) 12%, transparent);
}

.cursor.is-label .cursor__ring {
	width: 92px;
	height: 92px;
	margin: -46px 0 0 -46px;
	border-color: transparent;
	background: var(--cursor-c, var(--flame));
}

.cursor.is-label .cursor__label {
	opacity: 1;
	transform: none;
}

.cursor.is-label .cursor__dot,
.cursor.is-hidden .cursor__dot,
.cursor.is-hidden .cursor__ring {
	opacity: 0;
}

.cursor.is-down .cursor__ring {
	width: 30px;
	height: 30px;
	margin: -15px 0 0 -15px;
}

/* --------------------------------------------------------------------------
   Page transition curtain
   -------------------------------------------------------------------------- */

.curtain {
	position: fixed;
	inset: 0;
	z-index: 300;
	display: grid;
	place-items: center;
	background: var(--curtain, var(--flame));
	color: var(--ink);
	pointer-events: none;
	transform: translateY(102%);
}

.curtain::after,
.curtain__label {
	font-size: clamp(2.6rem, 9vw, 8rem);
	font-weight: 800;
	font-stretch: 80%;
	letter-spacing: -0.04em;
	line-height: 1;
	text-align: center;
	padding: 0 24px;
}

html.arriving .curtain::after {
	content: var(--curtain-label, "");
	grid-area: 1 / 1;
}

html.arriving .curtain {
	transform: none;
	animation: curtain-out 0.85s var(--ease-io) 0.12s forwards;
}

.curtain.is-leaving {
	animation: curtain-in 0.6s var(--ease-io) forwards;
	pointer-events: all;
}

@keyframes curtain-in {
	from { transform: translateY(102%); }
	to { transform: translateY(0); }
}

@keyframes curtain-out {
	from { transform: translateY(0); }
	to { transform: translateY(-102%); }
}

/* --------------------------------------------------------------------------
   Reveal & split text (only when JS is running)
   -------------------------------------------------------------------------- */

.js [data-reveal] {
	opacity: 0;
	translate: 0 32px;
	transition: opacity 1s var(--ease), translate 1s var(--ease), clip-path 1.3s var(--ease-io);
	transition-delay: calc(var(--d, 0) * 90ms);
}

.js [data-reveal].is-in {
	opacity: 1;
	translate: 0 0;
}

.js [data-reveal="clip"] {
	opacity: 1;
	translate: 0 0;
	clip-path: inset(12% 8% 12% 8% round 32px);
}

.js [data-reveal="clip"].is-in {
	clip-path: inset(0 0 0 0 round var(--r));
}

.js [data-split]:not(.is-split) {
	opacity: 0;
}

.w {
	display: inline-block;
	vertical-align: top;
	overflow: hidden;
	padding-bottom: 0.1em;
	margin-bottom: -0.1em;
	white-space: nowrap;
}

.wi,
.c {
	display: inline-block;
	translate: 0 108%;
	transition: translate 1s var(--ease);
	transition-delay: calc(var(--i, 0) * 32ms);
}

[data-split="chars"] .c {
	transition-duration: 1.1s;
	transition-delay: calc(var(--i, 0) * 45ms);
}

.is-split.is-in .wi,
.is-split.is-in .c {
	translate: 0 0;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
	position: relative;
	display: grid;
	grid-template-rows: auto 1fr auto;
	min-height: 100svh;
	padding: calc(var(--head-h) + 22px) 0 34px;
	overflow: hidden;
	isolation: isolate;
}

.hero::before {
	content: "";
	position: absolute;
	inset: auto -10% -30% -10%;
	height: 70%;
	z-index: -2;
	background: radial-gradient(50% 60% at 50% 100%, color-mix(in srgb, var(--flame) 26%, transparent), transparent 70%);
	pointer-events: none;
}

.hero__air {
	position: absolute;
	inset: 0;
	z-index: -1;
	width: 100%;
	height: 100%;
}

.hero__top {
	display: flex;
	justify-content: space-between;
	gap: 16px;
}

.hero__word {
	align-self: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 3vh 0;
	font-weight: 800;
	line-height: 0.8;
	user-select: none;
	pointer-events: none;
}

.hero__line {
	display: flex;
	justify-content: center;
	font-size: clamp(6.5rem, 29vw, 31rem);
	letter-spacing: -0.045em;
}

.hero__char,
.lost__code .hero__char {
	display: inline-block;
	font-variation-settings: "wght" var(--w, 800), "wdth" var(--wd, 100), "opsz" 96;
	transform-origin: 50% 60%;
	rotate: var(--rot, 0deg);
	translate: 0 var(--ty, 0);
}

.hero__char.is-x {
	color: var(--flame);
}

.js .hero__char {
	animation: char-in 1.3s var(--ease) both;
	animation-delay: calc(0.25s + var(--i) * 0.08s);
}

@keyframes char-in {
	from { opacity: 0; transform: translateY(45%) scaleY(1.4); }
	to { opacity: 1; transform: none; }
}

.hero__sub {
	display: flex;
	align-items: center;
	gap: 22px;
	margin-top: 0.4em;
	font-family: var(--f-mono);
	font-size: clamp(0.85rem, 1.7vw, 1.45rem);
	font-weight: 500;
	letter-spacing: 0.62em;
	text-transform: uppercase;
	color: var(--soft);
}

.hero__bottom {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	align-items: end;
	gap: 32px;
}

.hero__statement {
	max-width: 17ch;
	font-size: clamp(1.6rem, 3.1vw, 3rem);
	font-weight: 560;
	line-height: 1.04;
	letter-spacing: -0.025em;
}

.hero__side {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 22px;
	text-align: right;
}

.hero__rotator {
	font-size: clamp(1.1rem, 1.5vw, 1.4rem);
	line-height: 1.55;
	color: var(--soft);
}

.rotator {
	display: inline-block;
	position: relative;
	overflow: hidden;
	vertical-align: top;
	height: 1.55em;
	line-height: 1.55;
	color: var(--flame);
	font-weight: 650;
}

.rotator__word {
	display: block;
	transition: translate 0.55s var(--ease), opacity 0.55s var(--ease);
}

.rotator__word.is-out {
	translate: 0 -100%;
	opacity: 0;
}

.rotator__word.is-pre {
	translate: 0 100%;
	opacity: 0;
	transition: none;
}

.hero__ctas {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 12px;
}

/* --------------------------------------------------------------------------
   Marquee
   -------------------------------------------------------------------------- */

.marquee {
	overflow: hidden;
	padding: 20px 0;
	border-block: 1px solid var(--line);
	font-size: clamp(2rem, 6vw, 5.4rem);
	font-weight: 750;
	font-stretch: 80%;
	letter-spacing: -0.03em;
	line-height: 1;
	white-space: nowrap;
	user-select: none;
}

.marquee__track {
	display: flex;
	width: max-content;
	animation: marquee 38s linear infinite;
	skew: var(--skew, 0deg) 0deg;
}

.marquee__group {
	display: flex;
	align-items: center;
}

.marquee__item {
	padding: 0 0.32em;
}

.marquee__item:nth-of-type(odd) {
	color: transparent;
	-webkit-text-stroke: 1.5px var(--soft);
}

.marquee__star {
	display: inline-block;
	font-size: 0.5em;
	color: var(--flame);
	animation: spin 6s linear infinite;
}

@keyframes marquee {
	to { transform: translateX(-50%); }
}

@keyframes spin {
	to { rotate: 360deg; }
}

/* --------------------------------------------------------------------------
   Concept — three currents
   -------------------------------------------------------------------------- */

.concept {
	padding-block: clamp(90px, 14vh, 170px);
}

.concept__head {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	align-items: end;
	column-gap: 48px;
}

.concept__head .kicker {
	grid-column: 1 / -1;
}

.concept__head .lead {
	justify-self: end;
}

.currents {
	margin-top: clamp(56px, 8vh, 100px);
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--line);
}

.current {
	--c: var(--flame);
	position: relative;
	display: grid;
	grid-template-columns: 70px minmax(0, 1.1fr) minmax(0, 1.2fr) 120px;
	grid-template-areas: "num title text shape" "num title tags shape";
	align-items: start;
	column-gap: 32px;
	row-gap: 18px;
	padding: 44px 0;
	border-bottom: 1px solid var(--line);
	isolation: isolate;
}

.current[data-current="2"] { --c: var(--mint); }
.current[data-current="3"] { --c: var(--ion); }

.current::before {
	content: "";
	position: absolute;
	inset: 0 calc(var(--gutter) * -1);
	z-index: -1;
	background: linear-gradient(90deg, color-mix(in srgb, var(--c) 16%, transparent), transparent 70%);
	opacity: 0;
	transition: opacity 0.6s var(--ease);
}

.current:hover::before {
	opacity: 1;
}

.current__num {
	grid-area: num;
	padding-top: 10px;
	font-family: var(--f-mono);
	font-size: 13px;
	color: var(--c);
}

.current__title {
	grid-area: title;
	font-size: clamp(2.3rem, 5.2vw, 5rem);
	font-weight: 760;
	font-stretch: 78%;
	line-height: 0.95;
	letter-spacing: -0.035em;
	transition: font-weight 0.7s var(--ease), font-stretch 0.7s var(--ease), color 0.5s, translate 0.7s var(--ease);
}

.current:hover .current__title {
	font-weight: 300;
	font-stretch: 100%;
	color: var(--c);
	translate: 10px 0;
}

.current__text {
	grid-area: text;
	max-width: 52ch;
	font-size: clamp(1.02rem, 0.5vw + 0.9rem, 1.2rem);
	color: var(--soft);
}

.current__tags {
	grid-area: tags;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 0;
}

.current__shape {
	grid-area: shape;
	justify-self: end;
	width: 96px;
	height: 96px;
	border: 1.5px solid var(--c);
	border-radius: 50%;
	transition: border-radius 0.8s var(--ease), rotate 0.9s var(--ease), background 0.5s, scale 0.8s var(--ease-back);
}

.current[data-current="2"] .current__shape { border-radius: 22px; }
.current[data-current="3"] .current__shape {
	border-radius: 0;
	clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
	background: var(--c);
	border: 0;
}

.current:hover .current__shape {
	rotate: 135deg;
	scale: 1.12;
	background: var(--c);
}

.current[data-current="1"]:hover .current__shape { border-radius: 30% 70% 60% 40% / 50% 40% 60% 50%; }
.current[data-current="2"]:hover .current__shape { border-radius: 50%; }

/* --------------------------------------------------------------------------
   Work grid & list
   -------------------------------------------------------------------------- */

.work {
	padding-bottom: clamp(90px, 14vh, 170px);
}

.work__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 40px;
}

.toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 28px;
}

.filters,
.views {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.filter,
.view {
	min-height: 40px;
	padding: 0 16px;
	border: 1px solid var(--line-2);
	border-radius: 999px;
	font-family: var(--f-mono);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--soft);
	transition: background 0.35s, color 0.35s, border-color 0.35s;
}

.filter:hover,
.view:hover {
	border-color: var(--bone);
	color: var(--text);
}

.filter.is-active,
.view.is-active {
	background: var(--bone);
	border-color: var(--bone);
	color: var(--ink);
}

.view {
	display: grid;
	place-items: center;
	width: 40px;
	padding: 0;
}

.view svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

.grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(16px, 2vw, 28px);
}

.card {
	--rx: 0deg;
	--ry: 0deg;
	position: relative;
	border-radius: var(--r);
	transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry));
	transition: opacity 1s var(--ease), translate 1s var(--ease), transform 0.6s var(--ease);
}

.card.is-tilting {
	transition: opacity 1s var(--ease), translate 1s var(--ease), transform 0.12s linear;
}

.card[hidden] {
	display: none;
}

.card__link {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	border-radius: inherit;
	overflow: hidden;
	background: var(--surface);
	border: 1px solid var(--line);
	transition: border-color 0.5s;
}

.card__link::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 3px;
	background: var(--accent);
	transform: scaleX(0);
	transform-origin: 0 50%;
	transition: transform 0.7s var(--ease);
}

.card__link:hover,
.card__link:focus-visible {
	border-color: color-mix(in srgb, var(--accent) 55%, transparent);
}

.card__link:hover::after,
.card__link:focus-visible::after {
	transform: scaleX(1);
}

.card__media {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: color-mix(in srgb, var(--accent) 30%, var(--surface));
}

.card__media img,
.card__media .gen-cover {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.02);
	transition: transform 1.4s var(--ease), filter 0.8s;
}

.card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, color-mix(in srgb, var(--accent) 45%, transparent), transparent 55%);
	opacity: 0;
	mix-blend-mode: hard-light;
	transition: opacity 0.7s var(--ease);
}

.card__link:hover .card__media img,
.card__link:hover .card__media .gen-cover {
	transform: scale(1.08);
}

.card__link:hover .card__media::after {
	opacity: 1;
}

.card__glare {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.22), transparent 42%);
	opacity: 0;
	transition: opacity 0.5s;
	pointer-events: none;
}

.card:hover .card__glare {
	opacity: 1;
}

.card__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 22px 24px 26px;
}

.card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.card__title {
	margin-top: 4px;
	font-size: clamp(1.9rem, 3.1vw, 3rem);
	font-weight: 760;
	font-stretch: 84%;
	line-height: 0.98;
	letter-spacing: -0.03em;
	transition: color 0.4s;
}

.card__link:hover .card__title {
	color: var(--accent);
}

.card__tagline {
	color: var(--soft);
	font-size: 1.02rem;
	line-height: 1.4;
}

.card__index {
	position: absolute;
	left: 16px;
	top: 16px;
	z-index: 2;
	padding: 5px 9px;
	border-radius: 999px;
	background: rgba(11, 11, 14, 0.55);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	font-family: var(--f-mono);
	font-size: 11px;
	letter-spacing: 0.08em;
}

.card__arrow {
	position: absolute;
	right: 16px;
	top: 16px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--bone);
	color: var(--ink);
	opacity: 0;
	scale: 0.5;
	rotate: -45deg;
	transition: opacity 0.4s, scale 0.5s var(--ease-back), rotate 0.5s var(--ease);
}

.card__link:hover .card__arrow,
.card__link:focus-visible .card__arrow {
	opacity: 1;
	scale: 1;
	rotate: 0deg;
}

/* Generative cover when a project has no image yet. */
.gen-cover {
	position: relative;
	display: grid;
	place-items: center;
	overflow: hidden;
	background:
		radial-gradient(60% 80% at 20% 10%, color-mix(in srgb, var(--accent) 90%, white 10%), transparent 60%),
		repeating-linear-gradient(-45deg, transparent 0 22px, rgba(0, 0, 0, 0.12) 22px 23px),
		color-mix(in srgb, var(--accent) 70%, var(--ink));
}

.gen-cover::before {
	content: "";
	position: absolute;
	width: 70%;
	aspect-ratio: 1;
	border-radius: 50%;
	border: 1px solid rgba(11, 11, 14, 0.35);
	box-shadow: 0 0 0 40px rgba(11, 11, 14, 0.06), 0 0 0 80px rgba(11, 11, 14, 0.05);
}

.gen-cover__glyph {
	position: relative;
	font-size: clamp(5rem, 14vw, 13rem);
	font-weight: 800;
	font-stretch: 78%;
	line-height: 1;
	letter-spacing: -0.05em;
	color: var(--ink);
}

/* List view */
.rows {
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--line);
}

.row[hidden],
.rows[hidden],
.grid[hidden] {
	display: none;
}

.row__link {
	position: relative;
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.2fr) 130px 170px 40px;
	align-items: center;
	gap: 20px;
	padding: 26px 0;
	border-bottom: 1px solid var(--line);
	isolation: isolate;
	transition: color 0.4s;
}

.row__link::before {
	content: "";
	position: absolute;
	inset: 0 calc(var(--gutter) * -1);
	z-index: -1;
	background: color-mix(in srgb, var(--accent) 14%, transparent);
	transform: scaleY(0);
	transform-origin: 50% 100%;
	transition: transform 0.5s var(--ease);
}

.row__link:hover::before,
.row__link:focus-visible::before {
	transform: scaleY(1);
}

.row__num,
.row__type {
	font-family: var(--f-mono);
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
}

.row__title {
	font-size: clamp(1.7rem, 3.2vw, 3.2rem);
	font-weight: 760;
	font-stretch: 82%;
	line-height: 1;
	letter-spacing: -0.03em;
	transition: translate 0.6s var(--ease), color 0.4s;
}

.row__link:hover .row__title {
	translate: 12px 0;
	color: var(--accent);
}

.row__tagline {
	color: var(--soft);
}

.row__arrow {
	justify-self: end;
	transition: rotate 0.5s var(--ease);
}

.row__link:hover .row__arrow {
	rotate: 45deg;
}

.preview {
	position: fixed;
	left: 0;
	top: 0;
	z-index: 150;
	width: clamp(260px, 24vw, 400px);
	aspect-ratio: 16 / 10;
	border-radius: 14px;
	overflow: hidden;
	pointer-events: none;
	opacity: 0;
	scale: 0.7;
	transition: opacity 0.35s, scale 0.5s var(--ease);
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.preview.is-on {
	opacity: 1;
	scale: 1;
}

.preview img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* --------------------------------------------------------------------------
   Manifesto, stats
   -------------------------------------------------------------------------- */

.manifesto {
	--accent: var(--flame);
	padding-block: clamp(110px, 20vh, 240px);
	background: var(--bone);
	color: var(--ink);
}

.manifesto .kicker {
	color: rgba(11, 11, 14, 0.6);
}

.manifesto__text {
	margin-top: 32px;
	max-width: 24ch;
	font-size: clamp(2rem, 4.9vw, 5.2rem);
	font-weight: 640;
	font-stretch: 90%;
	line-height: 1.04;
	letter-spacing: -0.03em;
	text-wrap: pretty;
}

.split__text {
	margin-top: 28px;
	max-width: 30ch;
	font-size: clamp(1.7rem, 3.6vw, 3.8rem);
	font-weight: 600;
	font-stretch: 90%;
	line-height: 1.1;
	letter-spacing: -0.025em;
}

.sw {
	opacity: var(--o, 1);
	transition: opacity 0.2s linear, color 0.4s;
}

.js [data-scrub] .sw {
	--o: 0.14;
}

.sw.is-key {
	color: var(--flame);
}

.stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	padding-block: clamp(70px, 10vh, 120px);
}

.stat {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding-top: 22px;
	border-top: 1px solid var(--line-2);
}

.stat__num {
	font-size: clamp(4rem, 10vw, 9.5rem);
	font-weight: 800;
	font-stretch: 75%;
	line-height: 0.85;
	letter-spacing: -0.04em;
	font-variant-numeric: tabular-nums;
}

.stat:first-child .stat__num {
	color: var(--flame);
}

.stat__label {
	font-family: var(--f-mono);
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted);
}

/* --------------------------------------------------------------------------
   CTA
   -------------------------------------------------------------------------- */

.cta {
	position: relative;
	overflow: hidden;
	padding-block: clamp(110px, 18vh, 220px);
	border-top: 1px solid var(--line);
	text-align: center;
	isolation: isolate;
}

.cta::before {
	content: "";
	position: absolute;
	inset: 30% -20% -60%;
	z-index: -2;
	background: radial-gradient(50% 50% at 50% 50%, color-mix(in srgb, var(--flame) 22%, transparent), transparent 70%);
}

.cta__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.cta__title {
	margin-top: 22px;
	font-size: clamp(3.2rem, 10vw, 10.5rem);
	font-weight: 800;
	font-stretch: 82%;
	line-height: 0.9;
	letter-spacing: -0.045em;
	text-wrap: balance;
}

.cta .lead {
	margin-inline: auto;
	max-width: 52ch;
}

.cta__row {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
	margin-top: 44px;
}

.cta__or {
	font-size: 15px;
	color: var(--muted);
}

.cta__mail {
	margin-left: 6px;
	color: var(--text);
	font-weight: 600;
}

.cta__bubbles {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
}

.cta__bubbles i {
	position: absolute;
	bottom: -120px;
	width: var(--s, 60px);
	height: var(--s, 60px);
	border-radius: 50%;
	border: 1px solid var(--line-2);
	background: radial-gradient(circle at 30% 30%, rgba(238, 235, 228, 0.12), transparent 60%);
	animation: rise var(--t, 14s) linear infinite;
	animation-delay: var(--dl, 0s);
}

.cta__bubbles i:nth-child(1) { left: 8%; --s: 70px; --t: 15s; }
.cta__bubbles i:nth-child(2) { left: 22%; --s: 26px; --t: 11s; --dl: -4s; }
.cta__bubbles i:nth-child(3) { left: 41%; --s: 110px; --t: 19s; --dl: -9s; }
.cta__bubbles i:nth-child(4) { left: 63%; --s: 40px; --t: 13s; --dl: -2s; }
.cta__bubbles i:nth-child(5) { left: 79%; --s: 84px; --t: 17s; --dl: -11s; }
.cta__bubbles i:nth-child(6) { left: 92%; --s: 22px; --t: 10s; --dl: -6s; }

@keyframes rise {
	0% { transform: translate(0, 0); opacity: 0; }
	10% { opacity: 1; }
	50% { transform: translate(24px, -60vh); }
	90% { opacity: 1; }
	100% { transform: translate(-10px, -125vh); opacity: 0; }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.foot {
	position: relative;
	padding-top: clamp(70px, 10vh, 120px);
	border-top: 1px solid var(--line);
	overflow: hidden;
}

.foot__mailrow {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px 24px;
	margin-top: 14px;
}

.foot__mail {
	font-size: clamp(1.7rem, 5vw, 4.6rem);
	font-weight: 750;
	font-stretch: 84%;
	letter-spacing: -0.03em;
	line-height: 1;
	overflow-wrap: anywhere;
	transition: color 0.4s;
}

.foot__mail:hover {
	color: var(--flame);
}

.foot__cols {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 32px;
	margin-top: clamp(56px, 8vh, 90px);
}

.foot__col {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.foot__list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 16px;
	padding: 0;
	list-style: none;
	font-size: 1.05rem;
}

.foot__col .lang {
	margin-top: 16px;
}

.foot__clock {
	margin-top: 14px;
	font-size: 2.2rem;
	font-weight: 650;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.02em;
	line-height: 1;
}

.foot__clock .colon {
	animation: blink 1s steps(2) infinite;
}

@keyframes blink {
	50% { opacity: 0.2; }
}

.foot__muted {
	margin-top: 6px;
	font-size: 14px;
	color: var(--muted);
}

.foot__word {
	display: flex;
	justify-content: center;
	margin-top: clamp(40px, 6vh, 80px);
	font-size: clamp(8rem, 31vw, 34rem);
	font-weight: 800;
	font-stretch: 80%;
	line-height: 0.76;
	letter-spacing: -0.01em;
	color: transparent;
	-webkit-text-stroke: 1px var(--line-2);
	user-select: none;
}

.foot__word span {
	display: inline-block;
	transition: color 0.5s, -webkit-text-stroke-color 0.5s, translate 1.2s var(--ease), opacity 1.2s var(--ease);
	transition-delay: 0s, 0s, calc(var(--i) * 0.08s), calc(var(--i) * 0.08s);
}

.js .foot__word span {
	translate: 0 35%;
	opacity: 0;
}

.js .foot__word.is-in span {
	translate: 0 0;
	opacity: 1;
}

.foot__word span:hover {
	color: var(--flame);
	-webkit-text-stroke-color: var(--flame);
}

.foot__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-block: 26px calc(26px + env(safe-area-inset-bottom));
	border-top: 1px solid var(--line);
	font-family: var(--f-mono);
	font-size: 12px;
	letter-spacing: 0.04em;
	color: var(--soft);
}

.foot__bottom .foot__muted {
	margin: 0;
	font-size: 12px;
}

.totop {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-family: var(--f-mono);
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.totop__ring {
	width: 44px;
	height: 44px;
	fill: none;
	stroke-width: 1.5;
	rotate: -90deg;
}

.totop__ring circle {
	stroke: var(--line-2);
}

.totop__ring .totop__val {
	stroke: var(--flame);
	stroke-dasharray: 125.7;
	stroke-dashoffset: calc(125.7 * (1 - var(--p, 0)));
}

.totop .arrow {
	position: absolute;
	right: 13px;
	width: 18px;
	height: 18px;
}

.totop:hover .arrow {
	transform: translateY(-3px);
}

.toast {
	position: fixed;
	left: 50%;
	bottom: calc(24px + env(safe-area-inset-bottom));
	z-index: 360;
	padding: 12px 20px;
	border-radius: 999px;
	background: var(--bone);
	color: var(--ink);
	font-weight: 600;
	font-size: 15px;
	translate: -50% 150%;
	opacity: 0;
	transition: translate 0.5s var(--ease-back), opacity 0.3s;
	pointer-events: none;
}

.toast.is-on {
	translate: -50% 0;
	opacity: 1;
}

/* --------------------------------------------------------------------------
   Page heads (archive, studio, on demand, contact)
   -------------------------------------------------------------------------- */

.pagehead {
	padding-top: clamp(150px, 22vh, 240px);
	padding-bottom: clamp(50px, 8vh, 90px);
}

.pagehead__title {
	margin-top: 22px;
	font-size: clamp(4.2rem, 18vw, 18rem);
	font-weight: 800;
	font-stretch: 78%;
	line-height: 0.84;
	letter-spacing: -0.05em;
}

.pagehead__title--md {
	max-width: 15ch;
	font-size: clamp(2.8rem, 7.4vw, 7.8rem);
	line-height: 0.94;
	letter-spacing: -0.04em;
	text-wrap: balance;
}

.pagehead__ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 40px;
}

.split {
	padding-block: clamp(90px, 14vh, 170px);
}

/* Steps */
.steps {
	padding-block: clamp(70px, 10vh, 130px);
}

.steps__list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0 28px;
	margin-top: 56px;
	padding: 0;
	list-style: none;
}

.step {
	position: relative;
	padding: 30px 0 10px;
	border-top: 1px solid var(--line-2);
}

.step::before {
	content: "";
	position: absolute;
	left: 0;
	top: -1px;
	width: 100%;
	height: 2px;
	background: var(--flame);
	transform: scaleX(0);
	transform-origin: 0 50%;
	transition: transform 1.2s var(--ease);
	transition-delay: calc(0.3s + var(--d, 0) * 0.15s);
}

.step.is-in::before {
	transform: scaleX(1);
}

.step__num {
	font-family: var(--f-mono);
	font-size: 13px;
	color: var(--flame);
}

.step__title {
	margin-top: 14px;
	font-size: clamp(1.6rem, 2.4vw, 2.3rem);
	font-weight: 720;
	letter-spacing: -0.02em;
	line-height: 1.05;
}

.step__text {
	margin-top: 12px;
	color: var(--soft);
}

/* Principles */
.principles {
	padding-block: clamp(70px, 10vh, 130px);
}

.principles__list {
	margin-top: 48px;
	border-top: 1px solid var(--line);
}

.principle {
	border-bottom: 1px solid var(--line);
}

.principle summary {
	display: grid;
	grid-template-columns: 60px 1fr 40px;
	align-items: center;
	gap: 16px;
	padding: 26px 0;
	list-style: none;
}

.principle summary::-webkit-details-marker {
	display: none;
}

.principle__num {
	font-family: var(--f-mono);
	font-size: 13px;
	color: var(--muted);
}

.principle__title {
	font-size: clamp(1.7rem, 4vw, 3.6rem);
	font-weight: 720;
	font-stretch: 84%;
	line-height: 1;
	letter-spacing: -0.03em;
	transition: color 0.3s, translate 0.5s var(--ease);
}

.principle summary:hover .principle__title {
	color: var(--flame);
	translate: 8px 0;
}

.principle__plus {
	position: relative;
	justify-self: end;
	width: 34px;
	height: 34px;
	border: 1px solid var(--line-2);
	border-radius: 50%;
	transition: rotate 0.5s var(--ease), background 0.3s;
}

.principle__plus::before,
.principle__plus::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 12px;
	height: 1.5px;
	margin: -0.75px 0 0 -6px;
	background: currentColor;
}

.principle__plus::after {
	rotate: 90deg;
}

.principle[open] .principle__plus {
	rotate: 135deg;
	background: var(--flame);
	color: var(--ink);
	border-color: var(--flame);
}

.principle__text {
	max-width: 56ch;
	padding: 0 0 30px 76px;
	font-size: 1.15rem;
	color: var(--soft);
	animation: fade-up 0.6s var(--ease);
}

@keyframes fade-up {
	from { opacity: 0; translate: 0 12px; }
	to { opacity: 1; translate: 0 0; }
}

/* Services */
.services {
	padding-block: clamp(50px, 8vh, 110px);
}

.services__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	margin-top: 48px;
	padding: 0;
	list-style: none;
}

.service {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-height: 260px;
	padding: 30px 28px;
	border: 1px solid var(--line);
	border-radius: var(--r);
	background: var(--surface);
	transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
	transition: opacity 1s var(--ease), translate 1s var(--ease), border-color 0.4s, transform 0.6s var(--ease);
}

.service:hover {
	border-color: color-mix(in srgb, var(--flame) 50%, transparent);
}

.service__icon svg {
	width: 46px;
	height: 46px;
	fill: none;
	stroke: var(--flame);
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 160;
	stroke-dashoffset: 0;
}

.service:hover .service__icon svg {
	animation: draw 1.4s var(--ease) both;
}

@keyframes draw {
	from { stroke-dashoffset: 160; }
	to { stroke-dashoffset: 0; }
}

.service__title {
	margin-top: auto;
	font-size: 1.6rem;
	font-weight: 720;
	letter-spacing: -0.02em;
	line-height: 1.05;
}

.service__text {
	color: var(--soft);
}

/* Contact */
.contact {
	padding-top: clamp(150px, 22vh, 240px);
	padding-bottom: clamp(90px, 14vh, 160px);
}

.contact__card {
	margin-top: clamp(40px, 7vh, 80px);
	padding: clamp(28px, 5vw, 64px);
	border: 1px solid var(--line);
	border-radius: 28px;
	background:
		radial-gradient(80% 120% at 100% 0%, color-mix(in srgb, var(--flame) 14%, transparent), transparent 60%),
		var(--surface);
	transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
	transition: opacity 1s var(--ease), translate 1s var(--ease), transform 0.6s var(--ease);
}

.contact__mail {
	display: block;
	margin-top: 18px;
	font-size: clamp(1.9rem, 6.6vw, 6.4rem);
	font-weight: 800;
	font-stretch: 80%;
	line-height: 1;
	letter-spacing: -0.04em;
	overflow-wrap: anywhere;
	transition: color 0.4s;
}

.contact__mail:hover {
	color: var(--flame);
}

.contact__row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 34px 0 22px;
}

.contact__socials {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 32px;
	padding: 0;
	list-style: none;
}

.contact__social {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 20px;
	border: 1px solid var(--line-2);
	border-radius: 999px;
	font-weight: 600;
	transition: background 0.3s, color 0.3s, translate 0.5s var(--ease);
}

.contact__social:hover {
	background: var(--bone);
	color: var(--ink);
}

.page-extra {
	padding-block: 40px 90px;
}

.page-generic {
	padding-bottom: 120px;
}

.posts {
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--line);
}

.posts__link {
	display: grid;
	grid-template-columns: 140px 1fr auto;
	gap: 20px;
	align-items: center;
	padding: 22px 0;
	border-bottom: 1px solid var(--line);
}

.posts__date {
	font-family: var(--f-mono);
	font-size: 12px;
	color: var(--muted);
}

.posts__title {
	font-size: 1.6rem;
	font-weight: 700;
}

/* 404 */
.lost {
	min-height: 80vh;
	padding-top: clamp(140px, 20vh, 220px);
	padding-bottom: 120px;
}

.lost__code {
	display: flex;
	font-size: clamp(8rem, 30vw, 26rem);
	font-weight: 800;
	line-height: 0.8;
	letter-spacing: -0.05em;
	user-select: none;
}

.lost .lead {
	margin-bottom: 36px;
}

/* --------------------------------------------------------------------------
   Single project
   -------------------------------------------------------------------------- */

.project__hero {
	position: relative;
	padding-top: clamp(130px, 19vh, 210px);
	isolation: isolate;
}

.project__glyph {
	position: absolute;
	right: var(--gutter);
	top: clamp(70px, 12vh, 130px);
	z-index: -1;
	font-size: clamp(11rem, 36vw, 36rem);
	font-weight: 800;
	font-stretch: 75%;
	line-height: 0.8;
	letter-spacing: 0;
	color: transparent;
	-webkit-text-stroke: 1.5px color-mix(in srgb, var(--accent) 65%, transparent);
	opacity: 0.6;
	translate: var(--gx, 0) var(--gy, 0);
	pointer-events: none;
	user-select: none;
}

.back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--f-mono);
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--soft);
}

.back:hover .arrow {
	transform: translateX(-4px);
}

.project__chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin-top: clamp(28px, 5vh, 56px);
}

.project__chips .chip {
	border-color: color-mix(in srgb, var(--accent) 60%, transparent);
	color: var(--text);
}

.project__title {
	margin-top: 18px;
	font-size: clamp(3.6rem, 14vw, 14rem);
	font-weight: 800;
	font-stretch: 78%;
	line-height: 0.84;
	letter-spacing: -0.05em;
	overflow-wrap: anywhere;
}

.project__tagline {
	max-width: 22ch;
	margin-top: 26px;
	font-size: clamp(1.4rem, 2.8vw, 2.6rem);
	font-weight: 520;
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var(--accent);
}

.project__ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 40px;
}

.project__cover {
	margin-top: clamp(56px, 8vh, 96px);
}

.project__frame {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--r);
	background: color-mix(in srgb, var(--accent) 25%, var(--surface));
}

.project__frame img,
.project__frame .gen-cover {
	width: 100%;
	height: 100%;
	object-fit: cover;
	scale: 1.12;
	translate: 0 var(--py, 0px);
}

.project__main {
	display: grid;
	grid-template-columns: minmax(220px, 0.8fr) minmax(0, 2fr);
	gap: clamp(32px, 6vw, 110px);
	margin-top: clamp(70px, 11vh, 130px);
}

.facts {
	position: sticky;
	top: calc(var(--head-h) + 24px);
	align-self: start;
}

.facts dl {
	border-top: 1px solid var(--line-2);
}

.facts__item {
	padding: 16px 0;
	border-bottom: 1px solid var(--line);
}

.facts dt {
	font-family: var(--f-mono);
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
}

.facts dd {
	margin-top: 6px;
	font-size: 1.08rem;
	font-weight: 520;
}

.project__lead {
	margin-top: 20px;
	max-width: 30ch;
	font-size: clamp(1.6rem, 2.7vw, 2.6rem);
	font-weight: 560;
	line-height: 1.12;
	letter-spacing: -0.02em;
}

.prose {
	margin-top: 36px;
	max-width: 68ch;
	font-size: clamp(1.05rem, 0.3vw + 1rem, 1.18rem);
	line-height: 1.72;
	color: var(--soft);
}

.prose > * + * {
	margin-top: 1.1em;
}

.prose h2,
.prose h3 {
	margin-top: 2em;
	color: var(--text);
	font-weight: 720;
	letter-spacing: -0.02em;
	line-height: 1.1;
}

.prose h2 { font-size: clamp(1.6rem, 2.2vw, 2.1rem); }
.prose h3 { font-size: 1.4rem; }

.prose strong {
	color: var(--text);
	font-weight: 650;
}

.prose a {
	color: var(--accent);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

.prose ul,
.prose ol {
	padding-left: 0;
	list-style: none;
}

.prose li {
	position: relative;
	padding-left: 28px;
}

.prose li + li {
	margin-top: 0.5em;
}

.prose ul li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.8em;
	width: 14px;
	height: 2px;
	background: var(--accent);
}

.prose ol {
	counter-reset: li;
}

.prose ol li::before {
	counter-increment: li;
	content: counter(li, decimal-leading-zero);
	position: absolute;
	left: 0;
	font-family: var(--f-mono);
	font-size: 0.75em;
	color: var(--accent);
	top: 0.3em;
}

.prose blockquote {
	margin: 2em 0;
	padding-left: 24px;
	border-left: 3px solid var(--accent);
	font-size: 1.3em;
	color: var(--text);
}

.prose img,
.prose figure {
	border-radius: 14px;
}

.highlights {
	margin-top: clamp(90px, 14vh, 160px);
}

.highlights__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	margin-top: 32px;
	padding: 0;
	list-style: none;
}

.highlight {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-height: 230px;
	padding: 28px;
	border: 1px solid var(--line);
	border-radius: var(--r);
	background: var(--surface);
	overflow: hidden;
	transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
	transition: opacity 1s var(--ease), translate 1s var(--ease), transform 0.6s var(--ease), border-color 0.4s;
	transition-delay: calc(var(--d, 0) * 90ms), calc(var(--d, 0) * 90ms), 0s, 0s;
}

.highlight::before {
	content: "";
	position: absolute;
	right: -40px;
	top: -40px;
	width: 140px;
	height: 140px;
	border-radius: 50%;
	background: radial-gradient(circle, color-mix(in srgb, var(--accent) 40%, transparent), transparent 70%);
	opacity: 0.5;
	transition: scale 0.8s var(--ease), opacity 0.5s;
}

.highlight:hover {
	border-color: color-mix(in srgb, var(--accent) 55%, transparent);
}

.highlight:hover::before {
	scale: 2.2;
	opacity: 0.8;
}

.highlight__num {
	font-family: var(--f-mono);
	font-size: 12px;
	color: var(--accent);
}

.highlight__title {
	margin-top: auto;
	font-size: 1.55rem;
	font-weight: 720;
	letter-spacing: -0.02em;
	line-height: 1.05;
}

.highlight__text {
	color: var(--soft);
	font-size: 1rem;
}

.gallery {
	margin-top: clamp(90px, 14vh, 160px);
}

.gallery__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.gallery__hint {
	font-family: var(--f-mono);
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted);
}

.gallery__track {
	display: flex;
	gap: 18px;
	margin-top: 28px;
	padding: 0 var(--gutter) 18px;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scrollbar-width: thin;
	scrollbar-color: var(--line-2) transparent;
	user-select: none;
	overscroll-behavior-x: contain;
}

.gallery__track.is-dragging {
	scroll-snap-type: none;
}

.gallery__item {
	flex: none;
	height: clamp(240px, 52vh, 600px);
	scroll-snap-align: center;
	border-radius: 14px;
	overflow: hidden;
	background: var(--surface);
}

.gallery__item img {
	height: 100%;
	width: auto;
	max-width: none;
	pointer-events: none;
}

.next {
	margin-top: clamp(100px, 16vh, 180px);
}

.next__link {
	position: relative;
	display: block;
	padding-block: clamp(80px, 14vh, 160px);
	border-top: 1px solid var(--line);
	overflow: hidden;
	isolation: isolate;
}

.next__media {
	position: absolute;
	inset: 0;
	z-index: -1;
	opacity: 0;
	transition: opacity 0.8s var(--ease);
}

.next__media img,
.next__media .gen-cover {
	width: 100%;
	height: 100%;
	object-fit: cover;
	scale: 1.15;
	transition: scale 1.6s var(--ease);
}

.next__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(11, 11, 14, 0.92), rgba(11, 11, 14, 0.5));
}

.next__link:hover .next__media {
	opacity: 1;
}

.next__link:hover .next__media img,
.next__link:hover .next__media .gen-cover {
	scale: 1;
}

.next__inner {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.next__title {
	display: flex;
	align-items: center;
	gap: 0.2em;
	font-size: clamp(3.2rem, 12vw, 12.5rem);
	font-weight: 800;
	font-stretch: 78%;
	line-height: 0.88;
	letter-spacing: -0.05em;
	transition: color 0.5s;
}

.next__title .arrow {
	width: 0.6em;
	height: 0.6em;
	stroke-width: 1.6;
}

.next__link:hover .next__title {
	color: var(--accent);
}

.next__link:hover .next__title .arrow {
	transform: translateX(0.15em);
}

.next__tagline {
	color: var(--soft);
	font-size: 1.2rem;
}

/* Bubble burst (easter egg: type "oxxy") */
.burst {
	position: fixed;
	z-index: 340;
	width: var(--s);
	height: var(--s);
	margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
	border-radius: 50%;
	border: 1px solid rgba(238, 235, 228, 0.6);
	background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.35), transparent 60%);
	pointer-events: none;
	animation: burst 1.6s var(--ease) forwards;
}

@keyframes burst {
	from { transform: translate(0, 0) scale(0.2); opacity: 1; }
	to { transform: translate(var(--tx), var(--ty)) scale(1); opacity: 0; }
}

/* --------------------------------------------------------------------------
   WordPress bits
   -------------------------------------------------------------------------- */

.alignwide { max-width: 1200px; }
.alignfull { max-width: none; }
.wp-block-image img { border-radius: 14px; }

.nav-links {
	display: flex;
	gap: 12px;
	margin-top: 32px;
}

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

@media (max-width: 1100px) {
	.current {
		grid-template-columns: 56px minmax(0, 1fr) 80px;
		grid-template-areas: "num title shape" "num text shape" "num tags shape";
	}

	.current__shape {
		width: 64px;
		height: 64px;
	}

	.highlights__grid,
	.services__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.row__link {
		grid-template-columns: 44px minmax(0, 1fr) 150px 32px;
	}

	.row__tagline,
	.row__type {
		display: none;
	}
}

@media (max-width: 900px) {
	:root {
		--head-h: 68px;
	}

	.head {
		grid-template-columns: auto 1fr auto auto;
	}

	.nav {
		display: none;
	}

	.burger {
		display: inline-flex;
	}

	.head .lang {
		justify-self: end;
	}

	.hero__bottom,
	.concept__head,
	.project__main {
		grid-template-columns: 1fr;
	}

	.hero__side {
		align-items: flex-start;
		text-align: left;
	}

	.hero__ctas {
		justify-content: flex-start;
	}

	.concept__head .lead {
		justify-self: start;
	}

	.grid {
		grid-template-columns: 1fr;
	}

	.stats,
	.foot__cols {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.steps__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 28px;
	}

	.facts {
		position: static;
	}

	.facts dl {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 20px;
	}
}

@media (max-width: 640px) {
	.brand__sub,
	.burger__label {
		display: none;
	}

	.burger {
		padding: 0;
		border: 0;
	}

	.burger__lines {
		width: 40px;
		height: 40px;
	}

	.burger__lines i { left: 12px; right: 12px; }
	.burger__lines i:first-child { top: 16px; }
	.burger__lines i:last-child { top: 22px; }
	.menu-open .burger__lines i:first-child,
	.menu-open .burger__lines i:last-child { top: 19px; }

	.lang__btn {
		min-width: 34px;
		padding: 7px 7px;
	}

	.hero__top .kicker--muted {
		display: none;
	}

	.hero__sub {
		letter-spacing: 0.5em;
	}

	.hero__line {
		font-size: 34vw;
	}

	.current {
		grid-template-columns: minmax(0, 1fr) 52px;
		grid-template-areas: "num shape" "title shape" "text text" "tags tags";
		padding: 34px 0;
	}

	.current__num {
		padding-top: 0;
	}

	.current__shape {
		width: 48px;
		height: 48px;
	}

	.highlights__grid,
	.services__grid,
	.steps__list {
		grid-template-columns: 1fr;
	}

	.highlight,
	.service {
		min-height: 0;
	}

	.highlight__title,
	.service__title {
		margin-top: 16px;
	}

	.row__link {
		grid-template-columns: 34px minmax(0, 1fr) 28px;
		gap: 12px;
	}

	.row__link .status {
		display: none;
	}

	.principle summary {
		grid-template-columns: 40px 1fr 34px;
	}

	.principle__text {
		padding-left: 56px;
	}

	.foot__cols {
		gap: 28px 16px;
	}

	.foot__bottom {
		flex-direction: column;
		align-items: flex-start;
	}

	.btn {
		min-height: 50px;
		padding: 0 22px;
	}

	.btn--xl {
		min-height: 64px;
		padding: 0 30px;
	}

	.posts__link {
		grid-template-columns: 1fr auto;
	}

	.posts__date {
		grid-column: 1 / -1;
	}
}

@media (max-width: 380px) {
	.brand__word {
		font-size: 19px;
	}

	.mark {
		width: 32px;
		height: 32px;
	}

	.lang__btn {
		min-width: 30px;
		padding: 6px 5px;
		font-size: 11px;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-delay: 0s !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		transition-delay: 0s !important;
	}

	.marquee__track {
		animation: none;
	}

	.js [data-scrub] .sw {
		--o: 1;
	}
}
